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=. 719LIB@&t@OBJS= 720cross_compiling=no 721subdirs= 722MFLAGS= 723MAKEFLAGS= 724SHELL=${CONFIG_SHELL-/bin/sh} 725 726# Identity of this package. 727PACKAGE_NAME= 728PACKAGE_TARNAME= 729PACKAGE_VERSION= 730PACKAGE_STRING= 731PACKAGE_BUGREPORT= 732 733ac_unique_file="configure.in" 734# Factoring default headers for most tests. 735ac_includes_default="\ 736#include <stdio.h> 737#ifdef HAVE_SYS_TYPES_H 738# include <sys/types.h> 739#endif 740#ifdef HAVE_SYS_STAT_H 741# include <sys/stat.h> 742#endif 743#ifdef STDC_HEADERS 744# include <stdlib.h> 745# include <stddef.h> 746#else 747# ifdef HAVE_STDLIB_H 748# include <stdlib.h> 749# endif 750#endif 751#ifdef HAVE_STRING_H 752# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 753# include <memory.h> 754# endif 755# include <string.h> 756#endif 757#ifdef HAVE_STRINGS_H 758# include <strings.h> 759#endif 760#ifdef HAVE_INTTYPES_H 761# include <inttypes.h> 762#endif 763#ifdef HAVE_STDINT_H 764# include <stdint.h> 765#endif 766#ifdef HAVE_UNISTD_H 767# include <unistd.h> 768#endif" 769 770ac_subst_vars='SHELL 771PATH_SEPARATOR 772PACKAGE_NAME 773PACKAGE_TARNAME 774PACKAGE_VERSION 775PACKAGE_STRING 776PACKAGE_BUGREPORT 777exec_prefix 778prefix 779program_transform_name 780bindir 781sbindir 782libexecdir 783datarootdir 784datadir 785sysconfdir 786sharedstatedir 787localstatedir 788includedir 789oldincludedir 790docdir 791infodir 792htmldir 793dvidir 794pdfdir 795psdir 796libdir 797localedir 798mandir 799DEFS 800ECHO_C 801ECHO_N 802ECHO_T 803LIBS 804build_alias 805host_alias 806target_alias 807INSTALL_PROGRAM 808INSTALL_SCRIPT 809INSTALL_DATA 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 851CPP 852do_static_build_TRUE 853do_static_build_FALSE 854XMKMF 855CXXCPP 856X_CFLAGS 857X_PRE_LIBS 858X_LIBS 859X_EXTRA_LIBS 860GREP 861EGREP 862build 863build_cpu 864build_vendor 865build_os 866host 867host_cpu 868host_vendor 869host_os 870SED 871LN_S 872ECHO 873AR 874RANLIB 875DSYMUTIL 876NMEDIT 877F77 878FFLAGS 879ac_ct_F77 880LIBTOOL 881LIB@&t@OBJS 882LTLIBOBJS' 883ac_subst_files='' 884 ac_precious_vars='build_alias 885host_alias 886target_alias 887CC 888CFLAGS 889LDFLAGS 890LIBS 891CPPFLAGS 892CXX 893CXXFLAGS 894CCC 895CPP 896XMKMF 897CXXCPP 898F77 899FFLAGS' 900 901 902# Initialize some variables set by options. 903ac_init_help= 904ac_init_version=false 905# The variables have the same names as the options, with 906# dashes changed to underlines. 907cache_file=/dev/null 908exec_prefix=NONE 909no_create= 910no_recursion= 911prefix=NONE 912program_prefix=NONE 913program_suffix=NONE 914program_transform_name=s,x,x, 915silent= 916site= 917srcdir= 918verbose= 919x_includes=NONE 920x_libraries=NONE 921 922# Installation directory options. 923# These are left unexpanded so users can "make install exec_prefix=/foo" 924# and all the variables that are supposed to be based on exec_prefix 925# by default will actually change. 926# Use braces instead of parens because sh, perl, etc. also accept them. 927# (The list follows the same order as the GNU Coding Standards.) 928bindir='${exec_prefix}/bin' 929sbindir='${exec_prefix}/sbin' 930libexecdir='${exec_prefix}/libexec' 931datarootdir='${prefix}/share' 932datadir='${datarootdir}' 933sysconfdir='${prefix}/etc' 934sharedstatedir='${prefix}/com' 935localstatedir='${prefix}/var' 936includedir='${prefix}/include' 937oldincludedir='/usr/include' 938docdir='${datarootdir}/doc/${PACKAGE}' 939infodir='${datarootdir}/info' 940htmldir='${docdir}' 941dvidir='${docdir}' 942pdfdir='${docdir}' 943psdir='${docdir}' 944libdir='${exec_prefix}/lib' 945localedir='${datarootdir}/locale' 946mandir='${datarootdir}/man' 947 948ac_prev= 949ac_dashdash= 950for ac_option 951do 952 # If the previous option needs an argument, assign it. 953 if test -n "$ac_prev"; then 954 eval $ac_prev=\$ac_option 955 ac_prev= 956 continue 957 fi 958 959 case $ac_option in 960 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 961 *) ac_optarg=yes ;; 962 esac 963 964 # Accept the important Cygnus configure options, so we can diagnose typos. 965 966 case $ac_dashdash$ac_option in 967 --) 968 ac_dashdash=yes ;; 969 970 -bindir | --bindir | --bindi | --bind | --bin | --bi) 971 ac_prev=bindir ;; 972 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 973 bindir=$ac_optarg ;; 974 975 -build | --build | --buil | --bui | --bu) 976 ac_prev=build_alias ;; 977 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 978 build_alias=$ac_optarg ;; 979 980 -cache-file | --cache-file | --cache-fil | --cache-fi \ 981 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 982 ac_prev=cache_file ;; 983 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 984 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 985 cache_file=$ac_optarg ;; 986 987 --config-cache | -C) 988 cache_file=config.cache ;; 989 990 -datadir | --datadir | --datadi | --datad) 991 ac_prev=datadir ;; 992 -datadir=* | --datadir=* | --datadi=* | --datad=*) 993 datadir=$ac_optarg ;; 994 995 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 996 | --dataroo | --dataro | --datar) 997 ac_prev=datarootdir ;; 998 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 999 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1000 datarootdir=$ac_optarg ;; 1001 1002 -disable-* | --disable-*) 1003 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1004 # Reject names that are not valid shell variable names. 1005 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1006 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1007 { (exit 1); exit 1; }; } 1008 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1009 eval enable_$ac_feature=no ;; 1010 1011 -docdir | --docdir | --docdi | --doc | --do) 1012 ac_prev=docdir ;; 1013 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1014 docdir=$ac_optarg ;; 1015 1016 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1017 ac_prev=dvidir ;; 1018 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1019 dvidir=$ac_optarg ;; 1020 1021 -enable-* | --enable-*) 1022 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1023 # Reject names that are not valid shell variable names. 1024 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1025 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1026 { (exit 1); exit 1; }; } 1027 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1028 eval enable_$ac_feature=\$ac_optarg ;; 1029 1030 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1031 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1032 | --exec | --exe | --ex) 1033 ac_prev=exec_prefix ;; 1034 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1035 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1036 | --exec=* | --exe=* | --ex=*) 1037 exec_prefix=$ac_optarg ;; 1038 1039 -gas | --gas | --ga | --g) 1040 # Obsolete; use --with-gas. 1041 with_gas=yes ;; 1042 1043 -help | --help | --hel | --he | -h) 1044 ac_init_help=long ;; 1045 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1046 ac_init_help=recursive ;; 1047 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1048 ac_init_help=short ;; 1049 1050 -host | --host | --hos | --ho) 1051 ac_prev=host_alias ;; 1052 -host=* | --host=* | --hos=* | --ho=*) 1053 host_alias=$ac_optarg ;; 1054 1055 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1056 ac_prev=htmldir ;; 1057 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1058 | --ht=*) 1059 htmldir=$ac_optarg ;; 1060 1061 -includedir | --includedir | --includedi | --included | --include \ 1062 | --includ | --inclu | --incl | --inc) 1063 ac_prev=includedir ;; 1064 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1065 | --includ=* | --inclu=* | --incl=* | --inc=*) 1066 includedir=$ac_optarg ;; 1067 1068 -infodir | --infodir | --infodi | --infod | --info | --inf) 1069 ac_prev=infodir ;; 1070 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1071 infodir=$ac_optarg ;; 1072 1073 -libdir | --libdir | --libdi | --libd) 1074 ac_prev=libdir ;; 1075 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1076 libdir=$ac_optarg ;; 1077 1078 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1079 | --libexe | --libex | --libe) 1080 ac_prev=libexecdir ;; 1081 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1082 | --libexe=* | --libex=* | --libe=*) 1083 libexecdir=$ac_optarg ;; 1084 1085 -localedir | --localedir | --localedi | --localed | --locale) 1086 ac_prev=localedir ;; 1087 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1088 localedir=$ac_optarg ;; 1089 1090 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1091 | --localstate | --localstat | --localsta | --localst | --locals) 1092 ac_prev=localstatedir ;; 1093 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1094 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1095 localstatedir=$ac_optarg ;; 1096 1097 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1098 ac_prev=mandir ;; 1099 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1100 mandir=$ac_optarg ;; 1101 1102 -nfp | --nfp | --nf) 1103 # Obsolete; use --without-fp. 1104 with_fp=no ;; 1105 1106 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1107 | --no-cr | --no-c | -n) 1108 no_create=yes ;; 1109 1110 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1111 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1112 no_recursion=yes ;; 1113 1114 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1115 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1116 | --oldin | --oldi | --old | --ol | --o) 1117 ac_prev=oldincludedir ;; 1118 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1119 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1120 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1121 oldincludedir=$ac_optarg ;; 1122 1123 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1124 ac_prev=prefix ;; 1125 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1126 prefix=$ac_optarg ;; 1127 1128 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1129 | --program-pre | --program-pr | --program-p) 1130 ac_prev=program_prefix ;; 1131 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1132 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1133 program_prefix=$ac_optarg ;; 1134 1135 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1136 | --program-suf | --program-su | --program-s) 1137 ac_prev=program_suffix ;; 1138 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1139 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1140 program_suffix=$ac_optarg ;; 1141 1142 -program-transform-name | --program-transform-name \ 1143 | --program-transform-nam | --program-transform-na \ 1144 | --program-transform-n | --program-transform- \ 1145 | --program-transform | --program-transfor \ 1146 | --program-transfo | --program-transf \ 1147 | --program-trans | --program-tran \ 1148 | --progr-tra | --program-tr | --program-t) 1149 ac_prev=program_transform_name ;; 1150 -program-transform-name=* | --program-transform-name=* \ 1151 | --program-transform-nam=* | --program-transform-na=* \ 1152 | --program-transform-n=* | --program-transform-=* \ 1153 | --program-transform=* | --program-transfor=* \ 1154 | --program-transfo=* | --program-transf=* \ 1155 | --program-trans=* | --program-tran=* \ 1156 | --progr-tra=* | --program-tr=* | --program-t=*) 1157 program_transform_name=$ac_optarg ;; 1158 1159 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1160 ac_prev=pdfdir ;; 1161 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1162 pdfdir=$ac_optarg ;; 1163 1164 -psdir | --psdir | --psdi | --psd | --ps) 1165 ac_prev=psdir ;; 1166 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1167 psdir=$ac_optarg ;; 1168 1169 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1170 | -silent | --silent | --silen | --sile | --sil) 1171 silent=yes ;; 1172 1173 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1174 ac_prev=sbindir ;; 1175 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1176 | --sbi=* | --sb=*) 1177 sbindir=$ac_optarg ;; 1178 1179 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1180 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1181 | --sharedst | --shareds | --shared | --share | --shar \ 1182 | --sha | --sh) 1183 ac_prev=sharedstatedir ;; 1184 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1185 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1186 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1187 | --sha=* | --sh=*) 1188 sharedstatedir=$ac_optarg ;; 1189 1190 -site | --site | --sit) 1191 ac_prev=site ;; 1192 -site=* | --site=* | --sit=*) 1193 site=$ac_optarg ;; 1194 1195 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1196 ac_prev=srcdir ;; 1197 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1198 srcdir=$ac_optarg ;; 1199 1200 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1201 | --syscon | --sysco | --sysc | --sys | --sy) 1202 ac_prev=sysconfdir ;; 1203 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1204 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1205 sysconfdir=$ac_optarg ;; 1206 1207 -target | --target | --targe | --targ | --tar | --ta | --t) 1208 ac_prev=target_alias ;; 1209 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1210 target_alias=$ac_optarg ;; 1211 1212 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1213 verbose=yes ;; 1214 1215 -version | --version | --versio | --versi | --vers | -V) 1216 ac_init_version=: ;; 1217 1218 -with-* | --with-*) 1219 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1220 # Reject names that are not valid shell variable names. 1221 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1222 { echo "$as_me: error: invalid package name: $ac_package" >&2 1223 { (exit 1); exit 1; }; } 1224 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1225 eval with_$ac_package=\$ac_optarg ;; 1226 1227 -without-* | --without-*) 1228 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1229 # Reject names that are not valid shell variable names. 1230 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1231 { echo "$as_me: error: invalid package name: $ac_package" >&2 1232 { (exit 1); exit 1; }; } 1233 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1234 eval with_$ac_package=no ;; 1235 1236 --x) 1237 # Obsolete; use --with-x. 1238 with_x=yes ;; 1239 1240 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1241 | --x-incl | --x-inc | --x-in | --x-i) 1242 ac_prev=x_includes ;; 1243 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1244 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1245 x_includes=$ac_optarg ;; 1246 1247 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1248 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1249 ac_prev=x_libraries ;; 1250 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1251 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1252 x_libraries=$ac_optarg ;; 1253 1254 -*) { echo "$as_me: error: unrecognized option: $ac_option 1255Try \`$0 --help' for more information." >&2 1256 { (exit 1); exit 1; }; } 1257 ;; 1258 1259 *=*) 1260 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1261 # Reject names that are not valid shell variable names. 1262 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1263 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1264 { (exit 1); exit 1; }; } 1265 eval $ac_envvar=\$ac_optarg 1266 export $ac_envvar ;; 1267 1268 *) 1269 # FIXME: should be removed in autoconf 3.0. 1270 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1271 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1272 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1273 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1274 ;; 1275 1276 esac 1277done 1278 1279if test -n "$ac_prev"; then 1280 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1281 { echo "$as_me: error: missing argument to $ac_option" >&2 1282 { (exit 1); exit 1; }; } 1283fi 1284 1285# Be sure to have absolute directory names. 1286for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1287 datadir sysconfdir sharedstatedir localstatedir includedir \ 1288 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1289 libdir localedir mandir 1290do 1291 eval ac_val=\$$ac_var 1292 case $ac_val in 1293 [\\/$]* | ?:[\\/]* ) continue;; 1294 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1295 esac 1296 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1297 { (exit 1); exit 1; }; } 1298done 1299 1300# There might be people who depend on the old broken behavior: `$host' 1301# used to hold the argument of --host etc. 1302# FIXME: To remove some day. 1303build=$build_alias 1304host=$host_alias 1305target=$target_alias 1306 1307# FIXME: To remove some day. 1308if test "x$host_alias" != x; then 1309 if test "x$build_alias" = x; then 1310 cross_compiling=maybe 1311 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1312 If a cross compiler is detected then cross compile mode will be used." >&2 1313 elif test "x$build_alias" != "x$host_alias"; then 1314 cross_compiling=yes 1315 fi 1316fi 1317 1318ac_tool_prefix= 1319test -n "$host_alias" && ac_tool_prefix=$host_alias- 1320 1321test "$silent" = yes && exec 6>/dev/null 1322 1323 1324ac_pwd=`pwd` && test -n "$ac_pwd" && 1325ac_ls_di=`ls -di .` && 1326ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1327 { echo "$as_me: error: Working directory cannot be determined" >&2 1328 { (exit 1); exit 1; }; } 1329test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1330 { echo "$as_me: error: pwd does not report name of working directory" >&2 1331 { (exit 1); exit 1; }; } 1332 1333 1334# Find the source files, if location was not specified. 1335if test -z "$srcdir"; then 1336 ac_srcdir_defaulted=yes 1337 # Try the directory containing this script, then the parent directory. 1338 ac_confdir=`$as_dirname -- "$0" || 1339$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1340 X"$0" : 'X\(//\)[^/]' \| \ 1341 X"$0" : 'X\(//\)$' \| \ 1342 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1343echo X"$0" | 1344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1345 s//\1/ 1346 q 1347 } 1348 /^X\(\/\/\)[^/].*/{ 1349 s//\1/ 1350 q 1351 } 1352 /^X\(\/\/\)$/{ 1353 s//\1/ 1354 q 1355 } 1356 /^X\(\/\).*/{ 1357 s//\1/ 1358 q 1359 } 1360 s/.*/./; q'` 1361 srcdir=$ac_confdir 1362 if test ! -r "$srcdir/$ac_unique_file"; then 1363 srcdir=.. 1364 fi 1365else 1366 ac_srcdir_defaulted=no 1367fi 1368if test ! -r "$srcdir/$ac_unique_file"; then 1369 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1370 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1371 { (exit 1); exit 1; }; } 1372fi 1373ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1374ac_abs_confdir=`( 1375 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1376 { (exit 1); exit 1; }; } 1377 pwd)` 1378# When building in place, set srcdir=. 1379if test "$ac_abs_confdir" = "$ac_pwd"; then 1380 srcdir=. 1381fi 1382# Remove unnecessary trailing slashes from srcdir. 1383# Double slashes in file names in object file debugging info 1384# mess up M-x gdb in Emacs. 1385case $srcdir in 1386*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1387esac 1388for ac_var in $ac_precious_vars; do 1389 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1390 eval ac_env_${ac_var}_value=\$${ac_var} 1391 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1392 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1393done 1394 1395# 1396# Report the --help message. 1397# 1398if test "$ac_init_help" = "long"; then 1399 # Omit some internal or obsolete options to make the list less imposing. 1400 # This message is too long to be a string in the A/UX 3.1 sh. 1401 cat <<_ACEOF 1402\`configure' configures this package to adapt to many kinds of systems. 1403 1404Usage: $0 [OPTION]... [VAR=VALUE]... 1405 1406To assign environment variables (e.g., CC, CFLAGS...), specify them as 1407VAR=VALUE. See below for descriptions of some of the useful variables. 1408 1409Defaults for the options are specified in brackets. 1410 1411Configuration: 1412 -h, --help display this help and exit 1413 --help=short display options specific to this package 1414 --help=recursive display the short help of all the included packages 1415 -V, --version display version information and exit 1416 -q, --quiet, --silent do not print \`checking...' messages 1417 --cache-file=FILE cache test results in FILE [disabled] 1418 -C, --config-cache alias for \`--cache-file=config.cache' 1419 -n, --no-create do not create output files 1420 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1421 1422Installation directories: 1423 --prefix=PREFIX install architecture-independent files in PREFIX 1424 [$ac_default_prefix] 1425 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1426 [PREFIX] 1427 1428By default, \`make install' will install all the files in 1429\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1430an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1431for instance \`--prefix=\$HOME'. 1432 1433For better control, use the options below. 1434 1435Fine tuning of the installation directories: 1436 --bindir=DIR user executables [EPREFIX/bin] 1437 --sbindir=DIR system admin executables [EPREFIX/sbin] 1438 --libexecdir=DIR program executables [EPREFIX/libexec] 1439 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1440 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1441 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1442 --libdir=DIR object code libraries [EPREFIX/lib] 1443 --includedir=DIR C header files [PREFIX/include] 1444 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1445 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1446 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1447 --infodir=DIR info documentation [DATAROOTDIR/info] 1448 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1449 --mandir=DIR man documentation [DATAROOTDIR/man] 1450 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/PACKAGE@:>@ 1451 --htmldir=DIR html documentation [DOCDIR] 1452 --dvidir=DIR dvi documentation [DOCDIR] 1453 --pdfdir=DIR pdf documentation [DOCDIR] 1454 --psdir=DIR ps documentation [DOCDIR] 1455_ACEOF 1456 1457 cat <<\_ACEOF 1458 1459Program names: 1460 --program-prefix=PREFIX prepend PREFIX to installed program names 1461 --program-suffix=SUFFIX append SUFFIX to installed program names 1462 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1463 1464X features: 1465 --x-includes=DIR X include files are in DIR 1466 --x-libraries=DIR X library files are in DIR 1467 1468System types: 1469 --build=BUILD configure for building on BUILD [guessed] 1470 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1471_ACEOF 1472fi 1473 1474if test -n "$ac_init_help"; then 1475 1476 cat <<\_ACEOF 1477 1478Optional Features: 1479 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1480 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1481 --disable-dependency-tracking speeds up one-time build 1482 --enable-dependency-tracking do not reject slow dependency extractors 1483 --enable-static-build compile mp4v2 and faad2 from source and link 1484 everything statically 1485 --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@ 1486 --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@ 1487 --enable-fast-install@<:@=PKGS@:>@ 1488 optimize for fast installation @<:@default=yes@:>@ 1489 --disable-libtool-lock avoid locking (might break parallel builds) 1490 1491Optional Packages: 1492 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1493 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1494 --with-x use the X Window System 1495 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@ 1496 --with-pic try to use only PIC/non-PIC objects @<:@default=use 1497 both@:>@ 1498 --with-tags@<:@=TAGS@:>@ include additional configurations @<:@automatic@:>@ 1499 1500Some influential environment variables: 1501 CC C compiler command 1502 CFLAGS C compiler flags 1503 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1504 nonstandard directory <lib dir> 1505 LIBS libraries to pass to the linker, e.g. -l<library> 1506 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1507 you have headers in a nonstandard directory <include dir> 1508 CXX C++ compiler command 1509 CXXFLAGS C++ compiler flags 1510 CPP C preprocessor 1511 XMKMF Path to xmkmf, Makefile generator for X Window System 1512 CXXCPP C++ preprocessor 1513 F77 Fortran 77 compiler command 1514 FFLAGS Fortran 77 compiler flags 1515 1516Use these variables to override the choices made by `configure' or to help 1517it to find libraries and programs with nonstandard names/locations. 1518 1519_ACEOF 1520ac_status=$? 1521fi 1522 1523if test "$ac_init_help" = "recursive"; then 1524 # If there are subdirs, report their specific --help. 1525 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1526 test -d "$ac_dir" || continue 1527 ac_builddir=. 1528 1529case "$ac_dir" in 1530.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1531*) 1532 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1533 # A ".." for each directory in $ac_dir_suffix. 1534 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1535 case $ac_top_builddir_sub in 1536 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1537 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1538 esac ;; 1539esac 1540ac_abs_top_builddir=$ac_pwd 1541ac_abs_builddir=$ac_pwd$ac_dir_suffix 1542# for backward compatibility: 1543ac_top_builddir=$ac_top_build_prefix 1544 1545case $srcdir in 1546 .) # We are building in place. 1547 ac_srcdir=. 1548 ac_top_srcdir=$ac_top_builddir_sub 1549 ac_abs_top_srcdir=$ac_pwd ;; 1550 [\\/]* | ?:[\\/]* ) # Absolute name. 1551 ac_srcdir=$srcdir$ac_dir_suffix; 1552 ac_top_srcdir=$srcdir 1553 ac_abs_top_srcdir=$srcdir ;; 1554 *) # Relative name. 1555 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1556 ac_top_srcdir=$ac_top_build_prefix$srcdir 1557 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1558esac 1559ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1560 1561 cd "$ac_dir" || { ac_status=$?; continue; } 1562 # Check for guested configure. 1563 if test -f "$ac_srcdir/configure.gnu"; then 1564 echo && 1565 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1566 elif test -f "$ac_srcdir/configure"; then 1567 echo && 1568 $SHELL "$ac_srcdir/configure" --help=recursive 1569 else 1570 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1571 fi || ac_status=$? 1572 cd "$ac_pwd" || { ac_status=$?; break; } 1573 done 1574fi 1575 1576test -n "$ac_init_help" && exit $ac_status 1577if $ac_init_version; then 1578 cat <<\_ACEOF 1579configure 1580generated by GNU Autoconf 2.61 1581 1582Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 15832002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1584This configure script is free software; the Free Software Foundation 1585gives unlimited permission to copy, distribute and modify it. 1586_ACEOF 1587 exit 1588fi 1589cat >config.log <<_ACEOF 1590This file contains any messages produced by compilers while 1591running configure, to aid debugging if configure makes a mistake. 1592 1593It was created by $as_me, which was 1594generated by GNU Autoconf 2.61. Invocation command line was 1595 1596 $ $0 $@ 1597 1598_ACEOF 1599exec 5>>config.log 1600{ 1601cat <<_ASUNAME 1602@%:@@%:@ --------- @%:@@%:@ 1603@%:@@%:@ Platform. @%:@@%:@ 1604@%:@@%:@ --------- @%:@@%:@ 1605 1606hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1607uname -m = `(uname -m) 2>/dev/null || echo unknown` 1608uname -r = `(uname -r) 2>/dev/null || echo unknown` 1609uname -s = `(uname -s) 2>/dev/null || echo unknown` 1610uname -v = `(uname -v) 2>/dev/null || echo unknown` 1611 1612/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1613/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1614 1615/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1616/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1617/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1618/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1619/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1620/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1621/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1622 1623_ASUNAME 1624 1625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1626for as_dir in $PATH 1627do 1628 IFS=$as_save_IFS 1629 test -z "$as_dir" && as_dir=. 1630 echo "PATH: $as_dir" 1631done 1632IFS=$as_save_IFS 1633 1634} >&5 1635 1636cat >&5 <<_ACEOF 1637 1638 1639@%:@@%:@ ----------- @%:@@%:@ 1640@%:@@%:@ Core tests. @%:@@%:@ 1641@%:@@%:@ ----------- @%:@@%:@ 1642 1643_ACEOF 1644 1645 1646# Keep a trace of the command line. 1647# Strip out --no-create and --no-recursion so they do not pile up. 1648# Strip out --silent because we don't want to record it for future runs. 1649# Also quote any args containing shell meta-characters. 1650# Make two passes to allow for proper duplicate-argument suppression. 1651ac_configure_args= 1652ac_configure_args0= 1653ac_configure_args1= 1654ac_must_keep_next=false 1655for ac_pass in 1 2 1656do 1657 for ac_arg 1658 do 1659 case $ac_arg in 1660 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1661 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1662 | -silent | --silent | --silen | --sile | --sil) 1663 continue ;; 1664 *\'*) 1665 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1666 esac 1667 case $ac_pass in 1668 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1669 2) 1670 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1671 if test $ac_must_keep_next = true; then 1672 ac_must_keep_next=false # Got value, back to normal. 1673 else 1674 case $ac_arg in 1675 *=* | --config-cache | -C | -disable-* | --disable-* \ 1676 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1677 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1678 | -with-* | --with-* | -without-* | --without-* | --x) 1679 case "$ac_configure_args0 " in 1680 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1681 esac 1682 ;; 1683 -* ) ac_must_keep_next=true ;; 1684 esac 1685 fi 1686 ac_configure_args="$ac_configure_args '$ac_arg'" 1687 ;; 1688 esac 1689 done 1690done 1691$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1692$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1693 1694# When interrupted or exit'd, cleanup temporary files, and complete 1695# config.log. We remove comments because anyway the quotes in there 1696# would cause problems or look ugly. 1697# WARNING: Use '\'' to represent an apostrophe within the trap. 1698# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1699trap 'exit_status=$? 1700 # Save into config.log some information that might help in debugging. 1701 { 1702 echo 1703 1704 cat <<\_ASBOX 1705@%:@@%:@ ---------------- @%:@@%:@ 1706@%:@@%:@ Cache variables. @%:@@%:@ 1707@%:@@%:@ ---------------- @%:@@%:@ 1708_ASBOX 1709 echo 1710 # The following way of writing the cache mishandles newlines in values, 1711( 1712 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1713 eval ac_val=\$$ac_var 1714 case $ac_val in #( 1715 *${as_nl}*) 1716 case $ac_var in #( 1717 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1718echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1719 esac 1720 case $ac_var in #( 1721 _ | IFS | as_nl) ;; #( 1722 *) $as_unset $ac_var ;; 1723 esac ;; 1724 esac 1725 done 1726 (set) 2>&1 | 1727 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1728 *${as_nl}ac_space=\ *) 1729 sed -n \ 1730 "s/'\''/'\''\\\\'\'''\''/g; 1731 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1732 ;; #( 1733 *) 1734 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1735 ;; 1736 esac | 1737 sort 1738) 1739 echo 1740 1741 cat <<\_ASBOX 1742@%:@@%:@ ----------------- @%:@@%:@ 1743@%:@@%:@ Output variables. @%:@@%:@ 1744@%:@@%:@ ----------------- @%:@@%:@ 1745_ASBOX 1746 echo 1747 for ac_var in $ac_subst_vars 1748 do 1749 eval ac_val=\$$ac_var 1750 case $ac_val in 1751 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1752 esac 1753 echo "$ac_var='\''$ac_val'\''" 1754 done | sort 1755 echo 1756 1757 if test -n "$ac_subst_files"; then 1758 cat <<\_ASBOX 1759@%:@@%:@ ------------------- @%:@@%:@ 1760@%:@@%:@ File substitutions. @%:@@%:@ 1761@%:@@%:@ ------------------- @%:@@%:@ 1762_ASBOX 1763 echo 1764 for ac_var in $ac_subst_files 1765 do 1766 eval ac_val=\$$ac_var 1767 case $ac_val in 1768 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1769 esac 1770 echo "$ac_var='\''$ac_val'\''" 1771 done | sort 1772 echo 1773 fi 1774 1775 if test -s confdefs.h; then 1776 cat <<\_ASBOX 1777@%:@@%:@ ----------- @%:@@%:@ 1778@%:@@%:@ confdefs.h. @%:@@%:@ 1779@%:@@%:@ ----------- @%:@@%:@ 1780_ASBOX 1781 echo 1782 cat confdefs.h 1783 echo 1784 fi 1785 test "$ac_signal" != 0 && 1786 echo "$as_me: caught signal $ac_signal" 1787 echo "$as_me: exit $exit_status" 1788 } >&5 1789 rm -f core *.core core.conftest.* && 1790 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1791 exit $exit_status 1792' 0 1793for ac_signal in 1 2 13 15; do 1794 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1795done 1796ac_signal=0 1797 1798# confdefs.h avoids OS command line length limits that DEFS can exceed. 1799rm -f -r conftest* confdefs.h 1800 1801# Predefined preprocessor variables. 1802 1803cat >>confdefs.h <<_ACEOF 1804@%:@define PACKAGE_NAME "$PACKAGE_NAME" 1805_ACEOF 1806 1807 1808cat >>confdefs.h <<_ACEOF 1809@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1810_ACEOF 1811 1812 1813cat >>confdefs.h <<_ACEOF 1814@%:@define PACKAGE_VERSION "$PACKAGE_VERSION" 1815_ACEOF 1816 1817 1818cat >>confdefs.h <<_ACEOF 1819@%:@define PACKAGE_STRING "$PACKAGE_STRING" 1820_ACEOF 1821 1822 1823cat >>confdefs.h <<_ACEOF 1824@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1825_ACEOF 1826 1827 1828# Let the site file select an alternate cache file if it wants to. 1829# Prefer explicitly selected file to automatically selected ones. 1830if test -n "$CONFIG_SITE"; then 1831 set x "$CONFIG_SITE" 1832elif test "x$prefix" != xNONE; then 1833 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1834else 1835 set x "$ac_default_prefix/share/config.site" \ 1836 "$ac_default_prefix/etc/config.site" 1837fi 1838shift 1839for ac_site_file 1840do 1841 if test -r "$ac_site_file"; then 1842 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1843echo "$as_me: loading site script $ac_site_file" >&6;} 1844 sed 's/^/| /' "$ac_site_file" >&5 1845 . "$ac_site_file" 1846 fi 1847done 1848 1849if test -r "$cache_file"; then 1850 # Some versions of bash will fail to source /dev/null (special 1851 # files actually), so we avoid doing that. 1852 if test -f "$cache_file"; then 1853 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1854echo "$as_me: loading cache $cache_file" >&6;} 1855 case $cache_file in 1856 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1857 *) . "./$cache_file";; 1858 esac 1859 fi 1860else 1861 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1862echo "$as_me: creating cache $cache_file" >&6;} 1863 >$cache_file 1864fi 1865 1866# Check that the precious variables saved in the cache have kept the same 1867# value. 1868ac_cache_corrupted=false 1869for ac_var in $ac_precious_vars; do 1870 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1871 eval ac_new_set=\$ac_env_${ac_var}_set 1872 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1873 eval ac_new_val=\$ac_env_${ac_var}_value 1874 case $ac_old_set,$ac_new_set in 1875 set,) 1876 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1877echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1878 ac_cache_corrupted=: ;; 1879 ,set) 1880 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1881echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1882 ac_cache_corrupted=: ;; 1883 ,);; 1884 *) 1885 if test "x$ac_old_val" != "x$ac_new_val"; then 1886 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1887echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1888 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1889echo "$as_me: former value: $ac_old_val" >&2;} 1890 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1891echo "$as_me: current value: $ac_new_val" >&2;} 1892 ac_cache_corrupted=: 1893 fi;; 1894 esac 1895 # Pass precious variables to config.status. 1896 if test "$ac_new_set" = set; then 1897 case $ac_new_val in 1898 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1899 *) ac_arg=$ac_var=$ac_new_val ;; 1900 esac 1901 case " $ac_configure_args " in 1902 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1903 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1904 esac 1905 fi 1906done 1907if $ac_cache_corrupted; then 1908 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1909echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1910 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1911echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1912 { (exit 1); exit 1; }; } 1913fi 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931ac_ext=c 1932ac_cpp='$CPP $CPPFLAGS' 1933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1935ac_compiler_gnu=$ac_cv_c_compiler_gnu 1936 1937 1938ac_config_headers="$ac_config_headers config.h" 1939 1940am__api_version='1.10' 1941 1942ac_aux_dir= 1943for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1944 if test -f "$ac_dir/install-sh"; then 1945 ac_aux_dir=$ac_dir 1946 ac_install_sh="$ac_aux_dir/install-sh -c" 1947 break 1948 elif test -f "$ac_dir/install.sh"; then 1949 ac_aux_dir=$ac_dir 1950 ac_install_sh="$ac_aux_dir/install.sh -c" 1951 break 1952 elif test -f "$ac_dir/shtool"; then 1953 ac_aux_dir=$ac_dir 1954 ac_install_sh="$ac_aux_dir/shtool install -c" 1955 break 1956 fi 1957done 1958if test -z "$ac_aux_dir"; then 1959 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1960echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 1961 { (exit 1); exit 1; }; } 1962fi 1963 1964# These three variables are undocumented and unsupported, 1965# and are intended to be withdrawn in a future Autoconf release. 1966# They can cause serious problems if a builder's source tree is in a directory 1967# whose full name contains unusual characters. 1968ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1969ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1970ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1971 1972 1973# Find a good install program. We prefer a C program (faster), 1974# so one script is as good as another. But avoid the broken or 1975# incompatible versions: 1976# SysV /etc/install, /usr/sbin/install 1977# SunOS /usr/etc/install 1978# IRIX /sbin/install 1979# AIX /bin/install 1980# AmigaOS /C/install, which installs bootblocks on floppy discs 1981# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1982# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1983# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1984# OS/2's system install, which has a completely different semantic 1985# ./install, which can be erroneously created by make from ./install.sh. 1986{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1987echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 1988if test -z "$INSTALL"; then 1989if test "${ac_cv_path_install+set}" = set; then 1990 echo $ECHO_N "(cached) $ECHO_C" >&6 1991else 1992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1993for as_dir in $PATH 1994do 1995 IFS=$as_save_IFS 1996 test -z "$as_dir" && as_dir=. 1997 # Account for people who put trailing slashes in PATH elements. 1998case $as_dir/ in 1999 ./ | .// | /cC/* | \ 2000 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2001 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2002 /usr/ucb/* ) ;; 2003 *) 2004 # OSF1 and SCO ODT 3.0 have their own names for install. 2005 # Don't use installbsd from OSF since it installs stuff as root 2006 # by default. 2007 for ac_prog in ginstall scoinst install; do 2008 for ac_exec_ext in '' $ac_executable_extensions; do 2009 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2010 if test $ac_prog = install && 2011 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2012 # AIX install. It has an incompatible calling convention. 2013 : 2014 elif test $ac_prog = install && 2015 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2016 # program-specific install script used by HP pwplus--don't use. 2017 : 2018 else 2019 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2020 break 3 2021 fi 2022 fi 2023 done 2024 done 2025 ;; 2026esac 2027done 2028IFS=$as_save_IFS 2029 2030 2031fi 2032 if test "${ac_cv_path_install+set}" = set; then 2033 INSTALL=$ac_cv_path_install 2034 else 2035 # As a last resort, use the slow shell script. Don't cache a 2036 # value for INSTALL within a source directory, because that will 2037 # break other packages using the cache if that directory is 2038 # removed, or if the value is a relative name. 2039 INSTALL=$ac_install_sh 2040 fi 2041fi 2042{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2043echo "${ECHO_T}$INSTALL" >&6; } 2044 2045# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2046# It thinks the first close brace ends the variable substitution. 2047test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2048 2049test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2050 2051test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2052 2053{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2054echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2055# Just in case 2056sleep 1 2057echo timestamp > conftest.file 2058# Do `set' in a subshell so we don't clobber the current shell's 2059# arguments. Must try -L first in case configure is actually a 2060# symlink; some systems play weird games with the mod time of symlinks 2061# (eg FreeBSD returns the mod time of the symlink's containing 2062# directory). 2063if ( 2064 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2065 if test "$*" = "X"; then 2066 # -L didn't work. 2067 set X `ls -t $srcdir/configure conftest.file` 2068 fi 2069 rm -f conftest.file 2070 if test "$*" != "X $srcdir/configure conftest.file" \ 2071 && test "$*" != "X conftest.file $srcdir/configure"; then 2072 2073 # If neither matched, then we have a broken ls. This can happen 2074 # if, for instance, CONFIG_SHELL is bash and it inherits a 2075 # broken ls alias from the environment. This has actually 2076 # happened. Such a system could not be considered "sane". 2077 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2078alias in your environment" >&5 2079echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2080alias in your environment" >&2;} 2081 { (exit 1); exit 1; }; } 2082 fi 2083 2084 test "$2" = conftest.file 2085 ) 2086then 2087 # Ok. 2088 : 2089else 2090 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2091Check your system clock" >&5 2092echo "$as_me: error: newly created file is older than distributed files! 2093Check your system clock" >&2;} 2094 { (exit 1); exit 1; }; } 2095fi 2096{ echo "$as_me:$LINENO: result: yes" >&5 2097echo "${ECHO_T}yes" >&6; } 2098test "$program_prefix" != NONE && 2099 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2100# Use a double $ so make ignores it. 2101test "$program_suffix" != NONE && 2102 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2103# Double any \ or $. echo might interpret backslashes. 2104# By default was `s,x,x', remove it if useless. 2105cat <<\_ACEOF >conftest.sed 2106s/[\\$]/&&/g;s/;s,x,x,$// 2107_ACEOF 2108program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2109rm -f conftest.sed 2110 2111# expand $ac_aux_dir to an absolute path 2112am_aux_dir=`cd $ac_aux_dir && pwd` 2113 2114test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2115# Use eval to expand $SHELL 2116if eval "$MISSING --run true"; then 2117 am_missing_run="$MISSING --run " 2118else 2119 am_missing_run= 2120 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2121echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2122fi 2123 2124{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2125echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } 2126if test -z "$MKDIR_P"; then 2127 if test "${ac_cv_path_mkdir+set}" = set; then 2128 echo $ECHO_N "(cached) $ECHO_C" >&6 2129else 2130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2131for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2132do 2133 IFS=$as_save_IFS 2134 test -z "$as_dir" && as_dir=. 2135 for ac_prog in mkdir gmkdir; do 2136 for ac_exec_ext in '' $ac_executable_extensions; do 2137 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2138 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2139 'mkdir (GNU coreutils) '* | \ 2140 'mkdir (coreutils) '* | \ 2141 'mkdir (fileutils) '4.1*) 2142 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2143 break 3;; 2144 esac 2145 done 2146 done 2147done 2148IFS=$as_save_IFS 2149 2150fi 2151 2152 if test "${ac_cv_path_mkdir+set}" = set; then 2153 MKDIR_P="$ac_cv_path_mkdir -p" 2154 else 2155 # As a last resort, use the slow shell script. Don't cache a 2156 # value for MKDIR_P within a source directory, because that will 2157 # break other packages using the cache if that directory is 2158 # removed, or if the value is a relative name. 2159 test -d ./--version && rmdir ./--version 2160 MKDIR_P="$ac_install_sh -d" 2161 fi 2162fi 2163{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2164echo "${ECHO_T}$MKDIR_P" >&6; } 2165 2166mkdir_p="$MKDIR_P" 2167case $mkdir_p in 2168 [\\/$]* | ?:[\\/]*) ;; 2169 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2170esac 2171 2172for ac_prog in gawk mawk nawk awk 2173do 2174 # Extract the first word of "$ac_prog", so it can be a program name with args. 2175set dummy $ac_prog; ac_word=$2 2176{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2178if test "${ac_cv_prog_AWK+set}" = set; then 2179 echo $ECHO_N "(cached) $ECHO_C" >&6 2180else 2181 if test -n "$AWK"; then 2182 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2183else 2184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2185for as_dir in $PATH 2186do 2187 IFS=$as_save_IFS 2188 test -z "$as_dir" && as_dir=. 2189 for ac_exec_ext in '' $ac_executable_extensions; do 2190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2191 ac_cv_prog_AWK="$ac_prog" 2192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2193 break 2 2194 fi 2195done 2196done 2197IFS=$as_save_IFS 2198 2199fi 2200fi 2201AWK=$ac_cv_prog_AWK 2202if test -n "$AWK"; then 2203 { echo "$as_me:$LINENO: result: $AWK" >&5 2204echo "${ECHO_T}$AWK" >&6; } 2205else 2206 { echo "$as_me:$LINENO: result: no" >&5 2207echo "${ECHO_T}no" >&6; } 2208fi 2209 2210 2211 test -n "$AWK" && break 2212done 2213 2214{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2215echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2216set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2217if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2218 echo $ECHO_N "(cached) $ECHO_C" >&6 2219else 2220 cat >conftest.make <<\_ACEOF 2221SHELL = /bin/sh 2222all: 2223 @echo '@@@%%%=$(MAKE)=@@@%%%' 2224_ACEOF 2225# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2226case `${MAKE-make} -f conftest.make 2>/dev/null` in 2227 *@@@%%%=?*=@@@%%%*) 2228 eval ac_cv_prog_make_${ac_make}_set=yes;; 2229 *) 2230 eval ac_cv_prog_make_${ac_make}_set=no;; 2231esac 2232rm -f conftest.make 2233fi 2234if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2235 { echo "$as_me:$LINENO: result: yes" >&5 2236echo "${ECHO_T}yes" >&6; } 2237 SET_MAKE= 2238else 2239 { echo "$as_me:$LINENO: result: no" >&5 2240echo "${ECHO_T}no" >&6; } 2241 SET_MAKE="MAKE=${MAKE-make}" 2242fi 2243 2244rm -rf .tst 2>/dev/null 2245mkdir .tst 2>/dev/null 2246if test -d .tst; then 2247 am__leading_dot=. 2248else 2249 am__leading_dot=_ 2250fi 2251rmdir .tst 2>/dev/null 2252 2253if test "`cd $srcdir && pwd`" != "`pwd`"; then 2254 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2255 # is not polluted with repeated "-I." 2256 am__isrc=' -I$(srcdir)' 2257 # test to see if srcdir already configured 2258 if test -f $srcdir/config.status; then 2259 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2260echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2261 { (exit 1); exit 1; }; } 2262 fi 2263fi 2264 2265# test whether we have cygpath 2266if test -z "$CYGPATH_W"; then 2267 if (cygpath --version) >/dev/null 2>/dev/null; then 2268 CYGPATH_W='cygpath -w' 2269 else 2270 CYGPATH_W=echo 2271 fi 2272fi 2273 2274 2275# Define the identity of the package. 2276 PACKAGE=aacgain 2277 VERSION=1.4 2278 2279 2280cat >>confdefs.h <<_ACEOF 2281@%:@define PACKAGE "$PACKAGE" 2282_ACEOF 2283 2284 2285cat >>confdefs.h <<_ACEOF 2286@%:@define VERSION "$VERSION" 2287_ACEOF 2288 2289# Some tools Automake needs. 2290 2291ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2292 2293 2294AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2295 2296 2297AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2298 2299 2300AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2301 2302 2303MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2304 2305install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2306 2307# Installed binaries are usually stripped using `strip' when the user 2308# run `make install-strip'. However `strip' might not be the right 2309# tool to use in cross-compilation environments, therefore Automake 2310# will honor the `STRIP' environment variable to overrule this program. 2311if test "$cross_compiling" != no; then 2312 if test -n "$ac_tool_prefix"; then 2313 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2314set dummy ${ac_tool_prefix}strip; ac_word=$2 2315{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2317if test "${ac_cv_prog_STRIP+set}" = set; then 2318 echo $ECHO_N "(cached) $ECHO_C" >&6 2319else 2320 if test -n "$STRIP"; then 2321 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2322else 2323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2324for as_dir in $PATH 2325do 2326 IFS=$as_save_IFS 2327 test -z "$as_dir" && as_dir=. 2328 for ac_exec_ext in '' $ac_executable_extensions; do 2329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2330 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2332 break 2 2333 fi 2334done 2335done 2336IFS=$as_save_IFS 2337 2338fi 2339fi 2340STRIP=$ac_cv_prog_STRIP 2341if test -n "$STRIP"; then 2342 { echo "$as_me:$LINENO: result: $STRIP" >&5 2343echo "${ECHO_T}$STRIP" >&6; } 2344else 2345 { echo "$as_me:$LINENO: result: no" >&5 2346echo "${ECHO_T}no" >&6; } 2347fi 2348 2349 2350fi 2351if test -z "$ac_cv_prog_STRIP"; then 2352 ac_ct_STRIP=$STRIP 2353 # Extract the first word of "strip", so it can be a program name with args. 2354set dummy strip; ac_word=$2 2355{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2357if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2358 echo $ECHO_N "(cached) $ECHO_C" >&6 2359else 2360 if test -n "$ac_ct_STRIP"; then 2361 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2362else 2363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2364for as_dir in $PATH 2365do 2366 IFS=$as_save_IFS 2367 test -z "$as_dir" && as_dir=. 2368 for ac_exec_ext in '' $ac_executable_extensions; do 2369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2370 ac_cv_prog_ac_ct_STRIP="strip" 2371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2372 break 2 2373 fi 2374done 2375done 2376IFS=$as_save_IFS 2377 2378fi 2379fi 2380ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2381if test -n "$ac_ct_STRIP"; then 2382 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2383echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2384else 2385 { echo "$as_me:$LINENO: result: no" >&5 2386echo "${ECHO_T}no" >&6; } 2387fi 2388 2389 if test "x$ac_ct_STRIP" = x; then 2390 STRIP=":" 2391 else 2392 case $cross_compiling:$ac_tool_warned in 2393yes:) 2394{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2395whose name does not start with the host triplet. If you think this 2396configuration is useful to you, please write to autoconf@gnu.org." >&5 2397echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2398whose name does not start with the host triplet. If you think this 2399configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2400ac_tool_warned=yes ;; 2401esac 2402 STRIP=$ac_ct_STRIP 2403 fi 2404else 2405 STRIP="$ac_cv_prog_STRIP" 2406fi 2407 2408fi 2409INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2410 2411# We need awk for the "check" target. The system "awk" is bad on 2412# some platforms. 2413# Always define AMTAR for backward compatibility. 2414 2415AMTAR=${AMTAR-"${am_missing_run}tar"} 2416 2417am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2418 2419 2420 2421 2422 2423ac_ext=cpp 2424ac_cpp='$CXXCPP $CPPFLAGS' 2425ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2426ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2427ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2428 2429ac_ext=c 2430ac_cpp='$CPP $CPPFLAGS' 2431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2433ac_compiler_gnu=$ac_cv_c_compiler_gnu 2434if test -n "$ac_tool_prefix"; then 2435 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2436set dummy ${ac_tool_prefix}gcc; ac_word=$2 2437{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2439if test "${ac_cv_prog_CC+set}" = set; then 2440 echo $ECHO_N "(cached) $ECHO_C" >&6 2441else 2442 if test -n "$CC"; then 2443 ac_cv_prog_CC="$CC" # Let the user override the test. 2444else 2445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2446for as_dir in $PATH 2447do 2448 IFS=$as_save_IFS 2449 test -z "$as_dir" && as_dir=. 2450 for ac_exec_ext in '' $ac_executable_extensions; do 2451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2452 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2454 break 2 2455 fi 2456done 2457done 2458IFS=$as_save_IFS 2459 2460fi 2461fi 2462CC=$ac_cv_prog_CC 2463if test -n "$CC"; then 2464 { echo "$as_me:$LINENO: result: $CC" >&5 2465echo "${ECHO_T}$CC" >&6; } 2466else 2467 { echo "$as_me:$LINENO: result: no" >&5 2468echo "${ECHO_T}no" >&6; } 2469fi 2470 2471 2472fi 2473if test -z "$ac_cv_prog_CC"; then 2474 ac_ct_CC=$CC 2475 # Extract the first word of "gcc", so it can be a program name with args. 2476set dummy gcc; ac_word=$2 2477{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2478echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2479if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2480 echo $ECHO_N "(cached) $ECHO_C" >&6 2481else 2482 if test -n "$ac_ct_CC"; then 2483 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2484else 2485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2486for as_dir in $PATH 2487do 2488 IFS=$as_save_IFS 2489 test -z "$as_dir" && as_dir=. 2490 for ac_exec_ext in '' $ac_executable_extensions; do 2491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2492 ac_cv_prog_ac_ct_CC="gcc" 2493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2494 break 2 2495 fi 2496done 2497done 2498IFS=$as_save_IFS 2499 2500fi 2501fi 2502ac_ct_CC=$ac_cv_prog_ac_ct_CC 2503if test -n "$ac_ct_CC"; then 2504 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2505echo "${ECHO_T}$ac_ct_CC" >&6; } 2506else 2507 { echo "$as_me:$LINENO: result: no" >&5 2508echo "${ECHO_T}no" >&6; } 2509fi 2510 2511 if test "x$ac_ct_CC" = x; then 2512 CC="" 2513 else 2514 case $cross_compiling:$ac_tool_warned in 2515yes:) 2516{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2517whose name does not start with the host triplet. If you think this 2518configuration is useful to you, please write to autoconf@gnu.org." >&5 2519echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2520whose name does not start with the host triplet. If you think this 2521configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2522ac_tool_warned=yes ;; 2523esac 2524 CC=$ac_ct_CC 2525 fi 2526else 2527 CC="$ac_cv_prog_CC" 2528fi 2529 2530if test -z "$CC"; then 2531 if test -n "$ac_tool_prefix"; then 2532 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2533set dummy ${ac_tool_prefix}cc; ac_word=$2 2534{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2535echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2536if test "${ac_cv_prog_CC+set}" = set; then 2537 echo $ECHO_N "(cached) $ECHO_C" >&6 2538else 2539 if test -n "$CC"; then 2540 ac_cv_prog_CC="$CC" # Let the user override the test. 2541else 2542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2543for as_dir in $PATH 2544do 2545 IFS=$as_save_IFS 2546 test -z "$as_dir" && as_dir=. 2547 for ac_exec_ext in '' $ac_executable_extensions; do 2548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2549 ac_cv_prog_CC="${ac_tool_prefix}cc" 2550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2551 break 2 2552 fi 2553done 2554done 2555IFS=$as_save_IFS 2556 2557fi 2558fi 2559CC=$ac_cv_prog_CC 2560if test -n "$CC"; then 2561 { echo "$as_me:$LINENO: result: $CC" >&5 2562echo "${ECHO_T}$CC" >&6; } 2563else 2564 { echo "$as_me:$LINENO: result: no" >&5 2565echo "${ECHO_T}no" >&6; } 2566fi 2567 2568 2569 fi 2570fi 2571if test -z "$CC"; then 2572 # Extract the first word of "cc", so it can be a program name with args. 2573set dummy cc; ac_word=$2 2574{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2576if test "${ac_cv_prog_CC+set}" = set; then 2577 echo $ECHO_N "(cached) $ECHO_C" >&6 2578else 2579 if test -n "$CC"; then 2580 ac_cv_prog_CC="$CC" # Let the user override the test. 2581else 2582 ac_prog_rejected=no 2583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2584for as_dir in $PATH 2585do 2586 IFS=$as_save_IFS 2587 test -z "$as_dir" && as_dir=. 2588 for ac_exec_ext in '' $ac_executable_extensions; do 2589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2590 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2591 ac_prog_rejected=yes 2592 continue 2593 fi 2594 ac_cv_prog_CC="cc" 2595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2596 break 2 2597 fi 2598done 2599done 2600IFS=$as_save_IFS 2601 2602if test $ac_prog_rejected = yes; then 2603 # We found a bogon in the path, so make sure we never use it. 2604 set dummy $ac_cv_prog_CC 2605 shift 2606 if test $@%:@ != 0; then 2607 # We chose a different compiler from the bogus one. 2608 # However, it has the same basename, so the bogon will be chosen 2609 # first if we set CC to just the basename; use the full file name. 2610 shift 2611 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2612 fi 2613fi 2614fi 2615fi 2616CC=$ac_cv_prog_CC 2617if test -n "$CC"; then 2618 { echo "$as_me:$LINENO: result: $CC" >&5 2619echo "${ECHO_T}$CC" >&6; } 2620else 2621 { echo "$as_me:$LINENO: result: no" >&5 2622echo "${ECHO_T}no" >&6; } 2623fi 2624 2625 2626fi 2627if test -z "$CC"; then 2628 if test -n "$ac_tool_prefix"; then 2629 for ac_prog in cl.exe 2630 do 2631 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2632set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2633{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2635if test "${ac_cv_prog_CC+set}" = set; then 2636 echo $ECHO_N "(cached) $ECHO_C" >&6 2637else 2638 if test -n "$CC"; then 2639 ac_cv_prog_CC="$CC" # Let the user override the test. 2640else 2641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2642for as_dir in $PATH 2643do 2644 IFS=$as_save_IFS 2645 test -z "$as_dir" && as_dir=. 2646 for ac_exec_ext in '' $ac_executable_extensions; do 2647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2648 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2650 break 2 2651 fi 2652done 2653done 2654IFS=$as_save_IFS 2655 2656fi 2657fi 2658CC=$ac_cv_prog_CC 2659if test -n "$CC"; then 2660 { echo "$as_me:$LINENO: result: $CC" >&5 2661echo "${ECHO_T}$CC" >&6; } 2662else 2663 { echo "$as_me:$LINENO: result: no" >&5 2664echo "${ECHO_T}no" >&6; } 2665fi 2666 2667 2668 test -n "$CC" && break 2669 done 2670fi 2671if test -z "$CC"; then 2672 ac_ct_CC=$CC 2673 for ac_prog in cl.exe 2674do 2675 # Extract the first word of "$ac_prog", so it can be a program name with args. 2676set dummy $ac_prog; ac_word=$2 2677{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2679if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2680 echo $ECHO_N "(cached) $ECHO_C" >&6 2681else 2682 if test -n "$ac_ct_CC"; then 2683 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2684else 2685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2686for as_dir in $PATH 2687do 2688 IFS=$as_save_IFS 2689 test -z "$as_dir" && as_dir=. 2690 for ac_exec_ext in '' $ac_executable_extensions; do 2691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2692 ac_cv_prog_ac_ct_CC="$ac_prog" 2693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2694 break 2 2695 fi 2696done 2697done 2698IFS=$as_save_IFS 2699 2700fi 2701fi 2702ac_ct_CC=$ac_cv_prog_ac_ct_CC 2703if test -n "$ac_ct_CC"; then 2704 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2705echo "${ECHO_T}$ac_ct_CC" >&6; } 2706else 2707 { echo "$as_me:$LINENO: result: no" >&5 2708echo "${ECHO_T}no" >&6; } 2709fi 2710 2711 2712 test -n "$ac_ct_CC" && break 2713done 2714 2715 if test "x$ac_ct_CC" = x; then 2716 CC="" 2717 else 2718 case $cross_compiling:$ac_tool_warned in 2719yes:) 2720{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2721whose name does not start with the host triplet. If you think this 2722configuration is useful to you, please write to autoconf@gnu.org." >&5 2723echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2724whose name does not start with the host triplet. If you think this 2725configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2726ac_tool_warned=yes ;; 2727esac 2728 CC=$ac_ct_CC 2729 fi 2730fi 2731 2732fi 2733 2734 2735test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2736See \`config.log' for more details." >&5 2737echo "$as_me: error: no acceptable C compiler found in \$PATH 2738See \`config.log' for more details." >&2;} 2739 { (exit 1); exit 1; }; } 2740 2741# Provide some information about the compiler. 2742echo "$as_me:$LINENO: checking for C compiler version" >&5 2743ac_compiler=`set X $ac_compile; echo $2` 2744{ (ac_try="$ac_compiler --version >&5" 2745case "(($ac_try" in 2746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2747 *) ac_try_echo=$ac_try;; 2748esac 2749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2750 (eval "$ac_compiler --version >&5") 2>&5 2751 ac_status=$? 2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2753 (exit $ac_status); } 2754{ (ac_try="$ac_compiler -v >&5" 2755case "(($ac_try" in 2756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2757 *) ac_try_echo=$ac_try;; 2758esac 2759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2760 (eval "$ac_compiler -v >&5") 2>&5 2761 ac_status=$? 2762 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2763 (exit $ac_status); } 2764{ (ac_try="$ac_compiler -V >&5" 2765case "(($ac_try" in 2766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2767 *) ac_try_echo=$ac_try;; 2768esac 2769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2770 (eval "$ac_compiler -V >&5") 2>&5 2771 ac_status=$? 2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2773 (exit $ac_status); } 2774 2775cat >conftest.$ac_ext <<_ACEOF 2776/* confdefs.h. */ 2777_ACEOF 2778cat confdefs.h >>conftest.$ac_ext 2779cat >>conftest.$ac_ext <<_ACEOF 2780/* end confdefs.h. */ 2781 2782int 2783main () 2784{ 2785 2786 ; 2787 return 0; 2788} 2789_ACEOF 2790ac_clean_files_save=$ac_clean_files 2791ac_clean_files="$ac_clean_files a.out a.exe b.out" 2792# Try to create an executable without -o first, disregard a.out. 2793# It will help us diagnose broken compilers, and finding out an intuition 2794# of exeext. 2795{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2796echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2797ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2798# 2799# List of possible output files, starting from the most likely. 2800# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2801# only as a last resort. b.out is created by i960 compilers. 2802ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2803# 2804# The IRIX 6 linker writes into existing files which may not be 2805# executable, retaining their permissions. Remove them first so a 2806# subsequent execution test works. 2807ac_rmfiles= 2808for ac_file in $ac_files 2809do 2810 case $ac_file in 2811 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2812 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2813 esac 2814done 2815rm -f $ac_rmfiles 2816 2817if { (ac_try="$ac_link_default" 2818case "(($ac_try" in 2819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2820 *) ac_try_echo=$ac_try;; 2821esac 2822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2823 (eval "$ac_link_default") 2>&5 2824 ac_status=$? 2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2826 (exit $ac_status); }; then 2827 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2828# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2829# in a Makefile. We should not override ac_cv_exeext if it was cached, 2830# so that the user can short-circuit this test for compilers unknown to 2831# Autoconf. 2832for ac_file in $ac_files '' 2833do 2834 test -f "$ac_file" || continue 2835 case $ac_file in 2836 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2837 ;; 2838 [ab].out ) 2839 # We found the default executable, but exeext='' is most 2840 # certainly right. 2841 break;; 2842 *.* ) 2843 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2844 then :; else 2845 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2846 fi 2847 # We set ac_cv_exeext here because the later test for it is not 2848 # safe: cross compilers may not add the suffix if given an `-o' 2849 # argument, so we may need to know it at that point already. 2850 # Even if this section looks crufty: it has the advantage of 2851 # actually working. 2852 break;; 2853 * ) 2854 break;; 2855 esac 2856done 2857test "$ac_cv_exeext" = no && ac_cv_exeext= 2858 2859else 2860 ac_file='' 2861fi 2862 2863{ echo "$as_me:$LINENO: result: $ac_file" >&5 2864echo "${ECHO_T}$ac_file" >&6; } 2865if test -z "$ac_file"; then 2866 echo "$as_me: failed program was:" >&5 2867sed 's/^/| /' conftest.$ac_ext >&5 2868 2869{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2870See \`config.log' for more details." >&5 2871echo "$as_me: error: C compiler cannot create executables 2872See \`config.log' for more details." >&2;} 2873 { (exit 77); exit 77; }; } 2874fi 2875 2876ac_exeext=$ac_cv_exeext 2877 2878# Check that the compiler produces executables we can run. If not, either 2879# the compiler is broken, or we cross compile. 2880{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2881echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2882# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2883# If not cross compiling, check that we can run a simple program. 2884if test "$cross_compiling" != yes; then 2885 if { ac_try='./$ac_file' 2886 { (case "(($ac_try" in 2887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2888 *) ac_try_echo=$ac_try;; 2889esac 2890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2891 (eval "$ac_try") 2>&5 2892 ac_status=$? 2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2894 (exit $ac_status); }; }; then 2895 cross_compiling=no 2896 else 2897 if test "$cross_compiling" = maybe; then 2898 cross_compiling=yes 2899 else 2900 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2901If you meant to cross compile, use \`--host'. 2902See \`config.log' for more details." >&5 2903echo "$as_me: error: cannot run C compiled programs. 2904If you meant to cross compile, use \`--host'. 2905See \`config.log' for more details." >&2;} 2906 { (exit 1); exit 1; }; } 2907 fi 2908 fi 2909fi 2910{ echo "$as_me:$LINENO: result: yes" >&5 2911echo "${ECHO_T}yes" >&6; } 2912 2913rm -f a.out a.exe conftest$ac_cv_exeext b.out 2914ac_clean_files=$ac_clean_files_save 2915# Check that the compiler produces executables we can run. If not, either 2916# the compiler is broken, or we cross compile. 2917{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2918echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2919{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2920echo "${ECHO_T}$cross_compiling" >&6; } 2921 2922{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2923echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2924if { (ac_try="$ac_link" 2925case "(($ac_try" in 2926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2927 *) ac_try_echo=$ac_try;; 2928esac 2929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2930 (eval "$ac_link") 2>&5 2931 ac_status=$? 2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2933 (exit $ac_status); }; then 2934 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2935# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2936# work properly (i.e., refer to `conftest.exe'), while it won't with 2937# `rm'. 2938for ac_file in conftest.exe conftest conftest.*; do 2939 test -f "$ac_file" || continue 2940 case $ac_file in 2941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2942 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2943 break;; 2944 * ) break;; 2945 esac 2946done 2947else 2948 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2949See \`config.log' for more details." >&5 2950echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2951See \`config.log' for more details." >&2;} 2952 { (exit 1); exit 1; }; } 2953fi 2954 2955rm -f conftest$ac_cv_exeext 2956{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2957echo "${ECHO_T}$ac_cv_exeext" >&6; } 2958 2959rm -f conftest.$ac_ext 2960EXEEXT=$ac_cv_exeext 2961ac_exeext=$EXEEXT 2962{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2963echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2964if test "${ac_cv_objext+set}" = set; then 2965 echo $ECHO_N "(cached) $ECHO_C" >&6 2966else 2967 cat >conftest.$ac_ext <<_ACEOF 2968/* confdefs.h. */ 2969_ACEOF 2970cat confdefs.h >>conftest.$ac_ext 2971cat >>conftest.$ac_ext <<_ACEOF 2972/* end confdefs.h. */ 2973 2974int 2975main () 2976{ 2977 2978 ; 2979 return 0; 2980} 2981_ACEOF 2982rm -f conftest.o conftest.obj 2983if { (ac_try="$ac_compile" 2984case "(($ac_try" in 2985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2986 *) ac_try_echo=$ac_try;; 2987esac 2988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2989 (eval "$ac_compile") 2>&5 2990 ac_status=$? 2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2992 (exit $ac_status); }; then 2993 for ac_file in conftest.o conftest.obj conftest.*; do 2994 test -f "$ac_file" || continue; 2995 case $ac_file in 2996 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2997 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2998 break;; 2999 esac 3000done 3001else 3002 echo "$as_me: failed program was:" >&5 3003sed 's/^/| /' conftest.$ac_ext >&5 3004 3005{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3006See \`config.log' for more details." >&5 3007echo "$as_me: error: cannot compute suffix of object files: cannot compile 3008See \`config.log' for more details." >&2;} 3009 { (exit 1); exit 1; }; } 3010fi 3011 3012rm -f conftest.$ac_cv_objext conftest.$ac_ext 3013fi 3014{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3015echo "${ECHO_T}$ac_cv_objext" >&6; } 3016OBJEXT=$ac_cv_objext 3017ac_objext=$OBJEXT 3018{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3019echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3020if test "${ac_cv_c_compiler_gnu+set}" = set; then 3021 echo $ECHO_N "(cached) $ECHO_C" >&6 3022else 3023 cat >conftest.$ac_ext <<_ACEOF 3024/* confdefs.h. */ 3025_ACEOF 3026cat confdefs.h >>conftest.$ac_ext 3027cat >>conftest.$ac_ext <<_ACEOF 3028/* end confdefs.h. */ 3029 3030int 3031main () 3032{ 3033#ifndef __GNUC__ 3034 choke me 3035#endif 3036 3037 ; 3038 return 0; 3039} 3040_ACEOF 3041rm -f conftest.$ac_objext 3042if { (ac_try="$ac_compile" 3043case "(($ac_try" in 3044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3045 *) ac_try_echo=$ac_try;; 3046esac 3047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3048 (eval "$ac_compile") 2>conftest.er1 3049 ac_status=$? 3050 grep -v '^ *+' conftest.er1 >conftest.err 3051 rm -f conftest.er1 3052 cat conftest.err >&5 3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3054 (exit $ac_status); } && { 3055 test -z "$ac_c_werror_flag" || 3056 test ! -s conftest.err 3057 } && test -s conftest.$ac_objext; then 3058 ac_compiler_gnu=yes 3059else 3060 echo "$as_me: failed program was:" >&5 3061sed 's/^/| /' conftest.$ac_ext >&5 3062 3063 ac_compiler_gnu=no 3064fi 3065 3066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3067ac_cv_c_compiler_gnu=$ac_compiler_gnu 3068 3069fi 3070{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3071echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3072GCC=`test $ac_compiler_gnu = yes && echo yes` 3073ac_test_CFLAGS=${CFLAGS+set} 3074ac_save_CFLAGS=$CFLAGS 3075{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3076echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3077if test "${ac_cv_prog_cc_g+set}" = set; then 3078 echo $ECHO_N "(cached) $ECHO_C" >&6 3079else 3080 ac_save_c_werror_flag=$ac_c_werror_flag 3081 ac_c_werror_flag=yes 3082 ac_cv_prog_cc_g=no 3083 CFLAGS="-g" 3084 cat >conftest.$ac_ext <<_ACEOF 3085/* confdefs.h. */ 3086_ACEOF 3087cat confdefs.h >>conftest.$ac_ext 3088cat >>conftest.$ac_ext <<_ACEOF 3089/* end confdefs.h. */ 3090 3091int 3092main () 3093{ 3094 3095 ; 3096 return 0; 3097} 3098_ACEOF 3099rm -f conftest.$ac_objext 3100if { (ac_try="$ac_compile" 3101case "(($ac_try" in 3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3103 *) ac_try_echo=$ac_try;; 3104esac 3105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3106 (eval "$ac_compile") 2>conftest.er1 3107 ac_status=$? 3108 grep -v '^ *+' conftest.er1 >conftest.err 3109 rm -f conftest.er1 3110 cat conftest.err >&5 3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3112 (exit $ac_status); } && { 3113 test -z "$ac_c_werror_flag" || 3114 test ! -s conftest.err 3115 } && test -s conftest.$ac_objext; then 3116 ac_cv_prog_cc_g=yes 3117else 3118 echo "$as_me: failed program was:" >&5 3119sed 's/^/| /' conftest.$ac_ext >&5 3120 3121 CFLAGS="" 3122 cat >conftest.$ac_ext <<_ACEOF 3123/* confdefs.h. */ 3124_ACEOF 3125cat confdefs.h >>conftest.$ac_ext 3126cat >>conftest.$ac_ext <<_ACEOF 3127/* end confdefs.h. */ 3128 3129int 3130main () 3131{ 3132 3133 ; 3134 return 0; 3135} 3136_ACEOF 3137rm -f conftest.$ac_objext 3138if { (ac_try="$ac_compile" 3139case "(($ac_try" in 3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3141 *) ac_try_echo=$ac_try;; 3142esac 3143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3144 (eval "$ac_compile") 2>conftest.er1 3145 ac_status=$? 3146 grep -v '^ *+' conftest.er1 >conftest.err 3147 rm -f conftest.er1 3148 cat conftest.err >&5 3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3150 (exit $ac_status); } && { 3151 test -z "$ac_c_werror_flag" || 3152 test ! -s conftest.err 3153 } && test -s conftest.$ac_objext; then 3154 : 3155else 3156 echo "$as_me: failed program was:" >&5 3157sed 's/^/| /' conftest.$ac_ext >&5 3158 3159 ac_c_werror_flag=$ac_save_c_werror_flag 3160 CFLAGS="-g" 3161 cat >conftest.$ac_ext <<_ACEOF 3162/* confdefs.h. */ 3163_ACEOF 3164cat confdefs.h >>conftest.$ac_ext 3165cat >>conftest.$ac_ext <<_ACEOF 3166/* end confdefs.h. */ 3167 3168int 3169main () 3170{ 3171 3172 ; 3173 return 0; 3174} 3175_ACEOF 3176rm -f conftest.$ac_objext 3177if { (ac_try="$ac_compile" 3178case "(($ac_try" in 3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3180 *) ac_try_echo=$ac_try;; 3181esac 3182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3183 (eval "$ac_compile") 2>conftest.er1 3184 ac_status=$? 3185 grep -v '^ *+' conftest.er1 >conftest.err 3186 rm -f conftest.er1 3187 cat conftest.err >&5 3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3189 (exit $ac_status); } && { 3190 test -z "$ac_c_werror_flag" || 3191 test ! -s conftest.err 3192 } && test -s conftest.$ac_objext; then 3193 ac_cv_prog_cc_g=yes 3194else 3195 echo "$as_me: failed program was:" >&5 3196sed 's/^/| /' conftest.$ac_ext >&5 3197 3198 3199fi 3200 3201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3202fi 3203 3204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3205fi 3206 3207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3208 ac_c_werror_flag=$ac_save_c_werror_flag 3209fi 3210{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3211echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3212if test "$ac_test_CFLAGS" = set; then 3213 CFLAGS=$ac_save_CFLAGS 3214elif test $ac_cv_prog_cc_g = yes; then 3215 if test "$GCC" = yes; then 3216 CFLAGS="-g -O2" 3217 else 3218 CFLAGS="-g" 3219 fi 3220else 3221 if test "$GCC" = yes; then 3222 CFLAGS="-O2" 3223 else 3224 CFLAGS= 3225 fi 3226fi 3227{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3228echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3229if test "${ac_cv_prog_cc_c89+set}" = set; then 3230 echo $ECHO_N "(cached) $ECHO_C" >&6 3231else 3232 ac_cv_prog_cc_c89=no 3233ac_save_CC=$CC 3234cat >conftest.$ac_ext <<_ACEOF 3235/* confdefs.h. */ 3236_ACEOF 3237cat confdefs.h >>conftest.$ac_ext 3238cat >>conftest.$ac_ext <<_ACEOF 3239/* end confdefs.h. */ 3240#include <stdarg.h> 3241#include <stdio.h> 3242#include <sys/types.h> 3243#include <sys/stat.h> 3244/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3245struct buf { int x; }; 3246FILE * (*rcsopen) (struct buf *, struct stat *, int); 3247static char *e (p, i) 3248 char **p; 3249 int i; 3250{ 3251 return p[i]; 3252} 3253static char *f (char * (*g) (char **, int), char **p, ...) 3254{ 3255 char *s; 3256 va_list v; 3257 va_start (v,p); 3258 s = g (p, va_arg (v,int)); 3259 va_end (v); 3260 return s; 3261} 3262 3263/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3264 function prototypes and stuff, but not '\xHH' hex character constants. 3265 These don't provoke an error unfortunately, instead are silently treated 3266 as 'x'. The following induces an error, until -std is added to get 3267 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3268 array size at least. It's necessary to write '\x00'==0 to get something 3269 that's true only with -std. */ 3270int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3271 3272/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3273 inside strings and character constants. */ 3274#define FOO(x) 'x' 3275int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3276 3277int test (int i, double x); 3278struct s1 {int (*f) (int a);}; 3279struct s2 {int (*f) (double a);}; 3280int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3281int argc; 3282char **argv; 3283int 3284main () 3285{ 3286return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3287 ; 3288 return 0; 3289} 3290_ACEOF 3291for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3292 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3293do 3294 CC="$ac_save_CC $ac_arg" 3295 rm -f conftest.$ac_objext 3296if { (ac_try="$ac_compile" 3297case "(($ac_try" in 3298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3299 *) ac_try_echo=$ac_try;; 3300esac 3301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3302 (eval "$ac_compile") 2>conftest.er1 3303 ac_status=$? 3304 grep -v '^ *+' conftest.er1 >conftest.err 3305 rm -f conftest.er1 3306 cat conftest.err >&5 3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3308 (exit $ac_status); } && { 3309 test -z "$ac_c_werror_flag" || 3310 test ! -s conftest.err 3311 } && test -s conftest.$ac_objext; then 3312 ac_cv_prog_cc_c89=$ac_arg 3313else 3314 echo "$as_me: failed program was:" >&5 3315sed 's/^/| /' conftest.$ac_ext >&5 3316 3317 3318fi 3319 3320rm -f core conftest.err conftest.$ac_objext 3321 test "x$ac_cv_prog_cc_c89" != "xno" && break 3322done 3323rm -f conftest.$ac_ext 3324CC=$ac_save_CC 3325 3326fi 3327# AC_CACHE_VAL 3328case "x$ac_cv_prog_cc_c89" in 3329 x) 3330 { echo "$as_me:$LINENO: result: none needed" >&5 3331echo "${ECHO_T}none needed" >&6; } ;; 3332 xno) 3333 { echo "$as_me:$LINENO: result: unsupported" >&5 3334echo "${ECHO_T}unsupported" >&6; } ;; 3335 *) 3336 CC="$CC $ac_cv_prog_cc_c89" 3337 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3338echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3339esac 3340 3341 3342ac_ext=cpp 3343ac_cpp='$CXXCPP $CPPFLAGS' 3344ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3345ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3346ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3347DEPDIR="${am__leading_dot}deps" 3348 3349ac_config_commands="$ac_config_commands depfiles" 3350 3351 3352am_make=${MAKE-make} 3353cat > confinc << 'END' 3354am__doit: 3355 @echo done 3356.PHONY: am__doit 3357END 3358# If we don't find an include directive, just comment out the code. 3359{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3360echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 3361am__include="#" 3362am__quote= 3363_am_result=none 3364# First try GNU make style include. 3365echo "include confinc" > confmf 3366# We grep out `Entering directory' and `Leaving directory' 3367# messages which can occur if `w' ends up in MAKEFLAGS. 3368# In particular we don't look at `^make:' because GNU make might 3369# be invoked under some other name (usually "gmake"), in which 3370# case it prints its new name instead of `make'. 3371if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3372 am__include=include 3373 am__quote= 3374 _am_result=GNU 3375fi 3376# Now try BSD make style include. 3377if test "$am__include" = "#"; then 3378 echo '.include "confinc"' > confmf 3379 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3380 am__include=.include 3381 am__quote="\"" 3382 _am_result=BSD 3383 fi 3384fi 3385 3386 3387{ echo "$as_me:$LINENO: result: $_am_result" >&5 3388echo "${ECHO_T}$_am_result" >&6; } 3389rm -f confinc confmf 3390 3391# Check whether --enable-dependency-tracking was given. 3392if test "${enable_dependency_tracking+set}" = set; then 3393 enableval=$enable_dependency_tracking; 3394fi 3395 3396if test "x$enable_dependency_tracking" != xno; then 3397 am_depcomp="$ac_aux_dir/depcomp" 3398 AMDEPBACKSLASH='\' 3399fi 3400 if test "x$enable_dependency_tracking" != xno; then 3401 AMDEP_TRUE= 3402 AMDEP_FALSE='#' 3403else 3404 AMDEP_TRUE='#' 3405 AMDEP_FALSE= 3406fi 3407 3408 3409 3410depcc="$CC" am_compiler_list= 3411 3412{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3413echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3414if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3415 echo $ECHO_N "(cached) $ECHO_C" >&6 3416else 3417 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3418 # We make a subdir and do the tests there. Otherwise we can end up 3419 # making bogus files that we don't know about and never remove. For 3420 # instance it was reported that on HP-UX the gcc test will end up 3421 # making a dummy file named `D' -- because `-MD' means `put the output 3422 # in D'. 3423 mkdir conftest.dir 3424 # Copy depcomp to subdir because otherwise we won't find it if we're 3425 # using a relative directory. 3426 cp "$am_depcomp" conftest.dir 3427 cd conftest.dir 3428 # We will build objects and dependencies in a subdirectory because 3429 # it helps to detect inapplicable dependency modes. For instance 3430 # both Tru64's cc and ICC support -MD to output dependencies as a 3431 # side effect of compilation, but ICC will put the dependencies in 3432 # the current directory while Tru64 will put them in the object 3433 # directory. 3434 mkdir sub 3435 3436 am_cv_CC_dependencies_compiler_type=none 3437 if test "$am_compiler_list" = ""; then 3438 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3439 fi 3440 for depmode in $am_compiler_list; do 3441 # Setup a source with many dependencies, because some compilers 3442 # like to wrap large dependency lists on column 80 (with \), and 3443 # we should not choose a depcomp mode which is confused by this. 3444 # 3445 # We need to recreate these files for each test, as the compiler may 3446 # overwrite some of them when testing with obscure command lines. 3447 # This happens at least with the AIX C compiler. 3448 : > sub/conftest.c 3449 for i in 1 2 3 4 5 6; do 3450 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3451 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3452 # Solaris 8's {/usr,}/bin/sh. 3453 touch sub/conftst$i.h 3454 done 3455 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3456 3457 case $depmode in 3458 nosideeffect) 3459 # after this tag, mechanisms are not by side-effect, so they'll 3460 # only be used when explicitly requested 3461 if test "x$enable_dependency_tracking" = xyes; then 3462 continue 3463 else 3464 break 3465 fi 3466 ;; 3467 none) break ;; 3468 esac 3469 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3470 # mode. It turns out that the SunPro C++ compiler does not properly 3471 # handle `-M -o', and we need to detect this. 3472 if depmode=$depmode \ 3473 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3474 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3475 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3476 >/dev/null 2>conftest.err && 3477 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3478 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3479 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3480 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3481 # icc doesn't choke on unknown options, it will just issue warnings 3482 # or remarks (even with -Werror). So we grep stderr for any message 3483 # that says an option was ignored or not supported. 3484 # When given -MP, icc 7.0 and 7.1 complain thusly: 3485 # icc: Command line warning: ignoring option '-M'; no argument required 3486 # The diagnosis changed in icc 8.0: 3487 # icc: Command line remark: option '-MP' not supported 3488 if (grep 'ignoring option' conftest.err || 3489 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3490 am_cv_CC_dependencies_compiler_type=$depmode 3491 break 3492 fi 3493 fi 3494 done 3495 3496 cd .. 3497 rm -rf conftest.dir 3498else 3499 am_cv_CC_dependencies_compiler_type=none 3500fi 3501 3502fi 3503{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3504echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3505CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3506 3507 if 3508 test "x$enable_dependency_tracking" != xno \ 3509 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3510 am__fastdepCC_TRUE= 3511 am__fastdepCC_FALSE='#' 3512else 3513 am__fastdepCC_TRUE='#' 3514 am__fastdepCC_FALSE= 3515fi 3516 3517 3518ac_ext=cpp 3519ac_cpp='$CXXCPP $CPPFLAGS' 3520ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3521ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3522ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3523if test -z "$CXX"; then 3524 if test -n "$CCC"; then 3525 CXX=$CCC 3526 else 3527 if test -n "$ac_tool_prefix"; then 3528 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3529 do 3530 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3531set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3532{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3534if test "${ac_cv_prog_CXX+set}" = set; then 3535 echo $ECHO_N "(cached) $ECHO_C" >&6 3536else 3537 if test -n "$CXX"; then 3538 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3539else 3540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3541for as_dir in $PATH 3542do 3543 IFS=$as_save_IFS 3544 test -z "$as_dir" && as_dir=. 3545 for ac_exec_ext in '' $ac_executable_extensions; do 3546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3547 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3549 break 2 3550 fi 3551done 3552done 3553IFS=$as_save_IFS 3554 3555fi 3556fi 3557CXX=$ac_cv_prog_CXX 3558if test -n "$CXX"; then 3559 { echo "$as_me:$LINENO: result: $CXX" >&5 3560echo "${ECHO_T}$CXX" >&6; } 3561else 3562 { echo "$as_me:$LINENO: result: no" >&5 3563echo "${ECHO_T}no" >&6; } 3564fi 3565 3566 3567 test -n "$CXX" && break 3568 done 3569fi 3570if test -z "$CXX"; then 3571 ac_ct_CXX=$CXX 3572 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3573do 3574 # Extract the first word of "$ac_prog", so it can be a program name with args. 3575set dummy $ac_prog; ac_word=$2 3576{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3577echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3578if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 3579 echo $ECHO_N "(cached) $ECHO_C" >&6 3580else 3581 if test -n "$ac_ct_CXX"; then 3582 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3583else 3584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3585for as_dir in $PATH 3586do 3587 IFS=$as_save_IFS 3588 test -z "$as_dir" && as_dir=. 3589 for ac_exec_ext in '' $ac_executable_extensions; do 3590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3591 ac_cv_prog_ac_ct_CXX="$ac_prog" 3592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3593 break 2 3594 fi 3595done 3596done 3597IFS=$as_save_IFS 3598 3599fi 3600fi 3601ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3602if test -n "$ac_ct_CXX"; then 3603 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 3604echo "${ECHO_T}$ac_ct_CXX" >&6; } 3605else 3606 { echo "$as_me:$LINENO: result: no" >&5 3607echo "${ECHO_T}no" >&6; } 3608fi 3609 3610 3611 test -n "$ac_ct_CXX" && break 3612done 3613 3614 if test "x$ac_ct_CXX" = x; then 3615 CXX="g++" 3616 else 3617 case $cross_compiling:$ac_tool_warned in 3618yes:) 3619{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3620whose name does not start with the host triplet. If you think this 3621configuration is useful to you, please write to autoconf@gnu.org." >&5 3622echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3623whose name does not start with the host triplet. If you think this 3624configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3625ac_tool_warned=yes ;; 3626esac 3627 CXX=$ac_ct_CXX 3628 fi 3629fi 3630 3631 fi 3632fi 3633# Provide some information about the compiler. 3634echo "$as_me:$LINENO: checking for C++ compiler version" >&5 3635ac_compiler=`set X $ac_compile; echo $2` 3636{ (ac_try="$ac_compiler --version >&5" 3637case "(($ac_try" in 3638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3639 *) ac_try_echo=$ac_try;; 3640esac 3641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3642 (eval "$ac_compiler --version >&5") 2>&5 3643 ac_status=$? 3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3645 (exit $ac_status); } 3646{ (ac_try="$ac_compiler -v >&5" 3647case "(($ac_try" in 3648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3649 *) ac_try_echo=$ac_try;; 3650esac 3651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3652 (eval "$ac_compiler -v >&5") 2>&5 3653 ac_status=$? 3654 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3655 (exit $ac_status); } 3656{ (ac_try="$ac_compiler -V >&5" 3657case "(($ac_try" in 3658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3659 *) ac_try_echo=$ac_try;; 3660esac 3661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3662 (eval "$ac_compiler -V >&5") 2>&5 3663 ac_status=$? 3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3665 (exit $ac_status); } 3666 3667{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 3668echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 3669if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 3670 echo $ECHO_N "(cached) $ECHO_C" >&6 3671else 3672 cat >conftest.$ac_ext <<_ACEOF 3673/* confdefs.h. */ 3674_ACEOF 3675cat confdefs.h >>conftest.$ac_ext 3676cat >>conftest.$ac_ext <<_ACEOF 3677/* end confdefs.h. */ 3678 3679int 3680main () 3681{ 3682#ifndef __GNUC__ 3683 choke me 3684#endif 3685 3686 ; 3687 return 0; 3688} 3689_ACEOF 3690rm -f conftest.$ac_objext 3691if { (ac_try="$ac_compile" 3692case "(($ac_try" in 3693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3694 *) ac_try_echo=$ac_try;; 3695esac 3696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3697 (eval "$ac_compile") 2>conftest.er1 3698 ac_status=$? 3699 grep -v '^ *+' conftest.er1 >conftest.err 3700 rm -f conftest.er1 3701 cat conftest.err >&5 3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3703 (exit $ac_status); } && { 3704 test -z "$ac_cxx_werror_flag" || 3705 test ! -s conftest.err 3706 } && test -s conftest.$ac_objext; then 3707 ac_compiler_gnu=yes 3708else 3709 echo "$as_me: failed program was:" >&5 3710sed 's/^/| /' conftest.$ac_ext >&5 3711 3712 ac_compiler_gnu=no 3713fi 3714 3715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3716ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3717 3718fi 3719{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 3720echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 3721GXX=`test $ac_compiler_gnu = yes && echo yes` 3722ac_test_CXXFLAGS=${CXXFLAGS+set} 3723ac_save_CXXFLAGS=$CXXFLAGS 3724{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 3725echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 3726if test "${ac_cv_prog_cxx_g+set}" = set; then 3727 echo $ECHO_N "(cached) $ECHO_C" >&6 3728else 3729 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3730 ac_cxx_werror_flag=yes 3731 ac_cv_prog_cxx_g=no 3732 CXXFLAGS="-g" 3733 cat >conftest.$ac_ext <<_ACEOF 3734/* confdefs.h. */ 3735_ACEOF 3736cat confdefs.h >>conftest.$ac_ext 3737cat >>conftest.$ac_ext <<_ACEOF 3738/* end confdefs.h. */ 3739 3740int 3741main () 3742{ 3743 3744 ; 3745 return 0; 3746} 3747_ACEOF 3748rm -f conftest.$ac_objext 3749if { (ac_try="$ac_compile" 3750case "(($ac_try" in 3751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3752 *) ac_try_echo=$ac_try;; 3753esac 3754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3755 (eval "$ac_compile") 2>conftest.er1 3756 ac_status=$? 3757 grep -v '^ *+' conftest.er1 >conftest.err 3758 rm -f conftest.er1 3759 cat conftest.err >&5 3760 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3761 (exit $ac_status); } && { 3762 test -z "$ac_cxx_werror_flag" || 3763 test ! -s conftest.err 3764 } && test -s conftest.$ac_objext; then 3765 ac_cv_prog_cxx_g=yes 3766else 3767 echo "$as_me: failed program was:" >&5 3768sed 's/^/| /' conftest.$ac_ext >&5 3769 3770 CXXFLAGS="" 3771 cat >conftest.$ac_ext <<_ACEOF 3772/* confdefs.h. */ 3773_ACEOF 3774cat confdefs.h >>conftest.$ac_ext 3775cat >>conftest.$ac_ext <<_ACEOF 3776/* end confdefs.h. */ 3777 3778int 3779main () 3780{ 3781 3782 ; 3783 return 0; 3784} 3785_ACEOF 3786rm -f conftest.$ac_objext 3787if { (ac_try="$ac_compile" 3788case "(($ac_try" in 3789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3790 *) ac_try_echo=$ac_try;; 3791esac 3792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3793 (eval "$ac_compile") 2>conftest.er1 3794 ac_status=$? 3795 grep -v '^ *+' conftest.er1 >conftest.err 3796 rm -f conftest.er1 3797 cat conftest.err >&5 3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3799 (exit $ac_status); } && { 3800 test -z "$ac_cxx_werror_flag" || 3801 test ! -s conftest.err 3802 } && test -s conftest.$ac_objext; then 3803 : 3804else 3805 echo "$as_me: failed program was:" >&5 3806sed 's/^/| /' conftest.$ac_ext >&5 3807 3808 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3809 CXXFLAGS="-g" 3810 cat >conftest.$ac_ext <<_ACEOF 3811/* confdefs.h. */ 3812_ACEOF 3813cat confdefs.h >>conftest.$ac_ext 3814cat >>conftest.$ac_ext <<_ACEOF 3815/* end confdefs.h. */ 3816 3817int 3818main () 3819{ 3820 3821 ; 3822 return 0; 3823} 3824_ACEOF 3825rm -f conftest.$ac_objext 3826if { (ac_try="$ac_compile" 3827case "(($ac_try" in 3828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3829 *) ac_try_echo=$ac_try;; 3830esac 3831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3832 (eval "$ac_compile") 2>conftest.er1 3833 ac_status=$? 3834 grep -v '^ *+' conftest.er1 >conftest.err 3835 rm -f conftest.er1 3836 cat conftest.err >&5 3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3838 (exit $ac_status); } && { 3839 test -z "$ac_cxx_werror_flag" || 3840 test ! -s conftest.err 3841 } && test -s conftest.$ac_objext; then 3842 ac_cv_prog_cxx_g=yes 3843else 3844 echo "$as_me: failed program was:" >&5 3845sed 's/^/| /' conftest.$ac_ext >&5 3846 3847 3848fi 3849 3850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3851fi 3852 3853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3854fi 3855 3856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3857 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3858fi 3859{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3860echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 3861if test "$ac_test_CXXFLAGS" = set; then 3862 CXXFLAGS=$ac_save_CXXFLAGS 3863elif test $ac_cv_prog_cxx_g = yes; then 3864 if test "$GXX" = yes; then 3865 CXXFLAGS="-g -O2" 3866 else 3867 CXXFLAGS="-g" 3868 fi 3869else 3870 if test "$GXX" = yes; then 3871 CXXFLAGS="-O2" 3872 else 3873 CXXFLAGS= 3874 fi 3875fi 3876ac_ext=cpp 3877ac_cpp='$CXXCPP $CPPFLAGS' 3878ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3879ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3880ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3881 3882depcc="$CXX" am_compiler_list= 3883 3884{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3885echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3886if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 3887 echo $ECHO_N "(cached) $ECHO_C" >&6 3888else 3889 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3890 # We make a subdir and do the tests there. Otherwise we can end up 3891 # making bogus files that we don't know about and never remove. For 3892 # instance it was reported that on HP-UX the gcc test will end up 3893 # making a dummy file named `D' -- because `-MD' means `put the output 3894 # in D'. 3895 mkdir conftest.dir 3896 # Copy depcomp to subdir because otherwise we won't find it if we're 3897 # using a relative directory. 3898 cp "$am_depcomp" conftest.dir 3899 cd conftest.dir 3900 # We will build objects and dependencies in a subdirectory because 3901 # it helps to detect inapplicable dependency modes. For instance 3902 # both Tru64's cc and ICC support -MD to output dependencies as a 3903 # side effect of compilation, but ICC will put the dependencies in 3904 # the current directory while Tru64 will put them in the object 3905 # directory. 3906 mkdir sub 3907 3908 am_cv_CXX_dependencies_compiler_type=none 3909 if test "$am_compiler_list" = ""; then 3910 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3911 fi 3912 for depmode in $am_compiler_list; do 3913 # Setup a source with many dependencies, because some compilers 3914 # like to wrap large dependency lists on column 80 (with \), and 3915 # we should not choose a depcomp mode which is confused by this. 3916 # 3917 # We need to recreate these files for each test, as the compiler may 3918 # overwrite some of them when testing with obscure command lines. 3919 # This happens at least with the AIX C compiler. 3920 : > sub/conftest.c 3921 for i in 1 2 3 4 5 6; do 3922 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3923 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3924 # Solaris 8's {/usr,}/bin/sh. 3925 touch sub/conftst$i.h 3926 done 3927 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3928 3929 case $depmode in 3930 nosideeffect) 3931 # after this tag, mechanisms are not by side-effect, so they'll 3932 # only be used when explicitly requested 3933 if test "x$enable_dependency_tracking" = xyes; then 3934 continue 3935 else 3936 break 3937 fi 3938 ;; 3939 none) break ;; 3940 esac 3941 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3942 # mode. It turns out that the SunPro C++ compiler does not properly 3943 # handle `-M -o', and we need to detect this. 3944 if depmode=$depmode \ 3945 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3946 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3947 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3948 >/dev/null 2>conftest.err && 3949 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3950 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3951 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3952 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3953 # icc doesn't choke on unknown options, it will just issue warnings 3954 # or remarks (even with -Werror). So we grep stderr for any message 3955 # that says an option was ignored or not supported. 3956 # When given -MP, icc 7.0 and 7.1 complain thusly: 3957 # icc: Command line warning: ignoring option '-M'; no argument required 3958 # The diagnosis changed in icc 8.0: 3959 # icc: Command line remark: option '-MP' not supported 3960 if (grep 'ignoring option' conftest.err || 3961 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3962 am_cv_CXX_dependencies_compiler_type=$depmode 3963 break 3964 fi 3965 fi 3966 done 3967 3968 cd .. 3969 rm -rf conftest.dir 3970else 3971 am_cv_CXX_dependencies_compiler_type=none 3972fi 3973 3974fi 3975{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 3976echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 3977CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 3978 3979 if 3980 test "x$enable_dependency_tracking" != xno \ 3981 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 3982 am__fastdepCXX_TRUE= 3983 am__fastdepCXX_FALSE='#' 3984else 3985 am__fastdepCXX_TRUE='#' 3986 am__fastdepCXX_FALSE= 3987fi 3988 3989 3990ac_ext=c 3991ac_cpp='$CPP $CPPFLAGS' 3992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3994ac_compiler_gnu=$ac_cv_c_compiler_gnu 3995{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3996echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3997# On Suns, sometimes $CPP names a directory. 3998if test -n "$CPP" && test -d "$CPP"; then 3999 CPP= 4000fi 4001if test -z "$CPP"; then 4002 if test "${ac_cv_prog_CPP+set}" = set; then 4003 echo $ECHO_N "(cached) $ECHO_C" >&6 4004else 4005 # Double quotes because CPP needs to be expanded 4006 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4007 do 4008 ac_preproc_ok=false 4009for ac_c_preproc_warn_flag in '' yes 4010do 4011 # Use a header file that comes with gcc, so configuring glibc 4012 # with a fresh cross-compiler works. 4013 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4014 # <limits.h> exists even on freestanding compilers. 4015 # On the NeXT, cc -E runs the code through the compiler's parser, 4016 # not just through cpp. "Syntax error" is here to catch this case. 4017 cat >conftest.$ac_ext <<_ACEOF 4018/* confdefs.h. */ 4019_ACEOF 4020cat confdefs.h >>conftest.$ac_ext 4021cat >>conftest.$ac_ext <<_ACEOF 4022/* end confdefs.h. */ 4023@%:@ifdef __STDC__ 4024@%:@ include <limits.h> 4025@%:@else 4026@%:@ include <assert.h> 4027@%:@endif 4028 Syntax error 4029_ACEOF 4030if { (ac_try="$ac_cpp conftest.$ac_ext" 4031case "(($ac_try" in 4032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4033 *) ac_try_echo=$ac_try;; 4034esac 4035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4037 ac_status=$? 4038 grep -v '^ *+' conftest.er1 >conftest.err 4039 rm -f conftest.er1 4040 cat conftest.err >&5 4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4042 (exit $ac_status); } >/dev/null && { 4043 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4044 test ! -s conftest.err 4045 }; then 4046 : 4047else 4048 echo "$as_me: failed program was:" >&5 4049sed 's/^/| /' conftest.$ac_ext >&5 4050 4051 # Broken: fails on valid input. 4052continue 4053fi 4054 4055rm -f conftest.err conftest.$ac_ext 4056 4057 # OK, works on sane cases. Now check whether nonexistent headers 4058 # can be detected and how. 4059 cat >conftest.$ac_ext <<_ACEOF 4060/* confdefs.h. */ 4061_ACEOF 4062cat confdefs.h >>conftest.$ac_ext 4063cat >>conftest.$ac_ext <<_ACEOF 4064/* end confdefs.h. */ 4065@%:@include <ac_nonexistent.h> 4066_ACEOF 4067if { (ac_try="$ac_cpp conftest.$ac_ext" 4068case "(($ac_try" in 4069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4070 *) ac_try_echo=$ac_try;; 4071esac 4072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4074 ac_status=$? 4075 grep -v '^ *+' conftest.er1 >conftest.err 4076 rm -f conftest.er1 4077 cat conftest.err >&5 4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4079 (exit $ac_status); } >/dev/null && { 4080 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4081 test ! -s conftest.err 4082 }; then 4083 # Broken: success on invalid input. 4084continue 4085else 4086 echo "$as_me: failed program was:" >&5 4087sed 's/^/| /' conftest.$ac_ext >&5 4088 4089 # Passes both tests. 4090ac_preproc_ok=: 4091break 4092fi 4093 4094rm -f conftest.err conftest.$ac_ext 4095 4096done 4097# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4098rm -f conftest.err conftest.$ac_ext 4099if $ac_preproc_ok; then 4100 break 4101fi 4102 4103 done 4104 ac_cv_prog_CPP=$CPP 4105 4106fi 4107 CPP=$ac_cv_prog_CPP 4108else 4109 ac_cv_prog_CPP=$CPP 4110fi 4111{ echo "$as_me:$LINENO: result: $CPP" >&5 4112echo "${ECHO_T}$CPP" >&6; } 4113ac_preproc_ok=false 4114for ac_c_preproc_warn_flag in '' yes 4115do 4116 # Use a header file that comes with gcc, so configuring glibc 4117 # with a fresh cross-compiler works. 4118 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4119 # <limits.h> exists even on freestanding compilers. 4120 # On the NeXT, cc -E runs the code through the compiler's parser, 4121 # not just through cpp. "Syntax error" is here to catch this case. 4122 cat >conftest.$ac_ext <<_ACEOF 4123/* confdefs.h. */ 4124_ACEOF 4125cat confdefs.h >>conftest.$ac_ext 4126cat >>conftest.$ac_ext <<_ACEOF 4127/* end confdefs.h. */ 4128@%:@ifdef __STDC__ 4129@%:@ include <limits.h> 4130@%:@else 4131@%:@ include <assert.h> 4132@%:@endif 4133 Syntax error 4134_ACEOF 4135if { (ac_try="$ac_cpp conftest.$ac_ext" 4136case "(($ac_try" in 4137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4138 *) ac_try_echo=$ac_try;; 4139esac 4140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4141 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4142 ac_status=$? 4143 grep -v '^ *+' conftest.er1 >conftest.err 4144 rm -f conftest.er1 4145 cat conftest.err >&5 4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4147 (exit $ac_status); } >/dev/null && { 4148 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4149 test ! -s conftest.err 4150 }; then 4151 : 4152else 4153 echo "$as_me: failed program was:" >&5 4154sed 's/^/| /' conftest.$ac_ext >&5 4155 4156 # Broken: fails on valid input. 4157continue 4158fi 4159 4160rm -f conftest.err conftest.$ac_ext 4161 4162 # OK, works on sane cases. Now check whether nonexistent headers 4163 # can be detected and how. 4164 cat >conftest.$ac_ext <<_ACEOF 4165/* confdefs.h. */ 4166_ACEOF 4167cat confdefs.h >>conftest.$ac_ext 4168cat >>conftest.$ac_ext <<_ACEOF 4169/* end confdefs.h. */ 4170@%:@include <ac_nonexistent.h> 4171_ACEOF 4172if { (ac_try="$ac_cpp conftest.$ac_ext" 4173case "(($ac_try" in 4174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4175 *) ac_try_echo=$ac_try;; 4176esac 4177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4179 ac_status=$? 4180 grep -v '^ *+' conftest.er1 >conftest.err 4181 rm -f conftest.er1 4182 cat conftest.err >&5 4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4184 (exit $ac_status); } >/dev/null && { 4185 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4186 test ! -s conftest.err 4187 }; then 4188 # Broken: success on invalid input. 4189continue 4190else 4191 echo "$as_me: failed program was:" >&5 4192sed 's/^/| /' conftest.$ac_ext >&5 4193 4194 # Passes both tests. 4195ac_preproc_ok=: 4196break 4197fi 4198 4199rm -f conftest.err conftest.$ac_ext 4200 4201done 4202# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4203rm -f conftest.err conftest.$ac_ext 4204if $ac_preproc_ok; then 4205 : 4206else 4207 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4208See \`config.log' for more details." >&5 4209echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4210See \`config.log' for more details." >&2;} 4211 { (exit 1); exit 1; }; } 4212fi 4213 4214ac_ext=cpp 4215ac_cpp='$CXXCPP $CPPFLAGS' 4216ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4217ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4218ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4219 4220 4221# Check whether --enable-static_build was given. 4222if test "${enable_static_build+set}" = set; then 4223 enableval=$enable_static_build; static_build=${enableval} 4224else 4225 static_build=yes 4226fi 4227 4228 4229 if test "$static_build" = "yes"; then 4230 do_static_build_TRUE= 4231 do_static_build_FALSE='#' 4232else 4233 do_static_build_TRUE='#' 4234 do_static_build_FALSE= 4235fi 4236 4237 4238 4239{ echo "$as_me:$LINENO: checking for inline" >&5 4240echo $ECHO_N "checking for inline... $ECHO_C" >&6; } 4241if test "${ac_cv_c_inline+set}" = set; then 4242 echo $ECHO_N "(cached) $ECHO_C" >&6 4243else 4244 ac_cv_c_inline=no 4245for ac_kw in inline __inline__ __inline; do 4246 cat >conftest.$ac_ext <<_ACEOF 4247/* confdefs.h. */ 4248_ACEOF 4249cat confdefs.h >>conftest.$ac_ext 4250cat >>conftest.$ac_ext <<_ACEOF 4251/* end confdefs.h. */ 4252#ifndef __cplusplus 4253typedef int foo_t; 4254static $ac_kw foo_t static_foo () {return 0; } 4255$ac_kw foo_t foo () {return 0; } 4256#endif 4257 4258_ACEOF 4259rm -f conftest.$ac_objext 4260if { (ac_try="$ac_compile" 4261case "(($ac_try" in 4262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4263 *) ac_try_echo=$ac_try;; 4264esac 4265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4266 (eval "$ac_compile") 2>conftest.er1 4267 ac_status=$? 4268 grep -v '^ *+' conftest.er1 >conftest.err 4269 rm -f conftest.er1 4270 cat conftest.err >&5 4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4272 (exit $ac_status); } && { 4273 test -z "$ac_cxx_werror_flag" || 4274 test ! -s conftest.err 4275 } && test -s conftest.$ac_objext; then 4276 ac_cv_c_inline=$ac_kw 4277else 4278 echo "$as_me: failed program was:" >&5 4279sed 's/^/| /' conftest.$ac_ext >&5 4280 4281 4282fi 4283 4284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4285 test "$ac_cv_c_inline" != no && break 4286done 4287 4288fi 4289{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 4290echo "${ECHO_T}$ac_cv_c_inline" >&6; } 4291 4292 4293case $ac_cv_c_inline in 4294 inline | yes) ;; 4295 *) 4296 case $ac_cv_c_inline in 4297 no) ac_val=;; 4298 *) ac_val=$ac_cv_c_inline;; 4299 esac 4300 cat >>confdefs.h <<_ACEOF 4301#ifndef __cplusplus 4302#define inline $ac_val 4303#endif 4304_ACEOF 4305 ;; 4306esac 4307 4308{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 4309echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } 4310if test "${ac_cv_c_const+set}" = set; then 4311 echo $ECHO_N "(cached) $ECHO_C" >&6 4312else 4313 cat >conftest.$ac_ext <<_ACEOF 4314/* confdefs.h. */ 4315_ACEOF 4316cat confdefs.h >>conftest.$ac_ext 4317cat >>conftest.$ac_ext <<_ACEOF 4318/* end confdefs.h. */ 4319 4320int 4321main () 4322{ 4323/* FIXME: Include the comments suggested by Paul. */ 4324#ifndef __cplusplus 4325 /* Ultrix mips cc rejects this. */ 4326 typedef int charset[2]; 4327 const charset cs; 4328 /* SunOS 4.1.1 cc rejects this. */ 4329 char const *const *pcpcc; 4330 char **ppc; 4331 /* NEC SVR4.0.2 mips cc rejects this. */ 4332 struct point {int x, y;}; 4333 static struct point const zero = {0,0}; 4334 /* AIX XL C 1.02.0.0 rejects this. 4335 It does not let you subtract one const X* pointer from another in 4336 an arm of an if-expression whose if-part is not a constant 4337 expression */ 4338 const char *g = "string"; 4339 pcpcc = &g + (g ? g-g : 0); 4340 /* HPUX 7.0 cc rejects these. */ 4341 ++pcpcc; 4342 ppc = (char**) pcpcc; 4343 pcpcc = (char const *const *) ppc; 4344 { /* SCO 3.2v4 cc rejects this. */ 4345 char *t; 4346 char const *s = 0 ? (char *) 0 : (char const *) 0; 4347 4348 *t++ = 0; 4349 if (s) return 0; 4350 } 4351 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4352 int x[] = {25, 17}; 4353 const int *foo = &x[0]; 4354 ++foo; 4355 } 4356 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4357 typedef const int *iptr; 4358 iptr p = 0; 4359 ++p; 4360 } 4361 { /* AIX XL C 1.02.0.0 rejects this saying 4362 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4363 struct s { int j; const int *ap[3]; }; 4364 struct s *b; b->j = 5; 4365 } 4366 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4367 const int foo = 10; 4368 if (!foo) return 0; 4369 } 4370 return !cs[0] && !zero.x; 4371#endif 4372 4373 ; 4374 return 0; 4375} 4376_ACEOF 4377rm -f conftest.$ac_objext 4378if { (ac_try="$ac_compile" 4379case "(($ac_try" in 4380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4381 *) ac_try_echo=$ac_try;; 4382esac 4383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4384 (eval "$ac_compile") 2>conftest.er1 4385 ac_status=$? 4386 grep -v '^ *+' conftest.er1 >conftest.err 4387 rm -f conftest.er1 4388 cat conftest.err >&5 4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4390 (exit $ac_status); } && { 4391 test -z "$ac_cxx_werror_flag" || 4392 test ! -s conftest.err 4393 } && test -s conftest.$ac_objext; then 4394 ac_cv_c_const=yes 4395else 4396 echo "$as_me: failed program was:" >&5 4397sed 's/^/| /' conftest.$ac_ext >&5 4398 4399 ac_cv_c_const=no 4400fi 4401 4402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4403fi 4404{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 4405echo "${ECHO_T}$ac_cv_c_const" >&6; } 4406if test $ac_cv_c_const = no; then 4407 4408cat >>confdefs.h <<\_ACEOF 4409@%:@define const 4410_ACEOF 4411 4412fi 4413 4414# Find a good install program. We prefer a C program (faster), 4415# so one script is as good as another. But avoid the broken or 4416# incompatible versions: 4417# SysV /etc/install, /usr/sbin/install 4418# SunOS /usr/etc/install 4419# IRIX /sbin/install 4420# AIX /bin/install 4421# AmigaOS /C/install, which installs bootblocks on floppy discs 4422# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4423# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4424# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4425# OS/2's system install, which has a completely different semantic 4426# ./install, which can be erroneously created by make from ./install.sh. 4427{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 4428echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 4429if test -z "$INSTALL"; then 4430if test "${ac_cv_path_install+set}" = set; then 4431 echo $ECHO_N "(cached) $ECHO_C" >&6 4432else 4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4434for as_dir in $PATH 4435do 4436 IFS=$as_save_IFS 4437 test -z "$as_dir" && as_dir=. 4438 # Account for people who put trailing slashes in PATH elements. 4439case $as_dir/ in 4440 ./ | .// | /cC/* | \ 4441 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4442 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 4443 /usr/ucb/* ) ;; 4444 *) 4445 # OSF1 and SCO ODT 3.0 have their own names for install. 4446 # Don't use installbsd from OSF since it installs stuff as root 4447 # by default. 4448 for ac_prog in ginstall scoinst install; do 4449 for ac_exec_ext in '' $ac_executable_extensions; do 4450 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 4451 if test $ac_prog = install && 4452 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4453 # AIX install. It has an incompatible calling convention. 4454 : 4455 elif test $ac_prog = install && 4456 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4457 # program-specific install script used by HP pwplus--don't use. 4458 : 4459 else 4460 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4461 break 3 4462 fi 4463 fi 4464 done 4465 done 4466 ;; 4467esac 4468done 4469IFS=$as_save_IFS 4470 4471 4472fi 4473 if test "${ac_cv_path_install+set}" = set; then 4474 INSTALL=$ac_cv_path_install 4475 else 4476 # As a last resort, use the slow shell script. Don't cache a 4477 # value for INSTALL within a source directory, because that will 4478 # break other packages using the cache if that directory is 4479 # removed, or if the value is a relative name. 4480 INSTALL=$ac_install_sh 4481 fi 4482fi 4483{ echo "$as_me:$LINENO: result: $INSTALL" >&5 4484echo "${ECHO_T}$INSTALL" >&6; } 4485 4486# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4487# It thinks the first close brace ends the variable substitution. 4488test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4489 4490test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4491 4492test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4493 4494ac_ext=cpp 4495ac_cpp='$CXXCPP $CPPFLAGS' 4496ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4497ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4498ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4499{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 4500echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 4501if test -z "$CXXCPP"; then 4502 if test "${ac_cv_prog_CXXCPP+set}" = set; then 4503 echo $ECHO_N "(cached) $ECHO_C" >&6 4504else 4505 # Double quotes because CXXCPP needs to be expanded 4506 for CXXCPP in "$CXX -E" "/lib/cpp" 4507 do 4508 ac_preproc_ok=false 4509for ac_cxx_preproc_warn_flag in '' yes 4510do 4511 # Use a header file that comes with gcc, so configuring glibc 4512 # with a fresh cross-compiler works. 4513 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4514 # <limits.h> exists even on freestanding compilers. 4515 # On the NeXT, cc -E runs the code through the compiler's parser, 4516 # not just through cpp. "Syntax error" is here to catch this case. 4517 cat >conftest.$ac_ext <<_ACEOF 4518/* confdefs.h. */ 4519_ACEOF 4520cat confdefs.h >>conftest.$ac_ext 4521cat >>conftest.$ac_ext <<_ACEOF 4522/* end confdefs.h. */ 4523@%:@ifdef __STDC__ 4524@%:@ include <limits.h> 4525@%:@else 4526@%:@ include <assert.h> 4527@%:@endif 4528 Syntax error 4529_ACEOF 4530if { (ac_try="$ac_cpp conftest.$ac_ext" 4531case "(($ac_try" in 4532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4533 *) ac_try_echo=$ac_try;; 4534esac 4535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4537 ac_status=$? 4538 grep -v '^ *+' conftest.er1 >conftest.err 4539 rm -f conftest.er1 4540 cat conftest.err >&5 4541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4542 (exit $ac_status); } >/dev/null && { 4543 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 4544 test ! -s conftest.err 4545 }; then 4546 : 4547else 4548 echo "$as_me: failed program was:" >&5 4549sed 's/^/| /' conftest.$ac_ext >&5 4550 4551 # Broken: fails on valid input. 4552continue 4553fi 4554 4555rm -f conftest.err conftest.$ac_ext 4556 4557 # OK, works on sane cases. Now check whether nonexistent headers 4558 # can be detected and how. 4559 cat >conftest.$ac_ext <<_ACEOF 4560/* confdefs.h. */ 4561_ACEOF 4562cat confdefs.h >>conftest.$ac_ext 4563cat >>conftest.$ac_ext <<_ACEOF 4564/* end confdefs.h. */ 4565@%:@include <ac_nonexistent.h> 4566_ACEOF 4567if { (ac_try="$ac_cpp conftest.$ac_ext" 4568case "(($ac_try" in 4569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4570 *) ac_try_echo=$ac_try;; 4571esac 4572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4573 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4574 ac_status=$? 4575 grep -v '^ *+' conftest.er1 >conftest.err 4576 rm -f conftest.er1 4577 cat conftest.err >&5 4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4579 (exit $ac_status); } >/dev/null && { 4580 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 4581 test ! -s conftest.err 4582 }; then 4583 # Broken: success on invalid input. 4584continue 4585else 4586 echo "$as_me: failed program was:" >&5 4587sed 's/^/| /' conftest.$ac_ext >&5 4588 4589 # Passes both tests. 4590ac_preproc_ok=: 4591break 4592fi 4593 4594rm -f conftest.err conftest.$ac_ext 4595 4596done 4597# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4598rm -f conftest.err conftest.$ac_ext 4599if $ac_preproc_ok; then 4600 break 4601fi 4602 4603 done 4604 ac_cv_prog_CXXCPP=$CXXCPP 4605 4606fi 4607 CXXCPP=$ac_cv_prog_CXXCPP 4608else 4609 ac_cv_prog_CXXCPP=$CXXCPP 4610fi 4611{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 4612echo "${ECHO_T}$CXXCPP" >&6; } 4613ac_preproc_ok=false 4614for ac_cxx_preproc_warn_flag in '' yes 4615do 4616 # Use a header file that comes with gcc, so configuring glibc 4617 # with a fresh cross-compiler works. 4618 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4619 # <limits.h> exists even on freestanding compilers. 4620 # On the NeXT, cc -E runs the code through the compiler's parser, 4621 # not just through cpp. "Syntax error" is here to catch this case. 4622 cat >conftest.$ac_ext <<_ACEOF 4623/* confdefs.h. */ 4624_ACEOF 4625cat confdefs.h >>conftest.$ac_ext 4626cat >>conftest.$ac_ext <<_ACEOF 4627/* end confdefs.h. */ 4628@%:@ifdef __STDC__ 4629@%:@ include <limits.h> 4630@%:@else 4631@%:@ include <assert.h> 4632@%:@endif 4633 Syntax error 4634_ACEOF 4635if { (ac_try="$ac_cpp conftest.$ac_ext" 4636case "(($ac_try" in 4637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4638 *) ac_try_echo=$ac_try;; 4639esac 4640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4642 ac_status=$? 4643 grep -v '^ *+' conftest.er1 >conftest.err 4644 rm -f conftest.er1 4645 cat conftest.err >&5 4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4647 (exit $ac_status); } >/dev/null && { 4648 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 4649 test ! -s conftest.err 4650 }; then 4651 : 4652else 4653 echo "$as_me: failed program was:" >&5 4654sed 's/^/| /' conftest.$ac_ext >&5 4655 4656 # Broken: fails on valid input. 4657continue 4658fi 4659 4660rm -f conftest.err conftest.$ac_ext 4661 4662 # OK, works on sane cases. Now check whether nonexistent headers 4663 # can be detected and how. 4664 cat >conftest.$ac_ext <<_ACEOF 4665/* confdefs.h. */ 4666_ACEOF 4667cat confdefs.h >>conftest.$ac_ext 4668cat >>conftest.$ac_ext <<_ACEOF 4669/* end confdefs.h. */ 4670@%:@include <ac_nonexistent.h> 4671_ACEOF 4672if { (ac_try="$ac_cpp conftest.$ac_ext" 4673case "(($ac_try" in 4674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4675 *) ac_try_echo=$ac_try;; 4676esac 4677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4679 ac_status=$? 4680 grep -v '^ *+' conftest.er1 >conftest.err 4681 rm -f conftest.er1 4682 cat conftest.err >&5 4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4684 (exit $ac_status); } >/dev/null && { 4685 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 4686 test ! -s conftest.err 4687 }; then 4688 # Broken: success on invalid input. 4689continue 4690else 4691 echo "$as_me: failed program was:" >&5 4692sed 's/^/| /' conftest.$ac_ext >&5 4693 4694 # Passes both tests. 4695ac_preproc_ok=: 4696break 4697fi 4698 4699rm -f conftest.err conftest.$ac_ext 4700 4701done 4702# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4703rm -f conftest.err conftest.$ac_ext 4704if $ac_preproc_ok; then 4705 : 4706else 4707 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 4708See \`config.log' for more details." >&5 4709echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 4710See \`config.log' for more details." >&2;} 4711 { (exit 1); exit 1; }; } 4712fi 4713 4714ac_ext=cpp 4715ac_cpp='$CXXCPP $CPPFLAGS' 4716ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4717ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4718ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4719 4720 4721{ echo "$as_me:$LINENO: checking for X" >&5 4722echo $ECHO_N "checking for X... $ECHO_C" >&6; } 4723 4724 4725# Check whether --with-x was given. 4726if test "${with_x+set}" = set; then 4727 withval=$with_x; 4728fi 4729 4730# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 4731if test "x$with_x" = xno; then 4732 # The user explicitly disabled X. 4733 have_x=disabled 4734else 4735 case $x_includes,$x_libraries in #( 4736 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 4737echo "$as_me: error: Cannot use X directory names containing '" >&2;} 4738 { (exit 1); exit 1; }; };; #( 4739 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then 4740 echo $ECHO_N "(cached) $ECHO_C" >&6 4741else 4742 # One or both of the vars are not set, and there is no cached value. 4743ac_x_includes=no ac_x_libraries=no 4744rm -f -r conftest.dir 4745if mkdir conftest.dir; then 4746 cd conftest.dir 4747 cat >Imakefile <<'_ACEOF' 4748incroot: 4749 @echo incroot='${INCROOT}' 4750usrlibdir: 4751 @echo usrlibdir='${USRLIBDIR}' 4752libdir: 4753 @echo libdir='${LIBDIR}' 4754_ACEOF 4755 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 4756 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 4757 for ac_var in incroot usrlibdir libdir; do 4758 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 4759 done 4760 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 4761 for ac_extension in a so sl; do 4762 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 4763 test -f "$ac_im_libdir/libX11.$ac_extension"; then 4764 ac_im_usrlibdir=$ac_im_libdir; break 4765 fi 4766 done 4767 # Screen out bogus values from the imake configuration. They are 4768 # bogus both because they are the default anyway, and because 4769 # using them would break gcc on systems where it needs fixed includes. 4770 case $ac_im_incroot in 4771 /usr/include) ac_x_includes= ;; 4772 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 4773 esac 4774 case $ac_im_usrlibdir in 4775 /usr/lib | /lib) ;; 4776 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 4777 esac 4778 fi 4779 cd .. 4780 rm -f -r conftest.dir 4781fi 4782 4783# Standard set of common directories for X headers. 4784# Check X11 before X11Rn because it is often a symlink to the current release. 4785ac_x_header_dirs=' 4786/usr/X11/include 4787/usr/X11R6/include 4788/usr/X11R5/include 4789/usr/X11R4/include 4790 4791/usr/include/X11 4792/usr/include/X11R6 4793/usr/include/X11R5 4794/usr/include/X11R4 4795 4796/usr/local/X11/include 4797/usr/local/X11R6/include 4798/usr/local/X11R5/include 4799/usr/local/X11R4/include 4800 4801/usr/local/include/X11 4802/usr/local/include/X11R6 4803/usr/local/include/X11R5 4804/usr/local/include/X11R4 4805 4806/usr/X386/include 4807/usr/x386/include 4808/usr/XFree86/include/X11 4809 4810/usr/include 4811/usr/local/include 4812/usr/unsupported/include 4813/usr/athena/include 4814/usr/local/x11r5/include 4815/usr/lpp/Xamples/include 4816 4817/usr/openwin/include 4818/usr/openwin/share/include' 4819 4820if test "$ac_x_includes" = no; then 4821 # Guess where to find include files, by looking for Xlib.h. 4822 # First, try using that file with no special directory specified. 4823 cat >conftest.$ac_ext <<_ACEOF 4824/* confdefs.h. */ 4825_ACEOF 4826cat confdefs.h >>conftest.$ac_ext 4827cat >>conftest.$ac_ext <<_ACEOF 4828/* end confdefs.h. */ 4829@%:@include <X11/Xlib.h> 4830_ACEOF 4831if { (ac_try="$ac_cpp conftest.$ac_ext" 4832case "(($ac_try" in 4833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4834 *) ac_try_echo=$ac_try;; 4835esac 4836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4838 ac_status=$? 4839 grep -v '^ *+' conftest.er1 >conftest.err 4840 rm -f conftest.er1 4841 cat conftest.err >&5 4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4843 (exit $ac_status); } >/dev/null && { 4844 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 4845 test ! -s conftest.err 4846 }; then 4847 # We can compile using X headers with no special include directory. 4848ac_x_includes= 4849else 4850 echo "$as_me: failed program was:" >&5 4851sed 's/^/| /' conftest.$ac_ext >&5 4852 4853 for ac_dir in $ac_x_header_dirs; do 4854 if test -r "$ac_dir/X11/Xlib.h"; then 4855 ac_x_includes=$ac_dir 4856 break 4857 fi 4858done 4859fi 4860 4861rm -f conftest.err conftest.$ac_ext 4862fi # $ac_x_includes = no 4863 4864if test "$ac_x_libraries" = no; then 4865 # Check for the libraries. 4866 # See if we find them without any special options. 4867 # Don't add to $LIBS permanently. 4868 ac_save_LIBS=$LIBS 4869 LIBS="-lX11 $LIBS" 4870 cat >conftest.$ac_ext <<_ACEOF 4871/* confdefs.h. */ 4872_ACEOF 4873cat confdefs.h >>conftest.$ac_ext 4874cat >>conftest.$ac_ext <<_ACEOF 4875/* end confdefs.h. */ 4876@%:@include <X11/Xlib.h> 4877int 4878main () 4879{ 4880XrmInitialize () 4881 ; 4882 return 0; 4883} 4884_ACEOF 4885rm -f conftest.$ac_objext conftest$ac_exeext 4886if { (ac_try="$ac_link" 4887case "(($ac_try" in 4888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4889 *) ac_try_echo=$ac_try;; 4890esac 4891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4892 (eval "$ac_link") 2>conftest.er1 4893 ac_status=$? 4894 grep -v '^ *+' conftest.er1 >conftest.err 4895 rm -f conftest.er1 4896 cat conftest.err >&5 4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4898 (exit $ac_status); } && { 4899 test -z "$ac_cxx_werror_flag" || 4900 test ! -s conftest.err 4901 } && test -s conftest$ac_exeext && 4902 $as_test_x conftest$ac_exeext; then 4903 LIBS=$ac_save_LIBS 4904# We can link X programs with no special library path. 4905ac_x_libraries= 4906else 4907 echo "$as_me: failed program was:" >&5 4908sed 's/^/| /' conftest.$ac_ext >&5 4909 4910 LIBS=$ac_save_LIBS 4911for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 4912do 4913 # Don't even attempt the hair of trying to link an X program! 4914 for ac_extension in a so sl; do 4915 if test -r "$ac_dir/libX11.$ac_extension"; then 4916 ac_x_libraries=$ac_dir 4917 break 2 4918 fi 4919 done 4920done 4921fi 4922 4923rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4924 conftest$ac_exeext conftest.$ac_ext 4925fi # $ac_x_libraries = no 4926 4927case $ac_x_includes,$ac_x_libraries in #( 4928 no,* | *,no | *\'*) 4929 # Didn't find X, or a directory has "'" in its name. 4930 ac_cv_have_x="have_x=no";; #( 4931 *) 4932 # Record where we found X for the cache. 4933 ac_cv_have_x="have_x=yes\ 4934 ac_x_includes='$ac_x_includes'\ 4935 ac_x_libraries='$ac_x_libraries'" 4936esac 4937fi 4938;; #( 4939 *) have_x=yes;; 4940 esac 4941 eval "$ac_cv_have_x" 4942fi # $with_x != no 4943 4944if test "$have_x" != yes; then 4945 { echo "$as_me:$LINENO: result: $have_x" >&5 4946echo "${ECHO_T}$have_x" >&6; } 4947 no_x=yes 4948else 4949 # If each of the values was on the command line, it overrides each guess. 4950 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 4951 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 4952 # Update the cache value to reflect the command line values. 4953 ac_cv_have_x="have_x=yes\ 4954 ac_x_includes='$x_includes'\ 4955 ac_x_libraries='$x_libraries'" 4956 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 4957echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } 4958fi 4959 4960if test "$no_x" = yes; then 4961 # Not all programs may use this symbol, but it does not hurt to define it. 4962 4963cat >>confdefs.h <<\_ACEOF 4964@%:@define X_DISPLAY_MISSING 1 4965_ACEOF 4966 4967 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 4968else 4969 if test -n "$x_includes"; then 4970 X_CFLAGS="$X_CFLAGS -I$x_includes" 4971 fi 4972 4973 # It would also be nice to do this for all -L options, not just this one. 4974 if test -n "$x_libraries"; then 4975 X_LIBS="$X_LIBS -L$x_libraries" 4976 # For Solaris; some versions of Sun CC require a space after -R and 4977 # others require no space. Words are not sufficient . . . . 4978 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 4979echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; } 4980 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 4981 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 4982 ac_cxx_werror_flag=yes 4983 cat >conftest.$ac_ext <<_ACEOF 4984/* confdefs.h. */ 4985_ACEOF 4986cat confdefs.h >>conftest.$ac_ext 4987cat >>conftest.$ac_ext <<_ACEOF 4988/* end confdefs.h. */ 4989 4990int 4991main () 4992{ 4993 4994 ; 4995 return 0; 4996} 4997_ACEOF 4998rm -f conftest.$ac_objext conftest$ac_exeext 4999if { (ac_try="$ac_link" 5000case "(($ac_try" in 5001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5002 *) ac_try_echo=$ac_try;; 5003esac 5004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5005 (eval "$ac_link") 2>conftest.er1 5006 ac_status=$? 5007 grep -v '^ *+' conftest.er1 >conftest.err 5008 rm -f conftest.er1 5009 cat conftest.err >&5 5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5011 (exit $ac_status); } && { 5012 test -z "$ac_cxx_werror_flag" || 5013 test ! -s conftest.err 5014 } && test -s conftest$ac_exeext && 5015 $as_test_x conftest$ac_exeext; then 5016 { echo "$as_me:$LINENO: result: no" >&5 5017echo "${ECHO_T}no" >&6; } 5018 X_LIBS="$X_LIBS -R$x_libraries" 5019else 5020 echo "$as_me: failed program was:" >&5 5021sed 's/^/| /' conftest.$ac_ext >&5 5022 5023 LIBS="$ac_xsave_LIBS -R $x_libraries" 5024 cat >conftest.$ac_ext <<_ACEOF 5025/* confdefs.h. */ 5026_ACEOF 5027cat confdefs.h >>conftest.$ac_ext 5028cat >>conftest.$ac_ext <<_ACEOF 5029/* end confdefs.h. */ 5030 5031int 5032main () 5033{ 5034 5035 ; 5036 return 0; 5037} 5038_ACEOF 5039rm -f conftest.$ac_objext conftest$ac_exeext 5040if { (ac_try="$ac_link" 5041case "(($ac_try" in 5042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5043 *) ac_try_echo=$ac_try;; 5044esac 5045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5046 (eval "$ac_link") 2>conftest.er1 5047 ac_status=$? 5048 grep -v '^ *+' conftest.er1 >conftest.err 5049 rm -f conftest.er1 5050 cat conftest.err >&5 5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5052 (exit $ac_status); } && { 5053 test -z "$ac_cxx_werror_flag" || 5054 test ! -s conftest.err 5055 } && test -s conftest$ac_exeext && 5056 $as_test_x conftest$ac_exeext; then 5057 { echo "$as_me:$LINENO: result: yes" >&5 5058echo "${ECHO_T}yes" >&6; } 5059 X_LIBS="$X_LIBS -R $x_libraries" 5060else 5061 echo "$as_me: failed program was:" >&5 5062sed 's/^/| /' conftest.$ac_ext >&5 5063 5064 { echo "$as_me:$LINENO: result: neither works" >&5 5065echo "${ECHO_T}neither works" >&6; } 5066fi 5067 5068rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5069 conftest$ac_exeext conftest.$ac_ext 5070fi 5071 5072rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5073 conftest$ac_exeext conftest.$ac_ext 5074 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 5075 LIBS=$ac_xsave_LIBS 5076 fi 5077 5078 # Check for system-dependent libraries X programs must link with. 5079 # Do this before checking for the system-independent R6 libraries 5080 # (-lICE), since we may need -lsocket or whatever for X linking. 5081 5082 if test "$ISC" = yes; then 5083 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 5084 else 5085 # Martyn Johnson says this is needed for Ultrix, if the X 5086 # libraries were built with DECnet support. And Karl Berry says 5087 # the Alpha needs dnet_stub (dnet does not exist). 5088 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 5089 cat >conftest.$ac_ext <<_ACEOF 5090/* confdefs.h. */ 5091_ACEOF 5092cat confdefs.h >>conftest.$ac_ext 5093cat >>conftest.$ac_ext <<_ACEOF 5094/* end confdefs.h. */ 5095 5096/* Override any GCC internal prototype to avoid an error. 5097 Use char because int might match the return type of a GCC 5098 builtin and then its argument prototype would still apply. */ 5099#ifdef __cplusplus 5100extern "C" 5101#endif 5102char XOpenDisplay (); 5103int 5104main () 5105{ 5106return XOpenDisplay (); 5107 ; 5108 return 0; 5109} 5110_ACEOF 5111rm -f conftest.$ac_objext conftest$ac_exeext 5112if { (ac_try="$ac_link" 5113case "(($ac_try" in 5114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5115 *) ac_try_echo=$ac_try;; 5116esac 5117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5118 (eval "$ac_link") 2>conftest.er1 5119 ac_status=$? 5120 grep -v '^ *+' conftest.er1 >conftest.err 5121 rm -f conftest.er1 5122 cat conftest.err >&5 5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5124 (exit $ac_status); } && { 5125 test -z "$ac_cxx_werror_flag" || 5126 test ! -s conftest.err 5127 } && test -s conftest$ac_exeext && 5128 $as_test_x conftest$ac_exeext; then 5129 : 5130else 5131 echo "$as_me: failed program was:" >&5 5132sed 's/^/| /' conftest.$ac_ext >&5 5133 5134 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 5135echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; } 5136if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then 5137 echo $ECHO_N "(cached) $ECHO_C" >&6 5138else 5139 ac_check_lib_save_LIBS=$LIBS 5140LIBS="-ldnet $LIBS" 5141cat >conftest.$ac_ext <<_ACEOF 5142/* confdefs.h. */ 5143_ACEOF 5144cat confdefs.h >>conftest.$ac_ext 5145cat >>conftest.$ac_ext <<_ACEOF 5146/* end confdefs.h. */ 5147 5148/* Override any GCC internal prototype to avoid an error. 5149 Use char because int might match the return type of a GCC 5150 builtin and then its argument prototype would still apply. */ 5151#ifdef __cplusplus 5152extern "C" 5153#endif 5154char dnet_ntoa (); 5155int 5156main () 5157{ 5158return dnet_ntoa (); 5159 ; 5160 return 0; 5161} 5162_ACEOF 5163rm -f conftest.$ac_objext conftest$ac_exeext 5164if { (ac_try="$ac_link" 5165case "(($ac_try" in 5166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5167 *) ac_try_echo=$ac_try;; 5168esac 5169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5170 (eval "$ac_link") 2>conftest.er1 5171 ac_status=$? 5172 grep -v '^ *+' conftest.er1 >conftest.err 5173 rm -f conftest.er1 5174 cat conftest.err >&5 5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5176 (exit $ac_status); } && { 5177 test -z "$ac_cxx_werror_flag" || 5178 test ! -s conftest.err 5179 } && test -s conftest$ac_exeext && 5180 $as_test_x conftest$ac_exeext; then 5181 ac_cv_lib_dnet_dnet_ntoa=yes 5182else 5183 echo "$as_me: failed program was:" >&5 5184sed 's/^/| /' conftest.$ac_ext >&5 5185 5186 ac_cv_lib_dnet_dnet_ntoa=no 5187fi 5188 5189rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5190 conftest$ac_exeext conftest.$ac_ext 5191LIBS=$ac_check_lib_save_LIBS 5192fi 5193{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 5194echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; } 5195if test $ac_cv_lib_dnet_dnet_ntoa = yes; then 5196 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 5197fi 5198 5199 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 5200 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 5201echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; } 5202if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then 5203 echo $ECHO_N "(cached) $ECHO_C" >&6 5204else 5205 ac_check_lib_save_LIBS=$LIBS 5206LIBS="-ldnet_stub $LIBS" 5207cat >conftest.$ac_ext <<_ACEOF 5208/* confdefs.h. */ 5209_ACEOF 5210cat confdefs.h >>conftest.$ac_ext 5211cat >>conftest.$ac_ext <<_ACEOF 5212/* end confdefs.h. */ 5213 5214/* Override any GCC internal prototype to avoid an error. 5215 Use char because int might match the return type of a GCC 5216 builtin and then its argument prototype would still apply. */ 5217#ifdef __cplusplus 5218extern "C" 5219#endif 5220char dnet_ntoa (); 5221int 5222main () 5223{ 5224return dnet_ntoa (); 5225 ; 5226 return 0; 5227} 5228_ACEOF 5229rm -f conftest.$ac_objext conftest$ac_exeext 5230if { (ac_try="$ac_link" 5231case "(($ac_try" in 5232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5233 *) ac_try_echo=$ac_try;; 5234esac 5235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5236 (eval "$ac_link") 2>conftest.er1 5237 ac_status=$? 5238 grep -v '^ *+' conftest.er1 >conftest.err 5239 rm -f conftest.er1 5240 cat conftest.err >&5 5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5242 (exit $ac_status); } && { 5243 test -z "$ac_cxx_werror_flag" || 5244 test ! -s conftest.err 5245 } && test -s conftest$ac_exeext && 5246 $as_test_x conftest$ac_exeext; then 5247 ac_cv_lib_dnet_stub_dnet_ntoa=yes 5248else 5249 echo "$as_me: failed program was:" >&5 5250sed 's/^/| /' conftest.$ac_ext >&5 5251 5252 ac_cv_lib_dnet_stub_dnet_ntoa=no 5253fi 5254 5255rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5256 conftest$ac_exeext conftest.$ac_ext 5257LIBS=$ac_check_lib_save_LIBS 5258fi 5259{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 5260echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 5261if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then 5262 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 5263fi 5264 5265 fi 5266fi 5267 5268rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5269 conftest$ac_exeext conftest.$ac_ext 5270 LIBS="$ac_xsave_LIBS" 5271 5272 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 5273 # to get the SysV transport functions. 5274 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 5275 # needs -lnsl. 5276 # The nsl library prevents programs from opening the X display 5277 # on Irix 5.2, according to T.E. Dickey. 5278 # The functions gethostbyname, getservbyname, and inet_addr are 5279 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 5280 { echo "$as_me:$LINENO: checking for gethostbyname" >&5 5281echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } 5282if test "${ac_cv_func_gethostbyname+set}" = set; then 5283 echo $ECHO_N "(cached) $ECHO_C" >&6 5284else 5285 cat >conftest.$ac_ext <<_ACEOF 5286/* confdefs.h. */ 5287_ACEOF 5288cat confdefs.h >>conftest.$ac_ext 5289cat >>conftest.$ac_ext <<_ACEOF 5290/* end confdefs.h. */ 5291/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. 5292 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5293#define gethostbyname innocuous_gethostbyname 5294 5295/* System header to define __stub macros and hopefully few prototypes, 5296 which can conflict with char gethostbyname (); below. 5297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5298 <limits.h> exists even on freestanding compilers. */ 5299 5300#ifdef __STDC__ 5301# include <limits.h> 5302#else 5303# include <assert.h> 5304#endif 5305 5306#undef gethostbyname 5307 5308/* Override any GCC internal prototype to avoid an error. 5309 Use char because int might match the return type of a GCC 5310 builtin and then its argument prototype would still apply. */ 5311#ifdef __cplusplus 5312extern "C" 5313#endif 5314char gethostbyname (); 5315/* The GNU C library defines this for functions which it implements 5316 to always fail with ENOSYS. Some functions are actually named 5317 something starting with __ and the normal name is an alias. */ 5318#if defined __stub_gethostbyname || defined __stub___gethostbyname 5319choke me 5320#endif 5321 5322int 5323main () 5324{ 5325return gethostbyname (); 5326 ; 5327 return 0; 5328} 5329_ACEOF 5330rm -f conftest.$ac_objext conftest$ac_exeext 5331if { (ac_try="$ac_link" 5332case "(($ac_try" in 5333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5334 *) ac_try_echo=$ac_try;; 5335esac 5336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5337 (eval "$ac_link") 2>conftest.er1 5338 ac_status=$? 5339 grep -v '^ *+' conftest.er1 >conftest.err 5340 rm -f conftest.er1 5341 cat conftest.err >&5 5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5343 (exit $ac_status); } && { 5344 test -z "$ac_cxx_werror_flag" || 5345 test ! -s conftest.err 5346 } && test -s conftest$ac_exeext && 5347 $as_test_x conftest$ac_exeext; then 5348 ac_cv_func_gethostbyname=yes 5349else 5350 echo "$as_me: failed program was:" >&5 5351sed 's/^/| /' conftest.$ac_ext >&5 5352 5353 ac_cv_func_gethostbyname=no 5354fi 5355 5356rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5357 conftest$ac_exeext conftest.$ac_ext 5358fi 5359{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 5360echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } 5361 5362 if test $ac_cv_func_gethostbyname = no; then 5363 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 5364echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } 5365if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 5366 echo $ECHO_N "(cached) $ECHO_C" >&6 5367else 5368 ac_check_lib_save_LIBS=$LIBS 5369LIBS="-lnsl $LIBS" 5370cat >conftest.$ac_ext <<_ACEOF 5371/* confdefs.h. */ 5372_ACEOF 5373cat confdefs.h >>conftest.$ac_ext 5374cat >>conftest.$ac_ext <<_ACEOF 5375/* end confdefs.h. */ 5376 5377/* Override any GCC internal prototype to avoid an error. 5378 Use char because int might match the return type of a GCC 5379 builtin and then its argument prototype would still apply. */ 5380#ifdef __cplusplus 5381extern "C" 5382#endif 5383char gethostbyname (); 5384int 5385main () 5386{ 5387return gethostbyname (); 5388 ; 5389 return 0; 5390} 5391_ACEOF 5392rm -f conftest.$ac_objext conftest$ac_exeext 5393if { (ac_try="$ac_link" 5394case "(($ac_try" in 5395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5396 *) ac_try_echo=$ac_try;; 5397esac 5398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5399 (eval "$ac_link") 2>conftest.er1 5400 ac_status=$? 5401 grep -v '^ *+' conftest.er1 >conftest.err 5402 rm -f conftest.er1 5403 cat conftest.err >&5 5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5405 (exit $ac_status); } && { 5406 test -z "$ac_cxx_werror_flag" || 5407 test ! -s conftest.err 5408 } && test -s conftest$ac_exeext && 5409 $as_test_x conftest$ac_exeext; then 5410 ac_cv_lib_nsl_gethostbyname=yes 5411else 5412 echo "$as_me: failed program was:" >&5 5413sed 's/^/| /' conftest.$ac_ext >&5 5414 5415 ac_cv_lib_nsl_gethostbyname=no 5416fi 5417 5418rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5419 conftest$ac_exeext conftest.$ac_ext 5420LIBS=$ac_check_lib_save_LIBS 5421fi 5422{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 5423echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 5424if test $ac_cv_lib_nsl_gethostbyname = yes; then 5425 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 5426fi 5427 5428 if test $ac_cv_lib_nsl_gethostbyname = no; then 5429 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 5430echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; } 5431if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then 5432 echo $ECHO_N "(cached) $ECHO_C" >&6 5433else 5434 ac_check_lib_save_LIBS=$LIBS 5435LIBS="-lbsd $LIBS" 5436cat >conftest.$ac_ext <<_ACEOF 5437/* confdefs.h. */ 5438_ACEOF 5439cat confdefs.h >>conftest.$ac_ext 5440cat >>conftest.$ac_ext <<_ACEOF 5441/* end confdefs.h. */ 5442 5443/* Override any GCC internal prototype to avoid an error. 5444 Use char because int might match the return type of a GCC 5445 builtin and then its argument prototype would still apply. */ 5446#ifdef __cplusplus 5447extern "C" 5448#endif 5449char gethostbyname (); 5450int 5451main () 5452{ 5453return gethostbyname (); 5454 ; 5455 return 0; 5456} 5457_ACEOF 5458rm -f conftest.$ac_objext conftest$ac_exeext 5459if { (ac_try="$ac_link" 5460case "(($ac_try" in 5461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5462 *) ac_try_echo=$ac_try;; 5463esac 5464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5465 (eval "$ac_link") 2>conftest.er1 5466 ac_status=$? 5467 grep -v '^ *+' conftest.er1 >conftest.err 5468 rm -f conftest.er1 5469 cat conftest.err >&5 5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5471 (exit $ac_status); } && { 5472 test -z "$ac_cxx_werror_flag" || 5473 test ! -s conftest.err 5474 } && test -s conftest$ac_exeext && 5475 $as_test_x conftest$ac_exeext; then 5476 ac_cv_lib_bsd_gethostbyname=yes 5477else 5478 echo "$as_me: failed program was:" >&5 5479sed 's/^/| /' conftest.$ac_ext >&5 5480 5481 ac_cv_lib_bsd_gethostbyname=no 5482fi 5483 5484rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5485 conftest$ac_exeext conftest.$ac_ext 5486LIBS=$ac_check_lib_save_LIBS 5487fi 5488{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 5489echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; } 5490if test $ac_cv_lib_bsd_gethostbyname = yes; then 5491 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 5492fi 5493 5494 fi 5495 fi 5496 5497 # lieder@skyler.mavd.honeywell.com says without -lsocket, 5498 # socket/setsockopt and other routines are undefined under SCO ODT 5499 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 5500 # on later versions), says Simon Leinen: it contains gethostby* 5501 # variants that don't use the name server (or something). -lsocket 5502 # must be given before -lnsl if both are needed. We assume that 5503 # if connect needs -lnsl, so does gethostbyname. 5504 { echo "$as_me:$LINENO: checking for connect" >&5 5505echo $ECHO_N "checking for connect... $ECHO_C" >&6; } 5506if test "${ac_cv_func_connect+set}" = set; then 5507 echo $ECHO_N "(cached) $ECHO_C" >&6 5508else 5509 cat >conftest.$ac_ext <<_ACEOF 5510/* confdefs.h. */ 5511_ACEOF 5512cat confdefs.h >>conftest.$ac_ext 5513cat >>conftest.$ac_ext <<_ACEOF 5514/* end confdefs.h. */ 5515/* Define connect to an innocuous variant, in case <limits.h> declares connect. 5516 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5517#define connect innocuous_connect 5518 5519/* System header to define __stub macros and hopefully few prototypes, 5520 which can conflict with char connect (); below. 5521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5522 <limits.h> exists even on freestanding compilers. */ 5523 5524#ifdef __STDC__ 5525# include <limits.h> 5526#else 5527# include <assert.h> 5528#endif 5529 5530#undef connect 5531 5532/* Override any GCC internal prototype to avoid an error. 5533 Use char because int might match the return type of a GCC 5534 builtin and then its argument prototype would still apply. */ 5535#ifdef __cplusplus 5536extern "C" 5537#endif 5538char connect (); 5539/* The GNU C library defines this for functions which it implements 5540 to always fail with ENOSYS. Some functions are actually named 5541 something starting with __ and the normal name is an alias. */ 5542#if defined __stub_connect || defined __stub___connect 5543choke me 5544#endif 5545 5546int 5547main () 5548{ 5549return connect (); 5550 ; 5551 return 0; 5552} 5553_ACEOF 5554rm -f conftest.$ac_objext conftest$ac_exeext 5555if { (ac_try="$ac_link" 5556case "(($ac_try" in 5557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5558 *) ac_try_echo=$ac_try;; 5559esac 5560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5561 (eval "$ac_link") 2>conftest.er1 5562 ac_status=$? 5563 grep -v '^ *+' conftest.er1 >conftest.err 5564 rm -f conftest.er1 5565 cat conftest.err >&5 5566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5567 (exit $ac_status); } && { 5568 test -z "$ac_cxx_werror_flag" || 5569 test ! -s conftest.err 5570 } && test -s conftest$ac_exeext && 5571 $as_test_x conftest$ac_exeext; then 5572 ac_cv_func_connect=yes 5573else 5574 echo "$as_me: failed program was:" >&5 5575sed 's/^/| /' conftest.$ac_ext >&5 5576 5577 ac_cv_func_connect=no 5578fi 5579 5580rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5581 conftest$ac_exeext conftest.$ac_ext 5582fi 5583{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 5584echo "${ECHO_T}$ac_cv_func_connect" >&6; } 5585 5586 if test $ac_cv_func_connect = no; then 5587 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 5588echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; } 5589if test "${ac_cv_lib_socket_connect+set}" = set; then 5590 echo $ECHO_N "(cached) $ECHO_C" >&6 5591else 5592 ac_check_lib_save_LIBS=$LIBS 5593LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 5594cat >conftest.$ac_ext <<_ACEOF 5595/* confdefs.h. */ 5596_ACEOF 5597cat confdefs.h >>conftest.$ac_ext 5598cat >>conftest.$ac_ext <<_ACEOF 5599/* end confdefs.h. */ 5600 5601/* Override any GCC internal prototype to avoid an error. 5602 Use char because int might match the return type of a GCC 5603 builtin and then its argument prototype would still apply. */ 5604#ifdef __cplusplus 5605extern "C" 5606#endif 5607char connect (); 5608int 5609main () 5610{ 5611return connect (); 5612 ; 5613 return 0; 5614} 5615_ACEOF 5616rm -f conftest.$ac_objext conftest$ac_exeext 5617if { (ac_try="$ac_link" 5618case "(($ac_try" in 5619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5620 *) ac_try_echo=$ac_try;; 5621esac 5622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5623 (eval "$ac_link") 2>conftest.er1 5624 ac_status=$? 5625 grep -v '^ *+' conftest.er1 >conftest.err 5626 rm -f conftest.er1 5627 cat conftest.err >&5 5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5629 (exit $ac_status); } && { 5630 test -z "$ac_cxx_werror_flag" || 5631 test ! -s conftest.err 5632 } && test -s conftest$ac_exeext && 5633 $as_test_x conftest$ac_exeext; then 5634 ac_cv_lib_socket_connect=yes 5635else 5636 echo "$as_me: failed program was:" >&5 5637sed 's/^/| /' conftest.$ac_ext >&5 5638 5639 ac_cv_lib_socket_connect=no 5640fi 5641 5642rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5643 conftest$ac_exeext conftest.$ac_ext 5644LIBS=$ac_check_lib_save_LIBS 5645fi 5646{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 5647echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; } 5648if test $ac_cv_lib_socket_connect = yes; then 5649 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 5650fi 5651 5652 fi 5653 5654 # Guillermo Gomez says -lposix is necessary on A/UX. 5655 { echo "$as_me:$LINENO: checking for remove" >&5 5656echo $ECHO_N "checking for remove... $ECHO_C" >&6; } 5657if test "${ac_cv_func_remove+set}" = set; then 5658 echo $ECHO_N "(cached) $ECHO_C" >&6 5659else 5660 cat >conftest.$ac_ext <<_ACEOF 5661/* confdefs.h. */ 5662_ACEOF 5663cat confdefs.h >>conftest.$ac_ext 5664cat >>conftest.$ac_ext <<_ACEOF 5665/* end confdefs.h. */ 5666/* Define remove to an innocuous variant, in case <limits.h> declares remove. 5667 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5668#define remove innocuous_remove 5669 5670/* System header to define __stub macros and hopefully few prototypes, 5671 which can conflict with char remove (); below. 5672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5673 <limits.h> exists even on freestanding compilers. */ 5674 5675#ifdef __STDC__ 5676# include <limits.h> 5677#else 5678# include <assert.h> 5679#endif 5680 5681#undef remove 5682 5683/* Override any GCC internal prototype to avoid an error. 5684 Use char because int might match the return type of a GCC 5685 builtin and then its argument prototype would still apply. */ 5686#ifdef __cplusplus 5687extern "C" 5688#endif 5689char remove (); 5690/* The GNU C library defines this for functions which it implements 5691 to always fail with ENOSYS. Some functions are actually named 5692 something starting with __ and the normal name is an alias. */ 5693#if defined __stub_remove || defined __stub___remove 5694choke me 5695#endif 5696 5697int 5698main () 5699{ 5700return remove (); 5701 ; 5702 return 0; 5703} 5704_ACEOF 5705rm -f conftest.$ac_objext conftest$ac_exeext 5706if { (ac_try="$ac_link" 5707case "(($ac_try" in 5708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5709 *) ac_try_echo=$ac_try;; 5710esac 5711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5712 (eval "$ac_link") 2>conftest.er1 5713 ac_status=$? 5714 grep -v '^ *+' conftest.er1 >conftest.err 5715 rm -f conftest.er1 5716 cat conftest.err >&5 5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5718 (exit $ac_status); } && { 5719 test -z "$ac_cxx_werror_flag" || 5720 test ! -s conftest.err 5721 } && test -s conftest$ac_exeext && 5722 $as_test_x conftest$ac_exeext; then 5723 ac_cv_func_remove=yes 5724else 5725 echo "$as_me: failed program was:" >&5 5726sed 's/^/| /' conftest.$ac_ext >&5 5727 5728 ac_cv_func_remove=no 5729fi 5730 5731rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5732 conftest$ac_exeext conftest.$ac_ext 5733fi 5734{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 5735echo "${ECHO_T}$ac_cv_func_remove" >&6; } 5736 5737 if test $ac_cv_func_remove = no; then 5738 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5 5739echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; } 5740if test "${ac_cv_lib_posix_remove+set}" = set; then 5741 echo $ECHO_N "(cached) $ECHO_C" >&6 5742else 5743 ac_check_lib_save_LIBS=$LIBS 5744LIBS="-lposix $LIBS" 5745cat >conftest.$ac_ext <<_ACEOF 5746/* confdefs.h. */ 5747_ACEOF 5748cat confdefs.h >>conftest.$ac_ext 5749cat >>conftest.$ac_ext <<_ACEOF 5750/* end confdefs.h. */ 5751 5752/* Override any GCC internal prototype to avoid an error. 5753 Use char because int might match the return type of a GCC 5754 builtin and then its argument prototype would still apply. */ 5755#ifdef __cplusplus 5756extern "C" 5757#endif 5758char remove (); 5759int 5760main () 5761{ 5762return remove (); 5763 ; 5764 return 0; 5765} 5766_ACEOF 5767rm -f conftest.$ac_objext conftest$ac_exeext 5768if { (ac_try="$ac_link" 5769case "(($ac_try" in 5770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5771 *) ac_try_echo=$ac_try;; 5772esac 5773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5774 (eval "$ac_link") 2>conftest.er1 5775 ac_status=$? 5776 grep -v '^ *+' conftest.er1 >conftest.err 5777 rm -f conftest.er1 5778 cat conftest.err >&5 5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5780 (exit $ac_status); } && { 5781 test -z "$ac_cxx_werror_flag" || 5782 test ! -s conftest.err 5783 } && test -s conftest$ac_exeext && 5784 $as_test_x conftest$ac_exeext; then 5785 ac_cv_lib_posix_remove=yes 5786else 5787 echo "$as_me: failed program was:" >&5 5788sed 's/^/| /' conftest.$ac_ext >&5 5789 5790 ac_cv_lib_posix_remove=no 5791fi 5792 5793rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5794 conftest$ac_exeext conftest.$ac_ext 5795LIBS=$ac_check_lib_save_LIBS 5796fi 5797{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 5798echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; } 5799if test $ac_cv_lib_posix_remove = yes; then 5800 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 5801fi 5802 5803 fi 5804 5805 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 5806 { echo "$as_me:$LINENO: checking for shmat" >&5 5807echo $ECHO_N "checking for shmat... $ECHO_C" >&6; } 5808if test "${ac_cv_func_shmat+set}" = set; then 5809 echo $ECHO_N "(cached) $ECHO_C" >&6 5810else 5811 cat >conftest.$ac_ext <<_ACEOF 5812/* confdefs.h. */ 5813_ACEOF 5814cat confdefs.h >>conftest.$ac_ext 5815cat >>conftest.$ac_ext <<_ACEOF 5816/* end confdefs.h. */ 5817/* Define shmat to an innocuous variant, in case <limits.h> declares shmat. 5818 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5819#define shmat innocuous_shmat 5820 5821/* System header to define __stub macros and hopefully few prototypes, 5822 which can conflict with char shmat (); below. 5823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5824 <limits.h> exists even on freestanding compilers. */ 5825 5826#ifdef __STDC__ 5827# include <limits.h> 5828#else 5829# include <assert.h> 5830#endif 5831 5832#undef shmat 5833 5834/* Override any GCC internal prototype to avoid an error. 5835 Use char because int might match the return type of a GCC 5836 builtin and then its argument prototype would still apply. */ 5837#ifdef __cplusplus 5838extern "C" 5839#endif 5840char shmat (); 5841/* The GNU C library defines this for functions which it implements 5842 to always fail with ENOSYS. Some functions are actually named 5843 something starting with __ and the normal name is an alias. */ 5844#if defined __stub_shmat || defined __stub___shmat 5845choke me 5846#endif 5847 5848int 5849main () 5850{ 5851return shmat (); 5852 ; 5853 return 0; 5854} 5855_ACEOF 5856rm -f conftest.$ac_objext conftest$ac_exeext 5857if { (ac_try="$ac_link" 5858case "(($ac_try" in 5859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5860 *) ac_try_echo=$ac_try;; 5861esac 5862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5863 (eval "$ac_link") 2>conftest.er1 5864 ac_status=$? 5865 grep -v '^ *+' conftest.er1 >conftest.err 5866 rm -f conftest.er1 5867 cat conftest.err >&5 5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5869 (exit $ac_status); } && { 5870 test -z "$ac_cxx_werror_flag" || 5871 test ! -s conftest.err 5872 } && test -s conftest$ac_exeext && 5873 $as_test_x conftest$ac_exeext; then 5874 ac_cv_func_shmat=yes 5875else 5876 echo "$as_me: failed program was:" >&5 5877sed 's/^/| /' conftest.$ac_ext >&5 5878 5879 ac_cv_func_shmat=no 5880fi 5881 5882rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5883 conftest$ac_exeext conftest.$ac_ext 5884fi 5885{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 5886echo "${ECHO_T}$ac_cv_func_shmat" >&6; } 5887 5888 if test $ac_cv_func_shmat = no; then 5889 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 5890echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; } 5891if test "${ac_cv_lib_ipc_shmat+set}" = set; then 5892 echo $ECHO_N "(cached) $ECHO_C" >&6 5893else 5894 ac_check_lib_save_LIBS=$LIBS 5895LIBS="-lipc $LIBS" 5896cat >conftest.$ac_ext <<_ACEOF 5897/* confdefs.h. */ 5898_ACEOF 5899cat confdefs.h >>conftest.$ac_ext 5900cat >>conftest.$ac_ext <<_ACEOF 5901/* end confdefs.h. */ 5902 5903/* Override any GCC internal prototype to avoid an error. 5904 Use char because int might match the return type of a GCC 5905 builtin and then its argument prototype would still apply. */ 5906#ifdef __cplusplus 5907extern "C" 5908#endif 5909char shmat (); 5910int 5911main () 5912{ 5913return shmat (); 5914 ; 5915 return 0; 5916} 5917_ACEOF 5918rm -f conftest.$ac_objext conftest$ac_exeext 5919if { (ac_try="$ac_link" 5920case "(($ac_try" in 5921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5922 *) ac_try_echo=$ac_try;; 5923esac 5924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5925 (eval "$ac_link") 2>conftest.er1 5926 ac_status=$? 5927 grep -v '^ *+' conftest.er1 >conftest.err 5928 rm -f conftest.er1 5929 cat conftest.err >&5 5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5931 (exit $ac_status); } && { 5932 test -z "$ac_cxx_werror_flag" || 5933 test ! -s conftest.err 5934 } && test -s conftest$ac_exeext && 5935 $as_test_x conftest$ac_exeext; then 5936 ac_cv_lib_ipc_shmat=yes 5937else 5938 echo "$as_me: failed program was:" >&5 5939sed 's/^/| /' conftest.$ac_ext >&5 5940 5941 ac_cv_lib_ipc_shmat=no 5942fi 5943 5944rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5945 conftest$ac_exeext conftest.$ac_ext 5946LIBS=$ac_check_lib_save_LIBS 5947fi 5948{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 5949echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; } 5950if test $ac_cv_lib_ipc_shmat = yes; then 5951 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 5952fi 5953 5954 fi 5955 fi 5956 5957 # Check for libraries that X11R6 Xt/Xaw programs need. 5958 ac_save_LDFLAGS=$LDFLAGS 5959 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 5960 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 5961 # check for ICE first), but we must link in the order -lSM -lICE or 5962 # we get undefined symbols. So assume we have SM if we have ICE. 5963 # These have to be linked with before -lX11, unlike the other 5964 # libraries we check for below, so use a different variable. 5965 # John Interrante, Karl Berry 5966 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 5967echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; } 5968if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then 5969 echo $ECHO_N "(cached) $ECHO_C" >&6 5970else 5971 ac_check_lib_save_LIBS=$LIBS 5972LIBS="-lICE $X_EXTRA_LIBS $LIBS" 5973cat >conftest.$ac_ext <<_ACEOF 5974/* confdefs.h. */ 5975_ACEOF 5976cat confdefs.h >>conftest.$ac_ext 5977cat >>conftest.$ac_ext <<_ACEOF 5978/* end confdefs.h. */ 5979 5980/* Override any GCC internal prototype to avoid an error. 5981 Use char because int might match the return type of a GCC 5982 builtin and then its argument prototype would still apply. */ 5983#ifdef __cplusplus 5984extern "C" 5985#endif 5986char IceConnectionNumber (); 5987int 5988main () 5989{ 5990return IceConnectionNumber (); 5991 ; 5992 return 0; 5993} 5994_ACEOF 5995rm -f conftest.$ac_objext conftest$ac_exeext 5996if { (ac_try="$ac_link" 5997case "(($ac_try" in 5998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5999 *) ac_try_echo=$ac_try;; 6000esac 6001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6002 (eval "$ac_link") 2>conftest.er1 6003 ac_status=$? 6004 grep -v '^ *+' conftest.er1 >conftest.err 6005 rm -f conftest.er1 6006 cat conftest.err >&5 6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6008 (exit $ac_status); } && { 6009 test -z "$ac_cxx_werror_flag" || 6010 test ! -s conftest.err 6011 } && test -s conftest$ac_exeext && 6012 $as_test_x conftest$ac_exeext; then 6013 ac_cv_lib_ICE_IceConnectionNumber=yes 6014else 6015 echo "$as_me: failed program was:" >&5 6016sed 's/^/| /' conftest.$ac_ext >&5 6017 6018 ac_cv_lib_ICE_IceConnectionNumber=no 6019fi 6020 6021rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6022 conftest$ac_exeext conftest.$ac_ext 6023LIBS=$ac_check_lib_save_LIBS 6024fi 6025{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 6026echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 6027if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then 6028 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 6029fi 6030 6031 LDFLAGS=$ac_save_LDFLAGS 6032 6033fi 6034 6035{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 6036echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 6037if test "${ac_cv_path_GREP+set}" = set; then 6038 echo $ECHO_N "(cached) $ECHO_C" >&6 6039else 6040 # Extract the first word of "grep ggrep" to use in msg output 6041if test -z "$GREP"; then 6042set dummy grep ggrep; ac_prog_name=$2 6043if test "${ac_cv_path_GREP+set}" = set; then 6044 echo $ECHO_N "(cached) $ECHO_C" >&6 6045else 6046 ac_path_GREP_found=false 6047# Loop through the user's path and test for each of PROGNAME-LIST 6048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6049for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6050do 6051 IFS=$as_save_IFS 6052 test -z "$as_dir" && as_dir=. 6053 for ac_prog in grep ggrep; do 6054 for ac_exec_ext in '' $ac_executable_extensions; do 6055 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 6056 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 6057 # Check for GNU ac_path_GREP and select it if it is found. 6058 # Check for GNU $ac_path_GREP 6059case `"$ac_path_GREP" --version 2>&1` in 6060*GNU*) 6061 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 6062*) 6063 ac_count=0 6064 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 6065 while : 6066 do 6067 cat "conftest.in" "conftest.in" >"conftest.tmp" 6068 mv "conftest.tmp" "conftest.in" 6069 cp "conftest.in" "conftest.nl" 6070 echo 'GREP' >> "conftest.nl" 6071 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6072 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6073 ac_count=`expr $ac_count + 1` 6074 if test $ac_count -gt ${ac_path_GREP_max-0}; then 6075 # Best one so far, save it but keep looking for a better one 6076 ac_cv_path_GREP="$ac_path_GREP" 6077 ac_path_GREP_max=$ac_count 6078 fi 6079 # 10*(2^10) chars as input seems more than enough 6080 test $ac_count -gt 10 && break 6081 done 6082 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6083esac 6084 6085 6086 $ac_path_GREP_found && break 3 6087 done 6088done 6089 6090done 6091IFS=$as_save_IFS 6092 6093 6094fi 6095 6096GREP="$ac_cv_path_GREP" 6097if test -z "$GREP"; then 6098 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 6099echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 6100 { (exit 1); exit 1; }; } 6101fi 6102 6103else 6104 ac_cv_path_GREP=$GREP 6105fi 6106 6107 6108fi 6109{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 6110echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 6111 GREP="$ac_cv_path_GREP" 6112 6113 6114{ echo "$as_me:$LINENO: checking for egrep" >&5 6115echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 6116if test "${ac_cv_path_EGREP+set}" = set; then 6117 echo $ECHO_N "(cached) $ECHO_C" >&6 6118else 6119 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 6120 then ac_cv_path_EGREP="$GREP -E" 6121 else 6122 # Extract the first word of "egrep" to use in msg output 6123if test -z "$EGREP"; then 6124set dummy egrep; ac_prog_name=$2 6125if test "${ac_cv_path_EGREP+set}" = set; then 6126 echo $ECHO_N "(cached) $ECHO_C" >&6 6127else 6128 ac_path_EGREP_found=false 6129# Loop through the user's path and test for each of PROGNAME-LIST 6130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6131for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6132do 6133 IFS=$as_save_IFS 6134 test -z "$as_dir" && as_dir=. 6135 for ac_prog in egrep; do 6136 for ac_exec_ext in '' $ac_executable_extensions; do 6137 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 6138 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 6139 # Check for GNU ac_path_EGREP and select it if it is found. 6140 # Check for GNU $ac_path_EGREP 6141case `"$ac_path_EGREP" --version 2>&1` in 6142*GNU*) 6143 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 6144*) 6145 ac_count=0 6146 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 6147 while : 6148 do 6149 cat "conftest.in" "conftest.in" >"conftest.tmp" 6150 mv "conftest.tmp" "conftest.in" 6151 cp "conftest.in" "conftest.nl" 6152 echo 'EGREP' >> "conftest.nl" 6153 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6154 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6155 ac_count=`expr $ac_count + 1` 6156 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 6157 # Best one so far, save it but keep looking for a better one 6158 ac_cv_path_EGREP="$ac_path_EGREP" 6159 ac_path_EGREP_max=$ac_count 6160 fi 6161 # 10*(2^10) chars as input seems more than enough 6162 test $ac_count -gt 10 && break 6163 done 6164 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6165esac 6166 6167 6168 $ac_path_EGREP_found && break 3 6169 done 6170done 6171 6172done 6173IFS=$as_save_IFS 6174 6175 6176fi 6177 6178EGREP="$ac_cv_path_EGREP" 6179if test -z "$EGREP"; then 6180 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 6181echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 6182 { (exit 1); exit 1; }; } 6183fi 6184 6185else 6186 ac_cv_path_EGREP=$EGREP 6187fi 6188 6189 6190 fi 6191fi 6192{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 6193echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 6194 EGREP="$ac_cv_path_EGREP" 6195 6196 6197{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 6198echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 6199if test "${ac_cv_header_stdc+set}" = set; then 6200 echo $ECHO_N "(cached) $ECHO_C" >&6 6201else 6202 cat >conftest.$ac_ext <<_ACEOF 6203/* confdefs.h. */ 6204_ACEOF 6205cat confdefs.h >>conftest.$ac_ext 6206cat >>conftest.$ac_ext <<_ACEOF 6207/* end confdefs.h. */ 6208#include <stdlib.h> 6209#include <stdarg.h> 6210#include <string.h> 6211#include <float.h> 6212 6213int 6214main () 6215{ 6216 6217 ; 6218 return 0; 6219} 6220_ACEOF 6221rm -f conftest.$ac_objext 6222if { (ac_try="$ac_compile" 6223case "(($ac_try" in 6224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6225 *) ac_try_echo=$ac_try;; 6226esac 6227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6228 (eval "$ac_compile") 2>conftest.er1 6229 ac_status=$? 6230 grep -v '^ *+' conftest.er1 >conftest.err 6231 rm -f conftest.er1 6232 cat conftest.err >&5 6233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6234 (exit $ac_status); } && { 6235 test -z "$ac_cxx_werror_flag" || 6236 test ! -s conftest.err 6237 } && test -s conftest.$ac_objext; then 6238 ac_cv_header_stdc=yes 6239else 6240 echo "$as_me: failed program was:" >&5 6241sed 's/^/| /' conftest.$ac_ext >&5 6242 6243 ac_cv_header_stdc=no 6244fi 6245 6246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6247 6248if test $ac_cv_header_stdc = yes; then 6249 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6250 cat >conftest.$ac_ext <<_ACEOF 6251/* confdefs.h. */ 6252_ACEOF 6253cat confdefs.h >>conftest.$ac_ext 6254cat >>conftest.$ac_ext <<_ACEOF 6255/* end confdefs.h. */ 6256#include <string.h> 6257 6258_ACEOF 6259if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6260 $EGREP "memchr" >/dev/null 2>&1; then 6261 : 6262else 6263 ac_cv_header_stdc=no 6264fi 6265rm -f conftest* 6266 6267fi 6268 6269if test $ac_cv_header_stdc = yes; then 6270 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6271 cat >conftest.$ac_ext <<_ACEOF 6272/* confdefs.h. */ 6273_ACEOF 6274cat confdefs.h >>conftest.$ac_ext 6275cat >>conftest.$ac_ext <<_ACEOF 6276/* end confdefs.h. */ 6277#include <stdlib.h> 6278 6279_ACEOF 6280if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6281 $EGREP "free" >/dev/null 2>&1; then 6282 : 6283else 6284 ac_cv_header_stdc=no 6285fi 6286rm -f conftest* 6287 6288fi 6289 6290if test $ac_cv_header_stdc = yes; then 6291 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6292 if test "$cross_compiling" = yes; then 6293 : 6294else 6295 cat >conftest.$ac_ext <<_ACEOF 6296/* confdefs.h. */ 6297_ACEOF 6298cat confdefs.h >>conftest.$ac_ext 6299cat >>conftest.$ac_ext <<_ACEOF 6300/* end confdefs.h. */ 6301#include <ctype.h> 6302#include <stdlib.h> 6303#if ((' ' & 0x0FF) == 0x020) 6304# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6305# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6306#else 6307# define ISLOWER(c) \ 6308 (('a' <= (c) && (c) <= 'i') \ 6309 || ('j' <= (c) && (c) <= 'r') \ 6310 || ('s' <= (c) && (c) <= 'z')) 6311# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6312#endif 6313 6314#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6315int 6316main () 6317{ 6318 int i; 6319 for (i = 0; i < 256; i++) 6320 if (XOR (islower (i), ISLOWER (i)) 6321 || toupper (i) != TOUPPER (i)) 6322 return 2; 6323 return 0; 6324} 6325_ACEOF 6326rm -f conftest$ac_exeext 6327if { (ac_try="$ac_link" 6328case "(($ac_try" in 6329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6330 *) ac_try_echo=$ac_try;; 6331esac 6332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6333 (eval "$ac_link") 2>&5 6334 ac_status=$? 6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6336 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6337 { (case "(($ac_try" in 6338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6339 *) ac_try_echo=$ac_try;; 6340esac 6341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6342 (eval "$ac_try") 2>&5 6343 ac_status=$? 6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6345 (exit $ac_status); }; }; then 6346 : 6347else 6348 echo "$as_me: program exited with status $ac_status" >&5 6349echo "$as_me: failed program was:" >&5 6350sed 's/^/| /' conftest.$ac_ext >&5 6351 6352( exit $ac_status ) 6353ac_cv_header_stdc=no 6354fi 6355rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6356fi 6357 6358 6359fi 6360fi 6361{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 6362echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 6363if test $ac_cv_header_stdc = yes; then 6364 6365cat >>confdefs.h <<\_ACEOF 6366@%:@define STDC_HEADERS 1 6367_ACEOF 6368 6369fi 6370 6371# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6382 inttypes.h stdint.h unistd.h 6383do 6384as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6385{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6386echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6387if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6388 echo $ECHO_N "(cached) $ECHO_C" >&6 6389else 6390 cat >conftest.$ac_ext <<_ACEOF 6391/* confdefs.h. */ 6392_ACEOF 6393cat confdefs.h >>conftest.$ac_ext 6394cat >>conftest.$ac_ext <<_ACEOF 6395/* end confdefs.h. */ 6396$ac_includes_default 6397 6398@%:@include <$ac_header> 6399_ACEOF 6400rm -f conftest.$ac_objext 6401if { (ac_try="$ac_compile" 6402case "(($ac_try" in 6403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6404 *) ac_try_echo=$ac_try;; 6405esac 6406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6407 (eval "$ac_compile") 2>conftest.er1 6408 ac_status=$? 6409 grep -v '^ *+' conftest.er1 >conftest.err 6410 rm -f conftest.er1 6411 cat conftest.err >&5 6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6413 (exit $ac_status); } && { 6414 test -z "$ac_cxx_werror_flag" || 6415 test ! -s conftest.err 6416 } && test -s conftest.$ac_objext; then 6417 eval "$as_ac_Header=yes" 6418else 6419 echo "$as_me: failed program was:" >&5 6420sed 's/^/| /' conftest.$ac_ext >&5 6421 6422 eval "$as_ac_Header=no" 6423fi 6424 6425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6426fi 6427ac_res=`eval echo '${'$as_ac_Header'}'` 6428 { echo "$as_me:$LINENO: result: $ac_res" >&5 6429echo "${ECHO_T}$ac_res" >&6; } 6430if test `eval echo '${'$as_ac_Header'}'` = yes; then 6431 cat >>confdefs.h <<_ACEOF 6432@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6433_ACEOF 6434 6435fi 6436 6437done 6438 6439 6440{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 6441echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 6442if test "${ac_cv_c_bigendian+set}" = set; then 6443 echo $ECHO_N "(cached) $ECHO_C" >&6 6444else 6445 # See if sys/param.h defines the BYTE_ORDER macro. 6446cat >conftest.$ac_ext <<_ACEOF 6447/* confdefs.h. */ 6448_ACEOF 6449cat confdefs.h >>conftest.$ac_ext 6450cat >>conftest.$ac_ext <<_ACEOF 6451/* end confdefs.h. */ 6452#include <sys/types.h> 6453#include <sys/param.h> 6454 6455int 6456main () 6457{ 6458#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ 6459 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) 6460 bogus endian macros 6461#endif 6462 6463 ; 6464 return 0; 6465} 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_cxx_werror_flag" || 6482 test ! -s conftest.err 6483 } && test -s conftest.$ac_objext; then 6484 # It does; now see whether it defined to BIG_ENDIAN or not. 6485cat >conftest.$ac_ext <<_ACEOF 6486/* confdefs.h. */ 6487_ACEOF 6488cat confdefs.h >>conftest.$ac_ext 6489cat >>conftest.$ac_ext <<_ACEOF 6490/* end confdefs.h. */ 6491#include <sys/types.h> 6492#include <sys/param.h> 6493 6494int 6495main () 6496{ 6497#if BYTE_ORDER != BIG_ENDIAN 6498 not big endian 6499#endif 6500 6501 ; 6502 return 0; 6503} 6504_ACEOF 6505rm -f conftest.$ac_objext 6506if { (ac_try="$ac_compile" 6507case "(($ac_try" in 6508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6509 *) ac_try_echo=$ac_try;; 6510esac 6511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6512 (eval "$ac_compile") 2>conftest.er1 6513 ac_status=$? 6514 grep -v '^ *+' conftest.er1 >conftest.err 6515 rm -f conftest.er1 6516 cat conftest.err >&5 6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6518 (exit $ac_status); } && { 6519 test -z "$ac_cxx_werror_flag" || 6520 test ! -s conftest.err 6521 } && test -s conftest.$ac_objext; then 6522 ac_cv_c_bigendian=yes 6523else 6524 echo "$as_me: failed program was:" >&5 6525sed 's/^/| /' conftest.$ac_ext >&5 6526 6527 ac_cv_c_bigendian=no 6528fi 6529 6530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6531else 6532 echo "$as_me: failed program was:" >&5 6533sed 's/^/| /' conftest.$ac_ext >&5 6534 6535 # It does not; compile a test program. 6536if test "$cross_compiling" = yes; then 6537 # try to guess the endianness by grepping values into an object file 6538 ac_cv_c_bigendian=unknown 6539 cat >conftest.$ac_ext <<_ACEOF 6540/* confdefs.h. */ 6541_ACEOF 6542cat confdefs.h >>conftest.$ac_ext 6543cat >>conftest.$ac_ext <<_ACEOF 6544/* end confdefs.h. */ 6545short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 6546short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 6547void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 6548short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 6549short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 6550void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 6551int 6552main () 6553{ 6554 _ascii (); _ebcdic (); 6555 ; 6556 return 0; 6557} 6558_ACEOF 6559rm -f conftest.$ac_objext 6560if { (ac_try="$ac_compile" 6561case "(($ac_try" in 6562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6563 *) ac_try_echo=$ac_try;; 6564esac 6565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6566 (eval "$ac_compile") 2>conftest.er1 6567 ac_status=$? 6568 grep -v '^ *+' conftest.er1 >conftest.err 6569 rm -f conftest.er1 6570 cat conftest.err >&5 6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6572 (exit $ac_status); } && { 6573 test -z "$ac_cxx_werror_flag" || 6574 test ! -s conftest.err 6575 } && test -s conftest.$ac_objext; then 6576 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 6577 ac_cv_c_bigendian=yes 6578fi 6579if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 6580 if test "$ac_cv_c_bigendian" = unknown; then 6581 ac_cv_c_bigendian=no 6582 else 6583 # finding both strings is unlikely to happen, but who knows? 6584 ac_cv_c_bigendian=unknown 6585 fi 6586fi 6587else 6588 echo "$as_me: failed program was:" >&5 6589sed 's/^/| /' conftest.$ac_ext >&5 6590 6591 6592fi 6593 6594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6595else 6596 cat >conftest.$ac_ext <<_ACEOF 6597/* confdefs.h. */ 6598_ACEOF 6599cat confdefs.h >>conftest.$ac_ext 6600cat >>conftest.$ac_ext <<_ACEOF 6601/* end confdefs.h. */ 6602$ac_includes_default 6603int 6604main () 6605{ 6606 6607 /* Are we little or big endian? From Harbison&Steele. */ 6608 union 6609 { 6610 long int l; 6611 char c[sizeof (long int)]; 6612 } u; 6613 u.l = 1; 6614 return u.c[sizeof (long int) - 1] == 1; 6615 6616 ; 6617 return 0; 6618} 6619_ACEOF 6620rm -f conftest$ac_exeext 6621if { (ac_try="$ac_link" 6622case "(($ac_try" in 6623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6624 *) ac_try_echo=$ac_try;; 6625esac 6626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6627 (eval "$ac_link") 2>&5 6628 ac_status=$? 6629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6630 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6631 { (case "(($ac_try" in 6632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6633 *) ac_try_echo=$ac_try;; 6634esac 6635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6636 (eval "$ac_try") 2>&5 6637 ac_status=$? 6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6639 (exit $ac_status); }; }; then 6640 ac_cv_c_bigendian=no 6641else 6642 echo "$as_me: program exited with status $ac_status" >&5 6643echo "$as_me: failed program was:" >&5 6644sed 's/^/| /' conftest.$ac_ext >&5 6645 6646( exit $ac_status ) 6647ac_cv_c_bigendian=yes 6648fi 6649rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6650fi 6651 6652 6653fi 6654 6655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6656fi 6657{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 6658echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 6659case $ac_cv_c_bigendian in 6660 yes) 6661 6662cat >>confdefs.h <<\_ACEOF 6663@%:@define WORDS_BIGENDIAN 1 6664_ACEOF 6665 ;; 6666 no) 6667 ;; 6668 *) 6669 { { echo "$as_me:$LINENO: error: unknown endianness 6670presetting ac_cv_c_bigendian=no (or yes) will help" >&5 6671echo "$as_me: error: unknown endianness 6672presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 6673 { (exit 1); exit 1; }; } ;; 6674esac 6675 6676{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 6677echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 6678if test "${ac_cv_header_stdc+set}" = set; then 6679 echo $ECHO_N "(cached) $ECHO_C" >&6 6680else 6681 cat >conftest.$ac_ext <<_ACEOF 6682/* confdefs.h. */ 6683_ACEOF 6684cat confdefs.h >>conftest.$ac_ext 6685cat >>conftest.$ac_ext <<_ACEOF 6686/* end confdefs.h. */ 6687#include <stdlib.h> 6688#include <stdarg.h> 6689#include <string.h> 6690#include <float.h> 6691 6692int 6693main () 6694{ 6695 6696 ; 6697 return 0; 6698} 6699_ACEOF 6700rm -f conftest.$ac_objext 6701if { (ac_try="$ac_compile" 6702case "(($ac_try" in 6703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6704 *) ac_try_echo=$ac_try;; 6705esac 6706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6707 (eval "$ac_compile") 2>conftest.er1 6708 ac_status=$? 6709 grep -v '^ *+' conftest.er1 >conftest.err 6710 rm -f conftest.er1 6711 cat conftest.err >&5 6712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6713 (exit $ac_status); } && { 6714 test -z "$ac_cxx_werror_flag" || 6715 test ! -s conftest.err 6716 } && test -s conftest.$ac_objext; then 6717 ac_cv_header_stdc=yes 6718else 6719 echo "$as_me: failed program was:" >&5 6720sed 's/^/| /' conftest.$ac_ext >&5 6721 6722 ac_cv_header_stdc=no 6723fi 6724 6725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6726 6727if test $ac_cv_header_stdc = yes; then 6728 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6729 cat >conftest.$ac_ext <<_ACEOF 6730/* confdefs.h. */ 6731_ACEOF 6732cat confdefs.h >>conftest.$ac_ext 6733cat >>conftest.$ac_ext <<_ACEOF 6734/* end confdefs.h. */ 6735#include <string.h> 6736 6737_ACEOF 6738if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6739 $EGREP "memchr" >/dev/null 2>&1; then 6740 : 6741else 6742 ac_cv_header_stdc=no 6743fi 6744rm -f conftest* 6745 6746fi 6747 6748if test $ac_cv_header_stdc = yes; then 6749 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6750 cat >conftest.$ac_ext <<_ACEOF 6751/* confdefs.h. */ 6752_ACEOF 6753cat confdefs.h >>conftest.$ac_ext 6754cat >>conftest.$ac_ext <<_ACEOF 6755/* end confdefs.h. */ 6756#include <stdlib.h> 6757 6758_ACEOF 6759if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6760 $EGREP "free" >/dev/null 2>&1; then 6761 : 6762else 6763 ac_cv_header_stdc=no 6764fi 6765rm -f conftest* 6766 6767fi 6768 6769if test $ac_cv_header_stdc = yes; then 6770 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6771 if test "$cross_compiling" = yes; then 6772 : 6773else 6774 cat >conftest.$ac_ext <<_ACEOF 6775/* confdefs.h. */ 6776_ACEOF 6777cat confdefs.h >>conftest.$ac_ext 6778cat >>conftest.$ac_ext <<_ACEOF 6779/* end confdefs.h. */ 6780#include <ctype.h> 6781#include <stdlib.h> 6782#if ((' ' & 0x0FF) == 0x020) 6783# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6784# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6785#else 6786# define ISLOWER(c) \ 6787 (('a' <= (c) && (c) <= 'i') \ 6788 || ('j' <= (c) && (c) <= 'r') \ 6789 || ('s' <= (c) && (c) <= 'z')) 6790# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6791#endif 6792 6793#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6794int 6795main () 6796{ 6797 int i; 6798 for (i = 0; i < 256; i++) 6799 if (XOR (islower (i), ISLOWER (i)) 6800 || toupper (i) != TOUPPER (i)) 6801 return 2; 6802 return 0; 6803} 6804_ACEOF 6805rm -f conftest$ac_exeext 6806if { (ac_try="$ac_link" 6807case "(($ac_try" in 6808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6809 *) ac_try_echo=$ac_try;; 6810esac 6811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6812 (eval "$ac_link") 2>&5 6813 ac_status=$? 6814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6815 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6816 { (case "(($ac_try" in 6817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6818 *) ac_try_echo=$ac_try;; 6819esac 6820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6821 (eval "$ac_try") 2>&5 6822 ac_status=$? 6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6824 (exit $ac_status); }; }; then 6825 : 6826else 6827 echo "$as_me: program exited with status $ac_status" >&5 6828echo "$as_me: failed program was:" >&5 6829sed 's/^/| /' conftest.$ac_ext >&5 6830 6831( exit $ac_status ) 6832ac_cv_header_stdc=no 6833fi 6834rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6835fi 6836 6837 6838fi 6839fi 6840{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 6841echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 6842if test $ac_cv_header_stdc = yes; then 6843 6844cat >>confdefs.h <<\_ACEOF 6845@%:@define STDC_HEADERS 1 6846_ACEOF 6847 6848fi 6849 6850 6851 6852for ac_header in stdint.h inttypes.h 6853do 6854as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6855if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6856 { echo "$as_me:$LINENO: checking for $ac_header" >&5 6857echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6858if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6859 echo $ECHO_N "(cached) $ECHO_C" >&6 6860fi 6861ac_res=`eval echo '${'$as_ac_Header'}'` 6862 { echo "$as_me:$LINENO: result: $ac_res" >&5 6863echo "${ECHO_T}$ac_res" >&6; } 6864else 6865 # Is the header compilable? 6866{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 6867echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 6868cat >conftest.$ac_ext <<_ACEOF 6869/* confdefs.h. */ 6870_ACEOF 6871cat confdefs.h >>conftest.$ac_ext 6872cat >>conftest.$ac_ext <<_ACEOF 6873/* end confdefs.h. */ 6874$ac_includes_default 6875@%:@include <$ac_header> 6876_ACEOF 6877rm -f conftest.$ac_objext 6878if { (ac_try="$ac_compile" 6879case "(($ac_try" in 6880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6881 *) ac_try_echo=$ac_try;; 6882esac 6883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6884 (eval "$ac_compile") 2>conftest.er1 6885 ac_status=$? 6886 grep -v '^ *+' conftest.er1 >conftest.err 6887 rm -f conftest.er1 6888 cat conftest.err >&5 6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6890 (exit $ac_status); } && { 6891 test -z "$ac_cxx_werror_flag" || 6892 test ! -s conftest.err 6893 } && test -s conftest.$ac_objext; then 6894 ac_header_compiler=yes 6895else 6896 echo "$as_me: failed program was:" >&5 6897sed 's/^/| /' conftest.$ac_ext >&5 6898 6899 ac_header_compiler=no 6900fi 6901 6902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6903{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6904echo "${ECHO_T}$ac_header_compiler" >&6; } 6905 6906# Is the header present? 6907{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 6908echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 6909cat >conftest.$ac_ext <<_ACEOF 6910/* confdefs.h. */ 6911_ACEOF 6912cat confdefs.h >>conftest.$ac_ext 6913cat >>conftest.$ac_ext <<_ACEOF 6914/* end confdefs.h. */ 6915@%:@include <$ac_header> 6916_ACEOF 6917if { (ac_try="$ac_cpp conftest.$ac_ext" 6918case "(($ac_try" in 6919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6920 *) ac_try_echo=$ac_try;; 6921esac 6922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6924 ac_status=$? 6925 grep -v '^ *+' conftest.er1 >conftest.err 6926 rm -f conftest.er1 6927 cat conftest.err >&5 6928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6929 (exit $ac_status); } >/dev/null && { 6930 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6931 test ! -s conftest.err 6932 }; then 6933 ac_header_preproc=yes 6934else 6935 echo "$as_me: failed program was:" >&5 6936sed 's/^/| /' conftest.$ac_ext >&5 6937 6938 ac_header_preproc=no 6939fi 6940 6941rm -f conftest.err conftest.$ac_ext 6942{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6943echo "${ECHO_T}$ac_header_preproc" >&6; } 6944 6945# So? What about this header? 6946case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 6947 yes:no: ) 6948 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6949echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6951echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6952 ac_header_preproc=yes 6953 ;; 6954 no:yes:* ) 6955 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6956echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6957 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6958echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6959 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6960echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6961 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6962echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6964echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6965 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6966echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6967 6968 ;; 6969esac 6970{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6971echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6972if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6973 echo $ECHO_N "(cached) $ECHO_C" >&6 6974else 6975 eval "$as_ac_Header=\$ac_header_preproc" 6976fi 6977ac_res=`eval echo '${'$as_ac_Header'}'` 6978 { echo "$as_me:$LINENO: result: $ac_res" >&5 6979echo "${ECHO_T}$ac_res" >&6; } 6980 6981fi 6982if test `eval echo '${'$as_ac_Header'}'` = yes; then 6983 cat >>confdefs.h <<_ACEOF 6984@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6985_ACEOF 6986 6987fi 6988 6989done 6990 6991 6992for ac_header in mathf.h 6993do 6994as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6995if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6996 { echo "$as_me:$LINENO: checking for $ac_header" >&5 6997echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6998if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6999 echo $ECHO_N "(cached) $ECHO_C" >&6 7000fi 7001ac_res=`eval echo '${'$as_ac_Header'}'` 7002 { echo "$as_me:$LINENO: result: $ac_res" >&5 7003echo "${ECHO_T}$ac_res" >&6; } 7004else 7005 # Is the header compilable? 7006{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 7007echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 7008cat >conftest.$ac_ext <<_ACEOF 7009/* confdefs.h. */ 7010_ACEOF 7011cat confdefs.h >>conftest.$ac_ext 7012cat >>conftest.$ac_ext <<_ACEOF 7013/* end confdefs.h. */ 7014$ac_includes_default 7015@%:@include <$ac_header> 7016_ACEOF 7017rm -f conftest.$ac_objext 7018if { (ac_try="$ac_compile" 7019case "(($ac_try" in 7020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7021 *) ac_try_echo=$ac_try;; 7022esac 7023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7024 (eval "$ac_compile") 2>conftest.er1 7025 ac_status=$? 7026 grep -v '^ *+' conftest.er1 >conftest.err 7027 rm -f conftest.er1 7028 cat conftest.err >&5 7029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7030 (exit $ac_status); } && { 7031 test -z "$ac_cxx_werror_flag" || 7032 test ! -s conftest.err 7033 } && test -s conftest.$ac_objext; then 7034 ac_header_compiler=yes 7035else 7036 echo "$as_me: failed program was:" >&5 7037sed 's/^/| /' conftest.$ac_ext >&5 7038 7039 ac_header_compiler=no 7040fi 7041 7042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7043{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7044echo "${ECHO_T}$ac_header_compiler" >&6; } 7045 7046# Is the header present? 7047{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 7048echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 7049cat >conftest.$ac_ext <<_ACEOF 7050/* confdefs.h. */ 7051_ACEOF 7052cat confdefs.h >>conftest.$ac_ext 7053cat >>conftest.$ac_ext <<_ACEOF 7054/* end confdefs.h. */ 7055@%:@include <$ac_header> 7056_ACEOF 7057if { (ac_try="$ac_cpp conftest.$ac_ext" 7058case "(($ac_try" in 7059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7060 *) ac_try_echo=$ac_try;; 7061esac 7062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7064 ac_status=$? 7065 grep -v '^ *+' conftest.er1 >conftest.err 7066 rm -f conftest.er1 7067 cat conftest.err >&5 7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7069 (exit $ac_status); } >/dev/null && { 7070 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 7071 test ! -s conftest.err 7072 }; then 7073 ac_header_preproc=yes 7074else 7075 echo "$as_me: failed program was:" >&5 7076sed 's/^/| /' conftest.$ac_ext >&5 7077 7078 ac_header_preproc=no 7079fi 7080 7081rm -f conftest.err conftest.$ac_ext 7082{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7083echo "${ECHO_T}$ac_header_preproc" >&6; } 7084 7085# So? What about this header? 7086case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 7087 yes:no: ) 7088 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 7089echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 7090 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 7091echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 7092 ac_header_preproc=yes 7093 ;; 7094 no:yes:* ) 7095 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 7096echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 7097 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 7098echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 7099 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 7100echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 7101 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 7102echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 7103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 7104echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 7105 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 7106echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 7107 7108 ;; 7109esac 7110{ echo "$as_me:$LINENO: checking for $ac_header" >&5 7111echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 7112if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7113 echo $ECHO_N "(cached) $ECHO_C" >&6 7114else 7115 eval "$as_ac_Header=\$ac_header_preproc" 7116fi 7117ac_res=`eval echo '${'$as_ac_Header'}'` 7118 { echo "$as_me:$LINENO: result: $ac_res" >&5 7119echo "${ECHO_T}$ac_res" >&6; } 7120 7121fi 7122if test `eval echo '${'$as_ac_Header'}'` = yes; then 7123 cat >>confdefs.h <<_ACEOF 7124@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7125_ACEOF 7126 7127fi 7128 7129done 7130 7131 7132for ac_header in float.h 7133do 7134as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7135if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7136 { echo "$as_me:$LINENO: checking for $ac_header" >&5 7137echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 7138if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7139 echo $ECHO_N "(cached) $ECHO_C" >&6 7140fi 7141ac_res=`eval echo '${'$as_ac_Header'}'` 7142 { echo "$as_me:$LINENO: result: $ac_res" >&5 7143echo "${ECHO_T}$ac_res" >&6; } 7144else 7145 # Is the header compilable? 7146{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 7147echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 7148cat >conftest.$ac_ext <<_ACEOF 7149/* confdefs.h. */ 7150_ACEOF 7151cat confdefs.h >>conftest.$ac_ext 7152cat >>conftest.$ac_ext <<_ACEOF 7153/* end confdefs.h. */ 7154$ac_includes_default 7155@%:@include <$ac_header> 7156_ACEOF 7157rm -f conftest.$ac_objext 7158if { (ac_try="$ac_compile" 7159case "(($ac_try" in 7160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7161 *) ac_try_echo=$ac_try;; 7162esac 7163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7164 (eval "$ac_compile") 2>conftest.er1 7165 ac_status=$? 7166 grep -v '^ *+' conftest.er1 >conftest.err 7167 rm -f conftest.er1 7168 cat conftest.err >&5 7169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7170 (exit $ac_status); } && { 7171 test -z "$ac_cxx_werror_flag" || 7172 test ! -s conftest.err 7173 } && test -s conftest.$ac_objext; then 7174 ac_header_compiler=yes 7175else 7176 echo "$as_me: failed program was:" >&5 7177sed 's/^/| /' conftest.$ac_ext >&5 7178 7179 ac_header_compiler=no 7180fi 7181 7182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7183{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7184echo "${ECHO_T}$ac_header_compiler" >&6; } 7185 7186# Is the header present? 7187{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 7188echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 7189cat >conftest.$ac_ext <<_ACEOF 7190/* confdefs.h. */ 7191_ACEOF 7192cat confdefs.h >>conftest.$ac_ext 7193cat >>conftest.$ac_ext <<_ACEOF 7194/* end confdefs.h. */ 7195@%:@include <$ac_header> 7196_ACEOF 7197if { (ac_try="$ac_cpp conftest.$ac_ext" 7198case "(($ac_try" in 7199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7200 *) ac_try_echo=$ac_try;; 7201esac 7202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7203 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7204 ac_status=$? 7205 grep -v '^ *+' conftest.er1 >conftest.err 7206 rm -f conftest.er1 7207 cat conftest.err >&5 7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7209 (exit $ac_status); } >/dev/null && { 7210 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 7211 test ! -s conftest.err 7212 }; then 7213 ac_header_preproc=yes 7214else 7215 echo "$as_me: failed program was:" >&5 7216sed 's/^/| /' conftest.$ac_ext >&5 7217 7218 ac_header_preproc=no 7219fi 7220 7221rm -f conftest.err conftest.$ac_ext 7222{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7223echo "${ECHO_T}$ac_header_preproc" >&6; } 7224 7225# So? What about this header? 7226case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 7227 yes:no: ) 7228 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 7229echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 7230 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 7231echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 7232 ac_header_preproc=yes 7233 ;; 7234 no:yes:* ) 7235 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 7236echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 7237 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 7238echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 7239 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 7240echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 7241 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 7242echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 7243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 7244echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 7245 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 7246echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 7247 7248 ;; 7249esac 7250{ echo "$as_me:$LINENO: checking for $ac_header" >&5 7251echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 7252if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7253 echo $ECHO_N "(cached) $ECHO_C" >&6 7254else 7255 eval "$as_ac_Header=\$ac_header_preproc" 7256fi 7257ac_res=`eval echo '${'$as_ac_Header'}'` 7258 { echo "$as_me:$LINENO: result: $ac_res" >&5 7259echo "${ECHO_T}$ac_res" >&6; } 7260 7261fi 7262if test `eval echo '${'$as_ac_Header'}'` = yes; then 7263 cat >>confdefs.h <<_ACEOF 7264@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7265_ACEOF 7266 7267fi 7268 7269done 7270 7271 7272 7273for ac_func in strchr memcpy 7274do 7275as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7276{ echo "$as_me:$LINENO: checking for $ac_func" >&5 7277echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 7278if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 7279 echo $ECHO_N "(cached) $ECHO_C" >&6 7280else 7281 cat >conftest.$ac_ext <<_ACEOF 7282/* confdefs.h. */ 7283_ACEOF 7284cat confdefs.h >>conftest.$ac_ext 7285cat >>conftest.$ac_ext <<_ACEOF 7286/* end confdefs.h. */ 7287/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 7288 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7289#define $ac_func innocuous_$ac_func 7290 7291/* System header to define __stub macros and hopefully few prototypes, 7292 which can conflict with char $ac_func (); below. 7293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7294 <limits.h> exists even on freestanding compilers. */ 7295 7296#ifdef __STDC__ 7297# include <limits.h> 7298#else 7299# include <assert.h> 7300#endif 7301 7302#undef $ac_func 7303 7304/* Override any GCC internal prototype to avoid an error. 7305 Use char because int might match the return type of a GCC 7306 builtin and then its argument prototype would still apply. */ 7307#ifdef __cplusplus 7308extern "C" 7309#endif 7310char $ac_func (); 7311/* The GNU C library defines this for functions which it implements 7312 to always fail with ENOSYS. Some functions are actually named 7313 something starting with __ and the normal name is an alias. */ 7314#if defined __stub_$ac_func || defined __stub___$ac_func 7315choke me 7316#endif 7317 7318int 7319main () 7320{ 7321return $ac_func (); 7322 ; 7323 return 0; 7324} 7325_ACEOF 7326rm -f conftest.$ac_objext conftest$ac_exeext 7327if { (ac_try="$ac_link" 7328case "(($ac_try" in 7329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7330 *) ac_try_echo=$ac_try;; 7331esac 7332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7333 (eval "$ac_link") 2>conftest.er1 7334 ac_status=$? 7335 grep -v '^ *+' conftest.er1 >conftest.err 7336 rm -f conftest.er1 7337 cat conftest.err >&5 7338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7339 (exit $ac_status); } && { 7340 test -z "$ac_cxx_werror_flag" || 7341 test ! -s conftest.err 7342 } && test -s conftest$ac_exeext && 7343 $as_test_x conftest$ac_exeext; then 7344 eval "$as_ac_var=yes" 7345else 7346 echo "$as_me: failed program was:" >&5 7347sed 's/^/| /' conftest.$ac_ext >&5 7348 7349 eval "$as_ac_var=no" 7350fi 7351 7352rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7353 conftest$ac_exeext conftest.$ac_ext 7354fi 7355ac_res=`eval echo '${'$as_ac_var'}'` 7356 { echo "$as_me:$LINENO: result: $ac_res" >&5 7357echo "${ECHO_T}$ac_res" >&6; } 7358if test `eval echo '${'$as_ac_var'}'` = yes; then 7359 cat >>confdefs.h <<_ACEOF 7360@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7361_ACEOF 7362 7363fi 7364done 7365 7366 7367for ac_header in sys/time.h 7368do 7369as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7370if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7371 { echo "$as_me:$LINENO: checking for $ac_header" >&5 7372echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 7373if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7374 echo $ECHO_N "(cached) $ECHO_C" >&6 7375fi 7376ac_res=`eval echo '${'$as_ac_Header'}'` 7377 { echo "$as_me:$LINENO: result: $ac_res" >&5 7378echo "${ECHO_T}$ac_res" >&6; } 7379else 7380 # Is the header compilable? 7381{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 7382echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 7383cat >conftest.$ac_ext <<_ACEOF 7384/* confdefs.h. */ 7385_ACEOF 7386cat confdefs.h >>conftest.$ac_ext 7387cat >>conftest.$ac_ext <<_ACEOF 7388/* end confdefs.h. */ 7389$ac_includes_default 7390@%:@include <$ac_header> 7391_ACEOF 7392rm -f conftest.$ac_objext 7393if { (ac_try="$ac_compile" 7394case "(($ac_try" in 7395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7396 *) ac_try_echo=$ac_try;; 7397esac 7398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7399 (eval "$ac_compile") 2>conftest.er1 7400 ac_status=$? 7401 grep -v '^ *+' conftest.er1 >conftest.err 7402 rm -f conftest.er1 7403 cat conftest.err >&5 7404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7405 (exit $ac_status); } && { 7406 test -z "$ac_cxx_werror_flag" || 7407 test ! -s conftest.err 7408 } && test -s conftest.$ac_objext; then 7409 ac_header_compiler=yes 7410else 7411 echo "$as_me: failed program was:" >&5 7412sed 's/^/| /' conftest.$ac_ext >&5 7413 7414 ac_header_compiler=no 7415fi 7416 7417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7418{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7419echo "${ECHO_T}$ac_header_compiler" >&6; } 7420 7421# Is the header present? 7422{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 7423echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 7424cat >conftest.$ac_ext <<_ACEOF 7425/* confdefs.h. */ 7426_ACEOF 7427cat confdefs.h >>conftest.$ac_ext 7428cat >>conftest.$ac_ext <<_ACEOF 7429/* end confdefs.h. */ 7430@%:@include <$ac_header> 7431_ACEOF 7432if { (ac_try="$ac_cpp conftest.$ac_ext" 7433case "(($ac_try" in 7434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7435 *) ac_try_echo=$ac_try;; 7436esac 7437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7439 ac_status=$? 7440 grep -v '^ *+' conftest.er1 >conftest.err 7441 rm -f conftest.er1 7442 cat conftest.err >&5 7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7444 (exit $ac_status); } >/dev/null && { 7445 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 7446 test ! -s conftest.err 7447 }; then 7448 ac_header_preproc=yes 7449else 7450 echo "$as_me: failed program was:" >&5 7451sed 's/^/| /' conftest.$ac_ext >&5 7452 7453 ac_header_preproc=no 7454fi 7455 7456rm -f conftest.err conftest.$ac_ext 7457{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7458echo "${ECHO_T}$ac_header_preproc" >&6; } 7459 7460# So? What about this header? 7461case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 7462 yes:no: ) 7463 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 7464echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 7465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 7466echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 7467 ac_header_preproc=yes 7468 ;; 7469 no:yes:* ) 7470 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 7471echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 7472 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 7473echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 7474 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 7475echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 7476 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 7477echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 7478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 7479echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 7480 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 7481echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 7482 7483 ;; 7484esac 7485{ echo "$as_me:$LINENO: checking for $ac_header" >&5 7486echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 7487if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7488 echo $ECHO_N "(cached) $ECHO_C" >&6 7489else 7490 eval "$as_ac_Header=\$ac_header_preproc" 7491fi 7492ac_res=`eval echo '${'$as_ac_Header'}'` 7493 { echo "$as_me:$LINENO: result: $ac_res" >&5 7494echo "${ECHO_T}$ac_res" >&6; } 7495 7496fi 7497if test `eval echo '${'$as_ac_Header'}'` = yes; then 7498 cat >>confdefs.h <<_ACEOF 7499@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7500_ACEOF 7501 7502fi 7503 7504done 7505 7506{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 7507echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } 7508if test "${ac_cv_header_time+set}" = set; then 7509 echo $ECHO_N "(cached) $ECHO_C" >&6 7510else 7511 cat >conftest.$ac_ext <<_ACEOF 7512/* confdefs.h. */ 7513_ACEOF 7514cat confdefs.h >>conftest.$ac_ext 7515cat >>conftest.$ac_ext <<_ACEOF 7516/* end confdefs.h. */ 7517#include <sys/types.h> 7518#include <sys/time.h> 7519#include <time.h> 7520 7521int 7522main () 7523{ 7524if ((struct tm *) 0) 7525return 0; 7526 ; 7527 return 0; 7528} 7529_ACEOF 7530rm -f conftest.$ac_objext 7531if { (ac_try="$ac_compile" 7532case "(($ac_try" in 7533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7534 *) ac_try_echo=$ac_try;; 7535esac 7536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7537 (eval "$ac_compile") 2>conftest.er1 7538 ac_status=$? 7539 grep -v '^ *+' conftest.er1 >conftest.err 7540 rm -f conftest.er1 7541 cat conftest.err >&5 7542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7543 (exit $ac_status); } && { 7544 test -z "$ac_cxx_werror_flag" || 7545 test ! -s conftest.err 7546 } && test -s conftest.$ac_objext; then 7547 ac_cv_header_time=yes 7548else 7549 echo "$as_me: failed program was:" >&5 7550sed 's/^/| /' conftest.$ac_ext >&5 7551 7552 ac_cv_header_time=no 7553fi 7554 7555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7556fi 7557{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 7558echo "${ECHO_T}$ac_cv_header_time" >&6; } 7559if test $ac_cv_header_time = yes; then 7560 7561cat >>confdefs.h <<\_ACEOF 7562@%:@define TIME_WITH_SYS_TIME 1 7563_ACEOF 7564 7565fi 7566 7567{ echo "$as_me:$LINENO: checking for int" >&5 7568echo $ECHO_N "checking for int... $ECHO_C" >&6; } 7569if test "${ac_cv_type_int+set}" = set; then 7570 echo $ECHO_N "(cached) $ECHO_C" >&6 7571else 7572 cat >conftest.$ac_ext <<_ACEOF 7573/* confdefs.h. */ 7574_ACEOF 7575cat confdefs.h >>conftest.$ac_ext 7576cat >>conftest.$ac_ext <<_ACEOF 7577/* end confdefs.h. */ 7578$ac_includes_default 7579typedef int ac__type_new_; 7580int 7581main () 7582{ 7583if ((ac__type_new_ *) 0) 7584 return 0; 7585if (sizeof (ac__type_new_)) 7586 return 0; 7587 ; 7588 return 0; 7589} 7590_ACEOF 7591rm -f conftest.$ac_objext 7592if { (ac_try="$ac_compile" 7593case "(($ac_try" in 7594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7595 *) ac_try_echo=$ac_try;; 7596esac 7597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7598 (eval "$ac_compile") 2>conftest.er1 7599 ac_status=$? 7600 grep -v '^ *+' conftest.er1 >conftest.err 7601 rm -f conftest.er1 7602 cat conftest.err >&5 7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7604 (exit $ac_status); } && { 7605 test -z "$ac_cxx_werror_flag" || 7606 test ! -s conftest.err 7607 } && test -s conftest.$ac_objext; then 7608 ac_cv_type_int=yes 7609else 7610 echo "$as_me: failed program was:" >&5 7611sed 's/^/| /' conftest.$ac_ext >&5 7612 7613 ac_cv_type_int=no 7614fi 7615 7616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7617fi 7618{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 7619echo "${ECHO_T}$ac_cv_type_int" >&6; } 7620 7621# The cast to long int works around a bug in the HP C Compiler 7622# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7623# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7624# This bug is HP SR number 8606223364. 7625{ echo "$as_me:$LINENO: checking size of int" >&5 7626echo $ECHO_N "checking size of int... $ECHO_C" >&6; } 7627if test "${ac_cv_sizeof_int+set}" = set; then 7628 echo $ECHO_N "(cached) $ECHO_C" >&6 7629else 7630 if test "$cross_compiling" = yes; then 7631 # Depending upon the size, compute the lo and hi bounds. 7632cat >conftest.$ac_ext <<_ACEOF 7633/* confdefs.h. */ 7634_ACEOF 7635cat confdefs.h >>conftest.$ac_ext 7636cat >>conftest.$ac_ext <<_ACEOF 7637/* end confdefs.h. */ 7638$ac_includes_default 7639 typedef int ac__type_sizeof_; 7640int 7641main () 7642{ 7643static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@; 7644test_array @<:@0@:>@ = 0 7645 7646 ; 7647 return 0; 7648} 7649_ACEOF 7650rm -f conftest.$ac_objext 7651if { (ac_try="$ac_compile" 7652case "(($ac_try" in 7653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7654 *) ac_try_echo=$ac_try;; 7655esac 7656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7657 (eval "$ac_compile") 2>conftest.er1 7658 ac_status=$? 7659 grep -v '^ *+' conftest.er1 >conftest.err 7660 rm -f conftest.er1 7661 cat conftest.err >&5 7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7663 (exit $ac_status); } && { 7664 test -z "$ac_cxx_werror_flag" || 7665 test ! -s conftest.err 7666 } && test -s conftest.$ac_objext; then 7667 ac_lo=0 ac_mid=0 7668 while :; do 7669 cat >conftest.$ac_ext <<_ACEOF 7670/* confdefs.h. */ 7671_ACEOF 7672cat confdefs.h >>conftest.$ac_ext 7673cat >>conftest.$ac_ext <<_ACEOF 7674/* end confdefs.h. */ 7675$ac_includes_default 7676 typedef int ac__type_sizeof_; 7677int 7678main () 7679{ 7680static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; 7681test_array @<:@0@:>@ = 0 7682 7683 ; 7684 return 0; 7685} 7686_ACEOF 7687rm -f conftest.$ac_objext 7688if { (ac_try="$ac_compile" 7689case "(($ac_try" in 7690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7691 *) ac_try_echo=$ac_try;; 7692esac 7693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7694 (eval "$ac_compile") 2>conftest.er1 7695 ac_status=$? 7696 grep -v '^ *+' conftest.er1 >conftest.err 7697 rm -f conftest.er1 7698 cat conftest.err >&5 7699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7700 (exit $ac_status); } && { 7701 test -z "$ac_cxx_werror_flag" || 7702 test ! -s conftest.err 7703 } && test -s conftest.$ac_objext; then 7704 ac_hi=$ac_mid; break 7705else 7706 echo "$as_me: failed program was:" >&5 7707sed 's/^/| /' conftest.$ac_ext >&5 7708 7709 ac_lo=`expr $ac_mid + 1` 7710 if test $ac_lo -le $ac_mid; then 7711 ac_lo= ac_hi= 7712 break 7713 fi 7714 ac_mid=`expr 2 '*' $ac_mid + 1` 7715fi 7716 7717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7718 done 7719else 7720 echo "$as_me: failed program was:" >&5 7721sed 's/^/| /' conftest.$ac_ext >&5 7722 7723 cat >conftest.$ac_ext <<_ACEOF 7724/* confdefs.h. */ 7725_ACEOF 7726cat confdefs.h >>conftest.$ac_ext 7727cat >>conftest.$ac_ext <<_ACEOF 7728/* end confdefs.h. */ 7729$ac_includes_default 7730 typedef int ac__type_sizeof_; 7731int 7732main () 7733{ 7734static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@; 7735test_array @<:@0@:>@ = 0 7736 7737 ; 7738 return 0; 7739} 7740_ACEOF 7741rm -f conftest.$ac_objext 7742if { (ac_try="$ac_compile" 7743case "(($ac_try" in 7744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7745 *) ac_try_echo=$ac_try;; 7746esac 7747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7748 (eval "$ac_compile") 2>conftest.er1 7749 ac_status=$? 7750 grep -v '^ *+' conftest.er1 >conftest.err 7751 rm -f conftest.er1 7752 cat conftest.err >&5 7753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7754 (exit $ac_status); } && { 7755 test -z "$ac_cxx_werror_flag" || 7756 test ! -s conftest.err 7757 } && test -s conftest.$ac_objext; then 7758 ac_hi=-1 ac_mid=-1 7759 while :; do 7760 cat >conftest.$ac_ext <<_ACEOF 7761/* confdefs.h. */ 7762_ACEOF 7763cat confdefs.h >>conftest.$ac_ext 7764cat >>conftest.$ac_ext <<_ACEOF 7765/* end confdefs.h. */ 7766$ac_includes_default 7767 typedef int ac__type_sizeof_; 7768int 7769main () 7770{ 7771static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@; 7772test_array @<:@0@:>@ = 0 7773 7774 ; 7775 return 0; 7776} 7777_ACEOF 7778rm -f conftest.$ac_objext 7779if { (ac_try="$ac_compile" 7780case "(($ac_try" in 7781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7782 *) ac_try_echo=$ac_try;; 7783esac 7784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7785 (eval "$ac_compile") 2>conftest.er1 7786 ac_status=$? 7787 grep -v '^ *+' conftest.er1 >conftest.err 7788 rm -f conftest.er1 7789 cat conftest.err >&5 7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7791 (exit $ac_status); } && { 7792 test -z "$ac_cxx_werror_flag" || 7793 test ! -s conftest.err 7794 } && test -s conftest.$ac_objext; then 7795 ac_lo=$ac_mid; break 7796else 7797 echo "$as_me: failed program was:" >&5 7798sed 's/^/| /' conftest.$ac_ext >&5 7799 7800 ac_hi=`expr '(' $ac_mid ')' - 1` 7801 if test $ac_mid -le $ac_hi; then 7802 ac_lo= ac_hi= 7803 break 7804 fi 7805 ac_mid=`expr 2 '*' $ac_mid` 7806fi 7807 7808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7809 done 7810else 7811 echo "$as_me: failed program was:" >&5 7812sed 's/^/| /' conftest.$ac_ext >&5 7813 7814 ac_lo= ac_hi= 7815fi 7816 7817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7818fi 7819 7820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7821# Binary search between lo and hi bounds. 7822while test "x$ac_lo" != "x$ac_hi"; do 7823 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 7824 cat >conftest.$ac_ext <<_ACEOF 7825/* confdefs.h. */ 7826_ACEOF 7827cat confdefs.h >>conftest.$ac_ext 7828cat >>conftest.$ac_ext <<_ACEOF 7829/* end confdefs.h. */ 7830$ac_includes_default 7831 typedef int ac__type_sizeof_; 7832int 7833main () 7834{ 7835static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; 7836test_array @<:@0@:>@ = 0 7837 7838 ; 7839 return 0; 7840} 7841_ACEOF 7842rm -f conftest.$ac_objext 7843if { (ac_try="$ac_compile" 7844case "(($ac_try" in 7845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7846 *) ac_try_echo=$ac_try;; 7847esac 7848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7849 (eval "$ac_compile") 2>conftest.er1 7850 ac_status=$? 7851 grep -v '^ *+' conftest.er1 >conftest.err 7852 rm -f conftest.er1 7853 cat conftest.err >&5 7854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7855 (exit $ac_status); } && { 7856 test -z "$ac_cxx_werror_flag" || 7857 test ! -s conftest.err 7858 } && test -s conftest.$ac_objext; then 7859 ac_hi=$ac_mid 7860else 7861 echo "$as_me: failed program was:" >&5 7862sed 's/^/| /' conftest.$ac_ext >&5 7863 7864 ac_lo=`expr '(' $ac_mid ')' + 1` 7865fi 7866 7867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7868done 7869case $ac_lo in 7870?*) ac_cv_sizeof_int=$ac_lo;; 7871'') if test "$ac_cv_type_int" = yes; then 7872 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) 7873See \`config.log' for more details." >&5 7874echo "$as_me: error: cannot compute sizeof (int) 7875See \`config.log' for more details." >&2;} 7876 { (exit 77); exit 77; }; } 7877 else 7878 ac_cv_sizeof_int=0 7879 fi ;; 7880esac 7881else 7882 cat >conftest.$ac_ext <<_ACEOF 7883/* confdefs.h. */ 7884_ACEOF 7885cat confdefs.h >>conftest.$ac_ext 7886cat >>conftest.$ac_ext <<_ACEOF 7887/* end confdefs.h. */ 7888$ac_includes_default 7889 typedef int ac__type_sizeof_; 7890static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 7891static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 7892@%:@include <stdio.h> 7893@%:@include <stdlib.h> 7894int 7895main () 7896{ 7897 7898 FILE *f = fopen ("conftest.val", "w"); 7899 if (! f) 7900 return 1; 7901 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 7902 { 7903 long int i = longval (); 7904 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 7905 return 1; 7906 fprintf (f, "%ld\n", i); 7907 } 7908 else 7909 { 7910 unsigned long int i = ulongval (); 7911 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 7912 return 1; 7913 fprintf (f, "%lu\n", i); 7914 } 7915 return ferror (f) || fclose (f) != 0; 7916 7917 ; 7918 return 0; 7919} 7920_ACEOF 7921rm -f conftest$ac_exeext 7922if { (ac_try="$ac_link" 7923case "(($ac_try" in 7924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7925 *) ac_try_echo=$ac_try;; 7926esac 7927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7928 (eval "$ac_link") 2>&5 7929 ac_status=$? 7930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7931 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7932 { (case "(($ac_try" in 7933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7934 *) ac_try_echo=$ac_try;; 7935esac 7936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7937 (eval "$ac_try") 2>&5 7938 ac_status=$? 7939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7940 (exit $ac_status); }; }; then 7941 ac_cv_sizeof_int=`cat conftest.val` 7942else 7943 echo "$as_me: program exited with status $ac_status" >&5 7944echo "$as_me: failed program was:" >&5 7945sed 's/^/| /' conftest.$ac_ext >&5 7946 7947( exit $ac_status ) 7948if test "$ac_cv_type_int" = yes; then 7949 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) 7950See \`config.log' for more details." >&5 7951echo "$as_me: error: cannot compute sizeof (int) 7952See \`config.log' for more details." >&2;} 7953 { (exit 77); exit 77; }; } 7954 else 7955 ac_cv_sizeof_int=0 7956 fi 7957fi 7958rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7959fi 7960rm -f conftest.val 7961fi 7962{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 7963echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } 7964 7965 7966 7967cat >>confdefs.h <<_ACEOF 7968@%:@define SIZEOF_INT $ac_cv_sizeof_int 7969_ACEOF 7970 7971 7972{ echo "$as_me:$LINENO: checking for unsigned int" >&5 7973echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6; } 7974if test "${ac_cv_type_unsigned_int+set}" = set; then 7975 echo $ECHO_N "(cached) $ECHO_C" >&6 7976else 7977 cat >conftest.$ac_ext <<_ACEOF 7978/* confdefs.h. */ 7979_ACEOF 7980cat confdefs.h >>conftest.$ac_ext 7981cat >>conftest.$ac_ext <<_ACEOF 7982/* end confdefs.h. */ 7983$ac_includes_default 7984typedef unsigned int ac__type_new_; 7985int 7986main () 7987{ 7988if ((ac__type_new_ *) 0) 7989 return 0; 7990if (sizeof (ac__type_new_)) 7991 return 0; 7992 ; 7993 return 0; 7994} 7995_ACEOF 7996rm -f conftest.$ac_objext 7997if { (ac_try="$ac_compile" 7998case "(($ac_try" in 7999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8000 *) ac_try_echo=$ac_try;; 8001esac 8002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8003 (eval "$ac_compile") 2>conftest.er1 8004 ac_status=$? 8005 grep -v '^ *+' conftest.er1 >conftest.err 8006 rm -f conftest.er1 8007 cat conftest.err >&5 8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8009 (exit $ac_status); } && { 8010 test -z "$ac_cxx_werror_flag" || 8011 test ! -s conftest.err 8012 } && test -s conftest.$ac_objext; then 8013 ac_cv_type_unsigned_int=yes 8014else 8015 echo "$as_me: failed program was:" >&5 8016sed 's/^/| /' conftest.$ac_ext >&5 8017 8018 ac_cv_type_unsigned_int=no 8019fi 8020 8021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8022fi 8023{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5 8024echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6; } 8025 8026# The cast to long int works around a bug in the HP C Compiler 8027# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8028# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8029# This bug is HP SR number 8606223364. 8030{ echo "$as_me:$LINENO: checking size of unsigned int" >&5 8031echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6; } 8032if test "${ac_cv_sizeof_unsigned_int+set}" = set; then 8033 echo $ECHO_N "(cached) $ECHO_C" >&6 8034else 8035 if test "$cross_compiling" = yes; then 8036 # Depending upon the size, compute the lo and hi bounds. 8037cat >conftest.$ac_ext <<_ACEOF 8038/* confdefs.h. */ 8039_ACEOF 8040cat confdefs.h >>conftest.$ac_ext 8041cat >>conftest.$ac_ext <<_ACEOF 8042/* end confdefs.h. */ 8043$ac_includes_default 8044 typedef unsigned int ac__type_sizeof_; 8045int 8046main () 8047{ 8048static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@; 8049test_array @<:@0@:>@ = 0 8050 8051 ; 8052 return 0; 8053} 8054_ACEOF 8055rm -f conftest.$ac_objext 8056if { (ac_try="$ac_compile" 8057case "(($ac_try" in 8058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8059 *) ac_try_echo=$ac_try;; 8060esac 8061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8062 (eval "$ac_compile") 2>conftest.er1 8063 ac_status=$? 8064 grep -v '^ *+' conftest.er1 >conftest.err 8065 rm -f conftest.er1 8066 cat conftest.err >&5 8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8068 (exit $ac_status); } && { 8069 test -z "$ac_cxx_werror_flag" || 8070 test ! -s conftest.err 8071 } && test -s conftest.$ac_objext; then 8072 ac_lo=0 ac_mid=0 8073 while :; do 8074 cat >conftest.$ac_ext <<_ACEOF 8075/* confdefs.h. */ 8076_ACEOF 8077cat confdefs.h >>conftest.$ac_ext 8078cat >>conftest.$ac_ext <<_ACEOF 8079/* end confdefs.h. */ 8080$ac_includes_default 8081 typedef unsigned int ac__type_sizeof_; 8082int 8083main () 8084{ 8085static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; 8086test_array @<:@0@:>@ = 0 8087 8088 ; 8089 return 0; 8090} 8091_ACEOF 8092rm -f conftest.$ac_objext 8093if { (ac_try="$ac_compile" 8094case "(($ac_try" in 8095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8096 *) ac_try_echo=$ac_try;; 8097esac 8098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8099 (eval "$ac_compile") 2>conftest.er1 8100 ac_status=$? 8101 grep -v '^ *+' conftest.er1 >conftest.err 8102 rm -f conftest.er1 8103 cat conftest.err >&5 8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8105 (exit $ac_status); } && { 8106 test -z "$ac_cxx_werror_flag" || 8107 test ! -s conftest.err 8108 } && test -s conftest.$ac_objext; then 8109 ac_hi=$ac_mid; break 8110else 8111 echo "$as_me: failed program was:" >&5 8112sed 's/^/| /' conftest.$ac_ext >&5 8113 8114 ac_lo=`expr $ac_mid + 1` 8115 if test $ac_lo -le $ac_mid; then 8116 ac_lo= ac_hi= 8117 break 8118 fi 8119 ac_mid=`expr 2 '*' $ac_mid + 1` 8120fi 8121 8122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8123 done 8124else 8125 echo "$as_me: failed program was:" >&5 8126sed 's/^/| /' conftest.$ac_ext >&5 8127 8128 cat >conftest.$ac_ext <<_ACEOF 8129/* confdefs.h. */ 8130_ACEOF 8131cat confdefs.h >>conftest.$ac_ext 8132cat >>conftest.$ac_ext <<_ACEOF 8133/* end confdefs.h. */ 8134$ac_includes_default 8135 typedef unsigned int ac__type_sizeof_; 8136int 8137main () 8138{ 8139static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@; 8140test_array @<:@0@:>@ = 0 8141 8142 ; 8143 return 0; 8144} 8145_ACEOF 8146rm -f conftest.$ac_objext 8147if { (ac_try="$ac_compile" 8148case "(($ac_try" in 8149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8150 *) ac_try_echo=$ac_try;; 8151esac 8152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8153 (eval "$ac_compile") 2>conftest.er1 8154 ac_status=$? 8155 grep -v '^ *+' conftest.er1 >conftest.err 8156 rm -f conftest.er1 8157 cat conftest.err >&5 8158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8159 (exit $ac_status); } && { 8160 test -z "$ac_cxx_werror_flag" || 8161 test ! -s conftest.err 8162 } && test -s conftest.$ac_objext; then 8163 ac_hi=-1 ac_mid=-1 8164 while :; do 8165 cat >conftest.$ac_ext <<_ACEOF 8166/* confdefs.h. */ 8167_ACEOF 8168cat confdefs.h >>conftest.$ac_ext 8169cat >>conftest.$ac_ext <<_ACEOF 8170/* end confdefs.h. */ 8171$ac_includes_default 8172 typedef unsigned int ac__type_sizeof_; 8173int 8174main () 8175{ 8176static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@; 8177test_array @<:@0@:>@ = 0 8178 8179 ; 8180 return 0; 8181} 8182_ACEOF 8183rm -f conftest.$ac_objext 8184if { (ac_try="$ac_compile" 8185case "(($ac_try" in 8186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8187 *) ac_try_echo=$ac_try;; 8188esac 8189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8190 (eval "$ac_compile") 2>conftest.er1 8191 ac_status=$? 8192 grep -v '^ *+' conftest.er1 >conftest.err 8193 rm -f conftest.er1 8194 cat conftest.err >&5 8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8196 (exit $ac_status); } && { 8197 test -z "$ac_cxx_werror_flag" || 8198 test ! -s conftest.err 8199 } && test -s conftest.$ac_objext; then 8200 ac_lo=$ac_mid; break 8201else 8202 echo "$as_me: failed program was:" >&5 8203sed 's/^/| /' conftest.$ac_ext >&5 8204 8205 ac_hi=`expr '(' $ac_mid ')' - 1` 8206 if test $ac_mid -le $ac_hi; then 8207 ac_lo= ac_hi= 8208 break 8209 fi 8210 ac_mid=`expr 2 '*' $ac_mid` 8211fi 8212 8213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8214 done 8215else 8216 echo "$as_me: failed program was:" >&5 8217sed 's/^/| /' conftest.$ac_ext >&5 8218 8219 ac_lo= ac_hi= 8220fi 8221 8222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8223fi 8224 8225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8226# Binary search between lo and hi bounds. 8227while test "x$ac_lo" != "x$ac_hi"; do 8228 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 8229 cat >conftest.$ac_ext <<_ACEOF 8230/* confdefs.h. */ 8231_ACEOF 8232cat confdefs.h >>conftest.$ac_ext 8233cat >>conftest.$ac_ext <<_ACEOF 8234/* end confdefs.h. */ 8235$ac_includes_default 8236 typedef unsigned int ac__type_sizeof_; 8237int 8238main () 8239{ 8240static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; 8241test_array @<:@0@:>@ = 0 8242 8243 ; 8244 return 0; 8245} 8246_ACEOF 8247rm -f conftest.$ac_objext 8248if { (ac_try="$ac_compile" 8249case "(($ac_try" in 8250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8251 *) ac_try_echo=$ac_try;; 8252esac 8253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8254 (eval "$ac_compile") 2>conftest.er1 8255 ac_status=$? 8256 grep -v '^ *+' conftest.er1 >conftest.err 8257 rm -f conftest.er1 8258 cat conftest.err >&5 8259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8260 (exit $ac_status); } && { 8261 test -z "$ac_cxx_werror_flag" || 8262 test ! -s conftest.err 8263 } && test -s conftest.$ac_objext; then 8264 ac_hi=$ac_mid 8265else 8266 echo "$as_me: failed program was:" >&5 8267sed 's/^/| /' conftest.$ac_ext >&5 8268 8269 ac_lo=`expr '(' $ac_mid ')' + 1` 8270fi 8271 8272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8273done 8274case $ac_lo in 8275?*) ac_cv_sizeof_unsigned_int=$ac_lo;; 8276'') if test "$ac_cv_type_unsigned_int" = yes; then 8277 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int) 8278See \`config.log' for more details." >&5 8279echo "$as_me: error: cannot compute sizeof (unsigned int) 8280See \`config.log' for more details." >&2;} 8281 { (exit 77); exit 77; }; } 8282 else 8283 ac_cv_sizeof_unsigned_int=0 8284 fi ;; 8285esac 8286else 8287 cat >conftest.$ac_ext <<_ACEOF 8288/* confdefs.h. */ 8289_ACEOF 8290cat confdefs.h >>conftest.$ac_ext 8291cat >>conftest.$ac_ext <<_ACEOF 8292/* end confdefs.h. */ 8293$ac_includes_default 8294 typedef unsigned int ac__type_sizeof_; 8295static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 8296static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 8297@%:@include <stdio.h> 8298@%:@include <stdlib.h> 8299int 8300main () 8301{ 8302 8303 FILE *f = fopen ("conftest.val", "w"); 8304 if (! f) 8305 return 1; 8306 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 8307 { 8308 long int i = longval (); 8309 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 8310 return 1; 8311 fprintf (f, "%ld\n", i); 8312 } 8313 else 8314 { 8315 unsigned long int i = ulongval (); 8316 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 8317 return 1; 8318 fprintf (f, "%lu\n", i); 8319 } 8320 return ferror (f) || fclose (f) != 0; 8321 8322 ; 8323 return 0; 8324} 8325_ACEOF 8326rm -f conftest$ac_exeext 8327if { (ac_try="$ac_link" 8328case "(($ac_try" in 8329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8330 *) ac_try_echo=$ac_try;; 8331esac 8332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8333 (eval "$ac_link") 2>&5 8334 ac_status=$? 8335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8336 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8337 { (case "(($ac_try" in 8338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8339 *) ac_try_echo=$ac_try;; 8340esac 8341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8342 (eval "$ac_try") 2>&5 8343 ac_status=$? 8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8345 (exit $ac_status); }; }; then 8346 ac_cv_sizeof_unsigned_int=`cat conftest.val` 8347else 8348 echo "$as_me: program exited with status $ac_status" >&5 8349echo "$as_me: failed program was:" >&5 8350sed 's/^/| /' conftest.$ac_ext >&5 8351 8352( exit $ac_status ) 8353if test "$ac_cv_type_unsigned_int" = yes; then 8354 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int) 8355See \`config.log' for more details." >&5 8356echo "$as_me: error: cannot compute sizeof (unsigned int) 8357See \`config.log' for more details." >&2;} 8358 { (exit 77); exit 77; }; } 8359 else 8360 ac_cv_sizeof_unsigned_int=0 8361 fi 8362fi 8363rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8364fi 8365rm -f conftest.val 8366fi 8367{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5 8368echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; } 8369 8370 8371 8372cat >>confdefs.h <<_ACEOF 8373@%:@define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int 8374_ACEOF 8375 8376 8377{ echo "$as_me:$LINENO: checking for long" >&5 8378echo $ECHO_N "checking for long... $ECHO_C" >&6; } 8379if test "${ac_cv_type_long+set}" = set; then 8380 echo $ECHO_N "(cached) $ECHO_C" >&6 8381else 8382 cat >conftest.$ac_ext <<_ACEOF 8383/* confdefs.h. */ 8384_ACEOF 8385cat confdefs.h >>conftest.$ac_ext 8386cat >>conftest.$ac_ext <<_ACEOF 8387/* end confdefs.h. */ 8388$ac_includes_default 8389typedef long ac__type_new_; 8390int 8391main () 8392{ 8393if ((ac__type_new_ *) 0) 8394 return 0; 8395if (sizeof (ac__type_new_)) 8396 return 0; 8397 ; 8398 return 0; 8399} 8400_ACEOF 8401rm -f conftest.$ac_objext 8402if { (ac_try="$ac_compile" 8403case "(($ac_try" in 8404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8405 *) ac_try_echo=$ac_try;; 8406esac 8407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8408 (eval "$ac_compile") 2>conftest.er1 8409 ac_status=$? 8410 grep -v '^ *+' conftest.er1 >conftest.err 8411 rm -f conftest.er1 8412 cat conftest.err >&5 8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8414 (exit $ac_status); } && { 8415 test -z "$ac_cxx_werror_flag" || 8416 test ! -s conftest.err 8417 } && test -s conftest.$ac_objext; then 8418 ac_cv_type_long=yes 8419else 8420 echo "$as_me: failed program was:" >&5 8421sed 's/^/| /' conftest.$ac_ext >&5 8422 8423 ac_cv_type_long=no 8424fi 8425 8426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8427fi 8428{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 8429echo "${ECHO_T}$ac_cv_type_long" >&6; } 8430 8431# The cast to long int works around a bug in the HP C Compiler 8432# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8433# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8434# This bug is HP SR number 8606223364. 8435{ echo "$as_me:$LINENO: checking size of long" >&5 8436echo $ECHO_N "checking size of long... $ECHO_C" >&6; } 8437if test "${ac_cv_sizeof_long+set}" = set; then 8438 echo $ECHO_N "(cached) $ECHO_C" >&6 8439else 8440 if test "$cross_compiling" = yes; then 8441 # Depending upon the size, compute the lo and hi bounds. 8442cat >conftest.$ac_ext <<_ACEOF 8443/* confdefs.h. */ 8444_ACEOF 8445cat confdefs.h >>conftest.$ac_ext 8446cat >>conftest.$ac_ext <<_ACEOF 8447/* end confdefs.h. */ 8448$ac_includes_default 8449 typedef long ac__type_sizeof_; 8450int 8451main () 8452{ 8453static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@; 8454test_array @<:@0@:>@ = 0 8455 8456 ; 8457 return 0; 8458} 8459_ACEOF 8460rm -f conftest.$ac_objext 8461if { (ac_try="$ac_compile" 8462case "(($ac_try" in 8463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8464 *) ac_try_echo=$ac_try;; 8465esac 8466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8467 (eval "$ac_compile") 2>conftest.er1 8468 ac_status=$? 8469 grep -v '^ *+' conftest.er1 >conftest.err 8470 rm -f conftest.er1 8471 cat conftest.err >&5 8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8473 (exit $ac_status); } && { 8474 test -z "$ac_cxx_werror_flag" || 8475 test ! -s conftest.err 8476 } && test -s conftest.$ac_objext; then 8477 ac_lo=0 ac_mid=0 8478 while :; do 8479 cat >conftest.$ac_ext <<_ACEOF 8480/* confdefs.h. */ 8481_ACEOF 8482cat confdefs.h >>conftest.$ac_ext 8483cat >>conftest.$ac_ext <<_ACEOF 8484/* end confdefs.h. */ 8485$ac_includes_default 8486 typedef long ac__type_sizeof_; 8487int 8488main () 8489{ 8490static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; 8491test_array @<:@0@:>@ = 0 8492 8493 ; 8494 return 0; 8495} 8496_ACEOF 8497rm -f conftest.$ac_objext 8498if { (ac_try="$ac_compile" 8499case "(($ac_try" in 8500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8501 *) ac_try_echo=$ac_try;; 8502esac 8503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8504 (eval "$ac_compile") 2>conftest.er1 8505 ac_status=$? 8506 grep -v '^ *+' conftest.er1 >conftest.err 8507 rm -f conftest.er1 8508 cat conftest.err >&5 8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8510 (exit $ac_status); } && { 8511 test -z "$ac_cxx_werror_flag" || 8512 test ! -s conftest.err 8513 } && test -s conftest.$ac_objext; then 8514 ac_hi=$ac_mid; break 8515else 8516 echo "$as_me: failed program was:" >&5 8517sed 's/^/| /' conftest.$ac_ext >&5 8518 8519 ac_lo=`expr $ac_mid + 1` 8520 if test $ac_lo -le $ac_mid; then 8521 ac_lo= ac_hi= 8522 break 8523 fi 8524 ac_mid=`expr 2 '*' $ac_mid + 1` 8525fi 8526 8527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8528 done 8529else 8530 echo "$as_me: failed program was:" >&5 8531sed 's/^/| /' conftest.$ac_ext >&5 8532 8533 cat >conftest.$ac_ext <<_ACEOF 8534/* confdefs.h. */ 8535_ACEOF 8536cat confdefs.h >>conftest.$ac_ext 8537cat >>conftest.$ac_ext <<_ACEOF 8538/* end confdefs.h. */ 8539$ac_includes_default 8540 typedef long ac__type_sizeof_; 8541int 8542main () 8543{ 8544static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@; 8545test_array @<:@0@:>@ = 0 8546 8547 ; 8548 return 0; 8549} 8550_ACEOF 8551rm -f conftest.$ac_objext 8552if { (ac_try="$ac_compile" 8553case "(($ac_try" in 8554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8555 *) ac_try_echo=$ac_try;; 8556esac 8557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8558 (eval "$ac_compile") 2>conftest.er1 8559 ac_status=$? 8560 grep -v '^ *+' conftest.er1 >conftest.err 8561 rm -f conftest.er1 8562 cat conftest.err >&5 8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8564 (exit $ac_status); } && { 8565 test -z "$ac_cxx_werror_flag" || 8566 test ! -s conftest.err 8567 } && test -s conftest.$ac_objext; then 8568 ac_hi=-1 ac_mid=-1 8569 while :; do 8570 cat >conftest.$ac_ext <<_ACEOF 8571/* confdefs.h. */ 8572_ACEOF 8573cat confdefs.h >>conftest.$ac_ext 8574cat >>conftest.$ac_ext <<_ACEOF 8575/* end confdefs.h. */ 8576$ac_includes_default 8577 typedef long ac__type_sizeof_; 8578int 8579main () 8580{ 8581static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@; 8582test_array @<:@0@:>@ = 0 8583 8584 ; 8585 return 0; 8586} 8587_ACEOF 8588rm -f conftest.$ac_objext 8589if { (ac_try="$ac_compile" 8590case "(($ac_try" in 8591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8592 *) ac_try_echo=$ac_try;; 8593esac 8594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8595 (eval "$ac_compile") 2>conftest.er1 8596 ac_status=$? 8597 grep -v '^ *+' conftest.er1 >conftest.err 8598 rm -f conftest.er1 8599 cat conftest.err >&5 8600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8601 (exit $ac_status); } && { 8602 test -z "$ac_cxx_werror_flag" || 8603 test ! -s conftest.err 8604 } && test -s conftest.$ac_objext; then 8605 ac_lo=$ac_mid; break 8606else 8607 echo "$as_me: failed program was:" >&5 8608sed 's/^/| /' conftest.$ac_ext >&5 8609 8610 ac_hi=`expr '(' $ac_mid ')' - 1` 8611 if test $ac_mid -le $ac_hi; then 8612 ac_lo= ac_hi= 8613 break 8614 fi 8615 ac_mid=`expr 2 '*' $ac_mid` 8616fi 8617 8618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8619 done 8620else 8621 echo "$as_me: failed program was:" >&5 8622sed 's/^/| /' conftest.$ac_ext >&5 8623 8624 ac_lo= ac_hi= 8625fi 8626 8627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8628fi 8629 8630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8631# Binary search between lo and hi bounds. 8632while test "x$ac_lo" != "x$ac_hi"; do 8633 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 8634 cat >conftest.$ac_ext <<_ACEOF 8635/* confdefs.h. */ 8636_ACEOF 8637cat confdefs.h >>conftest.$ac_ext 8638cat >>conftest.$ac_ext <<_ACEOF 8639/* end confdefs.h. */ 8640$ac_includes_default 8641 typedef long ac__type_sizeof_; 8642int 8643main () 8644{ 8645static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; 8646test_array @<:@0@:>@ = 0 8647 8648 ; 8649 return 0; 8650} 8651_ACEOF 8652rm -f conftest.$ac_objext 8653if { (ac_try="$ac_compile" 8654case "(($ac_try" in 8655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8656 *) ac_try_echo=$ac_try;; 8657esac 8658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8659 (eval "$ac_compile") 2>conftest.er1 8660 ac_status=$? 8661 grep -v '^ *+' conftest.er1 >conftest.err 8662 rm -f conftest.er1 8663 cat conftest.err >&5 8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8665 (exit $ac_status); } && { 8666 test -z "$ac_cxx_werror_flag" || 8667 test ! -s conftest.err 8668 } && test -s conftest.$ac_objext; then 8669 ac_hi=$ac_mid 8670else 8671 echo "$as_me: failed program was:" >&5 8672sed 's/^/| /' conftest.$ac_ext >&5 8673 8674 ac_lo=`expr '(' $ac_mid ')' + 1` 8675fi 8676 8677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8678done 8679case $ac_lo in 8680?*) ac_cv_sizeof_long=$ac_lo;; 8681'') if test "$ac_cv_type_long" = yes; then 8682 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) 8683See \`config.log' for more details." >&5 8684echo "$as_me: error: cannot compute sizeof (long) 8685See \`config.log' for more details." >&2;} 8686 { (exit 77); exit 77; }; } 8687 else 8688 ac_cv_sizeof_long=0 8689 fi ;; 8690esac 8691else 8692 cat >conftest.$ac_ext <<_ACEOF 8693/* confdefs.h. */ 8694_ACEOF 8695cat confdefs.h >>conftest.$ac_ext 8696cat >>conftest.$ac_ext <<_ACEOF 8697/* end confdefs.h. */ 8698$ac_includes_default 8699 typedef long ac__type_sizeof_; 8700static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 8701static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 8702@%:@include <stdio.h> 8703@%:@include <stdlib.h> 8704int 8705main () 8706{ 8707 8708 FILE *f = fopen ("conftest.val", "w"); 8709 if (! f) 8710 return 1; 8711 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 8712 { 8713 long int i = longval (); 8714 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 8715 return 1; 8716 fprintf (f, "%ld\n", i); 8717 } 8718 else 8719 { 8720 unsigned long int i = ulongval (); 8721 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 8722 return 1; 8723 fprintf (f, "%lu\n", i); 8724 } 8725 return ferror (f) || fclose (f) != 0; 8726 8727 ; 8728 return 0; 8729} 8730_ACEOF 8731rm -f conftest$ac_exeext 8732if { (ac_try="$ac_link" 8733case "(($ac_try" in 8734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8735 *) ac_try_echo=$ac_try;; 8736esac 8737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8738 (eval "$ac_link") 2>&5 8739 ac_status=$? 8740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8741 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8742 { (case "(($ac_try" in 8743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8744 *) ac_try_echo=$ac_try;; 8745esac 8746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8747 (eval "$ac_try") 2>&5 8748 ac_status=$? 8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8750 (exit $ac_status); }; }; then 8751 ac_cv_sizeof_long=`cat conftest.val` 8752else 8753 echo "$as_me: program exited with status $ac_status" >&5 8754echo "$as_me: failed program was:" >&5 8755sed 's/^/| /' conftest.$ac_ext >&5 8756 8757( exit $ac_status ) 8758if test "$ac_cv_type_long" = yes; then 8759 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) 8760See \`config.log' for more details." >&5 8761echo "$as_me: error: cannot compute sizeof (long) 8762See \`config.log' for more details." >&2;} 8763 { (exit 77); exit 77; }; } 8764 else 8765 ac_cv_sizeof_long=0 8766 fi 8767fi 8768rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8769fi 8770rm -f conftest.val 8771fi 8772{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 8773echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } 8774 8775 8776 8777cat >>confdefs.h <<_ACEOF 8778@%:@define SIZEOF_LONG $ac_cv_sizeof_long 8779_ACEOF 8780 8781 8782{ echo "$as_me:$LINENO: checking for unsigned long" >&5 8783echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; } 8784if test "${ac_cv_type_unsigned_long+set}" = set; then 8785 echo $ECHO_N "(cached) $ECHO_C" >&6 8786else 8787 cat >conftest.$ac_ext <<_ACEOF 8788/* confdefs.h. */ 8789_ACEOF 8790cat confdefs.h >>conftest.$ac_ext 8791cat >>conftest.$ac_ext <<_ACEOF 8792/* end confdefs.h. */ 8793$ac_includes_default 8794typedef unsigned long ac__type_new_; 8795int 8796main () 8797{ 8798if ((ac__type_new_ *) 0) 8799 return 0; 8800if (sizeof (ac__type_new_)) 8801 return 0; 8802 ; 8803 return 0; 8804} 8805_ACEOF 8806rm -f conftest.$ac_objext 8807if { (ac_try="$ac_compile" 8808case "(($ac_try" in 8809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8810 *) ac_try_echo=$ac_try;; 8811esac 8812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8813 (eval "$ac_compile") 2>conftest.er1 8814 ac_status=$? 8815 grep -v '^ *+' conftest.er1 >conftest.err 8816 rm -f conftest.er1 8817 cat conftest.err >&5 8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8819 (exit $ac_status); } && { 8820 test -z "$ac_cxx_werror_flag" || 8821 test ! -s conftest.err 8822 } && test -s conftest.$ac_objext; then 8823 ac_cv_type_unsigned_long=yes 8824else 8825 echo "$as_me: failed program was:" >&5 8826sed 's/^/| /' conftest.$ac_ext >&5 8827 8828 ac_cv_type_unsigned_long=no 8829fi 8830 8831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8832fi 8833{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5 8834echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; } 8835 8836# The cast to long int works around a bug in the HP C Compiler 8837# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8838# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8839# This bug is HP SR number 8606223364. 8840{ echo "$as_me:$LINENO: checking size of unsigned long" >&5 8841echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; } 8842if test "${ac_cv_sizeof_unsigned_long+set}" = set; then 8843 echo $ECHO_N "(cached) $ECHO_C" >&6 8844else 8845 if test "$cross_compiling" = yes; then 8846 # Depending upon the size, compute the lo and hi bounds. 8847cat >conftest.$ac_ext <<_ACEOF 8848/* confdefs.h. */ 8849_ACEOF 8850cat confdefs.h >>conftest.$ac_ext 8851cat >>conftest.$ac_ext <<_ACEOF 8852/* end confdefs.h. */ 8853$ac_includes_default 8854 typedef unsigned long ac__type_sizeof_; 8855int 8856main () 8857{ 8858static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@; 8859test_array @<:@0@:>@ = 0 8860 8861 ; 8862 return 0; 8863} 8864_ACEOF 8865rm -f conftest.$ac_objext 8866if { (ac_try="$ac_compile" 8867case "(($ac_try" in 8868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8869 *) ac_try_echo=$ac_try;; 8870esac 8871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8872 (eval "$ac_compile") 2>conftest.er1 8873 ac_status=$? 8874 grep -v '^ *+' conftest.er1 >conftest.err 8875 rm -f conftest.er1 8876 cat conftest.err >&5 8877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8878 (exit $ac_status); } && { 8879 test -z "$ac_cxx_werror_flag" || 8880 test ! -s conftest.err 8881 } && test -s conftest.$ac_objext; then 8882 ac_lo=0 ac_mid=0 8883 while :; do 8884 cat >conftest.$ac_ext <<_ACEOF 8885/* confdefs.h. */ 8886_ACEOF 8887cat confdefs.h >>conftest.$ac_ext 8888cat >>conftest.$ac_ext <<_ACEOF 8889/* end confdefs.h. */ 8890$ac_includes_default 8891 typedef unsigned long ac__type_sizeof_; 8892int 8893main () 8894{ 8895static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; 8896test_array @<:@0@:>@ = 0 8897 8898 ; 8899 return 0; 8900} 8901_ACEOF 8902rm -f conftest.$ac_objext 8903if { (ac_try="$ac_compile" 8904case "(($ac_try" in 8905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8906 *) ac_try_echo=$ac_try;; 8907esac 8908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8909 (eval "$ac_compile") 2>conftest.er1 8910 ac_status=$? 8911 grep -v '^ *+' conftest.er1 >conftest.err 8912 rm -f conftest.er1 8913 cat conftest.err >&5 8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8915 (exit $ac_status); } && { 8916 test -z "$ac_cxx_werror_flag" || 8917 test ! -s conftest.err 8918 } && test -s conftest.$ac_objext; then 8919 ac_hi=$ac_mid; break 8920else 8921 echo "$as_me: failed program was:" >&5 8922sed 's/^/| /' conftest.$ac_ext >&5 8923 8924 ac_lo=`expr $ac_mid + 1` 8925 if test $ac_lo -le $ac_mid; then 8926 ac_lo= ac_hi= 8927 break 8928 fi 8929 ac_mid=`expr 2 '*' $ac_mid + 1` 8930fi 8931 8932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8933 done 8934else 8935 echo "$as_me: failed program was:" >&5 8936sed 's/^/| /' conftest.$ac_ext >&5 8937 8938 cat >conftest.$ac_ext <<_ACEOF 8939/* confdefs.h. */ 8940_ACEOF 8941cat confdefs.h >>conftest.$ac_ext 8942cat >>conftest.$ac_ext <<_ACEOF 8943/* end confdefs.h. */ 8944$ac_includes_default 8945 typedef unsigned long ac__type_sizeof_; 8946int 8947main () 8948{ 8949static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@; 8950test_array @<:@0@:>@ = 0 8951 8952 ; 8953 return 0; 8954} 8955_ACEOF 8956rm -f conftest.$ac_objext 8957if { (ac_try="$ac_compile" 8958case "(($ac_try" in 8959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8960 *) ac_try_echo=$ac_try;; 8961esac 8962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8963 (eval "$ac_compile") 2>conftest.er1 8964 ac_status=$? 8965 grep -v '^ *+' conftest.er1 >conftest.err 8966 rm -f conftest.er1 8967 cat conftest.err >&5 8968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8969 (exit $ac_status); } && { 8970 test -z "$ac_cxx_werror_flag" || 8971 test ! -s conftest.err 8972 } && test -s conftest.$ac_objext; then 8973 ac_hi=-1 ac_mid=-1 8974 while :; do 8975 cat >conftest.$ac_ext <<_ACEOF 8976/* confdefs.h. */ 8977_ACEOF 8978cat confdefs.h >>conftest.$ac_ext 8979cat >>conftest.$ac_ext <<_ACEOF 8980/* end confdefs.h. */ 8981$ac_includes_default 8982 typedef unsigned long ac__type_sizeof_; 8983int 8984main () 8985{ 8986static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@; 8987test_array @<:@0@:>@ = 0 8988 8989 ; 8990 return 0; 8991} 8992_ACEOF 8993rm -f conftest.$ac_objext 8994if { (ac_try="$ac_compile" 8995case "(($ac_try" in 8996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8997 *) ac_try_echo=$ac_try;; 8998esac 8999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9000 (eval "$ac_compile") 2>conftest.er1 9001 ac_status=$? 9002 grep -v '^ *+' conftest.er1 >conftest.err 9003 rm -f conftest.er1 9004 cat conftest.err >&5 9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9006 (exit $ac_status); } && { 9007 test -z "$ac_cxx_werror_flag" || 9008 test ! -s conftest.err 9009 } && test -s conftest.$ac_objext; then 9010 ac_lo=$ac_mid; break 9011else 9012 echo "$as_me: failed program was:" >&5 9013sed 's/^/| /' conftest.$ac_ext >&5 9014 9015 ac_hi=`expr '(' $ac_mid ')' - 1` 9016 if test $ac_mid -le $ac_hi; then 9017 ac_lo= ac_hi= 9018 break 9019 fi 9020 ac_mid=`expr 2 '*' $ac_mid` 9021fi 9022 9023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9024 done 9025else 9026 echo "$as_me: failed program was:" >&5 9027sed 's/^/| /' conftest.$ac_ext >&5 9028 9029 ac_lo= ac_hi= 9030fi 9031 9032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9033fi 9034 9035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9036# Binary search between lo and hi bounds. 9037while test "x$ac_lo" != "x$ac_hi"; do 9038 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 9039 cat >conftest.$ac_ext <<_ACEOF 9040/* confdefs.h. */ 9041_ACEOF 9042cat confdefs.h >>conftest.$ac_ext 9043cat >>conftest.$ac_ext <<_ACEOF 9044/* end confdefs.h. */ 9045$ac_includes_default 9046 typedef unsigned long ac__type_sizeof_; 9047int 9048main () 9049{ 9050static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; 9051test_array @<:@0@:>@ = 0 9052 9053 ; 9054 return 0; 9055} 9056_ACEOF 9057rm -f conftest.$ac_objext 9058if { (ac_try="$ac_compile" 9059case "(($ac_try" in 9060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9061 *) ac_try_echo=$ac_try;; 9062esac 9063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9064 (eval "$ac_compile") 2>conftest.er1 9065 ac_status=$? 9066 grep -v '^ *+' conftest.er1 >conftest.err 9067 rm -f conftest.er1 9068 cat conftest.err >&5 9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9070 (exit $ac_status); } && { 9071 test -z "$ac_cxx_werror_flag" || 9072 test ! -s conftest.err 9073 } && test -s conftest.$ac_objext; then 9074 ac_hi=$ac_mid 9075else 9076 echo "$as_me: failed program was:" >&5 9077sed 's/^/| /' conftest.$ac_ext >&5 9078 9079 ac_lo=`expr '(' $ac_mid ')' + 1` 9080fi 9081 9082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9083done 9084case $ac_lo in 9085?*) ac_cv_sizeof_unsigned_long=$ac_lo;; 9086'') if test "$ac_cv_type_unsigned_long" = yes; then 9087 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long) 9088See \`config.log' for more details." >&5 9089echo "$as_me: error: cannot compute sizeof (unsigned long) 9090See \`config.log' for more details." >&2;} 9091 { (exit 77); exit 77; }; } 9092 else 9093 ac_cv_sizeof_unsigned_long=0 9094 fi ;; 9095esac 9096else 9097 cat >conftest.$ac_ext <<_ACEOF 9098/* confdefs.h. */ 9099_ACEOF 9100cat confdefs.h >>conftest.$ac_ext 9101cat >>conftest.$ac_ext <<_ACEOF 9102/* end confdefs.h. */ 9103$ac_includes_default 9104 typedef unsigned long ac__type_sizeof_; 9105static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 9106static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 9107@%:@include <stdio.h> 9108@%:@include <stdlib.h> 9109int 9110main () 9111{ 9112 9113 FILE *f = fopen ("conftest.val", "w"); 9114 if (! f) 9115 return 1; 9116 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 9117 { 9118 long int i = longval (); 9119 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 9120 return 1; 9121 fprintf (f, "%ld\n", i); 9122 } 9123 else 9124 { 9125 unsigned long int i = ulongval (); 9126 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 9127 return 1; 9128 fprintf (f, "%lu\n", i); 9129 } 9130 return ferror (f) || fclose (f) != 0; 9131 9132 ; 9133 return 0; 9134} 9135_ACEOF 9136rm -f conftest$ac_exeext 9137if { (ac_try="$ac_link" 9138case "(($ac_try" in 9139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9140 *) ac_try_echo=$ac_try;; 9141esac 9142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9143 (eval "$ac_link") 2>&5 9144 ac_status=$? 9145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9146 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9147 { (case "(($ac_try" in 9148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9149 *) ac_try_echo=$ac_try;; 9150esac 9151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9152 (eval "$ac_try") 2>&5 9153 ac_status=$? 9154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9155 (exit $ac_status); }; }; then 9156 ac_cv_sizeof_unsigned_long=`cat conftest.val` 9157else 9158 echo "$as_me: program exited with status $ac_status" >&5 9159echo "$as_me: failed program was:" >&5 9160sed 's/^/| /' conftest.$ac_ext >&5 9161 9162( exit $ac_status ) 9163if test "$ac_cv_type_unsigned_long" = yes; then 9164 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long) 9165See \`config.log' for more details." >&5 9166echo "$as_me: error: cannot compute sizeof (unsigned long) 9167See \`config.log' for more details." >&2;} 9168 { (exit 77); exit 77; }; } 9169 else 9170 ac_cv_sizeof_unsigned_long=0 9171 fi 9172fi 9173rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9174fi 9175rm -f conftest.val 9176fi 9177{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5 9178echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; } 9179 9180 9181 9182cat >>confdefs.h <<_ACEOF 9183@%:@define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long 9184_ACEOF 9185 9186 9187{ echo "$as_me:$LINENO: checking for long long" >&5 9188echo $ECHO_N "checking for long long... $ECHO_C" >&6; } 9189if test "${ac_cv_type_long_long+set}" = set; then 9190 echo $ECHO_N "(cached) $ECHO_C" >&6 9191else 9192 cat >conftest.$ac_ext <<_ACEOF 9193/* confdefs.h. */ 9194_ACEOF 9195cat confdefs.h >>conftest.$ac_ext 9196cat >>conftest.$ac_ext <<_ACEOF 9197/* end confdefs.h. */ 9198$ac_includes_default 9199typedef long long ac__type_new_; 9200int 9201main () 9202{ 9203if ((ac__type_new_ *) 0) 9204 return 0; 9205if (sizeof (ac__type_new_)) 9206 return 0; 9207 ; 9208 return 0; 9209} 9210_ACEOF 9211rm -f conftest.$ac_objext 9212if { (ac_try="$ac_compile" 9213case "(($ac_try" in 9214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9215 *) ac_try_echo=$ac_try;; 9216esac 9217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9218 (eval "$ac_compile") 2>conftest.er1 9219 ac_status=$? 9220 grep -v '^ *+' conftest.er1 >conftest.err 9221 rm -f conftest.er1 9222 cat conftest.err >&5 9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9224 (exit $ac_status); } && { 9225 test -z "$ac_cxx_werror_flag" || 9226 test ! -s conftest.err 9227 } && test -s conftest.$ac_objext; then 9228 ac_cv_type_long_long=yes 9229else 9230 echo "$as_me: failed program was:" >&5 9231sed 's/^/| /' conftest.$ac_ext >&5 9232 9233 ac_cv_type_long_long=no 9234fi 9235 9236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9237fi 9238{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 9239echo "${ECHO_T}$ac_cv_type_long_long" >&6; } 9240 9241# The cast to long int works around a bug in the HP C Compiler 9242# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9243# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9244# This bug is HP SR number 8606223364. 9245{ echo "$as_me:$LINENO: checking size of long long" >&5 9246echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } 9247if test "${ac_cv_sizeof_long_long+set}" = set; then 9248 echo $ECHO_N "(cached) $ECHO_C" >&6 9249else 9250 if test "$cross_compiling" = yes; then 9251 # Depending upon the size, compute the lo and hi bounds. 9252cat >conftest.$ac_ext <<_ACEOF 9253/* confdefs.h. */ 9254_ACEOF 9255cat confdefs.h >>conftest.$ac_ext 9256cat >>conftest.$ac_ext <<_ACEOF 9257/* end confdefs.h. */ 9258$ac_includes_default 9259 typedef long long ac__type_sizeof_; 9260int 9261main () 9262{ 9263static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@; 9264test_array @<:@0@:>@ = 0 9265 9266 ; 9267 return 0; 9268} 9269_ACEOF 9270rm -f conftest.$ac_objext 9271if { (ac_try="$ac_compile" 9272case "(($ac_try" in 9273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9274 *) ac_try_echo=$ac_try;; 9275esac 9276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9277 (eval "$ac_compile") 2>conftest.er1 9278 ac_status=$? 9279 grep -v '^ *+' conftest.er1 >conftest.err 9280 rm -f conftest.er1 9281 cat conftest.err >&5 9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9283 (exit $ac_status); } && { 9284 test -z "$ac_cxx_werror_flag" || 9285 test ! -s conftest.err 9286 } && test -s conftest.$ac_objext; then 9287 ac_lo=0 ac_mid=0 9288 while :; do 9289 cat >conftest.$ac_ext <<_ACEOF 9290/* confdefs.h. */ 9291_ACEOF 9292cat confdefs.h >>conftest.$ac_ext 9293cat >>conftest.$ac_ext <<_ACEOF 9294/* end confdefs.h. */ 9295$ac_includes_default 9296 typedef long long ac__type_sizeof_; 9297int 9298main () 9299{ 9300static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; 9301test_array @<:@0@:>@ = 0 9302 9303 ; 9304 return 0; 9305} 9306_ACEOF 9307rm -f conftest.$ac_objext 9308if { (ac_try="$ac_compile" 9309case "(($ac_try" in 9310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9311 *) ac_try_echo=$ac_try;; 9312esac 9313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9314 (eval "$ac_compile") 2>conftest.er1 9315 ac_status=$? 9316 grep -v '^ *+' conftest.er1 >conftest.err 9317 rm -f conftest.er1 9318 cat conftest.err >&5 9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9320 (exit $ac_status); } && { 9321 test -z "$ac_cxx_werror_flag" || 9322 test ! -s conftest.err 9323 } && test -s conftest.$ac_objext; then 9324 ac_hi=$ac_mid; break 9325else 9326 echo "$as_me: failed program was:" >&5 9327sed 's/^/| /' conftest.$ac_ext >&5 9328 9329 ac_lo=`expr $ac_mid + 1` 9330 if test $ac_lo -le $ac_mid; then 9331 ac_lo= ac_hi= 9332 break 9333 fi 9334 ac_mid=`expr 2 '*' $ac_mid + 1` 9335fi 9336 9337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9338 done 9339else 9340 echo "$as_me: failed program was:" >&5 9341sed 's/^/| /' conftest.$ac_ext >&5 9342 9343 cat >conftest.$ac_ext <<_ACEOF 9344/* confdefs.h. */ 9345_ACEOF 9346cat confdefs.h >>conftest.$ac_ext 9347cat >>conftest.$ac_ext <<_ACEOF 9348/* end confdefs.h. */ 9349$ac_includes_default 9350 typedef long long ac__type_sizeof_; 9351int 9352main () 9353{ 9354static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@; 9355test_array @<:@0@:>@ = 0 9356 9357 ; 9358 return 0; 9359} 9360_ACEOF 9361rm -f conftest.$ac_objext 9362if { (ac_try="$ac_compile" 9363case "(($ac_try" in 9364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9365 *) ac_try_echo=$ac_try;; 9366esac 9367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9368 (eval "$ac_compile") 2>conftest.er1 9369 ac_status=$? 9370 grep -v '^ *+' conftest.er1 >conftest.err 9371 rm -f conftest.er1 9372 cat conftest.err >&5 9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9374 (exit $ac_status); } && { 9375 test -z "$ac_cxx_werror_flag" || 9376 test ! -s conftest.err 9377 } && test -s conftest.$ac_objext; then 9378 ac_hi=-1 ac_mid=-1 9379 while :; do 9380 cat >conftest.$ac_ext <<_ACEOF 9381/* confdefs.h. */ 9382_ACEOF 9383cat confdefs.h >>conftest.$ac_ext 9384cat >>conftest.$ac_ext <<_ACEOF 9385/* end confdefs.h. */ 9386$ac_includes_default 9387 typedef long long ac__type_sizeof_; 9388int 9389main () 9390{ 9391static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@; 9392test_array @<:@0@:>@ = 0 9393 9394 ; 9395 return 0; 9396} 9397_ACEOF 9398rm -f conftest.$ac_objext 9399if { (ac_try="$ac_compile" 9400case "(($ac_try" in 9401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9402 *) ac_try_echo=$ac_try;; 9403esac 9404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9405 (eval "$ac_compile") 2>conftest.er1 9406 ac_status=$? 9407 grep -v '^ *+' conftest.er1 >conftest.err 9408 rm -f conftest.er1 9409 cat conftest.err >&5 9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9411 (exit $ac_status); } && { 9412 test -z "$ac_cxx_werror_flag" || 9413 test ! -s conftest.err 9414 } && test -s conftest.$ac_objext; then 9415 ac_lo=$ac_mid; break 9416else 9417 echo "$as_me: failed program was:" >&5 9418sed 's/^/| /' conftest.$ac_ext >&5 9419 9420 ac_hi=`expr '(' $ac_mid ')' - 1` 9421 if test $ac_mid -le $ac_hi; then 9422 ac_lo= ac_hi= 9423 break 9424 fi 9425 ac_mid=`expr 2 '*' $ac_mid` 9426fi 9427 9428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9429 done 9430else 9431 echo "$as_me: failed program was:" >&5 9432sed 's/^/| /' conftest.$ac_ext >&5 9433 9434 ac_lo= ac_hi= 9435fi 9436 9437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9438fi 9439 9440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9441# Binary search between lo and hi bounds. 9442while test "x$ac_lo" != "x$ac_hi"; do 9443 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 9444 cat >conftest.$ac_ext <<_ACEOF 9445/* confdefs.h. */ 9446_ACEOF 9447cat confdefs.h >>conftest.$ac_ext 9448cat >>conftest.$ac_ext <<_ACEOF 9449/* end confdefs.h. */ 9450$ac_includes_default 9451 typedef long long ac__type_sizeof_; 9452int 9453main () 9454{ 9455static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; 9456test_array @<:@0@:>@ = 0 9457 9458 ; 9459 return 0; 9460} 9461_ACEOF 9462rm -f conftest.$ac_objext 9463if { (ac_try="$ac_compile" 9464case "(($ac_try" in 9465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9466 *) ac_try_echo=$ac_try;; 9467esac 9468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9469 (eval "$ac_compile") 2>conftest.er1 9470 ac_status=$? 9471 grep -v '^ *+' conftest.er1 >conftest.err 9472 rm -f conftest.er1 9473 cat conftest.err >&5 9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9475 (exit $ac_status); } && { 9476 test -z "$ac_cxx_werror_flag" || 9477 test ! -s conftest.err 9478 } && test -s conftest.$ac_objext; then 9479 ac_hi=$ac_mid 9480else 9481 echo "$as_me: failed program was:" >&5 9482sed 's/^/| /' conftest.$ac_ext >&5 9483 9484 ac_lo=`expr '(' $ac_mid ')' + 1` 9485fi 9486 9487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9488done 9489case $ac_lo in 9490?*) ac_cv_sizeof_long_long=$ac_lo;; 9491'') if test "$ac_cv_type_long_long" = yes; then 9492 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) 9493See \`config.log' for more details." >&5 9494echo "$as_me: error: cannot compute sizeof (long long) 9495See \`config.log' for more details." >&2;} 9496 { (exit 77); exit 77; }; } 9497 else 9498 ac_cv_sizeof_long_long=0 9499 fi ;; 9500esac 9501else 9502 cat >conftest.$ac_ext <<_ACEOF 9503/* confdefs.h. */ 9504_ACEOF 9505cat confdefs.h >>conftest.$ac_ext 9506cat >>conftest.$ac_ext <<_ACEOF 9507/* end confdefs.h. */ 9508$ac_includes_default 9509 typedef long long ac__type_sizeof_; 9510static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 9511static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 9512@%:@include <stdio.h> 9513@%:@include <stdlib.h> 9514int 9515main () 9516{ 9517 9518 FILE *f = fopen ("conftest.val", "w"); 9519 if (! f) 9520 return 1; 9521 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 9522 { 9523 long int i = longval (); 9524 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 9525 return 1; 9526 fprintf (f, "%ld\n", i); 9527 } 9528 else 9529 { 9530 unsigned long int i = ulongval (); 9531 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 9532 return 1; 9533 fprintf (f, "%lu\n", i); 9534 } 9535 return ferror (f) || fclose (f) != 0; 9536 9537 ; 9538 return 0; 9539} 9540_ACEOF 9541rm -f conftest$ac_exeext 9542if { (ac_try="$ac_link" 9543case "(($ac_try" in 9544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9545 *) ac_try_echo=$ac_try;; 9546esac 9547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9548 (eval "$ac_link") 2>&5 9549 ac_status=$? 9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9552 { (case "(($ac_try" in 9553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9554 *) ac_try_echo=$ac_try;; 9555esac 9556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9557 (eval "$ac_try") 2>&5 9558 ac_status=$? 9559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9560 (exit $ac_status); }; }; then 9561 ac_cv_sizeof_long_long=`cat conftest.val` 9562else 9563 echo "$as_me: program exited with status $ac_status" >&5 9564echo "$as_me: failed program was:" >&5 9565sed 's/^/| /' conftest.$ac_ext >&5 9566 9567( exit $ac_status ) 9568if test "$ac_cv_type_long_long" = yes; then 9569 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) 9570See \`config.log' for more details." >&5 9571echo "$as_me: error: cannot compute sizeof (long long) 9572See \`config.log' for more details." >&2;} 9573 { (exit 77); exit 77; }; } 9574 else 9575 ac_cv_sizeof_long_long=0 9576 fi 9577fi 9578rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9579fi 9580rm -f conftest.val 9581fi 9582{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 9583echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } 9584 9585 9586 9587cat >>confdefs.h <<_ACEOF 9588@%:@define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 9589_ACEOF 9590 9591 9592{ echo "$as_me:$LINENO: checking for unsigned long long" >&5 9593echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; } 9594if test "${ac_cv_type_unsigned_long_long+set}" = set; then 9595 echo $ECHO_N "(cached) $ECHO_C" >&6 9596else 9597 cat >conftest.$ac_ext <<_ACEOF 9598/* confdefs.h. */ 9599_ACEOF 9600cat confdefs.h >>conftest.$ac_ext 9601cat >>conftest.$ac_ext <<_ACEOF 9602/* end confdefs.h. */ 9603$ac_includes_default 9604typedef unsigned long long ac__type_new_; 9605int 9606main () 9607{ 9608if ((ac__type_new_ *) 0) 9609 return 0; 9610if (sizeof (ac__type_new_)) 9611 return 0; 9612 ; 9613 return 0; 9614} 9615_ACEOF 9616rm -f conftest.$ac_objext 9617if { (ac_try="$ac_compile" 9618case "(($ac_try" in 9619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9620 *) ac_try_echo=$ac_try;; 9621esac 9622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9623 (eval "$ac_compile") 2>conftest.er1 9624 ac_status=$? 9625 grep -v '^ *+' conftest.er1 >conftest.err 9626 rm -f conftest.er1 9627 cat conftest.err >&5 9628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9629 (exit $ac_status); } && { 9630 test -z "$ac_cxx_werror_flag" || 9631 test ! -s conftest.err 9632 } && test -s conftest.$ac_objext; then 9633 ac_cv_type_unsigned_long_long=yes 9634else 9635 echo "$as_me: failed program was:" >&5 9636sed 's/^/| /' conftest.$ac_ext >&5 9637 9638 ac_cv_type_unsigned_long_long=no 9639fi 9640 9641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9642fi 9643{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 9644echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; } 9645 9646# The cast to long int works around a bug in the HP C Compiler 9647# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9648# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9649# This bug is HP SR number 8606223364. 9650{ echo "$as_me:$LINENO: checking size of unsigned long long" >&5 9651echo $ECHO_N "checking size of unsigned long long... $ECHO_C" >&6; } 9652if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then 9653 echo $ECHO_N "(cached) $ECHO_C" >&6 9654else 9655 if test "$cross_compiling" = yes; then 9656 # Depending upon the size, compute the lo and hi bounds. 9657cat >conftest.$ac_ext <<_ACEOF 9658/* confdefs.h. */ 9659_ACEOF 9660cat confdefs.h >>conftest.$ac_ext 9661cat >>conftest.$ac_ext <<_ACEOF 9662/* end confdefs.h. */ 9663$ac_includes_default 9664 typedef unsigned long long ac__type_sizeof_; 9665int 9666main () 9667{ 9668static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@; 9669test_array @<:@0@:>@ = 0 9670 9671 ; 9672 return 0; 9673} 9674_ACEOF 9675rm -f conftest.$ac_objext 9676if { (ac_try="$ac_compile" 9677case "(($ac_try" in 9678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9679 *) ac_try_echo=$ac_try;; 9680esac 9681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9682 (eval "$ac_compile") 2>conftest.er1 9683 ac_status=$? 9684 grep -v '^ *+' conftest.er1 >conftest.err 9685 rm -f conftest.er1 9686 cat conftest.err >&5 9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9688 (exit $ac_status); } && { 9689 test -z "$ac_cxx_werror_flag" || 9690 test ! -s conftest.err 9691 } && test -s conftest.$ac_objext; then 9692 ac_lo=0 ac_mid=0 9693 while :; do 9694 cat >conftest.$ac_ext <<_ACEOF 9695/* confdefs.h. */ 9696_ACEOF 9697cat confdefs.h >>conftest.$ac_ext 9698cat >>conftest.$ac_ext <<_ACEOF 9699/* end confdefs.h. */ 9700$ac_includes_default 9701 typedef unsigned long long ac__type_sizeof_; 9702int 9703main () 9704{ 9705static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; 9706test_array @<:@0@:>@ = 0 9707 9708 ; 9709 return 0; 9710} 9711_ACEOF 9712rm -f conftest.$ac_objext 9713if { (ac_try="$ac_compile" 9714case "(($ac_try" in 9715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9716 *) ac_try_echo=$ac_try;; 9717esac 9718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9719 (eval "$ac_compile") 2>conftest.er1 9720 ac_status=$? 9721 grep -v '^ *+' conftest.er1 >conftest.err 9722 rm -f conftest.er1 9723 cat conftest.err >&5 9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9725 (exit $ac_status); } && { 9726 test -z "$ac_cxx_werror_flag" || 9727 test ! -s conftest.err 9728 } && test -s conftest.$ac_objext; then 9729 ac_hi=$ac_mid; break 9730else 9731 echo "$as_me: failed program was:" >&5 9732sed 's/^/| /' conftest.$ac_ext >&5 9733 9734 ac_lo=`expr $ac_mid + 1` 9735 if test $ac_lo -le $ac_mid; then 9736 ac_lo= ac_hi= 9737 break 9738 fi 9739 ac_mid=`expr 2 '*' $ac_mid + 1` 9740fi 9741 9742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9743 done 9744else 9745 echo "$as_me: failed program was:" >&5 9746sed 's/^/| /' conftest.$ac_ext >&5 9747 9748 cat >conftest.$ac_ext <<_ACEOF 9749/* confdefs.h. */ 9750_ACEOF 9751cat confdefs.h >>conftest.$ac_ext 9752cat >>conftest.$ac_ext <<_ACEOF 9753/* end confdefs.h. */ 9754$ac_includes_default 9755 typedef unsigned long long ac__type_sizeof_; 9756int 9757main () 9758{ 9759static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@; 9760test_array @<:@0@:>@ = 0 9761 9762 ; 9763 return 0; 9764} 9765_ACEOF 9766rm -f conftest.$ac_objext 9767if { (ac_try="$ac_compile" 9768case "(($ac_try" in 9769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9770 *) ac_try_echo=$ac_try;; 9771esac 9772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9773 (eval "$ac_compile") 2>conftest.er1 9774 ac_status=$? 9775 grep -v '^ *+' conftest.er1 >conftest.err 9776 rm -f conftest.er1 9777 cat conftest.err >&5 9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9779 (exit $ac_status); } && { 9780 test -z "$ac_cxx_werror_flag" || 9781 test ! -s conftest.err 9782 } && test -s conftest.$ac_objext; then 9783 ac_hi=-1 ac_mid=-1 9784 while :; do 9785 cat >conftest.$ac_ext <<_ACEOF 9786/* confdefs.h. */ 9787_ACEOF 9788cat confdefs.h >>conftest.$ac_ext 9789cat >>conftest.$ac_ext <<_ACEOF 9790/* end confdefs.h. */ 9791$ac_includes_default 9792 typedef unsigned long long ac__type_sizeof_; 9793int 9794main () 9795{ 9796static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@; 9797test_array @<:@0@:>@ = 0 9798 9799 ; 9800 return 0; 9801} 9802_ACEOF 9803rm -f conftest.$ac_objext 9804if { (ac_try="$ac_compile" 9805case "(($ac_try" in 9806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9807 *) ac_try_echo=$ac_try;; 9808esac 9809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9810 (eval "$ac_compile") 2>conftest.er1 9811 ac_status=$? 9812 grep -v '^ *+' conftest.er1 >conftest.err 9813 rm -f conftest.er1 9814 cat conftest.err >&5 9815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9816 (exit $ac_status); } && { 9817 test -z "$ac_cxx_werror_flag" || 9818 test ! -s conftest.err 9819 } && test -s conftest.$ac_objext; then 9820 ac_lo=$ac_mid; break 9821else 9822 echo "$as_me: failed program was:" >&5 9823sed 's/^/| /' conftest.$ac_ext >&5 9824 9825 ac_hi=`expr '(' $ac_mid ')' - 1` 9826 if test $ac_mid -le $ac_hi; then 9827 ac_lo= ac_hi= 9828 break 9829 fi 9830 ac_mid=`expr 2 '*' $ac_mid` 9831fi 9832 9833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9834 done 9835else 9836 echo "$as_me: failed program was:" >&5 9837sed 's/^/| /' conftest.$ac_ext >&5 9838 9839 ac_lo= ac_hi= 9840fi 9841 9842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9843fi 9844 9845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9846# Binary search between lo and hi bounds. 9847while test "x$ac_lo" != "x$ac_hi"; do 9848 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 9849 cat >conftest.$ac_ext <<_ACEOF 9850/* confdefs.h. */ 9851_ACEOF 9852cat confdefs.h >>conftest.$ac_ext 9853cat >>conftest.$ac_ext <<_ACEOF 9854/* end confdefs.h. */ 9855$ac_includes_default 9856 typedef unsigned long long ac__type_sizeof_; 9857int 9858main () 9859{ 9860static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; 9861test_array @<:@0@:>@ = 0 9862 9863 ; 9864 return 0; 9865} 9866_ACEOF 9867rm -f conftest.$ac_objext 9868if { (ac_try="$ac_compile" 9869case "(($ac_try" in 9870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9871 *) ac_try_echo=$ac_try;; 9872esac 9873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9874 (eval "$ac_compile") 2>conftest.er1 9875 ac_status=$? 9876 grep -v '^ *+' conftest.er1 >conftest.err 9877 rm -f conftest.er1 9878 cat conftest.err >&5 9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9880 (exit $ac_status); } && { 9881 test -z "$ac_cxx_werror_flag" || 9882 test ! -s conftest.err 9883 } && test -s conftest.$ac_objext; then 9884 ac_hi=$ac_mid 9885else 9886 echo "$as_me: failed program was:" >&5 9887sed 's/^/| /' conftest.$ac_ext >&5 9888 9889 ac_lo=`expr '(' $ac_mid ')' + 1` 9890fi 9891 9892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9893done 9894case $ac_lo in 9895?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;; 9896'') if test "$ac_cv_type_unsigned_long_long" = yes; then 9897 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long) 9898See \`config.log' for more details." >&5 9899echo "$as_me: error: cannot compute sizeof (unsigned long long) 9900See \`config.log' for more details." >&2;} 9901 { (exit 77); exit 77; }; } 9902 else 9903 ac_cv_sizeof_unsigned_long_long=0 9904 fi ;; 9905esac 9906else 9907 cat >conftest.$ac_ext <<_ACEOF 9908/* confdefs.h. */ 9909_ACEOF 9910cat confdefs.h >>conftest.$ac_ext 9911cat >>conftest.$ac_ext <<_ACEOF 9912/* end confdefs.h. */ 9913$ac_includes_default 9914 typedef unsigned long long ac__type_sizeof_; 9915static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 9916static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 9917@%:@include <stdio.h> 9918@%:@include <stdlib.h> 9919int 9920main () 9921{ 9922 9923 FILE *f = fopen ("conftest.val", "w"); 9924 if (! f) 9925 return 1; 9926 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 9927 { 9928 long int i = longval (); 9929 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 9930 return 1; 9931 fprintf (f, "%ld\n", i); 9932 } 9933 else 9934 { 9935 unsigned long int i = ulongval (); 9936 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 9937 return 1; 9938 fprintf (f, "%lu\n", i); 9939 } 9940 return ferror (f) || fclose (f) != 0; 9941 9942 ; 9943 return 0; 9944} 9945_ACEOF 9946rm -f conftest$ac_exeext 9947if { (ac_try="$ac_link" 9948case "(($ac_try" in 9949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9950 *) ac_try_echo=$ac_try;; 9951esac 9952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9953 (eval "$ac_link") 2>&5 9954 ac_status=$? 9955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9956 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9957 { (case "(($ac_try" in 9958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9959 *) ac_try_echo=$ac_try;; 9960esac 9961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9962 (eval "$ac_try") 2>&5 9963 ac_status=$? 9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9965 (exit $ac_status); }; }; then 9966 ac_cv_sizeof_unsigned_long_long=`cat conftest.val` 9967else 9968 echo "$as_me: program exited with status $ac_status" >&5 9969echo "$as_me: failed program was:" >&5 9970sed 's/^/| /' conftest.$ac_ext >&5 9971 9972( exit $ac_status ) 9973if test "$ac_cv_type_unsigned_long_long" = yes; then 9974 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long) 9975See \`config.log' for more details." >&5 9976echo "$as_me: error: cannot compute sizeof (unsigned long long) 9977See \`config.log' for more details." >&2;} 9978 { (exit 77); exit 77; }; } 9979 else 9980 ac_cv_sizeof_unsigned_long_long=0 9981 fi 9982fi 9983rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9984fi 9985rm -f conftest.val 9986fi 9987{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5 9988echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long" >&6; } 9989 9990 9991 9992cat >>confdefs.h <<_ACEOF 9993@%:@define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long 9994_ACEOF 9995 9996 9997ac_ext=cpp 9998ac_cpp='$CXXCPP $CPPFLAGS' 9999ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10000ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10001ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10002 10003{ echo "$as_me:$LINENO: checking for bool" >&5 10004echo $ECHO_N "checking for bool... $ECHO_C" >&6; } 10005if test "${ac_cv_type_bool+set}" = set; then 10006 echo $ECHO_N "(cached) $ECHO_C" >&6 10007else 10008 cat >conftest.$ac_ext <<_ACEOF 10009/* confdefs.h. */ 10010_ACEOF 10011cat confdefs.h >>conftest.$ac_ext 10012cat >>conftest.$ac_ext <<_ACEOF 10013/* end confdefs.h. */ 10014$ac_includes_default 10015typedef bool ac__type_new_; 10016int 10017main () 10018{ 10019if ((ac__type_new_ *) 0) 10020 return 0; 10021if (sizeof (ac__type_new_)) 10022 return 0; 10023 ; 10024 return 0; 10025} 10026_ACEOF 10027rm -f conftest.$ac_objext 10028if { (ac_try="$ac_compile" 10029case "(($ac_try" in 10030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10031 *) ac_try_echo=$ac_try;; 10032esac 10033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10034 (eval "$ac_compile") 2>conftest.er1 10035 ac_status=$? 10036 grep -v '^ *+' conftest.er1 >conftest.err 10037 rm -f conftest.er1 10038 cat conftest.err >&5 10039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10040 (exit $ac_status); } && { 10041 test -z "$ac_cxx_werror_flag" || 10042 test ! -s conftest.err 10043 } && test -s conftest.$ac_objext; then 10044 ac_cv_type_bool=yes 10045else 10046 echo "$as_me: failed program was:" >&5 10047sed 's/^/| /' conftest.$ac_ext >&5 10048 10049 ac_cv_type_bool=no 10050fi 10051 10052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10053fi 10054{ echo "$as_me:$LINENO: result: $ac_cv_type_bool" >&5 10055echo "${ECHO_T}$ac_cv_type_bool" >&6; } 10056 10057# The cast to long int works around a bug in the HP C Compiler 10058# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 10059# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 10060# This bug is HP SR number 8606223364. 10061{ echo "$as_me:$LINENO: checking size of bool" >&5 10062echo $ECHO_N "checking size of bool... $ECHO_C" >&6; } 10063if test "${ac_cv_sizeof_bool+set}" = set; then 10064 echo $ECHO_N "(cached) $ECHO_C" >&6 10065else 10066 if test "$cross_compiling" = yes; then 10067 # Depending upon the size, compute the lo and hi bounds. 10068cat >conftest.$ac_ext <<_ACEOF 10069/* confdefs.h. */ 10070_ACEOF 10071cat confdefs.h >>conftest.$ac_ext 10072cat >>conftest.$ac_ext <<_ACEOF 10073/* end confdefs.h. */ 10074$ac_includes_default 10075 typedef bool ac__type_sizeof_; 10076int 10077main () 10078{ 10079static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@; 10080test_array @<:@0@:>@ = 0 10081 10082 ; 10083 return 0; 10084} 10085_ACEOF 10086rm -f conftest.$ac_objext 10087if { (ac_try="$ac_compile" 10088case "(($ac_try" in 10089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10090 *) ac_try_echo=$ac_try;; 10091esac 10092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10093 (eval "$ac_compile") 2>conftest.er1 10094 ac_status=$? 10095 grep -v '^ *+' conftest.er1 >conftest.err 10096 rm -f conftest.er1 10097 cat conftest.err >&5 10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10099 (exit $ac_status); } && { 10100 test -z "$ac_cxx_werror_flag" || 10101 test ! -s conftest.err 10102 } && test -s conftest.$ac_objext; then 10103 ac_lo=0 ac_mid=0 10104 while :; do 10105 cat >conftest.$ac_ext <<_ACEOF 10106/* confdefs.h. */ 10107_ACEOF 10108cat confdefs.h >>conftest.$ac_ext 10109cat >>conftest.$ac_ext <<_ACEOF 10110/* end confdefs.h. */ 10111$ac_includes_default 10112 typedef bool ac__type_sizeof_; 10113int 10114main () 10115{ 10116static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; 10117test_array @<:@0@:>@ = 0 10118 10119 ; 10120 return 0; 10121} 10122_ACEOF 10123rm -f conftest.$ac_objext 10124if { (ac_try="$ac_compile" 10125case "(($ac_try" in 10126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10127 *) ac_try_echo=$ac_try;; 10128esac 10129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10130 (eval "$ac_compile") 2>conftest.er1 10131 ac_status=$? 10132 grep -v '^ *+' conftest.er1 >conftest.err 10133 rm -f conftest.er1 10134 cat conftest.err >&5 10135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10136 (exit $ac_status); } && { 10137 test -z "$ac_cxx_werror_flag" || 10138 test ! -s conftest.err 10139 } && test -s conftest.$ac_objext; then 10140 ac_hi=$ac_mid; break 10141else 10142 echo "$as_me: failed program was:" >&5 10143sed 's/^/| /' conftest.$ac_ext >&5 10144 10145 ac_lo=`expr $ac_mid + 1` 10146 if test $ac_lo -le $ac_mid; then 10147 ac_lo= ac_hi= 10148 break 10149 fi 10150 ac_mid=`expr 2 '*' $ac_mid + 1` 10151fi 10152 10153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10154 done 10155else 10156 echo "$as_me: failed program was:" >&5 10157sed 's/^/| /' conftest.$ac_ext >&5 10158 10159 cat >conftest.$ac_ext <<_ACEOF 10160/* confdefs.h. */ 10161_ACEOF 10162cat confdefs.h >>conftest.$ac_ext 10163cat >>conftest.$ac_ext <<_ACEOF 10164/* end confdefs.h. */ 10165$ac_includes_default 10166 typedef bool ac__type_sizeof_; 10167int 10168main () 10169{ 10170static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@; 10171test_array @<:@0@:>@ = 0 10172 10173 ; 10174 return 0; 10175} 10176_ACEOF 10177rm -f conftest.$ac_objext 10178if { (ac_try="$ac_compile" 10179case "(($ac_try" in 10180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10181 *) ac_try_echo=$ac_try;; 10182esac 10183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10184 (eval "$ac_compile") 2>conftest.er1 10185 ac_status=$? 10186 grep -v '^ *+' conftest.er1 >conftest.err 10187 rm -f conftest.er1 10188 cat conftest.err >&5 10189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10190 (exit $ac_status); } && { 10191 test -z "$ac_cxx_werror_flag" || 10192 test ! -s conftest.err 10193 } && test -s conftest.$ac_objext; then 10194 ac_hi=-1 ac_mid=-1 10195 while :; do 10196 cat >conftest.$ac_ext <<_ACEOF 10197/* confdefs.h. */ 10198_ACEOF 10199cat confdefs.h >>conftest.$ac_ext 10200cat >>conftest.$ac_ext <<_ACEOF 10201/* end confdefs.h. */ 10202$ac_includes_default 10203 typedef bool ac__type_sizeof_; 10204int 10205main () 10206{ 10207static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@; 10208test_array @<:@0@:>@ = 0 10209 10210 ; 10211 return 0; 10212} 10213_ACEOF 10214rm -f conftest.$ac_objext 10215if { (ac_try="$ac_compile" 10216case "(($ac_try" in 10217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10218 *) ac_try_echo=$ac_try;; 10219esac 10220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10221 (eval "$ac_compile") 2>conftest.er1 10222 ac_status=$? 10223 grep -v '^ *+' conftest.er1 >conftest.err 10224 rm -f conftest.er1 10225 cat conftest.err >&5 10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10227 (exit $ac_status); } && { 10228 test -z "$ac_cxx_werror_flag" || 10229 test ! -s conftest.err 10230 } && test -s conftest.$ac_objext; then 10231 ac_lo=$ac_mid; break 10232else 10233 echo "$as_me: failed program was:" >&5 10234sed 's/^/| /' conftest.$ac_ext >&5 10235 10236 ac_hi=`expr '(' $ac_mid ')' - 1` 10237 if test $ac_mid -le $ac_hi; then 10238 ac_lo= ac_hi= 10239 break 10240 fi 10241 ac_mid=`expr 2 '*' $ac_mid` 10242fi 10243 10244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10245 done 10246else 10247 echo "$as_me: failed program was:" >&5 10248sed 's/^/| /' conftest.$ac_ext >&5 10249 10250 ac_lo= ac_hi= 10251fi 10252 10253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10254fi 10255 10256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10257# Binary search between lo and hi bounds. 10258while test "x$ac_lo" != "x$ac_hi"; do 10259 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 10260 cat >conftest.$ac_ext <<_ACEOF 10261/* confdefs.h. */ 10262_ACEOF 10263cat confdefs.h >>conftest.$ac_ext 10264cat >>conftest.$ac_ext <<_ACEOF 10265/* end confdefs.h. */ 10266$ac_includes_default 10267 typedef bool ac__type_sizeof_; 10268int 10269main () 10270{ 10271static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; 10272test_array @<:@0@:>@ = 0 10273 10274 ; 10275 return 0; 10276} 10277_ACEOF 10278rm -f conftest.$ac_objext 10279if { (ac_try="$ac_compile" 10280case "(($ac_try" in 10281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10282 *) ac_try_echo=$ac_try;; 10283esac 10284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10285 (eval "$ac_compile") 2>conftest.er1 10286 ac_status=$? 10287 grep -v '^ *+' conftest.er1 >conftest.err 10288 rm -f conftest.er1 10289 cat conftest.err >&5 10290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10291 (exit $ac_status); } && { 10292 test -z "$ac_cxx_werror_flag" || 10293 test ! -s conftest.err 10294 } && test -s conftest.$ac_objext; then 10295 ac_hi=$ac_mid 10296else 10297 echo "$as_me: failed program was:" >&5 10298sed 's/^/| /' conftest.$ac_ext >&5 10299 10300 ac_lo=`expr '(' $ac_mid ')' + 1` 10301fi 10302 10303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10304done 10305case $ac_lo in 10306?*) ac_cv_sizeof_bool=$ac_lo;; 10307'') if test "$ac_cv_type_bool" = yes; then 10308 { { echo "$as_me:$LINENO: error: cannot compute sizeof (bool) 10309See \`config.log' for more details." >&5 10310echo "$as_me: error: cannot compute sizeof (bool) 10311See \`config.log' for more details." >&2;} 10312 { (exit 77); exit 77; }; } 10313 else 10314 ac_cv_sizeof_bool=0 10315 fi ;; 10316esac 10317else 10318 cat >conftest.$ac_ext <<_ACEOF 10319/* confdefs.h. */ 10320_ACEOF 10321cat confdefs.h >>conftest.$ac_ext 10322cat >>conftest.$ac_ext <<_ACEOF 10323/* end confdefs.h. */ 10324$ac_includes_default 10325 typedef bool ac__type_sizeof_; 10326static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 10327static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 10328@%:@include <stdio.h> 10329@%:@include <stdlib.h> 10330int 10331main () 10332{ 10333 10334 FILE *f = fopen ("conftest.val", "w"); 10335 if (! f) 10336 return 1; 10337 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 10338 { 10339 long int i = longval (); 10340 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 10341 return 1; 10342 fprintf (f, "%ld\n", i); 10343 } 10344 else 10345 { 10346 unsigned long int i = ulongval (); 10347 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 10348 return 1; 10349 fprintf (f, "%lu\n", i); 10350 } 10351 return ferror (f) || fclose (f) != 0; 10352 10353 ; 10354 return 0; 10355} 10356_ACEOF 10357rm -f conftest$ac_exeext 10358if { (ac_try="$ac_link" 10359case "(($ac_try" in 10360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10361 *) ac_try_echo=$ac_try;; 10362esac 10363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10364 (eval "$ac_link") 2>&5 10365 ac_status=$? 10366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10367 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10368 { (case "(($ac_try" in 10369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10370 *) ac_try_echo=$ac_try;; 10371esac 10372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10373 (eval "$ac_try") 2>&5 10374 ac_status=$? 10375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10376 (exit $ac_status); }; }; then 10377 ac_cv_sizeof_bool=`cat conftest.val` 10378else 10379 echo "$as_me: program exited with status $ac_status" >&5 10380echo "$as_me: failed program was:" >&5 10381sed 's/^/| /' conftest.$ac_ext >&5 10382 10383( exit $ac_status ) 10384if test "$ac_cv_type_bool" = yes; then 10385 { { echo "$as_me:$LINENO: error: cannot compute sizeof (bool) 10386See \`config.log' for more details." >&5 10387echo "$as_me: error: cannot compute sizeof (bool) 10388See \`config.log' for more details." >&2;} 10389 { (exit 77); exit 77; }; } 10390 else 10391 ac_cv_sizeof_bool=0 10392 fi 10393fi 10394rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10395fi 10396rm -f conftest.val 10397fi 10398{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_bool" >&5 10399echo "${ECHO_T}$ac_cv_sizeof_bool" >&6; } 10400 10401 10402 10403cat >>confdefs.h <<_ACEOF 10404@%:@define SIZEOF_BOOL $ac_cv_sizeof_bool 10405_ACEOF 10406 10407 10408ac_ext=cpp 10409ac_cpp='$CXXCPP $CPPFLAGS' 10410ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10411ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10412ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10413 10414 10415{ echo "$as_me:$LINENO: checking for fpos_t.__pos" >&5 10416echo $ECHO_N "checking for fpos_t.__pos... $ECHO_C" >&6; } 10417if test "${ac_cv_member_fpos_t___pos+set}" = set; then 10418 echo $ECHO_N "(cached) $ECHO_C" >&6 10419else 10420 cat >conftest.$ac_ext <<_ACEOF 10421/* confdefs.h. */ 10422_ACEOF 10423cat confdefs.h >>conftest.$ac_ext 10424cat >>conftest.$ac_ext <<_ACEOF 10425/* end confdefs.h. */ 10426#include <stdio.h> 10427 10428int 10429main () 10430{ 10431static fpos_t ac_aggr; 10432if (ac_aggr.__pos) 10433return 0; 10434 ; 10435 return 0; 10436} 10437_ACEOF 10438rm -f conftest.$ac_objext 10439if { (ac_try="$ac_compile" 10440case "(($ac_try" in 10441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10442 *) ac_try_echo=$ac_try;; 10443esac 10444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10445 (eval "$ac_compile") 2>conftest.er1 10446 ac_status=$? 10447 grep -v '^ *+' conftest.er1 >conftest.err 10448 rm -f conftest.er1 10449 cat conftest.err >&5 10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10451 (exit $ac_status); } && { 10452 test -z "$ac_cxx_werror_flag" || 10453 test ! -s conftest.err 10454 } && test -s conftest.$ac_objext; then 10455 ac_cv_member_fpos_t___pos=yes 10456else 10457 echo "$as_me: failed program was:" >&5 10458sed 's/^/| /' conftest.$ac_ext >&5 10459 10460 cat >conftest.$ac_ext <<_ACEOF 10461/* confdefs.h. */ 10462_ACEOF 10463cat confdefs.h >>conftest.$ac_ext 10464cat >>conftest.$ac_ext <<_ACEOF 10465/* end confdefs.h. */ 10466#include <stdio.h> 10467 10468int 10469main () 10470{ 10471static fpos_t ac_aggr; 10472if (sizeof ac_aggr.__pos) 10473return 0; 10474 ; 10475 return 0; 10476} 10477_ACEOF 10478rm -f conftest.$ac_objext 10479if { (ac_try="$ac_compile" 10480case "(($ac_try" in 10481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10482 *) ac_try_echo=$ac_try;; 10483esac 10484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10485 (eval "$ac_compile") 2>conftest.er1 10486 ac_status=$? 10487 grep -v '^ *+' conftest.er1 >conftest.err 10488 rm -f conftest.er1 10489 cat conftest.err >&5 10490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10491 (exit $ac_status); } && { 10492 test -z "$ac_cxx_werror_flag" || 10493 test ! -s conftest.err 10494 } && test -s conftest.$ac_objext; then 10495 ac_cv_member_fpos_t___pos=yes 10496else 10497 echo "$as_me: failed program was:" >&5 10498sed 's/^/| /' conftest.$ac_ext >&5 10499 10500 ac_cv_member_fpos_t___pos=no 10501fi 10502 10503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10504fi 10505 10506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10507fi 10508{ echo "$as_me:$LINENO: result: $ac_cv_member_fpos_t___pos" >&5 10509echo "${ECHO_T}$ac_cv_member_fpos_t___pos" >&6; } 10510if test $ac_cv_member_fpos_t___pos = yes; then 10511 10512cat >>confdefs.h <<_ACEOF 10513@%:@define HAVE_FPOS_T___POS 1 10514_ACEOF 10515 10516 10517fi 10518 10519 10520 10521 10522 10523 10524 10525 10526for ac_header in fcntl.h unistd.h stdint.h inttypes.h getopt.h byteswap.h 10527do 10528as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10529if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10530 { echo "$as_me:$LINENO: checking for $ac_header" >&5 10531echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 10532if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10533 echo $ECHO_N "(cached) $ECHO_C" >&6 10534fi 10535ac_res=`eval echo '${'$as_ac_Header'}'` 10536 { echo "$as_me:$LINENO: result: $ac_res" >&5 10537echo "${ECHO_T}$ac_res" >&6; } 10538else 10539 # Is the header compilable? 10540{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 10541echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 10542cat >conftest.$ac_ext <<_ACEOF 10543/* confdefs.h. */ 10544_ACEOF 10545cat confdefs.h >>conftest.$ac_ext 10546cat >>conftest.$ac_ext <<_ACEOF 10547/* end confdefs.h. */ 10548$ac_includes_default 10549@%:@include <$ac_header> 10550_ACEOF 10551rm -f conftest.$ac_objext 10552if { (ac_try="$ac_compile" 10553case "(($ac_try" in 10554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10555 *) ac_try_echo=$ac_try;; 10556esac 10557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10558 (eval "$ac_compile") 2>conftest.er1 10559 ac_status=$? 10560 grep -v '^ *+' conftest.er1 >conftest.err 10561 rm -f conftest.er1 10562 cat conftest.err >&5 10563 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10564 (exit $ac_status); } && { 10565 test -z "$ac_cxx_werror_flag" || 10566 test ! -s conftest.err 10567 } && test -s conftest.$ac_objext; then 10568 ac_header_compiler=yes 10569else 10570 echo "$as_me: failed program was:" >&5 10571sed 's/^/| /' conftest.$ac_ext >&5 10572 10573 ac_header_compiler=no 10574fi 10575 10576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10577{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10578echo "${ECHO_T}$ac_header_compiler" >&6; } 10579 10580# Is the header present? 10581{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 10582echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 10583cat >conftest.$ac_ext <<_ACEOF 10584/* confdefs.h. */ 10585_ACEOF 10586cat confdefs.h >>conftest.$ac_ext 10587cat >>conftest.$ac_ext <<_ACEOF 10588/* end confdefs.h. */ 10589@%:@include <$ac_header> 10590_ACEOF 10591if { (ac_try="$ac_cpp conftest.$ac_ext" 10592case "(($ac_try" in 10593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10594 *) ac_try_echo=$ac_try;; 10595esac 10596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10597 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 10598 ac_status=$? 10599 grep -v '^ *+' conftest.er1 >conftest.err 10600 rm -f conftest.er1 10601 cat conftest.err >&5 10602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10603 (exit $ac_status); } >/dev/null && { 10604 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 10605 test ! -s conftest.err 10606 }; then 10607 ac_header_preproc=yes 10608else 10609 echo "$as_me: failed program was:" >&5 10610sed 's/^/| /' conftest.$ac_ext >&5 10611 10612 ac_header_preproc=no 10613fi 10614 10615rm -f conftest.err conftest.$ac_ext 10616{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10617echo "${ECHO_T}$ac_header_preproc" >&6; } 10618 10619# So? What about this header? 10620case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 10621 yes:no: ) 10622 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 10623echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 10624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 10625echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 10626 ac_header_preproc=yes 10627 ;; 10628 no:yes:* ) 10629 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 10630echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 10631 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 10632echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 10633 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 10634echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 10635 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 10636echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 10637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10638echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 10639 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 10640echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 10641 10642 ;; 10643esac 10644{ echo "$as_me:$LINENO: checking for $ac_header" >&5 10645echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 10646if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10647 echo $ECHO_N "(cached) $ECHO_C" >&6 10648else 10649 eval "$as_ac_Header=\$ac_header_preproc" 10650fi 10651ac_res=`eval echo '${'$as_ac_Header'}'` 10652 { echo "$as_me:$LINENO: result: $ac_res" >&5 10653echo "${ECHO_T}$ac_res" >&6; } 10654 10655fi 10656if test `eval echo '${'$as_ac_Header'}'` = yes; then 10657 cat >>confdefs.h <<_ACEOF 10658@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10659_ACEOF 10660 10661fi 10662 10663done 10664 10665 10666 10667 10668for ac_header in linux/cdrom.h sys/dvdio.h sys/time.h 10669do 10670as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10671if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10672 { echo "$as_me:$LINENO: checking for $ac_header" >&5 10673echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 10674if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10675 echo $ECHO_N "(cached) $ECHO_C" >&6 10676fi 10677ac_res=`eval echo '${'$as_ac_Header'}'` 10678 { echo "$as_me:$LINENO: result: $ac_res" >&5 10679echo "${ECHO_T}$ac_res" >&6; } 10680else 10681 # Is the header compilable? 10682{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 10683echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 10684cat >conftest.$ac_ext <<_ACEOF 10685/* confdefs.h. */ 10686_ACEOF 10687cat confdefs.h >>conftest.$ac_ext 10688cat >>conftest.$ac_ext <<_ACEOF 10689/* end confdefs.h. */ 10690$ac_includes_default 10691@%:@include <$ac_header> 10692_ACEOF 10693rm -f conftest.$ac_objext 10694if { (ac_try="$ac_compile" 10695case "(($ac_try" in 10696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10697 *) ac_try_echo=$ac_try;; 10698esac 10699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10700 (eval "$ac_compile") 2>conftest.er1 10701 ac_status=$? 10702 grep -v '^ *+' conftest.er1 >conftest.err 10703 rm -f conftest.er1 10704 cat conftest.err >&5 10705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10706 (exit $ac_status); } && { 10707 test -z "$ac_cxx_werror_flag" || 10708 test ! -s conftest.err 10709 } && test -s conftest.$ac_objext; then 10710 ac_header_compiler=yes 10711else 10712 echo "$as_me: failed program was:" >&5 10713sed 's/^/| /' conftest.$ac_ext >&5 10714 10715 ac_header_compiler=no 10716fi 10717 10718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10719{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10720echo "${ECHO_T}$ac_header_compiler" >&6; } 10721 10722# Is the header present? 10723{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 10724echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 10725cat >conftest.$ac_ext <<_ACEOF 10726/* confdefs.h. */ 10727_ACEOF 10728cat confdefs.h >>conftest.$ac_ext 10729cat >>conftest.$ac_ext <<_ACEOF 10730/* end confdefs.h. */ 10731@%:@include <$ac_header> 10732_ACEOF 10733if { (ac_try="$ac_cpp conftest.$ac_ext" 10734case "(($ac_try" in 10735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10736 *) ac_try_echo=$ac_try;; 10737esac 10738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 10740 ac_status=$? 10741 grep -v '^ *+' conftest.er1 >conftest.err 10742 rm -f conftest.er1 10743 cat conftest.err >&5 10744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10745 (exit $ac_status); } >/dev/null && { 10746 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 10747 test ! -s conftest.err 10748 }; then 10749 ac_header_preproc=yes 10750else 10751 echo "$as_me: failed program was:" >&5 10752sed 's/^/| /' conftest.$ac_ext >&5 10753 10754 ac_header_preproc=no 10755fi 10756 10757rm -f conftest.err conftest.$ac_ext 10758{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10759echo "${ECHO_T}$ac_header_preproc" >&6; } 10760 10761# So? What about this header? 10762case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 10763 yes:no: ) 10764 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 10765echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 10766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 10767echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 10768 ac_header_preproc=yes 10769 ;; 10770 no:yes:* ) 10771 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 10772echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 10773 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 10774echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 10775 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 10776echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 10777 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 10778echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 10779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10780echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 10781 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 10782echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 10783 10784 ;; 10785esac 10786{ echo "$as_me:$LINENO: checking for $ac_header" >&5 10787echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 10788if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10789 echo $ECHO_N "(cached) $ECHO_C" >&6 10790else 10791 eval "$as_ac_Header=\$ac_header_preproc" 10792fi 10793ac_res=`eval echo '${'$as_ac_Header'}'` 10794 { echo "$as_me:$LINENO: result: $ac_res" >&5 10795echo "${ECHO_T}$ac_res" >&6; } 10796 10797fi 10798if test `eval echo '${'$as_ac_Header'}'` = yes; then 10799 cat >>confdefs.h <<_ACEOF 10800@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10801_ACEOF 10802 10803fi 10804 10805done 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818for ac_func in strerror strcasestr poll getopt getopt_long getopt_long_only getrusage socketpair strsep inet_ntoa 10819do 10820as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10821{ echo "$as_me:$LINENO: checking for $ac_func" >&5 10822echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10823if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10824 echo $ECHO_N "(cached) $ECHO_C" >&6 10825else 10826 cat >conftest.$ac_ext <<_ACEOF 10827/* confdefs.h. */ 10828_ACEOF 10829cat confdefs.h >>conftest.$ac_ext 10830cat >>conftest.$ac_ext <<_ACEOF 10831/* end confdefs.h. */ 10832/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10833 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10834#define $ac_func innocuous_$ac_func 10835 10836/* System header to define __stub macros and hopefully few prototypes, 10837 which can conflict with char $ac_func (); below. 10838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10839 <limits.h> exists even on freestanding compilers. */ 10840 10841#ifdef __STDC__ 10842# include <limits.h> 10843#else 10844# include <assert.h> 10845#endif 10846 10847#undef $ac_func 10848 10849/* Override any GCC internal prototype to avoid an error. 10850 Use char because int might match the return type of a GCC 10851 builtin and then its argument prototype would still apply. */ 10852#ifdef __cplusplus 10853extern "C" 10854#endif 10855char $ac_func (); 10856/* The GNU C library defines this for functions which it implements 10857 to always fail with ENOSYS. Some functions are actually named 10858 something starting with __ and the normal name is an alias. */ 10859#if defined __stub_$ac_func || defined __stub___$ac_func 10860choke me 10861#endif 10862 10863int 10864main () 10865{ 10866return $ac_func (); 10867 ; 10868 return 0; 10869} 10870_ACEOF 10871rm -f conftest.$ac_objext conftest$ac_exeext 10872if { (ac_try="$ac_link" 10873case "(($ac_try" in 10874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10875 *) ac_try_echo=$ac_try;; 10876esac 10877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10878 (eval "$ac_link") 2>conftest.er1 10879 ac_status=$? 10880 grep -v '^ *+' conftest.er1 >conftest.err 10881 rm -f conftest.er1 10882 cat conftest.err >&5 10883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10884 (exit $ac_status); } && { 10885 test -z "$ac_cxx_werror_flag" || 10886 test ! -s conftest.err 10887 } && test -s conftest$ac_exeext && 10888 $as_test_x conftest$ac_exeext; then 10889 eval "$as_ac_var=yes" 10890else 10891 echo "$as_me: failed program was:" >&5 10892sed 's/^/| /' conftest.$ac_ext >&5 10893 10894 eval "$as_ac_var=no" 10895fi 10896 10897rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10898 conftest$ac_exeext conftest.$ac_ext 10899fi 10900ac_res=`eval echo '${'$as_ac_var'}'` 10901 { echo "$as_me:$LINENO: result: $ac_res" >&5 10902echo "${ECHO_T}$ac_res" >&6; } 10903if test `eval echo '${'$as_ac_var'}'` = yes; then 10904 cat >>confdefs.h <<_ACEOF 10905@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10906_ACEOF 10907 10908fi 10909done 10910 10911 10912 10913{ echo "$as_me:$LINENO: checking for in_port_t" >&5 10914echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6; } 10915if test "${ac_cv_type_in_port_t+set}" = set; then 10916 echo $ECHO_N "(cached) $ECHO_C" >&6 10917else 10918 cat >conftest.$ac_ext <<_ACEOF 10919/* confdefs.h. */ 10920_ACEOF 10921cat confdefs.h >>conftest.$ac_ext 10922cat >>conftest.$ac_ext <<_ACEOF 10923/* end confdefs.h. */ 10924#include <sys/types.h> 10925 #include <sys/socket.h> 10926 #include <netinet/in.h> 10927 10928typedef in_port_t ac__type_new_; 10929int 10930main () 10931{ 10932if ((ac__type_new_ *) 0) 10933 return 0; 10934if (sizeof (ac__type_new_)) 10935 return 0; 10936 ; 10937 return 0; 10938} 10939_ACEOF 10940rm -f conftest.$ac_objext 10941if { (ac_try="$ac_compile" 10942case "(($ac_try" in 10943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10944 *) ac_try_echo=$ac_try;; 10945esac 10946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10947 (eval "$ac_compile") 2>conftest.er1 10948 ac_status=$? 10949 grep -v '^ *+' conftest.er1 >conftest.err 10950 rm -f conftest.er1 10951 cat conftest.err >&5 10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10953 (exit $ac_status); } && { 10954 test -z "$ac_cxx_werror_flag" || 10955 test ! -s conftest.err 10956 } && test -s conftest.$ac_objext; then 10957 ac_cv_type_in_port_t=yes 10958else 10959 echo "$as_me: failed program was:" >&5 10960sed 's/^/| /' conftest.$ac_ext >&5 10961 10962 ac_cv_type_in_port_t=no 10963fi 10964 10965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10966fi 10967{ echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5 10968echo "${ECHO_T}$ac_cv_type_in_port_t" >&6; } 10969if test $ac_cv_type_in_port_t = yes; then 10970 10971cat >>confdefs.h <<_ACEOF 10972@%:@define HAVE_IN_PORT_T 1 10973_ACEOF 10974 10975 10976fi 10977{ echo "$as_me:$LINENO: checking for socklen_t" >&5 10978echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; } 10979if test "${ac_cv_type_socklen_t+set}" = set; then 10980 echo $ECHO_N "(cached) $ECHO_C" >&6 10981else 10982 cat >conftest.$ac_ext <<_ACEOF 10983/* confdefs.h. */ 10984_ACEOF 10985cat confdefs.h >>conftest.$ac_ext 10986cat >>conftest.$ac_ext <<_ACEOF 10987/* end confdefs.h. */ 10988#include <sys/types.h> 10989 #include <sys/socket.h> 10990 #include <netinet/in.h> 10991 10992typedef socklen_t ac__type_new_; 10993int 10994main () 10995{ 10996if ((ac__type_new_ *) 0) 10997 return 0; 10998if (sizeof (ac__type_new_)) 10999 return 0; 11000 ; 11001 return 0; 11002} 11003_ACEOF 11004rm -f conftest.$ac_objext 11005if { (ac_try="$ac_compile" 11006case "(($ac_try" in 11007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11008 *) ac_try_echo=$ac_try;; 11009esac 11010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11011 (eval "$ac_compile") 2>conftest.er1 11012 ac_status=$? 11013 grep -v '^ *+' conftest.er1 >conftest.err 11014 rm -f conftest.er1 11015 cat conftest.err >&5 11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11017 (exit $ac_status); } && { 11018 test -z "$ac_cxx_werror_flag" || 11019 test ! -s conftest.err 11020 } && test -s conftest.$ac_objext; then 11021 ac_cv_type_socklen_t=yes 11022else 11023 echo "$as_me: failed program was:" >&5 11024sed 's/^/| /' conftest.$ac_ext >&5 11025 11026 ac_cv_type_socklen_t=no 11027fi 11028 11029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11030fi 11031{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 11032echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; } 11033if test $ac_cv_type_socklen_t = yes; then 11034 11035cat >>confdefs.h <<_ACEOF 11036@%:@define HAVE_SOCKLEN_T 1 11037_ACEOF 11038 11039 11040fi 11041 11042 11043 11044 11045{ echo "$as_me:$LINENO: checking for uint8_t" >&5 11046echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; } 11047if test "${ac_cv_type_uint8_t+set}" = set; then 11048 echo $ECHO_N "(cached) $ECHO_C" >&6 11049else 11050 cat >conftest.$ac_ext <<_ACEOF 11051/* confdefs.h. */ 11052_ACEOF 11053cat confdefs.h >>conftest.$ac_ext 11054cat >>conftest.$ac_ext <<_ACEOF 11055/* end confdefs.h. */ 11056$ac_includes_default 11057typedef uint8_t ac__type_new_; 11058int 11059main () 11060{ 11061if ((ac__type_new_ *) 0) 11062 return 0; 11063if (sizeof (ac__type_new_)) 11064 return 0; 11065 ; 11066 return 0; 11067} 11068_ACEOF 11069rm -f conftest.$ac_objext 11070if { (ac_try="$ac_compile" 11071case "(($ac_try" in 11072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11073 *) ac_try_echo=$ac_try;; 11074esac 11075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11076 (eval "$ac_compile") 2>conftest.er1 11077 ac_status=$? 11078 grep -v '^ *+' conftest.er1 >conftest.err 11079 rm -f conftest.er1 11080 cat conftest.err >&5 11081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11082 (exit $ac_status); } && { 11083 test -z "$ac_cxx_werror_flag" || 11084 test ! -s conftest.err 11085 } && test -s conftest.$ac_objext; then 11086 ac_cv_type_uint8_t=yes 11087else 11088 echo "$as_me: failed program was:" >&5 11089sed 's/^/| /' conftest.$ac_ext >&5 11090 11091 ac_cv_type_uint8_t=no 11092fi 11093 11094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11095fi 11096{ echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5 11097echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; } 11098if test $ac_cv_type_uint8_t = yes; then 11099 11100cat >>confdefs.h <<_ACEOF 11101@%:@define HAVE_UINT8_T 1 11102_ACEOF 11103 11104 11105fi 11106{ echo "$as_me:$LINENO: checking for int8_t" >&5 11107echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; } 11108if test "${ac_cv_type_int8_t+set}" = set; then 11109 echo $ECHO_N "(cached) $ECHO_C" >&6 11110else 11111 cat >conftest.$ac_ext <<_ACEOF 11112/* confdefs.h. */ 11113_ACEOF 11114cat confdefs.h >>conftest.$ac_ext 11115cat >>conftest.$ac_ext <<_ACEOF 11116/* end confdefs.h. */ 11117$ac_includes_default 11118typedef int8_t ac__type_new_; 11119int 11120main () 11121{ 11122if ((ac__type_new_ *) 0) 11123 return 0; 11124if (sizeof (ac__type_new_)) 11125 return 0; 11126 ; 11127 return 0; 11128} 11129_ACEOF 11130rm -f conftest.$ac_objext 11131if { (ac_try="$ac_compile" 11132case "(($ac_try" in 11133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11134 *) ac_try_echo=$ac_try;; 11135esac 11136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11137 (eval "$ac_compile") 2>conftest.er1 11138 ac_status=$? 11139 grep -v '^ *+' conftest.er1 >conftest.err 11140 rm -f conftest.er1 11141 cat conftest.err >&5 11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11143 (exit $ac_status); } && { 11144 test -z "$ac_cxx_werror_flag" || 11145 test ! -s conftest.err 11146 } && test -s conftest.$ac_objext; then 11147 ac_cv_type_int8_t=yes 11148else 11149 echo "$as_me: failed program was:" >&5 11150sed 's/^/| /' conftest.$ac_ext >&5 11151 11152 ac_cv_type_int8_t=no 11153fi 11154 11155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11156fi 11157{ echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5 11158echo "${ECHO_T}$ac_cv_type_int8_t" >&6; } 11159if test $ac_cv_type_int8_t = yes; then 11160 11161cat >>confdefs.h <<_ACEOF 11162@%:@define HAVE_INT8_T 1 11163_ACEOF 11164 11165 11166fi 11167{ echo "$as_me:$LINENO: checking for uint16_t" >&5 11168echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; } 11169if test "${ac_cv_type_uint16_t+set}" = set; then 11170 echo $ECHO_N "(cached) $ECHO_C" >&6 11171else 11172 cat >conftest.$ac_ext <<_ACEOF 11173/* confdefs.h. */ 11174_ACEOF 11175cat confdefs.h >>conftest.$ac_ext 11176cat >>conftest.$ac_ext <<_ACEOF 11177/* end confdefs.h. */ 11178$ac_includes_default 11179typedef uint16_t ac__type_new_; 11180int 11181main () 11182{ 11183if ((ac__type_new_ *) 0) 11184 return 0; 11185if (sizeof (ac__type_new_)) 11186 return 0; 11187 ; 11188 return 0; 11189} 11190_ACEOF 11191rm -f conftest.$ac_objext 11192if { (ac_try="$ac_compile" 11193case "(($ac_try" in 11194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11195 *) ac_try_echo=$ac_try;; 11196esac 11197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11198 (eval "$ac_compile") 2>conftest.er1 11199 ac_status=$? 11200 grep -v '^ *+' conftest.er1 >conftest.err 11201 rm -f conftest.er1 11202 cat conftest.err >&5 11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11204 (exit $ac_status); } && { 11205 test -z "$ac_cxx_werror_flag" || 11206 test ! -s conftest.err 11207 } && test -s conftest.$ac_objext; then 11208 ac_cv_type_uint16_t=yes 11209else 11210 echo "$as_me: failed program was:" >&5 11211sed 's/^/| /' conftest.$ac_ext >&5 11212 11213 ac_cv_type_uint16_t=no 11214fi 11215 11216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11217fi 11218{ echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 11219echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; } 11220if test $ac_cv_type_uint16_t = yes; then 11221 11222cat >>confdefs.h <<_ACEOF 11223@%:@define HAVE_UINT16_T 1 11224_ACEOF 11225 11226 11227fi 11228{ echo "$as_me:$LINENO: checking for int16_t" >&5 11229echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; } 11230if test "${ac_cv_type_int16_t+set}" = set; then 11231 echo $ECHO_N "(cached) $ECHO_C" >&6 11232else 11233 cat >conftest.$ac_ext <<_ACEOF 11234/* confdefs.h. */ 11235_ACEOF 11236cat confdefs.h >>conftest.$ac_ext 11237cat >>conftest.$ac_ext <<_ACEOF 11238/* end confdefs.h. */ 11239$ac_includes_default 11240typedef int16_t ac__type_new_; 11241int 11242main () 11243{ 11244if ((ac__type_new_ *) 0) 11245 return 0; 11246if (sizeof (ac__type_new_)) 11247 return 0; 11248 ; 11249 return 0; 11250} 11251_ACEOF 11252rm -f conftest.$ac_objext 11253if { (ac_try="$ac_compile" 11254case "(($ac_try" in 11255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11256 *) ac_try_echo=$ac_try;; 11257esac 11258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11259 (eval "$ac_compile") 2>conftest.er1 11260 ac_status=$? 11261 grep -v '^ *+' conftest.er1 >conftest.err 11262 rm -f conftest.er1 11263 cat conftest.err >&5 11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11265 (exit $ac_status); } && { 11266 test -z "$ac_cxx_werror_flag" || 11267 test ! -s conftest.err 11268 } && test -s conftest.$ac_objext; then 11269 ac_cv_type_int16_t=yes 11270else 11271 echo "$as_me: failed program was:" >&5 11272sed 's/^/| /' conftest.$ac_ext >&5 11273 11274 ac_cv_type_int16_t=no 11275fi 11276 11277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11278fi 11279{ echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5 11280echo "${ECHO_T}$ac_cv_type_int16_t" >&6; } 11281if test $ac_cv_type_int16_t = yes; then 11282 11283cat >>confdefs.h <<_ACEOF 11284@%:@define HAVE_INT16_T 1 11285_ACEOF 11286 11287 11288fi 11289{ echo "$as_me:$LINENO: checking for uint32_t" >&5 11290echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } 11291if test "${ac_cv_type_uint32_t+set}" = set; then 11292 echo $ECHO_N "(cached) $ECHO_C" >&6 11293else 11294 cat >conftest.$ac_ext <<_ACEOF 11295/* confdefs.h. */ 11296_ACEOF 11297cat confdefs.h >>conftest.$ac_ext 11298cat >>conftest.$ac_ext <<_ACEOF 11299/* end confdefs.h. */ 11300$ac_includes_default 11301typedef uint32_t ac__type_new_; 11302int 11303main () 11304{ 11305if ((ac__type_new_ *) 0) 11306 return 0; 11307if (sizeof (ac__type_new_)) 11308 return 0; 11309 ; 11310 return 0; 11311} 11312_ACEOF 11313rm -f conftest.$ac_objext 11314if { (ac_try="$ac_compile" 11315case "(($ac_try" in 11316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11317 *) ac_try_echo=$ac_try;; 11318esac 11319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11320 (eval "$ac_compile") 2>conftest.er1 11321 ac_status=$? 11322 grep -v '^ *+' conftest.er1 >conftest.err 11323 rm -f conftest.er1 11324 cat conftest.err >&5 11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11326 (exit $ac_status); } && { 11327 test -z "$ac_cxx_werror_flag" || 11328 test ! -s conftest.err 11329 } && test -s conftest.$ac_objext; then 11330 ac_cv_type_uint32_t=yes 11331else 11332 echo "$as_me: failed program was:" >&5 11333sed 's/^/| /' conftest.$ac_ext >&5 11334 11335 ac_cv_type_uint32_t=no 11336fi 11337 11338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11339fi 11340{ echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 11341echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; } 11342if test $ac_cv_type_uint32_t = yes; then 11343 11344cat >>confdefs.h <<_ACEOF 11345@%:@define HAVE_UINT32_T 1 11346_ACEOF 11347 11348 11349fi 11350{ echo "$as_me:$LINENO: checking for int32_t" >&5 11351echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } 11352if test "${ac_cv_type_int32_t+set}" = set; then 11353 echo $ECHO_N "(cached) $ECHO_C" >&6 11354else 11355 cat >conftest.$ac_ext <<_ACEOF 11356/* confdefs.h. */ 11357_ACEOF 11358cat confdefs.h >>conftest.$ac_ext 11359cat >>conftest.$ac_ext <<_ACEOF 11360/* end confdefs.h. */ 11361$ac_includes_default 11362typedef int32_t ac__type_new_; 11363int 11364main () 11365{ 11366if ((ac__type_new_ *) 0) 11367 return 0; 11368if (sizeof (ac__type_new_)) 11369 return 0; 11370 ; 11371 return 0; 11372} 11373_ACEOF 11374rm -f conftest.$ac_objext 11375if { (ac_try="$ac_compile" 11376case "(($ac_try" in 11377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11378 *) ac_try_echo=$ac_try;; 11379esac 11380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11381 (eval "$ac_compile") 2>conftest.er1 11382 ac_status=$? 11383 grep -v '^ *+' conftest.er1 >conftest.err 11384 rm -f conftest.er1 11385 cat conftest.err >&5 11386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11387 (exit $ac_status); } && { 11388 test -z "$ac_cxx_werror_flag" || 11389 test ! -s conftest.err 11390 } && test -s conftest.$ac_objext; then 11391 ac_cv_type_int32_t=yes 11392else 11393 echo "$as_me: failed program was:" >&5 11394sed 's/^/| /' conftest.$ac_ext >&5 11395 11396 ac_cv_type_int32_t=no 11397fi 11398 11399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11400fi 11401{ echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5 11402echo "${ECHO_T}$ac_cv_type_int32_t" >&6; } 11403if test $ac_cv_type_int32_t = yes; then 11404 11405cat >>confdefs.h <<_ACEOF 11406@%:@define HAVE_INT32_T 1 11407_ACEOF 11408 11409 11410fi 11411{ echo "$as_me:$LINENO: checking for uint64_t" >&5 11412echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } 11413if test "${ac_cv_type_uint64_t+set}" = set; then 11414 echo $ECHO_N "(cached) $ECHO_C" >&6 11415else 11416 cat >conftest.$ac_ext <<_ACEOF 11417/* confdefs.h. */ 11418_ACEOF 11419cat confdefs.h >>conftest.$ac_ext 11420cat >>conftest.$ac_ext <<_ACEOF 11421/* end confdefs.h. */ 11422$ac_includes_default 11423typedef uint64_t ac__type_new_; 11424int 11425main () 11426{ 11427if ((ac__type_new_ *) 0) 11428 return 0; 11429if (sizeof (ac__type_new_)) 11430 return 0; 11431 ; 11432 return 0; 11433} 11434_ACEOF 11435rm -f conftest.$ac_objext 11436if { (ac_try="$ac_compile" 11437case "(($ac_try" in 11438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11439 *) ac_try_echo=$ac_try;; 11440esac 11441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11442 (eval "$ac_compile") 2>conftest.er1 11443 ac_status=$? 11444 grep -v '^ *+' conftest.er1 >conftest.err 11445 rm -f conftest.er1 11446 cat conftest.err >&5 11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11448 (exit $ac_status); } && { 11449 test -z "$ac_cxx_werror_flag" || 11450 test ! -s conftest.err 11451 } && test -s conftest.$ac_objext; then 11452 ac_cv_type_uint64_t=yes 11453else 11454 echo "$as_me: failed program was:" >&5 11455sed 's/^/| /' conftest.$ac_ext >&5 11456 11457 ac_cv_type_uint64_t=no 11458fi 11459 11460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11461fi 11462{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 11463echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } 11464if test $ac_cv_type_uint64_t = yes; then 11465 11466cat >>confdefs.h <<_ACEOF 11467@%:@define HAVE_UINT64_T 1 11468_ACEOF 11469 11470 11471fi 11472{ echo "$as_me:$LINENO: checking for int64_t" >&5 11473echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } 11474if test "${ac_cv_type_int64_t+set}" = set; then 11475 echo $ECHO_N "(cached) $ECHO_C" >&6 11476else 11477 cat >conftest.$ac_ext <<_ACEOF 11478/* confdefs.h. */ 11479_ACEOF 11480cat confdefs.h >>conftest.$ac_ext 11481cat >>conftest.$ac_ext <<_ACEOF 11482/* end confdefs.h. */ 11483$ac_includes_default 11484typedef int64_t ac__type_new_; 11485int 11486main () 11487{ 11488if ((ac__type_new_ *) 0) 11489 return 0; 11490if (sizeof (ac__type_new_)) 11491 return 0; 11492 ; 11493 return 0; 11494} 11495_ACEOF 11496rm -f conftest.$ac_objext 11497if { (ac_try="$ac_compile" 11498case "(($ac_try" in 11499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11500 *) ac_try_echo=$ac_try;; 11501esac 11502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11503 (eval "$ac_compile") 2>conftest.er1 11504 ac_status=$? 11505 grep -v '^ *+' conftest.er1 >conftest.err 11506 rm -f conftest.er1 11507 cat conftest.err >&5 11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11509 (exit $ac_status); } && { 11510 test -z "$ac_cxx_werror_flag" || 11511 test ! -s conftest.err 11512 } && test -s conftest.$ac_objext; then 11513 ac_cv_type_int64_t=yes 11514else 11515 echo "$as_me: failed program was:" >&5 11516sed 's/^/| /' conftest.$ac_ext >&5 11517 11518 ac_cv_type_int64_t=no 11519fi 11520 11521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11522fi 11523{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 11524echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } 11525if test $ac_cv_type_int64_t = yes; then 11526 11527cat >>confdefs.h <<_ACEOF 11528@%:@define HAVE_INT64_T 1 11529_ACEOF 11530 11531 11532fi 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547if test "$ac_cv_sizeof_unsigned_short" = "4"; 11548then 11549 cat >>confdefs.h <<\_ACEOF 11550@%:@define A_UINT32_T unsigned short 11551_ACEOF 11552 11553elif test "$ac_cv_sizeof_unsigned_int" = "4" 11554then 11555 cat >>confdefs.h <<\_ACEOF 11556@%:@define A_UINT32_T unsigned int 11557_ACEOF 11558 11559elif test "$ac_cv_sizeof_unsigned_long" = "4" 11560then 11561 cat >>confdefs.h <<\_ACEOF 11562@%:@define A_UINT32_T unsigned long 11563_ACEOF 11564 11565fi 11566 11567 11568 11569 11570if test "${ac_cv_sizeof_short}" = "4"; 11571then 11572 cat >>confdefs.h <<\_ACEOF 11573@%:@define A_INT32_T short 11574_ACEOF 11575 11576elif test "${ac_cv_sizeof_int}" = "4"; 11577then 11578 cat >>confdefs.h <<\_ACEOF 11579@%:@define A_INT32_T int 11580_ACEOF 11581 11582elif test "${ac_cv_sizeof_long}" = "4"; 11583then 11584 cat >>confdefs.h <<\_ACEOF 11585@%:@define A_INT32_T long 11586_ACEOF 11587 11588fi 11589 11590 11591 11592 11593if test "${ac_cv_sizeof_unsigned_int}" = "8"; 11594then 11595 cat >>confdefs.h <<\_ACEOF 11596@%:@define A_UINT64_T unsigned int 11597_ACEOF 11598 11599elif test "${ac_cv_sizeof_unsigned_long}" = "8"; 11600then 11601 cat >>confdefs.h <<\_ACEOF 11602@%:@define A_UINT64_T unsigned long 11603_ACEOF 11604 11605elif test "${ac_cv_sizeof_unsigned_long_long}" = "8"; 11606then 11607 cat >>confdefs.h <<\_ACEOF 11608@%:@define A_UINT64_T unsigned long long 11609_ACEOF 11610 11611fi 11612 11613 11614 11615 11616if test "${ac_cv_sizeof_int}" = "8"; 11617then 11618 cat >>confdefs.h <<\_ACEOF 11619@%:@define A_INT64_T int 11620_ACEOF 11621 11622elif test "${ac_cv_sizeof_long}" = "8"; 11623then 11624 cat >>confdefs.h <<\_ACEOF 11625@%:@define A_INT64_T long 11626_ACEOF 11627 11628elif test "${ac_cv_sizeof_long_long}" = "8"; 11629then 11630 cat >>confdefs.h <<\_ACEOF 11631@%:@define A_INT64_T long long 11632_ACEOF 11633 11634fi 11635 11636 11637 11638 11639 11640{ echo "$as_me:$LINENO: checking for size_t" >&5 11641echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } 11642if test "${ac_cv_type_size_t+set}" = set; then 11643 echo $ECHO_N "(cached) $ECHO_C" >&6 11644else 11645 cat >conftest.$ac_ext <<_ACEOF 11646/* confdefs.h. */ 11647_ACEOF 11648cat confdefs.h >>conftest.$ac_ext 11649cat >>conftest.$ac_ext <<_ACEOF 11650/* end confdefs.h. */ 11651$ac_includes_default 11652typedef size_t ac__type_new_; 11653int 11654main () 11655{ 11656if ((ac__type_new_ *) 0) 11657 return 0; 11658if (sizeof (ac__type_new_)) 11659 return 0; 11660 ; 11661 return 0; 11662} 11663_ACEOF 11664rm -f conftest.$ac_objext 11665if { (ac_try="$ac_compile" 11666case "(($ac_try" in 11667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11668 *) ac_try_echo=$ac_try;; 11669esac 11670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11671 (eval "$ac_compile") 2>conftest.er1 11672 ac_status=$? 11673 grep -v '^ *+' conftest.er1 >conftest.err 11674 rm -f conftest.er1 11675 cat conftest.err >&5 11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11677 (exit $ac_status); } && { 11678 test -z "$ac_cxx_werror_flag" || 11679 test ! -s conftest.err 11680 } && test -s conftest.$ac_objext; then 11681 ac_cv_type_size_t=yes 11682else 11683 echo "$as_me: failed program was:" >&5 11684sed 's/^/| /' conftest.$ac_ext >&5 11685 11686 ac_cv_type_size_t=no 11687fi 11688 11689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11690fi 11691{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 11692echo "${ECHO_T}$ac_cv_type_size_t" >&6; } 11693if test $ac_cv_type_size_t = yes; then 11694 : 11695else 11696 11697cat >>confdefs.h <<_ACEOF 11698@%:@define size_t unsigned int 11699_ACEOF 11700 11701fi 11702 11703 11704# Check whether --enable-shared was given. 11705if test "${enable_shared+set}" = set; then 11706 enableval=$enable_shared; p=${PACKAGE-default} 11707 case $enableval in 11708 yes) enable_shared=yes ;; 11709 no) enable_shared=no ;; 11710 *) 11711 enable_shared=no 11712 # Look at the argument we got. We use all the common list separators. 11713 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11714 for pkg in $enableval; do 11715 IFS="$lt_save_ifs" 11716 if test "X$pkg" = "X$p"; then 11717 enable_shared=yes 11718 fi 11719 done 11720 IFS="$lt_save_ifs" 11721 ;; 11722 esac 11723else 11724 enable_shared=yes 11725fi 11726 11727 11728# Check whether --enable-static was given. 11729if test "${enable_static+set}" = set; then 11730 enableval=$enable_static; p=${PACKAGE-default} 11731 case $enableval in 11732 yes) enable_static=yes ;; 11733 no) enable_static=no ;; 11734 *) 11735 enable_static=no 11736 # Look at the argument we got. We use all the common list separators. 11737 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11738 for pkg in $enableval; do 11739 IFS="$lt_save_ifs" 11740 if test "X$pkg" = "X$p"; then 11741 enable_static=yes 11742 fi 11743 done 11744 IFS="$lt_save_ifs" 11745 ;; 11746 esac 11747else 11748 enable_static=yes 11749fi 11750 11751 11752# Check whether --enable-fast-install was given. 11753if test "${enable_fast_install+set}" = set; then 11754 enableval=$enable_fast_install; p=${PACKAGE-default} 11755 case $enableval in 11756 yes) enable_fast_install=yes ;; 11757 no) enable_fast_install=no ;; 11758 *) 11759 enable_fast_install=no 11760 # Look at the argument we got. We use all the common list separators. 11761 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11762 for pkg in $enableval; do 11763 IFS="$lt_save_ifs" 11764 if test "X$pkg" = "X$p"; then 11765 enable_fast_install=yes 11766 fi 11767 done 11768 IFS="$lt_save_ifs" 11769 ;; 11770 esac 11771else 11772 enable_fast_install=yes 11773fi 11774 11775 11776# Make sure we can run config.sub. 11777$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 11778 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 11779echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 11780 { (exit 1); exit 1; }; } 11781 11782{ echo "$as_me:$LINENO: checking build system type" >&5 11783echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 11784if test "${ac_cv_build+set}" = set; then 11785 echo $ECHO_N "(cached) $ECHO_C" >&6 11786else 11787 ac_build_alias=$build_alias 11788test "x$ac_build_alias" = x && 11789 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 11790test "x$ac_build_alias" = x && 11791 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 11792echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 11793 { (exit 1); exit 1; }; } 11794ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 11795 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 11796echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 11797 { (exit 1); exit 1; }; } 11798 11799fi 11800{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 11801echo "${ECHO_T}$ac_cv_build" >&6; } 11802case $ac_cv_build in 11803*-*-*) ;; 11804*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 11805echo "$as_me: error: invalid value of canonical build" >&2;} 11806 { (exit 1); exit 1; }; };; 11807esac 11808build=$ac_cv_build 11809ac_save_IFS=$IFS; IFS='-' 11810set x $ac_cv_build 11811shift 11812build_cpu=$1 11813build_vendor=$2 11814shift; shift 11815# Remember, the first character of IFS is used to create $*, 11816# except with old shells: 11817build_os=$* 11818IFS=$ac_save_IFS 11819case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 11820 11821 11822{ echo "$as_me:$LINENO: checking host system type" >&5 11823echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 11824if test "${ac_cv_host+set}" = set; then 11825 echo $ECHO_N "(cached) $ECHO_C" >&6 11826else 11827 if test "x$host_alias" = x; then 11828 ac_cv_host=$ac_cv_build 11829else 11830 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 11831 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 11832echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 11833 { (exit 1); exit 1; }; } 11834fi 11835 11836fi 11837{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 11838echo "${ECHO_T}$ac_cv_host" >&6; } 11839case $ac_cv_host in 11840*-*-*) ;; 11841*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 11842echo "$as_me: error: invalid value of canonical host" >&2;} 11843 { (exit 1); exit 1; }; };; 11844esac 11845host=$ac_cv_host 11846ac_save_IFS=$IFS; IFS='-' 11847set x $ac_cv_host 11848shift 11849host_cpu=$1 11850host_vendor=$2 11851shift; shift 11852# Remember, the first character of IFS is used to create $*, 11853# except with old shells: 11854host_os=$* 11855IFS=$ac_save_IFS 11856case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 11857 11858 11859{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 11860echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 11861if test "${lt_cv_path_SED+set}" = set; then 11862 echo $ECHO_N "(cached) $ECHO_C" >&6 11863else 11864 # Loop through the user's path and test for sed and gsed. 11865# Then use that list of sed's as ones to test for truncation. 11866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11867for as_dir in $PATH 11868do 11869 IFS=$as_save_IFS 11870 test -z "$as_dir" && as_dir=. 11871 for lt_ac_prog in sed gsed; do 11872 for ac_exec_ext in '' $ac_executable_extensions; do 11873 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then 11874 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 11875 fi 11876 done 11877 done 11878done 11879IFS=$as_save_IFS 11880lt_ac_max=0 11881lt_ac_count=0 11882# Add /usr/xpg4/bin/sed as it is typically found on Solaris 11883# along with /bin/sed that truncates output. 11884for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 11885 test ! -f $lt_ac_sed && continue 11886 cat /dev/null > conftest.in 11887 lt_ac_count=0 11888 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 11889 # Check for GNU sed and select it if it is found. 11890 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 11891 lt_cv_path_SED=$lt_ac_sed 11892 break 11893 fi 11894 while true; do 11895 cat conftest.in conftest.in >conftest.tmp 11896 mv conftest.tmp conftest.in 11897 cp conftest.in conftest.nl 11898 echo >>conftest.nl 11899 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 11900 cmp -s conftest.out conftest.nl || break 11901 # 10000 chars as input seems more than enough 11902 test $lt_ac_count -gt 10 && break 11903 lt_ac_count=`expr $lt_ac_count + 1` 11904 if test $lt_ac_count -gt $lt_ac_max; then 11905 lt_ac_max=$lt_ac_count 11906 lt_cv_path_SED=$lt_ac_sed 11907 fi 11908 done 11909done 11910 11911fi 11912 11913SED=$lt_cv_path_SED 11914 11915{ echo "$as_me:$LINENO: result: $SED" >&5 11916echo "${ECHO_T}$SED" >&6; } 11917 11918 11919# Check whether --with-gnu-ld was given. 11920if test "${with_gnu_ld+set}" = set; then 11921 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11922else 11923 with_gnu_ld=no 11924fi 11925 11926ac_prog=ld 11927if test "$GCC" = yes; then 11928 # Check if gcc -print-prog-name=ld gives a path. 11929 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 11930echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 11931 case $host in 11932 *-*-mingw*) 11933 # gcc leaves a trailing carriage return which upsets mingw 11934 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11935 *) 11936 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11937 esac 11938 case $ac_prog in 11939 # Accept absolute paths. 11940 [\\/]* | ?:[\\/]*) 11941 re_direlt='/[^/][^/]*/\.\./' 11942 # Canonicalize the pathname of ld 11943 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 11944 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11945 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 11946 done 11947 test -z "$LD" && LD="$ac_prog" 11948 ;; 11949 "") 11950 # If it fails, then pretend we aren't using GCC. 11951 ac_prog=ld 11952 ;; 11953 *) 11954 # If it is relative, then search for the first ld in PATH. 11955 with_gnu_ld=unknown 11956 ;; 11957 esac 11958elif test "$with_gnu_ld" = yes; then 11959 { echo "$as_me:$LINENO: checking for GNU ld" >&5 11960echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 11961else 11962 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 11963echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 11964fi 11965if test "${lt_cv_path_LD+set}" = set; then 11966 echo $ECHO_N "(cached) $ECHO_C" >&6 11967else 11968 if test -z "$LD"; then 11969 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11970 for ac_dir in $PATH; do 11971 IFS="$lt_save_ifs" 11972 test -z "$ac_dir" && ac_dir=. 11973 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11974 lt_cv_path_LD="$ac_dir/$ac_prog" 11975 # Check to see if the program is GNU ld. I'd rather use --version, 11976 # but apparently some variants of GNU ld only accept -v. 11977 # Break only if it was the GNU/non-GNU ld that we prefer. 11978 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11979 *GNU* | *'with BFD'*) 11980 test "$with_gnu_ld" != no && break 11981 ;; 11982 *) 11983 test "$with_gnu_ld" != yes && break 11984 ;; 11985 esac 11986 fi 11987 done 11988 IFS="$lt_save_ifs" 11989else 11990 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11991fi 11992fi 11993 11994LD="$lt_cv_path_LD" 11995if test -n "$LD"; then 11996 { echo "$as_me:$LINENO: result: $LD" >&5 11997echo "${ECHO_T}$LD" >&6; } 11998else 11999 { echo "$as_me:$LINENO: result: no" >&5 12000echo "${ECHO_T}no" >&6; } 12001fi 12002test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 12003echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 12004 { (exit 1); exit 1; }; } 12005{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 12006echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 12007if test "${lt_cv_prog_gnu_ld+set}" = set; then 12008 echo $ECHO_N "(cached) $ECHO_C" >&6 12009else 12010 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12011case `$LD -v 2>&1 </dev/null` in 12012*GNU* | *'with BFD'*) 12013 lt_cv_prog_gnu_ld=yes 12014 ;; 12015*) 12016 lt_cv_prog_gnu_ld=no 12017 ;; 12018esac 12019fi 12020{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 12021echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 12022with_gnu_ld=$lt_cv_prog_gnu_ld 12023 12024 12025{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 12026echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 12027if test "${lt_cv_ld_reload_flag+set}" = set; then 12028 echo $ECHO_N "(cached) $ECHO_C" >&6 12029else 12030 lt_cv_ld_reload_flag='-r' 12031fi 12032{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 12033echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 12034reload_flag=$lt_cv_ld_reload_flag 12035case $reload_flag in 12036"" | " "*) ;; 12037*) reload_flag=" $reload_flag" ;; 12038esac 12039reload_cmds='$LD$reload_flag -o $output$reload_objs' 12040case $host_os in 12041 darwin*) 12042 if test "$GCC" = yes; then 12043 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 12044 else 12045 reload_cmds='$LD$reload_flag -o $output$reload_objs' 12046 fi 12047 ;; 12048esac 12049 12050{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 12051echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 12052if test "${lt_cv_path_NM+set}" = set; then 12053 echo $ECHO_N "(cached) $ECHO_C" >&6 12054else 12055 if test -n "$NM"; then 12056 # Let the user override the test. 12057 lt_cv_path_NM="$NM" 12058else 12059 lt_nm_to_check="${ac_tool_prefix}nm" 12060 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 12061 lt_nm_to_check="$lt_nm_to_check nm" 12062 fi 12063 for lt_tmp_nm in $lt_nm_to_check; do 12064 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12065 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 12066 IFS="$lt_save_ifs" 12067 test -z "$ac_dir" && ac_dir=. 12068 tmp_nm="$ac_dir/$lt_tmp_nm" 12069 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 12070 # Check to see if the nm accepts a BSD-compat flag. 12071 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 12072 # nm: unknown option "B" ignored 12073 # Tru64's nm complains that /dev/null is an invalid object file 12074 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 12075 */dev/null* | *'Invalid file or object type'*) 12076 lt_cv_path_NM="$tmp_nm -B" 12077 break 12078 ;; 12079 *) 12080 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 12081 */dev/null*) 12082 lt_cv_path_NM="$tmp_nm -p" 12083 break 12084 ;; 12085 *) 12086 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 12087 continue # so that we can try to find one that supports BSD flags 12088 ;; 12089 esac 12090 ;; 12091 esac 12092 fi 12093 done 12094 IFS="$lt_save_ifs" 12095 done 12096 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 12097fi 12098fi 12099{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 12100echo "${ECHO_T}$lt_cv_path_NM" >&6; } 12101NM="$lt_cv_path_NM" 12102 12103{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 12104echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 12105LN_S=$as_ln_s 12106if test "$LN_S" = "ln -s"; then 12107 { echo "$as_me:$LINENO: result: yes" >&5 12108echo "${ECHO_T}yes" >&6; } 12109else 12110 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 12111echo "${ECHO_T}no, using $LN_S" >&6; } 12112fi 12113 12114{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 12115echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } 12116if test "${lt_cv_deplibs_check_method+set}" = set; then 12117 echo $ECHO_N "(cached) $ECHO_C" >&6 12118else 12119 lt_cv_file_magic_cmd='$MAGIC_CMD' 12120lt_cv_file_magic_test_file= 12121lt_cv_deplibs_check_method='unknown' 12122# Need to set the preceding variable on all platforms that support 12123# interlibrary dependencies. 12124# 'none' -- dependencies not supported. 12125# `unknown' -- same as none, but documents that we really don't know. 12126# 'pass_all' -- all dependencies passed with no checks. 12127# 'test_compile' -- check by making test program. 12128# 'file_magic [[regex]]' -- check by looking for files in library path 12129# which responds to the $file_magic_cmd with a given extended regex. 12130# If you have `file' or equivalent on your system and you're not sure 12131# whether `pass_all' will *always* work, you probably want this one. 12132 12133case $host_os in 12134aix[4-9]*) 12135 lt_cv_deplibs_check_method=pass_all 12136 ;; 12137 12138beos*) 12139 lt_cv_deplibs_check_method=pass_all 12140 ;; 12141 12142bsdi[45]*) 12143 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 12144 lt_cv_file_magic_cmd='/usr/bin/file -L' 12145 lt_cv_file_magic_test_file=/shlib/libc.so 12146 ;; 12147 12148cygwin*) 12149 # func_win32_libid is a shell function defined in ltmain.sh 12150 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12151 lt_cv_file_magic_cmd='func_win32_libid' 12152 ;; 12153 12154mingw* | pw32*) 12155 # Base MSYS/MinGW do not provide the 'file' command needed by 12156 # func_win32_libid shell function, so use a weaker test based on 'objdump', 12157 # unless we find 'file', for example because we are cross-compiling. 12158 if ( file / ) >/dev/null 2>&1; then 12159 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12160 lt_cv_file_magic_cmd='func_win32_libid' 12161 else 12162 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 12163 lt_cv_file_magic_cmd='$OBJDUMP -f' 12164 fi 12165 ;; 12166 12167darwin* | rhapsody*) 12168 lt_cv_deplibs_check_method=pass_all 12169 ;; 12170 12171freebsd* | dragonfly*) 12172 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 12173 case $host_cpu in 12174 i*86 ) 12175 # Not sure whether the presence of OpenBSD here was a mistake. 12176 # Let's accept both of them until this is cleared up. 12177 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 12178 lt_cv_file_magic_cmd=/usr/bin/file 12179 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 12180 ;; 12181 esac 12182 else 12183 lt_cv_deplibs_check_method=pass_all 12184 fi 12185 ;; 12186 12187gnu*) 12188 lt_cv_deplibs_check_method=pass_all 12189 ;; 12190 12191hpux10.20* | hpux11*) 12192 lt_cv_file_magic_cmd=/usr/bin/file 12193 case $host_cpu in 12194 ia64*) 12195 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 12196 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 12197 ;; 12198 hppa*64*) 12199 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]' 12200 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 12201 ;; 12202 *) 12203 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 12204 lt_cv_file_magic_test_file=/usr/lib/libc.sl 12205 ;; 12206 esac 12207 ;; 12208 12209interix[3-9]*) 12210 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 12211 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 12212 ;; 12213 12214irix5* | irix6* | nonstopux*) 12215 case $LD in 12216 *-32|*"-32 ") libmagic=32-bit;; 12217 *-n32|*"-n32 ") libmagic=N32;; 12218 *-64|*"-64 ") libmagic=64-bit;; 12219 *) libmagic=never-match;; 12220 esac 12221 lt_cv_deplibs_check_method=pass_all 12222 ;; 12223 12224# This must be Linux ELF. 12225linux* | k*bsd*-gnu) 12226 lt_cv_deplibs_check_method=pass_all 12227 ;; 12228 12229netbsd*) 12230 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 12231 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12232 else 12233 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 12234 fi 12235 ;; 12236 12237newos6*) 12238 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 12239 lt_cv_file_magic_cmd=/usr/bin/file 12240 lt_cv_file_magic_test_file=/usr/lib/libnls.so 12241 ;; 12242 12243nto-qnx*) 12244 lt_cv_deplibs_check_method=unknown 12245 ;; 12246 12247openbsd*) 12248 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12249 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 12250 else 12251 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12252 fi 12253 ;; 12254 12255osf3* | osf4* | osf5*) 12256 lt_cv_deplibs_check_method=pass_all 12257 ;; 12258 12259rdos*) 12260 lt_cv_deplibs_check_method=pass_all 12261 ;; 12262 12263solaris*) 12264 lt_cv_deplibs_check_method=pass_all 12265 ;; 12266 12267sysv4 | sysv4.3*) 12268 case $host_vendor in 12269 motorola) 12270 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]' 12271 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 12272 ;; 12273 ncr) 12274 lt_cv_deplibs_check_method=pass_all 12275 ;; 12276 sequent) 12277 lt_cv_file_magic_cmd='/bin/file' 12278 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 12279 ;; 12280 sni) 12281 lt_cv_file_magic_cmd='/bin/file' 12282 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 12283 lt_cv_file_magic_test_file=/lib/libc.so 12284 ;; 12285 siemens) 12286 lt_cv_deplibs_check_method=pass_all 12287 ;; 12288 pc) 12289 lt_cv_deplibs_check_method=pass_all 12290 ;; 12291 esac 12292 ;; 12293 12294sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12295 lt_cv_deplibs_check_method=pass_all 12296 ;; 12297esac 12298 12299fi 12300{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 12301echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 12302file_magic_cmd=$lt_cv_file_magic_cmd 12303deplibs_check_method=$lt_cv_deplibs_check_method 12304test -z "$deplibs_check_method" && deplibs_check_method=unknown 12305 12306 12307 12308 12309# If no C compiler was specified, use CC. 12310LTCC=${LTCC-"$CC"} 12311 12312# If no C compiler flags were specified, use CFLAGS. 12313LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12314 12315# Allow CC to be a program name with arguments. 12316compiler=$CC 12317 12318 12319# Check whether --enable-libtool-lock was given. 12320if test "${enable_libtool_lock+set}" = set; then 12321 enableval=$enable_libtool_lock; 12322fi 12323 12324test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 12325 12326# Some flags need to be propagated to the compiler or linker for good 12327# libtool support. 12328case $host in 12329ia64-*-hpux*) 12330 # Find out which ABI we are using. 12331 echo 'int i;' > conftest.$ac_ext 12332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12333 (eval $ac_compile) 2>&5 12334 ac_status=$? 12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12336 (exit $ac_status); }; then 12337 case `/usr/bin/file conftest.$ac_objext` in 12338 *ELF-32*) 12339 HPUX_IA64_MODE="32" 12340 ;; 12341 *ELF-64*) 12342 HPUX_IA64_MODE="64" 12343 ;; 12344 esac 12345 fi 12346 rm -rf conftest* 12347 ;; 12348*-*-irix6*) 12349 # Find out which ABI we are using. 12350 echo '#line __oline__ "configure"' > conftest.$ac_ext 12351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12352 (eval $ac_compile) 2>&5 12353 ac_status=$? 12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12355 (exit $ac_status); }; then 12356 if test "$lt_cv_prog_gnu_ld" = yes; then 12357 case `/usr/bin/file conftest.$ac_objext` in 12358 *32-bit*) 12359 LD="${LD-ld} -melf32bsmip" 12360 ;; 12361 *N32*) 12362 LD="${LD-ld} -melf32bmipn32" 12363 ;; 12364 *64-bit*) 12365 LD="${LD-ld} -melf64bmip" 12366 ;; 12367 esac 12368 else 12369 case `/usr/bin/file conftest.$ac_objext` in 12370 *32-bit*) 12371 LD="${LD-ld} -32" 12372 ;; 12373 *N32*) 12374 LD="${LD-ld} -n32" 12375 ;; 12376 *64-bit*) 12377 LD="${LD-ld} -64" 12378 ;; 12379 esac 12380 fi 12381 fi 12382 rm -rf conftest* 12383 ;; 12384 12385x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 12386s390*-*linux*|sparc*-*linux*) 12387 # Find out which ABI we are using. 12388 echo 'int i;' > conftest.$ac_ext 12389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12390 (eval $ac_compile) 2>&5 12391 ac_status=$? 12392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12393 (exit $ac_status); }; then 12394 case `/usr/bin/file conftest.o` in 12395 *32-bit*) 12396 case $host in 12397 x86_64-*kfreebsd*-gnu) 12398 LD="${LD-ld} -m elf_i386_fbsd" 12399 ;; 12400 x86_64-*linux*) 12401 LD="${LD-ld} -m elf_i386" 12402 ;; 12403 ppc64-*linux*|powerpc64-*linux*) 12404 LD="${LD-ld} -m elf32ppclinux" 12405 ;; 12406 s390x-*linux*) 12407 LD="${LD-ld} -m elf_s390" 12408 ;; 12409 sparc64-*linux*) 12410 LD="${LD-ld} -m elf32_sparc" 12411 ;; 12412 esac 12413 ;; 12414 *64-bit*) 12415 case $host in 12416 x86_64-*kfreebsd*-gnu) 12417 LD="${LD-ld} -m elf_x86_64_fbsd" 12418 ;; 12419 x86_64-*linux*) 12420 LD="${LD-ld} -m elf_x86_64" 12421 ;; 12422 ppc*-*linux*|powerpc*-*linux*) 12423 LD="${LD-ld} -m elf64ppc" 12424 ;; 12425 s390*-*linux*) 12426 LD="${LD-ld} -m elf64_s390" 12427 ;; 12428 sparc*-*linux*) 12429 LD="${LD-ld} -m elf64_sparc" 12430 ;; 12431 esac 12432 ;; 12433 esac 12434 fi 12435 rm -rf conftest* 12436 ;; 12437 12438*-*-sco3.2v5*) 12439 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 12440 SAVE_CFLAGS="$CFLAGS" 12441 CFLAGS="$CFLAGS -belf" 12442 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 12443echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 12444if test "${lt_cv_cc_needs_belf+set}" = set; then 12445 echo $ECHO_N "(cached) $ECHO_C" >&6 12446else 12447 ac_ext=c 12448ac_cpp='$CPP $CPPFLAGS' 12449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12451ac_compiler_gnu=$ac_cv_c_compiler_gnu 12452 12453 cat >conftest.$ac_ext <<_ACEOF 12454/* confdefs.h. */ 12455_ACEOF 12456cat confdefs.h >>conftest.$ac_ext 12457cat >>conftest.$ac_ext <<_ACEOF 12458/* end confdefs.h. */ 12459 12460int 12461main () 12462{ 12463 12464 ; 12465 return 0; 12466} 12467_ACEOF 12468rm -f conftest.$ac_objext conftest$ac_exeext 12469if { (ac_try="$ac_link" 12470case "(($ac_try" in 12471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12472 *) ac_try_echo=$ac_try;; 12473esac 12474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12475 (eval "$ac_link") 2>conftest.er1 12476 ac_status=$? 12477 grep -v '^ *+' conftest.er1 >conftest.err 12478 rm -f conftest.er1 12479 cat conftest.err >&5 12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12481 (exit $ac_status); } && { 12482 test -z "$ac_c_werror_flag" || 12483 test ! -s conftest.err 12484 } && test -s conftest$ac_exeext && 12485 $as_test_x conftest$ac_exeext; then 12486 lt_cv_cc_needs_belf=yes 12487else 12488 echo "$as_me: failed program was:" >&5 12489sed 's/^/| /' conftest.$ac_ext >&5 12490 12491 lt_cv_cc_needs_belf=no 12492fi 12493 12494rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12495 conftest$ac_exeext conftest.$ac_ext 12496 ac_ext=c 12497ac_cpp='$CPP $CPPFLAGS' 12498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12500ac_compiler_gnu=$ac_cv_c_compiler_gnu 12501 12502fi 12503{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 12504echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 12505 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 12506 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 12507 CFLAGS="$SAVE_CFLAGS" 12508 fi 12509 ;; 12510sparc*-*solaris*) 12511 # Find out which ABI we are using. 12512 echo 'int i;' > conftest.$ac_ext 12513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12514 (eval $ac_compile) 2>&5 12515 ac_status=$? 12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12517 (exit $ac_status); }; then 12518 case `/usr/bin/file conftest.o` in 12519 *64-bit*) 12520 case $lt_cv_prog_gnu_ld in 12521 yes*) LD="${LD-ld} -m elf64_sparc" ;; 12522 *) 12523 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 12524 LD="${LD-ld} -64" 12525 fi 12526 ;; 12527 esac 12528 ;; 12529 esac 12530 fi 12531 rm -rf conftest* 12532 ;; 12533 12534 12535esac 12536 12537need_locks="$enable_libtool_lock" 12538 12539 12540 12541 12542for ac_header in dlfcn.h 12543do 12544as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12545if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12546 { echo "$as_me:$LINENO: checking for $ac_header" >&5 12547echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 12548if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12549 echo $ECHO_N "(cached) $ECHO_C" >&6 12550fi 12551ac_res=`eval echo '${'$as_ac_Header'}'` 12552 { echo "$as_me:$LINENO: result: $ac_res" >&5 12553echo "${ECHO_T}$ac_res" >&6; } 12554else 12555 # Is the header compilable? 12556{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 12557echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 12558cat >conftest.$ac_ext <<_ACEOF 12559/* confdefs.h. */ 12560_ACEOF 12561cat confdefs.h >>conftest.$ac_ext 12562cat >>conftest.$ac_ext <<_ACEOF 12563/* end confdefs.h. */ 12564$ac_includes_default 12565@%:@include <$ac_header> 12566_ACEOF 12567rm -f conftest.$ac_objext 12568if { (ac_try="$ac_compile" 12569case "(($ac_try" in 12570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12571 *) ac_try_echo=$ac_try;; 12572esac 12573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12574 (eval "$ac_compile") 2>conftest.er1 12575 ac_status=$? 12576 grep -v '^ *+' conftest.er1 >conftest.err 12577 rm -f conftest.er1 12578 cat conftest.err >&5 12579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12580 (exit $ac_status); } && { 12581 test -z "$ac_c_werror_flag" || 12582 test ! -s conftest.err 12583 } && test -s conftest.$ac_objext; then 12584 ac_header_compiler=yes 12585else 12586 echo "$as_me: failed program was:" >&5 12587sed 's/^/| /' conftest.$ac_ext >&5 12588 12589 ac_header_compiler=no 12590fi 12591 12592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12593{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12594echo "${ECHO_T}$ac_header_compiler" >&6; } 12595 12596# Is the header present? 12597{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 12598echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 12599cat >conftest.$ac_ext <<_ACEOF 12600/* confdefs.h. */ 12601_ACEOF 12602cat confdefs.h >>conftest.$ac_ext 12603cat >>conftest.$ac_ext <<_ACEOF 12604/* end confdefs.h. */ 12605@%:@include <$ac_header> 12606_ACEOF 12607if { (ac_try="$ac_cpp conftest.$ac_ext" 12608case "(($ac_try" in 12609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12610 *) ac_try_echo=$ac_try;; 12611esac 12612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12614 ac_status=$? 12615 grep -v '^ *+' conftest.er1 >conftest.err 12616 rm -f conftest.er1 12617 cat conftest.err >&5 12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12619 (exit $ac_status); } >/dev/null && { 12620 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 12621 test ! -s conftest.err 12622 }; then 12623 ac_header_preproc=yes 12624else 12625 echo "$as_me: failed program was:" >&5 12626sed 's/^/| /' conftest.$ac_ext >&5 12627 12628 ac_header_preproc=no 12629fi 12630 12631rm -f conftest.err conftest.$ac_ext 12632{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12633echo "${ECHO_T}$ac_header_preproc" >&6; } 12634 12635# So? What about this header? 12636case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12637 yes:no: ) 12638 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12639echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 12641echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 12642 ac_header_preproc=yes 12643 ;; 12644 no:yes:* ) 12645 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12646echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 12647 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 12648echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 12649 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 12650echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 12651 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 12652echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 12653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12654echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 12655 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 12656echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 12657 12658 ;; 12659esac 12660{ echo "$as_me:$LINENO: checking for $ac_header" >&5 12661echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 12662if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12663 echo $ECHO_N "(cached) $ECHO_C" >&6 12664else 12665 eval "$as_ac_Header=\$ac_header_preproc" 12666fi 12667ac_res=`eval echo '${'$as_ac_Header'}'` 12668 { echo "$as_me:$LINENO: result: $ac_res" >&5 12669echo "${ECHO_T}$ac_res" >&6; } 12670 12671fi 12672if test `eval echo '${'$as_ac_Header'}'` = yes; then 12673 cat >>confdefs.h <<_ACEOF 12674@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12675_ACEOF 12676 12677fi 12678 12679done 12680 12681 12682 12683if test -n "$CXX" && ( test "X$CXX" != "Xno" && 12684 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 12685 (test "X$CXX" != "Xg++"))) ; then 12686 ac_ext=cpp 12687ac_cpp='$CXXCPP $CPPFLAGS' 12688ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12689ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12690ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12691{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 12692echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 12693if test -z "$CXXCPP"; then 12694 if test "${ac_cv_prog_CXXCPP+set}" = set; then 12695 echo $ECHO_N "(cached) $ECHO_C" >&6 12696else 12697 # Double quotes because CXXCPP needs to be expanded 12698 for CXXCPP in "$CXX -E" "/lib/cpp" 12699 do 12700 ac_preproc_ok=false 12701for ac_cxx_preproc_warn_flag in '' yes 12702do 12703 # Use a header file that comes with gcc, so configuring glibc 12704 # with a fresh cross-compiler works. 12705 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12706 # <limits.h> exists even on freestanding compilers. 12707 # On the NeXT, cc -E runs the code through the compiler's parser, 12708 # not just through cpp. "Syntax error" is here to catch this case. 12709 cat >conftest.$ac_ext <<_ACEOF 12710/* confdefs.h. */ 12711_ACEOF 12712cat confdefs.h >>conftest.$ac_ext 12713cat >>conftest.$ac_ext <<_ACEOF 12714/* end confdefs.h. */ 12715@%:@ifdef __STDC__ 12716@%:@ include <limits.h> 12717@%:@else 12718@%:@ include <assert.h> 12719@%:@endif 12720 Syntax error 12721_ACEOF 12722if { (ac_try="$ac_cpp conftest.$ac_ext" 12723case "(($ac_try" in 12724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12725 *) ac_try_echo=$ac_try;; 12726esac 12727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12729 ac_status=$? 12730 grep -v '^ *+' conftest.er1 >conftest.err 12731 rm -f conftest.er1 12732 cat conftest.err >&5 12733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12734 (exit $ac_status); } >/dev/null && { 12735 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 12736 test ! -s conftest.err 12737 }; then 12738 : 12739else 12740 echo "$as_me: failed program was:" >&5 12741sed 's/^/| /' conftest.$ac_ext >&5 12742 12743 # Broken: fails on valid input. 12744continue 12745fi 12746 12747rm -f conftest.err conftest.$ac_ext 12748 12749 # OK, works on sane cases. Now check whether nonexistent headers 12750 # can be detected and how. 12751 cat >conftest.$ac_ext <<_ACEOF 12752/* confdefs.h. */ 12753_ACEOF 12754cat confdefs.h >>conftest.$ac_ext 12755cat >>conftest.$ac_ext <<_ACEOF 12756/* end confdefs.h. */ 12757@%:@include <ac_nonexistent.h> 12758_ACEOF 12759if { (ac_try="$ac_cpp conftest.$ac_ext" 12760case "(($ac_try" in 12761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12762 *) ac_try_echo=$ac_try;; 12763esac 12764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12765 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12766 ac_status=$? 12767 grep -v '^ *+' conftest.er1 >conftest.err 12768 rm -f conftest.er1 12769 cat conftest.err >&5 12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12771 (exit $ac_status); } >/dev/null && { 12772 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 12773 test ! -s conftest.err 12774 }; then 12775 # Broken: success on invalid input. 12776continue 12777else 12778 echo "$as_me: failed program was:" >&5 12779sed 's/^/| /' conftest.$ac_ext >&5 12780 12781 # Passes both tests. 12782ac_preproc_ok=: 12783break 12784fi 12785 12786rm -f conftest.err conftest.$ac_ext 12787 12788done 12789# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12790rm -f conftest.err conftest.$ac_ext 12791if $ac_preproc_ok; then 12792 break 12793fi 12794 12795 done 12796 ac_cv_prog_CXXCPP=$CXXCPP 12797 12798fi 12799 CXXCPP=$ac_cv_prog_CXXCPP 12800else 12801 ac_cv_prog_CXXCPP=$CXXCPP 12802fi 12803{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 12804echo "${ECHO_T}$CXXCPP" >&6; } 12805ac_preproc_ok=false 12806for ac_cxx_preproc_warn_flag in '' yes 12807do 12808 # Use a header file that comes with gcc, so configuring glibc 12809 # with a fresh cross-compiler works. 12810 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12811 # <limits.h> exists even on freestanding compilers. 12812 # On the NeXT, cc -E runs the code through the compiler's parser, 12813 # not just through cpp. "Syntax error" is here to catch this case. 12814 cat >conftest.$ac_ext <<_ACEOF 12815/* confdefs.h. */ 12816_ACEOF 12817cat confdefs.h >>conftest.$ac_ext 12818cat >>conftest.$ac_ext <<_ACEOF 12819/* end confdefs.h. */ 12820@%:@ifdef __STDC__ 12821@%:@ include <limits.h> 12822@%:@else 12823@%:@ include <assert.h> 12824@%:@endif 12825 Syntax error 12826_ACEOF 12827if { (ac_try="$ac_cpp conftest.$ac_ext" 12828case "(($ac_try" in 12829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12830 *) ac_try_echo=$ac_try;; 12831esac 12832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12834 ac_status=$? 12835 grep -v '^ *+' conftest.er1 >conftest.err 12836 rm -f conftest.er1 12837 cat conftest.err >&5 12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12839 (exit $ac_status); } >/dev/null && { 12840 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 12841 test ! -s conftest.err 12842 }; then 12843 : 12844else 12845 echo "$as_me: failed program was:" >&5 12846sed 's/^/| /' conftest.$ac_ext >&5 12847 12848 # Broken: fails on valid input. 12849continue 12850fi 12851 12852rm -f conftest.err conftest.$ac_ext 12853 12854 # OK, works on sane cases. Now check whether nonexistent headers 12855 # can be detected and how. 12856 cat >conftest.$ac_ext <<_ACEOF 12857/* confdefs.h. */ 12858_ACEOF 12859cat confdefs.h >>conftest.$ac_ext 12860cat >>conftest.$ac_ext <<_ACEOF 12861/* end confdefs.h. */ 12862@%:@include <ac_nonexistent.h> 12863_ACEOF 12864if { (ac_try="$ac_cpp conftest.$ac_ext" 12865case "(($ac_try" in 12866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12867 *) ac_try_echo=$ac_try;; 12868esac 12869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12871 ac_status=$? 12872 grep -v '^ *+' conftest.er1 >conftest.err 12873 rm -f conftest.er1 12874 cat conftest.err >&5 12875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12876 (exit $ac_status); } >/dev/null && { 12877 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 12878 test ! -s conftest.err 12879 }; then 12880 # Broken: success on invalid input. 12881continue 12882else 12883 echo "$as_me: failed program was:" >&5 12884sed 's/^/| /' conftest.$ac_ext >&5 12885 12886 # Passes both tests. 12887ac_preproc_ok=: 12888break 12889fi 12890 12891rm -f conftest.err conftest.$ac_ext 12892 12893done 12894# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12895rm -f conftest.err conftest.$ac_ext 12896if $ac_preproc_ok; then 12897 : 12898else 12899 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 12900See \`config.log' for more details." >&5 12901echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 12902See \`config.log' for more details." >&2;} 12903 { (exit 1); exit 1; }; } 12904fi 12905 12906ac_ext=cpp 12907ac_cpp='$CXXCPP $CPPFLAGS' 12908ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12909ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12910ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12911 12912fi 12913 12914ac_ext=f 12915ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 12916ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12917ac_compiler_gnu=$ac_cv_f77_compiler_gnu 12918if test -n "$ac_tool_prefix"; then 12919 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 12920 do 12921 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12922set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12923{ echo "$as_me:$LINENO: checking for $ac_word" >&5 12924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 12925if test "${ac_cv_prog_F77+set}" = set; then 12926 echo $ECHO_N "(cached) $ECHO_C" >&6 12927else 12928 if test -n "$F77"; then 12929 ac_cv_prog_F77="$F77" # Let the user override the test. 12930else 12931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12932for as_dir in $PATH 12933do 12934 IFS=$as_save_IFS 12935 test -z "$as_dir" && as_dir=. 12936 for ac_exec_ext in '' $ac_executable_extensions; do 12937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12938 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 12939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12940 break 2 12941 fi 12942done 12943done 12944IFS=$as_save_IFS 12945 12946fi 12947fi 12948F77=$ac_cv_prog_F77 12949if test -n "$F77"; then 12950 { echo "$as_me:$LINENO: result: $F77" >&5 12951echo "${ECHO_T}$F77" >&6; } 12952else 12953 { echo "$as_me:$LINENO: result: no" >&5 12954echo "${ECHO_T}no" >&6; } 12955fi 12956 12957 12958 test -n "$F77" && break 12959 done 12960fi 12961if test -z "$F77"; then 12962 ac_ct_F77=$F77 12963 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 12964do 12965 # Extract the first word of "$ac_prog", so it can be a program name with args. 12966set dummy $ac_prog; ac_word=$2 12967{ echo "$as_me:$LINENO: checking for $ac_word" >&5 12968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 12969if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 12970 echo $ECHO_N "(cached) $ECHO_C" >&6 12971else 12972 if test -n "$ac_ct_F77"; then 12973 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 12974else 12975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12976for as_dir in $PATH 12977do 12978 IFS=$as_save_IFS 12979 test -z "$as_dir" && as_dir=. 12980 for ac_exec_ext in '' $ac_executable_extensions; do 12981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12982 ac_cv_prog_ac_ct_F77="$ac_prog" 12983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12984 break 2 12985 fi 12986done 12987done 12988IFS=$as_save_IFS 12989 12990fi 12991fi 12992ac_ct_F77=$ac_cv_prog_ac_ct_F77 12993if test -n "$ac_ct_F77"; then 12994 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 12995echo "${ECHO_T}$ac_ct_F77" >&6; } 12996else 12997 { echo "$as_me:$LINENO: result: no" >&5 12998echo "${ECHO_T}no" >&6; } 12999fi 13000 13001 13002 test -n "$ac_ct_F77" && break 13003done 13004 13005 if test "x$ac_ct_F77" = x; then 13006 F77="" 13007 else 13008 case $cross_compiling:$ac_tool_warned in 13009yes:) 13010{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 13011whose name does not start with the host triplet. If you think this 13012configuration is useful to you, please write to autoconf@gnu.org." >&5 13013echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 13014whose name does not start with the host triplet. If you think this 13015configuration is useful to you, please write to autoconf@gnu.org." >&2;} 13016ac_tool_warned=yes ;; 13017esac 13018 F77=$ac_ct_F77 13019 fi 13020fi 13021 13022 13023# Provide some information about the compiler. 13024echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 13025ac_compiler=`set X $ac_compile; echo $2` 13026{ (ac_try="$ac_compiler --version >&5" 13027case "(($ac_try" in 13028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13029 *) ac_try_echo=$ac_try;; 13030esac 13031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13032 (eval "$ac_compiler --version >&5") 2>&5 13033 ac_status=$? 13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13035 (exit $ac_status); } 13036{ (ac_try="$ac_compiler -v >&5" 13037case "(($ac_try" in 13038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13039 *) ac_try_echo=$ac_try;; 13040esac 13041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13042 (eval "$ac_compiler -v >&5") 2>&5 13043 ac_status=$? 13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13045 (exit $ac_status); } 13046{ (ac_try="$ac_compiler -V >&5" 13047case "(($ac_try" in 13048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13049 *) ac_try_echo=$ac_try;; 13050esac 13051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13052 (eval "$ac_compiler -V >&5") 2>&5 13053 ac_status=$? 13054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13055 (exit $ac_status); } 13056rm -f a.out 13057 13058# If we don't use `.F' as extension, the preprocessor is not run on the 13059# input file. (Note that this only needs to work for GNU compilers.) 13060ac_save_ext=$ac_ext 13061ac_ext=F 13062{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 13063echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 13064if test "${ac_cv_f77_compiler_gnu+set}" = set; then 13065 echo $ECHO_N "(cached) $ECHO_C" >&6 13066else 13067 cat >conftest.$ac_ext <<_ACEOF 13068 program main 13069#ifndef __GNUC__ 13070 choke me 13071#endif 13072 13073 end 13074_ACEOF 13075rm -f conftest.$ac_objext 13076if { (ac_try="$ac_compile" 13077case "(($ac_try" in 13078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13079 *) ac_try_echo=$ac_try;; 13080esac 13081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13082 (eval "$ac_compile") 2>conftest.er1 13083 ac_status=$? 13084 grep -v '^ *+' conftest.er1 >conftest.err 13085 rm -f conftest.er1 13086 cat conftest.err >&5 13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13088 (exit $ac_status); } && { 13089 test -z "$ac_f77_werror_flag" || 13090 test ! -s conftest.err 13091 } && test -s conftest.$ac_objext; then 13092 ac_compiler_gnu=yes 13093else 13094 echo "$as_me: failed program was:" >&5 13095sed 's/^/| /' conftest.$ac_ext >&5 13096 13097 ac_compiler_gnu=no 13098fi 13099 13100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13101ac_cv_f77_compiler_gnu=$ac_compiler_gnu 13102 13103fi 13104{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 13105echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 13106ac_ext=$ac_save_ext 13107ac_test_FFLAGS=${FFLAGS+set} 13108ac_save_FFLAGS=$FFLAGS 13109FFLAGS= 13110{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 13111echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 13112if test "${ac_cv_prog_f77_g+set}" = set; then 13113 echo $ECHO_N "(cached) $ECHO_C" >&6 13114else 13115 FFLAGS=-g 13116cat >conftest.$ac_ext <<_ACEOF 13117 program main 13118 13119 end 13120_ACEOF 13121rm -f conftest.$ac_objext 13122if { (ac_try="$ac_compile" 13123case "(($ac_try" in 13124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13125 *) ac_try_echo=$ac_try;; 13126esac 13127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13128 (eval "$ac_compile") 2>conftest.er1 13129 ac_status=$? 13130 grep -v '^ *+' conftest.er1 >conftest.err 13131 rm -f conftest.er1 13132 cat conftest.err >&5 13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13134 (exit $ac_status); } && { 13135 test -z "$ac_f77_werror_flag" || 13136 test ! -s conftest.err 13137 } && test -s conftest.$ac_objext; then 13138 ac_cv_prog_f77_g=yes 13139else 13140 echo "$as_me: failed program was:" >&5 13141sed 's/^/| /' conftest.$ac_ext >&5 13142 13143 ac_cv_prog_f77_g=no 13144fi 13145 13146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13147 13148fi 13149{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 13150echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 13151if test "$ac_test_FFLAGS" = set; then 13152 FFLAGS=$ac_save_FFLAGS 13153elif test $ac_cv_prog_f77_g = yes; then 13154 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 13155 FFLAGS="-g -O2" 13156 else 13157 FFLAGS="-g" 13158 fi 13159else 13160 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 13161 FFLAGS="-O2" 13162 else 13163 FFLAGS= 13164 fi 13165fi 13166 13167G77=`test $ac_compiler_gnu = yes && echo yes` 13168ac_ext=cpp 13169ac_cpp='$CXXCPP $CPPFLAGS' 13170ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13171ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13172ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13173 13174 13175 13176# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 13177# find the maximum length of command line arguments 13178{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 13179echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 13180if test "${lt_cv_sys_max_cmd_len+set}" = set; then 13181 echo $ECHO_N "(cached) $ECHO_C" >&6 13182else 13183 i=0 13184 teststring="ABCD" 13185 13186 case $build_os in 13187 msdosdjgpp*) 13188 # On DJGPP, this test can blow up pretty badly due to problems in libc 13189 # (any single argument exceeding 2000 bytes causes a buffer overrun 13190 # during glob expansion). Even if it were fixed, the result of this 13191 # check would be larger than it should be. 13192 lt_cv_sys_max_cmd_len=12288; # 12K is about right 13193 ;; 13194 13195 gnu*) 13196 # Under GNU Hurd, this test is not required because there is 13197 # no limit to the length of command line arguments. 13198 # Libtool will interpret -1 as no limit whatsoever 13199 lt_cv_sys_max_cmd_len=-1; 13200 ;; 13201 13202 cygwin* | mingw*) 13203 # On Win9x/ME, this test blows up -- it succeeds, but takes 13204 # about 5 minutes as the teststring grows exponentially. 13205 # Worse, since 9x/ME are not pre-emptively multitasking, 13206 # you end up with a "frozen" computer, even though with patience 13207 # the test eventually succeeds (with a max line length of 256k). 13208 # Instead, let's just punt: use the minimum linelength reported by 13209 # all of the supported platforms: 8192 (on NT/2K/XP). 13210 lt_cv_sys_max_cmd_len=8192; 13211 ;; 13212 13213 amigaos*) 13214 # On AmigaOS with pdksh, this test takes hours, literally. 13215 # So we just punt and use a minimum line length of 8192. 13216 lt_cv_sys_max_cmd_len=8192; 13217 ;; 13218 13219 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 13220 # This has been around since 386BSD, at least. Likely further. 13221 if test -x /sbin/sysctl; then 13222 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 13223 elif test -x /usr/sbin/sysctl; then 13224 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 13225 else 13226 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 13227 fi 13228 # And add a safety zone 13229 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 13230 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 13231 ;; 13232 13233 interix*) 13234 # We know the value 262144 and hardcode it with a safety zone (like BSD) 13235 lt_cv_sys_max_cmd_len=196608 13236 ;; 13237 13238 osf*) 13239 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 13240 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 13241 # nice to cause kernel panics so lets avoid the loop below. 13242 # First set a reasonable default. 13243 lt_cv_sys_max_cmd_len=16384 13244 # 13245 if test -x /sbin/sysconfig; then 13246 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 13247 *1*) lt_cv_sys_max_cmd_len=-1 ;; 13248 esac 13249 fi 13250 ;; 13251 sco3.2v5*) 13252 lt_cv_sys_max_cmd_len=102400 13253 ;; 13254 sysv5* | sco5v6* | sysv4.2uw2*) 13255 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 13256 if test -n "$kargmax"; then 13257 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 13258 else 13259 lt_cv_sys_max_cmd_len=32768 13260 fi 13261 ;; 13262 *) 13263 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 13264 if test -n "$lt_cv_sys_max_cmd_len"; then 13265 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 13266 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 13267 else 13268 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 13269 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 13270 = "XX$teststring") >/dev/null 2>&1 && 13271 new_result=`expr "X$teststring" : ".*" 2>&1` && 13272 lt_cv_sys_max_cmd_len=$new_result && 13273 test $i != 17 # 1/2 MB should be enough 13274 do 13275 i=`expr $i + 1` 13276 teststring=$teststring$teststring 13277 done 13278 teststring= 13279 # Add a significant safety factor because C++ compilers can tack on massive 13280 # amounts of additional arguments before passing them to the linker. 13281 # It appears as though 1/2 is a usable value. 13282 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 13283 fi 13284 ;; 13285 esac 13286 13287fi 13288 13289if test -n $lt_cv_sys_max_cmd_len ; then 13290 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 13291echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 13292else 13293 { echo "$as_me:$LINENO: result: none" >&5 13294echo "${ECHO_T}none" >&6; } 13295fi 13296 13297 13298 13299 13300 13301# Check for command to grab the raw symbol name followed by C symbol from nm. 13302{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 13303echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 13304if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 13305 echo $ECHO_N "(cached) $ECHO_C" >&6 13306else 13307 13308# These are sane defaults that work on at least a few old systems. 13309# [They come from Ultrix. What could be older than Ultrix?!! ;)] 13310 13311# Character class describing NM global symbol codes. 13312symcode='[BCDEGRST]' 13313 13314# Regexp to match symbols that can be accessed directly from C. 13315sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 13316 13317# Transform an extracted symbol line into a proper C declaration 13318lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 13319 13320# Transform an extracted symbol line into symbol name and symbol address 13321lt_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'" 13322 13323# Define system-specific variables. 13324case $host_os in 13325aix*) 13326 symcode='[BCDT]' 13327 ;; 13328cygwin* | mingw* | pw32*) 13329 symcode='[ABCDGISTW]' 13330 ;; 13331hpux*) # Its linker distinguishes data from code symbols 13332 if test "$host_cpu" = ia64; then 13333 symcode='[ABCDEGRST]' 13334 fi 13335 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 13336 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'" 13337 ;; 13338linux* | k*bsd*-gnu) 13339 if test "$host_cpu" = ia64; then 13340 symcode='[ABCDGIRSTW]' 13341 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 13342 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'" 13343 fi 13344 ;; 13345irix* | nonstopux*) 13346 symcode='[BCDEGRST]' 13347 ;; 13348osf*) 13349 symcode='[BCDEGQRST]' 13350 ;; 13351solaris*) 13352 symcode='[BDRT]' 13353 ;; 13354sco3.2v5*) 13355 symcode='[DT]' 13356 ;; 13357sysv4.2uw2*) 13358 symcode='[DT]' 13359 ;; 13360sysv5* | sco5v6* | unixware* | OpenUNIX*) 13361 symcode='[ABDT]' 13362 ;; 13363sysv4) 13364 symcode='[DFNSTU]' 13365 ;; 13366esac 13367 13368# Handle CRLF in mingw tool chain 13369opt_cr= 13370case $build_os in 13371mingw*) 13372 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 13373 ;; 13374esac 13375 13376# If we're using GNU nm, then use its standard symbol codes. 13377case `$NM -V 2>&1` in 13378*GNU* | *'with BFD'*) 13379 symcode='[ABCDGIRSTW]' ;; 13380esac 13381 13382# Try without a prefix undercore, then with it. 13383for ac_symprfx in "" "_"; do 13384 13385 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 13386 symxfrm="\\1 $ac_symprfx\\2 \\2" 13387 13388 # Write the raw and C identifiers. 13389 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 13390 13391 # Check to see that the pipe works correctly. 13392 pipe_works=no 13393 13394 rm -f conftest* 13395 cat > conftest.$ac_ext <<EOF 13396#ifdef __cplusplus 13397extern "C" { 13398#endif 13399char nm_test_var; 13400void nm_test_func(){} 13401#ifdef __cplusplus 13402} 13403#endif 13404int main(){nm_test_var='a';nm_test_func();return(0);} 13405EOF 13406 13407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13408 (eval $ac_compile) 2>&5 13409 ac_status=$? 13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13411 (exit $ac_status); }; then 13412 # Now try to grab the symbols. 13413 nlist=conftest.nm 13414 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 13415 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 13416 ac_status=$? 13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13418 (exit $ac_status); } && test -s "$nlist"; then 13419 # Try sorting and uniquifying the output. 13420 if sort "$nlist" | uniq > "$nlist"T; then 13421 mv -f "$nlist"T "$nlist" 13422 else 13423 rm -f "$nlist"T 13424 fi 13425 13426 # Make sure that we snagged all the symbols we need. 13427 if grep ' nm_test_var$' "$nlist" >/dev/null; then 13428 if grep ' nm_test_func$' "$nlist" >/dev/null; then 13429 cat <<EOF > conftest.$ac_ext 13430#ifdef __cplusplus 13431extern "C" { 13432#endif 13433 13434EOF 13435 # Now generate the symbol file. 13436 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 13437 13438 cat <<EOF >> conftest.$ac_ext 13439#if defined (__STDC__) && __STDC__ 13440# define lt_ptr_t void * 13441#else 13442# define lt_ptr_t char * 13443# define const 13444#endif 13445 13446/* The mapping between symbol names and symbols. */ 13447const struct { 13448 const char *name; 13449 lt_ptr_t address; 13450} 13451lt_preloaded_symbols[] = 13452{ 13453EOF 13454 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 13455 cat <<\EOF >> conftest.$ac_ext 13456 {0, (lt_ptr_t) 0} 13457}; 13458 13459#ifdef __cplusplus 13460} 13461#endif 13462EOF 13463 # Now try linking the two files. 13464 mv conftest.$ac_objext conftstm.$ac_objext 13465 lt_save_LIBS="$LIBS" 13466 lt_save_CFLAGS="$CFLAGS" 13467 LIBS="conftstm.$ac_objext" 13468 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 13469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13470 (eval $ac_link) 2>&5 13471 ac_status=$? 13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13473 (exit $ac_status); } && test -s conftest${ac_exeext}; then 13474 pipe_works=yes 13475 fi 13476 LIBS="$lt_save_LIBS" 13477 CFLAGS="$lt_save_CFLAGS" 13478 else 13479 echo "cannot find nm_test_func in $nlist" >&5 13480 fi 13481 else 13482 echo "cannot find nm_test_var in $nlist" >&5 13483 fi 13484 else 13485 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 13486 fi 13487 else 13488 echo "$progname: failed program was:" >&5 13489 cat conftest.$ac_ext >&5 13490 fi 13491 rm -rf conftest* conftst* 13492 13493 # Do not use the global_symbol_pipe unless it works. 13494 if test "$pipe_works" = yes; then 13495 break 13496 else 13497 lt_cv_sys_global_symbol_pipe= 13498 fi 13499done 13500 13501fi 13502 13503if test -z "$lt_cv_sys_global_symbol_pipe"; then 13504 lt_cv_sys_global_symbol_to_cdecl= 13505fi 13506if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 13507 { echo "$as_me:$LINENO: result: failed" >&5 13508echo "${ECHO_T}failed" >&6; } 13509else 13510 { echo "$as_me:$LINENO: result: ok" >&5 13511echo "${ECHO_T}ok" >&6; } 13512fi 13513 13514{ echo "$as_me:$LINENO: checking for objdir" >&5 13515echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 13516if test "${lt_cv_objdir+set}" = set; then 13517 echo $ECHO_N "(cached) $ECHO_C" >&6 13518else 13519 rm -f .libs 2>/dev/null 13520mkdir .libs 2>/dev/null 13521if test -d .libs; then 13522 lt_cv_objdir=.libs 13523else 13524 # MS-DOS does not allow filenames that begin with a dot. 13525 lt_cv_objdir=_libs 13526fi 13527rmdir .libs 2>/dev/null 13528fi 13529{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 13530echo "${ECHO_T}$lt_cv_objdir" >&6; } 13531objdir=$lt_cv_objdir 13532 13533 13534 13535 13536 13537case $host_os in 13538aix3*) 13539 # AIX sometimes has problems with the GCC collect2 program. For some 13540 # reason, if we set the COLLECT_NAMES environment variable, the problems 13541 # vanish in a puff of smoke. 13542 if test "X${COLLECT_NAMES+set}" != Xset; then 13543 COLLECT_NAMES= 13544 export COLLECT_NAMES 13545 fi 13546 ;; 13547esac 13548 13549# Sed substitution that helps us do robust quoting. It backslashifies 13550# metacharacters that are still active within double-quoted strings. 13551Xsed='sed -e 1s/^X//' 13552sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 13553 13554# Same as above, but do not quote variable references. 13555double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 13556 13557# Sed substitution to delay expansion of an escaped shell variable in a 13558# double_quote_subst'ed string. 13559delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 13560 13561# Sed substitution to avoid accidental globbing in evaled expressions 13562no_glob_subst='s/\*/\\\*/g' 13563 13564# Constants: 13565rm="rm -f" 13566 13567# Global variables: 13568default_ofile=libtool 13569can_build_shared=yes 13570 13571# All known linkers require a `.a' archive for static linking (except MSVC, 13572# which needs '.lib'). 13573libext=a 13574ltmain="$ac_aux_dir/ltmain.sh" 13575ofile="$default_ofile" 13576with_gnu_ld="$lt_cv_prog_gnu_ld" 13577 13578if test -n "$ac_tool_prefix"; then 13579 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 13580set dummy ${ac_tool_prefix}ar; ac_word=$2 13581{ echo "$as_me:$LINENO: checking for $ac_word" >&5 13582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 13583if test "${ac_cv_prog_AR+set}" = set; then 13584 echo $ECHO_N "(cached) $ECHO_C" >&6 13585else 13586 if test -n "$AR"; then 13587 ac_cv_prog_AR="$AR" # Let the user override the test. 13588else 13589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13590for as_dir in $PATH 13591do 13592 IFS=$as_save_IFS 13593 test -z "$as_dir" && as_dir=. 13594 for ac_exec_ext in '' $ac_executable_extensions; do 13595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13596 ac_cv_prog_AR="${ac_tool_prefix}ar" 13597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 13598 break 2 13599 fi 13600done 13601done 13602IFS=$as_save_IFS 13603 13604fi 13605fi 13606AR=$ac_cv_prog_AR 13607if test -n "$AR"; then 13608 { echo "$as_me:$LINENO: result: $AR" >&5 13609echo "${ECHO_T}$AR" >&6; } 13610else 13611 { echo "$as_me:$LINENO: result: no" >&5 13612echo "${ECHO_T}no" >&6; } 13613fi 13614 13615 13616fi 13617if test -z "$ac_cv_prog_AR"; then 13618 ac_ct_AR=$AR 13619 # Extract the first word of "ar", so it can be a program name with args. 13620set dummy ar; ac_word=$2 13621{ echo "$as_me:$LINENO: checking for $ac_word" >&5 13622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 13623if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 13624 echo $ECHO_N "(cached) $ECHO_C" >&6 13625else 13626 if test -n "$ac_ct_AR"; then 13627 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 13628else 13629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13630for as_dir in $PATH 13631do 13632 IFS=$as_save_IFS 13633 test -z "$as_dir" && as_dir=. 13634 for ac_exec_ext in '' $ac_executable_extensions; do 13635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13636 ac_cv_prog_ac_ct_AR="ar" 13637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 13638 break 2 13639 fi 13640done 13641done 13642IFS=$as_save_IFS 13643 13644fi 13645fi 13646ac_ct_AR=$ac_cv_prog_ac_ct_AR 13647if test -n "$ac_ct_AR"; then 13648 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 13649echo "${ECHO_T}$ac_ct_AR" >&6; } 13650else 13651 { echo "$as_me:$LINENO: result: no" >&5 13652echo "${ECHO_T}no" >&6; } 13653fi 13654 13655 if test "x$ac_ct_AR" = x; then 13656 AR="false" 13657 else 13658 case $cross_compiling:$ac_tool_warned in 13659yes:) 13660{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 13661whose name does not start with the host triplet. If you think this 13662configuration is useful to you, please write to autoconf@gnu.org." >&5 13663echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 13664whose name does not start with the host triplet. If you think this 13665configuration is useful to you, please write to autoconf@gnu.org." >&2;} 13666ac_tool_warned=yes ;; 13667esac 13668 AR=$ac_ct_AR 13669 fi 13670else 13671 AR="$ac_cv_prog_AR" 13672fi 13673 13674if test -n "$ac_tool_prefix"; then 13675 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 13676set dummy ${ac_tool_prefix}ranlib; ac_word=$2 13677{ echo "$as_me:$LINENO: checking for $ac_word" >&5 13678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 13679if test "${ac_cv_prog_RANLIB+set}" = set; then 13680 echo $ECHO_N "(cached) $ECHO_C" >&6 13681else 13682 if test -n "$RANLIB"; then 13683 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 13684else 13685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13686for as_dir in $PATH 13687do 13688 IFS=$as_save_IFS 13689 test -z "$as_dir" && as_dir=. 13690 for ac_exec_ext in '' $ac_executable_extensions; do 13691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13692 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 13693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 13694 break 2 13695 fi 13696done 13697done 13698IFS=$as_save_IFS 13699 13700fi 13701fi 13702RANLIB=$ac_cv_prog_RANLIB 13703if test -n "$RANLIB"; then 13704 { echo "$as_me:$LINENO: result: $RANLIB" >&5 13705echo "${ECHO_T}$RANLIB" >&6; } 13706else 13707 { echo "$as_me:$LINENO: result: no" >&5 13708echo "${ECHO_T}no" >&6; } 13709fi 13710 13711 13712fi 13713if test -z "$ac_cv_prog_RANLIB"; then 13714 ac_ct_RANLIB=$RANLIB 13715 # Extract the first word of "ranlib", so it can be a program name with args. 13716set dummy ranlib; ac_word=$2 13717{ echo "$as_me:$LINENO: checking for $ac_word" >&5 13718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 13719if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 13720 echo $ECHO_N "(cached) $ECHO_C" >&6 13721else 13722 if test -n "$ac_ct_RANLIB"; then 13723 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 13724else 13725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13726for as_dir in $PATH 13727do 13728 IFS=$as_save_IFS 13729 test -z "$as_dir" && as_dir=. 13730 for ac_exec_ext in '' $ac_executable_extensions; do 13731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13732 ac_cv_prog_ac_ct_RANLIB="ranlib" 13733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 13734 break 2 13735 fi 13736done 13737done 13738IFS=$as_save_IFS 13739 13740fi 13741fi 13742ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 13743if test -n "$ac_ct_RANLIB"; then 13744 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 13745echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 13746else 13747 { echo "$as_me:$LINENO: result: no" >&5 13748echo "${ECHO_T}no" >&6; } 13749fi 13750 13751 if test "x$ac_ct_RANLIB" = x; then 13752 RANLIB=":" 13753 else 13754 case $cross_compiling:$ac_tool_warned in 13755yes:) 13756{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 13757whose name does not start with the host triplet. If you think this 13758configuration is useful to you, please write to autoconf@gnu.org." >&5 13759echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 13760whose name does not start with the host triplet. If you think this 13761configuration is useful to you, please write to autoconf@gnu.org." >&2;} 13762ac_tool_warned=yes ;; 13763esac 13764 RANLIB=$ac_ct_RANLIB 13765 fi 13766else 13767 RANLIB="$ac_cv_prog_RANLIB" 13768fi 13769 13770if test -n "$ac_tool_prefix"; then 13771 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 13772set dummy ${ac_tool_prefix}strip; ac_word=$2 13773{ echo "$as_me:$LINENO: checking for $ac_word" >&5 13774echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 13775if test "${ac_cv_prog_STRIP+set}" = set; then 13776 echo $ECHO_N "(cached) $ECHO_C" >&6 13777else 13778 if test -n "$STRIP"; then 13779 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 13780else 13781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13782for as_dir in $PATH 13783do 13784 IFS=$as_save_IFS 13785 test -z "$as_dir" && as_dir=. 13786 for ac_exec_ext in '' $ac_executable_extensions; do 13787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13788 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 13789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 13790 break 2 13791 fi 13792done 13793done 13794IFS=$as_save_IFS 13795 13796fi 13797fi 13798STRIP=$ac_cv_prog_STRIP 13799if test -n "$STRIP"; then 13800 { echo "$as_me:$LINENO: result: $STRIP" >&5 13801echo "${ECHO_T}$STRIP" >&6; } 13802else 13803 { echo "$as_me:$LINENO: result: no" >&5 13804echo "${ECHO_T}no" >&6; } 13805fi 13806 13807 13808fi 13809if test -z "$ac_cv_prog_STRIP"; then 13810 ac_ct_STRIP=$STRIP 13811 # Extract the first word of "strip", so it can be a program name with args. 13812set dummy strip; ac_word=$2 13813{ echo "$as_me:$LINENO: checking for $ac_word" >&5 13814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 13815if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 13816 echo $ECHO_N "(cached) $ECHO_C" >&6 13817else 13818 if test -n "$ac_ct_STRIP"; then 13819 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 13820else 13821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13822for as_dir in $PATH 13823do 13824 IFS=$as_save_IFS 13825 test -z "$as_dir" && as_dir=. 13826 for ac_exec_ext in '' $ac_executable_extensions; do 13827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13828 ac_cv_prog_ac_ct_STRIP="strip" 13829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 13830 break 2 13831 fi 13832done 13833done 13834IFS=$as_save_IFS 13835 13836fi 13837fi 13838ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 13839if test -n "$ac_ct_STRIP"; then 13840 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 13841echo "${ECHO_T}$ac_ct_STRIP" >&6; } 13842else 13843 { echo "$as_me:$LINENO: result: no" >&5 13844echo "${ECHO_T}no" >&6; } 13845fi 13846 13847 if test "x$ac_ct_STRIP" = x; then 13848 STRIP=":" 13849 else 13850 case $cross_compiling:$ac_tool_warned in 13851yes:) 13852{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 13853whose name does not start with the host triplet. If you think this 13854configuration is useful to you, please write to autoconf@gnu.org." >&5 13855echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 13856whose name does not start with the host triplet. If you think this 13857configuration is useful to you, please write to autoconf@gnu.org." >&2;} 13858ac_tool_warned=yes ;; 13859esac 13860 STRIP=$ac_ct_STRIP 13861 fi 13862else 13863 STRIP="$ac_cv_prog_STRIP" 13864fi 13865 13866 13867old_CC="$CC" 13868old_CFLAGS="$CFLAGS" 13869 13870# Set sane defaults for various variables 13871test -z "$AR" && AR=ar 13872test -z "$AR_FLAGS" && AR_FLAGS=cru 13873test -z "$AS" && AS=as 13874test -z "$CC" && CC=cc 13875test -z "$LTCC" && LTCC=$CC 13876test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 13877test -z "$DLLTOOL" && DLLTOOL=dlltool 13878test -z "$LD" && LD=ld 13879test -z "$LN_S" && LN_S="ln -s" 13880test -z "$MAGIC_CMD" && MAGIC_CMD=file 13881test -z "$NM" && NM=nm 13882test -z "$SED" && SED=sed 13883test -z "$OBJDUMP" && OBJDUMP=objdump 13884test -z "$RANLIB" && RANLIB=: 13885test -z "$STRIP" && STRIP=: 13886test -z "$ac_objext" && ac_objext=o 13887 13888# Determine commands to create old-style static archives. 13889old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 13890old_postinstall_cmds='chmod 644 $oldlib' 13891old_postuninstall_cmds= 13892 13893if test -n "$RANLIB"; then 13894 case $host_os in 13895 openbsd*) 13896 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 13897 ;; 13898 *) 13899 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 13900 ;; 13901 esac 13902 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 13903fi 13904 13905for cc_temp in $compiler""; do 13906 case $cc_temp in 13907 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13908 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13909 \-*) ;; 13910 *) break;; 13911 esac 13912done 13913cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13914 13915 13916# Only perform the check for file, if the check method requires it 13917case $deplibs_check_method in 13918file_magic*) 13919 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 13920 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 13921echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 13922if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 13923 echo $ECHO_N "(cached) $ECHO_C" >&6 13924else 13925 case $MAGIC_CMD in 13926[\\/*] | ?:[\\/]*) 13927 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 13928 ;; 13929*) 13930 lt_save_MAGIC_CMD="$MAGIC_CMD" 13931 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 13932 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 13933 for ac_dir in $ac_dummy; do 13934 IFS="$lt_save_ifs" 13935 test -z "$ac_dir" && ac_dir=. 13936 if test -f $ac_dir/${ac_tool_prefix}file; then 13937 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 13938 if test -n "$file_magic_test_file"; then 13939 case $deplibs_check_method in 13940 "file_magic "*) 13941 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 13942 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 13943 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 13944 $EGREP "$file_magic_regex" > /dev/null; then 13945 : 13946 else 13947 cat <<EOF 1>&2 13948 13949*** Warning: the command libtool uses to detect shared libraries, 13950*** $file_magic_cmd, produces output that libtool cannot recognize. 13951*** The result is that libtool may fail to recognize shared libraries 13952*** as such. This will affect the creation of libtool libraries that 13953*** depend on shared libraries, but programs linked with such libtool 13954*** libraries will work regardless of this problem. Nevertheless, you 13955*** may want to report the problem to your system manager and/or to 13956*** bug-libtool@gnu.org 13957 13958EOF 13959 fi ;; 13960 esac 13961 fi 13962 break 13963 fi 13964 done 13965 IFS="$lt_save_ifs" 13966 MAGIC_CMD="$lt_save_MAGIC_CMD" 13967 ;; 13968esac 13969fi 13970 13971MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 13972if test -n "$MAGIC_CMD"; then 13973 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 13974echo "${ECHO_T}$MAGIC_CMD" >&6; } 13975else 13976 { echo "$as_me:$LINENO: result: no" >&5 13977echo "${ECHO_T}no" >&6; } 13978fi 13979 13980if test -z "$lt_cv_path_MAGIC_CMD"; then 13981 if test -n "$ac_tool_prefix"; then 13982 { echo "$as_me:$LINENO: checking for file" >&5 13983echo $ECHO_N "checking for file... $ECHO_C" >&6; } 13984if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 13985 echo $ECHO_N "(cached) $ECHO_C" >&6 13986else 13987 case $MAGIC_CMD in 13988[\\/*] | ?:[\\/]*) 13989 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 13990 ;; 13991*) 13992 lt_save_MAGIC_CMD="$MAGIC_CMD" 13993 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 13994 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 13995 for ac_dir in $ac_dummy; do 13996 IFS="$lt_save_ifs" 13997 test -z "$ac_dir" && ac_dir=. 13998 if test -f $ac_dir/file; then 13999 lt_cv_path_MAGIC_CMD="$ac_dir/file" 14000 if test -n "$file_magic_test_file"; then 14001 case $deplibs_check_method in 14002 "file_magic "*) 14003 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14004 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 14005 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14006 $EGREP "$file_magic_regex" > /dev/null; then 14007 : 14008 else 14009 cat <<EOF 1>&2 14010 14011*** Warning: the command libtool uses to detect shared libraries, 14012*** $file_magic_cmd, produces output that libtool cannot recognize. 14013*** The result is that libtool may fail to recognize shared libraries 14014*** as such. This will affect the creation of libtool libraries that 14015*** depend on shared libraries, but programs linked with such libtool 14016*** libraries will work regardless of this problem. Nevertheless, you 14017*** may want to report the problem to your system manager and/or to 14018*** bug-libtool@gnu.org 14019 14020EOF 14021 fi ;; 14022 esac 14023 fi 14024 break 14025 fi 14026 done 14027 IFS="$lt_save_ifs" 14028 MAGIC_CMD="$lt_save_MAGIC_CMD" 14029 ;; 14030esac 14031fi 14032 14033MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 14034if test -n "$MAGIC_CMD"; then 14035 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 14036echo "${ECHO_T}$MAGIC_CMD" >&6; } 14037else 14038 { echo "$as_me:$LINENO: result: no" >&5 14039echo "${ECHO_T}no" >&6; } 14040fi 14041 14042 else 14043 MAGIC_CMD=: 14044 fi 14045fi 14046 14047 fi 14048 ;; 14049esac 14050 14051 14052 case $host_os in 14053 rhapsody* | darwin*) 14054 if test -n "$ac_tool_prefix"; then 14055 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 14056set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 14057{ echo "$as_me:$LINENO: checking for $ac_word" >&5 14058echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 14059if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 14060 echo $ECHO_N "(cached) $ECHO_C" >&6 14061else 14062 if test -n "$DSYMUTIL"; then 14063 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 14064else 14065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14066for as_dir in $PATH 14067do 14068 IFS=$as_save_IFS 14069 test -z "$as_dir" && as_dir=. 14070 for ac_exec_ext in '' $ac_executable_extensions; do 14071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 14072 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 14073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 14074 break 2 14075 fi 14076done 14077done 14078IFS=$as_save_IFS 14079 14080fi 14081fi 14082DSYMUTIL=$ac_cv_prog_DSYMUTIL 14083if test -n "$DSYMUTIL"; then 14084 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 14085echo "${ECHO_T}$DSYMUTIL" >&6; } 14086else 14087 { echo "$as_me:$LINENO: result: no" >&5 14088echo "${ECHO_T}no" >&6; } 14089fi 14090 14091 14092fi 14093if test -z "$ac_cv_prog_DSYMUTIL"; then 14094 ac_ct_DSYMUTIL=$DSYMUTIL 14095 # Extract the first word of "dsymutil", so it can be a program name with args. 14096set dummy dsymutil; ac_word=$2 14097{ echo "$as_me:$LINENO: checking for $ac_word" >&5 14098echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 14099if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 14100 echo $ECHO_N "(cached) $ECHO_C" >&6 14101else 14102 if test -n "$ac_ct_DSYMUTIL"; then 14103 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 14104else 14105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14106for as_dir in $PATH 14107do 14108 IFS=$as_save_IFS 14109 test -z "$as_dir" && as_dir=. 14110 for ac_exec_ext in '' $ac_executable_extensions; do 14111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 14112 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 14113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 14114 break 2 14115 fi 14116done 14117done 14118IFS=$as_save_IFS 14119 14120fi 14121fi 14122ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 14123if test -n "$ac_ct_DSYMUTIL"; then 14124 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 14125echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; } 14126else 14127 { echo "$as_me:$LINENO: result: no" >&5 14128echo "${ECHO_T}no" >&6; } 14129fi 14130 14131 if test "x$ac_ct_DSYMUTIL" = x; then 14132 DSYMUTIL=":" 14133 else 14134 case $cross_compiling:$ac_tool_warned in 14135yes:) 14136{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 14137whose name does not start with the host triplet. If you think this 14138configuration is useful to you, please write to autoconf@gnu.org." >&5 14139echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 14140whose name does not start with the host triplet. If you think this 14141configuration is useful to you, please write to autoconf@gnu.org." >&2;} 14142ac_tool_warned=yes ;; 14143esac 14144 DSYMUTIL=$ac_ct_DSYMUTIL 14145 fi 14146else 14147 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 14148fi 14149 14150 if test -n "$ac_tool_prefix"; then 14151 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 14152set dummy ${ac_tool_prefix}nmedit; ac_word=$2 14153{ echo "$as_me:$LINENO: checking for $ac_word" >&5 14154echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 14155if test "${ac_cv_prog_NMEDIT+set}" = set; then 14156 echo $ECHO_N "(cached) $ECHO_C" >&6 14157else 14158 if test -n "$NMEDIT"; then 14159 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 14160else 14161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14162for as_dir in $PATH 14163do 14164 IFS=$as_save_IFS 14165 test -z "$as_dir" && as_dir=. 14166 for ac_exec_ext in '' $ac_executable_extensions; do 14167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 14168 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 14169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 14170 break 2 14171 fi 14172done 14173done 14174IFS=$as_save_IFS 14175 14176fi 14177fi 14178NMEDIT=$ac_cv_prog_NMEDIT 14179if test -n "$NMEDIT"; then 14180 { echo "$as_me:$LINENO: result: $NMEDIT" >&5 14181echo "${ECHO_T}$NMEDIT" >&6; } 14182else 14183 { echo "$as_me:$LINENO: result: no" >&5 14184echo "${ECHO_T}no" >&6; } 14185fi 14186 14187 14188fi 14189if test -z "$ac_cv_prog_NMEDIT"; then 14190 ac_ct_NMEDIT=$NMEDIT 14191 # Extract the first word of "nmedit", so it can be a program name with args. 14192set dummy nmedit; ac_word=$2 14193{ echo "$as_me:$LINENO: checking for $ac_word" >&5 14194echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 14195if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 14196 echo $ECHO_N "(cached) $ECHO_C" >&6 14197else 14198 if test -n "$ac_ct_NMEDIT"; then 14199 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 14200else 14201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14202for as_dir in $PATH 14203do 14204 IFS=$as_save_IFS 14205 test -z "$as_dir" && as_dir=. 14206 for ac_exec_ext in '' $ac_executable_extensions; do 14207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 14208 ac_cv_prog_ac_ct_NMEDIT="nmedit" 14209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 14210 break 2 14211 fi 14212done 14213done 14214IFS=$as_save_IFS 14215 14216fi 14217fi 14218ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 14219if test -n "$ac_ct_NMEDIT"; then 14220 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 14221echo "${ECHO_T}$ac_ct_NMEDIT" >&6; } 14222else 14223 { echo "$as_me:$LINENO: result: no" >&5 14224echo "${ECHO_T}no" >&6; } 14225fi 14226 14227 if test "x$ac_ct_NMEDIT" = x; then 14228 NMEDIT=":" 14229 else 14230 case $cross_compiling:$ac_tool_warned in 14231yes:) 14232{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 14233whose name does not start with the host triplet. If you think this 14234configuration is useful to you, please write to autoconf@gnu.org." >&5 14235echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 14236whose name does not start with the host triplet. If you think this 14237configuration is useful to you, please write to autoconf@gnu.org." >&2;} 14238ac_tool_warned=yes ;; 14239esac 14240 NMEDIT=$ac_ct_NMEDIT 14241 fi 14242else 14243 NMEDIT="$ac_cv_prog_NMEDIT" 14244fi 14245 14246 14247 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 14248echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; } 14249if test "${lt_cv_apple_cc_single_mod+set}" = set; then 14250 echo $ECHO_N "(cached) $ECHO_C" >&6 14251else 14252 lt_cv_apple_cc_single_mod=no 14253 if test -z "${LT_MULTI_MODULE}"; then 14254 # By default we will add the -single_module flag. You can override 14255 # by either setting the environment variable LT_MULTI_MODULE 14256 # non-empty at configure time, or by adding -multi_module to the 14257 # link flags. 14258 echo "int foo(void){return 1;}" > conftest.c 14259 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14260 -dynamiclib ${wl}-single_module conftest.c 14261 if test -f libconftest.dylib; then 14262 lt_cv_apple_cc_single_mod=yes 14263 rm -rf libconftest.dylib* 14264 fi 14265 rm conftest.c 14266 fi 14267fi 14268{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 14269echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; } 14270 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 14271echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; } 14272if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 14273 echo $ECHO_N "(cached) $ECHO_C" >&6 14274else 14275 lt_cv_ld_exported_symbols_list=no 14276 save_LDFLAGS=$LDFLAGS 14277 echo "_main" > conftest.sym 14278 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 14279 cat >conftest.$ac_ext <<_ACEOF 14280/* confdefs.h. */ 14281_ACEOF 14282cat confdefs.h >>conftest.$ac_ext 14283cat >>conftest.$ac_ext <<_ACEOF 14284/* end confdefs.h. */ 14285 14286int 14287main () 14288{ 14289 14290 ; 14291 return 0; 14292} 14293_ACEOF 14294rm -f conftest.$ac_objext conftest$ac_exeext 14295if { (ac_try="$ac_link" 14296case "(($ac_try" in 14297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14298 *) ac_try_echo=$ac_try;; 14299esac 14300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14301 (eval "$ac_link") 2>conftest.er1 14302 ac_status=$? 14303 grep -v '^ *+' conftest.er1 >conftest.err 14304 rm -f conftest.er1 14305 cat conftest.err >&5 14306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14307 (exit $ac_status); } && { 14308 test -z "$ac_cxx_werror_flag" || 14309 test ! -s conftest.err 14310 } && test -s conftest$ac_exeext && 14311 $as_test_x conftest$ac_exeext; then 14312 lt_cv_ld_exported_symbols_list=yes 14313else 14314 echo "$as_me: failed program was:" >&5 14315sed 's/^/| /' conftest.$ac_ext >&5 14316 14317 lt_cv_ld_exported_symbols_list=no 14318fi 14319 14320rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14321 conftest$ac_exeext conftest.$ac_ext 14322 LDFLAGS="$save_LDFLAGS" 14323 14324fi 14325{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 14326echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; } 14327 case $host_os in 14328 rhapsody* | darwin1.[0123]) 14329 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 14330 darwin1.*) 14331 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 14332 darwin*) 14333 # if running on 10.5 or later, the deployment target defaults 14334 # to the OS version, if on x86, and 10.4, the deployment 14335 # target defaults to 10.4. Don't you love it? 14336 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 14337 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 14338 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 14339 10.[012]*) 14340 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 14341 10.*) 14342 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 14343 esac 14344 ;; 14345 esac 14346 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 14347 _lt_dar_single_mod='$single_module' 14348 fi 14349 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 14350 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 14351 else 14352 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}" 14353 fi 14354 if test "$DSYMUTIL" != ":"; then 14355 _lt_dsymutil="~$DSYMUTIL \$lib || :" 14356 else 14357 _lt_dsymutil= 14358 fi 14359 ;; 14360 esac 14361 14362 14363enable_dlopen=no 14364enable_win32_dll=no 14365 14366# Check whether --enable-libtool-lock was given. 14367if test "${enable_libtool_lock+set}" = set; then 14368 enableval=$enable_libtool_lock; 14369fi 14370 14371test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 14372 14373 14374# Check whether --with-pic was given. 14375if test "${with_pic+set}" = set; then 14376 withval=$with_pic; pic_mode="$withval" 14377else 14378 pic_mode=default 14379fi 14380 14381test -z "$pic_mode" && pic_mode=default 14382 14383# Use C for the default configuration in the libtool script 14384tagname= 14385lt_save_CC="$CC" 14386ac_ext=c 14387ac_cpp='$CPP $CPPFLAGS' 14388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14390ac_compiler_gnu=$ac_cv_c_compiler_gnu 14391 14392 14393# Source file extension for C test sources. 14394ac_ext=c 14395 14396# Object file extension for compiled C test sources. 14397objext=o 14398objext=$objext 14399 14400# Code to be used in simple compile tests 14401lt_simple_compile_test_code="int some_variable = 0;" 14402 14403# Code to be used in simple link tests 14404lt_simple_link_test_code='int main(){return(0);}' 14405 14406 14407# If no C compiler was specified, use CC. 14408LTCC=${LTCC-"$CC"} 14409 14410# If no C compiler flags were specified, use CFLAGS. 14411LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14412 14413# Allow CC to be a program name with arguments. 14414compiler=$CC 14415 14416 14417# save warnings/boilerplate of simple test code 14418ac_outfile=conftest.$ac_objext 14419echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14420eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14421_lt_compiler_boilerplate=`cat conftest.err` 14422$rm conftest* 14423 14424ac_outfile=conftest.$ac_objext 14425echo "$lt_simple_link_test_code" >conftest.$ac_ext 14426eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14427_lt_linker_boilerplate=`cat conftest.err` 14428$rm -r conftest* 14429 14430 14431 14432lt_prog_compiler_no_builtin_flag= 14433 14434if test "$GCC" = yes; then 14435 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 14436 14437 14438{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 14439echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 14440if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 14441 echo $ECHO_N "(cached) $ECHO_C" >&6 14442else 14443 lt_cv_prog_compiler_rtti_exceptions=no 14444 ac_outfile=conftest.$ac_objext 14445 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14446 lt_compiler_flag="-fno-rtti -fno-exceptions" 14447 # Insert the option either (1) after the last *FLAGS variable, or 14448 # (2) before a word containing "conftest.", or (3) at the end. 14449 # Note that $ac_compile itself does not contain backslashes and begins 14450 # with a dollar sign (not a hyphen), so the echo should work correctly. 14451 # The option is referenced via a variable to avoid confusing sed. 14452 lt_compile=`echo "$ac_compile" | $SED \ 14453 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14454 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14455 -e 's:$: $lt_compiler_flag:'` 14456 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 14457 (eval "$lt_compile" 2>conftest.err) 14458 ac_status=$? 14459 cat conftest.err >&5 14460 echo "$as_me:__oline__: \$? = $ac_status" >&5 14461 if (exit $ac_status) && test -s "$ac_outfile"; then 14462 # The compiler can only warn and ignore the option if not recognized 14463 # So say no if there are warnings other than the usual output. 14464 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14465 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14466 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14467 lt_cv_prog_compiler_rtti_exceptions=yes 14468 fi 14469 fi 14470 $rm conftest* 14471 14472fi 14473{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 14474echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 14475 14476if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 14477 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 14478else 14479 : 14480fi 14481 14482fi 14483 14484lt_prog_compiler_wl= 14485lt_prog_compiler_pic= 14486lt_prog_compiler_static= 14487 14488{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14489echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 14490 14491 if test "$GCC" = yes; then 14492 lt_prog_compiler_wl='-Wl,' 14493 lt_prog_compiler_static='-static' 14494 14495 case $host_os in 14496 aix*) 14497 # All AIX code is PIC. 14498 if test "$host_cpu" = ia64; then 14499 # AIX 5 now supports IA64 processor 14500 lt_prog_compiler_static='-Bstatic' 14501 fi 14502 ;; 14503 14504 amigaos*) 14505 # FIXME: we need at least 68020 code to build shared libraries, but 14506 # adding the `-m68020' flag to GCC prevents building anything better, 14507 # like `-m68040'. 14508 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 14509 ;; 14510 14511 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14512 # PIC is the default for these OSes. 14513 ;; 14514 14515 mingw* | cygwin* | pw32* | os2*) 14516 # This hack is so that the source file can tell whether it is being 14517 # built for inclusion in a dll (and should export symbols for example). 14518 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14519 # (--disable-auto-import) libraries 14520 lt_prog_compiler_pic='-DDLL_EXPORT' 14521 ;; 14522 14523 darwin* | rhapsody*) 14524 # PIC is the default on this platform 14525 # Common symbols not allowed in MH_DYLIB files 14526 lt_prog_compiler_pic='-fno-common' 14527 ;; 14528 14529 interix[3-9]*) 14530 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14531 # Instead, we relocate shared libraries at runtime. 14532 ;; 14533 14534 msdosdjgpp*) 14535 # Just because we use GCC doesn't mean we suddenly get shared libraries 14536 # on systems that don't support them. 14537 lt_prog_compiler_can_build_shared=no 14538 enable_shared=no 14539 ;; 14540 14541 sysv4*MP*) 14542 if test -d /usr/nec; then 14543 lt_prog_compiler_pic=-Kconform_pic 14544 fi 14545 ;; 14546 14547 hpux*) 14548 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14549 # not for PA HP-UX. 14550 case $host_cpu in 14551 hppa*64*|ia64*) 14552 # +Z the default 14553 ;; 14554 *) 14555 lt_prog_compiler_pic='-fPIC' 14556 ;; 14557 esac 14558 ;; 14559 14560 *) 14561 lt_prog_compiler_pic='-fPIC' 14562 ;; 14563 esac 14564 else 14565 # PORTME Check for flag to pass linker flags through the system compiler. 14566 case $host_os in 14567 aix*) 14568 lt_prog_compiler_wl='-Wl,' 14569 if test "$host_cpu" = ia64; then 14570 # AIX 5 now supports IA64 processor 14571 lt_prog_compiler_static='-Bstatic' 14572 else 14573 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 14574 fi 14575 ;; 14576 darwin*) 14577 # PIC is the default on this platform 14578 # Common symbols not allowed in MH_DYLIB files 14579 case $cc_basename in 14580 xlc*) 14581 lt_prog_compiler_pic='-qnocommon' 14582 lt_prog_compiler_wl='-Wl,' 14583 ;; 14584 esac 14585 ;; 14586 14587 mingw* | cygwin* | pw32* | os2*) 14588 # This hack is so that the source file can tell whether it is being 14589 # built for inclusion in a dll (and should export symbols for example). 14590 lt_prog_compiler_pic='-DDLL_EXPORT' 14591 ;; 14592 14593 hpux9* | hpux10* | hpux11*) 14594 lt_prog_compiler_wl='-Wl,' 14595 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14596 # not for PA HP-UX. 14597 case $host_cpu in 14598 hppa*64*|ia64*) 14599 # +Z the default 14600 ;; 14601 *) 14602 lt_prog_compiler_pic='+Z' 14603 ;; 14604 esac 14605 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14606 lt_prog_compiler_static='${wl}-a ${wl}archive' 14607 ;; 14608 14609 irix5* | irix6* | nonstopux*) 14610 lt_prog_compiler_wl='-Wl,' 14611 # PIC (with -KPIC) is the default. 14612 lt_prog_compiler_static='-non_shared' 14613 ;; 14614 14615 newsos6) 14616 lt_prog_compiler_pic='-KPIC' 14617 lt_prog_compiler_static='-Bstatic' 14618 ;; 14619 14620 linux* | k*bsd*-gnu) 14621 case $cc_basename in 14622 icc* | ecc*) 14623 lt_prog_compiler_wl='-Wl,' 14624 lt_prog_compiler_pic='-KPIC' 14625 lt_prog_compiler_static='-static' 14626 ;; 14627 pgcc* | pgf77* | pgf90* | pgf95*) 14628 # Portland Group compilers (*not* the Pentium gcc compiler, 14629 # which looks to be a dead project) 14630 lt_prog_compiler_wl='-Wl,' 14631 lt_prog_compiler_pic='-fpic' 14632 lt_prog_compiler_static='-Bstatic' 14633 ;; 14634 ccc*) 14635 lt_prog_compiler_wl='-Wl,' 14636 # All Alpha code is PIC. 14637 lt_prog_compiler_static='-non_shared' 14638 ;; 14639 *) 14640 case `$CC -V 2>&1 | sed 5q` in 14641 *Sun\ C*) 14642 # Sun C 5.9 14643 lt_prog_compiler_pic='-KPIC' 14644 lt_prog_compiler_static='-Bstatic' 14645 lt_prog_compiler_wl='-Wl,' 14646 ;; 14647 *Sun\ F*) 14648 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14649 lt_prog_compiler_pic='-KPIC' 14650 lt_prog_compiler_static='-Bstatic' 14651 lt_prog_compiler_wl='' 14652 ;; 14653 esac 14654 ;; 14655 esac 14656 ;; 14657 14658 osf3* | osf4* | osf5*) 14659 lt_prog_compiler_wl='-Wl,' 14660 # All OSF/1 code is PIC. 14661 lt_prog_compiler_static='-non_shared' 14662 ;; 14663 14664 rdos*) 14665 lt_prog_compiler_static='-non_shared' 14666 ;; 14667 14668 solaris*) 14669 lt_prog_compiler_pic='-KPIC' 14670 lt_prog_compiler_static='-Bstatic' 14671 case $cc_basename in 14672 f77* | f90* | f95*) 14673 lt_prog_compiler_wl='-Qoption ld ';; 14674 *) 14675 lt_prog_compiler_wl='-Wl,';; 14676 esac 14677 ;; 14678 14679 sunos4*) 14680 lt_prog_compiler_wl='-Qoption ld ' 14681 lt_prog_compiler_pic='-PIC' 14682 lt_prog_compiler_static='-Bstatic' 14683 ;; 14684 14685 sysv4 | sysv4.2uw2* | sysv4.3*) 14686 lt_prog_compiler_wl='-Wl,' 14687 lt_prog_compiler_pic='-KPIC' 14688 lt_prog_compiler_static='-Bstatic' 14689 ;; 14690 14691 sysv4*MP*) 14692 if test -d /usr/nec ;then 14693 lt_prog_compiler_pic='-Kconform_pic' 14694 lt_prog_compiler_static='-Bstatic' 14695 fi 14696 ;; 14697 14698 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14699 lt_prog_compiler_wl='-Wl,' 14700 lt_prog_compiler_pic='-KPIC' 14701 lt_prog_compiler_static='-Bstatic' 14702 ;; 14703 14704 unicos*) 14705 lt_prog_compiler_wl='-Wl,' 14706 lt_prog_compiler_can_build_shared=no 14707 ;; 14708 14709 uts4*) 14710 lt_prog_compiler_pic='-pic' 14711 lt_prog_compiler_static='-Bstatic' 14712 ;; 14713 14714 *) 14715 lt_prog_compiler_can_build_shared=no 14716 ;; 14717 esac 14718 fi 14719 14720{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 14721echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 14722 14723# 14724# Check to make sure the PIC flag actually works. 14725# 14726if test -n "$lt_prog_compiler_pic"; then 14727 14728{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 14729echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 14730if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 14731 echo $ECHO_N "(cached) $ECHO_C" >&6 14732else 14733 lt_cv_prog_compiler_pic_works=no 14734 ac_outfile=conftest.$ac_objext 14735 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14736 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 14737 # Insert the option either (1) after the last *FLAGS variable, or 14738 # (2) before a word containing "conftest.", or (3) at the end. 14739 # Note that $ac_compile itself does not contain backslashes and begins 14740 # with a dollar sign (not a hyphen), so the echo should work correctly. 14741 # The option is referenced via a variable to avoid confusing sed. 14742 lt_compile=`echo "$ac_compile" | $SED \ 14743 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14744 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14745 -e 's:$: $lt_compiler_flag:'` 14746 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 14747 (eval "$lt_compile" 2>conftest.err) 14748 ac_status=$? 14749 cat conftest.err >&5 14750 echo "$as_me:__oline__: \$? = $ac_status" >&5 14751 if (exit $ac_status) && test -s "$ac_outfile"; then 14752 # The compiler can only warn and ignore the option if not recognized 14753 # So say no if there are warnings other than the usual output. 14754 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14755 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14756 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14757 lt_cv_prog_compiler_pic_works=yes 14758 fi 14759 fi 14760 $rm conftest* 14761 14762fi 14763{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 14764echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; } 14765 14766if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 14767 case $lt_prog_compiler_pic in 14768 "" | " "*) ;; 14769 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 14770 esac 14771else 14772 lt_prog_compiler_pic= 14773 lt_prog_compiler_can_build_shared=no 14774fi 14775 14776fi 14777case $host_os in 14778 # For platforms which do not support PIC, -DPIC is meaningless: 14779 *djgpp*) 14780 lt_prog_compiler_pic= 14781 ;; 14782 *) 14783 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 14784 ;; 14785esac 14786 14787# 14788# Check to make sure the static flag actually works. 14789# 14790wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 14791{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14792echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 14793if test "${lt_cv_prog_compiler_static_works+set}" = set; then 14794 echo $ECHO_N "(cached) $ECHO_C" >&6 14795else 14796 lt_cv_prog_compiler_static_works=no 14797 save_LDFLAGS="$LDFLAGS" 14798 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14799 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14800 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14801 # The linker can only warn and ignore the option if not recognized 14802 # So say no if there are warnings 14803 if test -s conftest.err; then 14804 # Append any errors to the config.log. 14805 cat conftest.err 1>&5 14806 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14807 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14808 if diff conftest.exp conftest.er2 >/dev/null; then 14809 lt_cv_prog_compiler_static_works=yes 14810 fi 14811 else 14812 lt_cv_prog_compiler_static_works=yes 14813 fi 14814 fi 14815 $rm -r conftest* 14816 LDFLAGS="$save_LDFLAGS" 14817 14818fi 14819{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 14820echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; } 14821 14822if test x"$lt_cv_prog_compiler_static_works" = xyes; then 14823 : 14824else 14825 lt_prog_compiler_static= 14826fi 14827 14828 14829{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14830echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 14831if test "${lt_cv_prog_compiler_c_o+set}" = set; then 14832 echo $ECHO_N "(cached) $ECHO_C" >&6 14833else 14834 lt_cv_prog_compiler_c_o=no 14835 $rm -r conftest 2>/dev/null 14836 mkdir conftest 14837 cd conftest 14838 mkdir out 14839 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14840 14841 lt_compiler_flag="-o out/conftest2.$ac_objext" 14842 # Insert the option either (1) after the last *FLAGS variable, or 14843 # (2) before a word containing "conftest.", or (3) at the end. 14844 # Note that $ac_compile itself does not contain backslashes and begins 14845 # with a dollar sign (not a hyphen), so the echo should work correctly. 14846 lt_compile=`echo "$ac_compile" | $SED \ 14847 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14848 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14849 -e 's:$: $lt_compiler_flag:'` 14850 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 14851 (eval "$lt_compile" 2>out/conftest.err) 14852 ac_status=$? 14853 cat out/conftest.err >&5 14854 echo "$as_me:__oline__: \$? = $ac_status" >&5 14855 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14856 then 14857 # The compiler can only warn and ignore the option if not recognized 14858 # So say no if there are warnings 14859 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14860 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14861 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14862 lt_cv_prog_compiler_c_o=yes 14863 fi 14864 fi 14865 chmod u+w . 2>&5 14866 $rm conftest* 14867 # SGI C++ compiler will create directory out/ii_files/ for 14868 # template instantiation 14869 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14870 $rm out/* && rmdir out 14871 cd .. 14872 rmdir conftest 14873 $rm conftest* 14874 14875fi 14876{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 14877echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 14878 14879 14880hard_links="nottested" 14881if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 14882 # do not overwrite the value of need_locks provided by the user 14883 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14884echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 14885 hard_links=yes 14886 $rm conftest* 14887 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14888 touch conftest.a 14889 ln conftest.a conftest.b 2>&5 || hard_links=no 14890 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14891 { echo "$as_me:$LINENO: result: $hard_links" >&5 14892echo "${ECHO_T}$hard_links" >&6; } 14893 if test "$hard_links" = no; then 14894 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14895echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14896 need_locks=warn 14897 fi 14898else 14899 need_locks=no 14900fi 14901 14902{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14903echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 14904 14905 runpath_var= 14906 allow_undefined_flag= 14907 enable_shared_with_static_runtimes=no 14908 archive_cmds= 14909 archive_expsym_cmds= 14910 old_archive_From_new_cmds= 14911 old_archive_from_expsyms_cmds= 14912 export_dynamic_flag_spec= 14913 whole_archive_flag_spec= 14914 thread_safe_flag_spec= 14915 hardcode_libdir_flag_spec= 14916 hardcode_libdir_flag_spec_ld= 14917 hardcode_libdir_separator= 14918 hardcode_direct=no 14919 hardcode_minus_L=no 14920 hardcode_shlibpath_var=unsupported 14921 link_all_deplibs=unknown 14922 hardcode_automatic=no 14923 module_cmds= 14924 module_expsym_cmds= 14925 always_export_symbols=no 14926 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14927 # include_expsyms should be a list of space-separated symbols to be *always* 14928 # included in the symbol list 14929 include_expsyms= 14930 # exclude_expsyms can be an extended regexp of symbols to exclude 14931 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14932 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14933 # as well as any symbol that contains `d'. 14934 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14935 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14936 # platforms (ab)use it in PIC code, but their linkers get confused if 14937 # the symbol is explicitly referenced. Since portable code cannot 14938 # rely on this symbol name, it's probably fine to never include it in 14939 # preloaded symbol tables. 14940 # Exclude shared library initialization/finalization symbols. 14941 extract_expsyms_cmds= 14942 # Just being paranoid about ensuring that cc_basename is set. 14943 for cc_temp in $compiler""; do 14944 case $cc_temp in 14945 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14946 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14947 \-*) ;; 14948 *) break;; 14949 esac 14950done 14951cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14952 14953 case $host_os in 14954 cygwin* | mingw* | pw32*) 14955 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14956 # When not using gcc, we currently assume that we are using 14957 # Microsoft Visual C++. 14958 if test "$GCC" != yes; then 14959 with_gnu_ld=no 14960 fi 14961 ;; 14962 interix*) 14963 # we just hope/assume this is gcc and not c89 (= MSVC++) 14964 with_gnu_ld=yes 14965 ;; 14966 openbsd*) 14967 with_gnu_ld=no 14968 ;; 14969 esac 14970 14971 ld_shlibs=yes 14972 if test "$with_gnu_ld" = yes; then 14973 # If archive_cmds runs LD, not CC, wlarc should be empty 14974 wlarc='${wl}' 14975 14976 # Set some defaults for GNU ld with shared library support. These 14977 # are reset later if shared libraries are not supported. Putting them 14978 # here allows them to be overridden if necessary. 14979 runpath_var=LD_RUN_PATH 14980 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 14981 export_dynamic_flag_spec='${wl}--export-dynamic' 14982 # ancient GNU ld didn't support --whole-archive et. al. 14983 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14984 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14985 else 14986 whole_archive_flag_spec= 14987 fi 14988 supports_anon_versioning=no 14989 case `$LD -v 2>/dev/null` in 14990 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14991 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14992 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14993 *\ 2.11.*) ;; # other 2.11 versions 14994 *) supports_anon_versioning=yes ;; 14995 esac 14996 14997 # See if GNU ld supports shared libraries. 14998 case $host_os in 14999 aix[3-9]*) 15000 # On AIX/PPC, the GNU linker is very broken 15001 if test "$host_cpu" != ia64; then 15002 ld_shlibs=no 15003 cat <<EOF 1>&2 15004 15005*** Warning: the GNU linker, at least up to release 2.9.1, is reported 15006*** to be unable to reliably create shared libraries on AIX. 15007*** Therefore, libtool is disabling shared libraries support. If you 15008*** really care for shared libraries, you may want to modify your PATH 15009*** so that a non-GNU linker is found, and then restart. 15010 15011EOF 15012 fi 15013 ;; 15014 15015 amigaos*) 15016 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)' 15017 hardcode_libdir_flag_spec='-L$libdir' 15018 hardcode_minus_L=yes 15019 15020 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 15021 # that the semantics of dynamic libraries on AmigaOS, at least up 15022 # to version 4, is to share data among multiple programs linked 15023 # with the same dynamic library. Since this doesn't match the 15024 # behavior of shared libraries on other platforms, we can't use 15025 # them. 15026 ld_shlibs=no 15027 ;; 15028 15029 beos*) 15030 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15031 allow_undefined_flag=unsupported 15032 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15033 # support --undefined. This deserves some investigation. FIXME 15034 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15035 else 15036 ld_shlibs=no 15037 fi 15038 ;; 15039 15040 cygwin* | mingw* | pw32*) 15041 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 15042 # as there is no search path for DLLs. 15043 hardcode_libdir_flag_spec='-L$libdir' 15044 allow_undefined_flag=unsupported 15045 always_export_symbols=no 15046 enable_shared_with_static_runtimes=yes 15047 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 15048 15049 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 15050 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15051 # If the export-symbols file already is a .def file (1st line 15052 # is EXPORTS), use it as is; otherwise, prepend... 15053 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15054 cp $export_symbols $output_objdir/$soname.def; 15055 else 15056 echo EXPORTS > $output_objdir/$soname.def; 15057 cat $export_symbols >> $output_objdir/$soname.def; 15058 fi~ 15059 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15060 else 15061 ld_shlibs=no 15062 fi 15063 ;; 15064 15065 interix[3-9]*) 15066 hardcode_direct=no 15067 hardcode_shlibpath_var=no 15068 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 15069 export_dynamic_flag_spec='${wl}-E' 15070 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15071 # Instead, shared libraries are loaded at an image base (0x10000000 by 15072 # default) and relocated if they conflict, which is a slow very memory 15073 # consuming and fragmenting process. To avoid this, we pick a random, 15074 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15075 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15076 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15077 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' 15078 ;; 15079 15080 gnu* | linux* | k*bsd*-gnu) 15081 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15082 tmp_addflag= 15083 case $cc_basename,$host_cpu in 15084 pgcc*) # Portland Group C compiler 15085 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' 15086 tmp_addflag=' $pic_flag' 15087 ;; 15088 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 15089 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' 15090 tmp_addflag=' $pic_flag -Mnomain' ;; 15091 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 15092 tmp_addflag=' -i_dynamic' ;; 15093 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 15094 tmp_addflag=' -i_dynamic -nofor_main' ;; 15095 ifc* | ifort*) # Intel Fortran compiler 15096 tmp_addflag=' -nofor_main' ;; 15097 esac 15098 case `$CC -V 2>&1 | sed 5q` in 15099 *Sun\ C*) # Sun C 5.9 15100 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' 15101 tmp_sharedflag='-G' ;; 15102 *Sun\ F*) # Sun Fortran 8.3 15103 tmp_sharedflag='-G' ;; 15104 *) 15105 tmp_sharedflag='-shared' ;; 15106 esac 15107 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15108 15109 if test $supports_anon_versioning = yes; then 15110 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 15111 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15112 $echo "local: *; };" >> $output_objdir/$libname.ver~ 15113 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 15114 fi 15115 else 15116 ld_shlibs=no 15117 fi 15118 ;; 15119 15120 netbsd*) 15121 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15122 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15123 wlarc= 15124 else 15125 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15126 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15127 fi 15128 ;; 15129 15130 solaris*) 15131 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 15132 ld_shlibs=no 15133 cat <<EOF 1>&2 15134 15135*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15136*** create shared libraries on Solaris systems. Therefore, libtool 15137*** is disabling shared libraries support. We urge you to upgrade GNU 15138*** binutils to release 2.9.1 or newer. Another option is to modify 15139*** your PATH or compiler configuration so that the native linker is 15140*** used, and then restart. 15141 15142EOF 15143 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15144 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15145 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15146 else 15147 ld_shlibs=no 15148 fi 15149 ;; 15150 15151 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15152 case `$LD -v 2>&1` in 15153 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15154 ld_shlibs=no 15155 cat <<_LT_EOF 1>&2 15156 15157*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 15158*** reliably create shared libraries on SCO systems. Therefore, libtool 15159*** is disabling shared libraries support. We urge you to upgrade GNU 15160*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15161*** your PATH or compiler configuration so that the native linker is 15162*** used, and then restart. 15163 15164_LT_EOF 15165 ;; 15166 *) 15167 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15168 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 15169 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 15170 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 15171 else 15172 ld_shlibs=no 15173 fi 15174 ;; 15175 esac 15176 ;; 15177 15178 sunos4*) 15179 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15180 wlarc= 15181 hardcode_direct=yes 15182 hardcode_shlibpath_var=no 15183 ;; 15184 15185 *) 15186 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15187 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15188 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15189 else 15190 ld_shlibs=no 15191 fi 15192 ;; 15193 esac 15194 15195 if test "$ld_shlibs" = no; then 15196 runpath_var= 15197 hardcode_libdir_flag_spec= 15198 export_dynamic_flag_spec= 15199 whole_archive_flag_spec= 15200 fi 15201 else 15202 # PORTME fill in a description of your system's linker (not GNU ld) 15203 case $host_os in 15204 aix3*) 15205 allow_undefined_flag=unsupported 15206 always_export_symbols=yes 15207 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' 15208 # Note: this linker hardcodes the directories in LIBPATH if there 15209 # are no directories specified by -L. 15210 hardcode_minus_L=yes 15211 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 15212 # Neither direct hardcoding nor static linking is supported with a 15213 # broken collect2. 15214 hardcode_direct=unsupported 15215 fi 15216 ;; 15217 15218 aix[4-9]*) 15219 if test "$host_cpu" = ia64; then 15220 # On IA64, the linker does run time linking by default, so we don't 15221 # have to do anything special. 15222 aix_use_runtimelinking=no 15223 exp_sym_flag='-Bexport' 15224 no_entry_flag="" 15225 else 15226 # If we're using GNU nm, then we don't want the "-C" option. 15227 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15228 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 15229 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' 15230 else 15231 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' 15232 fi 15233 aix_use_runtimelinking=no 15234 15235 # Test if we are trying to use run time linking or normal 15236 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15237 # need to do runtime linking. 15238 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15239 for ld_flag in $LDFLAGS; do 15240 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15241 aix_use_runtimelinking=yes 15242 break 15243 fi 15244 done 15245 ;; 15246 esac 15247 15248 exp_sym_flag='-bexport' 15249 no_entry_flag='-bnoentry' 15250 fi 15251 15252 # When large executables or shared objects are built, AIX ld can 15253 # have problems creating the table of contents. If linking a library 15254 # or program results in "error TOC overflow" add -mminimal-toc to 15255 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15256 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15257 15258 archive_cmds='' 15259 hardcode_direct=yes 15260 hardcode_libdir_separator=':' 15261 link_all_deplibs=yes 15262 15263 if test "$GCC" = yes; then 15264 case $host_os in aix4.[012]|aix4.[012].*) 15265 # We only want to do this on AIX 4.2 and lower, the check 15266 # below for broken collect2 doesn't work under 4.3+ 15267 collect2name=`${CC} -print-prog-name=collect2` 15268 if test -f "$collect2name" && \ 15269 strings "$collect2name" | grep resolve_lib_name >/dev/null 15270 then 15271 # We have reworked collect2 15272 : 15273 else 15274 # We have old collect2 15275 hardcode_direct=unsupported 15276 # It fails to find uninstalled libraries when the uninstalled 15277 # path is not listed in the libpath. Setting hardcode_minus_L 15278 # to unsupported forces relinking 15279 hardcode_minus_L=yes 15280 hardcode_libdir_flag_spec='-L$libdir' 15281 hardcode_libdir_separator= 15282 fi 15283 ;; 15284 esac 15285 shared_flag='-shared' 15286 if test "$aix_use_runtimelinking" = yes; then 15287 shared_flag="$shared_flag "'${wl}-G' 15288 fi 15289 else 15290 # not using gcc 15291 if test "$host_cpu" = ia64; then 15292 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15293 # chokes on -Wl,-G. The following line is correct: 15294 shared_flag='-G' 15295 else 15296 if test "$aix_use_runtimelinking" = yes; then 15297 shared_flag='${wl}-G' 15298 else 15299 shared_flag='${wl}-bM:SRE' 15300 fi 15301 fi 15302 fi 15303 15304 # It seems that -bexpall does not export symbols beginning with 15305 # underscore (_), so it is better to generate a list of symbols to export. 15306 always_export_symbols=yes 15307 if test "$aix_use_runtimelinking" = yes; then 15308 # Warning - without using the other runtime loading flags (-brtl), 15309 # -berok will link without error, but may produce a broken library. 15310 allow_undefined_flag='-berok' 15311 # Determine the default libpath from the value encoded in an empty executable. 15312 cat >conftest.$ac_ext <<_ACEOF 15313/* confdefs.h. */ 15314_ACEOF 15315cat confdefs.h >>conftest.$ac_ext 15316cat >>conftest.$ac_ext <<_ACEOF 15317/* end confdefs.h. */ 15318 15319int 15320main () 15321{ 15322 15323 ; 15324 return 0; 15325} 15326_ACEOF 15327rm -f conftest.$ac_objext conftest$ac_exeext 15328if { (ac_try="$ac_link" 15329case "(($ac_try" in 15330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15331 *) ac_try_echo=$ac_try;; 15332esac 15333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15334 (eval "$ac_link") 2>conftest.er1 15335 ac_status=$? 15336 grep -v '^ *+' conftest.er1 >conftest.err 15337 rm -f conftest.er1 15338 cat conftest.err >&5 15339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15340 (exit $ac_status); } && { 15341 test -z "$ac_c_werror_flag" || 15342 test ! -s conftest.err 15343 } && test -s conftest$ac_exeext && 15344 $as_test_x conftest$ac_exeext; then 15345 15346lt_aix_libpath_sed=' 15347 /Import File Strings/,/^$/ { 15348 /^0/ { 15349 s/^0 *\(.*\)$/\1/ 15350 p 15351 } 15352 }' 15353aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15354# Check for a 64-bit object if we didn't find anything. 15355if test -z "$aix_libpath"; then 15356 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15357fi 15358else 15359 echo "$as_me: failed program was:" >&5 15360sed 's/^/| /' conftest.$ac_ext >&5 15361 15362 15363fi 15364 15365rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15366 conftest$ac_exeext conftest.$ac_ext 15367if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15368 15369 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 15370 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" 15371 else 15372 if test "$host_cpu" = ia64; then 15373 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 15374 allow_undefined_flag="-z nodefs" 15375 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" 15376 else 15377 # Determine the default libpath from the value encoded in an empty executable. 15378 cat >conftest.$ac_ext <<_ACEOF 15379/* confdefs.h. */ 15380_ACEOF 15381cat confdefs.h >>conftest.$ac_ext 15382cat >>conftest.$ac_ext <<_ACEOF 15383/* end confdefs.h. */ 15384 15385int 15386main () 15387{ 15388 15389 ; 15390 return 0; 15391} 15392_ACEOF 15393rm -f conftest.$ac_objext conftest$ac_exeext 15394if { (ac_try="$ac_link" 15395case "(($ac_try" in 15396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15397 *) ac_try_echo=$ac_try;; 15398esac 15399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15400 (eval "$ac_link") 2>conftest.er1 15401 ac_status=$? 15402 grep -v '^ *+' conftest.er1 >conftest.err 15403 rm -f conftest.er1 15404 cat conftest.err >&5 15405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15406 (exit $ac_status); } && { 15407 test -z "$ac_c_werror_flag" || 15408 test ! -s conftest.err 15409 } && test -s conftest$ac_exeext && 15410 $as_test_x conftest$ac_exeext; then 15411 15412lt_aix_libpath_sed=' 15413 /Import File Strings/,/^$/ { 15414 /^0/ { 15415 s/^0 *\(.*\)$/\1/ 15416 p 15417 } 15418 }' 15419aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15420# Check for a 64-bit object if we didn't find anything. 15421if test -z "$aix_libpath"; then 15422 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15423fi 15424else 15425 echo "$as_me: failed program was:" >&5 15426sed 's/^/| /' conftest.$ac_ext >&5 15427 15428 15429fi 15430 15431rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15432 conftest$ac_exeext conftest.$ac_ext 15433if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15434 15435 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 15436 # Warning - without using the other run time loading flags, 15437 # -berok will link without error, but may produce a broken library. 15438 no_undefined_flag=' ${wl}-bernotok' 15439 allow_undefined_flag=' ${wl}-berok' 15440 # Exported symbols can be pulled into shared objects from archives 15441 whole_archive_flag_spec='$convenience' 15442 archive_cmds_need_lc=yes 15443 # This is similar to how AIX traditionally builds its shared libraries. 15444 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' 15445 fi 15446 fi 15447 ;; 15448 15449 amigaos*) 15450 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)' 15451 hardcode_libdir_flag_spec='-L$libdir' 15452 hardcode_minus_L=yes 15453 # see comment about different semantics on the GNU ld section 15454 ld_shlibs=no 15455 ;; 15456 15457 bsdi[45]*) 15458 export_dynamic_flag_spec=-rdynamic 15459 ;; 15460 15461 cygwin* | mingw* | pw32*) 15462 # When not using gcc, we currently assume that we are using 15463 # Microsoft Visual C++. 15464 # hardcode_libdir_flag_spec is actually meaningless, as there is 15465 # no search path for DLLs. 15466 hardcode_libdir_flag_spec=' ' 15467 allow_undefined_flag=unsupported 15468 # Tell ltmain to make .lib files, not .a files. 15469 libext=lib 15470 # Tell ltmain to make .dll files, not .so files. 15471 shrext_cmds=".dll" 15472 # FIXME: Setting linknames here is a bad hack. 15473 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15474 # The linker will automatically build a .lib file if we build a DLL. 15475 old_archive_From_new_cmds='true' 15476 # FIXME: Should let the user specify the lib program. 15477 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 15478 fix_srcfile_path='`cygpath -w "$srcfile"`' 15479 enable_shared_with_static_runtimes=yes 15480 ;; 15481 15482 darwin* | rhapsody*) 15483 case $host_os in 15484 rhapsody* | darwin1.[012]) 15485 allow_undefined_flag='${wl}-undefined ${wl}suppress' 15486 ;; 15487 *) # Darwin 1.3 on 15488 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15489 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15490 else 15491 case ${MACOSX_DEPLOYMENT_TARGET} in 15492 10.[012]) 15493 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15494 ;; 15495 10.*) 15496 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 15497 ;; 15498 esac 15499 fi 15500 ;; 15501 esac 15502 archive_cmds_need_lc=no 15503 hardcode_direct=no 15504 hardcode_automatic=yes 15505 hardcode_shlibpath_var=unsupported 15506 whole_archive_flag_spec='' 15507 link_all_deplibs=yes 15508 if test "$GCC" = yes ; then 15509 output_verbose_link_cmd='echo' 15510 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 15511 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 15512 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 15513 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 15514 else 15515 case $cc_basename in 15516 xlc*) 15517 output_verbose_link_cmd='echo' 15518 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 15519 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15520 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15521 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}' 15522 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}' 15523 ;; 15524 *) 15525 ld_shlibs=no 15526 ;; 15527 esac 15528 fi 15529 ;; 15530 15531 dgux*) 15532 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15533 hardcode_libdir_flag_spec='-L$libdir' 15534 hardcode_shlibpath_var=no 15535 ;; 15536 15537 freebsd1*) 15538 ld_shlibs=no 15539 ;; 15540 15541 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15542 # support. Future versions do this automatically, but an explicit c++rt0.o 15543 # does not break anything, and helps significantly (at the cost of a little 15544 # extra space). 15545 freebsd2.2*) 15546 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15547 hardcode_libdir_flag_spec='-R$libdir' 15548 hardcode_direct=yes 15549 hardcode_shlibpath_var=no 15550 ;; 15551 15552 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15553 freebsd2*) 15554 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15555 hardcode_direct=yes 15556 hardcode_minus_L=yes 15557 hardcode_shlibpath_var=no 15558 ;; 15559 15560 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15561 freebsd* | dragonfly*) 15562 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15563 hardcode_libdir_flag_spec='-R$libdir' 15564 hardcode_direct=yes 15565 hardcode_shlibpath_var=no 15566 ;; 15567 15568 hpux9*) 15569 if test "$GCC" = yes; then 15570 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' 15571 else 15572 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' 15573 fi 15574 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 15575 hardcode_libdir_separator=: 15576 hardcode_direct=yes 15577 15578 # hardcode_minus_L: Not really in the search PATH, 15579 # but as the default location of the library. 15580 hardcode_minus_L=yes 15581 export_dynamic_flag_spec='${wl}-E' 15582 ;; 15583 15584 hpux10*) 15585 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15586 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15587 else 15588 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15589 fi 15590 if test "$with_gnu_ld" = no; then 15591 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 15592 hardcode_libdir_separator=: 15593 15594 hardcode_direct=yes 15595 export_dynamic_flag_spec='${wl}-E' 15596 15597 # hardcode_minus_L: Not really in the search PATH, 15598 # but as the default location of the library. 15599 hardcode_minus_L=yes 15600 fi 15601 ;; 15602 15603 hpux11*) 15604 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15605 case $host_cpu in 15606 hppa*64*) 15607 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15608 ;; 15609 ia64*) 15610 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15611 ;; 15612 *) 15613 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15614 ;; 15615 esac 15616 else 15617 case $host_cpu in 15618 hppa*64*) 15619 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15620 ;; 15621 ia64*) 15622 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15623 ;; 15624 *) 15625 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15626 ;; 15627 esac 15628 fi 15629 if test "$with_gnu_ld" = no; then 15630 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 15631 hardcode_libdir_separator=: 15632 15633 case $host_cpu in 15634 hppa*64*|ia64*) 15635 hardcode_libdir_flag_spec_ld='+b $libdir' 15636 hardcode_direct=no 15637 hardcode_shlibpath_var=no 15638 ;; 15639 *) 15640 hardcode_direct=yes 15641 export_dynamic_flag_spec='${wl}-E' 15642 15643 # hardcode_minus_L: Not really in the search PATH, 15644 # but as the default location of the library. 15645 hardcode_minus_L=yes 15646 ;; 15647 esac 15648 fi 15649 ;; 15650 15651 irix5* | irix6* | nonstopux*) 15652 if test "$GCC" = yes; then 15653 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' 15654 else 15655 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' 15656 hardcode_libdir_flag_spec_ld='-rpath $libdir' 15657 fi 15658 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15659 hardcode_libdir_separator=: 15660 link_all_deplibs=yes 15661 ;; 15662 15663 netbsd*) 15664 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15665 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15666 else 15667 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15668 fi 15669 hardcode_libdir_flag_spec='-R$libdir' 15670 hardcode_direct=yes 15671 hardcode_shlibpath_var=no 15672 ;; 15673 15674 newsos6) 15675 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15676 hardcode_direct=yes 15677 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15678 hardcode_libdir_separator=: 15679 hardcode_shlibpath_var=no 15680 ;; 15681 15682 openbsd*) 15683 if test -f /usr/libexec/ld.so; then 15684 hardcode_direct=yes 15685 hardcode_shlibpath_var=no 15686 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15687 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15688 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15689 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 15690 export_dynamic_flag_spec='${wl}-E' 15691 else 15692 case $host_os in 15693 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15694 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15695 hardcode_libdir_flag_spec='-R$libdir' 15696 ;; 15697 *) 15698 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15699 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 15700 ;; 15701 esac 15702 fi 15703 else 15704 ld_shlibs=no 15705 fi 15706 ;; 15707 15708 os2*) 15709 hardcode_libdir_flag_spec='-L$libdir' 15710 hardcode_minus_L=yes 15711 allow_undefined_flag=unsupported 15712 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' 15713 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15714 ;; 15715 15716 osf3*) 15717 if test "$GCC" = yes; then 15718 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 15719 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' 15720 else 15721 allow_undefined_flag=' -expect_unresolved \*' 15722 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' 15723 fi 15724 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15725 hardcode_libdir_separator=: 15726 ;; 15727 15728 osf4* | osf5*) # as osf3* with the addition of -msym flag 15729 if test "$GCC" = yes; then 15730 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 15731 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' 15732 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15733 else 15734 allow_undefined_flag=' -expect_unresolved \*' 15735 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' 15736 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 15737 $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' 15738 15739 # Both c and cxx compiler support -rpath directly 15740 hardcode_libdir_flag_spec='-rpath $libdir' 15741 fi 15742 hardcode_libdir_separator=: 15743 ;; 15744 15745 solaris*) 15746 no_undefined_flag=' -z text' 15747 if test "$GCC" = yes; then 15748 wlarc='${wl}' 15749 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15750 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15751 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15752 else 15753 wlarc='' 15754 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15755 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15756 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15757 fi 15758 hardcode_libdir_flag_spec='-R$libdir' 15759 hardcode_shlibpath_var=no 15760 case $host_os in 15761 solaris2.[0-5] | solaris2.[0-5].*) ;; 15762 *) 15763 # The compiler driver will combine and reorder linker options, 15764 # but understands `-z linker_flag'. GCC discards it without `$wl', 15765 # but is careful enough not to reorder. 15766 # Supported since Solaris 2.6 (maybe 2.5.1?) 15767 if test "$GCC" = yes; then 15768 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 15769 else 15770 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 15771 fi 15772 ;; 15773 esac 15774 link_all_deplibs=yes 15775 ;; 15776 15777 sunos4*) 15778 if test "x$host_vendor" = xsequent; then 15779 # Use $CC to link under sequent, because it throws in some extra .o 15780 # files that make .init and .fini sections work. 15781 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15782 else 15783 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15784 fi 15785 hardcode_libdir_flag_spec='-L$libdir' 15786 hardcode_direct=yes 15787 hardcode_minus_L=yes 15788 hardcode_shlibpath_var=no 15789 ;; 15790 15791 sysv4) 15792 case $host_vendor in 15793 sni) 15794 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15795 hardcode_direct=yes # is this really true??? 15796 ;; 15797 siemens) 15798 ## LD is ld it makes a PLAMLIB 15799 ## CC just makes a GrossModule. 15800 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15801 reload_cmds='$CC -r -o $output$reload_objs' 15802 hardcode_direct=no 15803 ;; 15804 motorola) 15805 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15806 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 15807 ;; 15808 esac 15809 runpath_var='LD_RUN_PATH' 15810 hardcode_shlibpath_var=no 15811 ;; 15812 15813 sysv4.3*) 15814 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15815 hardcode_shlibpath_var=no 15816 export_dynamic_flag_spec='-Bexport' 15817 ;; 15818 15819 sysv4*MP*) 15820 if test -d /usr/nec; then 15821 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15822 hardcode_shlibpath_var=no 15823 runpath_var=LD_RUN_PATH 15824 hardcode_runpath_var=yes 15825 ld_shlibs=yes 15826 fi 15827 ;; 15828 15829 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15830 no_undefined_flag='${wl}-z,text' 15831 archive_cmds_need_lc=no 15832 hardcode_shlibpath_var=no 15833 runpath_var='LD_RUN_PATH' 15834 15835 if test "$GCC" = yes; then 15836 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15837 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15838 else 15839 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15840 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15841 fi 15842 ;; 15843 15844 sysv5* | sco3.2v5* | sco5v6*) 15845 # Note: We can NOT use -z defs as we might desire, because we do not 15846 # link with -lc, and that would cause any symbols used from libc to 15847 # always be unresolved, which means just about no library would 15848 # ever link correctly. If we're not using GNU ld we use -z text 15849 # though, which does catch some bad symbols but isn't as heavy-handed 15850 # as -z defs. 15851 no_undefined_flag='${wl}-z,text' 15852 allow_undefined_flag='${wl}-z,nodefs' 15853 archive_cmds_need_lc=no 15854 hardcode_shlibpath_var=no 15855 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15856 hardcode_libdir_separator=':' 15857 link_all_deplibs=yes 15858 export_dynamic_flag_spec='${wl}-Bexport' 15859 runpath_var='LD_RUN_PATH' 15860 15861 if test "$GCC" = yes; then 15862 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15863 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15864 else 15865 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15866 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15867 fi 15868 ;; 15869 15870 uts4*) 15871 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15872 hardcode_libdir_flag_spec='-L$libdir' 15873 hardcode_shlibpath_var=no 15874 ;; 15875 15876 *) 15877 ld_shlibs=no 15878 ;; 15879 esac 15880 fi 15881 15882{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 15883echo "${ECHO_T}$ld_shlibs" >&6; } 15884test "$ld_shlibs" = no && can_build_shared=no 15885 15886# 15887# Do we need to explicitly link libc? 15888# 15889case "x$archive_cmds_need_lc" in 15890x|xyes) 15891 # Assume -lc should be added 15892 archive_cmds_need_lc=yes 15893 15894 if test "$enable_shared" = yes && test "$GCC" = yes; then 15895 case $archive_cmds in 15896 *'~'*) 15897 # FIXME: we may have to deal with multi-command sequences. 15898 ;; 15899 '$CC '*) 15900 # Test whether the compiler implicitly links with -lc since on some 15901 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15902 # to ld, don't add -lc before -lgcc. 15903 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15904echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 15905 $rm conftest* 15906 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15907 15908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15909 (eval $ac_compile) 2>&5 15910 ac_status=$? 15911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15912 (exit $ac_status); } 2>conftest.err; then 15913 soname=conftest 15914 lib=conftest 15915 libobjs=conftest.$ac_objext 15916 deplibs= 15917 wl=$lt_prog_compiler_wl 15918 pic_flag=$lt_prog_compiler_pic 15919 compiler_flags=-v 15920 linker_flags=-v 15921 verstring= 15922 output_objdir=. 15923 libname=conftest 15924 lt_save_allow_undefined_flag=$allow_undefined_flag 15925 allow_undefined_flag= 15926 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15927 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15928 ac_status=$? 15929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15930 (exit $ac_status); } 15931 then 15932 archive_cmds_need_lc=no 15933 else 15934 archive_cmds_need_lc=yes 15935 fi 15936 allow_undefined_flag=$lt_save_allow_undefined_flag 15937 else 15938 cat conftest.err 1>&5 15939 fi 15940 $rm conftest* 15941 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 15942echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 15943 ;; 15944 esac 15945 fi 15946 ;; 15947esac 15948 15949{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15950echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 15951library_names_spec= 15952libname_spec='lib$name' 15953soname_spec= 15954shrext_cmds=".so" 15955postinstall_cmds= 15956postuninstall_cmds= 15957finish_cmds= 15958finish_eval= 15959shlibpath_var= 15960shlibpath_overrides_runpath=unknown 15961version_type=none 15962dynamic_linker="$host_os ld.so" 15963sys_lib_dlsearch_path_spec="/lib /usr/lib" 15964 15965if test "$GCC" = yes; then 15966 case $host_os in 15967 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 15968 *) lt_awk_arg="/^libraries:/" ;; 15969 esac 15970 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15971 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 15972 # if the path contains ";" then we assume it to be the separator 15973 # otherwise default to the standard path separator (i.e. ":") - it is 15974 # assumed that no part of a normal pathname contains ";" but that should 15975 # okay in the real world where ";" in dirpaths is itself problematic. 15976 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 15977 else 15978 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15979 fi 15980 # Ok, now we have the path, separated by spaces, we can step through it 15981 # and add multilib dir if necessary. 15982 lt_tmp_lt_search_path_spec= 15983 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 15984 for lt_sys_path in $lt_search_path_spec; do 15985 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 15986 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 15987 else 15988 test -d "$lt_sys_path" && \ 15989 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 15990 fi 15991 done 15992 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 15993BEGIN {RS=" "; FS="/|\n";} { 15994 lt_foo=""; 15995 lt_count=0; 15996 for (lt_i = NF; lt_i > 0; lt_i--) { 15997 if ($lt_i != "" && $lt_i != ".") { 15998 if ($lt_i == "..") { 15999 lt_count++; 16000 } else { 16001 if (lt_count == 0) { 16002 lt_foo="/" $lt_i lt_foo; 16003 } else { 16004 lt_count--; 16005 } 16006 } 16007 } 16008 } 16009 if (lt_foo != "") { lt_freq[lt_foo]++; } 16010 if (lt_freq[lt_foo] == 1) { print lt_foo; } 16011}'` 16012 sys_lib_search_path_spec=`echo $lt_search_path_spec` 16013else 16014 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16015fi 16016need_lib_prefix=unknown 16017hardcode_into_libs=no 16018 16019# when you set need_version to no, make sure it does not cause -set_version 16020# flags to be left without arguments 16021need_version=unknown 16022 16023case $host_os in 16024aix3*) 16025 version_type=linux 16026 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 16027 shlibpath_var=LIBPATH 16028 16029 # AIX 3 has no versioning support, so we append a major version to the name. 16030 soname_spec='${libname}${release}${shared_ext}$major' 16031 ;; 16032 16033aix[4-9]*) 16034 version_type=linux 16035 need_lib_prefix=no 16036 need_version=no 16037 hardcode_into_libs=yes 16038 if test "$host_cpu" = ia64; then 16039 # AIX 5 supports IA64 16040 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 16041 shlibpath_var=LD_LIBRARY_PATH 16042 else 16043 # With GCC up to 2.95.x, collect2 would create an import file 16044 # for dependence libraries. The import file would start with 16045 # the line `#! .'. This would cause the generated library to 16046 # depend on `.', always an invalid library. This was fixed in 16047 # development snapshots of GCC prior to 3.0. 16048 case $host_os in 16049 aix4 | aix4.[01] | aix4.[01].*) 16050 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16051 echo ' yes ' 16052 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 16053 : 16054 else 16055 can_build_shared=no 16056 fi 16057 ;; 16058 esac 16059 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 16060 # soname into executable. Probably we can add versioning support to 16061 # collect2, so additional links can be useful in future. 16062 if test "$aix_use_runtimelinking" = yes; then 16063 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16064 # instead of lib<name>.a to let people know that these are not 16065 # typical AIX shared libraries. 16066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16067 else 16068 # We preserve .a as extension for shared libraries through AIX4.2 16069 # and later when we are not doing run time linking. 16070 library_names_spec='${libname}${release}.a $libname.a' 16071 soname_spec='${libname}${release}${shared_ext}$major' 16072 fi 16073 shlibpath_var=LIBPATH 16074 fi 16075 ;; 16076 16077amigaos*) 16078 library_names_spec='$libname.ixlibrary $libname.a' 16079 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16080 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' 16081 ;; 16082 16083beos*) 16084 library_names_spec='${libname}${shared_ext}' 16085 dynamic_linker="$host_os ld.so" 16086 shlibpath_var=LIBRARY_PATH 16087 ;; 16088 16089bsdi[45]*) 16090 version_type=linux 16091 need_version=no 16092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16093 soname_spec='${libname}${release}${shared_ext}$major' 16094 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16095 shlibpath_var=LD_LIBRARY_PATH 16096 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16097 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16098 # the default ld.so.conf also contains /usr/contrib/lib and 16099 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16100 # libtool to hard-code these into programs 16101 ;; 16102 16103cygwin* | mingw* | pw32*) 16104 version_type=windows 16105 shrext_cmds=".dll" 16106 need_version=no 16107 need_lib_prefix=no 16108 16109 case $GCC,$host_os in 16110 yes,cygwin* | yes,mingw* | yes,pw32*) 16111 library_names_spec='$libname.dll.a' 16112 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16113 postinstall_cmds='base_file=`basename \${file}`~ 16114 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 16115 dldir=$destdir/`dirname \$dlpath`~ 16116 test -d \$dldir || mkdir -p \$dldir~ 16117 $install_prog $dir/$dlname \$dldir/$dlname~ 16118 chmod a+x \$dldir/$dlname' 16119 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16120 dlpath=$dir/\$dldll~ 16121 $rm \$dlpath' 16122 shlibpath_overrides_runpath=yes 16123 16124 case $host_os in 16125 cygwin*) 16126 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16127 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16128 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 16129 ;; 16130 mingw*) 16131 # MinGW DLLs use traditional 'lib' prefix 16132 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16133 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16134 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 16135 # It is most probably a Windows format PATH printed by 16136 # mingw gcc, but we are running on Cygwin. Gcc prints its search 16137 # path with ; separators, and with drive letters. We can handle the 16138 # drive letters (cygwin fileutils understands them), so leave them, 16139 # especially as we might pass files found there to a mingw objdump, 16140 # which wouldn't understand a cygwinified path. Ahh. 16141 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16142 else 16143 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16144 fi 16145 ;; 16146 pw32*) 16147 # pw32 DLLs use 'pw' prefix rather than 'lib' 16148 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16149 ;; 16150 esac 16151 ;; 16152 16153 *) 16154 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 16155 ;; 16156 esac 16157 dynamic_linker='Win32 ld.exe' 16158 # FIXME: first we should search . and the directory the executable is in 16159 shlibpath_var=PATH 16160 ;; 16161 16162darwin* | rhapsody*) 16163 dynamic_linker="$host_os dyld" 16164 version_type=darwin 16165 need_lib_prefix=no 16166 need_version=no 16167 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16168 soname_spec='${libname}${release}${major}$shared_ext' 16169 shlibpath_overrides_runpath=yes 16170 shlibpath_var=DYLD_LIBRARY_PATH 16171 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16172 16173 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 16174 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16175 ;; 16176 16177dgux*) 16178 version_type=linux 16179 need_lib_prefix=no 16180 need_version=no 16181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16182 soname_spec='${libname}${release}${shared_ext}$major' 16183 shlibpath_var=LD_LIBRARY_PATH 16184 ;; 16185 16186freebsd1*) 16187 dynamic_linker=no 16188 ;; 16189 16190freebsd* | dragonfly*) 16191 # DragonFly does not have aout. When/if they implement a new 16192 # versioning mechanism, adjust this. 16193 if test -x /usr/bin/objformat; then 16194 objformat=`/usr/bin/objformat` 16195 else 16196 case $host_os in 16197 freebsd[123]*) objformat=aout ;; 16198 *) objformat=elf ;; 16199 esac 16200 fi 16201 version_type=freebsd-$objformat 16202 case $version_type in 16203 freebsd-elf*) 16204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16205 need_version=no 16206 need_lib_prefix=no 16207 ;; 16208 freebsd-*) 16209 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 16210 need_version=yes 16211 ;; 16212 esac 16213 shlibpath_var=LD_LIBRARY_PATH 16214 case $host_os in 16215 freebsd2*) 16216 shlibpath_overrides_runpath=yes 16217 ;; 16218 freebsd3.[01]* | freebsdelf3.[01]*) 16219 shlibpath_overrides_runpath=yes 16220 hardcode_into_libs=yes 16221 ;; 16222 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16223 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16224 shlibpath_overrides_runpath=no 16225 hardcode_into_libs=yes 16226 ;; 16227 *) # from 4.6 on, and DragonFly 16228 shlibpath_overrides_runpath=yes 16229 hardcode_into_libs=yes 16230 ;; 16231 esac 16232 ;; 16233 16234gnu*) 16235 version_type=linux 16236 need_lib_prefix=no 16237 need_version=no 16238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16239 soname_spec='${libname}${release}${shared_ext}$major' 16240 shlibpath_var=LD_LIBRARY_PATH 16241 hardcode_into_libs=yes 16242 ;; 16243 16244hpux9* | hpux10* | hpux11*) 16245 # Give a soname corresponding to the major version so that dld.sl refuses to 16246 # link against other versions. 16247 version_type=sunos 16248 need_lib_prefix=no 16249 need_version=no 16250 case $host_cpu in 16251 ia64*) 16252 shrext_cmds='.so' 16253 hardcode_into_libs=yes 16254 dynamic_linker="$host_os dld.so" 16255 shlibpath_var=LD_LIBRARY_PATH 16256 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16258 soname_spec='${libname}${release}${shared_ext}$major' 16259 if test "X$HPUX_IA64_MODE" = X32; then 16260 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16261 else 16262 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16263 fi 16264 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16265 ;; 16266 hppa*64*) 16267 shrext_cmds='.sl' 16268 hardcode_into_libs=yes 16269 dynamic_linker="$host_os dld.sl" 16270 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16271 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16273 soname_spec='${libname}${release}${shared_ext}$major' 16274 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16275 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16276 ;; 16277 *) 16278 shrext_cmds='.sl' 16279 dynamic_linker="$host_os dld.sl" 16280 shlibpath_var=SHLIB_PATH 16281 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16283 soname_spec='${libname}${release}${shared_ext}$major' 16284 ;; 16285 esac 16286 # HP-UX runs *really* slowly unless shared libraries are mode 555. 16287 postinstall_cmds='chmod 555 $lib' 16288 ;; 16289 16290interix[3-9]*) 16291 version_type=linux 16292 need_lib_prefix=no 16293 need_version=no 16294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16295 soname_spec='${libname}${release}${shared_ext}$major' 16296 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16297 shlibpath_var=LD_LIBRARY_PATH 16298 shlibpath_overrides_runpath=no 16299 hardcode_into_libs=yes 16300 ;; 16301 16302irix5* | irix6* | nonstopux*) 16303 case $host_os in 16304 nonstopux*) version_type=nonstopux ;; 16305 *) 16306 if test "$lt_cv_prog_gnu_ld" = yes; then 16307 version_type=linux 16308 else 16309 version_type=irix 16310 fi ;; 16311 esac 16312 need_lib_prefix=no 16313 need_version=no 16314 soname_spec='${libname}${release}${shared_ext}$major' 16315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16316 case $host_os in 16317 irix5* | nonstopux*) 16318 libsuff= shlibsuff= 16319 ;; 16320 *) 16321 case $LD in # libtool.m4 will add one of these switches to LD 16322 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16323 libsuff= shlibsuff= libmagic=32-bit;; 16324 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16325 libsuff=32 shlibsuff=N32 libmagic=N32;; 16326 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16327 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16328 *) libsuff= shlibsuff= libmagic=never-match;; 16329 esac 16330 ;; 16331 esac 16332 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16333 shlibpath_overrides_runpath=no 16334 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16335 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16336 hardcode_into_libs=yes 16337 ;; 16338 16339# No shared lib support for Linux oldld, aout, or coff. 16340linux*oldld* | linux*aout* | linux*coff*) 16341 dynamic_linker=no 16342 ;; 16343 16344# This must be Linux ELF. 16345linux* | k*bsd*-gnu) 16346 version_type=linux 16347 need_lib_prefix=no 16348 need_version=no 16349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16350 soname_spec='${libname}${release}${shared_ext}$major' 16351 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16352 shlibpath_var=LD_LIBRARY_PATH 16353 shlibpath_overrides_runpath=no 16354 # This implies no fast_install, which is unacceptable. 16355 # Some rework will be needed to allow for fast_install 16356 # before this can be enabled. 16357 hardcode_into_libs=yes 16358 16359 # Append ld.so.conf contents to the search path 16360 if test -f /etc/ld.so.conf; then 16361 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' ' '` 16362 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16363 fi 16364 16365 # We used to test for /lib/ld.so.1 and disable shared libraries on 16366 # powerpc, because MkLinux only supported shared libraries with the 16367 # GNU dynamic linker. Since this was broken with cross compilers, 16368 # most powerpc-linux boxes support dynamic linking these days and 16369 # people can always --disable-shared, the test was removed, and we 16370 # assume the GNU/Linux dynamic linker is in use. 16371 dynamic_linker='GNU/Linux ld.so' 16372 ;; 16373 16374netbsd*) 16375 version_type=sunos 16376 need_lib_prefix=no 16377 need_version=no 16378 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16380 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16381 dynamic_linker='NetBSD (a.out) ld.so' 16382 else 16383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16384 soname_spec='${libname}${release}${shared_ext}$major' 16385 dynamic_linker='NetBSD ld.elf_so' 16386 fi 16387 shlibpath_var=LD_LIBRARY_PATH 16388 shlibpath_overrides_runpath=yes 16389 hardcode_into_libs=yes 16390 ;; 16391 16392newsos6) 16393 version_type=linux 16394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16395 shlibpath_var=LD_LIBRARY_PATH 16396 shlibpath_overrides_runpath=yes 16397 ;; 16398 16399nto-qnx*) 16400 version_type=linux 16401 need_lib_prefix=no 16402 need_version=no 16403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16404 soname_spec='${libname}${release}${shared_ext}$major' 16405 shlibpath_var=LD_LIBRARY_PATH 16406 shlibpath_overrides_runpath=yes 16407 ;; 16408 16409openbsd*) 16410 version_type=sunos 16411 sys_lib_dlsearch_path_spec="/usr/lib" 16412 need_lib_prefix=no 16413 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16414 case $host_os in 16415 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16416 *) need_version=no ;; 16417 esac 16418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16419 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16420 shlibpath_var=LD_LIBRARY_PATH 16421 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16422 case $host_os in 16423 openbsd2.[89] | openbsd2.[89].*) 16424 shlibpath_overrides_runpath=no 16425 ;; 16426 *) 16427 shlibpath_overrides_runpath=yes 16428 ;; 16429 esac 16430 else 16431 shlibpath_overrides_runpath=yes 16432 fi 16433 ;; 16434 16435os2*) 16436 libname_spec='$name' 16437 shrext_cmds=".dll" 16438 need_lib_prefix=no 16439 library_names_spec='$libname${shared_ext} $libname.a' 16440 dynamic_linker='OS/2 ld.exe' 16441 shlibpath_var=LIBPATH 16442 ;; 16443 16444osf3* | osf4* | osf5*) 16445 version_type=osf 16446 need_lib_prefix=no 16447 need_version=no 16448 soname_spec='${libname}${release}${shared_ext}$major' 16449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16450 shlibpath_var=LD_LIBRARY_PATH 16451 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16452 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16453 ;; 16454 16455rdos*) 16456 dynamic_linker=no 16457 ;; 16458 16459solaris*) 16460 version_type=linux 16461 need_lib_prefix=no 16462 need_version=no 16463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16464 soname_spec='${libname}${release}${shared_ext}$major' 16465 shlibpath_var=LD_LIBRARY_PATH 16466 shlibpath_overrides_runpath=yes 16467 hardcode_into_libs=yes 16468 # ldd complains unless libraries are executable 16469 postinstall_cmds='chmod +x $lib' 16470 ;; 16471 16472sunos4*) 16473 version_type=sunos 16474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16475 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16476 shlibpath_var=LD_LIBRARY_PATH 16477 shlibpath_overrides_runpath=yes 16478 if test "$with_gnu_ld" = yes; then 16479 need_lib_prefix=no 16480 fi 16481 need_version=yes 16482 ;; 16483 16484sysv4 | sysv4.3*) 16485 version_type=linux 16486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16487 soname_spec='${libname}${release}${shared_ext}$major' 16488 shlibpath_var=LD_LIBRARY_PATH 16489 case $host_vendor in 16490 sni) 16491 shlibpath_overrides_runpath=no 16492 need_lib_prefix=no 16493 export_dynamic_flag_spec='${wl}-Blargedynsym' 16494 runpath_var=LD_RUN_PATH 16495 ;; 16496 siemens) 16497 need_lib_prefix=no 16498 ;; 16499 motorola) 16500 need_lib_prefix=no 16501 need_version=no 16502 shlibpath_overrides_runpath=no 16503 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16504 ;; 16505 esac 16506 ;; 16507 16508sysv4*MP*) 16509 if test -d /usr/nec ;then 16510 version_type=linux 16511 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16512 soname_spec='$libname${shared_ext}.$major' 16513 shlibpath_var=LD_LIBRARY_PATH 16514 fi 16515 ;; 16516 16517sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16518 version_type=freebsd-elf 16519 need_lib_prefix=no 16520 need_version=no 16521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16522 soname_spec='${libname}${release}${shared_ext}$major' 16523 shlibpath_var=LD_LIBRARY_PATH 16524 hardcode_into_libs=yes 16525 if test "$with_gnu_ld" = yes; then 16526 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16527 shlibpath_overrides_runpath=no 16528 else 16529 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16530 shlibpath_overrides_runpath=yes 16531 case $host_os in 16532 sco3.2v5*) 16533 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16534 ;; 16535 esac 16536 fi 16537 sys_lib_dlsearch_path_spec='/usr/lib' 16538 ;; 16539 16540uts4*) 16541 version_type=linux 16542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16543 soname_spec='${libname}${release}${shared_ext}$major' 16544 shlibpath_var=LD_LIBRARY_PATH 16545 ;; 16546 16547*) 16548 dynamic_linker=no 16549 ;; 16550esac 16551{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16552echo "${ECHO_T}$dynamic_linker" >&6; } 16553test "$dynamic_linker" = no && can_build_shared=no 16554 16555if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 16556 echo $ECHO_N "(cached) $ECHO_C" >&6 16557else 16558 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 16559fi 16560 16561sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 16562if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 16563 echo $ECHO_N "(cached) $ECHO_C" >&6 16564else 16565 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 16566fi 16567 16568sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 16569 16570variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16571if test "$GCC" = yes; then 16572 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16573fi 16574 16575{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16576echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 16577hardcode_action= 16578if test -n "$hardcode_libdir_flag_spec" || \ 16579 test -n "$runpath_var" || \ 16580 test "X$hardcode_automatic" = "Xyes" ; then 16581 16582 # We can hardcode non-existant directories. 16583 if test "$hardcode_direct" != no && 16584 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16585 # have to relink, otherwise we might link with an installed library 16586 # when we should be linking with a yet-to-be-installed one 16587 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 16588 test "$hardcode_minus_L" != no; then 16589 # Linking always hardcodes the temporary library directory. 16590 hardcode_action=relink 16591 else 16592 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16593 hardcode_action=immediate 16594 fi 16595else 16596 # We cannot hardcode anything, or else we can only hardcode existing 16597 # directories. 16598 hardcode_action=unsupported 16599fi 16600{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 16601echo "${ECHO_T}$hardcode_action" >&6; } 16602 16603if test "$hardcode_action" = relink; then 16604 # Fast installation is not supported 16605 enable_fast_install=no 16606elif test "$shlibpath_overrides_runpath" = yes || 16607 test "$enable_shared" = no; then 16608 # Fast installation is not necessary 16609 enable_fast_install=needless 16610fi 16611 16612striplib= 16613old_striplib= 16614{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 16615echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 16616if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 16617 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 16618 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 16619 { echo "$as_me:$LINENO: result: yes" >&5 16620echo "${ECHO_T}yes" >&6; } 16621else 16622# FIXME - insert some real tests, host_os isn't really good enough 16623 case $host_os in 16624 darwin*) 16625 if test -n "$STRIP" ; then 16626 striplib="$STRIP -x" 16627 old_striplib="$STRIP -S" 16628 { echo "$as_me:$LINENO: result: yes" >&5 16629echo "${ECHO_T}yes" >&6; } 16630 else 16631 { echo "$as_me:$LINENO: result: no" >&5 16632echo "${ECHO_T}no" >&6; } 16633fi 16634 ;; 16635 *) 16636 { echo "$as_me:$LINENO: result: no" >&5 16637echo "${ECHO_T}no" >&6; } 16638 ;; 16639 esac 16640fi 16641 16642if test "x$enable_dlopen" != xyes; then 16643 enable_dlopen=unknown 16644 enable_dlopen_self=unknown 16645 enable_dlopen_self_static=unknown 16646else 16647 lt_cv_dlopen=no 16648 lt_cv_dlopen_libs= 16649 16650 case $host_os in 16651 beos*) 16652 lt_cv_dlopen="load_add_on" 16653 lt_cv_dlopen_libs= 16654 lt_cv_dlopen_self=yes 16655 ;; 16656 16657 mingw* | pw32*) 16658 lt_cv_dlopen="LoadLibrary" 16659 lt_cv_dlopen_libs= 16660 ;; 16661 16662 cygwin*) 16663 lt_cv_dlopen="dlopen" 16664 lt_cv_dlopen_libs= 16665 ;; 16666 16667 darwin*) 16668 # if libdl is installed we need to link against it 16669 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 16670echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 16671if test "${ac_cv_lib_dl_dlopen+set}" = set; then 16672 echo $ECHO_N "(cached) $ECHO_C" >&6 16673else 16674 ac_check_lib_save_LIBS=$LIBS 16675LIBS="-ldl $LIBS" 16676cat >conftest.$ac_ext <<_ACEOF 16677/* confdefs.h. */ 16678_ACEOF 16679cat confdefs.h >>conftest.$ac_ext 16680cat >>conftest.$ac_ext <<_ACEOF 16681/* end confdefs.h. */ 16682 16683/* Override any GCC internal prototype to avoid an error. 16684 Use char because int might match the return type of a GCC 16685 builtin and then its argument prototype would still apply. */ 16686#ifdef __cplusplus 16687extern "C" 16688#endif 16689char dlopen (); 16690int 16691main () 16692{ 16693return dlopen (); 16694 ; 16695 return 0; 16696} 16697_ACEOF 16698rm -f conftest.$ac_objext conftest$ac_exeext 16699if { (ac_try="$ac_link" 16700case "(($ac_try" in 16701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16702 *) ac_try_echo=$ac_try;; 16703esac 16704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16705 (eval "$ac_link") 2>conftest.er1 16706 ac_status=$? 16707 grep -v '^ *+' conftest.er1 >conftest.err 16708 rm -f conftest.er1 16709 cat conftest.err >&5 16710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16711 (exit $ac_status); } && { 16712 test -z "$ac_c_werror_flag" || 16713 test ! -s conftest.err 16714 } && test -s conftest$ac_exeext && 16715 $as_test_x conftest$ac_exeext; then 16716 ac_cv_lib_dl_dlopen=yes 16717else 16718 echo "$as_me: failed program was:" >&5 16719sed 's/^/| /' conftest.$ac_ext >&5 16720 16721 ac_cv_lib_dl_dlopen=no 16722fi 16723 16724rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16725 conftest$ac_exeext conftest.$ac_ext 16726LIBS=$ac_check_lib_save_LIBS 16727fi 16728{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 16729echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 16730if test $ac_cv_lib_dl_dlopen = yes; then 16731 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 16732else 16733 16734 lt_cv_dlopen="dyld" 16735 lt_cv_dlopen_libs= 16736 lt_cv_dlopen_self=yes 16737 16738fi 16739 16740 ;; 16741 16742 *) 16743 { echo "$as_me:$LINENO: checking for shl_load" >&5 16744echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 16745if test "${ac_cv_func_shl_load+set}" = set; then 16746 echo $ECHO_N "(cached) $ECHO_C" >&6 16747else 16748 cat >conftest.$ac_ext <<_ACEOF 16749/* confdefs.h. */ 16750_ACEOF 16751cat confdefs.h >>conftest.$ac_ext 16752cat >>conftest.$ac_ext <<_ACEOF 16753/* end confdefs.h. */ 16754/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 16755 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 16756#define shl_load innocuous_shl_load 16757 16758/* System header to define __stub macros and hopefully few prototypes, 16759 which can conflict with char shl_load (); below. 16760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16761 <limits.h> exists even on freestanding compilers. */ 16762 16763#ifdef __STDC__ 16764# include <limits.h> 16765#else 16766# include <assert.h> 16767#endif 16768 16769#undef shl_load 16770 16771/* Override any GCC internal prototype to avoid an error. 16772 Use char because int might match the return type of a GCC 16773 builtin and then its argument prototype would still apply. */ 16774#ifdef __cplusplus 16775extern "C" 16776#endif 16777char shl_load (); 16778/* The GNU C library defines this for functions which it implements 16779 to always fail with ENOSYS. Some functions are actually named 16780 something starting with __ and the normal name is an alias. */ 16781#if defined __stub_shl_load || defined __stub___shl_load 16782choke me 16783#endif 16784 16785int 16786main () 16787{ 16788return shl_load (); 16789 ; 16790 return 0; 16791} 16792_ACEOF 16793rm -f conftest.$ac_objext conftest$ac_exeext 16794if { (ac_try="$ac_link" 16795case "(($ac_try" in 16796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16797 *) ac_try_echo=$ac_try;; 16798esac 16799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16800 (eval "$ac_link") 2>conftest.er1 16801 ac_status=$? 16802 grep -v '^ *+' conftest.er1 >conftest.err 16803 rm -f conftest.er1 16804 cat conftest.err >&5 16805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16806 (exit $ac_status); } && { 16807 test -z "$ac_c_werror_flag" || 16808 test ! -s conftest.err 16809 } && test -s conftest$ac_exeext && 16810 $as_test_x conftest$ac_exeext; then 16811 ac_cv_func_shl_load=yes 16812else 16813 echo "$as_me: failed program was:" >&5 16814sed 's/^/| /' conftest.$ac_ext >&5 16815 16816 ac_cv_func_shl_load=no 16817fi 16818 16819rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16820 conftest$ac_exeext conftest.$ac_ext 16821fi 16822{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 16823echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 16824if test $ac_cv_func_shl_load = yes; then 16825 lt_cv_dlopen="shl_load" 16826else 16827 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 16828echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 16829if test "${ac_cv_lib_dld_shl_load+set}" = set; then 16830 echo $ECHO_N "(cached) $ECHO_C" >&6 16831else 16832 ac_check_lib_save_LIBS=$LIBS 16833LIBS="-ldld $LIBS" 16834cat >conftest.$ac_ext <<_ACEOF 16835/* confdefs.h. */ 16836_ACEOF 16837cat confdefs.h >>conftest.$ac_ext 16838cat >>conftest.$ac_ext <<_ACEOF 16839/* end confdefs.h. */ 16840 16841/* Override any GCC internal prototype to avoid an error. 16842 Use char because int might match the return type of a GCC 16843 builtin and then its argument prototype would still apply. */ 16844#ifdef __cplusplus 16845extern "C" 16846#endif 16847char shl_load (); 16848int 16849main () 16850{ 16851return shl_load (); 16852 ; 16853 return 0; 16854} 16855_ACEOF 16856rm -f conftest.$ac_objext conftest$ac_exeext 16857if { (ac_try="$ac_link" 16858case "(($ac_try" in 16859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16860 *) ac_try_echo=$ac_try;; 16861esac 16862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16863 (eval "$ac_link") 2>conftest.er1 16864 ac_status=$? 16865 grep -v '^ *+' conftest.er1 >conftest.err 16866 rm -f conftest.er1 16867 cat conftest.err >&5 16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16869 (exit $ac_status); } && { 16870 test -z "$ac_c_werror_flag" || 16871 test ! -s conftest.err 16872 } && test -s conftest$ac_exeext && 16873 $as_test_x conftest$ac_exeext; then 16874 ac_cv_lib_dld_shl_load=yes 16875else 16876 echo "$as_me: failed program was:" >&5 16877sed 's/^/| /' conftest.$ac_ext >&5 16878 16879 ac_cv_lib_dld_shl_load=no 16880fi 16881 16882rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16883 conftest$ac_exeext conftest.$ac_ext 16884LIBS=$ac_check_lib_save_LIBS 16885fi 16886{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 16887echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 16888if test $ac_cv_lib_dld_shl_load = yes; then 16889 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 16890else 16891 { echo "$as_me:$LINENO: checking for dlopen" >&5 16892echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 16893if test "${ac_cv_func_dlopen+set}" = set; then 16894 echo $ECHO_N "(cached) $ECHO_C" >&6 16895else 16896 cat >conftest.$ac_ext <<_ACEOF 16897/* confdefs.h. */ 16898_ACEOF 16899cat confdefs.h >>conftest.$ac_ext 16900cat >>conftest.$ac_ext <<_ACEOF 16901/* end confdefs.h. */ 16902/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 16903 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 16904#define dlopen innocuous_dlopen 16905 16906/* System header to define __stub macros and hopefully few prototypes, 16907 which can conflict with char dlopen (); below. 16908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16909 <limits.h> exists even on freestanding compilers. */ 16910 16911#ifdef __STDC__ 16912# include <limits.h> 16913#else 16914# include <assert.h> 16915#endif 16916 16917#undef dlopen 16918 16919/* Override any GCC internal prototype to avoid an error. 16920 Use char because int might match the return type of a GCC 16921 builtin and then its argument prototype would still apply. */ 16922#ifdef __cplusplus 16923extern "C" 16924#endif 16925char dlopen (); 16926/* The GNU C library defines this for functions which it implements 16927 to always fail with ENOSYS. Some functions are actually named 16928 something starting with __ and the normal name is an alias. */ 16929#if defined __stub_dlopen || defined __stub___dlopen 16930choke me 16931#endif 16932 16933int 16934main () 16935{ 16936return dlopen (); 16937 ; 16938 return 0; 16939} 16940_ACEOF 16941rm -f conftest.$ac_objext conftest$ac_exeext 16942if { (ac_try="$ac_link" 16943case "(($ac_try" in 16944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16945 *) ac_try_echo=$ac_try;; 16946esac 16947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16948 (eval "$ac_link") 2>conftest.er1 16949 ac_status=$? 16950 grep -v '^ *+' conftest.er1 >conftest.err 16951 rm -f conftest.er1 16952 cat conftest.err >&5 16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16954 (exit $ac_status); } && { 16955 test -z "$ac_c_werror_flag" || 16956 test ! -s conftest.err 16957 } && test -s conftest$ac_exeext && 16958 $as_test_x conftest$ac_exeext; then 16959 ac_cv_func_dlopen=yes 16960else 16961 echo "$as_me: failed program was:" >&5 16962sed 's/^/| /' conftest.$ac_ext >&5 16963 16964 ac_cv_func_dlopen=no 16965fi 16966 16967rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16968 conftest$ac_exeext conftest.$ac_ext 16969fi 16970{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 16971echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 16972if test $ac_cv_func_dlopen = yes; then 16973 lt_cv_dlopen="dlopen" 16974else 16975 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 16976echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 16977if test "${ac_cv_lib_dl_dlopen+set}" = set; then 16978 echo $ECHO_N "(cached) $ECHO_C" >&6 16979else 16980 ac_check_lib_save_LIBS=$LIBS 16981LIBS="-ldl $LIBS" 16982cat >conftest.$ac_ext <<_ACEOF 16983/* confdefs.h. */ 16984_ACEOF 16985cat confdefs.h >>conftest.$ac_ext 16986cat >>conftest.$ac_ext <<_ACEOF 16987/* end confdefs.h. */ 16988 16989/* Override any GCC internal prototype to avoid an error. 16990 Use char because int might match the return type of a GCC 16991 builtin and then its argument prototype would still apply. */ 16992#ifdef __cplusplus 16993extern "C" 16994#endif 16995char dlopen (); 16996int 16997main () 16998{ 16999return dlopen (); 17000 ; 17001 return 0; 17002} 17003_ACEOF 17004rm -f conftest.$ac_objext conftest$ac_exeext 17005if { (ac_try="$ac_link" 17006case "(($ac_try" in 17007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17008 *) ac_try_echo=$ac_try;; 17009esac 17010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17011 (eval "$ac_link") 2>conftest.er1 17012 ac_status=$? 17013 grep -v '^ *+' conftest.er1 >conftest.err 17014 rm -f conftest.er1 17015 cat conftest.err >&5 17016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17017 (exit $ac_status); } && { 17018 test -z "$ac_c_werror_flag" || 17019 test ! -s conftest.err 17020 } && test -s conftest$ac_exeext && 17021 $as_test_x conftest$ac_exeext; then 17022 ac_cv_lib_dl_dlopen=yes 17023else 17024 echo "$as_me: failed program was:" >&5 17025sed 's/^/| /' conftest.$ac_ext >&5 17026 17027 ac_cv_lib_dl_dlopen=no 17028fi 17029 17030rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17031 conftest$ac_exeext conftest.$ac_ext 17032LIBS=$ac_check_lib_save_LIBS 17033fi 17034{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 17035echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 17036if test $ac_cv_lib_dl_dlopen = yes; then 17037 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 17038else 17039 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 17040echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 17041if test "${ac_cv_lib_svld_dlopen+set}" = set; then 17042 echo $ECHO_N "(cached) $ECHO_C" >&6 17043else 17044 ac_check_lib_save_LIBS=$LIBS 17045LIBS="-lsvld $LIBS" 17046cat >conftest.$ac_ext <<_ACEOF 17047/* confdefs.h. */ 17048_ACEOF 17049cat confdefs.h >>conftest.$ac_ext 17050cat >>conftest.$ac_ext <<_ACEOF 17051/* end confdefs.h. */ 17052 17053/* Override any GCC internal prototype to avoid an error. 17054 Use char because int might match the return type of a GCC 17055 builtin and then its argument prototype would still apply. */ 17056#ifdef __cplusplus 17057extern "C" 17058#endif 17059char dlopen (); 17060int 17061main () 17062{ 17063return dlopen (); 17064 ; 17065 return 0; 17066} 17067_ACEOF 17068rm -f conftest.$ac_objext conftest$ac_exeext 17069if { (ac_try="$ac_link" 17070case "(($ac_try" in 17071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17072 *) ac_try_echo=$ac_try;; 17073esac 17074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17075 (eval "$ac_link") 2>conftest.er1 17076 ac_status=$? 17077 grep -v '^ *+' conftest.er1 >conftest.err 17078 rm -f conftest.er1 17079 cat conftest.err >&5 17080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17081 (exit $ac_status); } && { 17082 test -z "$ac_c_werror_flag" || 17083 test ! -s conftest.err 17084 } && test -s conftest$ac_exeext && 17085 $as_test_x conftest$ac_exeext; then 17086 ac_cv_lib_svld_dlopen=yes 17087else 17088 echo "$as_me: failed program was:" >&5 17089sed 's/^/| /' conftest.$ac_ext >&5 17090 17091 ac_cv_lib_svld_dlopen=no 17092fi 17093 17094rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17095 conftest$ac_exeext conftest.$ac_ext 17096LIBS=$ac_check_lib_save_LIBS 17097fi 17098{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 17099echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 17100if test $ac_cv_lib_svld_dlopen = yes; then 17101 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 17102else 17103 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 17104echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 17105if test "${ac_cv_lib_dld_dld_link+set}" = set; then 17106 echo $ECHO_N "(cached) $ECHO_C" >&6 17107else 17108 ac_check_lib_save_LIBS=$LIBS 17109LIBS="-ldld $LIBS" 17110cat >conftest.$ac_ext <<_ACEOF 17111/* confdefs.h. */ 17112_ACEOF 17113cat confdefs.h >>conftest.$ac_ext 17114cat >>conftest.$ac_ext <<_ACEOF 17115/* end confdefs.h. */ 17116 17117/* Override any GCC internal prototype to avoid an error. 17118 Use char because int might match the return type of a GCC 17119 builtin and then its argument prototype would still apply. */ 17120#ifdef __cplusplus 17121extern "C" 17122#endif 17123char dld_link (); 17124int 17125main () 17126{ 17127return dld_link (); 17128 ; 17129 return 0; 17130} 17131_ACEOF 17132rm -f conftest.$ac_objext conftest$ac_exeext 17133if { (ac_try="$ac_link" 17134case "(($ac_try" in 17135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17136 *) ac_try_echo=$ac_try;; 17137esac 17138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17139 (eval "$ac_link") 2>conftest.er1 17140 ac_status=$? 17141 grep -v '^ *+' conftest.er1 >conftest.err 17142 rm -f conftest.er1 17143 cat conftest.err >&5 17144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17145 (exit $ac_status); } && { 17146 test -z "$ac_c_werror_flag" || 17147 test ! -s conftest.err 17148 } && test -s conftest$ac_exeext && 17149 $as_test_x conftest$ac_exeext; then 17150 ac_cv_lib_dld_dld_link=yes 17151else 17152 echo "$as_me: failed program was:" >&5 17153sed 's/^/| /' conftest.$ac_ext >&5 17154 17155 ac_cv_lib_dld_dld_link=no 17156fi 17157 17158rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17159 conftest$ac_exeext conftest.$ac_ext 17160LIBS=$ac_check_lib_save_LIBS 17161fi 17162{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 17163echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 17164if test $ac_cv_lib_dld_dld_link = yes; then 17165 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 17166fi 17167 17168 17169fi 17170 17171 17172fi 17173 17174 17175fi 17176 17177 17178fi 17179 17180 17181fi 17182 17183 ;; 17184 esac 17185 17186 if test "x$lt_cv_dlopen" != xno; then 17187 enable_dlopen=yes 17188 else 17189 enable_dlopen=no 17190 fi 17191 17192 case $lt_cv_dlopen in 17193 dlopen) 17194 save_CPPFLAGS="$CPPFLAGS" 17195 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 17196 17197 save_LDFLAGS="$LDFLAGS" 17198 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 17199 17200 save_LIBS="$LIBS" 17201 LIBS="$lt_cv_dlopen_libs $LIBS" 17202 17203 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 17204echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 17205if test "${lt_cv_dlopen_self+set}" = set; then 17206 echo $ECHO_N "(cached) $ECHO_C" >&6 17207else 17208 if test "$cross_compiling" = yes; then : 17209 lt_cv_dlopen_self=cross 17210else 17211 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 17212 lt_status=$lt_dlunknown 17213 cat > conftest.$ac_ext <<EOF 17214#line __oline__ "configure" 17215#include "confdefs.h" 17216 17217#if HAVE_DLFCN_H 17218#include <dlfcn.h> 17219#endif 17220 17221#include <stdio.h> 17222 17223#ifdef RTLD_GLOBAL 17224# define LT_DLGLOBAL RTLD_GLOBAL 17225#else 17226# ifdef DL_GLOBAL 17227# define LT_DLGLOBAL DL_GLOBAL 17228# else 17229# define LT_DLGLOBAL 0 17230# endif 17231#endif 17232 17233/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 17234 find out it does not work in some platform. */ 17235#ifndef LT_DLLAZY_OR_NOW 17236# ifdef RTLD_LAZY 17237# define LT_DLLAZY_OR_NOW RTLD_LAZY 17238# else 17239# ifdef DL_LAZY 17240# define LT_DLLAZY_OR_NOW DL_LAZY 17241# else 17242# ifdef RTLD_NOW 17243# define LT_DLLAZY_OR_NOW RTLD_NOW 17244# else 17245# ifdef DL_NOW 17246# define LT_DLLAZY_OR_NOW DL_NOW 17247# else 17248# define LT_DLLAZY_OR_NOW 0 17249# endif 17250# endif 17251# endif 17252# endif 17253#endif 17254 17255#ifdef __cplusplus 17256extern "C" void exit (int); 17257#endif 17258 17259void fnord() { int i=42;} 17260int main () 17261{ 17262 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 17263 int status = $lt_dlunknown; 17264 17265 if (self) 17266 { 17267 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 17268 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 17269 /* dlclose (self); */ 17270 } 17271 else 17272 puts (dlerror ()); 17273 17274 exit (status); 17275} 17276EOF 17277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17278 (eval $ac_link) 2>&5 17279 ac_status=$? 17280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17281 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 17282 (./conftest; exit; ) >&5 2>/dev/null 17283 lt_status=$? 17284 case x$lt_status in 17285 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 17286 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 17287 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 17288 esac 17289 else : 17290 # compilation failed 17291 lt_cv_dlopen_self=no 17292 fi 17293fi 17294rm -fr conftest* 17295 17296 17297fi 17298{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 17299echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 17300 17301 if test "x$lt_cv_dlopen_self" = xyes; then 17302 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 17303 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 17304echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 17305if test "${lt_cv_dlopen_self_static+set}" = set; then 17306 echo $ECHO_N "(cached) $ECHO_C" >&6 17307else 17308 if test "$cross_compiling" = yes; then : 17309 lt_cv_dlopen_self_static=cross 17310else 17311 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 17312 lt_status=$lt_dlunknown 17313 cat > conftest.$ac_ext <<EOF 17314#line __oline__ "configure" 17315#include "confdefs.h" 17316 17317#if HAVE_DLFCN_H 17318#include <dlfcn.h> 17319#endif 17320 17321#include <stdio.h> 17322 17323#ifdef RTLD_GLOBAL 17324# define LT_DLGLOBAL RTLD_GLOBAL 17325#else 17326# ifdef DL_GLOBAL 17327# define LT_DLGLOBAL DL_GLOBAL 17328# else 17329# define LT_DLGLOBAL 0 17330# endif 17331#endif 17332 17333/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 17334 find out it does not work in some platform. */ 17335#ifndef LT_DLLAZY_OR_NOW 17336# ifdef RTLD_LAZY 17337# define LT_DLLAZY_OR_NOW RTLD_LAZY 17338# else 17339# ifdef DL_LAZY 17340# define LT_DLLAZY_OR_NOW DL_LAZY 17341# else 17342# ifdef RTLD_NOW 17343# define LT_DLLAZY_OR_NOW RTLD_NOW 17344# else 17345# ifdef DL_NOW 17346# define LT_DLLAZY_OR_NOW DL_NOW 17347# else 17348# define LT_DLLAZY_OR_NOW 0 17349# endif 17350# endif 17351# endif 17352# endif 17353#endif 17354 17355#ifdef __cplusplus 17356extern "C" void exit (int); 17357#endif 17358 17359void fnord() { int i=42;} 17360int main () 17361{ 17362 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 17363 int status = $lt_dlunknown; 17364 17365 if (self) 17366 { 17367 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 17368 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 17369 /* dlclose (self); */ 17370 } 17371 else 17372 puts (dlerror ()); 17373 17374 exit (status); 17375} 17376EOF 17377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17378 (eval $ac_link) 2>&5 17379 ac_status=$? 17380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17381 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 17382 (./conftest; exit; ) >&5 2>/dev/null 17383 lt_status=$? 17384 case x$lt_status in 17385 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 17386 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 17387 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 17388 esac 17389 else : 17390 # compilation failed 17391 lt_cv_dlopen_self_static=no 17392 fi 17393fi 17394rm -fr conftest* 17395 17396 17397fi 17398{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 17399echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 17400 fi 17401 17402 CPPFLAGS="$save_CPPFLAGS" 17403 LDFLAGS="$save_LDFLAGS" 17404 LIBS="$save_LIBS" 17405 ;; 17406 esac 17407 17408 case $lt_cv_dlopen_self in 17409 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 17410 *) enable_dlopen_self=unknown ;; 17411 esac 17412 17413 case $lt_cv_dlopen_self_static in 17414 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 17415 *) enable_dlopen_self_static=unknown ;; 17416 esac 17417fi 17418 17419 17420# Report which library types will actually be built 17421{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 17422echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 17423{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 17424echo "${ECHO_T}$can_build_shared" >&6; } 17425 17426{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 17427echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 17428test "$can_build_shared" = "no" && enable_shared=no 17429 17430# On AIX, shared libraries and static libraries use the same namespace, and 17431# are all built from PIC. 17432case $host_os in 17433aix3*) 17434 test "$enable_shared" = yes && enable_static=no 17435 if test -n "$RANLIB"; then 17436 archive_cmds="$archive_cmds~\$RANLIB \$lib" 17437 postinstall_cmds='$RANLIB $lib' 17438 fi 17439 ;; 17440 17441aix[4-9]*) 17442 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 17443 test "$enable_shared" = yes && enable_static=no 17444 fi 17445 ;; 17446esac 17447{ echo "$as_me:$LINENO: result: $enable_shared" >&5 17448echo "${ECHO_T}$enable_shared" >&6; } 17449 17450{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 17451echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 17452# Make sure either enable_shared or enable_static is yes. 17453test "$enable_shared" = yes || enable_static=yes 17454{ echo "$as_me:$LINENO: result: $enable_static" >&5 17455echo "${ECHO_T}$enable_static" >&6; } 17456 17457# The else clause should only fire when bootstrapping the 17458# libtool distribution, otherwise you forgot to ship ltmain.sh 17459# with your package, and you will get complaints that there are 17460# no rules to generate ltmain.sh. 17461if test -f "$ltmain"; then 17462 # See if we are running on zsh, and set the options which allow our commands through 17463 # without removal of \ escapes. 17464 if test -n "${ZSH_VERSION+set}" ; then 17465 setopt NO_GLOB_SUBST 17466 fi 17467 # Now quote all the things that may contain metacharacters while being 17468 # careful not to overquote the AC_SUBSTed values. We take copies of the 17469 # variables and quote the copies for generation of the libtool script. 17470 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 17471 SED SHELL STRIP \ 17472 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 17473 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 17474 deplibs_check_method reload_flag reload_cmds need_locks \ 17475 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 17476 lt_cv_sys_global_symbol_to_c_name_address \ 17477 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 17478 old_postinstall_cmds old_postuninstall_cmds \ 17479 compiler \ 17480 CC \ 17481 LD \ 17482 lt_prog_compiler_wl \ 17483 lt_prog_compiler_pic \ 17484 lt_prog_compiler_static \ 17485 lt_prog_compiler_no_builtin_flag \ 17486 export_dynamic_flag_spec \ 17487 thread_safe_flag_spec \ 17488 whole_archive_flag_spec \ 17489 enable_shared_with_static_runtimes \ 17490 old_archive_cmds \ 17491 old_archive_from_new_cmds \ 17492 predep_objects \ 17493 postdep_objects \ 17494 predeps \ 17495 postdeps \ 17496 compiler_lib_search_path \ 17497 compiler_lib_search_dirs \ 17498 archive_cmds \ 17499 archive_expsym_cmds \ 17500 postinstall_cmds \ 17501 postuninstall_cmds \ 17502 old_archive_from_expsyms_cmds \ 17503 allow_undefined_flag \ 17504 no_undefined_flag \ 17505 export_symbols_cmds \ 17506 hardcode_libdir_flag_spec \ 17507 hardcode_libdir_flag_spec_ld \ 17508 hardcode_libdir_separator \ 17509 hardcode_automatic \ 17510 module_cmds \ 17511 module_expsym_cmds \ 17512 lt_cv_prog_compiler_c_o \ 17513 fix_srcfile_path \ 17514 exclude_expsyms \ 17515 include_expsyms; do 17516 17517 case $var in 17518 old_archive_cmds | \ 17519 old_archive_from_new_cmds | \ 17520 archive_cmds | \ 17521 archive_expsym_cmds | \ 17522 module_cmds | \ 17523 module_expsym_cmds | \ 17524 old_archive_from_expsyms_cmds | \ 17525 export_symbols_cmds | \ 17526 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 17527 postinstall_cmds | postuninstall_cmds | \ 17528 old_postinstall_cmds | old_postuninstall_cmds | \ 17529 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 17530 # Double-quote double-evaled strings. 17531 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 17532 ;; 17533 *) 17534 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 17535 ;; 17536 esac 17537 done 17538 17539 case $lt_echo in 17540 *'\$0 --fallback-echo"') 17541 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 17542 ;; 17543 esac 17544 17545cfgfile="${ofile}T" 17546 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 17547 $rm -f "$cfgfile" 17548 { echo "$as_me:$LINENO: creating $ofile" >&5 17549echo "$as_me: creating $ofile" >&6;} 17550 17551 cat <<__EOF__ >> "$cfgfile" 17552#! $SHELL 17553 17554# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 17555# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 17556# NOTE: Changes made to this file will be lost: look at ltmain.sh. 17557# 17558# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 17559# Free Software Foundation, Inc. 17560# 17561# This file is part of GNU Libtool: 17562# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 17563# 17564# This program is free software; you can redistribute it and/or modify 17565# it under the terms of the GNU General Public License as published by 17566# the Free Software Foundation; either version 2 of the License, or 17567# (at your option) any later version. 17568# 17569# This program is distributed in the hope that it will be useful, but 17570# WITHOUT ANY WARRANTY; without even the implied warranty of 17571# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 17572# General Public License for more details. 17573# 17574# You should have received a copy of the GNU General Public License 17575# along with this program; if not, write to the Free Software 17576# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17577# 17578# As a special exception to the GNU General Public License, if you 17579# distribute this file as part of a program that contains a 17580# configuration script generated by Autoconf, you may include it under 17581# the same distribution terms that you use for the rest of that program. 17582 17583# A sed program that does not truncate output. 17584SED=$lt_SED 17585 17586# Sed that helps us avoid accidentally triggering echo(1) options like -n. 17587Xsed="$SED -e 1s/^X//" 17588 17589# The HP-UX ksh and POSIX shell print the target directory to stdout 17590# if CDPATH is set. 17591(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17592 17593# The names of the tagged configurations supported by this script. 17594available_tags= 17595 17596# ### BEGIN LIBTOOL CONFIG 17597 17598# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17599 17600# Shell to use when invoking shell scripts. 17601SHELL=$lt_SHELL 17602 17603# Whether or not to build shared libraries. 17604build_libtool_libs=$enable_shared 17605 17606# Whether or not to build static libraries. 17607build_old_libs=$enable_static 17608 17609# Whether or not to add -lc for building shared libraries. 17610build_libtool_need_lc=$archive_cmds_need_lc 17611 17612# Whether or not to disallow shared libs when runtime libs are static 17613allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 17614 17615# Whether or not to optimize for fast installation. 17616fast_install=$enable_fast_install 17617 17618# The host system. 17619host_alias=$host_alias 17620host=$host 17621host_os=$host_os 17622 17623# The build system. 17624build_alias=$build_alias 17625build=$build 17626build_os=$build_os 17627 17628# An echo program that does not interpret backslashes. 17629echo=$lt_echo 17630 17631# The archiver. 17632AR=$lt_AR 17633AR_FLAGS=$lt_AR_FLAGS 17634 17635# A C compiler. 17636LTCC=$lt_LTCC 17637 17638# LTCC compiler flags. 17639LTCFLAGS=$lt_LTCFLAGS 17640 17641# A language-specific compiler. 17642CC=$lt_compiler 17643 17644# Is the compiler the GNU C compiler? 17645with_gcc=$GCC 17646 17647# An ERE matcher. 17648EGREP=$lt_EGREP 17649 17650# The linker used to build libraries. 17651LD=$lt_LD 17652 17653# Whether we need hard or soft links. 17654LN_S=$lt_LN_S 17655 17656# A BSD-compatible nm program. 17657NM=$lt_NM 17658 17659# A symbol stripping program 17660STRIP=$lt_STRIP 17661 17662# Used to examine libraries when file_magic_cmd begins "file" 17663MAGIC_CMD=$MAGIC_CMD 17664 17665# Used on cygwin: DLL creation program. 17666DLLTOOL="$DLLTOOL" 17667 17668# Used on cygwin: object dumper. 17669OBJDUMP="$OBJDUMP" 17670 17671# Used on cygwin: assembler. 17672AS="$AS" 17673 17674# The name of the directory that contains temporary libtool files. 17675objdir=$objdir 17676 17677# How to create reloadable object files. 17678reload_flag=$lt_reload_flag 17679reload_cmds=$lt_reload_cmds 17680 17681# How to pass a linker flag through the compiler. 17682wl=$lt_lt_prog_compiler_wl 17683 17684# Object file suffix (normally "o"). 17685objext="$ac_objext" 17686 17687# Old archive suffix (normally "a"). 17688libext="$libext" 17689 17690# Shared library suffix (normally ".so"). 17691shrext_cmds='$shrext_cmds' 17692 17693# Executable file suffix (normally ""). 17694exeext="$exeext" 17695 17696# Additional compiler flags for building library objects. 17697pic_flag=$lt_lt_prog_compiler_pic 17698pic_mode=$pic_mode 17699 17700# What is the maximum length of a command? 17701max_cmd_len=$lt_cv_sys_max_cmd_len 17702 17703# Does compiler simultaneously support -c and -o options? 17704compiler_c_o=$lt_lt_cv_prog_compiler_c_o 17705 17706# Must we lock files when doing compilation? 17707need_locks=$lt_need_locks 17708 17709# Do we need the lib prefix for modules? 17710need_lib_prefix=$need_lib_prefix 17711 17712# Do we need a version for libraries? 17713need_version=$need_version 17714 17715# Whether dlopen is supported. 17716dlopen_support=$enable_dlopen 17717 17718# Whether dlopen of programs is supported. 17719dlopen_self=$enable_dlopen_self 17720 17721# Whether dlopen of statically linked programs is supported. 17722dlopen_self_static=$enable_dlopen_self_static 17723 17724# Compiler flag to prevent dynamic linking. 17725link_static_flag=$lt_lt_prog_compiler_static 17726 17727# Compiler flag to turn off builtin functions. 17728no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 17729 17730# Compiler flag to allow reflexive dlopens. 17731export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 17732 17733# Compiler flag to generate shared objects directly from archives. 17734whole_archive_flag_spec=$lt_whole_archive_flag_spec 17735 17736# Compiler flag to generate thread-safe objects. 17737thread_safe_flag_spec=$lt_thread_safe_flag_spec 17738 17739# Library versioning type. 17740version_type=$version_type 17741 17742# Format of library name prefix. 17743libname_spec=$lt_libname_spec 17744 17745# List of archive names. First name is the real one, the rest are links. 17746# The last name is the one that the linker finds with -lNAME. 17747library_names_spec=$lt_library_names_spec 17748 17749# The coded name of the library, if different from the real name. 17750soname_spec=$lt_soname_spec 17751 17752# Commands used to build and install an old-style archive. 17753RANLIB=$lt_RANLIB 17754old_archive_cmds=$lt_old_archive_cmds 17755old_postinstall_cmds=$lt_old_postinstall_cmds 17756old_postuninstall_cmds=$lt_old_postuninstall_cmds 17757 17758# Create an old-style archive from a shared archive. 17759old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 17760 17761# Create a temporary old-style archive to link instead of a shared archive. 17762old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 17763 17764# Commands used to build and install a shared archive. 17765archive_cmds=$lt_archive_cmds 17766archive_expsym_cmds=$lt_archive_expsym_cmds 17767postinstall_cmds=$lt_postinstall_cmds 17768postuninstall_cmds=$lt_postuninstall_cmds 17769 17770# Commands used to build a loadable module (assumed same as above if empty) 17771module_cmds=$lt_module_cmds 17772module_expsym_cmds=$lt_module_expsym_cmds 17773 17774# Commands to strip libraries. 17775old_striplib=$lt_old_striplib 17776striplib=$lt_striplib 17777 17778# Dependencies to place before the objects being linked to create a 17779# shared library. 17780predep_objects=$lt_predep_objects 17781 17782# Dependencies to place after the objects being linked to create a 17783# shared library. 17784postdep_objects=$lt_postdep_objects 17785 17786# Dependencies to place before the objects being linked to create a 17787# shared library. 17788predeps=$lt_predeps 17789 17790# Dependencies to place after the objects being linked to create a 17791# shared library. 17792postdeps=$lt_postdeps 17793 17794# The directories searched by this compiler when creating a shared 17795# library 17796compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 17797 17798# The library search path used internally by the compiler when linking 17799# a shared library. 17800compiler_lib_search_path=$lt_compiler_lib_search_path 17801 17802# Method to check whether dependent libraries are shared objects. 17803deplibs_check_method=$lt_deplibs_check_method 17804 17805# Command to use when deplibs_check_method == file_magic. 17806file_magic_cmd=$lt_file_magic_cmd 17807 17808# Flag that allows shared libraries with undefined symbols to be built. 17809allow_undefined_flag=$lt_allow_undefined_flag 17810 17811# Flag that forces no undefined symbols. 17812no_undefined_flag=$lt_no_undefined_flag 17813 17814# Commands used to finish a libtool library installation in a directory. 17815finish_cmds=$lt_finish_cmds 17816 17817# Same as above, but a single script fragment to be evaled but not shown. 17818finish_eval=$lt_finish_eval 17819 17820# Take the output of nm and produce a listing of raw symbols and C names. 17821global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17822 17823# Transform the output of nm in a proper C declaration 17824global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17825 17826# Transform the output of nm in a C name address pair 17827global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17828 17829# This is the shared library runtime path variable. 17830runpath_var=$runpath_var 17831 17832# This is the shared library path variable. 17833shlibpath_var=$shlibpath_var 17834 17835# Is shlibpath searched before the hard-coded library search path? 17836shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17837 17838# How to hardcode a shared library path into an executable. 17839hardcode_action=$hardcode_action 17840 17841# Whether we should hardcode library paths into libraries. 17842hardcode_into_libs=$hardcode_into_libs 17843 17844# Flag to hardcode \$libdir into a binary during linking. 17845# This must work even if \$libdir does not exist. 17846hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 17847 17848# If ld is used when linking, flag to hardcode \$libdir into 17849# a binary during linking. This must work even if \$libdir does 17850# not exist. 17851hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 17852 17853# Whether we need a single -rpath flag with a separated argument. 17854hardcode_libdir_separator=$lt_hardcode_libdir_separator 17855 17856# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 17857# resulting binary. 17858hardcode_direct=$hardcode_direct 17859 17860# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 17861# resulting binary. 17862hardcode_minus_L=$hardcode_minus_L 17863 17864# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 17865# the resulting binary. 17866hardcode_shlibpath_var=$hardcode_shlibpath_var 17867 17868# Set to yes if building a shared library automatically hardcodes DIR into the library 17869# and all subsequent libraries and executables linked against it. 17870hardcode_automatic=$hardcode_automatic 17871 17872# Variables whose values should be saved in libtool wrapper scripts and 17873# restored at relink time. 17874variables_saved_for_relink="$variables_saved_for_relink" 17875 17876# Whether libtool must link a program against all its dependency libraries. 17877link_all_deplibs=$link_all_deplibs 17878 17879# Compile-time system search path for libraries 17880sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17881 17882# Run-time system search path for libraries 17883sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17884 17885# Fix the shell variable \$srcfile for the compiler. 17886fix_srcfile_path=$lt_fix_srcfile_path 17887 17888# Set to yes if exported symbols are required. 17889always_export_symbols=$always_export_symbols 17890 17891# The commands to list exported symbols. 17892export_symbols_cmds=$lt_export_symbols_cmds 17893 17894# The commands to extract the exported symbol list from a shared archive. 17895extract_expsyms_cmds=$lt_extract_expsyms_cmds 17896 17897# Symbols that should not be listed in the preloaded symbols. 17898exclude_expsyms=$lt_exclude_expsyms 17899 17900# Symbols that must always be exported. 17901include_expsyms=$lt_include_expsyms 17902 17903# ### END LIBTOOL CONFIG 17904 17905__EOF__ 17906 17907 17908 case $host_os in 17909 aix3*) 17910 cat <<\EOF >> "$cfgfile" 17911 17912# AIX sometimes has problems with the GCC collect2 program. For some 17913# reason, if we set the COLLECT_NAMES environment variable, the problems 17914# vanish in a puff of smoke. 17915if test "X${COLLECT_NAMES+set}" != Xset; then 17916 COLLECT_NAMES= 17917 export COLLECT_NAMES 17918fi 17919EOF 17920 ;; 17921 esac 17922 17923 # We use sed instead of cat because bash on DJGPP gets confused if 17924 # if finds mixed CR/LF and LF-only lines. Since sed operates in 17925 # text mode, it properly converts lines to CR/LF. This bash problem 17926 # is reportedly fixed, but why not run on old versions too? 17927 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 17928 17929 mv -f "$cfgfile" "$ofile" || \ 17930 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 17931 chmod +x "$ofile" 17932 17933else 17934 # If there is no Makefile yet, we rely on a make rule to execute 17935 # `config.status --recheck' to rerun these tests and create the 17936 # libtool script then. 17937 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 17938 if test -f "$ltmain_in"; then 17939 test -f Makefile && make "$ltmain" 17940 fi 17941fi 17942 17943 17944ac_ext=cpp 17945ac_cpp='$CXXCPP $CPPFLAGS' 17946ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17947ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17948ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17949 17950CC="$lt_save_CC" 17951 17952 17953# Check whether --with-tags was given. 17954if test "${with_tags+set}" = set; then 17955 withval=$with_tags; tagnames="$withval" 17956fi 17957 17958 17959if test -f "$ltmain" && test -n "$tagnames"; then 17960 if test ! -f "${ofile}"; then 17961 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 17962echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 17963 fi 17964 17965 if test -z "$LTCC"; then 17966 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 17967 if test -z "$LTCC"; then 17968 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 17969echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 17970 else 17971 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 17972echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 17973 fi 17974 fi 17975 if test -z "$LTCFLAGS"; then 17976 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 17977 fi 17978 17979 # Extract list of available tagged configurations in $ofile. 17980 # Note that this assumes the entire list is on one line. 17981 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 17982 17983 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 17984 for tagname in $tagnames; do 17985 IFS="$lt_save_ifs" 17986 # Check whether tagname contains only valid characters 17987 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 17988 "") ;; 17989 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 17990echo "$as_me: error: invalid tag name: $tagname" >&2;} 17991 { (exit 1); exit 1; }; } 17992 ;; 17993 esac 17994 17995 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 17996 then 17997 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 17998echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 17999 { (exit 1); exit 1; }; } 18000 fi 18001 18002 # Update the list of available tags. 18003 if test -n "$tagname"; then 18004 echo appending configuration tag \"$tagname\" to $ofile 18005 18006 case $tagname in 18007 CXX) 18008 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 18009 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 18010 (test "X$CXX" != "Xg++"))) ; then 18011 ac_ext=cpp 18012ac_cpp='$CXXCPP $CPPFLAGS' 18013ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18014ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18015ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18016 18017 18018 18019 18020archive_cmds_need_lc_CXX=no 18021allow_undefined_flag_CXX= 18022always_export_symbols_CXX=no 18023archive_expsym_cmds_CXX= 18024export_dynamic_flag_spec_CXX= 18025hardcode_direct_CXX=no 18026hardcode_libdir_flag_spec_CXX= 18027hardcode_libdir_flag_spec_ld_CXX= 18028hardcode_libdir_separator_CXX= 18029hardcode_minus_L_CXX=no 18030hardcode_shlibpath_var_CXX=unsupported 18031hardcode_automatic_CXX=no 18032module_cmds_CXX= 18033module_expsym_cmds_CXX= 18034link_all_deplibs_CXX=unknown 18035old_archive_cmds_CXX=$old_archive_cmds 18036no_undefined_flag_CXX= 18037whole_archive_flag_spec_CXX= 18038enable_shared_with_static_runtimes_CXX=no 18039 18040# Dependencies to place before and after the object being linked: 18041predep_objects_CXX= 18042postdep_objects_CXX= 18043predeps_CXX= 18044postdeps_CXX= 18045compiler_lib_search_path_CXX= 18046compiler_lib_search_dirs_CXX= 18047 18048# Source file extension for C++ test sources. 18049ac_ext=cpp 18050 18051# Object file extension for compiled C++ test sources. 18052objext=o 18053objext_CXX=$objext 18054 18055# Code to be used in simple compile tests 18056lt_simple_compile_test_code="int some_variable = 0;" 18057 18058# Code to be used in simple link tests 18059lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 18060 18061# ltmain only uses $CC for tagged configurations so make sure $CC is set. 18062 18063# If no C compiler was specified, use CC. 18064LTCC=${LTCC-"$CC"} 18065 18066# If no C compiler flags were specified, use CFLAGS. 18067LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18068 18069# Allow CC to be a program name with arguments. 18070compiler=$CC 18071 18072 18073# save warnings/boilerplate of simple test code 18074ac_outfile=conftest.$ac_objext 18075echo "$lt_simple_compile_test_code" >conftest.$ac_ext 18076eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18077_lt_compiler_boilerplate=`cat conftest.err` 18078$rm conftest* 18079 18080ac_outfile=conftest.$ac_objext 18081echo "$lt_simple_link_test_code" >conftest.$ac_ext 18082eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18083_lt_linker_boilerplate=`cat conftest.err` 18084$rm -r conftest* 18085 18086 18087# Allow CC to be a program name with arguments. 18088lt_save_CC=$CC 18089lt_save_LD=$LD 18090lt_save_GCC=$GCC 18091GCC=$GXX 18092lt_save_with_gnu_ld=$with_gnu_ld 18093lt_save_path_LD=$lt_cv_path_LD 18094if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 18095 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 18096else 18097 $as_unset lt_cv_prog_gnu_ld 18098fi 18099if test -n "${lt_cv_path_LDCXX+set}"; then 18100 lt_cv_path_LD=$lt_cv_path_LDCXX 18101else 18102 $as_unset lt_cv_path_LD 18103fi 18104test -z "${LDCXX+set}" || LD=$LDCXX 18105CC=${CXX-"c++"} 18106compiler=$CC 18107compiler_CXX=$CC 18108for cc_temp in $compiler""; do 18109 case $cc_temp in 18110 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18111 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18112 \-*) ;; 18113 *) break;; 18114 esac 18115done 18116cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18117 18118 18119# We don't want -fno-exception wen compiling C++ code, so set the 18120# no_builtin_flag separately 18121if test "$GXX" = yes; then 18122 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 18123else 18124 lt_prog_compiler_no_builtin_flag_CXX= 18125fi 18126 18127if test "$GXX" = yes; then 18128 # Set up default GNU C++ configuration 18129 18130 18131# Check whether --with-gnu-ld was given. 18132if test "${with_gnu_ld+set}" = set; then 18133 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 18134else 18135 with_gnu_ld=no 18136fi 18137 18138ac_prog=ld 18139if test "$GCC" = yes; then 18140 # Check if gcc -print-prog-name=ld gives a path. 18141 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 18142echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 18143 case $host in 18144 *-*-mingw*) 18145 # gcc leaves a trailing carriage return which upsets mingw 18146 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 18147 *) 18148 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 18149 esac 18150 case $ac_prog in 18151 # Accept absolute paths. 18152 [\\/]* | ?:[\\/]*) 18153 re_direlt='/[^/][^/]*/\.\./' 18154 # Canonicalize the pathname of ld 18155 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 18156 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 18157 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 18158 done 18159 test -z "$LD" && LD="$ac_prog" 18160 ;; 18161 "") 18162 # If it fails, then pretend we aren't using GCC. 18163 ac_prog=ld 18164 ;; 18165 *) 18166 # If it is relative, then search for the first ld in PATH. 18167 with_gnu_ld=unknown 18168 ;; 18169 esac 18170elif test "$with_gnu_ld" = yes; then 18171 { echo "$as_me:$LINENO: checking for GNU ld" >&5 18172echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 18173else 18174 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 18175echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 18176fi 18177if test "${lt_cv_path_LD+set}" = set; then 18178 echo $ECHO_N "(cached) $ECHO_C" >&6 18179else 18180 if test -z "$LD"; then 18181 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 18182 for ac_dir in $PATH; do 18183 IFS="$lt_save_ifs" 18184 test -z "$ac_dir" && ac_dir=. 18185 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 18186 lt_cv_path_LD="$ac_dir/$ac_prog" 18187 # Check to see if the program is GNU ld. I'd rather use --version, 18188 # but apparently some variants of GNU ld only accept -v. 18189 # Break only if it was the GNU/non-GNU ld that we prefer. 18190 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 18191 *GNU* | *'with BFD'*) 18192 test "$with_gnu_ld" != no && break 18193 ;; 18194 *) 18195 test "$with_gnu_ld" != yes && break 18196 ;; 18197 esac 18198 fi 18199 done 18200 IFS="$lt_save_ifs" 18201else 18202 lt_cv_path_LD="$LD" # Let the user override the test with a path. 18203fi 18204fi 18205 18206LD="$lt_cv_path_LD" 18207if test -n "$LD"; then 18208 { echo "$as_me:$LINENO: result: $LD" >&5 18209echo "${ECHO_T}$LD" >&6; } 18210else 18211 { echo "$as_me:$LINENO: result: no" >&5 18212echo "${ECHO_T}no" >&6; } 18213fi 18214test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 18215echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 18216 { (exit 1); exit 1; }; } 18217{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 18218echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 18219if test "${lt_cv_prog_gnu_ld+set}" = set; then 18220 echo $ECHO_N "(cached) $ECHO_C" >&6 18221else 18222 # I'd rather use --version here, but apparently some GNU lds only accept -v. 18223case `$LD -v 2>&1 </dev/null` in 18224*GNU* | *'with BFD'*) 18225 lt_cv_prog_gnu_ld=yes 18226 ;; 18227*) 18228 lt_cv_prog_gnu_ld=no 18229 ;; 18230esac 18231fi 18232{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 18233echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 18234with_gnu_ld=$lt_cv_prog_gnu_ld 18235 18236 18237 18238 # Check if GNU C++ uses GNU ld as the underlying linker, since the 18239 # archiving commands below assume that GNU ld is being used. 18240 if test "$with_gnu_ld" = yes; then 18241 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 18242 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' 18243 18244 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 18245 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 18246 18247 # If archive_cmds runs LD, not CC, wlarc should be empty 18248 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 18249 # investigate it a little bit more. (MM) 18250 wlarc='${wl}' 18251 18252 # ancient GNU ld didn't support --whole-archive et. al. 18253 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 18254 grep 'no-whole-archive' > /dev/null; then 18255 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 18256 else 18257 whole_archive_flag_spec_CXX= 18258 fi 18259 else 18260 with_gnu_ld=no 18261 wlarc= 18262 18263 # A generic and very simple default shared library creation 18264 # command for GNU C++ for the case where it uses the native 18265 # linker, instead of GNU ld. If possible, this setting should 18266 # overridden to take advantage of the native linker features on 18267 # the platform it is being used on. 18268 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 18269 fi 18270 18271 # Commands to make compiler produce verbose output that lists 18272 # what "hidden" libraries, object files and flags are used when 18273 # linking a shared library. 18274 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 18275 18276else 18277 GXX=no 18278 with_gnu_ld=no 18279 wlarc= 18280fi 18281 18282# PORTME: fill in a description of your system's C++ link characteristics 18283{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 18284echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 18285ld_shlibs_CXX=yes 18286case $host_os in 18287 aix3*) 18288 # FIXME: insert proper C++ library support 18289 ld_shlibs_CXX=no 18290 ;; 18291 aix[4-9]*) 18292 if test "$host_cpu" = ia64; then 18293 # On IA64, the linker does run time linking by default, so we don't 18294 # have to do anything special. 18295 aix_use_runtimelinking=no 18296 exp_sym_flag='-Bexport' 18297 no_entry_flag="" 18298 else 18299 aix_use_runtimelinking=no 18300 18301 # Test if we are trying to use run time linking or normal 18302 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 18303 # need to do runtime linking. 18304 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 18305 for ld_flag in $LDFLAGS; do 18306 case $ld_flag in 18307 *-brtl*) 18308 aix_use_runtimelinking=yes 18309 break 18310 ;; 18311 esac 18312 done 18313 ;; 18314 esac 18315 18316 exp_sym_flag='-bexport' 18317 no_entry_flag='-bnoentry' 18318 fi 18319 18320 # When large executables or shared objects are built, AIX ld can 18321 # have problems creating the table of contents. If linking a library 18322 # or program results in "error TOC overflow" add -mminimal-toc to 18323 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 18324 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 18325 18326 archive_cmds_CXX='' 18327 hardcode_direct_CXX=yes 18328 hardcode_libdir_separator_CXX=':' 18329 link_all_deplibs_CXX=yes 18330 18331 if test "$GXX" = yes; then 18332 case $host_os in aix4.[012]|aix4.[012].*) 18333 # We only want to do this on AIX 4.2 and lower, the check 18334 # below for broken collect2 doesn't work under 4.3+ 18335 collect2name=`${CC} -print-prog-name=collect2` 18336 if test -f "$collect2name" && \ 18337 strings "$collect2name" | grep resolve_lib_name >/dev/null 18338 then 18339 # We have reworked collect2 18340 : 18341 else 18342 # We have old collect2 18343 hardcode_direct_CXX=unsupported 18344 # It fails to find uninstalled libraries when the uninstalled 18345 # path is not listed in the libpath. Setting hardcode_minus_L 18346 # to unsupported forces relinking 18347 hardcode_minus_L_CXX=yes 18348 hardcode_libdir_flag_spec_CXX='-L$libdir' 18349 hardcode_libdir_separator_CXX= 18350 fi 18351 ;; 18352 esac 18353 shared_flag='-shared' 18354 if test "$aix_use_runtimelinking" = yes; then 18355 shared_flag="$shared_flag "'${wl}-G' 18356 fi 18357 else 18358 # not using gcc 18359 if test "$host_cpu" = ia64; then 18360 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 18361 # chokes on -Wl,-G. The following line is correct: 18362 shared_flag='-G' 18363 else 18364 if test "$aix_use_runtimelinking" = yes; then 18365 shared_flag='${wl}-G' 18366 else 18367 shared_flag='${wl}-bM:SRE' 18368 fi 18369 fi 18370 fi 18371 18372 # It seems that -bexpall does not export symbols beginning with 18373 # underscore (_), so it is better to generate a list of symbols to export. 18374 always_export_symbols_CXX=yes 18375 if test "$aix_use_runtimelinking" = yes; then 18376 # Warning - without using the other runtime loading flags (-brtl), 18377 # -berok will link without error, but may produce a broken library. 18378 allow_undefined_flag_CXX='-berok' 18379 # Determine the default libpath from the value encoded in an empty executable. 18380 cat >conftest.$ac_ext <<_ACEOF 18381/* confdefs.h. */ 18382_ACEOF 18383cat confdefs.h >>conftest.$ac_ext 18384cat >>conftest.$ac_ext <<_ACEOF 18385/* end confdefs.h. */ 18386 18387int 18388main () 18389{ 18390 18391 ; 18392 return 0; 18393} 18394_ACEOF 18395rm -f conftest.$ac_objext conftest$ac_exeext 18396if { (ac_try="$ac_link" 18397case "(($ac_try" in 18398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18399 *) ac_try_echo=$ac_try;; 18400esac 18401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18402 (eval "$ac_link") 2>conftest.er1 18403 ac_status=$? 18404 grep -v '^ *+' conftest.er1 >conftest.err 18405 rm -f conftest.er1 18406 cat conftest.err >&5 18407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18408 (exit $ac_status); } && { 18409 test -z "$ac_cxx_werror_flag" || 18410 test ! -s conftest.err 18411 } && test -s conftest$ac_exeext && 18412 $as_test_x conftest$ac_exeext; then 18413 18414lt_aix_libpath_sed=' 18415 /Import File Strings/,/^$/ { 18416 /^0/ { 18417 s/^0 *\(.*\)$/\1/ 18418 p 18419 } 18420 }' 18421aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18422# Check for a 64-bit object if we didn't find anything. 18423if test -z "$aix_libpath"; then 18424 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18425fi 18426else 18427 echo "$as_me: failed program was:" >&5 18428sed 's/^/| /' conftest.$ac_ext >&5 18429 18430 18431fi 18432 18433rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 18434 conftest$ac_exeext conftest.$ac_ext 18435if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 18436 18437 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 18438 18439 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" 18440 else 18441 if test "$host_cpu" = ia64; then 18442 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 18443 allow_undefined_flag_CXX="-z nodefs" 18444 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" 18445 else 18446 # Determine the default libpath from the value encoded in an empty executable. 18447 cat >conftest.$ac_ext <<_ACEOF 18448/* confdefs.h. */ 18449_ACEOF 18450cat confdefs.h >>conftest.$ac_ext 18451cat >>conftest.$ac_ext <<_ACEOF 18452/* end confdefs.h. */ 18453 18454int 18455main () 18456{ 18457 18458 ; 18459 return 0; 18460} 18461_ACEOF 18462rm -f conftest.$ac_objext conftest$ac_exeext 18463if { (ac_try="$ac_link" 18464case "(($ac_try" in 18465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18466 *) ac_try_echo=$ac_try;; 18467esac 18468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18469 (eval "$ac_link") 2>conftest.er1 18470 ac_status=$? 18471 grep -v '^ *+' conftest.er1 >conftest.err 18472 rm -f conftest.er1 18473 cat conftest.err >&5 18474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18475 (exit $ac_status); } && { 18476 test -z "$ac_cxx_werror_flag" || 18477 test ! -s conftest.err 18478 } && test -s conftest$ac_exeext && 18479 $as_test_x conftest$ac_exeext; then 18480 18481lt_aix_libpath_sed=' 18482 /Import File Strings/,/^$/ { 18483 /^0/ { 18484 s/^0 *\(.*\)$/\1/ 18485 p 18486 } 18487 }' 18488aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18489# Check for a 64-bit object if we didn't find anything. 18490if test -z "$aix_libpath"; then 18491 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18492fi 18493else 18494 echo "$as_me: failed program was:" >&5 18495sed 's/^/| /' conftest.$ac_ext >&5 18496 18497 18498fi 18499 18500rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 18501 conftest$ac_exeext conftest.$ac_ext 18502if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 18503 18504 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 18505 # Warning - without using the other run time loading flags, 18506 # -berok will link without error, but may produce a broken library. 18507 no_undefined_flag_CXX=' ${wl}-bernotok' 18508 allow_undefined_flag_CXX=' ${wl}-berok' 18509 # Exported symbols can be pulled into shared objects from archives 18510 whole_archive_flag_spec_CXX='$convenience' 18511 archive_cmds_need_lc_CXX=yes 18512 # This is similar to how AIX traditionally builds its shared libraries. 18513 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' 18514 fi 18515 fi 18516 ;; 18517 18518 beos*) 18519 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18520 allow_undefined_flag_CXX=unsupported 18521 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 18522 # support --undefined. This deserves some investigation. FIXME 18523 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18524 else 18525 ld_shlibs_CXX=no 18526 fi 18527 ;; 18528 18529 chorus*) 18530 case $cc_basename in 18531 *) 18532 # FIXME: insert proper C++ library support 18533 ld_shlibs_CXX=no 18534 ;; 18535 esac 18536 ;; 18537 18538 cygwin* | mingw* | pw32*) 18539 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 18540 # as there is no search path for DLLs. 18541 hardcode_libdir_flag_spec_CXX='-L$libdir' 18542 allow_undefined_flag_CXX=unsupported 18543 always_export_symbols_CXX=no 18544 enable_shared_with_static_runtimes_CXX=yes 18545 18546 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 18547 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' 18548 # If the export-symbols file already is a .def file (1st line 18549 # is EXPORTS), use it as is; otherwise, prepend... 18550 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 18551 cp $export_symbols $output_objdir/$soname.def; 18552 else 18553 echo EXPORTS > $output_objdir/$soname.def; 18554 cat $export_symbols >> $output_objdir/$soname.def; 18555 fi~ 18556 $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' 18557 else 18558 ld_shlibs_CXX=no 18559 fi 18560 ;; 18561 darwin* | rhapsody*) 18562 archive_cmds_need_lc_CXX=no 18563 hardcode_direct_CXX=no 18564 hardcode_automatic_CXX=yes 18565 hardcode_shlibpath_var_CXX=unsupported 18566 whole_archive_flag_spec_CXX='' 18567 link_all_deplibs_CXX=yes 18568 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 18569 if test "$GXX" = yes ; then 18570 output_verbose_link_cmd='echo' 18571 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 18572 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 18573 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 18574 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 18575 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 18576 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" 18577 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" 18578 fi 18579 else 18580 case $cc_basename in 18581 xlc*) 18582 output_verbose_link_cmd='echo' 18583 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' 18584 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 18585 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 18586 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}' 18587 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}' 18588 ;; 18589 *) 18590 ld_shlibs_CXX=no 18591 ;; 18592 esac 18593 fi 18594 ;; 18595 18596 dgux*) 18597 case $cc_basename in 18598 ec++*) 18599 # FIXME: insert proper C++ library support 18600 ld_shlibs_CXX=no 18601 ;; 18602 ghcx*) 18603 # Green Hills C++ Compiler 18604 # FIXME: insert proper C++ library support 18605 ld_shlibs_CXX=no 18606 ;; 18607 *) 18608 # FIXME: insert proper C++ library support 18609 ld_shlibs_CXX=no 18610 ;; 18611 esac 18612 ;; 18613 freebsd[12]*) 18614 # C++ shared libraries reported to be fairly broken before switch to ELF 18615 ld_shlibs_CXX=no 18616 ;; 18617 freebsd-elf*) 18618 archive_cmds_need_lc_CXX=no 18619 ;; 18620 freebsd* | dragonfly*) 18621 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 18622 # conventions 18623 ld_shlibs_CXX=yes 18624 ;; 18625 gnu*) 18626 ;; 18627 hpux9*) 18628 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 18629 hardcode_libdir_separator_CXX=: 18630 export_dynamic_flag_spec_CXX='${wl}-E' 18631 hardcode_direct_CXX=yes 18632 hardcode_minus_L_CXX=yes # Not in the search PATH, 18633 # but as the default 18634 # location of the library. 18635 18636 case $cc_basename in 18637 CC*) 18638 # FIXME: insert proper C++ library support 18639 ld_shlibs_CXX=no 18640 ;; 18641 aCC*) 18642 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' 18643 # Commands to make compiler produce verbose output that lists 18644 # what "hidden" libraries, object files and flags are used when 18645 # linking a shared library. 18646 # 18647 # There doesn't appear to be a way to prevent this compiler from 18648 # explicitly linking system object files so we need to strip them 18649 # from the output so that they don't get included in the library 18650 # dependencies. 18651 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' 18652 ;; 18653 *) 18654 if test "$GXX" = yes; then 18655 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' 18656 else 18657 # FIXME: insert proper C++ library support 18658 ld_shlibs_CXX=no 18659 fi 18660 ;; 18661 esac 18662 ;; 18663 hpux10*|hpux11*) 18664 if test $with_gnu_ld = no; then 18665 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 18666 hardcode_libdir_separator_CXX=: 18667 18668 case $host_cpu in 18669 hppa*64*|ia64*) ;; 18670 *) 18671 export_dynamic_flag_spec_CXX='${wl}-E' 18672 ;; 18673 esac 18674 fi 18675 case $host_cpu in 18676 hppa*64*|ia64*) 18677 hardcode_direct_CXX=no 18678 hardcode_shlibpath_var_CXX=no 18679 ;; 18680 *) 18681 hardcode_direct_CXX=yes 18682 hardcode_minus_L_CXX=yes # Not in the search PATH, 18683 # but as the default 18684 # location of the library. 18685 ;; 18686 esac 18687 18688 case $cc_basename in 18689 CC*) 18690 # FIXME: insert proper C++ library support 18691 ld_shlibs_CXX=no 18692 ;; 18693 aCC*) 18694 case $host_cpu in 18695 hppa*64*) 18696 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 18697 ;; 18698 ia64*) 18699 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 18700 ;; 18701 *) 18702 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 18703 ;; 18704 esac 18705 # Commands to make compiler produce verbose output that lists 18706 # what "hidden" libraries, object files and flags are used when 18707 # linking a shared library. 18708 # 18709 # There doesn't appear to be a way to prevent this compiler from 18710 # explicitly linking system object files so we need to strip them 18711 # from the output so that they don't get included in the library 18712 # dependencies. 18713 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' 18714 ;; 18715 *) 18716 if test "$GXX" = yes; then 18717 if test $with_gnu_ld = no; then 18718 case $host_cpu in 18719 hppa*64*) 18720 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 18721 ;; 18722 ia64*) 18723 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 18724 ;; 18725 *) 18726 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' 18727 ;; 18728 esac 18729 fi 18730 else 18731 # FIXME: insert proper C++ library support 18732 ld_shlibs_CXX=no 18733 fi 18734 ;; 18735 esac 18736 ;; 18737 interix[3-9]*) 18738 hardcode_direct_CXX=no 18739 hardcode_shlibpath_var_CXX=no 18740 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 18741 export_dynamic_flag_spec_CXX='${wl}-E' 18742 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 18743 # Instead, shared libraries are loaded at an image base (0x10000000 by 18744 # default) and relocated if they conflict, which is a slow very memory 18745 # consuming and fragmenting process. To avoid this, we pick a random, 18746 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 18747 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 18748 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' 18749 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' 18750 ;; 18751 irix5* | irix6*) 18752 case $cc_basename in 18753 CC*) 18754 # SGI C++ 18755 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' 18756 18757 # Archives containing C++ object files must be created using 18758 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 18759 # necessary to make sure instantiated templates are included 18760 # in the archive. 18761 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 18762 ;; 18763 *) 18764 if test "$GXX" = yes; then 18765 if test "$with_gnu_ld" = no; then 18766 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' 18767 else 18768 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' 18769 fi 18770 fi 18771 link_all_deplibs_CXX=yes 18772 ;; 18773 esac 18774 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 18775 hardcode_libdir_separator_CXX=: 18776 ;; 18777 linux* | k*bsd*-gnu) 18778 case $cc_basename in 18779 KCC*) 18780 # Kuck and Associates, Inc. (KAI) C++ Compiler 18781 18782 # KCC will only create a shared library if the output file 18783 # ends with ".so" (or ".sl" for HP-UX), so rename the library 18784 # to its proper name (with version) after linking. 18785 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' 18786 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' 18787 # Commands to make compiler produce verbose output that lists 18788 # what "hidden" libraries, object files and flags are used when 18789 # linking a shared library. 18790 # 18791 # There doesn't appear to be a way to prevent this compiler from 18792 # explicitly linking system object files so we need to strip them 18793 # from the output so that they don't get included in the library 18794 # dependencies. 18795 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' 18796 18797 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 18798 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 18799 18800 # Archives containing C++ object files must be created using 18801 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 18802 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 18803 ;; 18804 icpc*) 18805 # Intel C++ 18806 with_gnu_ld=yes 18807 # version 8.0 and above of icpc choke on multiply defined symbols 18808 # if we add $predep_objects and $postdep_objects, however 7.1 and 18809 # earlier do not add the objects themselves. 18810 case `$CC -V 2>&1` in 18811 *"Version 7."*) 18812 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 18813 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' 18814 ;; 18815 *) # Version 8.0 or newer 18816 tmp_idyn= 18817 case $host_cpu in 18818 ia64*) tmp_idyn=' -i_dynamic';; 18819 esac 18820 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18821 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' 18822 ;; 18823 esac 18824 archive_cmds_need_lc_CXX=no 18825 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 18826 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 18827 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 18828 ;; 18829 pgCC* | pgcpp*) 18830 # Portland Group C++ compiler 18831 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 18832 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' 18833 18834 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 18835 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 18836 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' 18837 ;; 18838 cxx*) 18839 # Compaq C++ 18840 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 18841 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' 18842 18843 runpath_var=LD_RUN_PATH 18844 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 18845 hardcode_libdir_separator_CXX=: 18846 18847 # Commands to make compiler produce verbose output that lists 18848 # what "hidden" libraries, object files and flags are used when 18849 # linking a shared library. 18850 # 18851 # There doesn't appear to be a way to prevent this compiler from 18852 # explicitly linking system object files so we need to strip them 18853 # from the output so that they don't get included in the library 18854 # dependencies. 18855 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' 18856 ;; 18857 *) 18858 case `$CC -V 2>&1 | sed 5q` in 18859 *Sun\ C*) 18860 # Sun C++ 5.9 18861 no_undefined_flag_CXX=' -zdefs' 18862 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 18863 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' 18864 hardcode_libdir_flag_spec_CXX='-R$libdir' 18865 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' 18866 18867 # Not sure whether something based on 18868 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 18869 # would be better. 18870 output_verbose_link_cmd='echo' 18871 18872 # Archives containing C++ object files must be created using 18873 # "CC -xar", where "CC" is the Sun C++ compiler. This is 18874 # necessary to make sure instantiated templates are included 18875 # in the archive. 18876 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 18877 ;; 18878 esac 18879 ;; 18880 esac 18881 ;; 18882 lynxos*) 18883 # FIXME: insert proper C++ library support 18884 ld_shlibs_CXX=no 18885 ;; 18886 m88k*) 18887 # FIXME: insert proper C++ library support 18888 ld_shlibs_CXX=no 18889 ;; 18890 mvs*) 18891 case $cc_basename in 18892 cxx*) 18893 # FIXME: insert proper C++ library support 18894 ld_shlibs_CXX=no 18895 ;; 18896 *) 18897 # FIXME: insert proper C++ library support 18898 ld_shlibs_CXX=no 18899 ;; 18900 esac 18901 ;; 18902 netbsd*) 18903 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18904 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 18905 wlarc= 18906 hardcode_libdir_flag_spec_CXX='-R$libdir' 18907 hardcode_direct_CXX=yes 18908 hardcode_shlibpath_var_CXX=no 18909 fi 18910 # Workaround some broken pre-1.5 toolchains 18911 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 18912 ;; 18913 openbsd2*) 18914 # C++ shared libraries are fairly broken 18915 ld_shlibs_CXX=no 18916 ;; 18917 openbsd*) 18918 if test -f /usr/libexec/ld.so; then 18919 hardcode_direct_CXX=yes 18920 hardcode_shlibpath_var_CXX=no 18921 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 18922 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 18923 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18924 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 18925 export_dynamic_flag_spec_CXX='${wl}-E' 18926 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 18927 fi 18928 output_verbose_link_cmd='echo' 18929 else 18930 ld_shlibs_CXX=no 18931 fi 18932 ;; 18933 osf3*) 18934 case $cc_basename in 18935 KCC*) 18936 # Kuck and Associates, Inc. (KAI) C++ Compiler 18937 18938 # KCC will only create a shared library if the output file 18939 # ends with ".so" (or ".sl" for HP-UX), so rename the library 18940 # to its proper name (with version) after linking. 18941 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' 18942 18943 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 18944 hardcode_libdir_separator_CXX=: 18945 18946 # Archives containing C++ object files must be created using 18947 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 18948 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 18949 18950 ;; 18951 RCC*) 18952 # Rational C++ 2.4.1 18953 # FIXME: insert proper C++ library support 18954 ld_shlibs_CXX=no 18955 ;; 18956 cxx*) 18957 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 18958 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' 18959 18960 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 18961 hardcode_libdir_separator_CXX=: 18962 18963 # Commands to make compiler produce verbose output that lists 18964 # what "hidden" libraries, object files and flags are used when 18965 # linking a shared library. 18966 # 18967 # There doesn't appear to be a way to prevent this compiler from 18968 # explicitly linking system object files so we need to strip them 18969 # from the output so that they don't get included in the library 18970 # dependencies. 18971 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' 18972 ;; 18973 *) 18974 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 18975 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 18976 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' 18977 18978 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 18979 hardcode_libdir_separator_CXX=: 18980 18981 # Commands to make compiler produce verbose output that lists 18982 # what "hidden" libraries, object files and flags are used when 18983 # linking a shared library. 18984 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 18985 18986 else 18987 # FIXME: insert proper C++ library support 18988 ld_shlibs_CXX=no 18989 fi 18990 ;; 18991 esac 18992 ;; 18993 osf4* | osf5*) 18994 case $cc_basename in 18995 KCC*) 18996 # Kuck and Associates, Inc. (KAI) C++ Compiler 18997 18998 # KCC will only create a shared library if the output file 18999 # ends with ".so" (or ".sl" for HP-UX), so rename the library 19000 # to its proper name (with version) after linking. 19001 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' 19002 19003 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 19004 hardcode_libdir_separator_CXX=: 19005 19006 # Archives containing C++ object files must be created using 19007 # the KAI C++ compiler. 19008 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 19009 ;; 19010 RCC*) 19011 # Rational C++ 2.4.1 19012 # FIXME: insert proper C++ library support 19013 ld_shlibs_CXX=no 19014 ;; 19015 cxx*) 19016 allow_undefined_flag_CXX=' -expect_unresolved \*' 19017 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' 19018 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 19019 echo "-hidden">> $lib.exp~ 19020 $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~ 19021 $rm $lib.exp' 19022 19023 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 19024 hardcode_libdir_separator_CXX=: 19025 19026 # Commands to make compiler produce verbose output that lists 19027 # what "hidden" libraries, object files and flags are used when 19028 # linking a shared library. 19029 # 19030 # There doesn't appear to be a way to prevent this compiler from 19031 # explicitly linking system object files so we need to strip them 19032 # from the output so that they don't get included in the library 19033 # dependencies. 19034 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' 19035 ;; 19036 *) 19037 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 19038 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 19039 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' 19040 19041 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 19042 hardcode_libdir_separator_CXX=: 19043 19044 # Commands to make compiler produce verbose output that lists 19045 # what "hidden" libraries, object files and flags are used when 19046 # linking a shared library. 19047 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 19048 19049 else 19050 # FIXME: insert proper C++ library support 19051 ld_shlibs_CXX=no 19052 fi 19053 ;; 19054 esac 19055 ;; 19056 psos*) 19057 # FIXME: insert proper C++ library support 19058 ld_shlibs_CXX=no 19059 ;; 19060 sunos4*) 19061 case $cc_basename in 19062 CC*) 19063 # Sun C++ 4.x 19064 # FIXME: insert proper C++ library support 19065 ld_shlibs_CXX=no 19066 ;; 19067 lcc*) 19068 # Lucid 19069 # FIXME: insert proper C++ library support 19070 ld_shlibs_CXX=no 19071 ;; 19072 *) 19073 # FIXME: insert proper C++ library support 19074 ld_shlibs_CXX=no 19075 ;; 19076 esac 19077 ;; 19078 solaris*) 19079 case $cc_basename in 19080 CC*) 19081 # Sun C++ 4.2, 5.x and Centerline C++ 19082 archive_cmds_need_lc_CXX=yes 19083 no_undefined_flag_CXX=' -zdefs' 19084 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 19085 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 19086 $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' 19087 19088 hardcode_libdir_flag_spec_CXX='-R$libdir' 19089 hardcode_shlibpath_var_CXX=no 19090 case $host_os in 19091 solaris2.[0-5] | solaris2.[0-5].*) ;; 19092 *) 19093 # The compiler driver will combine and reorder linker options, 19094 # but understands `-z linker_flag'. 19095 # Supported since Solaris 2.6 (maybe 2.5.1?) 19096 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 19097 ;; 19098 esac 19099 link_all_deplibs_CXX=yes 19100 19101 output_verbose_link_cmd='echo' 19102 19103 # Archives containing C++ object files must be created using 19104 # "CC -xar", where "CC" is the Sun C++ compiler. This is 19105 # necessary to make sure instantiated templates are included 19106 # in the archive. 19107 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 19108 ;; 19109 gcx*) 19110 # Green Hills C++ Compiler 19111 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 19112 19113 # The C++ compiler must be used to create the archive. 19114 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 19115 ;; 19116 *) 19117 # GNU C++ compiler with Solaris linker 19118 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 19119 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 19120 if $CC --version | grep -v '^2\.7' > /dev/null; then 19121 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 19122 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 19123 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 19124 19125 # Commands to make compiler produce verbose output that lists 19126 # what "hidden" libraries, object files and flags are used when 19127 # linking a shared library. 19128 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 19129 else 19130 # g++ 2.7 appears to require `-G' NOT `-shared' on this 19131 # platform. 19132 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 19133 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 19134 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 19135 19136 # Commands to make compiler produce verbose output that lists 19137 # what "hidden" libraries, object files and flags are used when 19138 # linking a shared library. 19139 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 19140 fi 19141 19142 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 19143 case $host_os in 19144 solaris2.[0-5] | solaris2.[0-5].*) ;; 19145 *) 19146 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 19147 ;; 19148 esac 19149 fi 19150 ;; 19151 esac 19152 ;; 19153 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 19154 no_undefined_flag_CXX='${wl}-z,text' 19155 archive_cmds_need_lc_CXX=no 19156 hardcode_shlibpath_var_CXX=no 19157 runpath_var='LD_RUN_PATH' 19158 19159 case $cc_basename in 19160 CC*) 19161 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19162 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19163 ;; 19164 *) 19165 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19166 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19167 ;; 19168 esac 19169 ;; 19170 sysv5* | sco3.2v5* | sco5v6*) 19171 # Note: We can NOT use -z defs as we might desire, because we do not 19172 # link with -lc, and that would cause any symbols used from libc to 19173 # always be unresolved, which means just about no library would 19174 # ever link correctly. If we're not using GNU ld we use -z text 19175 # though, which does catch some bad symbols but isn't as heavy-handed 19176 # as -z defs. 19177 # For security reasons, it is highly recommended that you always 19178 # use absolute paths for naming shared libraries, and exclude the 19179 # DT_RUNPATH tag from executables and libraries. But doing so 19180 # requires that you compile everything twice, which is a pain. 19181 # So that behaviour is only enabled if SCOABSPATH is set to a 19182 # non-empty value in the environment. Most likely only useful for 19183 # creating official distributions of packages. 19184 # This is a hack until libtool officially supports absolute path 19185 # names for shared libraries. 19186 no_undefined_flag_CXX='${wl}-z,text' 19187 allow_undefined_flag_CXX='${wl}-z,nodefs' 19188 archive_cmds_need_lc_CXX=no 19189 hardcode_shlibpath_var_CXX=no 19190 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 19191 hardcode_libdir_separator_CXX=':' 19192 link_all_deplibs_CXX=yes 19193 export_dynamic_flag_spec_CXX='${wl}-Bexport' 19194 runpath_var='LD_RUN_PATH' 19195 19196 case $cc_basename in 19197 CC*) 19198 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 19199 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 19200 ;; 19201 *) 19202 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 19203 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 19204 ;; 19205 esac 19206 ;; 19207 tandem*) 19208 case $cc_basename in 19209 NCC*) 19210 # NonStop-UX NCC 3.20 19211 # FIXME: insert proper C++ library support 19212 ld_shlibs_CXX=no 19213 ;; 19214 *) 19215 # FIXME: insert proper C++ library support 19216 ld_shlibs_CXX=no 19217 ;; 19218 esac 19219 ;; 19220 vxworks*) 19221 # FIXME: insert proper C++ library support 19222 ld_shlibs_CXX=no 19223 ;; 19224 *) 19225 # FIXME: insert proper C++ library support 19226 ld_shlibs_CXX=no 19227 ;; 19228esac 19229{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 19230echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 19231test "$ld_shlibs_CXX" = no && can_build_shared=no 19232 19233GCC_CXX="$GXX" 19234LD_CXX="$LD" 19235 19236cat > conftest.$ac_ext <<EOF 19237class Foo 19238{ 19239public: 19240 Foo (void) { a = 0; } 19241private: 19242 int a; 19243}; 19244EOF 19245 19246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19247 (eval $ac_compile) 2>&5 19248 ac_status=$? 19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19250 (exit $ac_status); }; then 19251 # Parse the compiler output and extract the necessary 19252 # objects, libraries and library flags. 19253 19254 # Sentinel used to keep track of whether or not we are before 19255 # the conftest object file. 19256 pre_test_object_deps_done=no 19257 19258 # The `*' in the case matches for architectures that use `case' in 19259 # $output_verbose_cmd can trigger glob expansion during the loop 19260 # eval without this substitution. 19261 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 19262 19263 for p in `eval $output_verbose_link_cmd`; do 19264 case $p in 19265 19266 -L* | -R* | -l*) 19267 # Some compilers place space between "-{L,R}" and the path. 19268 # Remove the space. 19269 if test $p = "-L" \ 19270 || test $p = "-R"; then 19271 prev=$p 19272 continue 19273 else 19274 prev= 19275 fi 19276 19277 if test "$pre_test_object_deps_done" = no; then 19278 case $p in 19279 -L* | -R*) 19280 # Internal compiler library paths should come after those 19281 # provided the user. The postdeps already come after the 19282 # user supplied libs so there is no need to process them. 19283 if test -z "$compiler_lib_search_path_CXX"; then 19284 compiler_lib_search_path_CXX="${prev}${p}" 19285 else 19286 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 19287 fi 19288 ;; 19289 # The "-l" case would never come before the object being 19290 # linked, so don't bother handling this case. 19291 esac 19292 else 19293 if test -z "$postdeps_CXX"; then 19294 postdeps_CXX="${prev}${p}" 19295 else 19296 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 19297 fi 19298 fi 19299 ;; 19300 19301 *.$objext) 19302 # This assumes that the test object file only shows up 19303 # once in the compiler output. 19304 if test "$p" = "conftest.$objext"; then 19305 pre_test_object_deps_done=yes 19306 continue 19307 fi 19308 19309 if test "$pre_test_object_deps_done" = no; then 19310 if test -z "$predep_objects_CXX"; then 19311 predep_objects_CXX="$p" 19312 else 19313 predep_objects_CXX="$predep_objects_CXX $p" 19314 fi 19315 else 19316 if test -z "$postdep_objects_CXX"; then 19317 postdep_objects_CXX="$p" 19318 else 19319 postdep_objects_CXX="$postdep_objects_CXX $p" 19320 fi 19321 fi 19322 ;; 19323 19324 *) ;; # Ignore the rest. 19325 19326 esac 19327 done 19328 19329 # Clean up. 19330 rm -f a.out a.exe 19331else 19332 echo "libtool.m4: error: problem compiling CXX test program" 19333fi 19334 19335$rm -f confest.$objext 19336 19337compiler_lib_search_dirs_CXX= 19338if test -n "$compiler_lib_search_path_CXX"; then 19339 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 19340fi 19341 19342# PORTME: override above test on systems where it is broken 19343case $host_os in 19344interix[3-9]*) 19345 # Interix 3.5 installs completely hosed .la files for C++, so rather than 19346 # hack all around it, let's just trust "g++" to DTRT. 19347 predep_objects_CXX= 19348 postdep_objects_CXX= 19349 postdeps_CXX= 19350 ;; 19351 19352linux*) 19353 case `$CC -V 2>&1 | sed 5q` in 19354 *Sun\ C*) 19355 # Sun C++ 5.9 19356 # 19357 # The more standards-conforming stlport4 library is 19358 # incompatible with the Cstd library. Avoid specifying 19359 # it if it's in CXXFLAGS. Ignore libCrun as 19360 # -library=stlport4 depends on it. 19361 case " $CXX $CXXFLAGS " in 19362 *" -library=stlport4 "*) 19363 solaris_use_stlport4=yes 19364 ;; 19365 esac 19366 if test "$solaris_use_stlport4" != yes; then 19367 postdeps_CXX='-library=Cstd -library=Crun' 19368 fi 19369 ;; 19370 esac 19371 ;; 19372 19373solaris*) 19374 case $cc_basename in 19375 CC*) 19376 # The more standards-conforming stlport4 library is 19377 # incompatible with the Cstd library. Avoid specifying 19378 # it if it's in CXXFLAGS. Ignore libCrun as 19379 # -library=stlport4 depends on it. 19380 case " $CXX $CXXFLAGS " in 19381 *" -library=stlport4 "*) 19382 solaris_use_stlport4=yes 19383 ;; 19384 esac 19385 19386 # Adding this requires a known-good setup of shared libraries for 19387 # Sun compiler versions before 5.6, else PIC objects from an old 19388 # archive will be linked into the output, leading to subtle bugs. 19389 if test "$solaris_use_stlport4" != yes; then 19390 postdeps_CXX='-library=Cstd -library=Crun' 19391 fi 19392 ;; 19393 esac 19394 ;; 19395esac 19396 19397case " $postdeps_CXX " in 19398*" -lc "*) archive_cmds_need_lc_CXX=no ;; 19399esac 19400 19401lt_prog_compiler_wl_CXX= 19402lt_prog_compiler_pic_CXX= 19403lt_prog_compiler_static_CXX= 19404 19405{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 19406echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 19407 19408 # C++ specific cases for pic, static, wl, etc. 19409 if test "$GXX" = yes; then 19410 lt_prog_compiler_wl_CXX='-Wl,' 19411 lt_prog_compiler_static_CXX='-static' 19412 19413 case $host_os in 19414 aix*) 19415 # All AIX code is PIC. 19416 if test "$host_cpu" = ia64; then 19417 # AIX 5 now supports IA64 processor 19418 lt_prog_compiler_static_CXX='-Bstatic' 19419 fi 19420 ;; 19421 amigaos*) 19422 # FIXME: we need at least 68020 code to build shared libraries, but 19423 # adding the `-m68020' flag to GCC prevents building anything better, 19424 # like `-m68040'. 19425 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 19426 ;; 19427 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 19428 # PIC is the default for these OSes. 19429 ;; 19430 mingw* | cygwin* | os2* | pw32*) 19431 # This hack is so that the source file can tell whether it is being 19432 # built for inclusion in a dll (and should export symbols for example). 19433 # Although the cygwin gcc ignores -fPIC, still need this for old-style 19434 # (--disable-auto-import) libraries 19435 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 19436 ;; 19437 darwin* | rhapsody*) 19438 # PIC is the default on this platform 19439 # Common symbols not allowed in MH_DYLIB files 19440 lt_prog_compiler_pic_CXX='-fno-common' 19441 ;; 19442 *djgpp*) 19443 # DJGPP does not support shared libraries at all 19444 lt_prog_compiler_pic_CXX= 19445 ;; 19446 interix[3-9]*) 19447 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 19448 # Instead, we relocate shared libraries at runtime. 19449 ;; 19450 sysv4*MP*) 19451 if test -d /usr/nec; then 19452 lt_prog_compiler_pic_CXX=-Kconform_pic 19453 fi 19454 ;; 19455 hpux*) 19456 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 19457 # not for PA HP-UX. 19458 case $host_cpu in 19459 hppa*64*|ia64*) 19460 ;; 19461 *) 19462 lt_prog_compiler_pic_CXX='-fPIC' 19463 ;; 19464 esac 19465 ;; 19466 *) 19467 lt_prog_compiler_pic_CXX='-fPIC' 19468 ;; 19469 esac 19470 else 19471 case $host_os in 19472 aix[4-9]*) 19473 # All AIX code is PIC. 19474 if test "$host_cpu" = ia64; then 19475 # AIX 5 now supports IA64 processor 19476 lt_prog_compiler_static_CXX='-Bstatic' 19477 else 19478 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 19479 fi 19480 ;; 19481 chorus*) 19482 case $cc_basename in 19483 cxch68*) 19484 # Green Hills C++ Compiler 19485 # _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" 19486 ;; 19487 esac 19488 ;; 19489 darwin*) 19490 # PIC is the default on this platform 19491 # Common symbols not allowed in MH_DYLIB files 19492 case $cc_basename in 19493 xlc*) 19494 lt_prog_compiler_pic_CXX='-qnocommon' 19495 lt_prog_compiler_wl_CXX='-Wl,' 19496 ;; 19497 esac 19498 ;; 19499 dgux*) 19500 case $cc_basename in 19501 ec++*) 19502 lt_prog_compiler_pic_CXX='-KPIC' 19503 ;; 19504 ghcx*) 19505 # Green Hills C++ Compiler 19506 lt_prog_compiler_pic_CXX='-pic' 19507 ;; 19508 *) 19509 ;; 19510 esac 19511 ;; 19512 freebsd* | dragonfly*) 19513 # FreeBSD uses GNU C++ 19514 ;; 19515 hpux9* | hpux10* | hpux11*) 19516 case $cc_basename in 19517 CC*) 19518 lt_prog_compiler_wl_CXX='-Wl,' 19519 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 19520 if test "$host_cpu" != ia64; then 19521 lt_prog_compiler_pic_CXX='+Z' 19522 fi 19523 ;; 19524 aCC*) 19525 lt_prog_compiler_wl_CXX='-Wl,' 19526 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 19527 case $host_cpu in 19528 hppa*64*|ia64*) 19529 # +Z the default 19530 ;; 19531 *) 19532 lt_prog_compiler_pic_CXX='+Z' 19533 ;; 19534 esac 19535 ;; 19536 *) 19537 ;; 19538 esac 19539 ;; 19540 interix*) 19541 # This is c89, which is MS Visual C++ (no shared libs) 19542 # Anyone wants to do a port? 19543 ;; 19544 irix5* | irix6* | nonstopux*) 19545 case $cc_basename in 19546 CC*) 19547 lt_prog_compiler_wl_CXX='-Wl,' 19548 lt_prog_compiler_static_CXX='-non_shared' 19549 # CC pic flag -KPIC is the default. 19550 ;; 19551 *) 19552 ;; 19553 esac 19554 ;; 19555 linux* | k*bsd*-gnu) 19556 case $cc_basename in 19557 KCC*) 19558 # KAI C++ Compiler 19559 lt_prog_compiler_wl_CXX='--backend -Wl,' 19560 lt_prog_compiler_pic_CXX='-fPIC' 19561 ;; 19562 icpc* | ecpc*) 19563 # Intel C++ 19564 lt_prog_compiler_wl_CXX='-Wl,' 19565 lt_prog_compiler_pic_CXX='-KPIC' 19566 lt_prog_compiler_static_CXX='-static' 19567 ;; 19568 pgCC* | pgcpp*) 19569 # Portland Group C++ compiler. 19570 lt_prog_compiler_wl_CXX='-Wl,' 19571 lt_prog_compiler_pic_CXX='-fpic' 19572 lt_prog_compiler_static_CXX='-Bstatic' 19573 ;; 19574 cxx*) 19575 # Compaq C++ 19576 # Make sure the PIC flag is empty. It appears that all Alpha 19577 # Linux and Compaq Tru64 Unix objects are PIC. 19578 lt_prog_compiler_pic_CXX= 19579 lt_prog_compiler_static_CXX='-non_shared' 19580 ;; 19581 *) 19582 case `$CC -V 2>&1 | sed 5q` in 19583 *Sun\ C*) 19584 # Sun C++ 5.9 19585 lt_prog_compiler_pic_CXX='-KPIC' 19586 lt_prog_compiler_static_CXX='-Bstatic' 19587 lt_prog_compiler_wl_CXX='-Qoption ld ' 19588 ;; 19589 esac 19590 ;; 19591 esac 19592 ;; 19593 lynxos*) 19594 ;; 19595 m88k*) 19596 ;; 19597 mvs*) 19598 case $cc_basename in 19599 cxx*) 19600 lt_prog_compiler_pic_CXX='-W c,exportall' 19601 ;; 19602 *) 19603 ;; 19604 esac 19605 ;; 19606 netbsd*) 19607 ;; 19608 osf3* | osf4* | osf5*) 19609 case $cc_basename in 19610 KCC*) 19611 lt_prog_compiler_wl_CXX='--backend -Wl,' 19612 ;; 19613 RCC*) 19614 # Rational C++ 2.4.1 19615 lt_prog_compiler_pic_CXX='-pic' 19616 ;; 19617 cxx*) 19618 # Digital/Compaq C++ 19619 lt_prog_compiler_wl_CXX='-Wl,' 19620 # Make sure the PIC flag is empty. It appears that all Alpha 19621 # Linux and Compaq Tru64 Unix objects are PIC. 19622 lt_prog_compiler_pic_CXX= 19623 lt_prog_compiler_static_CXX='-non_shared' 19624 ;; 19625 *) 19626 ;; 19627 esac 19628 ;; 19629 psos*) 19630 ;; 19631 solaris*) 19632 case $cc_basename in 19633 CC*) 19634 # Sun C++ 4.2, 5.x and Centerline C++ 19635 lt_prog_compiler_pic_CXX='-KPIC' 19636 lt_prog_compiler_static_CXX='-Bstatic' 19637 lt_prog_compiler_wl_CXX='-Qoption ld ' 19638 ;; 19639 gcx*) 19640 # Green Hills C++ Compiler 19641 lt_prog_compiler_pic_CXX='-PIC' 19642 ;; 19643 *) 19644 ;; 19645 esac 19646 ;; 19647 sunos4*) 19648 case $cc_basename in 19649 CC*) 19650 # Sun C++ 4.x 19651 lt_prog_compiler_pic_CXX='-pic' 19652 lt_prog_compiler_static_CXX='-Bstatic' 19653 ;; 19654 lcc*) 19655 # Lucid 19656 lt_prog_compiler_pic_CXX='-pic' 19657 ;; 19658 *) 19659 ;; 19660 esac 19661 ;; 19662 tandem*) 19663 case $cc_basename in 19664 NCC*) 19665 # NonStop-UX NCC 3.20 19666 lt_prog_compiler_pic_CXX='-KPIC' 19667 ;; 19668 *) 19669 ;; 19670 esac 19671 ;; 19672 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 19673 case $cc_basename in 19674 CC*) 19675 lt_prog_compiler_wl_CXX='-Wl,' 19676 lt_prog_compiler_pic_CXX='-KPIC' 19677 lt_prog_compiler_static_CXX='-Bstatic' 19678 ;; 19679 esac 19680 ;; 19681 vxworks*) 19682 ;; 19683 *) 19684 lt_prog_compiler_can_build_shared_CXX=no 19685 ;; 19686 esac 19687 fi 19688 19689{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 19690echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 19691 19692# 19693# Check to make sure the PIC flag actually works. 19694# 19695if test -n "$lt_prog_compiler_pic_CXX"; then 19696 19697{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 19698echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 19699if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then 19700 echo $ECHO_N "(cached) $ECHO_C" >&6 19701else 19702 lt_cv_prog_compiler_pic_works_CXX=no 19703 ac_outfile=conftest.$ac_objext 19704 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19705 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 19706 # Insert the option either (1) after the last *FLAGS variable, or 19707 # (2) before a word containing "conftest.", or (3) at the end. 19708 # Note that $ac_compile itself does not contain backslashes and begins 19709 # with a dollar sign (not a hyphen), so the echo should work correctly. 19710 # The option is referenced via a variable to avoid confusing sed. 19711 lt_compile=`echo "$ac_compile" | $SED \ 19712 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19713 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19714 -e 's:$: $lt_compiler_flag:'` 19715 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 19716 (eval "$lt_compile" 2>conftest.err) 19717 ac_status=$? 19718 cat conftest.err >&5 19719 echo "$as_me:__oline__: \$? = $ac_status" >&5 19720 if (exit $ac_status) && test -s "$ac_outfile"; then 19721 # The compiler can only warn and ignore the option if not recognized 19722 # So say no if there are warnings other than the usual output. 19723 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 19724 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 19725 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 19726 lt_cv_prog_compiler_pic_works_CXX=yes 19727 fi 19728 fi 19729 $rm conftest* 19730 19731fi 19732{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 19733echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; } 19734 19735if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 19736 case $lt_prog_compiler_pic_CXX in 19737 "" | " "*) ;; 19738 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 19739 esac 19740else 19741 lt_prog_compiler_pic_CXX= 19742 lt_prog_compiler_can_build_shared_CXX=no 19743fi 19744 19745fi 19746case $host_os in 19747 # For platforms which do not support PIC, -DPIC is meaningless: 19748 *djgpp*) 19749 lt_prog_compiler_pic_CXX= 19750 ;; 19751 *) 19752 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 19753 ;; 19754esac 19755 19756# 19757# Check to make sure the static flag actually works. 19758# 19759wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 19760{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 19761echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 19762if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then 19763 echo $ECHO_N "(cached) $ECHO_C" >&6 19764else 19765 lt_cv_prog_compiler_static_works_CXX=no 19766 save_LDFLAGS="$LDFLAGS" 19767 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 19768 echo "$lt_simple_link_test_code" > conftest.$ac_ext 19769 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 19770 # The linker can only warn and ignore the option if not recognized 19771 # So say no if there are warnings 19772 if test -s conftest.err; then 19773 # Append any errors to the config.log. 19774 cat conftest.err 1>&5 19775 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 19776 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 19777 if diff conftest.exp conftest.er2 >/dev/null; then 19778 lt_cv_prog_compiler_static_works_CXX=yes 19779 fi 19780 else 19781 lt_cv_prog_compiler_static_works_CXX=yes 19782 fi 19783 fi 19784 $rm -r conftest* 19785 LDFLAGS="$save_LDFLAGS" 19786 19787fi 19788{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5 19789echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; } 19790 19791if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 19792 : 19793else 19794 lt_prog_compiler_static_CXX= 19795fi 19796 19797 19798{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 19799echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 19800if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 19801 echo $ECHO_N "(cached) $ECHO_C" >&6 19802else 19803 lt_cv_prog_compiler_c_o_CXX=no 19804 $rm -r conftest 2>/dev/null 19805 mkdir conftest 19806 cd conftest 19807 mkdir out 19808 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19809 19810 lt_compiler_flag="-o out/conftest2.$ac_objext" 19811 # Insert the option either (1) after the last *FLAGS variable, or 19812 # (2) before a word containing "conftest.", or (3) at the end. 19813 # Note that $ac_compile itself does not contain backslashes and begins 19814 # with a dollar sign (not a hyphen), so the echo should work correctly. 19815 lt_compile=`echo "$ac_compile" | $SED \ 19816 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19817 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19818 -e 's:$: $lt_compiler_flag:'` 19819 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 19820 (eval "$lt_compile" 2>out/conftest.err) 19821 ac_status=$? 19822 cat out/conftest.err >&5 19823 echo "$as_me:__oline__: \$? = $ac_status" >&5 19824 if (exit $ac_status) && test -s out/conftest2.$ac_objext 19825 then 19826 # The compiler can only warn and ignore the option if not recognized 19827 # So say no if there are warnings 19828 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 19829 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 19830 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 19831 lt_cv_prog_compiler_c_o_CXX=yes 19832 fi 19833 fi 19834 chmod u+w . 2>&5 19835 $rm conftest* 19836 # SGI C++ compiler will create directory out/ii_files/ for 19837 # template instantiation 19838 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 19839 $rm out/* && rmdir out 19840 cd .. 19841 rmdir conftest 19842 $rm conftest* 19843 19844fi 19845{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 19846echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 19847 19848 19849hard_links="nottested" 19850if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 19851 # do not overwrite the value of need_locks provided by the user 19852 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 19853echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 19854 hard_links=yes 19855 $rm conftest* 19856 ln conftest.a conftest.b 2>/dev/null && hard_links=no 19857 touch conftest.a 19858 ln conftest.a conftest.b 2>&5 || hard_links=no 19859 ln conftest.a conftest.b 2>/dev/null && hard_links=no 19860 { echo "$as_me:$LINENO: result: $hard_links" >&5 19861echo "${ECHO_T}$hard_links" >&6; } 19862 if test "$hard_links" = no; then 19863 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 19864echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 19865 need_locks=warn 19866 fi 19867else 19868 need_locks=no 19869fi 19870 19871{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 19872echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 19873 19874 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 19875 case $host_os in 19876 aix[4-9]*) 19877 # If we're using GNU nm, then we don't want the "-C" option. 19878 # -C means demangle to AIX nm, but means don't demangle with GNU nm 19879 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 19880 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' 19881 else 19882 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' 19883 fi 19884 ;; 19885 pw32*) 19886 export_symbols_cmds_CXX="$ltdll_cmds" 19887 ;; 19888 cygwin* | mingw*) 19889 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' 19890 ;; 19891 *) 19892 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 19893 ;; 19894 esac 19895 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 19896 19897{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 19898echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 19899test "$ld_shlibs_CXX" = no && can_build_shared=no 19900 19901# 19902# Do we need to explicitly link libc? 19903# 19904case "x$archive_cmds_need_lc_CXX" in 19905x|xyes) 19906 # Assume -lc should be added 19907 archive_cmds_need_lc_CXX=yes 19908 19909 if test "$enable_shared" = yes && test "$GCC" = yes; then 19910 case $archive_cmds_CXX in 19911 *'~'*) 19912 # FIXME: we may have to deal with multi-command sequences. 19913 ;; 19914 '$CC '*) 19915 # Test whether the compiler implicitly links with -lc since on some 19916 # systems, -lgcc has to come before -lc. If gcc already passes -lc 19917 # to ld, don't add -lc before -lgcc. 19918 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 19919echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 19920 $rm conftest* 19921 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19922 19923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19924 (eval $ac_compile) 2>&5 19925 ac_status=$? 19926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19927 (exit $ac_status); } 2>conftest.err; then 19928 soname=conftest 19929 lib=conftest 19930 libobjs=conftest.$ac_objext 19931 deplibs= 19932 wl=$lt_prog_compiler_wl_CXX 19933 pic_flag=$lt_prog_compiler_pic_CXX 19934 compiler_flags=-v 19935 linker_flags=-v 19936 verstring= 19937 output_objdir=. 19938 libname=conftest 19939 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 19940 allow_undefined_flag_CXX= 19941 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 19942 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 19943 ac_status=$? 19944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19945 (exit $ac_status); } 19946 then 19947 archive_cmds_need_lc_CXX=no 19948 else 19949 archive_cmds_need_lc_CXX=yes 19950 fi 19951 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 19952 else 19953 cat conftest.err 1>&5 19954 fi 19955 $rm conftest* 19956 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 19957echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 19958 ;; 19959 esac 19960 fi 19961 ;; 19962esac 19963 19964{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 19965echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 19966library_names_spec= 19967libname_spec='lib$name' 19968soname_spec= 19969shrext_cmds=".so" 19970postinstall_cmds= 19971postuninstall_cmds= 19972finish_cmds= 19973finish_eval= 19974shlibpath_var= 19975shlibpath_overrides_runpath=unknown 19976version_type=none 19977dynamic_linker="$host_os ld.so" 19978sys_lib_dlsearch_path_spec="/lib /usr/lib" 19979 19980need_lib_prefix=unknown 19981hardcode_into_libs=no 19982 19983# when you set need_version to no, make sure it does not cause -set_version 19984# flags to be left without arguments 19985need_version=unknown 19986 19987case $host_os in 19988aix3*) 19989 version_type=linux 19990 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 19991 shlibpath_var=LIBPATH 19992 19993 # AIX 3 has no versioning support, so we append a major version to the name. 19994 soname_spec='${libname}${release}${shared_ext}$major' 19995 ;; 19996 19997aix[4-9]*) 19998 version_type=linux 19999 need_lib_prefix=no 20000 need_version=no 20001 hardcode_into_libs=yes 20002 if test "$host_cpu" = ia64; then 20003 # AIX 5 supports IA64 20004 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 20005 shlibpath_var=LD_LIBRARY_PATH 20006 else 20007 # With GCC up to 2.95.x, collect2 would create an import file 20008 # for dependence libraries. The import file would start with 20009 # the line `#! .'. This would cause the generated library to 20010 # depend on `.', always an invalid library. This was fixed in 20011 # development snapshots of GCC prior to 3.0. 20012 case $host_os in 20013 aix4 | aix4.[01] | aix4.[01].*) 20014 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 20015 echo ' yes ' 20016 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 20017 : 20018 else 20019 can_build_shared=no 20020 fi 20021 ;; 20022 esac 20023 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 20024 # soname into executable. Probably we can add versioning support to 20025 # collect2, so additional links can be useful in future. 20026 if test "$aix_use_runtimelinking" = yes; then 20027 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 20028 # instead of lib<name>.a to let people know that these are not 20029 # typical AIX shared libraries. 20030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20031 else 20032 # We preserve .a as extension for shared libraries through AIX4.2 20033 # and later when we are not doing run time linking. 20034 library_names_spec='${libname}${release}.a $libname.a' 20035 soname_spec='${libname}${release}${shared_ext}$major' 20036 fi 20037 shlibpath_var=LIBPATH 20038 fi 20039 ;; 20040 20041amigaos*) 20042 library_names_spec='$libname.ixlibrary $libname.a' 20043 # Create ${libname}_ixlibrary.a entries in /sys/libs. 20044 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' 20045 ;; 20046 20047beos*) 20048 library_names_spec='${libname}${shared_ext}' 20049 dynamic_linker="$host_os ld.so" 20050 shlibpath_var=LIBRARY_PATH 20051 ;; 20052 20053bsdi[45]*) 20054 version_type=linux 20055 need_version=no 20056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20057 soname_spec='${libname}${release}${shared_ext}$major' 20058 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 20059 shlibpath_var=LD_LIBRARY_PATH 20060 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 20061 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 20062 # the default ld.so.conf also contains /usr/contrib/lib and 20063 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 20064 # libtool to hard-code these into programs 20065 ;; 20066 20067cygwin* | mingw* | pw32*) 20068 version_type=windows 20069 shrext_cmds=".dll" 20070 need_version=no 20071 need_lib_prefix=no 20072 20073 case $GCC,$host_os in 20074 yes,cygwin* | yes,mingw* | yes,pw32*) 20075 library_names_spec='$libname.dll.a' 20076 # DLL is installed to $(libdir)/../bin by postinstall_cmds 20077 postinstall_cmds='base_file=`basename \${file}`~ 20078 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 20079 dldir=$destdir/`dirname \$dlpath`~ 20080 test -d \$dldir || mkdir -p \$dldir~ 20081 $install_prog $dir/$dlname \$dldir/$dlname~ 20082 chmod a+x \$dldir/$dlname' 20083 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 20084 dlpath=$dir/\$dldll~ 20085 $rm \$dlpath' 20086 shlibpath_overrides_runpath=yes 20087 20088 case $host_os in 20089 cygwin*) 20090 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 20091 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 20092 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 20093 ;; 20094 mingw*) 20095 # MinGW DLLs use traditional 'lib' prefix 20096 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 20097 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 20098 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 20099 # It is most probably a Windows format PATH printed by 20100 # mingw gcc, but we are running on Cygwin. Gcc prints its search 20101 # path with ; separators, and with drive letters. We can handle the 20102 # drive letters (cygwin fileutils understands them), so leave them, 20103 # especially as we might pass files found there to a mingw objdump, 20104 # which wouldn't understand a cygwinified path. Ahh. 20105 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 20106 else 20107 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 20108 fi 20109 ;; 20110 pw32*) 20111 # pw32 DLLs use 'pw' prefix rather than 'lib' 20112 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 20113 ;; 20114 esac 20115 ;; 20116 20117 *) 20118 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 20119 ;; 20120 esac 20121 dynamic_linker='Win32 ld.exe' 20122 # FIXME: first we should search . and the directory the executable is in 20123 shlibpath_var=PATH 20124 ;; 20125 20126darwin* | rhapsody*) 20127 dynamic_linker="$host_os dyld" 20128 version_type=darwin 20129 need_lib_prefix=no 20130 need_version=no 20131 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 20132 soname_spec='${libname}${release}${major}$shared_ext' 20133 shlibpath_overrides_runpath=yes 20134 shlibpath_var=DYLD_LIBRARY_PATH 20135 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 20136 20137 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 20138 ;; 20139 20140dgux*) 20141 version_type=linux 20142 need_lib_prefix=no 20143 need_version=no 20144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 20145 soname_spec='${libname}${release}${shared_ext}$major' 20146 shlibpath_var=LD_LIBRARY_PATH 20147 ;; 20148 20149freebsd1*) 20150 dynamic_linker=no 20151 ;; 20152 20153freebsd* | dragonfly*) 20154 # DragonFly does not have aout. When/if they implement a new 20155 # versioning mechanism, adjust this. 20156 if test -x /usr/bin/objformat; then 20157 objformat=`/usr/bin/objformat` 20158 else 20159 case $host_os in 20160 freebsd[123]*) objformat=aout ;; 20161 *) objformat=elf ;; 20162 esac 20163 fi 20164 version_type=freebsd-$objformat 20165 case $version_type in 20166 freebsd-elf*) 20167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 20168 need_version=no 20169 need_lib_prefix=no 20170 ;; 20171 freebsd-*) 20172 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 20173 need_version=yes 20174 ;; 20175 esac 20176 shlibpath_var=LD_LIBRARY_PATH 20177 case $host_os in 20178 freebsd2*) 20179 shlibpath_overrides_runpath=yes 20180 ;; 20181 freebsd3.[01]* | freebsdelf3.[01]*) 20182 shlibpath_overrides_runpath=yes 20183 hardcode_into_libs=yes 20184 ;; 20185 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 20186 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 20187 shlibpath_overrides_runpath=no 20188 hardcode_into_libs=yes 20189 ;; 20190 *) # from 4.6 on, and DragonFly 20191 shlibpath_overrides_runpath=yes 20192 hardcode_into_libs=yes 20193 ;; 20194 esac 20195 ;; 20196 20197gnu*) 20198 version_type=linux 20199 need_lib_prefix=no 20200 need_version=no 20201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 20202 soname_spec='${libname}${release}${shared_ext}$major' 20203 shlibpath_var=LD_LIBRARY_PATH 20204 hardcode_into_libs=yes 20205 ;; 20206 20207hpux9* | hpux10* | hpux11*) 20208 # Give a soname corresponding to the major version so that dld.sl refuses to 20209 # link against other versions. 20210 version_type=sunos 20211 need_lib_prefix=no 20212 need_version=no 20213 case $host_cpu in 20214 ia64*) 20215 shrext_cmds='.so' 20216 hardcode_into_libs=yes 20217 dynamic_linker="$host_os dld.so" 20218 shlibpath_var=LD_LIBRARY_PATH 20219 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 20220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20221 soname_spec='${libname}${release}${shared_ext}$major' 20222 if test "X$HPUX_IA64_MODE" = X32; then 20223 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 20224 else 20225 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 20226 fi 20227 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 20228 ;; 20229 hppa*64*) 20230 shrext_cmds='.sl' 20231 hardcode_into_libs=yes 20232 dynamic_linker="$host_os dld.sl" 20233 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 20234 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 20235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20236 soname_spec='${libname}${release}${shared_ext}$major' 20237 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 20238 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 20239 ;; 20240 *) 20241 shrext_cmds='.sl' 20242 dynamic_linker="$host_os dld.sl" 20243 shlibpath_var=SHLIB_PATH 20244 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 20245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20246 soname_spec='${libname}${release}${shared_ext}$major' 20247 ;; 20248 esac 20249 # HP-UX runs *really* slowly unless shared libraries are mode 555. 20250 postinstall_cmds='chmod 555 $lib' 20251 ;; 20252 20253interix[3-9]*) 20254 version_type=linux 20255 need_lib_prefix=no 20256 need_version=no 20257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 20258 soname_spec='${libname}${release}${shared_ext}$major' 20259 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 20260 shlibpath_var=LD_LIBRARY_PATH 20261 shlibpath_overrides_runpath=no 20262 hardcode_into_libs=yes 20263 ;; 20264 20265irix5* | irix6* | nonstopux*) 20266 case $host_os in 20267 nonstopux*) version_type=nonstopux ;; 20268 *) 20269 if test "$lt_cv_prog_gnu_ld" = yes; then 20270 version_type=linux 20271 else 20272 version_type=irix 20273 fi ;; 20274 esac 20275 need_lib_prefix=no 20276 need_version=no 20277 soname_spec='${libname}${release}${shared_ext}$major' 20278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 20279 case $host_os in 20280 irix5* | nonstopux*) 20281 libsuff= shlibsuff= 20282 ;; 20283 *) 20284 case $LD in # libtool.m4 will add one of these switches to LD 20285 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 20286 libsuff= shlibsuff= libmagic=32-bit;; 20287 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 20288 libsuff=32 shlibsuff=N32 libmagic=N32;; 20289 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 20290 libsuff=64 shlibsuff=64 libmagic=64-bit;; 20291 *) libsuff= shlibsuff= libmagic=never-match;; 20292 esac 20293 ;; 20294 esac 20295 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 20296 shlibpath_overrides_runpath=no 20297 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 20298 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 20299 hardcode_into_libs=yes 20300 ;; 20301 20302# No shared lib support for Linux oldld, aout, or coff. 20303linux*oldld* | linux*aout* | linux*coff*) 20304 dynamic_linker=no 20305 ;; 20306 20307# This must be Linux ELF. 20308linux* | k*bsd*-gnu) 20309 version_type=linux 20310 need_lib_prefix=no 20311 need_version=no 20312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20313 soname_spec='${libname}${release}${shared_ext}$major' 20314 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 20315 shlibpath_var=LD_LIBRARY_PATH 20316 shlibpath_overrides_runpath=no 20317 # This implies no fast_install, which is unacceptable. 20318 # Some rework will be needed to allow for fast_install 20319 # before this can be enabled. 20320 hardcode_into_libs=yes 20321 20322 # Append ld.so.conf contents to the search path 20323 if test -f /etc/ld.so.conf; then 20324 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' ' '` 20325 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 20326 fi 20327 20328 # We used to test for /lib/ld.so.1 and disable shared libraries on 20329 # powerpc, because MkLinux only supported shared libraries with the 20330 # GNU dynamic linker. Since this was broken with cross compilers, 20331 # most powerpc-linux boxes support dynamic linking these days and 20332 # people can always --disable-shared, the test was removed, and we 20333 # assume the GNU/Linux dynamic linker is in use. 20334 dynamic_linker='GNU/Linux ld.so' 20335 ;; 20336 20337netbsd*) 20338 version_type=sunos 20339 need_lib_prefix=no 20340 need_version=no 20341 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 20342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 20343 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 20344 dynamic_linker='NetBSD (a.out) ld.so' 20345 else 20346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 20347 soname_spec='${libname}${release}${shared_ext}$major' 20348 dynamic_linker='NetBSD ld.elf_so' 20349 fi 20350 shlibpath_var=LD_LIBRARY_PATH 20351 shlibpath_overrides_runpath=yes 20352 hardcode_into_libs=yes 20353 ;; 20354 20355newsos6) 20356 version_type=linux 20357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20358 shlibpath_var=LD_LIBRARY_PATH 20359 shlibpath_overrides_runpath=yes 20360 ;; 20361 20362nto-qnx*) 20363 version_type=linux 20364 need_lib_prefix=no 20365 need_version=no 20366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20367 soname_spec='${libname}${release}${shared_ext}$major' 20368 shlibpath_var=LD_LIBRARY_PATH 20369 shlibpath_overrides_runpath=yes 20370 ;; 20371 20372openbsd*) 20373 version_type=sunos 20374 sys_lib_dlsearch_path_spec="/usr/lib" 20375 need_lib_prefix=no 20376 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 20377 case $host_os in 20378 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 20379 *) need_version=no ;; 20380 esac 20381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 20382 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 20383 shlibpath_var=LD_LIBRARY_PATH 20384 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 20385 case $host_os in 20386 openbsd2.[89] | openbsd2.[89].*) 20387 shlibpath_overrides_runpath=no 20388 ;; 20389 *) 20390 shlibpath_overrides_runpath=yes 20391 ;; 20392 esac 20393 else 20394 shlibpath_overrides_runpath=yes 20395 fi 20396 ;; 20397 20398os2*) 20399 libname_spec='$name' 20400 shrext_cmds=".dll" 20401 need_lib_prefix=no 20402 library_names_spec='$libname${shared_ext} $libname.a' 20403 dynamic_linker='OS/2 ld.exe' 20404 shlibpath_var=LIBPATH 20405 ;; 20406 20407osf3* | osf4* | osf5*) 20408 version_type=osf 20409 need_lib_prefix=no 20410 need_version=no 20411 soname_spec='${libname}${release}${shared_ext}$major' 20412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20413 shlibpath_var=LD_LIBRARY_PATH 20414 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 20415 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 20416 ;; 20417 20418rdos*) 20419 dynamic_linker=no 20420 ;; 20421 20422solaris*) 20423 version_type=linux 20424 need_lib_prefix=no 20425 need_version=no 20426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20427 soname_spec='${libname}${release}${shared_ext}$major' 20428 shlibpath_var=LD_LIBRARY_PATH 20429 shlibpath_overrides_runpath=yes 20430 hardcode_into_libs=yes 20431 # ldd complains unless libraries are executable 20432 postinstall_cmds='chmod +x $lib' 20433 ;; 20434 20435sunos4*) 20436 version_type=sunos 20437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 20438 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 20439 shlibpath_var=LD_LIBRARY_PATH 20440 shlibpath_overrides_runpath=yes 20441 if test "$with_gnu_ld" = yes; then 20442 need_lib_prefix=no 20443 fi 20444 need_version=yes 20445 ;; 20446 20447sysv4 | sysv4.3*) 20448 version_type=linux 20449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20450 soname_spec='${libname}${release}${shared_ext}$major' 20451 shlibpath_var=LD_LIBRARY_PATH 20452 case $host_vendor in 20453 sni) 20454 shlibpath_overrides_runpath=no 20455 need_lib_prefix=no 20456 export_dynamic_flag_spec='${wl}-Blargedynsym' 20457 runpath_var=LD_RUN_PATH 20458 ;; 20459 siemens) 20460 need_lib_prefix=no 20461 ;; 20462 motorola) 20463 need_lib_prefix=no 20464 need_version=no 20465 shlibpath_overrides_runpath=no 20466 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 20467 ;; 20468 esac 20469 ;; 20470 20471sysv4*MP*) 20472 if test -d /usr/nec ;then 20473 version_type=linux 20474 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 20475 soname_spec='$libname${shared_ext}.$major' 20476 shlibpath_var=LD_LIBRARY_PATH 20477 fi 20478 ;; 20479 20480sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 20481 version_type=freebsd-elf 20482 need_lib_prefix=no 20483 need_version=no 20484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 20485 soname_spec='${libname}${release}${shared_ext}$major' 20486 shlibpath_var=LD_LIBRARY_PATH 20487 hardcode_into_libs=yes 20488 if test "$with_gnu_ld" = yes; then 20489 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 20490 shlibpath_overrides_runpath=no 20491 else 20492 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 20493 shlibpath_overrides_runpath=yes 20494 case $host_os in 20495 sco3.2v5*) 20496 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 20497 ;; 20498 esac 20499 fi 20500 sys_lib_dlsearch_path_spec='/usr/lib' 20501 ;; 20502 20503uts4*) 20504 version_type=linux 20505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20506 soname_spec='${libname}${release}${shared_ext}$major' 20507 shlibpath_var=LD_LIBRARY_PATH 20508 ;; 20509 20510*) 20511 dynamic_linker=no 20512 ;; 20513esac 20514{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 20515echo "${ECHO_T}$dynamic_linker" >&6; } 20516test "$dynamic_linker" = no && can_build_shared=no 20517 20518if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 20519 echo $ECHO_N "(cached) $ECHO_C" >&6 20520else 20521 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 20522fi 20523 20524sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 20525if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 20526 echo $ECHO_N "(cached) $ECHO_C" >&6 20527else 20528 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 20529fi 20530 20531sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 20532 20533variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 20534if test "$GCC" = yes; then 20535 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 20536fi 20537 20538{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 20539echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 20540hardcode_action_CXX= 20541if test -n "$hardcode_libdir_flag_spec_CXX" || \ 20542 test -n "$runpath_var_CXX" || \ 20543 test "X$hardcode_automatic_CXX" = "Xyes" ; then 20544 20545 # We can hardcode non-existant directories. 20546 if test "$hardcode_direct_CXX" != no && 20547 # If the only mechanism to avoid hardcoding is shlibpath_var, we 20548 # have to relink, otherwise we might link with an installed library 20549 # when we should be linking with a yet-to-be-installed one 20550 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 20551 test "$hardcode_minus_L_CXX" != no; then 20552 # Linking always hardcodes the temporary library directory. 20553 hardcode_action_CXX=relink 20554 else 20555 # We can link without hardcoding, and we can hardcode nonexisting dirs. 20556 hardcode_action_CXX=immediate 20557 fi 20558else 20559 # We cannot hardcode anything, or else we can only hardcode existing 20560 # directories. 20561 hardcode_action_CXX=unsupported 20562fi 20563{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 20564echo "${ECHO_T}$hardcode_action_CXX" >&6; } 20565 20566if test "$hardcode_action_CXX" = relink; then 20567 # Fast installation is not supported 20568 enable_fast_install=no 20569elif test "$shlibpath_overrides_runpath" = yes || 20570 test "$enable_shared" = no; then 20571 # Fast installation is not necessary 20572 enable_fast_install=needless 20573fi 20574 20575 20576# The else clause should only fire when bootstrapping the 20577# libtool distribution, otherwise you forgot to ship ltmain.sh 20578# with your package, and you will get complaints that there are 20579# no rules to generate ltmain.sh. 20580if test -f "$ltmain"; then 20581 # See if we are running on zsh, and set the options which allow our commands through 20582 # without removal of \ escapes. 20583 if test -n "${ZSH_VERSION+set}" ; then 20584 setopt NO_GLOB_SUBST 20585 fi 20586 # Now quote all the things that may contain metacharacters while being 20587 # careful not to overquote the AC_SUBSTed values. We take copies of the 20588 # variables and quote the copies for generation of the libtool script. 20589 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 20590 SED SHELL STRIP \ 20591 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 20592 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 20593 deplibs_check_method reload_flag reload_cmds need_locks \ 20594 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 20595 lt_cv_sys_global_symbol_to_c_name_address \ 20596 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 20597 old_postinstall_cmds old_postuninstall_cmds \ 20598 compiler_CXX \ 20599 CC_CXX \ 20600 LD_CXX \ 20601 lt_prog_compiler_wl_CXX \ 20602 lt_prog_compiler_pic_CXX \ 20603 lt_prog_compiler_static_CXX \ 20604 lt_prog_compiler_no_builtin_flag_CXX \ 20605 export_dynamic_flag_spec_CXX \ 20606 thread_safe_flag_spec_CXX \ 20607 whole_archive_flag_spec_CXX \ 20608 enable_shared_with_static_runtimes_CXX \ 20609 old_archive_cmds_CXX \ 20610 old_archive_from_new_cmds_CXX \ 20611 predep_objects_CXX \ 20612 postdep_objects_CXX \ 20613 predeps_CXX \ 20614 postdeps_CXX \ 20615 compiler_lib_search_path_CXX \ 20616 compiler_lib_search_dirs_CXX \ 20617 archive_cmds_CXX \ 20618 archive_expsym_cmds_CXX \ 20619 postinstall_cmds_CXX \ 20620 postuninstall_cmds_CXX \ 20621 old_archive_from_expsyms_cmds_CXX \ 20622 allow_undefined_flag_CXX \ 20623 no_undefined_flag_CXX \ 20624 export_symbols_cmds_CXX \ 20625 hardcode_libdir_flag_spec_CXX \ 20626 hardcode_libdir_flag_spec_ld_CXX \ 20627 hardcode_libdir_separator_CXX \ 20628 hardcode_automatic_CXX \ 20629 module_cmds_CXX \ 20630 module_expsym_cmds_CXX \ 20631 lt_cv_prog_compiler_c_o_CXX \ 20632 fix_srcfile_path_CXX \ 20633 exclude_expsyms_CXX \ 20634 include_expsyms_CXX; do 20635 20636 case $var in 20637 old_archive_cmds_CXX | \ 20638 old_archive_from_new_cmds_CXX | \ 20639 archive_cmds_CXX | \ 20640 archive_expsym_cmds_CXX | \ 20641 module_cmds_CXX | \ 20642 module_expsym_cmds_CXX | \ 20643 old_archive_from_expsyms_cmds_CXX | \ 20644 export_symbols_cmds_CXX | \ 20645 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 20646 postinstall_cmds | postuninstall_cmds | \ 20647 old_postinstall_cmds | old_postuninstall_cmds | \ 20648 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 20649 # Double-quote double-evaled strings. 20650 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 20651 ;; 20652 *) 20653 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 20654 ;; 20655 esac 20656 done 20657 20658 case $lt_echo in 20659 *'\$0 --fallback-echo"') 20660 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 20661 ;; 20662 esac 20663 20664cfgfile="$ofile" 20665 20666 cat <<__EOF__ >> "$cfgfile" 20667# ### BEGIN LIBTOOL TAG CONFIG: $tagname 20668 20669# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20670 20671# Shell to use when invoking shell scripts. 20672SHELL=$lt_SHELL 20673 20674# Whether or not to build shared libraries. 20675build_libtool_libs=$enable_shared 20676 20677# Whether or not to build static libraries. 20678build_old_libs=$enable_static 20679 20680# Whether or not to add -lc for building shared libraries. 20681build_libtool_need_lc=$archive_cmds_need_lc_CXX 20682 20683# Whether or not to disallow shared libs when runtime libs are static 20684allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 20685 20686# Whether or not to optimize for fast installation. 20687fast_install=$enable_fast_install 20688 20689# The host system. 20690host_alias=$host_alias 20691host=$host 20692host_os=$host_os 20693 20694# The build system. 20695build_alias=$build_alias 20696build=$build 20697build_os=$build_os 20698 20699# An echo program that does not interpret backslashes. 20700echo=$lt_echo 20701 20702# The archiver. 20703AR=$lt_AR 20704AR_FLAGS=$lt_AR_FLAGS 20705 20706# A C compiler. 20707LTCC=$lt_LTCC 20708 20709# LTCC compiler flags. 20710LTCFLAGS=$lt_LTCFLAGS 20711 20712# A language-specific compiler. 20713CC=$lt_compiler_CXX 20714 20715# Is the compiler the GNU C compiler? 20716with_gcc=$GCC_CXX 20717 20718# An ERE matcher. 20719EGREP=$lt_EGREP 20720 20721# The linker used to build libraries. 20722LD=$lt_LD_CXX 20723 20724# Whether we need hard or soft links. 20725LN_S=$lt_LN_S 20726 20727# A BSD-compatible nm program. 20728NM=$lt_NM 20729 20730# A symbol stripping program 20731STRIP=$lt_STRIP 20732 20733# Used to examine libraries when file_magic_cmd begins "file" 20734MAGIC_CMD=$MAGIC_CMD 20735 20736# Used on cygwin: DLL creation program. 20737DLLTOOL="$DLLTOOL" 20738 20739# Used on cygwin: object dumper. 20740OBJDUMP="$OBJDUMP" 20741 20742# Used on cygwin: assembler. 20743AS="$AS" 20744 20745# The name of the directory that contains temporary libtool files. 20746objdir=$objdir 20747 20748# How to create reloadable object files. 20749reload_flag=$lt_reload_flag 20750reload_cmds=$lt_reload_cmds 20751 20752# How to pass a linker flag through the compiler. 20753wl=$lt_lt_prog_compiler_wl_CXX 20754 20755# Object file suffix (normally "o"). 20756objext="$ac_objext" 20757 20758# Old archive suffix (normally "a"). 20759libext="$libext" 20760 20761# Shared library suffix (normally ".so"). 20762shrext_cmds='$shrext_cmds' 20763 20764# Executable file suffix (normally ""). 20765exeext="$exeext" 20766 20767# Additional compiler flags for building library objects. 20768pic_flag=$lt_lt_prog_compiler_pic_CXX 20769pic_mode=$pic_mode 20770 20771# What is the maximum length of a command? 20772max_cmd_len=$lt_cv_sys_max_cmd_len 20773 20774# Does compiler simultaneously support -c and -o options? 20775compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 20776 20777# Must we lock files when doing compilation? 20778need_locks=$lt_need_locks 20779 20780# Do we need the lib prefix for modules? 20781need_lib_prefix=$need_lib_prefix 20782 20783# Do we need a version for libraries? 20784need_version=$need_version 20785 20786# Whether dlopen is supported. 20787dlopen_support=$enable_dlopen 20788 20789# Whether dlopen of programs is supported. 20790dlopen_self=$enable_dlopen_self 20791 20792# Whether dlopen of statically linked programs is supported. 20793dlopen_self_static=$enable_dlopen_self_static 20794 20795# Compiler flag to prevent dynamic linking. 20796link_static_flag=$lt_lt_prog_compiler_static_CXX 20797 20798# Compiler flag to turn off builtin functions. 20799no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 20800 20801# Compiler flag to allow reflexive dlopens. 20802export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 20803 20804# Compiler flag to generate shared objects directly from archives. 20805whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 20806 20807# Compiler flag to generate thread-safe objects. 20808thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 20809 20810# Library versioning type. 20811version_type=$version_type 20812 20813# Format of library name prefix. 20814libname_spec=$lt_libname_spec 20815 20816# List of archive names. First name is the real one, the rest are links. 20817# The last name is the one that the linker finds with -lNAME. 20818library_names_spec=$lt_library_names_spec 20819 20820# The coded name of the library, if different from the real name. 20821soname_spec=$lt_soname_spec 20822 20823# Commands used to build and install an old-style archive. 20824RANLIB=$lt_RANLIB 20825old_archive_cmds=$lt_old_archive_cmds_CXX 20826old_postinstall_cmds=$lt_old_postinstall_cmds 20827old_postuninstall_cmds=$lt_old_postuninstall_cmds 20828 20829# Create an old-style archive from a shared archive. 20830old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 20831 20832# Create a temporary old-style archive to link instead of a shared archive. 20833old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 20834 20835# Commands used to build and install a shared archive. 20836archive_cmds=$lt_archive_cmds_CXX 20837archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 20838postinstall_cmds=$lt_postinstall_cmds 20839postuninstall_cmds=$lt_postuninstall_cmds 20840 20841# Commands used to build a loadable module (assumed same as above if empty) 20842module_cmds=$lt_module_cmds_CXX 20843module_expsym_cmds=$lt_module_expsym_cmds_CXX 20844 20845# Commands to strip libraries. 20846old_striplib=$lt_old_striplib 20847striplib=$lt_striplib 20848 20849# Dependencies to place before the objects being linked to create a 20850# shared library. 20851predep_objects=$lt_predep_objects_CXX 20852 20853# Dependencies to place after the objects being linked to create a 20854# shared library. 20855postdep_objects=$lt_postdep_objects_CXX 20856 20857# Dependencies to place before the objects being linked to create a 20858# shared library. 20859predeps=$lt_predeps_CXX 20860 20861# Dependencies to place after the objects being linked to create a 20862# shared library. 20863postdeps=$lt_postdeps_CXX 20864 20865# The directories searched by this compiler when creating a shared 20866# library 20867compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 20868 20869# The library search path used internally by the compiler when linking 20870# a shared library. 20871compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 20872 20873# Method to check whether dependent libraries are shared objects. 20874deplibs_check_method=$lt_deplibs_check_method 20875 20876# Command to use when deplibs_check_method == file_magic. 20877file_magic_cmd=$lt_file_magic_cmd 20878 20879# Flag that allows shared libraries with undefined symbols to be built. 20880allow_undefined_flag=$lt_allow_undefined_flag_CXX 20881 20882# Flag that forces no undefined symbols. 20883no_undefined_flag=$lt_no_undefined_flag_CXX 20884 20885# Commands used to finish a libtool library installation in a directory. 20886finish_cmds=$lt_finish_cmds 20887 20888# Same as above, but a single script fragment to be evaled but not shown. 20889finish_eval=$lt_finish_eval 20890 20891# Take the output of nm and produce a listing of raw symbols and C names. 20892global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20893 20894# Transform the output of nm in a proper C declaration 20895global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20896 20897# Transform the output of nm in a C name address pair 20898global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20899 20900# This is the shared library runtime path variable. 20901runpath_var=$runpath_var 20902 20903# This is the shared library path variable. 20904shlibpath_var=$shlibpath_var 20905 20906# Is shlibpath searched before the hard-coded library search path? 20907shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20908 20909# How to hardcode a shared library path into an executable. 20910hardcode_action=$hardcode_action_CXX 20911 20912# Whether we should hardcode library paths into libraries. 20913hardcode_into_libs=$hardcode_into_libs 20914 20915# Flag to hardcode \$libdir into a binary during linking. 20916# This must work even if \$libdir does not exist. 20917hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 20918 20919# If ld is used when linking, flag to hardcode \$libdir into 20920# a binary during linking. This must work even if \$libdir does 20921# not exist. 20922hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 20923 20924# Whether we need a single -rpath flag with a separated argument. 20925hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 20926 20927# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 20928# resulting binary. 20929hardcode_direct=$hardcode_direct_CXX 20930 20931# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 20932# resulting binary. 20933hardcode_minus_L=$hardcode_minus_L_CXX 20934 20935# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 20936# the resulting binary. 20937hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 20938 20939# Set to yes if building a shared library automatically hardcodes DIR into the library 20940# and all subsequent libraries and executables linked against it. 20941hardcode_automatic=$hardcode_automatic_CXX 20942 20943# Variables whose values should be saved in libtool wrapper scripts and 20944# restored at relink time. 20945variables_saved_for_relink="$variables_saved_for_relink" 20946 20947# Whether libtool must link a program against all its dependency libraries. 20948link_all_deplibs=$link_all_deplibs_CXX 20949 20950# Compile-time system search path for libraries 20951sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20952 20953# Run-time system search path for libraries 20954sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20955 20956# Fix the shell variable \$srcfile for the compiler. 20957fix_srcfile_path=$lt_fix_srcfile_path 20958 20959# Set to yes if exported symbols are required. 20960always_export_symbols=$always_export_symbols_CXX 20961 20962# The commands to list exported symbols. 20963export_symbols_cmds=$lt_export_symbols_cmds_CXX 20964 20965# The commands to extract the exported symbol list from a shared archive. 20966extract_expsyms_cmds=$lt_extract_expsyms_cmds 20967 20968# Symbols that should not be listed in the preloaded symbols. 20969exclude_expsyms=$lt_exclude_expsyms_CXX 20970 20971# Symbols that must always be exported. 20972include_expsyms=$lt_include_expsyms_CXX 20973 20974# ### END LIBTOOL TAG CONFIG: $tagname 20975 20976__EOF__ 20977 20978 20979else 20980 # If there is no Makefile yet, we rely on a make rule to execute 20981 # `config.status --recheck' to rerun these tests and create the 20982 # libtool script then. 20983 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 20984 if test -f "$ltmain_in"; then 20985 test -f Makefile && make "$ltmain" 20986 fi 20987fi 20988 20989 20990ac_ext=cpp 20991ac_cpp='$CXXCPP $CPPFLAGS' 20992ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20993ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20994ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20995 20996CC=$lt_save_CC 20997LDCXX=$LD 20998LD=$lt_save_LD 20999GCC=$lt_save_GCC 21000with_gnu_ldcxx=$with_gnu_ld 21001with_gnu_ld=$lt_save_with_gnu_ld 21002lt_cv_path_LDCXX=$lt_cv_path_LD 21003lt_cv_path_LD=$lt_save_path_LD 21004lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 21005lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 21006 21007 else 21008 tagname="" 21009 fi 21010 ;; 21011 21012 F77) 21013 if test -n "$F77" && test "X$F77" != "Xno"; then 21014 21015ac_ext=f 21016ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 21017ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21018ac_compiler_gnu=$ac_cv_f77_compiler_gnu 21019 21020 21021archive_cmds_need_lc_F77=no 21022allow_undefined_flag_F77= 21023always_export_symbols_F77=no 21024archive_expsym_cmds_F77= 21025export_dynamic_flag_spec_F77= 21026hardcode_direct_F77=no 21027hardcode_libdir_flag_spec_F77= 21028hardcode_libdir_flag_spec_ld_F77= 21029hardcode_libdir_separator_F77= 21030hardcode_minus_L_F77=no 21031hardcode_automatic_F77=no 21032module_cmds_F77= 21033module_expsym_cmds_F77= 21034link_all_deplibs_F77=unknown 21035old_archive_cmds_F77=$old_archive_cmds 21036no_undefined_flag_F77= 21037whole_archive_flag_spec_F77= 21038enable_shared_with_static_runtimes_F77=no 21039 21040# Source file extension for f77 test sources. 21041ac_ext=f 21042 21043# Object file extension for compiled f77 test sources. 21044objext=o 21045objext_F77=$objext 21046 21047# Code to be used in simple compile tests 21048lt_simple_compile_test_code="\ 21049 subroutine t 21050 return 21051 end 21052" 21053 21054# Code to be used in simple link tests 21055lt_simple_link_test_code="\ 21056 program t 21057 end 21058" 21059 21060# ltmain only uses $CC for tagged configurations so make sure $CC is set. 21061 21062# If no C compiler was specified, use CC. 21063LTCC=${LTCC-"$CC"} 21064 21065# If no C compiler flags were specified, use CFLAGS. 21066LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 21067 21068# Allow CC to be a program name with arguments. 21069compiler=$CC 21070 21071 21072# save warnings/boilerplate of simple test code 21073ac_outfile=conftest.$ac_objext 21074echo "$lt_simple_compile_test_code" >conftest.$ac_ext 21075eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 21076_lt_compiler_boilerplate=`cat conftest.err` 21077$rm conftest* 21078 21079ac_outfile=conftest.$ac_objext 21080echo "$lt_simple_link_test_code" >conftest.$ac_ext 21081eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 21082_lt_linker_boilerplate=`cat conftest.err` 21083$rm -r conftest* 21084 21085 21086# Allow CC to be a program name with arguments. 21087lt_save_CC="$CC" 21088CC=${F77-"f77"} 21089compiler=$CC 21090compiler_F77=$CC 21091for cc_temp in $compiler""; do 21092 case $cc_temp in 21093 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 21094 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 21095 \-*) ;; 21096 *) break;; 21097 esac 21098done 21099cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 21100 21101 21102{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 21103echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 21104{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 21105echo "${ECHO_T}$can_build_shared" >&6; } 21106 21107{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 21108echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 21109test "$can_build_shared" = "no" && enable_shared=no 21110 21111# On AIX, shared libraries and static libraries use the same namespace, and 21112# are all built from PIC. 21113case $host_os in 21114aix3*) 21115 test "$enable_shared" = yes && enable_static=no 21116 if test -n "$RANLIB"; then 21117 archive_cmds="$archive_cmds~\$RANLIB \$lib" 21118 postinstall_cmds='$RANLIB $lib' 21119 fi 21120 ;; 21121aix[4-9]*) 21122 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 21123 test "$enable_shared" = yes && enable_static=no 21124 fi 21125 ;; 21126esac 21127{ echo "$as_me:$LINENO: result: $enable_shared" >&5 21128echo "${ECHO_T}$enable_shared" >&6; } 21129 21130{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 21131echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 21132# Make sure either enable_shared or enable_static is yes. 21133test "$enable_shared" = yes || enable_static=yes 21134{ echo "$as_me:$LINENO: result: $enable_static" >&5 21135echo "${ECHO_T}$enable_static" >&6; } 21136 21137GCC_F77="$G77" 21138LD_F77="$LD" 21139 21140lt_prog_compiler_wl_F77= 21141lt_prog_compiler_pic_F77= 21142lt_prog_compiler_static_F77= 21143 21144{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 21145echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 21146 21147 if test "$GCC" = yes; then 21148 lt_prog_compiler_wl_F77='-Wl,' 21149 lt_prog_compiler_static_F77='-static' 21150 21151 case $host_os in 21152 aix*) 21153 # All AIX code is PIC. 21154 if test "$host_cpu" = ia64; then 21155 # AIX 5 now supports IA64 processor 21156 lt_prog_compiler_static_F77='-Bstatic' 21157 fi 21158 ;; 21159 21160 amigaos*) 21161 # FIXME: we need at least 68020 code to build shared libraries, but 21162 # adding the `-m68020' flag to GCC prevents building anything better, 21163 # like `-m68040'. 21164 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 21165 ;; 21166 21167 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 21168 # PIC is the default for these OSes. 21169 ;; 21170 21171 mingw* | cygwin* | pw32* | os2*) 21172 # This hack is so that the source file can tell whether it is being 21173 # built for inclusion in a dll (and should export symbols for example). 21174 # Although the cygwin gcc ignores -fPIC, still need this for old-style 21175 # (--disable-auto-import) libraries 21176 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 21177 ;; 21178 21179 darwin* | rhapsody*) 21180 # PIC is the default on this platform 21181 # Common symbols not allowed in MH_DYLIB files 21182 lt_prog_compiler_pic_F77='-fno-common' 21183 ;; 21184 21185 interix[3-9]*) 21186 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 21187 # Instead, we relocate shared libraries at runtime. 21188 ;; 21189 21190 msdosdjgpp*) 21191 # Just because we use GCC doesn't mean we suddenly get shared libraries 21192 # on systems that don't support them. 21193 lt_prog_compiler_can_build_shared_F77=no 21194 enable_shared=no 21195 ;; 21196 21197 sysv4*MP*) 21198 if test -d /usr/nec; then 21199 lt_prog_compiler_pic_F77=-Kconform_pic 21200 fi 21201 ;; 21202 21203 hpux*) 21204 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 21205 # not for PA HP-UX. 21206 case $host_cpu in 21207 hppa*64*|ia64*) 21208 # +Z the default 21209 ;; 21210 *) 21211 lt_prog_compiler_pic_F77='-fPIC' 21212 ;; 21213 esac 21214 ;; 21215 21216 *) 21217 lt_prog_compiler_pic_F77='-fPIC' 21218 ;; 21219 esac 21220 else 21221 # PORTME Check for flag to pass linker flags through the system compiler. 21222 case $host_os in 21223 aix*) 21224 lt_prog_compiler_wl_F77='-Wl,' 21225 if test "$host_cpu" = ia64; then 21226 # AIX 5 now supports IA64 processor 21227 lt_prog_compiler_static_F77='-Bstatic' 21228 else 21229 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 21230 fi 21231 ;; 21232 darwin*) 21233 # PIC is the default on this platform 21234 # Common symbols not allowed in MH_DYLIB files 21235 case $cc_basename in 21236 xlc*) 21237 lt_prog_compiler_pic_F77='-qnocommon' 21238 lt_prog_compiler_wl_F77='-Wl,' 21239 ;; 21240 esac 21241 ;; 21242 21243 mingw* | cygwin* | pw32* | os2*) 21244 # This hack is so that the source file can tell whether it is being 21245 # built for inclusion in a dll (and should export symbols for example). 21246 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 21247 ;; 21248 21249 hpux9* | hpux10* | hpux11*) 21250 lt_prog_compiler_wl_F77='-Wl,' 21251 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 21252 # not for PA HP-UX. 21253 case $host_cpu in 21254 hppa*64*|ia64*) 21255 # +Z the default 21256 ;; 21257 *) 21258 lt_prog_compiler_pic_F77='+Z' 21259 ;; 21260 esac 21261 # Is there a better lt_prog_compiler_static that works with the bundled CC? 21262 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 21263 ;; 21264 21265 irix5* | irix6* | nonstopux*) 21266 lt_prog_compiler_wl_F77='-Wl,' 21267 # PIC (with -KPIC) is the default. 21268 lt_prog_compiler_static_F77='-non_shared' 21269 ;; 21270 21271 newsos6) 21272 lt_prog_compiler_pic_F77='-KPIC' 21273 lt_prog_compiler_static_F77='-Bstatic' 21274 ;; 21275 21276 linux* | k*bsd*-gnu) 21277 case $cc_basename in 21278 icc* | ecc*) 21279 lt_prog_compiler_wl_F77='-Wl,' 21280 lt_prog_compiler_pic_F77='-KPIC' 21281 lt_prog_compiler_static_F77='-static' 21282 ;; 21283 pgcc* | pgf77* | pgf90* | pgf95*) 21284 # Portland Group compilers (*not* the Pentium gcc compiler, 21285 # which looks to be a dead project) 21286 lt_prog_compiler_wl_F77='-Wl,' 21287 lt_prog_compiler_pic_F77='-fpic' 21288 lt_prog_compiler_static_F77='-Bstatic' 21289 ;; 21290 ccc*) 21291 lt_prog_compiler_wl_F77='-Wl,' 21292 # All Alpha code is PIC. 21293 lt_prog_compiler_static_F77='-non_shared' 21294 ;; 21295 *) 21296 case `$CC -V 2>&1 | sed 5q` in 21297 *Sun\ C*) 21298 # Sun C 5.9 21299 lt_prog_compiler_pic_F77='-KPIC' 21300 lt_prog_compiler_static_F77='-Bstatic' 21301 lt_prog_compiler_wl_F77='-Wl,' 21302 ;; 21303 *Sun\ F*) 21304 # Sun Fortran 8.3 passes all unrecognized flags to the linker 21305 lt_prog_compiler_pic_F77='-KPIC' 21306 lt_prog_compiler_static_F77='-Bstatic' 21307 lt_prog_compiler_wl_F77='' 21308 ;; 21309 esac 21310 ;; 21311 esac 21312 ;; 21313 21314 osf3* | osf4* | osf5*) 21315 lt_prog_compiler_wl_F77='-Wl,' 21316 # All OSF/1 code is PIC. 21317 lt_prog_compiler_static_F77='-non_shared' 21318 ;; 21319 21320 rdos*) 21321 lt_prog_compiler_static_F77='-non_shared' 21322 ;; 21323 21324 solaris*) 21325 lt_prog_compiler_pic_F77='-KPIC' 21326 lt_prog_compiler_static_F77='-Bstatic' 21327 case $cc_basename in 21328 f77* | f90* | f95*) 21329 lt_prog_compiler_wl_F77='-Qoption ld ';; 21330 *) 21331 lt_prog_compiler_wl_F77='-Wl,';; 21332 esac 21333 ;; 21334 21335 sunos4*) 21336 lt_prog_compiler_wl_F77='-Qoption ld ' 21337 lt_prog_compiler_pic_F77='-PIC' 21338 lt_prog_compiler_static_F77='-Bstatic' 21339 ;; 21340 21341 sysv4 | sysv4.2uw2* | sysv4.3*) 21342 lt_prog_compiler_wl_F77='-Wl,' 21343 lt_prog_compiler_pic_F77='-KPIC' 21344 lt_prog_compiler_static_F77='-Bstatic' 21345 ;; 21346 21347 sysv4*MP*) 21348 if test -d /usr/nec ;then 21349 lt_prog_compiler_pic_F77='-Kconform_pic' 21350 lt_prog_compiler_static_F77='-Bstatic' 21351 fi 21352 ;; 21353 21354 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 21355 lt_prog_compiler_wl_F77='-Wl,' 21356 lt_prog_compiler_pic_F77='-KPIC' 21357 lt_prog_compiler_static_F77='-Bstatic' 21358 ;; 21359 21360 unicos*) 21361 lt_prog_compiler_wl_F77='-Wl,' 21362 lt_prog_compiler_can_build_shared_F77=no 21363 ;; 21364 21365 uts4*) 21366 lt_prog_compiler_pic_F77='-pic' 21367 lt_prog_compiler_static_F77='-Bstatic' 21368 ;; 21369 21370 *) 21371 lt_prog_compiler_can_build_shared_F77=no 21372 ;; 21373 esac 21374 fi 21375 21376{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 21377echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 21378 21379# 21380# Check to make sure the PIC flag actually works. 21381# 21382if test -n "$lt_prog_compiler_pic_F77"; then 21383 21384{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 21385echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 21386if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then 21387 echo $ECHO_N "(cached) $ECHO_C" >&6 21388else 21389 lt_cv_prog_compiler_pic_works_F77=no 21390 ac_outfile=conftest.$ac_objext 21391 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 21392 lt_compiler_flag="$lt_prog_compiler_pic_F77" 21393 # Insert the option either (1) after the last *FLAGS variable, or 21394 # (2) before a word containing "conftest.", or (3) at the end. 21395 # Note that $ac_compile itself does not contain backslashes and begins 21396 # with a dollar sign (not a hyphen), so the echo should work correctly. 21397 # The option is referenced via a variable to avoid confusing sed. 21398 lt_compile=`echo "$ac_compile" | $SED \ 21399 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 21400 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 21401 -e 's:$: $lt_compiler_flag:'` 21402 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 21403 (eval "$lt_compile" 2>conftest.err) 21404 ac_status=$? 21405 cat conftest.err >&5 21406 echo "$as_me:__oline__: \$? = $ac_status" >&5 21407 if (exit $ac_status) && test -s "$ac_outfile"; then 21408 # The compiler can only warn and ignore the option if not recognized 21409 # So say no if there are warnings other than the usual output. 21410 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 21411 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 21412 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 21413 lt_cv_prog_compiler_pic_works_F77=yes 21414 fi 21415 fi 21416 $rm conftest* 21417 21418fi 21419{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5 21420echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; } 21421 21422if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then 21423 case $lt_prog_compiler_pic_F77 in 21424 "" | " "*) ;; 21425 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 21426 esac 21427else 21428 lt_prog_compiler_pic_F77= 21429 lt_prog_compiler_can_build_shared_F77=no 21430fi 21431 21432fi 21433case $host_os in 21434 # For platforms which do not support PIC, -DPIC is meaningless: 21435 *djgpp*) 21436 lt_prog_compiler_pic_F77= 21437 ;; 21438 *) 21439 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 21440 ;; 21441esac 21442 21443# 21444# Check to make sure the static flag actually works. 21445# 21446wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 21447{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 21448echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 21449if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then 21450 echo $ECHO_N "(cached) $ECHO_C" >&6 21451else 21452 lt_cv_prog_compiler_static_works_F77=no 21453 save_LDFLAGS="$LDFLAGS" 21454 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 21455 echo "$lt_simple_link_test_code" > conftest.$ac_ext 21456 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 21457 # The linker can only warn and ignore the option if not recognized 21458 # So say no if there are warnings 21459 if test -s conftest.err; then 21460 # Append any errors to the config.log. 21461 cat conftest.err 1>&5 21462 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 21463 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 21464 if diff conftest.exp conftest.er2 >/dev/null; then 21465 lt_cv_prog_compiler_static_works_F77=yes 21466 fi 21467 else 21468 lt_cv_prog_compiler_static_works_F77=yes 21469 fi 21470 fi 21471 $rm -r conftest* 21472 LDFLAGS="$save_LDFLAGS" 21473 21474fi 21475{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5 21476echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; } 21477 21478if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then 21479 : 21480else 21481 lt_prog_compiler_static_F77= 21482fi 21483 21484 21485{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 21486echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 21487if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 21488 echo $ECHO_N "(cached) $ECHO_C" >&6 21489else 21490 lt_cv_prog_compiler_c_o_F77=no 21491 $rm -r conftest 2>/dev/null 21492 mkdir conftest 21493 cd conftest 21494 mkdir out 21495 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 21496 21497 lt_compiler_flag="-o out/conftest2.$ac_objext" 21498 # Insert the option either (1) after the last *FLAGS variable, or 21499 # (2) before a word containing "conftest.", or (3) at the end. 21500 # Note that $ac_compile itself does not contain backslashes and begins 21501 # with a dollar sign (not a hyphen), so the echo should work correctly. 21502 lt_compile=`echo "$ac_compile" | $SED \ 21503 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 21504 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 21505 -e 's:$: $lt_compiler_flag:'` 21506 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 21507 (eval "$lt_compile" 2>out/conftest.err) 21508 ac_status=$? 21509 cat out/conftest.err >&5 21510 echo "$as_me:__oline__: \$? = $ac_status" >&5 21511 if (exit $ac_status) && test -s out/conftest2.$ac_objext 21512 then 21513 # The compiler can only warn and ignore the option if not recognized 21514 # So say no if there are warnings 21515 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 21516 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 21517 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 21518 lt_cv_prog_compiler_c_o_F77=yes 21519 fi 21520 fi 21521 chmod u+w . 2>&5 21522 $rm conftest* 21523 # SGI C++ compiler will create directory out/ii_files/ for 21524 # template instantiation 21525 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 21526 $rm out/* && rmdir out 21527 cd .. 21528 rmdir conftest 21529 $rm conftest* 21530 21531fi 21532{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 21533echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 21534 21535 21536hard_links="nottested" 21537if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 21538 # do not overwrite the value of need_locks provided by the user 21539 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 21540echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 21541 hard_links=yes 21542 $rm conftest* 21543 ln conftest.a conftest.b 2>/dev/null && hard_links=no 21544 touch conftest.a 21545 ln conftest.a conftest.b 2>&5 || hard_links=no 21546 ln conftest.a conftest.b 2>/dev/null && hard_links=no 21547 { echo "$as_me:$LINENO: result: $hard_links" >&5 21548echo "${ECHO_T}$hard_links" >&6; } 21549 if test "$hard_links" = no; then 21550 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 21551echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 21552 need_locks=warn 21553 fi 21554else 21555 need_locks=no 21556fi 21557 21558{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 21559echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 21560 21561 runpath_var= 21562 allow_undefined_flag_F77= 21563 enable_shared_with_static_runtimes_F77=no 21564 archive_cmds_F77= 21565 archive_expsym_cmds_F77= 21566 old_archive_From_new_cmds_F77= 21567 old_archive_from_expsyms_cmds_F77= 21568 export_dynamic_flag_spec_F77= 21569 whole_archive_flag_spec_F77= 21570 thread_safe_flag_spec_F77= 21571 hardcode_libdir_flag_spec_F77= 21572 hardcode_libdir_flag_spec_ld_F77= 21573 hardcode_libdir_separator_F77= 21574 hardcode_direct_F77=no 21575 hardcode_minus_L_F77=no 21576 hardcode_shlibpath_var_F77=unsupported 21577 link_all_deplibs_F77=unknown 21578 hardcode_automatic_F77=no 21579 module_cmds_F77= 21580 module_expsym_cmds_F77= 21581 always_export_symbols_F77=no 21582 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 21583 # include_expsyms should be a list of space-separated symbols to be *always* 21584 # included in the symbol list 21585 include_expsyms_F77= 21586 # exclude_expsyms can be an extended regexp of symbols to exclude 21587 # it will be wrapped by ` (' and `)$', so one must not match beginning or 21588 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 21589 # as well as any symbol that contains `d'. 21590 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 21591 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 21592 # platforms (ab)use it in PIC code, but their linkers get confused if 21593 # the symbol is explicitly referenced. Since portable code cannot 21594 # rely on this symbol name, it's probably fine to never include it in 21595 # preloaded symbol tables. 21596 # Exclude shared library initialization/finalization symbols. 21597 extract_expsyms_cmds= 21598 # Just being paranoid about ensuring that cc_basename is set. 21599 for cc_temp in $compiler""; do 21600 case $cc_temp in 21601 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 21602 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 21603 \-*) ;; 21604 *) break;; 21605 esac 21606done 21607cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 21608 21609 case $host_os in 21610 cygwin* | mingw* | pw32*) 21611 # FIXME: the MSVC++ port hasn't been tested in a loooong time 21612 # When not using gcc, we currently assume that we are using 21613 # Microsoft Visual C++. 21614 if test "$GCC" != yes; then 21615 with_gnu_ld=no 21616 fi 21617 ;; 21618 interix*) 21619 # we just hope/assume this is gcc and not c89 (= MSVC++) 21620 with_gnu_ld=yes 21621 ;; 21622 openbsd*) 21623 with_gnu_ld=no 21624 ;; 21625 esac 21626 21627 ld_shlibs_F77=yes 21628 if test "$with_gnu_ld" = yes; then 21629 # If archive_cmds runs LD, not CC, wlarc should be empty 21630 wlarc='${wl}' 21631 21632 # Set some defaults for GNU ld with shared library support. These 21633 # are reset later if shared libraries are not supported. Putting them 21634 # here allows them to be overridden if necessary. 21635 runpath_var=LD_RUN_PATH 21636 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 21637 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 21638 # ancient GNU ld didn't support --whole-archive et. al. 21639 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 21640 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 21641 else 21642 whole_archive_flag_spec_F77= 21643 fi 21644 supports_anon_versioning=no 21645 case `$LD -v 2>/dev/null` in 21646 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 21647 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 21648 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 21649 *\ 2.11.*) ;; # other 2.11 versions 21650 *) supports_anon_versioning=yes ;; 21651 esac 21652 21653 # See if GNU ld supports shared libraries. 21654 case $host_os in 21655 aix[3-9]*) 21656 # On AIX/PPC, the GNU linker is very broken 21657 if test "$host_cpu" != ia64; then 21658 ld_shlibs_F77=no 21659 cat <<EOF 1>&2 21660 21661*** Warning: the GNU linker, at least up to release 2.9.1, is reported 21662*** to be unable to reliably create shared libraries on AIX. 21663*** Therefore, libtool is disabling shared libraries support. If you 21664*** really care for shared libraries, you may want to modify your PATH 21665*** so that a non-GNU linker is found, and then restart. 21666 21667EOF 21668 fi 21669 ;; 21670 21671 amigaos*) 21672 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)' 21673 hardcode_libdir_flag_spec_F77='-L$libdir' 21674 hardcode_minus_L_F77=yes 21675 21676 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 21677 # that the semantics of dynamic libraries on AmigaOS, at least up 21678 # to version 4, is to share data among multiple programs linked 21679 # with the same dynamic library. Since this doesn't match the 21680 # behavior of shared libraries on other platforms, we can't use 21681 # them. 21682 ld_shlibs_F77=no 21683 ;; 21684 21685 beos*) 21686 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 21687 allow_undefined_flag_F77=unsupported 21688 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 21689 # support --undefined. This deserves some investigation. FIXME 21690 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 21691 else 21692 ld_shlibs_F77=no 21693 fi 21694 ;; 21695 21696 cygwin* | mingw* | pw32*) 21697 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 21698 # as there is no search path for DLLs. 21699 hardcode_libdir_flag_spec_F77='-L$libdir' 21700 allow_undefined_flag_F77=unsupported 21701 always_export_symbols_F77=no 21702 enable_shared_with_static_runtimes_F77=yes 21703 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 21704 21705 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 21706 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 21707 # If the export-symbols file already is a .def file (1st line 21708 # is EXPORTS), use it as is; otherwise, prepend... 21709 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 21710 cp $export_symbols $output_objdir/$soname.def; 21711 else 21712 echo EXPORTS > $output_objdir/$soname.def; 21713 cat $export_symbols >> $output_objdir/$soname.def; 21714 fi~ 21715 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 21716 else 21717 ld_shlibs_F77=no 21718 fi 21719 ;; 21720 21721 interix[3-9]*) 21722 hardcode_direct_F77=no 21723 hardcode_shlibpath_var_F77=no 21724 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 21725 export_dynamic_flag_spec_F77='${wl}-E' 21726 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 21727 # Instead, shared libraries are loaded at an image base (0x10000000 by 21728 # default) and relocated if they conflict, which is a slow very memory 21729 # consuming and fragmenting process. To avoid this, we pick a random, 21730 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 21731 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 21732 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' 21733 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' 21734 ;; 21735 21736 gnu* | linux* | k*bsd*-gnu) 21737 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 21738 tmp_addflag= 21739 case $cc_basename,$host_cpu in 21740 pgcc*) # Portland Group C compiler 21741 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' 21742 tmp_addflag=' $pic_flag' 21743 ;; 21744 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 21745 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' 21746 tmp_addflag=' $pic_flag -Mnomain' ;; 21747 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 21748 tmp_addflag=' -i_dynamic' ;; 21749 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 21750 tmp_addflag=' -i_dynamic -nofor_main' ;; 21751 ifc* | ifort*) # Intel Fortran compiler 21752 tmp_addflag=' -nofor_main' ;; 21753 esac 21754 case `$CC -V 2>&1 | sed 5q` in 21755 *Sun\ C*) # Sun C 5.9 21756 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' 21757 tmp_sharedflag='-G' ;; 21758 *Sun\ F*) # Sun Fortran 8.3 21759 tmp_sharedflag='-G' ;; 21760 *) 21761 tmp_sharedflag='-shared' ;; 21762 esac 21763 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 21764 21765 if test $supports_anon_versioning = yes; then 21766 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 21767 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 21768 $echo "local: *; };" >> $output_objdir/$libname.ver~ 21769 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 21770 fi 21771 else 21772 ld_shlibs_F77=no 21773 fi 21774 ;; 21775 21776 netbsd*) 21777 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 21778 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 21779 wlarc= 21780 else 21781 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 21782 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 21783 fi 21784 ;; 21785 21786 solaris*) 21787 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 21788 ld_shlibs_F77=no 21789 cat <<EOF 1>&2 21790 21791*** Warning: The releases 2.8.* of the GNU linker cannot reliably 21792*** create shared libraries on Solaris systems. Therefore, libtool 21793*** is disabling shared libraries support. We urge you to upgrade GNU 21794*** binutils to release 2.9.1 or newer. Another option is to modify 21795*** your PATH or compiler configuration so that the native linker is 21796*** used, and then restart. 21797 21798EOF 21799 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 21800 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 21801 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 21802 else 21803 ld_shlibs_F77=no 21804 fi 21805 ;; 21806 21807 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 21808 case `$LD -v 2>&1` in 21809 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 21810 ld_shlibs_F77=no 21811 cat <<_LT_EOF 1>&2 21812 21813*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 21814*** reliably create shared libraries on SCO systems. Therefore, libtool 21815*** is disabling shared libraries support. We urge you to upgrade GNU 21816*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 21817*** your PATH or compiler configuration so that the native linker is 21818*** used, and then restart. 21819 21820_LT_EOF 21821 ;; 21822 *) 21823 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 21824 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 21825 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 21826 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 21827 else 21828 ld_shlibs_F77=no 21829 fi 21830 ;; 21831 esac 21832 ;; 21833 21834 sunos4*) 21835 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 21836 wlarc= 21837 hardcode_direct_F77=yes 21838 hardcode_shlibpath_var_F77=no 21839 ;; 21840 21841 *) 21842 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 21843 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 21844 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 21845 else 21846 ld_shlibs_F77=no 21847 fi 21848 ;; 21849 esac 21850 21851 if test "$ld_shlibs_F77" = no; then 21852 runpath_var= 21853 hardcode_libdir_flag_spec_F77= 21854 export_dynamic_flag_spec_F77= 21855 whole_archive_flag_spec_F77= 21856 fi 21857 else 21858 # PORTME fill in a description of your system's linker (not GNU ld) 21859 case $host_os in 21860 aix3*) 21861 allow_undefined_flag_F77=unsupported 21862 always_export_symbols_F77=yes 21863 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' 21864 # Note: this linker hardcodes the directories in LIBPATH if there 21865 # are no directories specified by -L. 21866 hardcode_minus_L_F77=yes 21867 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 21868 # Neither direct hardcoding nor static linking is supported with a 21869 # broken collect2. 21870 hardcode_direct_F77=unsupported 21871 fi 21872 ;; 21873 21874 aix[4-9]*) 21875 if test "$host_cpu" = ia64; then 21876 # On IA64, the linker does run time linking by default, so we don't 21877 # have to do anything special. 21878 aix_use_runtimelinking=no 21879 exp_sym_flag='-Bexport' 21880 no_entry_flag="" 21881 else 21882 # If we're using GNU nm, then we don't want the "-C" option. 21883 # -C means demangle to AIX nm, but means don't demangle with GNU nm 21884 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 21885 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' 21886 else 21887 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' 21888 fi 21889 aix_use_runtimelinking=no 21890 21891 # Test if we are trying to use run time linking or normal 21892 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 21893 # need to do runtime linking. 21894 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 21895 for ld_flag in $LDFLAGS; do 21896 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 21897 aix_use_runtimelinking=yes 21898 break 21899 fi 21900 done 21901 ;; 21902 esac 21903 21904 exp_sym_flag='-bexport' 21905 no_entry_flag='-bnoentry' 21906 fi 21907 21908 # When large executables or shared objects are built, AIX ld can 21909 # have problems creating the table of contents. If linking a library 21910 # or program results in "error TOC overflow" add -mminimal-toc to 21911 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 21912 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 21913 21914 archive_cmds_F77='' 21915 hardcode_direct_F77=yes 21916 hardcode_libdir_separator_F77=':' 21917 link_all_deplibs_F77=yes 21918 21919 if test "$GCC" = yes; then 21920 case $host_os in aix4.[012]|aix4.[012].*) 21921 # We only want to do this on AIX 4.2 and lower, the check 21922 # below for broken collect2 doesn't work under 4.3+ 21923 collect2name=`${CC} -print-prog-name=collect2` 21924 if test -f "$collect2name" && \ 21925 strings "$collect2name" | grep resolve_lib_name >/dev/null 21926 then 21927 # We have reworked collect2 21928 : 21929 else 21930 # We have old collect2 21931 hardcode_direct_F77=unsupported 21932 # It fails to find uninstalled libraries when the uninstalled 21933 # path is not listed in the libpath. Setting hardcode_minus_L 21934 # to unsupported forces relinking 21935 hardcode_minus_L_F77=yes 21936 hardcode_libdir_flag_spec_F77='-L$libdir' 21937 hardcode_libdir_separator_F77= 21938 fi 21939 ;; 21940 esac 21941 shared_flag='-shared' 21942 if test "$aix_use_runtimelinking" = yes; then 21943 shared_flag="$shared_flag "'${wl}-G' 21944 fi 21945 else 21946 # not using gcc 21947 if test "$host_cpu" = ia64; then 21948 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 21949 # chokes on -Wl,-G. The following line is correct: 21950 shared_flag='-G' 21951 else 21952 if test "$aix_use_runtimelinking" = yes; then 21953 shared_flag='${wl}-G' 21954 else 21955 shared_flag='${wl}-bM:SRE' 21956 fi 21957 fi 21958 fi 21959 21960 # It seems that -bexpall does not export symbols beginning with 21961 # underscore (_), so it is better to generate a list of symbols to export. 21962 always_export_symbols_F77=yes 21963 if test "$aix_use_runtimelinking" = yes; then 21964 # Warning - without using the other runtime loading flags (-brtl), 21965 # -berok will link without error, but may produce a broken library. 21966 allow_undefined_flag_F77='-berok' 21967 # Determine the default libpath from the value encoded in an empty executable. 21968 cat >conftest.$ac_ext <<_ACEOF 21969 program main 21970 21971 end 21972_ACEOF 21973rm -f conftest.$ac_objext conftest$ac_exeext 21974if { (ac_try="$ac_link" 21975case "(($ac_try" in 21976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21977 *) ac_try_echo=$ac_try;; 21978esac 21979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21980 (eval "$ac_link") 2>conftest.er1 21981 ac_status=$? 21982 grep -v '^ *+' conftest.er1 >conftest.err 21983 rm -f conftest.er1 21984 cat conftest.err >&5 21985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21986 (exit $ac_status); } && { 21987 test -z "$ac_f77_werror_flag" || 21988 test ! -s conftest.err 21989 } && test -s conftest$ac_exeext && 21990 $as_test_x conftest$ac_exeext; then 21991 21992lt_aix_libpath_sed=' 21993 /Import File Strings/,/^$/ { 21994 /^0/ { 21995 s/^0 *\(.*\)$/\1/ 21996 p 21997 } 21998 }' 21999aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 22000# Check for a 64-bit object if we didn't find anything. 22001if test -z "$aix_libpath"; then 22002 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 22003fi 22004else 22005 echo "$as_me: failed program was:" >&5 22006sed 's/^/| /' conftest.$ac_ext >&5 22007 22008 22009fi 22010 22011rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22012 conftest$ac_exeext conftest.$ac_ext 22013if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 22014 22015 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 22016 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" 22017 else 22018 if test "$host_cpu" = ia64; then 22019 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 22020 allow_undefined_flag_F77="-z nodefs" 22021 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" 22022 else 22023 # Determine the default libpath from the value encoded in an empty executable. 22024 cat >conftest.$ac_ext <<_ACEOF 22025 program main 22026 22027 end 22028_ACEOF 22029rm -f conftest.$ac_objext conftest$ac_exeext 22030if { (ac_try="$ac_link" 22031case "(($ac_try" in 22032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22033 *) ac_try_echo=$ac_try;; 22034esac 22035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22036 (eval "$ac_link") 2>conftest.er1 22037 ac_status=$? 22038 grep -v '^ *+' conftest.er1 >conftest.err 22039 rm -f conftest.er1 22040 cat conftest.err >&5 22041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22042 (exit $ac_status); } && { 22043 test -z "$ac_f77_werror_flag" || 22044 test ! -s conftest.err 22045 } && test -s conftest$ac_exeext && 22046 $as_test_x conftest$ac_exeext; then 22047 22048lt_aix_libpath_sed=' 22049 /Import File Strings/,/^$/ { 22050 /^0/ { 22051 s/^0 *\(.*\)$/\1/ 22052 p 22053 } 22054 }' 22055aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 22056# Check for a 64-bit object if we didn't find anything. 22057if test -z "$aix_libpath"; then 22058 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 22059fi 22060else 22061 echo "$as_me: failed program was:" >&5 22062sed 's/^/| /' conftest.$ac_ext >&5 22063 22064 22065fi 22066 22067rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22068 conftest$ac_exeext conftest.$ac_ext 22069if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 22070 22071 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 22072 # Warning - without using the other run time loading flags, 22073 # -berok will link without error, but may produce a broken library. 22074 no_undefined_flag_F77=' ${wl}-bernotok' 22075 allow_undefined_flag_F77=' ${wl}-berok' 22076 # Exported symbols can be pulled into shared objects from archives 22077 whole_archive_flag_spec_F77='$convenience' 22078 archive_cmds_need_lc_F77=yes 22079 # This is similar to how AIX traditionally builds its shared libraries. 22080 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' 22081 fi 22082 fi 22083 ;; 22084 22085 amigaos*) 22086 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)' 22087 hardcode_libdir_flag_spec_F77='-L$libdir' 22088 hardcode_minus_L_F77=yes 22089 # see comment about different semantics on the GNU ld section 22090 ld_shlibs_F77=no 22091 ;; 22092 22093 bsdi[45]*) 22094 export_dynamic_flag_spec_F77=-rdynamic 22095 ;; 22096 22097 cygwin* | mingw* | pw32*) 22098 # When not using gcc, we currently assume that we are using 22099 # Microsoft Visual C++. 22100 # hardcode_libdir_flag_spec is actually meaningless, as there is 22101 # no search path for DLLs. 22102 hardcode_libdir_flag_spec_F77=' ' 22103 allow_undefined_flag_F77=unsupported 22104 # Tell ltmain to make .lib files, not .a files. 22105 libext=lib 22106 # Tell ltmain to make .dll files, not .so files. 22107 shrext_cmds=".dll" 22108 # FIXME: Setting linknames here is a bad hack. 22109 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 22110 # The linker will automatically build a .lib file if we build a DLL. 22111 old_archive_From_new_cmds_F77='true' 22112 # FIXME: Should let the user specify the lib program. 22113 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' 22114 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 22115 enable_shared_with_static_runtimes_F77=yes 22116 ;; 22117 22118 darwin* | rhapsody*) 22119 case $host_os in 22120 rhapsody* | darwin1.[012]) 22121 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 22122 ;; 22123 *) # Darwin 1.3 on 22124 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 22125 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 22126 else 22127 case ${MACOSX_DEPLOYMENT_TARGET} in 22128 10.[012]) 22129 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 22130 ;; 22131 10.*) 22132 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 22133 ;; 22134 esac 22135 fi 22136 ;; 22137 esac 22138 archive_cmds_need_lc_F77=no 22139 hardcode_direct_F77=no 22140 hardcode_automatic_F77=yes 22141 hardcode_shlibpath_var_F77=unsupported 22142 whole_archive_flag_spec_F77='' 22143 link_all_deplibs_F77=yes 22144 if test "$GCC" = yes ; then 22145 output_verbose_link_cmd='echo' 22146 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 22147 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 22148 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 22149 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 22150 else 22151 case $cc_basename in 22152 xlc*) 22153 output_verbose_link_cmd='echo' 22154 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 22155 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 22156 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 22157 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}' 22158 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}' 22159 ;; 22160 *) 22161 ld_shlibs_F77=no 22162 ;; 22163 esac 22164 fi 22165 ;; 22166 22167 dgux*) 22168 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 22169 hardcode_libdir_flag_spec_F77='-L$libdir' 22170 hardcode_shlibpath_var_F77=no 22171 ;; 22172 22173 freebsd1*) 22174 ld_shlibs_F77=no 22175 ;; 22176 22177 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 22178 # support. Future versions do this automatically, but an explicit c++rt0.o 22179 # does not break anything, and helps significantly (at the cost of a little 22180 # extra space). 22181 freebsd2.2*) 22182 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 22183 hardcode_libdir_flag_spec_F77='-R$libdir' 22184 hardcode_direct_F77=yes 22185 hardcode_shlibpath_var_F77=no 22186 ;; 22187 22188 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 22189 freebsd2*) 22190 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 22191 hardcode_direct_F77=yes 22192 hardcode_minus_L_F77=yes 22193 hardcode_shlibpath_var_F77=no 22194 ;; 22195 22196 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 22197 freebsd* | dragonfly*) 22198 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 22199 hardcode_libdir_flag_spec_F77='-R$libdir' 22200 hardcode_direct_F77=yes 22201 hardcode_shlibpath_var_F77=no 22202 ;; 22203 22204 hpux9*) 22205 if test "$GCC" = yes; then 22206 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' 22207 else 22208 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' 22209 fi 22210 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 22211 hardcode_libdir_separator_F77=: 22212 hardcode_direct_F77=yes 22213 22214 # hardcode_minus_L: Not really in the search PATH, 22215 # but as the default location of the library. 22216 hardcode_minus_L_F77=yes 22217 export_dynamic_flag_spec_F77='${wl}-E' 22218 ;; 22219 22220 hpux10*) 22221 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 22222 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 22223 else 22224 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 22225 fi 22226 if test "$with_gnu_ld" = no; then 22227 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 22228 hardcode_libdir_separator_F77=: 22229 22230 hardcode_direct_F77=yes 22231 export_dynamic_flag_spec_F77='${wl}-E' 22232 22233 # hardcode_minus_L: Not really in the search PATH, 22234 # but as the default location of the library. 22235 hardcode_minus_L_F77=yes 22236 fi 22237 ;; 22238 22239 hpux11*) 22240 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 22241 case $host_cpu in 22242 hppa*64*) 22243 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 22244 ;; 22245 ia64*) 22246 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 22247 ;; 22248 *) 22249 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 22250 ;; 22251 esac 22252 else 22253 case $host_cpu in 22254 hppa*64*) 22255 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 22256 ;; 22257 ia64*) 22258 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 22259 ;; 22260 *) 22261 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 22262 ;; 22263 esac 22264 fi 22265 if test "$with_gnu_ld" = no; then 22266 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 22267 hardcode_libdir_separator_F77=: 22268 22269 case $host_cpu in 22270 hppa*64*|ia64*) 22271 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 22272 hardcode_direct_F77=no 22273 hardcode_shlibpath_var_F77=no 22274 ;; 22275 *) 22276 hardcode_direct_F77=yes 22277 export_dynamic_flag_spec_F77='${wl}-E' 22278 22279 # hardcode_minus_L: Not really in the search PATH, 22280 # but as the default location of the library. 22281 hardcode_minus_L_F77=yes 22282 ;; 22283 esac 22284 fi 22285 ;; 22286 22287 irix5* | irix6* | nonstopux*) 22288 if test "$GCC" = yes; then 22289 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' 22290 else 22291 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' 22292 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 22293 fi 22294 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 22295 hardcode_libdir_separator_F77=: 22296 link_all_deplibs_F77=yes 22297 ;; 22298 22299 netbsd*) 22300 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 22301 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 22302 else 22303 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 22304 fi 22305 hardcode_libdir_flag_spec_F77='-R$libdir' 22306 hardcode_direct_F77=yes 22307 hardcode_shlibpath_var_F77=no 22308 ;; 22309 22310 newsos6) 22311 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 22312 hardcode_direct_F77=yes 22313 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 22314 hardcode_libdir_separator_F77=: 22315 hardcode_shlibpath_var_F77=no 22316 ;; 22317 22318 openbsd*) 22319 if test -f /usr/libexec/ld.so; then 22320 hardcode_direct_F77=yes 22321 hardcode_shlibpath_var_F77=no 22322 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 22323 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 22324 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 22325 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 22326 export_dynamic_flag_spec_F77='${wl}-E' 22327 else 22328 case $host_os in 22329 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 22330 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 22331 hardcode_libdir_flag_spec_F77='-R$libdir' 22332 ;; 22333 *) 22334 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 22335 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 22336 ;; 22337 esac 22338 fi 22339 else 22340 ld_shlibs_F77=no 22341 fi 22342 ;; 22343 22344 os2*) 22345 hardcode_libdir_flag_spec_F77='-L$libdir' 22346 hardcode_minus_L_F77=yes 22347 allow_undefined_flag_F77=unsupported 22348 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' 22349 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 22350 ;; 22351 22352 osf3*) 22353 if test "$GCC" = yes; then 22354 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 22355 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' 22356 else 22357 allow_undefined_flag_F77=' -expect_unresolved \*' 22358 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' 22359 fi 22360 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 22361 hardcode_libdir_separator_F77=: 22362 ;; 22363 22364 osf4* | osf5*) # as osf3* with the addition of -msym flag 22365 if test "$GCC" = yes; then 22366 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 22367 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' 22368 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 22369 else 22370 allow_undefined_flag_F77=' -expect_unresolved \*' 22371 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' 22372 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~ 22373 $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' 22374 22375 # Both c and cxx compiler support -rpath directly 22376 hardcode_libdir_flag_spec_F77='-rpath $libdir' 22377 fi 22378 hardcode_libdir_separator_F77=: 22379 ;; 22380 22381 solaris*) 22382 no_undefined_flag_F77=' -z text' 22383 if test "$GCC" = yes; then 22384 wlarc='${wl}' 22385 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 22386 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 22387 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 22388 else 22389 wlarc='' 22390 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 22391 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 22392 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 22393 fi 22394 hardcode_libdir_flag_spec_F77='-R$libdir' 22395 hardcode_shlibpath_var_F77=no 22396 case $host_os in 22397 solaris2.[0-5] | solaris2.[0-5].*) ;; 22398 *) 22399 # The compiler driver will combine and reorder linker options, 22400 # but understands `-z linker_flag'. GCC discards it without `$wl', 22401 # but is careful enough not to reorder. 22402 # Supported since Solaris 2.6 (maybe 2.5.1?) 22403 if test "$GCC" = yes; then 22404 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 22405 else 22406 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' 22407 fi 22408 ;; 22409 esac 22410 link_all_deplibs_F77=yes 22411 ;; 22412 22413 sunos4*) 22414 if test "x$host_vendor" = xsequent; then 22415 # Use $CC to link under sequent, because it throws in some extra .o 22416 # files that make .init and .fini sections work. 22417 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 22418 else 22419 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 22420 fi 22421 hardcode_libdir_flag_spec_F77='-L$libdir' 22422 hardcode_direct_F77=yes 22423 hardcode_minus_L_F77=yes 22424 hardcode_shlibpath_var_F77=no 22425 ;; 22426 22427 sysv4) 22428 case $host_vendor in 22429 sni) 22430 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 22431 hardcode_direct_F77=yes # is this really true??? 22432 ;; 22433 siemens) 22434 ## LD is ld it makes a PLAMLIB 22435 ## CC just makes a GrossModule. 22436 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 22437 reload_cmds_F77='$CC -r -o $output$reload_objs' 22438 hardcode_direct_F77=no 22439 ;; 22440 motorola) 22441 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 22442 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 22443 ;; 22444 esac 22445 runpath_var='LD_RUN_PATH' 22446 hardcode_shlibpath_var_F77=no 22447 ;; 22448 22449 sysv4.3*) 22450 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 22451 hardcode_shlibpath_var_F77=no 22452 export_dynamic_flag_spec_F77='-Bexport' 22453 ;; 22454 22455 sysv4*MP*) 22456 if test -d /usr/nec; then 22457 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 22458 hardcode_shlibpath_var_F77=no 22459 runpath_var=LD_RUN_PATH 22460 hardcode_runpath_var=yes 22461 ld_shlibs_F77=yes 22462 fi 22463 ;; 22464 22465 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 22466 no_undefined_flag_F77='${wl}-z,text' 22467 archive_cmds_need_lc_F77=no 22468 hardcode_shlibpath_var_F77=no 22469 runpath_var='LD_RUN_PATH' 22470 22471 if test "$GCC" = yes; then 22472 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 22473 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 22474 else 22475 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 22476 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 22477 fi 22478 ;; 22479 22480 sysv5* | sco3.2v5* | sco5v6*) 22481 # Note: We can NOT use -z defs as we might desire, because we do not 22482 # link with -lc, and that would cause any symbols used from libc to 22483 # always be unresolved, which means just about no library would 22484 # ever link correctly. If we're not using GNU ld we use -z text 22485 # though, which does catch some bad symbols but isn't as heavy-handed 22486 # as -z defs. 22487 no_undefined_flag_F77='${wl}-z,text' 22488 allow_undefined_flag_F77='${wl}-z,nodefs' 22489 archive_cmds_need_lc_F77=no 22490 hardcode_shlibpath_var_F77=no 22491 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 22492 hardcode_libdir_separator_F77=':' 22493 link_all_deplibs_F77=yes 22494 export_dynamic_flag_spec_F77='${wl}-Bexport' 22495 runpath_var='LD_RUN_PATH' 22496 22497 if test "$GCC" = yes; then 22498 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 22499 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 22500 else 22501 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 22502 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 22503 fi 22504 ;; 22505 22506 uts4*) 22507 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 22508 hardcode_libdir_flag_spec_F77='-L$libdir' 22509 hardcode_shlibpath_var_F77=no 22510 ;; 22511 22512 *) 22513 ld_shlibs_F77=no 22514 ;; 22515 esac 22516 fi 22517 22518{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 22519echo "${ECHO_T}$ld_shlibs_F77" >&6; } 22520test "$ld_shlibs_F77" = no && can_build_shared=no 22521 22522# 22523# Do we need to explicitly link libc? 22524# 22525case "x$archive_cmds_need_lc_F77" in 22526x|xyes) 22527 # Assume -lc should be added 22528 archive_cmds_need_lc_F77=yes 22529 22530 if test "$enable_shared" = yes && test "$GCC" = yes; then 22531 case $archive_cmds_F77 in 22532 *'~'*) 22533 # FIXME: we may have to deal with multi-command sequences. 22534 ;; 22535 '$CC '*) 22536 # Test whether the compiler implicitly links with -lc since on some 22537 # systems, -lgcc has to come before -lc. If gcc already passes -lc 22538 # to ld, don't add -lc before -lgcc. 22539 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 22540echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 22541 $rm conftest* 22542 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 22543 22544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22545 (eval $ac_compile) 2>&5 22546 ac_status=$? 22547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22548 (exit $ac_status); } 2>conftest.err; then 22549 soname=conftest 22550 lib=conftest 22551 libobjs=conftest.$ac_objext 22552 deplibs= 22553 wl=$lt_prog_compiler_wl_F77 22554 pic_flag=$lt_prog_compiler_pic_F77 22555 compiler_flags=-v 22556 linker_flags=-v 22557 verstring= 22558 output_objdir=. 22559 libname=conftest 22560 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 22561 allow_undefined_flag_F77= 22562 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 22563 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 22564 ac_status=$? 22565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22566 (exit $ac_status); } 22567 then 22568 archive_cmds_need_lc_F77=no 22569 else 22570 archive_cmds_need_lc_F77=yes 22571 fi 22572 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 22573 else 22574 cat conftest.err 1>&5 22575 fi 22576 $rm conftest* 22577 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 22578echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 22579 ;; 22580 esac 22581 fi 22582 ;; 22583esac 22584 22585{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 22586echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 22587library_names_spec= 22588libname_spec='lib$name' 22589soname_spec= 22590shrext_cmds=".so" 22591postinstall_cmds= 22592postuninstall_cmds= 22593finish_cmds= 22594finish_eval= 22595shlibpath_var= 22596shlibpath_overrides_runpath=unknown 22597version_type=none 22598dynamic_linker="$host_os ld.so" 22599sys_lib_dlsearch_path_spec="/lib /usr/lib" 22600 22601need_lib_prefix=unknown 22602hardcode_into_libs=no 22603 22604# when you set need_version to no, make sure it does not cause -set_version 22605# flags to be left without arguments 22606need_version=unknown 22607 22608case $host_os in 22609aix3*) 22610 version_type=linux 22611 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 22612 shlibpath_var=LIBPATH 22613 22614 # AIX 3 has no versioning support, so we append a major version to the name. 22615 soname_spec='${libname}${release}${shared_ext}$major' 22616 ;; 22617 22618aix[4-9]*) 22619 version_type=linux 22620 need_lib_prefix=no 22621 need_version=no 22622 hardcode_into_libs=yes 22623 if test "$host_cpu" = ia64; then 22624 # AIX 5 supports IA64 22625 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 22626 shlibpath_var=LD_LIBRARY_PATH 22627 else 22628 # With GCC up to 2.95.x, collect2 would create an import file 22629 # for dependence libraries. The import file would start with 22630 # the line `#! .'. This would cause the generated library to 22631 # depend on `.', always an invalid library. This was fixed in 22632 # development snapshots of GCC prior to 3.0. 22633 case $host_os in 22634 aix4 | aix4.[01] | aix4.[01].*) 22635 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 22636 echo ' yes ' 22637 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 22638 : 22639 else 22640 can_build_shared=no 22641 fi 22642 ;; 22643 esac 22644 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 22645 # soname into executable. Probably we can add versioning support to 22646 # collect2, so additional links can be useful in future. 22647 if test "$aix_use_runtimelinking" = yes; then 22648 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 22649 # instead of lib<name>.a to let people know that these are not 22650 # typical AIX shared libraries. 22651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22652 else 22653 # We preserve .a as extension for shared libraries through AIX4.2 22654 # and later when we are not doing run time linking. 22655 library_names_spec='${libname}${release}.a $libname.a' 22656 soname_spec='${libname}${release}${shared_ext}$major' 22657 fi 22658 shlibpath_var=LIBPATH 22659 fi 22660 ;; 22661 22662amigaos*) 22663 library_names_spec='$libname.ixlibrary $libname.a' 22664 # Create ${libname}_ixlibrary.a entries in /sys/libs. 22665 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' 22666 ;; 22667 22668beos*) 22669 library_names_spec='${libname}${shared_ext}' 22670 dynamic_linker="$host_os ld.so" 22671 shlibpath_var=LIBRARY_PATH 22672 ;; 22673 22674bsdi[45]*) 22675 version_type=linux 22676 need_version=no 22677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22678 soname_spec='${libname}${release}${shared_ext}$major' 22679 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 22680 shlibpath_var=LD_LIBRARY_PATH 22681 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 22682 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 22683 # the default ld.so.conf also contains /usr/contrib/lib and 22684 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 22685 # libtool to hard-code these into programs 22686 ;; 22687 22688cygwin* | mingw* | pw32*) 22689 version_type=windows 22690 shrext_cmds=".dll" 22691 need_version=no 22692 need_lib_prefix=no 22693 22694 case $GCC,$host_os in 22695 yes,cygwin* | yes,mingw* | yes,pw32*) 22696 library_names_spec='$libname.dll.a' 22697 # DLL is installed to $(libdir)/../bin by postinstall_cmds 22698 postinstall_cmds='base_file=`basename \${file}`~ 22699 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 22700 dldir=$destdir/`dirname \$dlpath`~ 22701 test -d \$dldir || mkdir -p \$dldir~ 22702 $install_prog $dir/$dlname \$dldir/$dlname~ 22703 chmod a+x \$dldir/$dlname' 22704 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 22705 dlpath=$dir/\$dldll~ 22706 $rm \$dlpath' 22707 shlibpath_overrides_runpath=yes 22708 22709 case $host_os in 22710 cygwin*) 22711 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 22712 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 22713 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 22714 ;; 22715 mingw*) 22716 # MinGW DLLs use traditional 'lib' prefix 22717 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 22718 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 22719 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 22720 # It is most probably a Windows format PATH printed by 22721 # mingw gcc, but we are running on Cygwin. Gcc prints its search 22722 # path with ; separators, and with drive letters. We can handle the 22723 # drive letters (cygwin fileutils understands them), so leave them, 22724 # especially as we might pass files found there to a mingw objdump, 22725 # which wouldn't understand a cygwinified path. Ahh. 22726 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 22727 else 22728 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 22729 fi 22730 ;; 22731 pw32*) 22732 # pw32 DLLs use 'pw' prefix rather than 'lib' 22733 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 22734 ;; 22735 esac 22736 ;; 22737 22738 *) 22739 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 22740 ;; 22741 esac 22742 dynamic_linker='Win32 ld.exe' 22743 # FIXME: first we should search . and the directory the executable is in 22744 shlibpath_var=PATH 22745 ;; 22746 22747darwin* | rhapsody*) 22748 dynamic_linker="$host_os dyld" 22749 version_type=darwin 22750 need_lib_prefix=no 22751 need_version=no 22752 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 22753 soname_spec='${libname}${release}${major}$shared_ext' 22754 shlibpath_overrides_runpath=yes 22755 shlibpath_var=DYLD_LIBRARY_PATH 22756 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 22757 22758 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 22759 ;; 22760 22761dgux*) 22762 version_type=linux 22763 need_lib_prefix=no 22764 need_version=no 22765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 22766 soname_spec='${libname}${release}${shared_ext}$major' 22767 shlibpath_var=LD_LIBRARY_PATH 22768 ;; 22769 22770freebsd1*) 22771 dynamic_linker=no 22772 ;; 22773 22774freebsd* | dragonfly*) 22775 # DragonFly does not have aout. When/if they implement a new 22776 # versioning mechanism, adjust this. 22777 if test -x /usr/bin/objformat; then 22778 objformat=`/usr/bin/objformat` 22779 else 22780 case $host_os in 22781 freebsd[123]*) objformat=aout ;; 22782 *) objformat=elf ;; 22783 esac 22784 fi 22785 version_type=freebsd-$objformat 22786 case $version_type in 22787 freebsd-elf*) 22788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 22789 need_version=no 22790 need_lib_prefix=no 22791 ;; 22792 freebsd-*) 22793 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 22794 need_version=yes 22795 ;; 22796 esac 22797 shlibpath_var=LD_LIBRARY_PATH 22798 case $host_os in 22799 freebsd2*) 22800 shlibpath_overrides_runpath=yes 22801 ;; 22802 freebsd3.[01]* | freebsdelf3.[01]*) 22803 shlibpath_overrides_runpath=yes 22804 hardcode_into_libs=yes 22805 ;; 22806 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 22807 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 22808 shlibpath_overrides_runpath=no 22809 hardcode_into_libs=yes 22810 ;; 22811 *) # from 4.6 on, and DragonFly 22812 shlibpath_overrides_runpath=yes 22813 hardcode_into_libs=yes 22814 ;; 22815 esac 22816 ;; 22817 22818gnu*) 22819 version_type=linux 22820 need_lib_prefix=no 22821 need_version=no 22822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 22823 soname_spec='${libname}${release}${shared_ext}$major' 22824 shlibpath_var=LD_LIBRARY_PATH 22825 hardcode_into_libs=yes 22826 ;; 22827 22828hpux9* | hpux10* | hpux11*) 22829 # Give a soname corresponding to the major version so that dld.sl refuses to 22830 # link against other versions. 22831 version_type=sunos 22832 need_lib_prefix=no 22833 need_version=no 22834 case $host_cpu in 22835 ia64*) 22836 shrext_cmds='.so' 22837 hardcode_into_libs=yes 22838 dynamic_linker="$host_os dld.so" 22839 shlibpath_var=LD_LIBRARY_PATH 22840 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 22841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22842 soname_spec='${libname}${release}${shared_ext}$major' 22843 if test "X$HPUX_IA64_MODE" = X32; then 22844 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 22845 else 22846 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 22847 fi 22848 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 22849 ;; 22850 hppa*64*) 22851 shrext_cmds='.sl' 22852 hardcode_into_libs=yes 22853 dynamic_linker="$host_os dld.sl" 22854 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 22855 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 22856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22857 soname_spec='${libname}${release}${shared_ext}$major' 22858 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 22859 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 22860 ;; 22861 *) 22862 shrext_cmds='.sl' 22863 dynamic_linker="$host_os dld.sl" 22864 shlibpath_var=SHLIB_PATH 22865 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 22866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22867 soname_spec='${libname}${release}${shared_ext}$major' 22868 ;; 22869 esac 22870 # HP-UX runs *really* slowly unless shared libraries are mode 555. 22871 postinstall_cmds='chmod 555 $lib' 22872 ;; 22873 22874interix[3-9]*) 22875 version_type=linux 22876 need_lib_prefix=no 22877 need_version=no 22878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 22879 soname_spec='${libname}${release}${shared_ext}$major' 22880 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 22881 shlibpath_var=LD_LIBRARY_PATH 22882 shlibpath_overrides_runpath=no 22883 hardcode_into_libs=yes 22884 ;; 22885 22886irix5* | irix6* | nonstopux*) 22887 case $host_os in 22888 nonstopux*) version_type=nonstopux ;; 22889 *) 22890 if test "$lt_cv_prog_gnu_ld" = yes; then 22891 version_type=linux 22892 else 22893 version_type=irix 22894 fi ;; 22895 esac 22896 need_lib_prefix=no 22897 need_version=no 22898 soname_spec='${libname}${release}${shared_ext}$major' 22899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 22900 case $host_os in 22901 irix5* | nonstopux*) 22902 libsuff= shlibsuff= 22903 ;; 22904 *) 22905 case $LD in # libtool.m4 will add one of these switches to LD 22906 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 22907 libsuff= shlibsuff= libmagic=32-bit;; 22908 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 22909 libsuff=32 shlibsuff=N32 libmagic=N32;; 22910 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 22911 libsuff=64 shlibsuff=64 libmagic=64-bit;; 22912 *) libsuff= shlibsuff= libmagic=never-match;; 22913 esac 22914 ;; 22915 esac 22916 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 22917 shlibpath_overrides_runpath=no 22918 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 22919 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 22920 hardcode_into_libs=yes 22921 ;; 22922 22923# No shared lib support for Linux oldld, aout, or coff. 22924linux*oldld* | linux*aout* | linux*coff*) 22925 dynamic_linker=no 22926 ;; 22927 22928# This must be Linux ELF. 22929linux* | k*bsd*-gnu) 22930 version_type=linux 22931 need_lib_prefix=no 22932 need_version=no 22933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22934 soname_spec='${libname}${release}${shared_ext}$major' 22935 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 22936 shlibpath_var=LD_LIBRARY_PATH 22937 shlibpath_overrides_runpath=no 22938 # This implies no fast_install, which is unacceptable. 22939 # Some rework will be needed to allow for fast_install 22940 # before this can be enabled. 22941 hardcode_into_libs=yes 22942 22943 # Append ld.so.conf contents to the search path 22944 if test -f /etc/ld.so.conf; then 22945 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' ' '` 22946 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 22947 fi 22948 22949 # We used to test for /lib/ld.so.1 and disable shared libraries on 22950 # powerpc, because MkLinux only supported shared libraries with the 22951 # GNU dynamic linker. Since this was broken with cross compilers, 22952 # most powerpc-linux boxes support dynamic linking these days and 22953 # people can always --disable-shared, the test was removed, and we 22954 # assume the GNU/Linux dynamic linker is in use. 22955 dynamic_linker='GNU/Linux ld.so' 22956 ;; 22957 22958netbsd*) 22959 version_type=sunos 22960 need_lib_prefix=no 22961 need_version=no 22962 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 22963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 22964 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 22965 dynamic_linker='NetBSD (a.out) ld.so' 22966 else 22967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 22968 soname_spec='${libname}${release}${shared_ext}$major' 22969 dynamic_linker='NetBSD ld.elf_so' 22970 fi 22971 shlibpath_var=LD_LIBRARY_PATH 22972 shlibpath_overrides_runpath=yes 22973 hardcode_into_libs=yes 22974 ;; 22975 22976newsos6) 22977 version_type=linux 22978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22979 shlibpath_var=LD_LIBRARY_PATH 22980 shlibpath_overrides_runpath=yes 22981 ;; 22982 22983nto-qnx*) 22984 version_type=linux 22985 need_lib_prefix=no 22986 need_version=no 22987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22988 soname_spec='${libname}${release}${shared_ext}$major' 22989 shlibpath_var=LD_LIBRARY_PATH 22990 shlibpath_overrides_runpath=yes 22991 ;; 22992 22993openbsd*) 22994 version_type=sunos 22995 sys_lib_dlsearch_path_spec="/usr/lib" 22996 need_lib_prefix=no 22997 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 22998 case $host_os in 22999 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 23000 *) need_version=no ;; 23001 esac 23002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 23003 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 23004 shlibpath_var=LD_LIBRARY_PATH 23005 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 23006 case $host_os in 23007 openbsd2.[89] | openbsd2.[89].*) 23008 shlibpath_overrides_runpath=no 23009 ;; 23010 *) 23011 shlibpath_overrides_runpath=yes 23012 ;; 23013 esac 23014 else 23015 shlibpath_overrides_runpath=yes 23016 fi 23017 ;; 23018 23019os2*) 23020 libname_spec='$name' 23021 shrext_cmds=".dll" 23022 need_lib_prefix=no 23023 library_names_spec='$libname${shared_ext} $libname.a' 23024 dynamic_linker='OS/2 ld.exe' 23025 shlibpath_var=LIBPATH 23026 ;; 23027 23028osf3* | osf4* | osf5*) 23029 version_type=osf 23030 need_lib_prefix=no 23031 need_version=no 23032 soname_spec='${libname}${release}${shared_ext}$major' 23033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 23034 shlibpath_var=LD_LIBRARY_PATH 23035 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 23036 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 23037 ;; 23038 23039rdos*) 23040 dynamic_linker=no 23041 ;; 23042 23043solaris*) 23044 version_type=linux 23045 need_lib_prefix=no 23046 need_version=no 23047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 23048 soname_spec='${libname}${release}${shared_ext}$major' 23049 shlibpath_var=LD_LIBRARY_PATH 23050 shlibpath_overrides_runpath=yes 23051 hardcode_into_libs=yes 23052 # ldd complains unless libraries are executable 23053 postinstall_cmds='chmod +x $lib' 23054 ;; 23055 23056sunos4*) 23057 version_type=sunos 23058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 23059 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 23060 shlibpath_var=LD_LIBRARY_PATH 23061 shlibpath_overrides_runpath=yes 23062 if test "$with_gnu_ld" = yes; then 23063 need_lib_prefix=no 23064 fi 23065 need_version=yes 23066 ;; 23067 23068sysv4 | sysv4.3*) 23069 version_type=linux 23070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 23071 soname_spec='${libname}${release}${shared_ext}$major' 23072 shlibpath_var=LD_LIBRARY_PATH 23073 case $host_vendor in 23074 sni) 23075 shlibpath_overrides_runpath=no 23076 need_lib_prefix=no 23077 export_dynamic_flag_spec='${wl}-Blargedynsym' 23078 runpath_var=LD_RUN_PATH 23079 ;; 23080 siemens) 23081 need_lib_prefix=no 23082 ;; 23083 motorola) 23084 need_lib_prefix=no 23085 need_version=no 23086 shlibpath_overrides_runpath=no 23087 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 23088 ;; 23089 esac 23090 ;; 23091 23092sysv4*MP*) 23093 if test -d /usr/nec ;then 23094 version_type=linux 23095 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 23096 soname_spec='$libname${shared_ext}.$major' 23097 shlibpath_var=LD_LIBRARY_PATH 23098 fi 23099 ;; 23100 23101sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 23102 version_type=freebsd-elf 23103 need_lib_prefix=no 23104 need_version=no 23105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 23106 soname_spec='${libname}${release}${shared_ext}$major' 23107 shlibpath_var=LD_LIBRARY_PATH 23108 hardcode_into_libs=yes 23109 if test "$with_gnu_ld" = yes; then 23110 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 23111 shlibpath_overrides_runpath=no 23112 else 23113 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 23114 shlibpath_overrides_runpath=yes 23115 case $host_os in 23116 sco3.2v5*) 23117 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 23118 ;; 23119 esac 23120 fi 23121 sys_lib_dlsearch_path_spec='/usr/lib' 23122 ;; 23123 23124uts4*) 23125 version_type=linux 23126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 23127 soname_spec='${libname}${release}${shared_ext}$major' 23128 shlibpath_var=LD_LIBRARY_PATH 23129 ;; 23130 23131*) 23132 dynamic_linker=no 23133 ;; 23134esac 23135{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 23136echo "${ECHO_T}$dynamic_linker" >&6; } 23137test "$dynamic_linker" = no && can_build_shared=no 23138 23139if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 23140 echo $ECHO_N "(cached) $ECHO_C" >&6 23141else 23142 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 23143fi 23144 23145sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 23146if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 23147 echo $ECHO_N "(cached) $ECHO_C" >&6 23148else 23149 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 23150fi 23151 23152sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 23153 23154variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 23155if test "$GCC" = yes; then 23156 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 23157fi 23158 23159{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 23160echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 23161hardcode_action_F77= 23162if test -n "$hardcode_libdir_flag_spec_F77" || \ 23163 test -n "$runpath_var_F77" || \ 23164 test "X$hardcode_automatic_F77" = "Xyes" ; then 23165 23166 # We can hardcode non-existant directories. 23167 if test "$hardcode_direct_F77" != no && 23168 # If the only mechanism to avoid hardcoding is shlibpath_var, we 23169 # have to relink, otherwise we might link with an installed library 23170 # when we should be linking with a yet-to-be-installed one 23171 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 23172 test "$hardcode_minus_L_F77" != no; then 23173 # Linking always hardcodes the temporary library directory. 23174 hardcode_action_F77=relink 23175 else 23176 # We can link without hardcoding, and we can hardcode nonexisting dirs. 23177 hardcode_action_F77=immediate 23178 fi 23179else 23180 # We cannot hardcode anything, or else we can only hardcode existing 23181 # directories. 23182 hardcode_action_F77=unsupported 23183fi 23184{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 23185echo "${ECHO_T}$hardcode_action_F77" >&6; } 23186 23187if test "$hardcode_action_F77" = relink; then 23188 # Fast installation is not supported 23189 enable_fast_install=no 23190elif test "$shlibpath_overrides_runpath" = yes || 23191 test "$enable_shared" = no; then 23192 # Fast installation is not necessary 23193 enable_fast_install=needless 23194fi 23195 23196 23197# The else clause should only fire when bootstrapping the 23198# libtool distribution, otherwise you forgot to ship ltmain.sh 23199# with your package, and you will get complaints that there are 23200# no rules to generate ltmain.sh. 23201if test -f "$ltmain"; then 23202 # See if we are running on zsh, and set the options which allow our commands through 23203 # without removal of \ escapes. 23204 if test -n "${ZSH_VERSION+set}" ; then 23205 setopt NO_GLOB_SUBST 23206 fi 23207 # Now quote all the things that may contain metacharacters while being 23208 # careful not to overquote the AC_SUBSTed values. We take copies of the 23209 # variables and quote the copies for generation of the libtool script. 23210 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 23211 SED SHELL STRIP \ 23212 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 23213 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 23214 deplibs_check_method reload_flag reload_cmds need_locks \ 23215 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 23216 lt_cv_sys_global_symbol_to_c_name_address \ 23217 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 23218 old_postinstall_cmds old_postuninstall_cmds \ 23219 compiler_F77 \ 23220 CC_F77 \ 23221 LD_F77 \ 23222 lt_prog_compiler_wl_F77 \ 23223 lt_prog_compiler_pic_F77 \ 23224 lt_prog_compiler_static_F77 \ 23225 lt_prog_compiler_no_builtin_flag_F77 \ 23226 export_dynamic_flag_spec_F77 \ 23227 thread_safe_flag_spec_F77 \ 23228 whole_archive_flag_spec_F77 \ 23229 enable_shared_with_static_runtimes_F77 \ 23230 old_archive_cmds_F77 \ 23231 old_archive_from_new_cmds_F77 \ 23232 predep_objects_F77 \ 23233 postdep_objects_F77 \ 23234 predeps_F77 \ 23235 postdeps_F77 \ 23236 compiler_lib_search_path_F77 \ 23237 compiler_lib_search_dirs_F77 \ 23238 archive_cmds_F77 \ 23239 archive_expsym_cmds_F77 \ 23240 postinstall_cmds_F77 \ 23241 postuninstall_cmds_F77 \ 23242 old_archive_from_expsyms_cmds_F77 \ 23243 allow_undefined_flag_F77 \ 23244 no_undefined_flag_F77 \ 23245 export_symbols_cmds_F77 \ 23246 hardcode_libdir_flag_spec_F77 \ 23247 hardcode_libdir_flag_spec_ld_F77 \ 23248 hardcode_libdir_separator_F77 \ 23249 hardcode_automatic_F77 \ 23250 module_cmds_F77 \ 23251 module_expsym_cmds_F77 \ 23252 lt_cv_prog_compiler_c_o_F77 \ 23253 fix_srcfile_path_F77 \ 23254 exclude_expsyms_F77 \ 23255 include_expsyms_F77; do 23256 23257 case $var in 23258 old_archive_cmds_F77 | \ 23259 old_archive_from_new_cmds_F77 | \ 23260 archive_cmds_F77 | \ 23261 archive_expsym_cmds_F77 | \ 23262 module_cmds_F77 | \ 23263 module_expsym_cmds_F77 | \ 23264 old_archive_from_expsyms_cmds_F77 | \ 23265 export_symbols_cmds_F77 | \ 23266 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 23267 postinstall_cmds | postuninstall_cmds | \ 23268 old_postinstall_cmds | old_postuninstall_cmds | \ 23269 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 23270 # Double-quote double-evaled strings. 23271 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 23272 ;; 23273 *) 23274 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 23275 ;; 23276 esac 23277 done 23278 23279 case $lt_echo in 23280 *'\$0 --fallback-echo"') 23281 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 23282 ;; 23283 esac 23284 23285cfgfile="$ofile" 23286 23287 cat <<__EOF__ >> "$cfgfile" 23288# ### BEGIN LIBTOOL TAG CONFIG: $tagname 23289 23290# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 23291 23292# Shell to use when invoking shell scripts. 23293SHELL=$lt_SHELL 23294 23295# Whether or not to build shared libraries. 23296build_libtool_libs=$enable_shared 23297 23298# Whether or not to build static libraries. 23299build_old_libs=$enable_static 23300 23301# Whether or not to add -lc for building shared libraries. 23302build_libtool_need_lc=$archive_cmds_need_lc_F77 23303 23304# Whether or not to disallow shared libs when runtime libs are static 23305allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 23306 23307# Whether or not to optimize for fast installation. 23308fast_install=$enable_fast_install 23309 23310# The host system. 23311host_alias=$host_alias 23312host=$host 23313host_os=$host_os 23314 23315# The build system. 23316build_alias=$build_alias 23317build=$build 23318build_os=$build_os 23319 23320# An echo program that does not interpret backslashes. 23321echo=$lt_echo 23322 23323# The archiver. 23324AR=$lt_AR 23325AR_FLAGS=$lt_AR_FLAGS 23326 23327# A C compiler. 23328LTCC=$lt_LTCC 23329 23330# LTCC compiler flags. 23331LTCFLAGS=$lt_LTCFLAGS 23332 23333# A language-specific compiler. 23334CC=$lt_compiler_F77 23335 23336# Is the compiler the GNU C compiler? 23337with_gcc=$GCC_F77 23338 23339# An ERE matcher. 23340EGREP=$lt_EGREP 23341 23342# The linker used to build libraries. 23343LD=$lt_LD_F77 23344 23345# Whether we need hard or soft links. 23346LN_S=$lt_LN_S 23347 23348# A BSD-compatible nm program. 23349NM=$lt_NM 23350 23351# A symbol stripping program 23352STRIP=$lt_STRIP 23353 23354# Used to examine libraries when file_magic_cmd begins "file" 23355MAGIC_CMD=$MAGIC_CMD 23356 23357# Used on cygwin: DLL creation program. 23358DLLTOOL="$DLLTOOL" 23359 23360# Used on cygwin: object dumper. 23361OBJDUMP="$OBJDUMP" 23362 23363# Used on cygwin: assembler. 23364AS="$AS" 23365 23366# The name of the directory that contains temporary libtool files. 23367objdir=$objdir 23368 23369# How to create reloadable object files. 23370reload_flag=$lt_reload_flag 23371reload_cmds=$lt_reload_cmds 23372 23373# How to pass a linker flag through the compiler. 23374wl=$lt_lt_prog_compiler_wl_F77 23375 23376# Object file suffix (normally "o"). 23377objext="$ac_objext" 23378 23379# Old archive suffix (normally "a"). 23380libext="$libext" 23381 23382# Shared library suffix (normally ".so"). 23383shrext_cmds='$shrext_cmds' 23384 23385# Executable file suffix (normally ""). 23386exeext="$exeext" 23387 23388# Additional compiler flags for building library objects. 23389pic_flag=$lt_lt_prog_compiler_pic_F77 23390pic_mode=$pic_mode 23391 23392# What is the maximum length of a command? 23393max_cmd_len=$lt_cv_sys_max_cmd_len 23394 23395# Does compiler simultaneously support -c and -o options? 23396compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 23397 23398# Must we lock files when doing compilation? 23399need_locks=$lt_need_locks 23400 23401# Do we need the lib prefix for modules? 23402need_lib_prefix=$need_lib_prefix 23403 23404# Do we need a version for libraries? 23405need_version=$need_version 23406 23407# Whether dlopen is supported. 23408dlopen_support=$enable_dlopen 23409 23410# Whether dlopen of programs is supported. 23411dlopen_self=$enable_dlopen_self 23412 23413# Whether dlopen of statically linked programs is supported. 23414dlopen_self_static=$enable_dlopen_self_static 23415 23416# Compiler flag to prevent dynamic linking. 23417link_static_flag=$lt_lt_prog_compiler_static_F77 23418 23419# Compiler flag to turn off builtin functions. 23420no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 23421 23422# Compiler flag to allow reflexive dlopens. 23423export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 23424 23425# Compiler flag to generate shared objects directly from archives. 23426whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 23427 23428# Compiler flag to generate thread-safe objects. 23429thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 23430 23431# Library versioning type. 23432version_type=$version_type 23433 23434# Format of library name prefix. 23435libname_spec=$lt_libname_spec 23436 23437# List of archive names. First name is the real one, the rest are links. 23438# The last name is the one that the linker finds with -lNAME. 23439library_names_spec=$lt_library_names_spec 23440 23441# The coded name of the library, if different from the real name. 23442soname_spec=$lt_soname_spec 23443 23444# Commands used to build and install an old-style archive. 23445RANLIB=$lt_RANLIB 23446old_archive_cmds=$lt_old_archive_cmds_F77 23447old_postinstall_cmds=$lt_old_postinstall_cmds 23448old_postuninstall_cmds=$lt_old_postuninstall_cmds 23449 23450# Create an old-style archive from a shared archive. 23451old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 23452 23453# Create a temporary old-style archive to link instead of a shared archive. 23454old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 23455 23456# Commands used to build and install a shared archive. 23457archive_cmds=$lt_archive_cmds_F77 23458archive_expsym_cmds=$lt_archive_expsym_cmds_F77 23459postinstall_cmds=$lt_postinstall_cmds 23460postuninstall_cmds=$lt_postuninstall_cmds 23461 23462# Commands used to build a loadable module (assumed same as above if empty) 23463module_cmds=$lt_module_cmds_F77 23464module_expsym_cmds=$lt_module_expsym_cmds_F77 23465 23466# Commands to strip libraries. 23467old_striplib=$lt_old_striplib 23468striplib=$lt_striplib 23469 23470# Dependencies to place before the objects being linked to create a 23471# shared library. 23472predep_objects=$lt_predep_objects_F77 23473 23474# Dependencies to place after the objects being linked to create a 23475# shared library. 23476postdep_objects=$lt_postdep_objects_F77 23477 23478# Dependencies to place before the objects being linked to create a 23479# shared library. 23480predeps=$lt_predeps_F77 23481 23482# Dependencies to place after the objects being linked to create a 23483# shared library. 23484postdeps=$lt_postdeps_F77 23485 23486# The directories searched by this compiler when creating a shared 23487# library 23488compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77 23489 23490# The library search path used internally by the compiler when linking 23491# a shared library. 23492compiler_lib_search_path=$lt_compiler_lib_search_path_F77 23493 23494# Method to check whether dependent libraries are shared objects. 23495deplibs_check_method=$lt_deplibs_check_method 23496 23497# Command to use when deplibs_check_method == file_magic. 23498file_magic_cmd=$lt_file_magic_cmd 23499 23500# Flag that allows shared libraries with undefined symbols to be built. 23501allow_undefined_flag=$lt_allow_undefined_flag_F77 23502 23503# Flag that forces no undefined symbols. 23504no_undefined_flag=$lt_no_undefined_flag_F77 23505 23506# Commands used to finish a libtool library installation in a directory. 23507finish_cmds=$lt_finish_cmds 23508 23509# Same as above, but a single script fragment to be evaled but not shown. 23510finish_eval=$lt_finish_eval 23511 23512# Take the output of nm and produce a listing of raw symbols and C names. 23513global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 23514 23515# Transform the output of nm in a proper C declaration 23516global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 23517 23518# Transform the output of nm in a C name address pair 23519global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 23520 23521# This is the shared library runtime path variable. 23522runpath_var=$runpath_var 23523 23524# This is the shared library path variable. 23525shlibpath_var=$shlibpath_var 23526 23527# Is shlibpath searched before the hard-coded library search path? 23528shlibpath_overrides_runpath=$shlibpath_overrides_runpath 23529 23530# How to hardcode a shared library path into an executable. 23531hardcode_action=$hardcode_action_F77 23532 23533# Whether we should hardcode library paths into libraries. 23534hardcode_into_libs=$hardcode_into_libs 23535 23536# Flag to hardcode \$libdir into a binary during linking. 23537# This must work even if \$libdir does not exist. 23538hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 23539 23540# If ld is used when linking, flag to hardcode \$libdir into 23541# a binary during linking. This must work even if \$libdir does 23542# not exist. 23543hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 23544 23545# Whether we need a single -rpath flag with a separated argument. 23546hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 23547 23548# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 23549# resulting binary. 23550hardcode_direct=$hardcode_direct_F77 23551 23552# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 23553# resulting binary. 23554hardcode_minus_L=$hardcode_minus_L_F77 23555 23556# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 23557# the resulting binary. 23558hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 23559 23560# Set to yes if building a shared library automatically hardcodes DIR into the library 23561# and all subsequent libraries and executables linked against it. 23562hardcode_automatic=$hardcode_automatic_F77 23563 23564# Variables whose values should be saved in libtool wrapper scripts and 23565# restored at relink time. 23566variables_saved_for_relink="$variables_saved_for_relink" 23567 23568# Whether libtool must link a program against all its dependency libraries. 23569link_all_deplibs=$link_all_deplibs_F77 23570 23571# Compile-time system search path for libraries 23572sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 23573 23574# Run-time system search path for libraries 23575sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 23576 23577# Fix the shell variable \$srcfile for the compiler. 23578fix_srcfile_path=$lt_fix_srcfile_path 23579 23580# Set to yes if exported symbols are required. 23581always_export_symbols=$always_export_symbols_F77 23582 23583# The commands to list exported symbols. 23584export_symbols_cmds=$lt_export_symbols_cmds_F77 23585 23586# The commands to extract the exported symbol list from a shared archive. 23587extract_expsyms_cmds=$lt_extract_expsyms_cmds 23588 23589# Symbols that should not be listed in the preloaded symbols. 23590exclude_expsyms=$lt_exclude_expsyms_F77 23591 23592# Symbols that must always be exported. 23593include_expsyms=$lt_include_expsyms_F77 23594 23595# ### END LIBTOOL TAG CONFIG: $tagname 23596 23597__EOF__ 23598 23599 23600else 23601 # If there is no Makefile yet, we rely on a make rule to execute 23602 # `config.status --recheck' to rerun these tests and create the 23603 # libtool script then. 23604 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 23605 if test -f "$ltmain_in"; then 23606 test -f Makefile && make "$ltmain" 23607 fi 23608fi 23609 23610 23611ac_ext=cpp 23612ac_cpp='$CXXCPP $CPPFLAGS' 23613ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23614ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23615ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 23616 23617CC="$lt_save_CC" 23618 23619 else 23620 tagname="" 23621 fi 23622 ;; 23623 23624 GCJ) 23625 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 23626 23627 23628# Source file extension for Java test sources. 23629ac_ext=java 23630 23631# Object file extension for compiled Java test sources. 23632objext=o 23633objext_GCJ=$objext 23634 23635# Code to be used in simple compile tests 23636lt_simple_compile_test_code="class foo {}" 23637 23638# Code to be used in simple link tests 23639lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' 23640 23641# ltmain only uses $CC for tagged configurations so make sure $CC is set. 23642 23643# If no C compiler was specified, use CC. 23644LTCC=${LTCC-"$CC"} 23645 23646# If no C compiler flags were specified, use CFLAGS. 23647LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 23648 23649# Allow CC to be a program name with arguments. 23650compiler=$CC 23651 23652 23653# save warnings/boilerplate of simple test code 23654ac_outfile=conftest.$ac_objext 23655echo "$lt_simple_compile_test_code" >conftest.$ac_ext 23656eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 23657_lt_compiler_boilerplate=`cat conftest.err` 23658$rm conftest* 23659 23660ac_outfile=conftest.$ac_objext 23661echo "$lt_simple_link_test_code" >conftest.$ac_ext 23662eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 23663_lt_linker_boilerplate=`cat conftest.err` 23664$rm -r conftest* 23665 23666 23667# Allow CC to be a program name with arguments. 23668lt_save_CC="$CC" 23669CC=${GCJ-"gcj"} 23670compiler=$CC 23671compiler_GCJ=$CC 23672for cc_temp in $compiler""; do 23673 case $cc_temp in 23674 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 23675 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 23676 \-*) ;; 23677 *) break;; 23678 esac 23679done 23680cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 23681 23682 23683# GCJ did not exist at the time GCC didn't implicitly link libc in. 23684archive_cmds_need_lc_GCJ=no 23685 23686old_archive_cmds_GCJ=$old_archive_cmds 23687 23688 23689lt_prog_compiler_no_builtin_flag_GCJ= 23690 23691if test "$GCC" = yes; then 23692 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 23693 23694 23695{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 23696echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 23697if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 23698 echo $ECHO_N "(cached) $ECHO_C" >&6 23699else 23700 lt_cv_prog_compiler_rtti_exceptions=no 23701 ac_outfile=conftest.$ac_objext 23702 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 23703 lt_compiler_flag="-fno-rtti -fno-exceptions" 23704 # Insert the option either (1) after the last *FLAGS variable, or 23705 # (2) before a word containing "conftest.", or (3) at the end. 23706 # Note that $ac_compile itself does not contain backslashes and begins 23707 # with a dollar sign (not a hyphen), so the echo should work correctly. 23708 # The option is referenced via a variable to avoid confusing sed. 23709 lt_compile=`echo "$ac_compile" | $SED \ 23710 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 23711 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 23712 -e 's:$: $lt_compiler_flag:'` 23713 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 23714 (eval "$lt_compile" 2>conftest.err) 23715 ac_status=$? 23716 cat conftest.err >&5 23717 echo "$as_me:__oline__: \$? = $ac_status" >&5 23718 if (exit $ac_status) && test -s "$ac_outfile"; then 23719 # The compiler can only warn and ignore the option if not recognized 23720 # So say no if there are warnings other than the usual output. 23721 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 23722 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 23723 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 23724 lt_cv_prog_compiler_rtti_exceptions=yes 23725 fi 23726 fi 23727 $rm conftest* 23728 23729fi 23730{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 23731echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 23732 23733if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 23734 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 23735else 23736 : 23737fi 23738 23739fi 23740 23741lt_prog_compiler_wl_GCJ= 23742lt_prog_compiler_pic_GCJ= 23743lt_prog_compiler_static_GCJ= 23744 23745{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 23746echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 23747 23748 if test "$GCC" = yes; then 23749 lt_prog_compiler_wl_GCJ='-Wl,' 23750 lt_prog_compiler_static_GCJ='-static' 23751 23752 case $host_os in 23753 aix*) 23754 # All AIX code is PIC. 23755 if test "$host_cpu" = ia64; then 23756 # AIX 5 now supports IA64 processor 23757 lt_prog_compiler_static_GCJ='-Bstatic' 23758 fi 23759 ;; 23760 23761 amigaos*) 23762 # FIXME: we need at least 68020 code to build shared libraries, but 23763 # adding the `-m68020' flag to GCC prevents building anything better, 23764 # like `-m68040'. 23765 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 23766 ;; 23767 23768 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 23769 # PIC is the default for these OSes. 23770 ;; 23771 23772 mingw* | cygwin* | pw32* | os2*) 23773 # This hack is so that the source file can tell whether it is being 23774 # built for inclusion in a dll (and should export symbols for example). 23775 # Although the cygwin gcc ignores -fPIC, still need this for old-style 23776 # (--disable-auto-import) libraries 23777 23778 ;; 23779 23780 darwin* | rhapsody*) 23781 # PIC is the default on this platform 23782 # Common symbols not allowed in MH_DYLIB files 23783 lt_prog_compiler_pic_GCJ='-fno-common' 23784 ;; 23785 23786 interix[3-9]*) 23787 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 23788 # Instead, we relocate shared libraries at runtime. 23789 ;; 23790 23791 msdosdjgpp*) 23792 # Just because we use GCC doesn't mean we suddenly get shared libraries 23793 # on systems that don't support them. 23794 lt_prog_compiler_can_build_shared_GCJ=no 23795 enable_shared=no 23796 ;; 23797 23798 sysv4*MP*) 23799 if test -d /usr/nec; then 23800 lt_prog_compiler_pic_GCJ=-Kconform_pic 23801 fi 23802 ;; 23803 23804 hpux*) 23805 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 23806 # not for PA HP-UX. 23807 case $host_cpu in 23808 hppa*64*|ia64*) 23809 # +Z the default 23810 ;; 23811 *) 23812 lt_prog_compiler_pic_GCJ='-fPIC' 23813 ;; 23814 esac 23815 ;; 23816 23817 *) 23818 lt_prog_compiler_pic_GCJ='-fPIC' 23819 ;; 23820 esac 23821 else 23822 # PORTME Check for flag to pass linker flags through the system compiler. 23823 case $host_os in 23824 aix*) 23825 lt_prog_compiler_wl_GCJ='-Wl,' 23826 if test "$host_cpu" = ia64; then 23827 # AIX 5 now supports IA64 processor 23828 lt_prog_compiler_static_GCJ='-Bstatic' 23829 else 23830 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 23831 fi 23832 ;; 23833 darwin*) 23834 # PIC is the default on this platform 23835 # Common symbols not allowed in MH_DYLIB files 23836 case $cc_basename in 23837 xlc*) 23838 lt_prog_compiler_pic_GCJ='-qnocommon' 23839 lt_prog_compiler_wl_GCJ='-Wl,' 23840 ;; 23841 esac 23842 ;; 23843 23844 mingw* | cygwin* | pw32* | os2*) 23845 # This hack is so that the source file can tell whether it is being 23846 # built for inclusion in a dll (and should export symbols for example). 23847 23848 ;; 23849 23850 hpux9* | hpux10* | hpux11*) 23851 lt_prog_compiler_wl_GCJ='-Wl,' 23852 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 23853 # not for PA HP-UX. 23854 case $host_cpu in 23855 hppa*64*|ia64*) 23856 # +Z the default 23857 ;; 23858 *) 23859 lt_prog_compiler_pic_GCJ='+Z' 23860 ;; 23861 esac 23862 # Is there a better lt_prog_compiler_static that works with the bundled CC? 23863 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 23864 ;; 23865 23866 irix5* | irix6* | nonstopux*) 23867 lt_prog_compiler_wl_GCJ='-Wl,' 23868 # PIC (with -KPIC) is the default. 23869 lt_prog_compiler_static_GCJ='-non_shared' 23870 ;; 23871 23872 newsos6) 23873 lt_prog_compiler_pic_GCJ='-KPIC' 23874 lt_prog_compiler_static_GCJ='-Bstatic' 23875 ;; 23876 23877 linux* | k*bsd*-gnu) 23878 case $cc_basename in 23879 icc* | ecc*) 23880 lt_prog_compiler_wl_GCJ='-Wl,' 23881 lt_prog_compiler_pic_GCJ='-KPIC' 23882 lt_prog_compiler_static_GCJ='-static' 23883 ;; 23884 pgcc* | pgf77* | pgf90* | pgf95*) 23885 # Portland Group compilers (*not* the Pentium gcc compiler, 23886 # which looks to be a dead project) 23887 lt_prog_compiler_wl_GCJ='-Wl,' 23888 lt_prog_compiler_pic_GCJ='-fpic' 23889 lt_prog_compiler_static_GCJ='-Bstatic' 23890 ;; 23891 ccc*) 23892 lt_prog_compiler_wl_GCJ='-Wl,' 23893 # All Alpha code is PIC. 23894 lt_prog_compiler_static_GCJ='-non_shared' 23895 ;; 23896 *) 23897 case `$CC -V 2>&1 | sed 5q` in 23898 *Sun\ C*) 23899 # Sun C 5.9 23900 lt_prog_compiler_pic_GCJ='-KPIC' 23901 lt_prog_compiler_static_GCJ='-Bstatic' 23902 lt_prog_compiler_wl_GCJ='-Wl,' 23903 ;; 23904 *Sun\ F*) 23905 # Sun Fortran 8.3 passes all unrecognized flags to the linker 23906 lt_prog_compiler_pic_GCJ='-KPIC' 23907 lt_prog_compiler_static_GCJ='-Bstatic' 23908 lt_prog_compiler_wl_GCJ='' 23909 ;; 23910 esac 23911 ;; 23912 esac 23913 ;; 23914 23915 osf3* | osf4* | osf5*) 23916 lt_prog_compiler_wl_GCJ='-Wl,' 23917 # All OSF/1 code is PIC. 23918 lt_prog_compiler_static_GCJ='-non_shared' 23919 ;; 23920 23921 rdos*) 23922 lt_prog_compiler_static_GCJ='-non_shared' 23923 ;; 23924 23925 solaris*) 23926 lt_prog_compiler_pic_GCJ='-KPIC' 23927 lt_prog_compiler_static_GCJ='-Bstatic' 23928 case $cc_basename in 23929 f77* | f90* | f95*) 23930 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 23931 *) 23932 lt_prog_compiler_wl_GCJ='-Wl,';; 23933 esac 23934 ;; 23935 23936 sunos4*) 23937 lt_prog_compiler_wl_GCJ='-Qoption ld ' 23938 lt_prog_compiler_pic_GCJ='-PIC' 23939 lt_prog_compiler_static_GCJ='-Bstatic' 23940 ;; 23941 23942 sysv4 | sysv4.2uw2* | sysv4.3*) 23943 lt_prog_compiler_wl_GCJ='-Wl,' 23944 lt_prog_compiler_pic_GCJ='-KPIC' 23945 lt_prog_compiler_static_GCJ='-Bstatic' 23946 ;; 23947 23948 sysv4*MP*) 23949 if test -d /usr/nec ;then 23950 lt_prog_compiler_pic_GCJ='-Kconform_pic' 23951 lt_prog_compiler_static_GCJ='-Bstatic' 23952 fi 23953 ;; 23954 23955 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 23956 lt_prog_compiler_wl_GCJ='-Wl,' 23957 lt_prog_compiler_pic_GCJ='-KPIC' 23958 lt_prog_compiler_static_GCJ='-Bstatic' 23959 ;; 23960 23961 unicos*) 23962 lt_prog_compiler_wl_GCJ='-Wl,' 23963 lt_prog_compiler_can_build_shared_GCJ=no 23964 ;; 23965 23966 uts4*) 23967 lt_prog_compiler_pic_GCJ='-pic' 23968 lt_prog_compiler_static_GCJ='-Bstatic' 23969 ;; 23970 23971 *) 23972 lt_prog_compiler_can_build_shared_GCJ=no 23973 ;; 23974 esac 23975 fi 23976 23977{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 23978echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 23979 23980# 23981# Check to make sure the PIC flag actually works. 23982# 23983if test -n "$lt_prog_compiler_pic_GCJ"; then 23984 23985{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 23986echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 23987if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then 23988 echo $ECHO_N "(cached) $ECHO_C" >&6 23989else 23990 lt_cv_prog_compiler_pic_works_GCJ=no 23991 ac_outfile=conftest.$ac_objext 23992 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 23993 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 23994 # Insert the option either (1) after the last *FLAGS variable, or 23995 # (2) before a word containing "conftest.", or (3) at the end. 23996 # Note that $ac_compile itself does not contain backslashes and begins 23997 # with a dollar sign (not a hyphen), so the echo should work correctly. 23998 # The option is referenced via a variable to avoid confusing sed. 23999 lt_compile=`echo "$ac_compile" | $SED \ 24000 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 24001 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 24002 -e 's:$: $lt_compiler_flag:'` 24003 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 24004 (eval "$lt_compile" 2>conftest.err) 24005 ac_status=$? 24006 cat conftest.err >&5 24007 echo "$as_me:__oline__: \$? = $ac_status" >&5 24008 if (exit $ac_status) && test -s "$ac_outfile"; then 24009 # The compiler can only warn and ignore the option if not recognized 24010 # So say no if there are warnings other than the usual output. 24011 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 24012 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 24013 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 24014 lt_cv_prog_compiler_pic_works_GCJ=yes 24015 fi 24016 fi 24017 $rm conftest* 24018 24019fi 24020{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5 24021echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; } 24022 24023if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then 24024 case $lt_prog_compiler_pic_GCJ in 24025 "" | " "*) ;; 24026 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 24027 esac 24028else 24029 lt_prog_compiler_pic_GCJ= 24030 lt_prog_compiler_can_build_shared_GCJ=no 24031fi 24032 24033fi 24034case $host_os in 24035 # For platforms which do not support PIC, -DPIC is meaningless: 24036 *djgpp*) 24037 lt_prog_compiler_pic_GCJ= 24038 ;; 24039 *) 24040 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 24041 ;; 24042esac 24043 24044# 24045# Check to make sure the static flag actually works. 24046# 24047wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 24048{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 24049echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 24050if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then 24051 echo $ECHO_N "(cached) $ECHO_C" >&6 24052else 24053 lt_cv_prog_compiler_static_works_GCJ=no 24054 save_LDFLAGS="$LDFLAGS" 24055 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 24056 echo "$lt_simple_link_test_code" > conftest.$ac_ext 24057 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 24058 # The linker can only warn and ignore the option if not recognized 24059 # So say no if there are warnings 24060 if test -s conftest.err; then 24061 # Append any errors to the config.log. 24062 cat conftest.err 1>&5 24063 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 24064 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 24065 if diff conftest.exp conftest.er2 >/dev/null; then 24066 lt_cv_prog_compiler_static_works_GCJ=yes 24067 fi 24068 else 24069 lt_cv_prog_compiler_static_works_GCJ=yes 24070 fi 24071 fi 24072 $rm -r conftest* 24073 LDFLAGS="$save_LDFLAGS" 24074 24075fi 24076{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5 24077echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; } 24078 24079if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then 24080 : 24081else 24082 lt_prog_compiler_static_GCJ= 24083fi 24084 24085 24086{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 24087echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 24088if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 24089 echo $ECHO_N "(cached) $ECHO_C" >&6 24090else 24091 lt_cv_prog_compiler_c_o_GCJ=no 24092 $rm -r conftest 2>/dev/null 24093 mkdir conftest 24094 cd conftest 24095 mkdir out 24096 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 24097 24098 lt_compiler_flag="-o out/conftest2.$ac_objext" 24099 # Insert the option either (1) after the last *FLAGS variable, or 24100 # (2) before a word containing "conftest.", or (3) at the end. 24101 # Note that $ac_compile itself does not contain backslashes and begins 24102 # with a dollar sign (not a hyphen), so the echo should work correctly. 24103 lt_compile=`echo "$ac_compile" | $SED \ 24104 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 24105 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 24106 -e 's:$: $lt_compiler_flag:'` 24107 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 24108 (eval "$lt_compile" 2>out/conftest.err) 24109 ac_status=$? 24110 cat out/conftest.err >&5 24111 echo "$as_me:__oline__: \$? = $ac_status" >&5 24112 if (exit $ac_status) && test -s out/conftest2.$ac_objext 24113 then 24114 # The compiler can only warn and ignore the option if not recognized 24115 # So say no if there are warnings 24116 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 24117 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 24118 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 24119 lt_cv_prog_compiler_c_o_GCJ=yes 24120 fi 24121 fi 24122 chmod u+w . 2>&5 24123 $rm conftest* 24124 # SGI C++ compiler will create directory out/ii_files/ for 24125 # template instantiation 24126 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 24127 $rm out/* && rmdir out 24128 cd .. 24129 rmdir conftest 24130 $rm conftest* 24131 24132fi 24133{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 24134echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 24135 24136 24137hard_links="nottested" 24138if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 24139 # do not overwrite the value of need_locks provided by the user 24140 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 24141echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 24142 hard_links=yes 24143 $rm conftest* 24144 ln conftest.a conftest.b 2>/dev/null && hard_links=no 24145 touch conftest.a 24146 ln conftest.a conftest.b 2>&5 || hard_links=no 24147 ln conftest.a conftest.b 2>/dev/null && hard_links=no 24148 { echo "$as_me:$LINENO: result: $hard_links" >&5 24149echo "${ECHO_T}$hard_links" >&6; } 24150 if test "$hard_links" = no; then 24151 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 24152echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 24153 need_locks=warn 24154 fi 24155else 24156 need_locks=no 24157fi 24158 24159{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 24160echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 24161 24162 runpath_var= 24163 allow_undefined_flag_GCJ= 24164 enable_shared_with_static_runtimes_GCJ=no 24165 archive_cmds_GCJ= 24166 archive_expsym_cmds_GCJ= 24167 old_archive_From_new_cmds_GCJ= 24168 old_archive_from_expsyms_cmds_GCJ= 24169 export_dynamic_flag_spec_GCJ= 24170 whole_archive_flag_spec_GCJ= 24171 thread_safe_flag_spec_GCJ= 24172 hardcode_libdir_flag_spec_GCJ= 24173 hardcode_libdir_flag_spec_ld_GCJ= 24174 hardcode_libdir_separator_GCJ= 24175 hardcode_direct_GCJ=no 24176 hardcode_minus_L_GCJ=no 24177 hardcode_shlibpath_var_GCJ=unsupported 24178 link_all_deplibs_GCJ=unknown 24179 hardcode_automatic_GCJ=no 24180 module_cmds_GCJ= 24181 module_expsym_cmds_GCJ= 24182 always_export_symbols_GCJ=no 24183 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 24184 # include_expsyms should be a list of space-separated symbols to be *always* 24185 # included in the symbol list 24186 include_expsyms_GCJ= 24187 # exclude_expsyms can be an extended regexp of symbols to exclude 24188 # it will be wrapped by ` (' and `)$', so one must not match beginning or 24189 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 24190 # as well as any symbol that contains `d'. 24191 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 24192 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 24193 # platforms (ab)use it in PIC code, but their linkers get confused if 24194 # the symbol is explicitly referenced. Since portable code cannot 24195 # rely on this symbol name, it's probably fine to never include it in 24196 # preloaded symbol tables. 24197 # Exclude shared library initialization/finalization symbols. 24198 extract_expsyms_cmds= 24199 # Just being paranoid about ensuring that cc_basename is set. 24200 for cc_temp in $compiler""; do 24201 case $cc_temp in 24202 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 24203 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 24204 \-*) ;; 24205 *) break;; 24206 esac 24207done 24208cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 24209 24210 case $host_os in 24211 cygwin* | mingw* | pw32*) 24212 # FIXME: the MSVC++ port hasn't been tested in a loooong time 24213 # When not using gcc, we currently assume that we are using 24214 # Microsoft Visual C++. 24215 if test "$GCC" != yes; then 24216 with_gnu_ld=no 24217 fi 24218 ;; 24219 interix*) 24220 # we just hope/assume this is gcc and not c89 (= MSVC++) 24221 with_gnu_ld=yes 24222 ;; 24223 openbsd*) 24224 with_gnu_ld=no 24225 ;; 24226 esac 24227 24228 ld_shlibs_GCJ=yes 24229 if test "$with_gnu_ld" = yes; then 24230 # If archive_cmds runs LD, not CC, wlarc should be empty 24231 wlarc='${wl}' 24232 24233 # Set some defaults for GNU ld with shared library support. These 24234 # are reset later if shared libraries are not supported. Putting them 24235 # here allows them to be overridden if necessary. 24236 runpath_var=LD_RUN_PATH 24237 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 24238 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 24239 # ancient GNU ld didn't support --whole-archive et. al. 24240 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 24241 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 24242 else 24243 whole_archive_flag_spec_GCJ= 24244 fi 24245 supports_anon_versioning=no 24246 case `$LD -v 2>/dev/null` in 24247 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 24248 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 24249 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 24250 *\ 2.11.*) ;; # other 2.11 versions 24251 *) supports_anon_versioning=yes ;; 24252 esac 24253 24254 # See if GNU ld supports shared libraries. 24255 case $host_os in 24256 aix[3-9]*) 24257 # On AIX/PPC, the GNU linker is very broken 24258 if test "$host_cpu" != ia64; then 24259 ld_shlibs_GCJ=no 24260 cat <<EOF 1>&2 24261 24262*** Warning: the GNU linker, at least up to release 2.9.1, is reported 24263*** to be unable to reliably create shared libraries on AIX. 24264*** Therefore, libtool is disabling shared libraries support. If you 24265*** really care for shared libraries, you may want to modify your PATH 24266*** so that a non-GNU linker is found, and then restart. 24267 24268EOF 24269 fi 24270 ;; 24271 24272 amigaos*) 24273 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)' 24274 hardcode_libdir_flag_spec_GCJ='-L$libdir' 24275 hardcode_minus_L_GCJ=yes 24276 24277 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 24278 # that the semantics of dynamic libraries on AmigaOS, at least up 24279 # to version 4, is to share data among multiple programs linked 24280 # with the same dynamic library. Since this doesn't match the 24281 # behavior of shared libraries on other platforms, we can't use 24282 # them. 24283 ld_shlibs_GCJ=no 24284 ;; 24285 24286 beos*) 24287 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 24288 allow_undefined_flag_GCJ=unsupported 24289 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 24290 # support --undefined. This deserves some investigation. FIXME 24291 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 24292 else 24293 ld_shlibs_GCJ=no 24294 fi 24295 ;; 24296 24297 cygwin* | mingw* | pw32*) 24298 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 24299 # as there is no search path for DLLs. 24300 hardcode_libdir_flag_spec_GCJ='-L$libdir' 24301 allow_undefined_flag_GCJ=unsupported 24302 always_export_symbols_GCJ=no 24303 enable_shared_with_static_runtimes_GCJ=yes 24304 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 24305 24306 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 24307 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 24308 # If the export-symbols file already is a .def file (1st line 24309 # is EXPORTS), use it as is; otherwise, prepend... 24310 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 24311 cp $export_symbols $output_objdir/$soname.def; 24312 else 24313 echo EXPORTS > $output_objdir/$soname.def; 24314 cat $export_symbols >> $output_objdir/$soname.def; 24315 fi~ 24316 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 24317 else 24318 ld_shlibs_GCJ=no 24319 fi 24320 ;; 24321 24322 interix[3-9]*) 24323 hardcode_direct_GCJ=no 24324 hardcode_shlibpath_var_GCJ=no 24325 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 24326 export_dynamic_flag_spec_GCJ='${wl}-E' 24327 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 24328 # Instead, shared libraries are loaded at an image base (0x10000000 by 24329 # default) and relocated if they conflict, which is a slow very memory 24330 # consuming and fragmenting process. To avoid this, we pick a random, 24331 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 24332 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 24333 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' 24334 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' 24335 ;; 24336 24337 gnu* | linux* | k*bsd*-gnu) 24338 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 24339 tmp_addflag= 24340 case $cc_basename,$host_cpu in 24341 pgcc*) # Portland Group C compiler 24342 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' 24343 tmp_addflag=' $pic_flag' 24344 ;; 24345 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 24346 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' 24347 tmp_addflag=' $pic_flag -Mnomain' ;; 24348 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 24349 tmp_addflag=' -i_dynamic' ;; 24350 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 24351 tmp_addflag=' -i_dynamic -nofor_main' ;; 24352 ifc* | ifort*) # Intel Fortran compiler 24353 tmp_addflag=' -nofor_main' ;; 24354 esac 24355 case `$CC -V 2>&1 | sed 5q` in 24356 *Sun\ C*) # Sun C 5.9 24357 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' 24358 tmp_sharedflag='-G' ;; 24359 *Sun\ F*) # Sun Fortran 8.3 24360 tmp_sharedflag='-G' ;; 24361 *) 24362 tmp_sharedflag='-shared' ;; 24363 esac 24364 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 24365 24366 if test $supports_anon_versioning = yes; then 24367 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 24368 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 24369 $echo "local: *; };" >> $output_objdir/$libname.ver~ 24370 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 24371 fi 24372 else 24373 ld_shlibs_GCJ=no 24374 fi 24375 ;; 24376 24377 netbsd*) 24378 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 24379 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 24380 wlarc= 24381 else 24382 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 24383 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 24384 fi 24385 ;; 24386 24387 solaris*) 24388 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 24389 ld_shlibs_GCJ=no 24390 cat <<EOF 1>&2 24391 24392*** Warning: The releases 2.8.* of the GNU linker cannot reliably 24393*** create shared libraries on Solaris systems. Therefore, libtool 24394*** is disabling shared libraries support. We urge you to upgrade GNU 24395*** binutils to release 2.9.1 or newer. Another option is to modify 24396*** your PATH or compiler configuration so that the native linker is 24397*** used, and then restart. 24398 24399EOF 24400 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 24401 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 24402 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 24403 else 24404 ld_shlibs_GCJ=no 24405 fi 24406 ;; 24407 24408 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 24409 case `$LD -v 2>&1` in 24410 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 24411 ld_shlibs_GCJ=no 24412 cat <<_LT_EOF 1>&2 24413 24414*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 24415*** reliably create shared libraries on SCO systems. Therefore, libtool 24416*** is disabling shared libraries support. We urge you to upgrade GNU 24417*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 24418*** your PATH or compiler configuration so that the native linker is 24419*** used, and then restart. 24420 24421_LT_EOF 24422 ;; 24423 *) 24424 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 24425 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 24426 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 24427 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 24428 else 24429 ld_shlibs_GCJ=no 24430 fi 24431 ;; 24432 esac 24433 ;; 24434 24435 sunos4*) 24436 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 24437 wlarc= 24438 hardcode_direct_GCJ=yes 24439 hardcode_shlibpath_var_GCJ=no 24440 ;; 24441 24442 *) 24443 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 24444 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 24445 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 24446 else 24447 ld_shlibs_GCJ=no 24448 fi 24449 ;; 24450 esac 24451 24452 if test "$ld_shlibs_GCJ" = no; then 24453 runpath_var= 24454 hardcode_libdir_flag_spec_GCJ= 24455 export_dynamic_flag_spec_GCJ= 24456 whole_archive_flag_spec_GCJ= 24457 fi 24458 else 24459 # PORTME fill in a description of your system's linker (not GNU ld) 24460 case $host_os in 24461 aix3*) 24462 allow_undefined_flag_GCJ=unsupported 24463 always_export_symbols_GCJ=yes 24464 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' 24465 # Note: this linker hardcodes the directories in LIBPATH if there 24466 # are no directories specified by -L. 24467 hardcode_minus_L_GCJ=yes 24468 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 24469 # Neither direct hardcoding nor static linking is supported with a 24470 # broken collect2. 24471 hardcode_direct_GCJ=unsupported 24472 fi 24473 ;; 24474 24475 aix[4-9]*) 24476 if test "$host_cpu" = ia64; then 24477 # On IA64, the linker does run time linking by default, so we don't 24478 # have to do anything special. 24479 aix_use_runtimelinking=no 24480 exp_sym_flag='-Bexport' 24481 no_entry_flag="" 24482 else 24483 # If we're using GNU nm, then we don't want the "-C" option. 24484 # -C means demangle to AIX nm, but means don't demangle with GNU nm 24485 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 24486 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' 24487 else 24488 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' 24489 fi 24490 aix_use_runtimelinking=no 24491 24492 # Test if we are trying to use run time linking or normal 24493 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 24494 # need to do runtime linking. 24495 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 24496 for ld_flag in $LDFLAGS; do 24497 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 24498 aix_use_runtimelinking=yes 24499 break 24500 fi 24501 done 24502 ;; 24503 esac 24504 24505 exp_sym_flag='-bexport' 24506 no_entry_flag='-bnoentry' 24507 fi 24508 24509 # When large executables or shared objects are built, AIX ld can 24510 # have problems creating the table of contents. If linking a library 24511 # or program results in "error TOC overflow" add -mminimal-toc to 24512 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 24513 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 24514 24515 archive_cmds_GCJ='' 24516 hardcode_direct_GCJ=yes 24517 hardcode_libdir_separator_GCJ=':' 24518 link_all_deplibs_GCJ=yes 24519 24520 if test "$GCC" = yes; then 24521 case $host_os in aix4.[012]|aix4.[012].*) 24522 # We only want to do this on AIX 4.2 and lower, the check 24523 # below for broken collect2 doesn't work under 4.3+ 24524 collect2name=`${CC} -print-prog-name=collect2` 24525 if test -f "$collect2name" && \ 24526 strings "$collect2name" | grep resolve_lib_name >/dev/null 24527 then 24528 # We have reworked collect2 24529 : 24530 else 24531 # We have old collect2 24532 hardcode_direct_GCJ=unsupported 24533 # It fails to find uninstalled libraries when the uninstalled 24534 # path is not listed in the libpath. Setting hardcode_minus_L 24535 # to unsupported forces relinking 24536 hardcode_minus_L_GCJ=yes 24537 hardcode_libdir_flag_spec_GCJ='-L$libdir' 24538 hardcode_libdir_separator_GCJ= 24539 fi 24540 ;; 24541 esac 24542 shared_flag='-shared' 24543 if test "$aix_use_runtimelinking" = yes; then 24544 shared_flag="$shared_flag "'${wl}-G' 24545 fi 24546 else 24547 # not using gcc 24548 if test "$host_cpu" = ia64; then 24549 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 24550 # chokes on -Wl,-G. The following line is correct: 24551 shared_flag='-G' 24552 else 24553 if test "$aix_use_runtimelinking" = yes; then 24554 shared_flag='${wl}-G' 24555 else 24556 shared_flag='${wl}-bM:SRE' 24557 fi 24558 fi 24559 fi 24560 24561 # It seems that -bexpall does not export symbols beginning with 24562 # underscore (_), so it is better to generate a list of symbols to export. 24563 always_export_symbols_GCJ=yes 24564 if test "$aix_use_runtimelinking" = yes; then 24565 # Warning - without using the other runtime loading flags (-brtl), 24566 # -berok will link without error, but may produce a broken library. 24567 allow_undefined_flag_GCJ='-berok' 24568 # Determine the default libpath from the value encoded in an empty executable. 24569 cat >conftest.$ac_ext <<_ACEOF 24570/* confdefs.h. */ 24571_ACEOF 24572cat confdefs.h >>conftest.$ac_ext 24573cat >>conftest.$ac_ext <<_ACEOF 24574/* end confdefs.h. */ 24575 24576int 24577main () 24578{ 24579 24580 ; 24581 return 0; 24582} 24583_ACEOF 24584rm -f conftest.$ac_objext conftest$ac_exeext 24585if { (ac_try="$ac_link" 24586case "(($ac_try" in 24587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24588 *) ac_try_echo=$ac_try;; 24589esac 24590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24591 (eval "$ac_link") 2>conftest.er1 24592 ac_status=$? 24593 grep -v '^ *+' conftest.er1 >conftest.err 24594 rm -f conftest.er1 24595 cat conftest.err >&5 24596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24597 (exit $ac_status); } && { 24598 test -z "$ac_cxx_werror_flag" || 24599 test ! -s conftest.err 24600 } && test -s conftest$ac_exeext && 24601 $as_test_x conftest$ac_exeext; then 24602 24603lt_aix_libpath_sed=' 24604 /Import File Strings/,/^$/ { 24605 /^0/ { 24606 s/^0 *\(.*\)$/\1/ 24607 p 24608 } 24609 }' 24610aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 24611# Check for a 64-bit object if we didn't find anything. 24612if test -z "$aix_libpath"; then 24613 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 24614fi 24615else 24616 echo "$as_me: failed program was:" >&5 24617sed 's/^/| /' conftest.$ac_ext >&5 24618 24619 24620fi 24621 24622rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 24623 conftest$ac_exeext conftest.$ac_ext 24624if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 24625 24626 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 24627 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" 24628 else 24629 if test "$host_cpu" = ia64; then 24630 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 24631 allow_undefined_flag_GCJ="-z nodefs" 24632 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" 24633 else 24634 # Determine the default libpath from the value encoded in an empty executable. 24635 cat >conftest.$ac_ext <<_ACEOF 24636/* confdefs.h. */ 24637_ACEOF 24638cat confdefs.h >>conftest.$ac_ext 24639cat >>conftest.$ac_ext <<_ACEOF 24640/* end confdefs.h. */ 24641 24642int 24643main () 24644{ 24645 24646 ; 24647 return 0; 24648} 24649_ACEOF 24650rm -f conftest.$ac_objext conftest$ac_exeext 24651if { (ac_try="$ac_link" 24652case "(($ac_try" in 24653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24654 *) ac_try_echo=$ac_try;; 24655esac 24656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24657 (eval "$ac_link") 2>conftest.er1 24658 ac_status=$? 24659 grep -v '^ *+' conftest.er1 >conftest.err 24660 rm -f conftest.er1 24661 cat conftest.err >&5 24662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24663 (exit $ac_status); } && { 24664 test -z "$ac_cxx_werror_flag" || 24665 test ! -s conftest.err 24666 } && test -s conftest$ac_exeext && 24667 $as_test_x conftest$ac_exeext; then 24668 24669lt_aix_libpath_sed=' 24670 /Import File Strings/,/^$/ { 24671 /^0/ { 24672 s/^0 *\(.*\)$/\1/ 24673 p 24674 } 24675 }' 24676aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 24677# Check for a 64-bit object if we didn't find anything. 24678if test -z "$aix_libpath"; then 24679 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 24680fi 24681else 24682 echo "$as_me: failed program was:" >&5 24683sed 's/^/| /' conftest.$ac_ext >&5 24684 24685 24686fi 24687 24688rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 24689 conftest$ac_exeext conftest.$ac_ext 24690if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 24691 24692 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 24693 # Warning - without using the other run time loading flags, 24694 # -berok will link without error, but may produce a broken library. 24695 no_undefined_flag_GCJ=' ${wl}-bernotok' 24696 allow_undefined_flag_GCJ=' ${wl}-berok' 24697 # Exported symbols can be pulled into shared objects from archives 24698 whole_archive_flag_spec_GCJ='$convenience' 24699 archive_cmds_need_lc_GCJ=yes 24700 # This is similar to how AIX traditionally builds its shared libraries. 24701 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' 24702 fi 24703 fi 24704 ;; 24705 24706 amigaos*) 24707 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)' 24708 hardcode_libdir_flag_spec_GCJ='-L$libdir' 24709 hardcode_minus_L_GCJ=yes 24710 # see comment about different semantics on the GNU ld section 24711 ld_shlibs_GCJ=no 24712 ;; 24713 24714 bsdi[45]*) 24715 export_dynamic_flag_spec_GCJ=-rdynamic 24716 ;; 24717 24718 cygwin* | mingw* | pw32*) 24719 # When not using gcc, we currently assume that we are using 24720 # Microsoft Visual C++. 24721 # hardcode_libdir_flag_spec is actually meaningless, as there is 24722 # no search path for DLLs. 24723 hardcode_libdir_flag_spec_GCJ=' ' 24724 allow_undefined_flag_GCJ=unsupported 24725 # Tell ltmain to make .lib files, not .a files. 24726 libext=lib 24727 # Tell ltmain to make .dll files, not .so files. 24728 shrext_cmds=".dll" 24729 # FIXME: Setting linknames here is a bad hack. 24730 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 24731 # The linker will automatically build a .lib file if we build a DLL. 24732 old_archive_From_new_cmds_GCJ='true' 24733 # FIXME: Should let the user specify the lib program. 24734 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' 24735 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 24736 enable_shared_with_static_runtimes_GCJ=yes 24737 ;; 24738 24739 darwin* | rhapsody*) 24740 case $host_os in 24741 rhapsody* | darwin1.[012]) 24742 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 24743 ;; 24744 *) # Darwin 1.3 on 24745 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 24746 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 24747 else 24748 case ${MACOSX_DEPLOYMENT_TARGET} in 24749 10.[012]) 24750 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 24751 ;; 24752 10.*) 24753 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 24754 ;; 24755 esac 24756 fi 24757 ;; 24758 esac 24759 archive_cmds_need_lc_GCJ=no 24760 hardcode_direct_GCJ=no 24761 hardcode_automatic_GCJ=yes 24762 hardcode_shlibpath_var_GCJ=unsupported 24763 whole_archive_flag_spec_GCJ='' 24764 link_all_deplibs_GCJ=yes 24765 if test "$GCC" = yes ; then 24766 output_verbose_link_cmd='echo' 24767 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 24768 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 24769 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 24770 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 24771 else 24772 case $cc_basename in 24773 xlc*) 24774 output_verbose_link_cmd='echo' 24775 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 24776 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 24777 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 24778 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}' 24779 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}' 24780 ;; 24781 *) 24782 ld_shlibs_GCJ=no 24783 ;; 24784 esac 24785 fi 24786 ;; 24787 24788 dgux*) 24789 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 24790 hardcode_libdir_flag_spec_GCJ='-L$libdir' 24791 hardcode_shlibpath_var_GCJ=no 24792 ;; 24793 24794 freebsd1*) 24795 ld_shlibs_GCJ=no 24796 ;; 24797 24798 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 24799 # support. Future versions do this automatically, but an explicit c++rt0.o 24800 # does not break anything, and helps significantly (at the cost of a little 24801 # extra space). 24802 freebsd2.2*) 24803 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 24804 hardcode_libdir_flag_spec_GCJ='-R$libdir' 24805 hardcode_direct_GCJ=yes 24806 hardcode_shlibpath_var_GCJ=no 24807 ;; 24808 24809 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 24810 freebsd2*) 24811 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 24812 hardcode_direct_GCJ=yes 24813 hardcode_minus_L_GCJ=yes 24814 hardcode_shlibpath_var_GCJ=no 24815 ;; 24816 24817 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 24818 freebsd* | dragonfly*) 24819 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 24820 hardcode_libdir_flag_spec_GCJ='-R$libdir' 24821 hardcode_direct_GCJ=yes 24822 hardcode_shlibpath_var_GCJ=no 24823 ;; 24824 24825 hpux9*) 24826 if test "$GCC" = yes; then 24827 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' 24828 else 24829 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' 24830 fi 24831 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 24832 hardcode_libdir_separator_GCJ=: 24833 hardcode_direct_GCJ=yes 24834 24835 # hardcode_minus_L: Not really in the search PATH, 24836 # but as the default location of the library. 24837 hardcode_minus_L_GCJ=yes 24838 export_dynamic_flag_spec_GCJ='${wl}-E' 24839 ;; 24840 24841 hpux10*) 24842 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 24843 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 24844 else 24845 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 24846 fi 24847 if test "$with_gnu_ld" = no; then 24848 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 24849 hardcode_libdir_separator_GCJ=: 24850 24851 hardcode_direct_GCJ=yes 24852 export_dynamic_flag_spec_GCJ='${wl}-E' 24853 24854 # hardcode_minus_L: Not really in the search PATH, 24855 # but as the default location of the library. 24856 hardcode_minus_L_GCJ=yes 24857 fi 24858 ;; 24859 24860 hpux11*) 24861 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 24862 case $host_cpu in 24863 hppa*64*) 24864 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 24865 ;; 24866 ia64*) 24867 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 24868 ;; 24869 *) 24870 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 24871 ;; 24872 esac 24873 else 24874 case $host_cpu in 24875 hppa*64*) 24876 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 24877 ;; 24878 ia64*) 24879 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 24880 ;; 24881 *) 24882 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 24883 ;; 24884 esac 24885 fi 24886 if test "$with_gnu_ld" = no; then 24887 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 24888 hardcode_libdir_separator_GCJ=: 24889 24890 case $host_cpu in 24891 hppa*64*|ia64*) 24892 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 24893 hardcode_direct_GCJ=no 24894 hardcode_shlibpath_var_GCJ=no 24895 ;; 24896 *) 24897 hardcode_direct_GCJ=yes 24898 export_dynamic_flag_spec_GCJ='${wl}-E' 24899 24900 # hardcode_minus_L: Not really in the search PATH, 24901 # but as the default location of the library. 24902 hardcode_minus_L_GCJ=yes 24903 ;; 24904 esac 24905 fi 24906 ;; 24907 24908 irix5* | irix6* | nonstopux*) 24909 if test "$GCC" = yes; then 24910 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' 24911 else 24912 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' 24913 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 24914 fi 24915 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 24916 hardcode_libdir_separator_GCJ=: 24917 link_all_deplibs_GCJ=yes 24918 ;; 24919 24920 netbsd*) 24921 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 24922 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 24923 else 24924 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 24925 fi 24926 hardcode_libdir_flag_spec_GCJ='-R$libdir' 24927 hardcode_direct_GCJ=yes 24928 hardcode_shlibpath_var_GCJ=no 24929 ;; 24930 24931 newsos6) 24932 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 24933 hardcode_direct_GCJ=yes 24934 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 24935 hardcode_libdir_separator_GCJ=: 24936 hardcode_shlibpath_var_GCJ=no 24937 ;; 24938 24939 openbsd*) 24940 if test -f /usr/libexec/ld.so; then 24941 hardcode_direct_GCJ=yes 24942 hardcode_shlibpath_var_GCJ=no 24943 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 24944 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 24945 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 24946 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 24947 export_dynamic_flag_spec_GCJ='${wl}-E' 24948 else 24949 case $host_os in 24950 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 24951 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 24952 hardcode_libdir_flag_spec_GCJ='-R$libdir' 24953 ;; 24954 *) 24955 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 24956 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 24957 ;; 24958 esac 24959 fi 24960 else 24961 ld_shlibs_GCJ=no 24962 fi 24963 ;; 24964 24965 os2*) 24966 hardcode_libdir_flag_spec_GCJ='-L$libdir' 24967 hardcode_minus_L_GCJ=yes 24968 allow_undefined_flag_GCJ=unsupported 24969 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' 24970 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 24971 ;; 24972 24973 osf3*) 24974 if test "$GCC" = yes; then 24975 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 24976 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' 24977 else 24978 allow_undefined_flag_GCJ=' -expect_unresolved \*' 24979 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' 24980 fi 24981 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 24982 hardcode_libdir_separator_GCJ=: 24983 ;; 24984 24985 osf4* | osf5*) # as osf3* with the addition of -msym flag 24986 if test "$GCC" = yes; then 24987 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 24988 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' 24989 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 24990 else 24991 allow_undefined_flag_GCJ=' -expect_unresolved \*' 24992 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' 24993 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~ 24994 $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' 24995 24996 # Both c and cxx compiler support -rpath directly 24997 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 24998 fi 24999 hardcode_libdir_separator_GCJ=: 25000 ;; 25001 25002 solaris*) 25003 no_undefined_flag_GCJ=' -z text' 25004 if test "$GCC" = yes; then 25005 wlarc='${wl}' 25006 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 25007 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 25008 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 25009 else 25010 wlarc='' 25011 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 25012 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 25013 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 25014 fi 25015 hardcode_libdir_flag_spec_GCJ='-R$libdir' 25016 hardcode_shlibpath_var_GCJ=no 25017 case $host_os in 25018 solaris2.[0-5] | solaris2.[0-5].*) ;; 25019 *) 25020 # The compiler driver will combine and reorder linker options, 25021 # but understands `-z linker_flag'. GCC discards it without `$wl', 25022 # but is careful enough not to reorder. 25023 # Supported since Solaris 2.6 (maybe 2.5.1?) 25024 if test "$GCC" = yes; then 25025 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 25026 else 25027 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' 25028 fi 25029 ;; 25030 esac 25031 link_all_deplibs_GCJ=yes 25032 ;; 25033 25034 sunos4*) 25035 if test "x$host_vendor" = xsequent; then 25036 # Use $CC to link under sequent, because it throws in some extra .o 25037 # files that make .init and .fini sections work. 25038 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 25039 else 25040 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 25041 fi 25042 hardcode_libdir_flag_spec_GCJ='-L$libdir' 25043 hardcode_direct_GCJ=yes 25044 hardcode_minus_L_GCJ=yes 25045 hardcode_shlibpath_var_GCJ=no 25046 ;; 25047 25048 sysv4) 25049 case $host_vendor in 25050 sni) 25051 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 25052 hardcode_direct_GCJ=yes # is this really true??? 25053 ;; 25054 siemens) 25055 ## LD is ld it makes a PLAMLIB 25056 ## CC just makes a GrossModule. 25057 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 25058 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 25059 hardcode_direct_GCJ=no 25060 ;; 25061 motorola) 25062 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 25063 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 25064 ;; 25065 esac 25066 runpath_var='LD_RUN_PATH' 25067 hardcode_shlibpath_var_GCJ=no 25068 ;; 25069 25070 sysv4.3*) 25071 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 25072 hardcode_shlibpath_var_GCJ=no 25073 export_dynamic_flag_spec_GCJ='-Bexport' 25074 ;; 25075 25076 sysv4*MP*) 25077 if test -d /usr/nec; then 25078 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 25079 hardcode_shlibpath_var_GCJ=no 25080 runpath_var=LD_RUN_PATH 25081 hardcode_runpath_var=yes 25082 ld_shlibs_GCJ=yes 25083 fi 25084 ;; 25085 25086 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 25087 no_undefined_flag_GCJ='${wl}-z,text' 25088 archive_cmds_need_lc_GCJ=no 25089 hardcode_shlibpath_var_GCJ=no 25090 runpath_var='LD_RUN_PATH' 25091 25092 if test "$GCC" = yes; then 25093 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 25094 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 25095 else 25096 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 25097 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 25098 fi 25099 ;; 25100 25101 sysv5* | sco3.2v5* | sco5v6*) 25102 # Note: We can NOT use -z defs as we might desire, because we do not 25103 # link with -lc, and that would cause any symbols used from libc to 25104 # always be unresolved, which means just about no library would 25105 # ever link correctly. If we're not using GNU ld we use -z text 25106 # though, which does catch some bad symbols but isn't as heavy-handed 25107 # as -z defs. 25108 no_undefined_flag_GCJ='${wl}-z,text' 25109 allow_undefined_flag_GCJ='${wl}-z,nodefs' 25110 archive_cmds_need_lc_GCJ=no 25111 hardcode_shlibpath_var_GCJ=no 25112 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 25113 hardcode_libdir_separator_GCJ=':' 25114 link_all_deplibs_GCJ=yes 25115 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 25116 runpath_var='LD_RUN_PATH' 25117 25118 if test "$GCC" = yes; then 25119 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 25120 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 25121 else 25122 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 25123 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 25124 fi 25125 ;; 25126 25127 uts4*) 25128 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 25129 hardcode_libdir_flag_spec_GCJ='-L$libdir' 25130 hardcode_shlibpath_var_GCJ=no 25131 ;; 25132 25133 *) 25134 ld_shlibs_GCJ=no 25135 ;; 25136 esac 25137 fi 25138 25139{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 25140echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 25141test "$ld_shlibs_GCJ" = no && can_build_shared=no 25142 25143# 25144# Do we need to explicitly link libc? 25145# 25146case "x$archive_cmds_need_lc_GCJ" in 25147x|xyes) 25148 # Assume -lc should be added 25149 archive_cmds_need_lc_GCJ=yes 25150 25151 if test "$enable_shared" = yes && test "$GCC" = yes; then 25152 case $archive_cmds_GCJ in 25153 *'~'*) 25154 # FIXME: we may have to deal with multi-command sequences. 25155 ;; 25156 '$CC '*) 25157 # Test whether the compiler implicitly links with -lc since on some 25158 # systems, -lgcc has to come before -lc. If gcc already passes -lc 25159 # to ld, don't add -lc before -lgcc. 25160 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 25161echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 25162 $rm conftest* 25163 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 25164 25165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 25166 (eval $ac_compile) 2>&5 25167 ac_status=$? 25168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25169 (exit $ac_status); } 2>conftest.err; then 25170 soname=conftest 25171 lib=conftest 25172 libobjs=conftest.$ac_objext 25173 deplibs= 25174 wl=$lt_prog_compiler_wl_GCJ 25175 pic_flag=$lt_prog_compiler_pic_GCJ 25176 compiler_flags=-v 25177 linker_flags=-v 25178 verstring= 25179 output_objdir=. 25180 libname=conftest 25181 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 25182 allow_undefined_flag_GCJ= 25183 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 25184 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 25185 ac_status=$? 25186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25187 (exit $ac_status); } 25188 then 25189 archive_cmds_need_lc_GCJ=no 25190 else 25191 archive_cmds_need_lc_GCJ=yes 25192 fi 25193 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 25194 else 25195 cat conftest.err 1>&5 25196 fi 25197 $rm conftest* 25198 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 25199echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 25200 ;; 25201 esac 25202 fi 25203 ;; 25204esac 25205 25206{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 25207echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 25208library_names_spec= 25209libname_spec='lib$name' 25210soname_spec= 25211shrext_cmds=".so" 25212postinstall_cmds= 25213postuninstall_cmds= 25214finish_cmds= 25215finish_eval= 25216shlibpath_var= 25217shlibpath_overrides_runpath=unknown 25218version_type=none 25219dynamic_linker="$host_os ld.so" 25220sys_lib_dlsearch_path_spec="/lib /usr/lib" 25221 25222need_lib_prefix=unknown 25223hardcode_into_libs=no 25224 25225# when you set need_version to no, make sure it does not cause -set_version 25226# flags to be left without arguments 25227need_version=unknown 25228 25229case $host_os in 25230aix3*) 25231 version_type=linux 25232 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 25233 shlibpath_var=LIBPATH 25234 25235 # AIX 3 has no versioning support, so we append a major version to the name. 25236 soname_spec='${libname}${release}${shared_ext}$major' 25237 ;; 25238 25239aix[4-9]*) 25240 version_type=linux 25241 need_lib_prefix=no 25242 need_version=no 25243 hardcode_into_libs=yes 25244 if test "$host_cpu" = ia64; then 25245 # AIX 5 supports IA64 25246 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 25247 shlibpath_var=LD_LIBRARY_PATH 25248 else 25249 # With GCC up to 2.95.x, collect2 would create an import file 25250 # for dependence libraries. The import file would start with 25251 # the line `#! .'. This would cause the generated library to 25252 # depend on `.', always an invalid library. This was fixed in 25253 # development snapshots of GCC prior to 3.0. 25254 case $host_os in 25255 aix4 | aix4.[01] | aix4.[01].*) 25256 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 25257 echo ' yes ' 25258 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 25259 : 25260 else 25261 can_build_shared=no 25262 fi 25263 ;; 25264 esac 25265 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 25266 # soname into executable. Probably we can add versioning support to 25267 # collect2, so additional links can be useful in future. 25268 if test "$aix_use_runtimelinking" = yes; then 25269 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 25270 # instead of lib<name>.a to let people know that these are not 25271 # typical AIX shared libraries. 25272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 25273 else 25274 # We preserve .a as extension for shared libraries through AIX4.2 25275 # and later when we are not doing run time linking. 25276 library_names_spec='${libname}${release}.a $libname.a' 25277 soname_spec='${libname}${release}${shared_ext}$major' 25278 fi 25279 shlibpath_var=LIBPATH 25280 fi 25281 ;; 25282 25283amigaos*) 25284 library_names_spec='$libname.ixlibrary $libname.a' 25285 # Create ${libname}_ixlibrary.a entries in /sys/libs. 25286 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' 25287 ;; 25288 25289beos*) 25290 library_names_spec='${libname}${shared_ext}' 25291 dynamic_linker="$host_os ld.so" 25292 shlibpath_var=LIBRARY_PATH 25293 ;; 25294 25295bsdi[45]*) 25296 version_type=linux 25297 need_version=no 25298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 25299 soname_spec='${libname}${release}${shared_ext}$major' 25300 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 25301 shlibpath_var=LD_LIBRARY_PATH 25302 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 25303 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 25304 # the default ld.so.conf also contains /usr/contrib/lib and 25305 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 25306 # libtool to hard-code these into programs 25307 ;; 25308 25309cygwin* | mingw* | pw32*) 25310 version_type=windows 25311 shrext_cmds=".dll" 25312 need_version=no 25313 need_lib_prefix=no 25314 25315 case $GCC,$host_os in 25316 yes,cygwin* | yes,mingw* | yes,pw32*) 25317 library_names_spec='$libname.dll.a' 25318 # DLL is installed to $(libdir)/../bin by postinstall_cmds 25319 postinstall_cmds='base_file=`basename \${file}`~ 25320 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 25321 dldir=$destdir/`dirname \$dlpath`~ 25322 test -d \$dldir || mkdir -p \$dldir~ 25323 $install_prog $dir/$dlname \$dldir/$dlname~ 25324 chmod a+x \$dldir/$dlname' 25325 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 25326 dlpath=$dir/\$dldll~ 25327 $rm \$dlpath' 25328 shlibpath_overrides_runpath=yes 25329 25330 case $host_os in 25331 cygwin*) 25332 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 25333 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 25334 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 25335 ;; 25336 mingw*) 25337 # MinGW DLLs use traditional 'lib' prefix 25338 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 25339 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 25340 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 25341 # It is most probably a Windows format PATH printed by 25342 # mingw gcc, but we are running on Cygwin. Gcc prints its search 25343 # path with ; separators, and with drive letters. We can handle the 25344 # drive letters (cygwin fileutils understands them), so leave them, 25345 # especially as we might pass files found there to a mingw objdump, 25346 # which wouldn't understand a cygwinified path. Ahh. 25347 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 25348 else 25349 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 25350 fi 25351 ;; 25352 pw32*) 25353 # pw32 DLLs use 'pw' prefix rather than 'lib' 25354 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 25355 ;; 25356 esac 25357 ;; 25358 25359 *) 25360 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 25361 ;; 25362 esac 25363 dynamic_linker='Win32 ld.exe' 25364 # FIXME: first we should search . and the directory the executable is in 25365 shlibpath_var=PATH 25366 ;; 25367 25368darwin* | rhapsody*) 25369 dynamic_linker="$host_os dyld" 25370 version_type=darwin 25371 need_lib_prefix=no 25372 need_version=no 25373 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 25374 soname_spec='${libname}${release}${major}$shared_ext' 25375 shlibpath_overrides_runpath=yes 25376 shlibpath_var=DYLD_LIBRARY_PATH 25377 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 25378 25379 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 25380 ;; 25381 25382dgux*) 25383 version_type=linux 25384 need_lib_prefix=no 25385 need_version=no 25386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 25387 soname_spec='${libname}${release}${shared_ext}$major' 25388 shlibpath_var=LD_LIBRARY_PATH 25389 ;; 25390 25391freebsd1*) 25392 dynamic_linker=no 25393 ;; 25394 25395freebsd* | dragonfly*) 25396 # DragonFly does not have aout. When/if they implement a new 25397 # versioning mechanism, adjust this. 25398 if test -x /usr/bin/objformat; then 25399 objformat=`/usr/bin/objformat` 25400 else 25401 case $host_os in 25402 freebsd[123]*) objformat=aout ;; 25403 *) objformat=elf ;; 25404 esac 25405 fi 25406 version_type=freebsd-$objformat 25407 case $version_type in 25408 freebsd-elf*) 25409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 25410 need_version=no 25411 need_lib_prefix=no 25412 ;; 25413 freebsd-*) 25414 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 25415 need_version=yes 25416 ;; 25417 esac 25418 shlibpath_var=LD_LIBRARY_PATH 25419 case $host_os in 25420 freebsd2*) 25421 shlibpath_overrides_runpath=yes 25422 ;; 25423 freebsd3.[01]* | freebsdelf3.[01]*) 25424 shlibpath_overrides_runpath=yes 25425 hardcode_into_libs=yes 25426 ;; 25427 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 25428 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 25429 shlibpath_overrides_runpath=no 25430 hardcode_into_libs=yes 25431 ;; 25432 *) # from 4.6 on, and DragonFly 25433 shlibpath_overrides_runpath=yes 25434 hardcode_into_libs=yes 25435 ;; 25436 esac 25437 ;; 25438 25439gnu*) 25440 version_type=linux 25441 need_lib_prefix=no 25442 need_version=no 25443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 25444 soname_spec='${libname}${release}${shared_ext}$major' 25445 shlibpath_var=LD_LIBRARY_PATH 25446 hardcode_into_libs=yes 25447 ;; 25448 25449hpux9* | hpux10* | hpux11*) 25450 # Give a soname corresponding to the major version so that dld.sl refuses to 25451 # link against other versions. 25452 version_type=sunos 25453 need_lib_prefix=no 25454 need_version=no 25455 case $host_cpu in 25456 ia64*) 25457 shrext_cmds='.so' 25458 hardcode_into_libs=yes 25459 dynamic_linker="$host_os dld.so" 25460 shlibpath_var=LD_LIBRARY_PATH 25461 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 25462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 25463 soname_spec='${libname}${release}${shared_ext}$major' 25464 if test "X$HPUX_IA64_MODE" = X32; then 25465 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 25466 else 25467 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 25468 fi 25469 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 25470 ;; 25471 hppa*64*) 25472 shrext_cmds='.sl' 25473 hardcode_into_libs=yes 25474 dynamic_linker="$host_os dld.sl" 25475 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 25476 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 25477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 25478 soname_spec='${libname}${release}${shared_ext}$major' 25479 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 25480 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 25481 ;; 25482 *) 25483 shrext_cmds='.sl' 25484 dynamic_linker="$host_os dld.sl" 25485 shlibpath_var=SHLIB_PATH 25486 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 25487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 25488 soname_spec='${libname}${release}${shared_ext}$major' 25489 ;; 25490 esac 25491 # HP-UX runs *really* slowly unless shared libraries are mode 555. 25492 postinstall_cmds='chmod 555 $lib' 25493 ;; 25494 25495interix[3-9]*) 25496 version_type=linux 25497 need_lib_prefix=no 25498 need_version=no 25499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 25500 soname_spec='${libname}${release}${shared_ext}$major' 25501 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 25502 shlibpath_var=LD_LIBRARY_PATH 25503 shlibpath_overrides_runpath=no 25504 hardcode_into_libs=yes 25505 ;; 25506 25507irix5* | irix6* | nonstopux*) 25508 case $host_os in 25509 nonstopux*) version_type=nonstopux ;; 25510 *) 25511 if test "$lt_cv_prog_gnu_ld" = yes; then 25512 version_type=linux 25513 else 25514 version_type=irix 25515 fi ;; 25516 esac 25517 need_lib_prefix=no 25518 need_version=no 25519 soname_spec='${libname}${release}${shared_ext}$major' 25520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 25521 case $host_os in 25522 irix5* | nonstopux*) 25523 libsuff= shlibsuff= 25524 ;; 25525 *) 25526 case $LD in # libtool.m4 will add one of these switches to LD 25527 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 25528 libsuff= shlibsuff= libmagic=32-bit;; 25529 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 25530 libsuff=32 shlibsuff=N32 libmagic=N32;; 25531 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 25532 libsuff=64 shlibsuff=64 libmagic=64-bit;; 25533 *) libsuff= shlibsuff= libmagic=never-match;; 25534 esac 25535 ;; 25536 esac 25537 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 25538 shlibpath_overrides_runpath=no 25539 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 25540 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 25541 hardcode_into_libs=yes 25542 ;; 25543 25544# No shared lib support for Linux oldld, aout, or coff. 25545linux*oldld* | linux*aout* | linux*coff*) 25546 dynamic_linker=no 25547 ;; 25548 25549# This must be Linux ELF. 25550linux* | k*bsd*-gnu) 25551 version_type=linux 25552 need_lib_prefix=no 25553 need_version=no 25554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 25555 soname_spec='${libname}${release}${shared_ext}$major' 25556 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 25557 shlibpath_var=LD_LIBRARY_PATH 25558 shlibpath_overrides_runpath=no 25559 # This implies no fast_install, which is unacceptable. 25560 # Some rework will be needed to allow for fast_install 25561 # before this can be enabled. 25562 hardcode_into_libs=yes 25563 25564 # Append ld.so.conf contents to the search path 25565 if test -f /etc/ld.so.conf; then 25566 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' ' '` 25567 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 25568 fi 25569 25570 # We used to test for /lib/ld.so.1 and disable shared libraries on 25571 # powerpc, because MkLinux only supported shared libraries with the 25572 # GNU dynamic linker. Since this was broken with cross compilers, 25573 # most powerpc-linux boxes support dynamic linking these days and 25574 # people can always --disable-shared, the test was removed, and we 25575 # assume the GNU/Linux dynamic linker is in use. 25576 dynamic_linker='GNU/Linux ld.so' 25577 ;; 25578 25579netbsd*) 25580 version_type=sunos 25581 need_lib_prefix=no 25582 need_version=no 25583 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 25584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 25585 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 25586 dynamic_linker='NetBSD (a.out) ld.so' 25587 else 25588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 25589 soname_spec='${libname}${release}${shared_ext}$major' 25590 dynamic_linker='NetBSD ld.elf_so' 25591 fi 25592 shlibpath_var=LD_LIBRARY_PATH 25593 shlibpath_overrides_runpath=yes 25594 hardcode_into_libs=yes 25595 ;; 25596 25597newsos6) 25598 version_type=linux 25599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 25600 shlibpath_var=LD_LIBRARY_PATH 25601 shlibpath_overrides_runpath=yes 25602 ;; 25603 25604nto-qnx*) 25605 version_type=linux 25606 need_lib_prefix=no 25607 need_version=no 25608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 25609 soname_spec='${libname}${release}${shared_ext}$major' 25610 shlibpath_var=LD_LIBRARY_PATH 25611 shlibpath_overrides_runpath=yes 25612 ;; 25613 25614openbsd*) 25615 version_type=sunos 25616 sys_lib_dlsearch_path_spec="/usr/lib" 25617 need_lib_prefix=no 25618 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 25619 case $host_os in 25620 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 25621 *) need_version=no ;; 25622 esac 25623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 25624 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 25625 shlibpath_var=LD_LIBRARY_PATH 25626 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 25627 case $host_os in 25628 openbsd2.[89] | openbsd2.[89].*) 25629 shlibpath_overrides_runpath=no 25630 ;; 25631 *) 25632 shlibpath_overrides_runpath=yes 25633 ;; 25634 esac 25635 else 25636 shlibpath_overrides_runpath=yes 25637 fi 25638 ;; 25639 25640os2*) 25641 libname_spec='$name' 25642 shrext_cmds=".dll" 25643 need_lib_prefix=no 25644 library_names_spec='$libname${shared_ext} $libname.a' 25645 dynamic_linker='OS/2 ld.exe' 25646 shlibpath_var=LIBPATH 25647 ;; 25648 25649osf3* | osf4* | osf5*) 25650 version_type=osf 25651 need_lib_prefix=no 25652 need_version=no 25653 soname_spec='${libname}${release}${shared_ext}$major' 25654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 25655 shlibpath_var=LD_LIBRARY_PATH 25656 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 25657 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 25658 ;; 25659 25660rdos*) 25661 dynamic_linker=no 25662 ;; 25663 25664solaris*) 25665 version_type=linux 25666 need_lib_prefix=no 25667 need_version=no 25668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 25669 soname_spec='${libname}${release}${shared_ext}$major' 25670 shlibpath_var=LD_LIBRARY_PATH 25671 shlibpath_overrides_runpath=yes 25672 hardcode_into_libs=yes 25673 # ldd complains unless libraries are executable 25674 postinstall_cmds='chmod +x $lib' 25675 ;; 25676 25677sunos4*) 25678 version_type=sunos 25679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 25680 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 25681 shlibpath_var=LD_LIBRARY_PATH 25682 shlibpath_overrides_runpath=yes 25683 if test "$with_gnu_ld" = yes; then 25684 need_lib_prefix=no 25685 fi 25686 need_version=yes 25687 ;; 25688 25689sysv4 | sysv4.3*) 25690 version_type=linux 25691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 25692 soname_spec='${libname}${release}${shared_ext}$major' 25693 shlibpath_var=LD_LIBRARY_PATH 25694 case $host_vendor in 25695 sni) 25696 shlibpath_overrides_runpath=no 25697 need_lib_prefix=no 25698 export_dynamic_flag_spec='${wl}-Blargedynsym' 25699 runpath_var=LD_RUN_PATH 25700 ;; 25701 siemens) 25702 need_lib_prefix=no 25703 ;; 25704 motorola) 25705 need_lib_prefix=no 25706 need_version=no 25707 shlibpath_overrides_runpath=no 25708 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 25709 ;; 25710 esac 25711 ;; 25712 25713sysv4*MP*) 25714 if test -d /usr/nec ;then 25715 version_type=linux 25716 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 25717 soname_spec='$libname${shared_ext}.$major' 25718 shlibpath_var=LD_LIBRARY_PATH 25719 fi 25720 ;; 25721 25722sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 25723 version_type=freebsd-elf 25724 need_lib_prefix=no 25725 need_version=no 25726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 25727 soname_spec='${libname}${release}${shared_ext}$major' 25728 shlibpath_var=LD_LIBRARY_PATH 25729 hardcode_into_libs=yes 25730 if test "$with_gnu_ld" = yes; then 25731 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 25732 shlibpath_overrides_runpath=no 25733 else 25734 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 25735 shlibpath_overrides_runpath=yes 25736 case $host_os in 25737 sco3.2v5*) 25738 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 25739 ;; 25740 esac 25741 fi 25742 sys_lib_dlsearch_path_spec='/usr/lib' 25743 ;; 25744 25745uts4*) 25746 version_type=linux 25747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 25748 soname_spec='${libname}${release}${shared_ext}$major' 25749 shlibpath_var=LD_LIBRARY_PATH 25750 ;; 25751 25752*) 25753 dynamic_linker=no 25754 ;; 25755esac 25756{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 25757echo "${ECHO_T}$dynamic_linker" >&6; } 25758test "$dynamic_linker" = no && can_build_shared=no 25759 25760if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 25761 echo $ECHO_N "(cached) $ECHO_C" >&6 25762else 25763 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 25764fi 25765 25766sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 25767if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 25768 echo $ECHO_N "(cached) $ECHO_C" >&6 25769else 25770 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 25771fi 25772 25773sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 25774 25775variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 25776if test "$GCC" = yes; then 25777 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 25778fi 25779 25780{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 25781echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 25782hardcode_action_GCJ= 25783if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 25784 test -n "$runpath_var_GCJ" || \ 25785 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 25786 25787 # We can hardcode non-existant directories. 25788 if test "$hardcode_direct_GCJ" != no && 25789 # If the only mechanism to avoid hardcoding is shlibpath_var, we 25790 # have to relink, otherwise we might link with an installed library 25791 # when we should be linking with a yet-to-be-installed one 25792 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 25793 test "$hardcode_minus_L_GCJ" != no; then 25794 # Linking always hardcodes the temporary library directory. 25795 hardcode_action_GCJ=relink 25796 else 25797 # We can link without hardcoding, and we can hardcode nonexisting dirs. 25798 hardcode_action_GCJ=immediate 25799 fi 25800else 25801 # We cannot hardcode anything, or else we can only hardcode existing 25802 # directories. 25803 hardcode_action_GCJ=unsupported 25804fi 25805{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 25806echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 25807 25808if test "$hardcode_action_GCJ" = relink; then 25809 # Fast installation is not supported 25810 enable_fast_install=no 25811elif test "$shlibpath_overrides_runpath" = yes || 25812 test "$enable_shared" = no; then 25813 # Fast installation is not necessary 25814 enable_fast_install=needless 25815fi 25816 25817 25818# The else clause should only fire when bootstrapping the 25819# libtool distribution, otherwise you forgot to ship ltmain.sh 25820# with your package, and you will get complaints that there are 25821# no rules to generate ltmain.sh. 25822if test -f "$ltmain"; then 25823 # See if we are running on zsh, and set the options which allow our commands through 25824 # without removal of \ escapes. 25825 if test -n "${ZSH_VERSION+set}" ; then 25826 setopt NO_GLOB_SUBST 25827 fi 25828 # Now quote all the things that may contain metacharacters while being 25829 # careful not to overquote the AC_SUBSTed values. We take copies of the 25830 # variables and quote the copies for generation of the libtool script. 25831 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 25832 SED SHELL STRIP \ 25833 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 25834 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 25835 deplibs_check_method reload_flag reload_cmds need_locks \ 25836 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 25837 lt_cv_sys_global_symbol_to_c_name_address \ 25838 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 25839 old_postinstall_cmds old_postuninstall_cmds \ 25840 compiler_GCJ \ 25841 CC_GCJ \ 25842 LD_GCJ \ 25843 lt_prog_compiler_wl_GCJ \ 25844 lt_prog_compiler_pic_GCJ \ 25845 lt_prog_compiler_static_GCJ \ 25846 lt_prog_compiler_no_builtin_flag_GCJ \ 25847 export_dynamic_flag_spec_GCJ \ 25848 thread_safe_flag_spec_GCJ \ 25849 whole_archive_flag_spec_GCJ \ 25850 enable_shared_with_static_runtimes_GCJ \ 25851 old_archive_cmds_GCJ \ 25852 old_archive_from_new_cmds_GCJ \ 25853 predep_objects_GCJ \ 25854 postdep_objects_GCJ \ 25855 predeps_GCJ \ 25856 postdeps_GCJ \ 25857 compiler_lib_search_path_GCJ \ 25858 compiler_lib_search_dirs_GCJ \ 25859 archive_cmds_GCJ \ 25860 archive_expsym_cmds_GCJ \ 25861 postinstall_cmds_GCJ \ 25862 postuninstall_cmds_GCJ \ 25863 old_archive_from_expsyms_cmds_GCJ \ 25864 allow_undefined_flag_GCJ \ 25865 no_undefined_flag_GCJ \ 25866 export_symbols_cmds_GCJ \ 25867 hardcode_libdir_flag_spec_GCJ \ 25868 hardcode_libdir_flag_spec_ld_GCJ \ 25869 hardcode_libdir_separator_GCJ \ 25870 hardcode_automatic_GCJ \ 25871 module_cmds_GCJ \ 25872 module_expsym_cmds_GCJ \ 25873 lt_cv_prog_compiler_c_o_GCJ \ 25874 fix_srcfile_path_GCJ \ 25875 exclude_expsyms_GCJ \ 25876 include_expsyms_GCJ; do 25877 25878 case $var in 25879 old_archive_cmds_GCJ | \ 25880 old_archive_from_new_cmds_GCJ | \ 25881 archive_cmds_GCJ | \ 25882 archive_expsym_cmds_GCJ | \ 25883 module_cmds_GCJ | \ 25884 module_expsym_cmds_GCJ | \ 25885 old_archive_from_expsyms_cmds_GCJ | \ 25886 export_symbols_cmds_GCJ | \ 25887 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 25888 postinstall_cmds | postuninstall_cmds | \ 25889 old_postinstall_cmds | old_postuninstall_cmds | \ 25890 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 25891 # Double-quote double-evaled strings. 25892 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 25893 ;; 25894 *) 25895 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 25896 ;; 25897 esac 25898 done 25899 25900 case $lt_echo in 25901 *'\$0 --fallback-echo"') 25902 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 25903 ;; 25904 esac 25905 25906cfgfile="$ofile" 25907 25908 cat <<__EOF__ >> "$cfgfile" 25909# ### BEGIN LIBTOOL TAG CONFIG: $tagname 25910 25911# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 25912 25913# Shell to use when invoking shell scripts. 25914SHELL=$lt_SHELL 25915 25916# Whether or not to build shared libraries. 25917build_libtool_libs=$enable_shared 25918 25919# Whether or not to build static libraries. 25920build_old_libs=$enable_static 25921 25922# Whether or not to add -lc for building shared libraries. 25923build_libtool_need_lc=$archive_cmds_need_lc_GCJ 25924 25925# Whether or not to disallow shared libs when runtime libs are static 25926allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 25927 25928# Whether or not to optimize for fast installation. 25929fast_install=$enable_fast_install 25930 25931# The host system. 25932host_alias=$host_alias 25933host=$host 25934host_os=$host_os 25935 25936# The build system. 25937build_alias=$build_alias 25938build=$build 25939build_os=$build_os 25940 25941# An echo program that does not interpret backslashes. 25942echo=$lt_echo 25943 25944# The archiver. 25945AR=$lt_AR 25946AR_FLAGS=$lt_AR_FLAGS 25947 25948# A C compiler. 25949LTCC=$lt_LTCC 25950 25951# LTCC compiler flags. 25952LTCFLAGS=$lt_LTCFLAGS 25953 25954# A language-specific compiler. 25955CC=$lt_compiler_GCJ 25956 25957# Is the compiler the GNU C compiler? 25958with_gcc=$GCC_GCJ 25959 25960# An ERE matcher. 25961EGREP=$lt_EGREP 25962 25963# The linker used to build libraries. 25964LD=$lt_LD_GCJ 25965 25966# Whether we need hard or soft links. 25967LN_S=$lt_LN_S 25968 25969# A BSD-compatible nm program. 25970NM=$lt_NM 25971 25972# A symbol stripping program 25973STRIP=$lt_STRIP 25974 25975# Used to examine libraries when file_magic_cmd begins "file" 25976MAGIC_CMD=$MAGIC_CMD 25977 25978# Used on cygwin: DLL creation program. 25979DLLTOOL="$DLLTOOL" 25980 25981# Used on cygwin: object dumper. 25982OBJDUMP="$OBJDUMP" 25983 25984# Used on cygwin: assembler. 25985AS="$AS" 25986 25987# The name of the directory that contains temporary libtool files. 25988objdir=$objdir 25989 25990# How to create reloadable object files. 25991reload_flag=$lt_reload_flag 25992reload_cmds=$lt_reload_cmds 25993 25994# How to pass a linker flag through the compiler. 25995wl=$lt_lt_prog_compiler_wl_GCJ 25996 25997# Object file suffix (normally "o"). 25998objext="$ac_objext" 25999 26000# Old archive suffix (normally "a"). 26001libext="$libext" 26002 26003# Shared library suffix (normally ".so"). 26004shrext_cmds='$shrext_cmds' 26005 26006# Executable file suffix (normally ""). 26007exeext="$exeext" 26008 26009# Additional compiler flags for building library objects. 26010pic_flag=$lt_lt_prog_compiler_pic_GCJ 26011pic_mode=$pic_mode 26012 26013# What is the maximum length of a command? 26014max_cmd_len=$lt_cv_sys_max_cmd_len 26015 26016# Does compiler simultaneously support -c and -o options? 26017compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 26018 26019# Must we lock files when doing compilation? 26020need_locks=$lt_need_locks 26021 26022# Do we need the lib prefix for modules? 26023need_lib_prefix=$need_lib_prefix 26024 26025# Do we need a version for libraries? 26026need_version=$need_version 26027 26028# Whether dlopen is supported. 26029dlopen_support=$enable_dlopen 26030 26031# Whether dlopen of programs is supported. 26032dlopen_self=$enable_dlopen_self 26033 26034# Whether dlopen of statically linked programs is supported. 26035dlopen_self_static=$enable_dlopen_self_static 26036 26037# Compiler flag to prevent dynamic linking. 26038link_static_flag=$lt_lt_prog_compiler_static_GCJ 26039 26040# Compiler flag to turn off builtin functions. 26041no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 26042 26043# Compiler flag to allow reflexive dlopens. 26044export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 26045 26046# Compiler flag to generate shared objects directly from archives. 26047whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 26048 26049# Compiler flag to generate thread-safe objects. 26050thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 26051 26052# Library versioning type. 26053version_type=$version_type 26054 26055# Format of library name prefix. 26056libname_spec=$lt_libname_spec 26057 26058# List of archive names. First name is the real one, the rest are links. 26059# The last name is the one that the linker finds with -lNAME. 26060library_names_spec=$lt_library_names_spec 26061 26062# The coded name of the library, if different from the real name. 26063soname_spec=$lt_soname_spec 26064 26065# Commands used to build and install an old-style archive. 26066RANLIB=$lt_RANLIB 26067old_archive_cmds=$lt_old_archive_cmds_GCJ 26068old_postinstall_cmds=$lt_old_postinstall_cmds 26069old_postuninstall_cmds=$lt_old_postuninstall_cmds 26070 26071# Create an old-style archive from a shared archive. 26072old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 26073 26074# Create a temporary old-style archive to link instead of a shared archive. 26075old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 26076 26077# Commands used to build and install a shared archive. 26078archive_cmds=$lt_archive_cmds_GCJ 26079archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 26080postinstall_cmds=$lt_postinstall_cmds 26081postuninstall_cmds=$lt_postuninstall_cmds 26082 26083# Commands used to build a loadable module (assumed same as above if empty) 26084module_cmds=$lt_module_cmds_GCJ 26085module_expsym_cmds=$lt_module_expsym_cmds_GCJ 26086 26087# Commands to strip libraries. 26088old_striplib=$lt_old_striplib 26089striplib=$lt_striplib 26090 26091# Dependencies to place before the objects being linked to create a 26092# shared library. 26093predep_objects=$lt_predep_objects_GCJ 26094 26095# Dependencies to place after the objects being linked to create a 26096# shared library. 26097postdep_objects=$lt_postdep_objects_GCJ 26098 26099# Dependencies to place before the objects being linked to create a 26100# shared library. 26101predeps=$lt_predeps_GCJ 26102 26103# Dependencies to place after the objects being linked to create a 26104# shared library. 26105postdeps=$lt_postdeps_GCJ 26106 26107# The directories searched by this compiler when creating a shared 26108# library 26109compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ 26110 26111# The library search path used internally by the compiler when linking 26112# a shared library. 26113compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 26114 26115# Method to check whether dependent libraries are shared objects. 26116deplibs_check_method=$lt_deplibs_check_method 26117 26118# Command to use when deplibs_check_method == file_magic. 26119file_magic_cmd=$lt_file_magic_cmd 26120 26121# Flag that allows shared libraries with undefined symbols to be built. 26122allow_undefined_flag=$lt_allow_undefined_flag_GCJ 26123 26124# Flag that forces no undefined symbols. 26125no_undefined_flag=$lt_no_undefined_flag_GCJ 26126 26127# Commands used to finish a libtool library installation in a directory. 26128finish_cmds=$lt_finish_cmds 26129 26130# Same as above, but a single script fragment to be evaled but not shown. 26131finish_eval=$lt_finish_eval 26132 26133# Take the output of nm and produce a listing of raw symbols and C names. 26134global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 26135 26136# Transform the output of nm in a proper C declaration 26137global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 26138 26139# Transform the output of nm in a C name address pair 26140global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 26141 26142# This is the shared library runtime path variable. 26143runpath_var=$runpath_var 26144 26145# This is the shared library path variable. 26146shlibpath_var=$shlibpath_var 26147 26148# Is shlibpath searched before the hard-coded library search path? 26149shlibpath_overrides_runpath=$shlibpath_overrides_runpath 26150 26151# How to hardcode a shared library path into an executable. 26152hardcode_action=$hardcode_action_GCJ 26153 26154# Whether we should hardcode library paths into libraries. 26155hardcode_into_libs=$hardcode_into_libs 26156 26157# Flag to hardcode \$libdir into a binary during linking. 26158# This must work even if \$libdir does not exist. 26159hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 26160 26161# If ld is used when linking, flag to hardcode \$libdir into 26162# a binary during linking. This must work even if \$libdir does 26163# not exist. 26164hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 26165 26166# Whether we need a single -rpath flag with a separated argument. 26167hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 26168 26169# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 26170# resulting binary. 26171hardcode_direct=$hardcode_direct_GCJ 26172 26173# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 26174# resulting binary. 26175hardcode_minus_L=$hardcode_minus_L_GCJ 26176 26177# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 26178# the resulting binary. 26179hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 26180 26181# Set to yes if building a shared library automatically hardcodes DIR into the library 26182# and all subsequent libraries and executables linked against it. 26183hardcode_automatic=$hardcode_automatic_GCJ 26184 26185# Variables whose values should be saved in libtool wrapper scripts and 26186# restored at relink time. 26187variables_saved_for_relink="$variables_saved_for_relink" 26188 26189# Whether libtool must link a program against all its dependency libraries. 26190link_all_deplibs=$link_all_deplibs_GCJ 26191 26192# Compile-time system search path for libraries 26193sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 26194 26195# Run-time system search path for libraries 26196sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 26197 26198# Fix the shell variable \$srcfile for the compiler. 26199fix_srcfile_path=$lt_fix_srcfile_path 26200 26201# Set to yes if exported symbols are required. 26202always_export_symbols=$always_export_symbols_GCJ 26203 26204# The commands to list exported symbols. 26205export_symbols_cmds=$lt_export_symbols_cmds_GCJ 26206 26207# The commands to extract the exported symbol list from a shared archive. 26208extract_expsyms_cmds=$lt_extract_expsyms_cmds 26209 26210# Symbols that should not be listed in the preloaded symbols. 26211exclude_expsyms=$lt_exclude_expsyms_GCJ 26212 26213# Symbols that must always be exported. 26214include_expsyms=$lt_include_expsyms_GCJ 26215 26216# ### END LIBTOOL TAG CONFIG: $tagname 26217 26218__EOF__ 26219 26220 26221else 26222 # If there is no Makefile yet, we rely on a make rule to execute 26223 # `config.status --recheck' to rerun these tests and create the 26224 # libtool script then. 26225 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 26226 if test -f "$ltmain_in"; then 26227 test -f Makefile && make "$ltmain" 26228 fi 26229fi 26230 26231 26232ac_ext=cpp 26233ac_cpp='$CXXCPP $CPPFLAGS' 26234ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26235ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26236ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 26237 26238CC="$lt_save_CC" 26239 26240 else 26241 tagname="" 26242 fi 26243 ;; 26244 26245 RC) 26246 26247 26248# Source file extension for RC test sources. 26249ac_ext=rc 26250 26251# Object file extension for compiled RC test sources. 26252objext=o 26253objext_RC=$objext 26254 26255# Code to be used in simple compile tests 26256lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 26257 26258# Code to be used in simple link tests 26259lt_simple_link_test_code="$lt_simple_compile_test_code" 26260 26261# ltmain only uses $CC for tagged configurations so make sure $CC is set. 26262 26263# If no C compiler was specified, use CC. 26264LTCC=${LTCC-"$CC"} 26265 26266# If no C compiler flags were specified, use CFLAGS. 26267LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 26268 26269# Allow CC to be a program name with arguments. 26270compiler=$CC 26271 26272 26273# save warnings/boilerplate of simple test code 26274ac_outfile=conftest.$ac_objext 26275echo "$lt_simple_compile_test_code" >conftest.$ac_ext 26276eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 26277_lt_compiler_boilerplate=`cat conftest.err` 26278$rm conftest* 26279 26280ac_outfile=conftest.$ac_objext 26281echo "$lt_simple_link_test_code" >conftest.$ac_ext 26282eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 26283_lt_linker_boilerplate=`cat conftest.err` 26284$rm -r conftest* 26285 26286 26287# Allow CC to be a program name with arguments. 26288lt_save_CC="$CC" 26289CC=${RC-"windres"} 26290compiler=$CC 26291compiler_RC=$CC 26292for cc_temp in $compiler""; do 26293 case $cc_temp in 26294 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 26295 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 26296 \-*) ;; 26297 *) break;; 26298 esac 26299done 26300cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 26301 26302lt_cv_prog_compiler_c_o_RC=yes 26303 26304# The else clause should only fire when bootstrapping the 26305# libtool distribution, otherwise you forgot to ship ltmain.sh 26306# with your package, and you will get complaints that there are 26307# no rules to generate ltmain.sh. 26308if test -f "$ltmain"; then 26309 # See if we are running on zsh, and set the options which allow our commands through 26310 # without removal of \ escapes. 26311 if test -n "${ZSH_VERSION+set}" ; then 26312 setopt NO_GLOB_SUBST 26313 fi 26314 # Now quote all the things that may contain metacharacters while being 26315 # careful not to overquote the AC_SUBSTed values. We take copies of the 26316 # variables and quote the copies for generation of the libtool script. 26317 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 26318 SED SHELL STRIP \ 26319 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 26320 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 26321 deplibs_check_method reload_flag reload_cmds need_locks \ 26322 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 26323 lt_cv_sys_global_symbol_to_c_name_address \ 26324 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 26325 old_postinstall_cmds old_postuninstall_cmds \ 26326 compiler_RC \ 26327 CC_RC \ 26328 LD_RC \ 26329 lt_prog_compiler_wl_RC \ 26330 lt_prog_compiler_pic_RC \ 26331 lt_prog_compiler_static_RC \ 26332 lt_prog_compiler_no_builtin_flag_RC \ 26333 export_dynamic_flag_spec_RC \ 26334 thread_safe_flag_spec_RC \ 26335 whole_archive_flag_spec_RC \ 26336 enable_shared_with_static_runtimes_RC \ 26337 old_archive_cmds_RC \ 26338 old_archive_from_new_cmds_RC \ 26339 predep_objects_RC \ 26340 postdep_objects_RC \ 26341 predeps_RC \ 26342 postdeps_RC \ 26343 compiler_lib_search_path_RC \ 26344 compiler_lib_search_dirs_RC \ 26345 archive_cmds_RC \ 26346 archive_expsym_cmds_RC \ 26347 postinstall_cmds_RC \ 26348 postuninstall_cmds_RC \ 26349 old_archive_from_expsyms_cmds_RC \ 26350 allow_undefined_flag_RC \ 26351 no_undefined_flag_RC \ 26352 export_symbols_cmds_RC \ 26353 hardcode_libdir_flag_spec_RC \ 26354 hardcode_libdir_flag_spec_ld_RC \ 26355 hardcode_libdir_separator_RC \ 26356 hardcode_automatic_RC \ 26357 module_cmds_RC \ 26358 module_expsym_cmds_RC \ 26359 lt_cv_prog_compiler_c_o_RC \ 26360 fix_srcfile_path_RC \ 26361 exclude_expsyms_RC \ 26362 include_expsyms_RC; do 26363 26364 case $var in 26365 old_archive_cmds_RC | \ 26366 old_archive_from_new_cmds_RC | \ 26367 archive_cmds_RC | \ 26368 archive_expsym_cmds_RC | \ 26369 module_cmds_RC | \ 26370 module_expsym_cmds_RC | \ 26371 old_archive_from_expsyms_cmds_RC | \ 26372 export_symbols_cmds_RC | \ 26373 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 26374 postinstall_cmds | postuninstall_cmds | \ 26375 old_postinstall_cmds | old_postuninstall_cmds | \ 26376 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 26377 # Double-quote double-evaled strings. 26378 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 26379 ;; 26380 *) 26381 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 26382 ;; 26383 esac 26384 done 26385 26386 case $lt_echo in 26387 *'\$0 --fallback-echo"') 26388 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 26389 ;; 26390 esac 26391 26392cfgfile="$ofile" 26393 26394 cat <<__EOF__ >> "$cfgfile" 26395# ### BEGIN LIBTOOL TAG CONFIG: $tagname 26396 26397# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 26398 26399# Shell to use when invoking shell scripts. 26400SHELL=$lt_SHELL 26401 26402# Whether or not to build shared libraries. 26403build_libtool_libs=$enable_shared 26404 26405# Whether or not to build static libraries. 26406build_old_libs=$enable_static 26407 26408# Whether or not to add -lc for building shared libraries. 26409build_libtool_need_lc=$archive_cmds_need_lc_RC 26410 26411# Whether or not to disallow shared libs when runtime libs are static 26412allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 26413 26414# Whether or not to optimize for fast installation. 26415fast_install=$enable_fast_install 26416 26417# The host system. 26418host_alias=$host_alias 26419host=$host 26420host_os=$host_os 26421 26422# The build system. 26423build_alias=$build_alias 26424build=$build 26425build_os=$build_os 26426 26427# An echo program that does not interpret backslashes. 26428echo=$lt_echo 26429 26430# The archiver. 26431AR=$lt_AR 26432AR_FLAGS=$lt_AR_FLAGS 26433 26434# A C compiler. 26435LTCC=$lt_LTCC 26436 26437# LTCC compiler flags. 26438LTCFLAGS=$lt_LTCFLAGS 26439 26440# A language-specific compiler. 26441CC=$lt_compiler_RC 26442 26443# Is the compiler the GNU C compiler? 26444with_gcc=$GCC_RC 26445 26446# An ERE matcher. 26447EGREP=$lt_EGREP 26448 26449# The linker used to build libraries. 26450LD=$lt_LD_RC 26451 26452# Whether we need hard or soft links. 26453LN_S=$lt_LN_S 26454 26455# A BSD-compatible nm program. 26456NM=$lt_NM 26457 26458# A symbol stripping program 26459STRIP=$lt_STRIP 26460 26461# Used to examine libraries when file_magic_cmd begins "file" 26462MAGIC_CMD=$MAGIC_CMD 26463 26464# Used on cygwin: DLL creation program. 26465DLLTOOL="$DLLTOOL" 26466 26467# Used on cygwin: object dumper. 26468OBJDUMP="$OBJDUMP" 26469 26470# Used on cygwin: assembler. 26471AS="$AS" 26472 26473# The name of the directory that contains temporary libtool files. 26474objdir=$objdir 26475 26476# How to create reloadable object files. 26477reload_flag=$lt_reload_flag 26478reload_cmds=$lt_reload_cmds 26479 26480# How to pass a linker flag through the compiler. 26481wl=$lt_lt_prog_compiler_wl_RC 26482 26483# Object file suffix (normally "o"). 26484objext="$ac_objext" 26485 26486# Old archive suffix (normally "a"). 26487libext="$libext" 26488 26489# Shared library suffix (normally ".so"). 26490shrext_cmds='$shrext_cmds' 26491 26492# Executable file suffix (normally ""). 26493exeext="$exeext" 26494 26495# Additional compiler flags for building library objects. 26496pic_flag=$lt_lt_prog_compiler_pic_RC 26497pic_mode=$pic_mode 26498 26499# What is the maximum length of a command? 26500max_cmd_len=$lt_cv_sys_max_cmd_len 26501 26502# Does compiler simultaneously support -c and -o options? 26503compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 26504 26505# Must we lock files when doing compilation? 26506need_locks=$lt_need_locks 26507 26508# Do we need the lib prefix for modules? 26509need_lib_prefix=$need_lib_prefix 26510 26511# Do we need a version for libraries? 26512need_version=$need_version 26513 26514# Whether dlopen is supported. 26515dlopen_support=$enable_dlopen 26516 26517# Whether dlopen of programs is supported. 26518dlopen_self=$enable_dlopen_self 26519 26520# Whether dlopen of statically linked programs is supported. 26521dlopen_self_static=$enable_dlopen_self_static 26522 26523# Compiler flag to prevent dynamic linking. 26524link_static_flag=$lt_lt_prog_compiler_static_RC 26525 26526# Compiler flag to turn off builtin functions. 26527no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 26528 26529# Compiler flag to allow reflexive dlopens. 26530export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 26531 26532# Compiler flag to generate shared objects directly from archives. 26533whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 26534 26535# Compiler flag to generate thread-safe objects. 26536thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 26537 26538# Library versioning type. 26539version_type=$version_type 26540 26541# Format of library name prefix. 26542libname_spec=$lt_libname_spec 26543 26544# List of archive names. First name is the real one, the rest are links. 26545# The last name is the one that the linker finds with -lNAME. 26546library_names_spec=$lt_library_names_spec 26547 26548# The coded name of the library, if different from the real name. 26549soname_spec=$lt_soname_spec 26550 26551# Commands used to build and install an old-style archive. 26552RANLIB=$lt_RANLIB 26553old_archive_cmds=$lt_old_archive_cmds_RC 26554old_postinstall_cmds=$lt_old_postinstall_cmds 26555old_postuninstall_cmds=$lt_old_postuninstall_cmds 26556 26557# Create an old-style archive from a shared archive. 26558old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 26559 26560# Create a temporary old-style archive to link instead of a shared archive. 26561old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 26562 26563# Commands used to build and install a shared archive. 26564archive_cmds=$lt_archive_cmds_RC 26565archive_expsym_cmds=$lt_archive_expsym_cmds_RC 26566postinstall_cmds=$lt_postinstall_cmds 26567postuninstall_cmds=$lt_postuninstall_cmds 26568 26569# Commands used to build a loadable module (assumed same as above if empty) 26570module_cmds=$lt_module_cmds_RC 26571module_expsym_cmds=$lt_module_expsym_cmds_RC 26572 26573# Commands to strip libraries. 26574old_striplib=$lt_old_striplib 26575striplib=$lt_striplib 26576 26577# Dependencies to place before the objects being linked to create a 26578# shared library. 26579predep_objects=$lt_predep_objects_RC 26580 26581# Dependencies to place after the objects being linked to create a 26582# shared library. 26583postdep_objects=$lt_postdep_objects_RC 26584 26585# Dependencies to place before the objects being linked to create a 26586# shared library. 26587predeps=$lt_predeps_RC 26588 26589# Dependencies to place after the objects being linked to create a 26590# shared library. 26591postdeps=$lt_postdeps_RC 26592 26593# The directories searched by this compiler when creating a shared 26594# library 26595compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC 26596 26597# The library search path used internally by the compiler when linking 26598# a shared library. 26599compiler_lib_search_path=$lt_compiler_lib_search_path_RC 26600 26601# Method to check whether dependent libraries are shared objects. 26602deplibs_check_method=$lt_deplibs_check_method 26603 26604# Command to use when deplibs_check_method == file_magic. 26605file_magic_cmd=$lt_file_magic_cmd 26606 26607# Flag that allows shared libraries with undefined symbols to be built. 26608allow_undefined_flag=$lt_allow_undefined_flag_RC 26609 26610# Flag that forces no undefined symbols. 26611no_undefined_flag=$lt_no_undefined_flag_RC 26612 26613# Commands used to finish a libtool library installation in a directory. 26614finish_cmds=$lt_finish_cmds 26615 26616# Same as above, but a single script fragment to be evaled but not shown. 26617finish_eval=$lt_finish_eval 26618 26619# Take the output of nm and produce a listing of raw symbols and C names. 26620global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 26621 26622# Transform the output of nm in a proper C declaration 26623global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 26624 26625# Transform the output of nm in a C name address pair 26626global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 26627 26628# This is the shared library runtime path variable. 26629runpath_var=$runpath_var 26630 26631# This is the shared library path variable. 26632shlibpath_var=$shlibpath_var 26633 26634# Is shlibpath searched before the hard-coded library search path? 26635shlibpath_overrides_runpath=$shlibpath_overrides_runpath 26636 26637# How to hardcode a shared library path into an executable. 26638hardcode_action=$hardcode_action_RC 26639 26640# Whether we should hardcode library paths into libraries. 26641hardcode_into_libs=$hardcode_into_libs 26642 26643# Flag to hardcode \$libdir into a binary during linking. 26644# This must work even if \$libdir does not exist. 26645hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 26646 26647# If ld is used when linking, flag to hardcode \$libdir into 26648# a binary during linking. This must work even if \$libdir does 26649# not exist. 26650hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 26651 26652# Whether we need a single -rpath flag with a separated argument. 26653hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 26654 26655# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 26656# resulting binary. 26657hardcode_direct=$hardcode_direct_RC 26658 26659# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 26660# resulting binary. 26661hardcode_minus_L=$hardcode_minus_L_RC 26662 26663# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 26664# the resulting binary. 26665hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 26666 26667# Set to yes if building a shared library automatically hardcodes DIR into the library 26668# and all subsequent libraries and executables linked against it. 26669hardcode_automatic=$hardcode_automatic_RC 26670 26671# Variables whose values should be saved in libtool wrapper scripts and 26672# restored at relink time. 26673variables_saved_for_relink="$variables_saved_for_relink" 26674 26675# Whether libtool must link a program against all its dependency libraries. 26676link_all_deplibs=$link_all_deplibs_RC 26677 26678# Compile-time system search path for libraries 26679sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 26680 26681# Run-time system search path for libraries 26682sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 26683 26684# Fix the shell variable \$srcfile for the compiler. 26685fix_srcfile_path=$lt_fix_srcfile_path 26686 26687# Set to yes if exported symbols are required. 26688always_export_symbols=$always_export_symbols_RC 26689 26690# The commands to list exported symbols. 26691export_symbols_cmds=$lt_export_symbols_cmds_RC 26692 26693# The commands to extract the exported symbol list from a shared archive. 26694extract_expsyms_cmds=$lt_extract_expsyms_cmds 26695 26696# Symbols that should not be listed in the preloaded symbols. 26697exclude_expsyms=$lt_exclude_expsyms_RC 26698 26699# Symbols that must always be exported. 26700include_expsyms=$lt_include_expsyms_RC 26701 26702# ### END LIBTOOL TAG CONFIG: $tagname 26703 26704__EOF__ 26705 26706 26707else 26708 # If there is no Makefile yet, we rely on a make rule to execute 26709 # `config.status --recheck' to rerun these tests and create the 26710 # libtool script then. 26711 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 26712 if test -f "$ltmain_in"; then 26713 test -f Makefile && make "$ltmain" 26714 fi 26715fi 26716 26717 26718ac_ext=cpp 26719ac_cpp='$CXXCPP $CPPFLAGS' 26720ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26721ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26722ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 26723 26724CC="$lt_save_CC" 26725 26726 ;; 26727 26728 *) 26729 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 26730echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 26731 { (exit 1); exit 1; }; } 26732 ;; 26733 esac 26734 26735 # Append the new tag name to the list of available tags. 26736 if test -n "$tagname" ; then 26737 available_tags="$available_tags $tagname" 26738 fi 26739 fi 26740 done 26741 IFS="$lt_save_ifs" 26742 26743 # Now substitute the updated list of available tags. 26744 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 26745 mv "${ofile}T" "$ofile" 26746 chmod +x "$ofile" 26747 else 26748 rm -f "${ofile}T" 26749 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 26750echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 26751 { (exit 1); exit 1; }; } 26752 fi 26753fi 26754 26755 26756 26757# This can be used to rebuild libtool when needed 26758LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 26759 26760# Always use our own libtool. 26761LIBTOOL='$(SHELL) $(top_builddir)/libtool' 26762 26763# Prevent multiple expansion 26764 26765 26766 26767 26768 26769 26770 26771 26772 26773 26774 26775 26776 26777 26778 26779 26780 26781 26782 26783 26784 26785ac_config_files="$ac_config_files Makefile aacgain/Makefile mp3gain/Makefile mp3gain/mpglibDBL/Makefile faad2/libfaad/Makefile mpeg4ip/lib/mp4v2/Makefile" 26786 26787cat >confcache <<\_ACEOF 26788# This file is a shell script that caches the results of configure 26789# tests run on this system so they can be shared between configure 26790# scripts and configure runs, see configure's option --config-cache. 26791# It is not useful on other systems. If it contains results you don't 26792# want to keep, you may remove or edit it. 26793# 26794# config.status only pays attention to the cache file if you give it 26795# the --recheck option to rerun configure. 26796# 26797# `ac_cv_env_foo' variables (set or unset) will be overridden when 26798# loading this file, other *unset* `ac_cv_foo' will be assigned the 26799# following values. 26800 26801_ACEOF 26802 26803# The following way of writing the cache mishandles newlines in values, 26804# but we know of no workaround that is simple, portable, and efficient. 26805# So, we kill variables containing newlines. 26806# Ultrix sh set writes to stderr and can't be redirected directly, 26807# and sets the high bit in the cache file unless we assign to the vars. 26808( 26809 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 26810 eval ac_val=\$$ac_var 26811 case $ac_val in #( 26812 *${as_nl}*) 26813 case $ac_var in #( 26814 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 26815echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 26816 esac 26817 case $ac_var in #( 26818 _ | IFS | as_nl) ;; #( 26819 *) $as_unset $ac_var ;; 26820 esac ;; 26821 esac 26822 done 26823 26824 (set) 2>&1 | 26825 case $as_nl`(ac_space=' '; set) 2>&1` in #( 26826 *${as_nl}ac_space=\ *) 26827 # `set' does not quote correctly, so add quotes (double-quote 26828 # substitution turns \\\\ into \\, and sed turns \\ into \). 26829 sed -n \ 26830 "s/'/'\\\\''/g; 26831 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 26832 ;; #( 26833 *) 26834 # `set' quotes correctly as required by POSIX, so do not add quotes. 26835 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 26836 ;; 26837 esac | 26838 sort 26839) | 26840 sed ' 26841 /^ac_cv_env_/b end 26842 t clear 26843 :clear 26844 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 26845 t end 26846 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 26847 :end' >>confcache 26848if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 26849 if test -w "$cache_file"; then 26850 test "x$cache_file" != "x/dev/null" && 26851 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 26852echo "$as_me: updating cache $cache_file" >&6;} 26853 cat confcache >$cache_file 26854 else 26855 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 26856echo "$as_me: not updating unwritable cache $cache_file" >&6;} 26857 fi 26858fi 26859rm -f confcache 26860 26861test "x$prefix" = xNONE && prefix=$ac_default_prefix 26862# Let make expand exec_prefix. 26863test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 26864 26865DEFS=-DHAVE_CONFIG_H 26866 26867ac_libobjs= 26868ac_ltlibobjs= 26869for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue 26870 # 1. Remove the extension, and $U if already installed. 26871 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 26872 ac_i=`echo "$ac_i" | sed "$ac_script"` 26873 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 26874 # will be set to the directory where LIBOBJS objects are built. 26875 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 26876 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 26877done 26878LIB@&t@OBJS=$ac_libobjs 26879 26880LTLIBOBJS=$ac_ltlibobjs 26881 26882 26883if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 26884 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 26885Usually this means the macro was only invoked conditionally." >&5 26886echo "$as_me: error: conditional \"AMDEP\" was never defined. 26887Usually this means the macro was only invoked conditionally." >&2;} 26888 { (exit 1); exit 1; }; } 26889fi 26890if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 26891 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 26892Usually this means the macro was only invoked conditionally." >&5 26893echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 26894Usually this means the macro was only invoked conditionally." >&2;} 26895 { (exit 1); exit 1; }; } 26896fi 26897if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 26898 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 26899Usually this means the macro was only invoked conditionally." >&5 26900echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 26901Usually this means the macro was only invoked conditionally." >&2;} 26902 { (exit 1); exit 1; }; } 26903fi 26904if test -z "${do_static_build_TRUE}" && test -z "${do_static_build_FALSE}"; then 26905 { { echo "$as_me:$LINENO: error: conditional \"do_static_build\" was never defined. 26906Usually this means the macro was only invoked conditionally." >&5 26907echo "$as_me: error: conditional \"do_static_build\" was never defined. 26908Usually this means the macro was only invoked conditionally." >&2;} 26909 { (exit 1); exit 1; }; } 26910fi 26911 26912: ${CONFIG_STATUS=./config.status} 26913ac_clean_files_save=$ac_clean_files 26914ac_clean_files="$ac_clean_files $CONFIG_STATUS" 26915{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 26916echo "$as_me: creating $CONFIG_STATUS" >&6;} 26917cat >$CONFIG_STATUS <<_ACEOF 26918#! $SHELL 26919# Generated by $as_me. 26920# Run this file to recreate the current configuration. 26921# Compiler output produced by configure, useful for debugging 26922# configure, is in config.log if it exists. 26923 26924debug=false 26925ac_cs_recheck=false 26926ac_cs_silent=false 26927SHELL=\${CONFIG_SHELL-$SHELL} 26928_ACEOF 26929 26930cat >>$CONFIG_STATUS <<\_ACEOF 26931## --------------------- ## 26932## M4sh Initialization. ## 26933## --------------------- ## 26934 26935# Be more Bourne compatible 26936DUALCASE=1; export DUALCASE # for MKS sh 26937if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 26938 emulate sh 26939 NULLCMD=: 26940 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 26941 # is contrary to our usage. Disable this feature. 26942 alias -g '${1+"$@"}'='"$@"' 26943 setopt NO_GLOB_SUBST 26944else 26945 case `(set -o) 2>/dev/null` in 26946 *posix*) set -o posix ;; 26947esac 26948 26949fi 26950 26951 26952 26953 26954# PATH needs CR 26955# Avoid depending upon Character Ranges. 26956as_cr_letters='abcdefghijklmnopqrstuvwxyz' 26957as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 26958as_cr_Letters=$as_cr_letters$as_cr_LETTERS 26959as_cr_digits='0123456789' 26960as_cr_alnum=$as_cr_Letters$as_cr_digits 26961 26962# The user is always right. 26963if test "${PATH_SEPARATOR+set}" != set; then 26964 echo "#! /bin/sh" >conf$$.sh 26965 echo "exit 0" >>conf$$.sh 26966 chmod +x conf$$.sh 26967 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 26968 PATH_SEPARATOR=';' 26969 else 26970 PATH_SEPARATOR=: 26971 fi 26972 rm -f conf$$.sh 26973fi 26974 26975# Support unset when possible. 26976if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 26977 as_unset=unset 26978else 26979 as_unset=false 26980fi 26981 26982 26983# IFS 26984# We need space, tab and new line, in precisely that order. Quoting is 26985# there to prevent editors from complaining about space-tab. 26986# (If _AS_PATH_WALK were called with IFS unset, it would disable word 26987# splitting by setting IFS to empty value.) 26988as_nl=' 26989' 26990IFS=" "" $as_nl" 26991 26992# Find who we are. Look in the path if we contain no directory separator. 26993case $0 in 26994 *[\\/]* ) as_myself=$0 ;; 26995 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26996for as_dir in $PATH 26997do 26998 IFS=$as_save_IFS 26999 test -z "$as_dir" && as_dir=. 27000 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 27001done 27002IFS=$as_save_IFS 27003 27004 ;; 27005esac 27006# We did not find ourselves, most probably we were run as `sh COMMAND' 27007# in which case we are not to be found in the path. 27008if test "x$as_myself" = x; then 27009 as_myself=$0 27010fi 27011if test ! -f "$as_myself"; then 27012 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 27013 { (exit 1); exit 1; } 27014fi 27015 27016# Work around bugs in pre-3.0 UWIN ksh. 27017for as_var in ENV MAIL MAILPATH 27018do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 27019done 27020PS1='$ ' 27021PS2='> ' 27022PS4='+ ' 27023 27024# NLS nuisances. 27025for as_var in \ 27026 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 27027 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 27028 LC_TELEPHONE LC_TIME 27029do 27030 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 27031 eval $as_var=C; export $as_var 27032 else 27033 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 27034 fi 27035done 27036 27037# Required to use basename. 27038if expr a : '\(a\)' >/dev/null 2>&1 && 27039 test "X`expr 00001 : '.*\(...\)'`" = X001; then 27040 as_expr=expr 27041else 27042 as_expr=false 27043fi 27044 27045if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 27046 as_basename=basename 27047else 27048 as_basename=false 27049fi 27050 27051 27052# Name of the executable. 27053as_me=`$as_basename -- "$0" || 27054$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 27055 X"$0" : 'X\(//\)$' \| \ 27056 X"$0" : 'X\(/\)' \| . 2>/dev/null || 27057echo X/"$0" | 27058 sed '/^.*\/\([^/][^/]*\)\/*$/{ 27059 s//\1/ 27060 q 27061 } 27062 /^X\/\(\/\/\)$/{ 27063 s//\1/ 27064 q 27065 } 27066 /^X\/\(\/\).*/{ 27067 s//\1/ 27068 q 27069 } 27070 s/.*/./; q'` 27071 27072# CDPATH. 27073$as_unset CDPATH 27074 27075 27076 27077 as_lineno_1=$LINENO 27078 as_lineno_2=$LINENO 27079 test "x$as_lineno_1" != "x$as_lineno_2" && 27080 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 27081 27082 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 27083 # uniformly replaced by the line number. The first 'sed' inserts a 27084 # line-number line after each line using $LINENO; the second 'sed' 27085 # does the real work. The second script uses 'N' to pair each 27086 # line-number line with the line containing $LINENO, and appends 27087 # trailing '-' during substitution so that $LINENO is not a special 27088 # case at line end. 27089 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 27090 # scripts with optimization help from Paolo Bonzini. Blame Lee 27091 # E. McMahon (1931-1989) for sed's syntax. :-) 27092 sed -n ' 27093 p 27094 /[$]LINENO/= 27095 ' <$as_myself | 27096 sed ' 27097 s/[$]LINENO.*/&-/ 27098 t lineno 27099 b 27100 :lineno 27101 N 27102 :loop 27103 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 27104 t loop 27105 s/-\n.*// 27106 ' >$as_me.lineno && 27107 chmod +x "$as_me.lineno" || 27108 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 27109 { (exit 1); exit 1; }; } 27110 27111 # Don't try to exec as it changes $[0], causing all sort of problems 27112 # (the dirname of $[0] is not the place where we might find the 27113 # original and so on. Autoconf is especially sensitive to this). 27114 . "./$as_me.lineno" 27115 # Exit status is that of the last command. 27116 exit 27117} 27118 27119 27120if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 27121 as_dirname=dirname 27122else 27123 as_dirname=false 27124fi 27125 27126ECHO_C= ECHO_N= ECHO_T= 27127case `echo -n x` in 27128-n*) 27129 case `echo 'x\c'` in 27130 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 27131 *) ECHO_C='\c';; 27132 esac;; 27133*) 27134 ECHO_N='-n';; 27135esac 27136 27137if expr a : '\(a\)' >/dev/null 2>&1 && 27138 test "X`expr 00001 : '.*\(...\)'`" = X001; then 27139 as_expr=expr 27140else 27141 as_expr=false 27142fi 27143 27144rm -f conf$$ conf$$.exe conf$$.file 27145if test -d conf$$.dir; then 27146 rm -f conf$$.dir/conf$$.file 27147else 27148 rm -f conf$$.dir 27149 mkdir conf$$.dir 27150fi 27151echo >conf$$.file 27152if ln -s conf$$.file conf$$ 2>/dev/null; then 27153 as_ln_s='ln -s' 27154 # ... but there are two gotchas: 27155 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 27156 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 27157 # In both cases, we have to default to `cp -p'. 27158 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 27159 as_ln_s='cp -p' 27160elif ln conf$$.file conf$$ 2>/dev/null; then 27161 as_ln_s=ln 27162else 27163 as_ln_s='cp -p' 27164fi 27165rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 27166rmdir conf$$.dir 2>/dev/null 27167 27168if mkdir -p . 2>/dev/null; then 27169 as_mkdir_p=: 27170else 27171 test -d ./-p && rmdir ./-p 27172 as_mkdir_p=false 27173fi 27174 27175if test -x / >/dev/null 2>&1; then 27176 as_test_x='test -x' 27177else 27178 if ls -dL / >/dev/null 2>&1; then 27179 as_ls_L_option=L 27180 else 27181 as_ls_L_option= 27182 fi 27183 as_test_x=' 27184 eval sh -c '\'' 27185 if test -d "$1"; then 27186 test -d "$1/."; 27187 else 27188 case $1 in 27189 -*)set "./$1";; 27190 esac; 27191 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 27192 ???[sx]*):;;*)false;;esac;fi 27193 '\'' sh 27194 ' 27195fi 27196as_executable_p=$as_test_x 27197 27198# Sed expression to map a string onto a valid CPP name. 27199as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 27200 27201# Sed expression to map a string onto a valid variable name. 27202as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 27203 27204 27205exec 6>&1 27206 27207# Save the log message, to keep $[0] and so on meaningful, and to 27208# report actual input values of CONFIG_FILES etc. instead of their 27209# values after options handling. 27210ac_log=" 27211This file was extended by $as_me, which was 27212generated by GNU Autoconf 2.61. Invocation command line was 27213 27214 CONFIG_FILES = $CONFIG_FILES 27215 CONFIG_HEADERS = $CONFIG_HEADERS 27216 CONFIG_LINKS = $CONFIG_LINKS 27217 CONFIG_COMMANDS = $CONFIG_COMMANDS 27218 $ $0 $@ 27219 27220on `(hostname || uname -n) 2>/dev/null | sed 1q` 27221" 27222 27223_ACEOF 27224 27225cat >>$CONFIG_STATUS <<_ACEOF 27226# Files that config.status was made for. 27227config_files="$ac_config_files" 27228config_headers="$ac_config_headers" 27229config_commands="$ac_config_commands" 27230 27231_ACEOF 27232 27233cat >>$CONFIG_STATUS <<\_ACEOF 27234ac_cs_usage="\ 27235\`$as_me' instantiates files from templates according to the 27236current configuration. 27237 27238Usage: $0 [OPTIONS] [FILE]... 27239 27240 -h, --help print this help, then exit 27241 -V, --version print version number and configuration settings, then exit 27242 -q, --quiet do not print progress messages 27243 -d, --debug don't remove temporary files 27244 --recheck update $as_me by reconfiguring in the same conditions 27245 --file=FILE[:TEMPLATE] 27246 instantiate the configuration file FILE 27247 --header=FILE[:TEMPLATE] 27248 instantiate the configuration header FILE 27249 27250Configuration files: 27251$config_files 27252 27253Configuration headers: 27254$config_headers 27255 27256Configuration commands: 27257$config_commands 27258 27259Report bugs to <bug-autoconf@gnu.org>." 27260 27261_ACEOF 27262cat >>$CONFIG_STATUS <<_ACEOF 27263ac_cs_version="\\ 27264config.status 27265configured by $0, generated by GNU Autoconf 2.61, 27266 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 27267 27268Copyright (C) 2006 Free Software Foundation, Inc. 27269This config.status script is free software; the Free Software Foundation 27270gives unlimited permission to copy, distribute and modify it." 27271 27272ac_pwd='$ac_pwd' 27273srcdir='$srcdir' 27274INSTALL='$INSTALL' 27275MKDIR_P='$MKDIR_P' 27276_ACEOF 27277 27278cat >>$CONFIG_STATUS <<\_ACEOF 27279# If no file are specified by the user, then we need to provide default 27280# value. By we need to know if files were specified by the user. 27281ac_need_defaults=: 27282while test $# != 0 27283do 27284 case $1 in 27285 --*=*) 27286 ac_option=`expr "X$1" : 'X\([^=]*\)='` 27287 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 27288 ac_shift=: 27289 ;; 27290 *) 27291 ac_option=$1 27292 ac_optarg=$2 27293 ac_shift=shift 27294 ;; 27295 esac 27296 27297 case $ac_option in 27298 # Handling of the options. 27299 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 27300 ac_cs_recheck=: ;; 27301 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 27302 echo "$ac_cs_version"; exit ;; 27303 --debug | --debu | --deb | --de | --d | -d ) 27304 debug=: ;; 27305 --file | --fil | --fi | --f ) 27306 $ac_shift 27307 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 27308 ac_need_defaults=false;; 27309 --header | --heade | --head | --hea ) 27310 $ac_shift 27311 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 27312 ac_need_defaults=false;; 27313 --he | --h) 27314 # Conflict between --help and --header 27315 { echo "$as_me: error: ambiguous option: $1 27316Try \`$0 --help' for more information." >&2 27317 { (exit 1); exit 1; }; };; 27318 --help | --hel | -h ) 27319 echo "$ac_cs_usage"; exit ;; 27320 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 27321 | -silent | --silent | --silen | --sile | --sil | --si | --s) 27322 ac_cs_silent=: ;; 27323 27324 # This is an error. 27325 -*) { echo "$as_me: error: unrecognized option: $1 27326Try \`$0 --help' for more information." >&2 27327 { (exit 1); exit 1; }; } ;; 27328 27329 *) ac_config_targets="$ac_config_targets $1" 27330 ac_need_defaults=false ;; 27331 27332 esac 27333 shift 27334done 27335 27336ac_configure_extra_args= 27337 27338if $ac_cs_silent; then 27339 exec 6>/dev/null 27340 ac_configure_extra_args="$ac_configure_extra_args --silent" 27341fi 27342 27343_ACEOF 27344cat >>$CONFIG_STATUS <<_ACEOF 27345if \$ac_cs_recheck; then 27346 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 27347 CONFIG_SHELL=$SHELL 27348 export CONFIG_SHELL 27349 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 27350fi 27351 27352_ACEOF 27353cat >>$CONFIG_STATUS <<\_ACEOF 27354exec 5>>config.log 27355{ 27356 echo 27357 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX 27358@%:@@%:@ Running $as_me. @%:@@%:@ 27359_ASBOX 27360 echo "$ac_log" 27361} >&5 27362 27363_ACEOF 27364cat >>$CONFIG_STATUS <<_ACEOF 27365# 27366# INIT-COMMANDS 27367# 27368AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 27369 27370_ACEOF 27371 27372cat >>$CONFIG_STATUS <<\_ACEOF 27373 27374# Handling of arguments. 27375for ac_config_target in $ac_config_targets 27376do 27377 case $ac_config_target in 27378 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 27379 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 27380 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 27381 "aacgain/Makefile") CONFIG_FILES="$CONFIG_FILES aacgain/Makefile" ;; 27382 "mp3gain/Makefile") CONFIG_FILES="$CONFIG_FILES mp3gain/Makefile" ;; 27383 "mp3gain/mpglibDBL/Makefile") CONFIG_FILES="$CONFIG_FILES mp3gain/mpglibDBL/Makefile" ;; 27384 "faad2/libfaad/Makefile") CONFIG_FILES="$CONFIG_FILES faad2/libfaad/Makefile" ;; 27385 "mpeg4ip/lib/mp4v2/Makefile") CONFIG_FILES="$CONFIG_FILES mpeg4ip/lib/mp4v2/Makefile" ;; 27386 27387 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 27388echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 27389 { (exit 1); exit 1; }; };; 27390 esac 27391done 27392 27393 27394# If the user did not use the arguments to specify the items to instantiate, 27395# then the envvar interface is used. Set only those that are not. 27396# We use the long form for the default assignment because of an extremely 27397# bizarre bug on SunOS 4.1.3. 27398if $ac_need_defaults; then 27399 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 27400 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 27401 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 27402fi 27403 27404# Have a temporary directory for convenience. Make it in the build tree 27405# simply because there is no reason against having it here, and in addition, 27406# creating and moving files from /tmp can sometimes cause problems. 27407# Hook for its removal unless debugging. 27408# Note that there is a small window in which the directory will not be cleaned: 27409# after its creation but before its name has been assigned to `$tmp'. 27410$debug || 27411{ 27412 tmp= 27413 trap 'exit_status=$? 27414 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 27415' 0 27416 trap '{ (exit 1); exit 1; }' 1 2 13 15 27417} 27418# Create a (secure) tmp directory for tmp files. 27419 27420{ 27421 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 27422 test -n "$tmp" && test -d "$tmp" 27423} || 27424{ 27425 tmp=./conf$$-$RANDOM 27426 (umask 077 && mkdir "$tmp") 27427} || 27428{ 27429 echo "$me: cannot create a temporary directory in ." >&2 27430 { (exit 1); exit 1; } 27431} 27432 27433# 27434# Set up the sed scripts for CONFIG_FILES section. 27435# 27436 27437# No need to generate the scripts if there are no CONFIG_FILES. 27438# This happens for instance when ./config.status config.h 27439if test -n "$CONFIG_FILES"; then 27440 27441_ACEOF 27442 27443 27444 27445ac_delim='%!_!# ' 27446for ac_last_try in false false false false false :; do 27447 cat >conf$$subs.sed <<_ACEOF 27448SHELL!$SHELL$ac_delim 27449PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 27450PACKAGE_NAME!$PACKAGE_NAME$ac_delim 27451PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 27452PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 27453PACKAGE_STRING!$PACKAGE_STRING$ac_delim 27454PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 27455exec_prefix!$exec_prefix$ac_delim 27456prefix!$prefix$ac_delim 27457program_transform_name!$program_transform_name$ac_delim 27458bindir!$bindir$ac_delim 27459sbindir!$sbindir$ac_delim 27460libexecdir!$libexecdir$ac_delim 27461datarootdir!$datarootdir$ac_delim 27462datadir!$datadir$ac_delim 27463sysconfdir!$sysconfdir$ac_delim 27464sharedstatedir!$sharedstatedir$ac_delim 27465localstatedir!$localstatedir$ac_delim 27466includedir!$includedir$ac_delim 27467oldincludedir!$oldincludedir$ac_delim 27468docdir!$docdir$ac_delim 27469infodir!$infodir$ac_delim 27470htmldir!$htmldir$ac_delim 27471dvidir!$dvidir$ac_delim 27472pdfdir!$pdfdir$ac_delim 27473psdir!$psdir$ac_delim 27474libdir!$libdir$ac_delim 27475localedir!$localedir$ac_delim 27476mandir!$mandir$ac_delim 27477DEFS!$DEFS$ac_delim 27478ECHO_C!$ECHO_C$ac_delim 27479ECHO_N!$ECHO_N$ac_delim 27480ECHO_T!$ECHO_T$ac_delim 27481LIBS!$LIBS$ac_delim 27482build_alias!$build_alias$ac_delim 27483host_alias!$host_alias$ac_delim 27484target_alias!$target_alias$ac_delim 27485INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 27486INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 27487INSTALL_DATA!$INSTALL_DATA$ac_delim 27488am__isrc!$am__isrc$ac_delim 27489CYGPATH_W!$CYGPATH_W$ac_delim 27490PACKAGE!$PACKAGE$ac_delim 27491VERSION!$VERSION$ac_delim 27492ACLOCAL!$ACLOCAL$ac_delim 27493AUTOCONF!$AUTOCONF$ac_delim 27494AUTOMAKE!$AUTOMAKE$ac_delim 27495AUTOHEADER!$AUTOHEADER$ac_delim 27496MAKEINFO!$MAKEINFO$ac_delim 27497install_sh!$install_sh$ac_delim 27498STRIP!$STRIP$ac_delim 27499INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 27500mkdir_p!$mkdir_p$ac_delim 27501AWK!$AWK$ac_delim 27502SET_MAKE!$SET_MAKE$ac_delim 27503am__leading_dot!$am__leading_dot$ac_delim 27504AMTAR!$AMTAR$ac_delim 27505am__tar!$am__tar$ac_delim 27506am__untar!$am__untar$ac_delim 27507CC!$CC$ac_delim 27508CFLAGS!$CFLAGS$ac_delim 27509LDFLAGS!$LDFLAGS$ac_delim 27510CPPFLAGS!$CPPFLAGS$ac_delim 27511ac_ct_CC!$ac_ct_CC$ac_delim 27512EXEEXT!$EXEEXT$ac_delim 27513OBJEXT!$OBJEXT$ac_delim 27514DEPDIR!$DEPDIR$ac_delim 27515am__include!$am__include$ac_delim 27516am__quote!$am__quote$ac_delim 27517AMDEP_TRUE!$AMDEP_TRUE$ac_delim 27518AMDEP_FALSE!$AMDEP_FALSE$ac_delim 27519AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 27520CCDEPMODE!$CCDEPMODE$ac_delim 27521am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 27522am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 27523CXX!$CXX$ac_delim 27524CXXFLAGS!$CXXFLAGS$ac_delim 27525ac_ct_CXX!$ac_ct_CXX$ac_delim 27526CXXDEPMODE!$CXXDEPMODE$ac_delim 27527am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 27528am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 27529CPP!$CPP$ac_delim 27530do_static_build_TRUE!$do_static_build_TRUE$ac_delim 27531do_static_build_FALSE!$do_static_build_FALSE$ac_delim 27532XMKMF!$XMKMF$ac_delim 27533CXXCPP!$CXXCPP$ac_delim 27534X_CFLAGS!$X_CFLAGS$ac_delim 27535X_PRE_LIBS!$X_PRE_LIBS$ac_delim 27536X_LIBS!$X_LIBS$ac_delim 27537X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim 27538GREP!$GREP$ac_delim 27539EGREP!$EGREP$ac_delim 27540build!$build$ac_delim 27541build_cpu!$build_cpu$ac_delim 27542build_vendor!$build_vendor$ac_delim 27543build_os!$build_os$ac_delim 27544host!$host$ac_delim 27545_ACEOF 27546 27547 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 27548 break 27549 elif $ac_last_try; then 27550 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 27551echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 27552 { (exit 1); exit 1; }; } 27553 else 27554 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 27555 fi 27556done 27557 27558ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 27559if test -n "$ac_eof"; then 27560 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 27561 ac_eof=`expr $ac_eof + 1` 27562fi 27563 27564cat >>$CONFIG_STATUS <<_ACEOF 27565cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 27566/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 27567_ACEOF 27568sed ' 27569s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 27570s/^/s,@/; s/!/@,|#_!!_#|/ 27571:n 27572t n 27573s/'"$ac_delim"'$/,g/; t 27574s/$/\\/; p 27575N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 27576' >>$CONFIG_STATUS <conf$$subs.sed 27577rm -f conf$$subs.sed 27578cat >>$CONFIG_STATUS <<_ACEOF 27579CEOF$ac_eof 27580_ACEOF 27581 27582 27583ac_delim='%!_!# ' 27584for ac_last_try in false false false false false :; do 27585 cat >conf$$subs.sed <<_ACEOF 27586host_cpu!$host_cpu$ac_delim 27587host_vendor!$host_vendor$ac_delim 27588host_os!$host_os$ac_delim 27589SED!$SED$ac_delim 27590LN_S!$LN_S$ac_delim 27591ECHO!$ECHO$ac_delim 27592AR!$AR$ac_delim 27593RANLIB!$RANLIB$ac_delim 27594DSYMUTIL!$DSYMUTIL$ac_delim 27595NMEDIT!$NMEDIT$ac_delim 27596F77!$F77$ac_delim 27597FFLAGS!$FFLAGS$ac_delim 27598ac_ct_F77!$ac_ct_F77$ac_delim 27599LIBTOOL!$LIBTOOL$ac_delim 27600LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim 27601LTLIBOBJS!$LTLIBOBJS$ac_delim 27602_ACEOF 27603 27604 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 16; then 27605 break 27606 elif $ac_last_try; then 27607 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 27608echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 27609 { (exit 1); exit 1; }; } 27610 else 27611 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 27612 fi 27613done 27614 27615ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 27616if test -n "$ac_eof"; then 27617 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 27618 ac_eof=`expr $ac_eof + 1` 27619fi 27620 27621cat >>$CONFIG_STATUS <<_ACEOF 27622cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 27623/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 27624_ACEOF 27625sed ' 27626s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 27627s/^/s,@/; s/!/@,|#_!!_#|/ 27628:n 27629t n 27630s/'"$ac_delim"'$/,g/; t 27631s/$/\\/; p 27632N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 27633' >>$CONFIG_STATUS <conf$$subs.sed 27634rm -f conf$$subs.sed 27635cat >>$CONFIG_STATUS <<_ACEOF 27636:end 27637s/|#_!!_#|//g 27638CEOF$ac_eof 27639_ACEOF 27640 27641 27642# VPATH may cause trouble with some makes, so we remove $(srcdir), 27643# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 27644# trailing colons and then remove the whole line if VPATH becomes empty 27645# (actually we leave an empty line to preserve line numbers). 27646if test "x$srcdir" = x.; then 27647 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 27648s/:*\$(srcdir):*/:/ 27649s/:*\${srcdir}:*/:/ 27650s/:*@srcdir@:*/:/ 27651s/^\([^=]*=[ ]*\):*/\1/ 27652s/:*$// 27653s/^[^=]*=[ ]*$// 27654}' 27655fi 27656 27657cat >>$CONFIG_STATUS <<\_ACEOF 27658fi # test -n "$CONFIG_FILES" 27659 27660 27661for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 27662do 27663 case $ac_tag in 27664 :[FHLC]) ac_mode=$ac_tag; continue;; 27665 esac 27666 case $ac_mode$ac_tag in 27667 :[FHL]*:*);; 27668 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 27669echo "$as_me: error: Invalid tag $ac_tag." >&2;} 27670 { (exit 1); exit 1; }; };; 27671 :[FH]-) ac_tag=-:-;; 27672 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 27673 esac 27674 ac_save_IFS=$IFS 27675 IFS=: 27676 set x $ac_tag 27677 IFS=$ac_save_IFS 27678 shift 27679 ac_file=$1 27680 shift 27681 27682 case $ac_mode in 27683 :L) ac_source=$1;; 27684 :[FH]) 27685 ac_file_inputs= 27686 for ac_f 27687 do 27688 case $ac_f in 27689 -) ac_f="$tmp/stdin";; 27690 *) # Look for the file first in the build tree, then in the source tree 27691 # (if the path is not absolute). The absolute path cannot be DOS-style, 27692 # because $ac_f cannot contain `:'. 27693 test -f "$ac_f" || 27694 case $ac_f in 27695 [\\/$]*) false;; 27696 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 27697 esac || 27698 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 27699echo "$as_me: error: cannot find input file: $ac_f" >&2;} 27700 { (exit 1); exit 1; }; };; 27701 esac 27702 ac_file_inputs="$ac_file_inputs $ac_f" 27703 done 27704 27705 # Let's still pretend it is `configure' which instantiates (i.e., don't 27706 # use $as_me), people would be surprised to read: 27707 # /* config.h. Generated by config.status. */ 27708 configure_input="Generated from "`IFS=: 27709 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 27710 if test x"$ac_file" != x-; then 27711 configure_input="$ac_file. $configure_input" 27712 { echo "$as_me:$LINENO: creating $ac_file" >&5 27713echo "$as_me: creating $ac_file" >&6;} 27714 fi 27715 27716 case $ac_tag in 27717 *:-:* | *:-) cat >"$tmp/stdin";; 27718 esac 27719 ;; 27720 esac 27721 27722 ac_dir=`$as_dirname -- "$ac_file" || 27723$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 27724 X"$ac_file" : 'X\(//\)[^/]' \| \ 27725 X"$ac_file" : 'X\(//\)$' \| \ 27726 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 27727echo X"$ac_file" | 27728 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 27729 s//\1/ 27730 q 27731 } 27732 /^X\(\/\/\)[^/].*/{ 27733 s//\1/ 27734 q 27735 } 27736 /^X\(\/\/\)$/{ 27737 s//\1/ 27738 q 27739 } 27740 /^X\(\/\).*/{ 27741 s//\1/ 27742 q 27743 } 27744 s/.*/./; q'` 27745 { as_dir="$ac_dir" 27746 case $as_dir in #( 27747 -*) as_dir=./$as_dir;; 27748 esac 27749 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 27750 as_dirs= 27751 while :; do 27752 case $as_dir in #( 27753 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 27754 *) as_qdir=$as_dir;; 27755 esac 27756 as_dirs="'$as_qdir' $as_dirs" 27757 as_dir=`$as_dirname -- "$as_dir" || 27758$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 27759 X"$as_dir" : 'X\(//\)[^/]' \| \ 27760 X"$as_dir" : 'X\(//\)$' \| \ 27761 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 27762echo X"$as_dir" | 27763 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 27764 s//\1/ 27765 q 27766 } 27767 /^X\(\/\/\)[^/].*/{ 27768 s//\1/ 27769 q 27770 } 27771 /^X\(\/\/\)$/{ 27772 s//\1/ 27773 q 27774 } 27775 /^X\(\/\).*/{ 27776 s//\1/ 27777 q 27778 } 27779 s/.*/./; q'` 27780 test -d "$as_dir" && break 27781 done 27782 test -z "$as_dirs" || eval "mkdir $as_dirs" 27783 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 27784echo "$as_me: error: cannot create directory $as_dir" >&2;} 27785 { (exit 1); exit 1; }; }; } 27786 ac_builddir=. 27787 27788case "$ac_dir" in 27789.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 27790*) 27791 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 27792 # A ".." for each directory in $ac_dir_suffix. 27793 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 27794 case $ac_top_builddir_sub in 27795 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 27796 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 27797 esac ;; 27798esac 27799ac_abs_top_builddir=$ac_pwd 27800ac_abs_builddir=$ac_pwd$ac_dir_suffix 27801# for backward compatibility: 27802ac_top_builddir=$ac_top_build_prefix 27803 27804case $srcdir in 27805 .) # We are building in place. 27806 ac_srcdir=. 27807 ac_top_srcdir=$ac_top_builddir_sub 27808 ac_abs_top_srcdir=$ac_pwd ;; 27809 [\\/]* | ?:[\\/]* ) # Absolute name. 27810 ac_srcdir=$srcdir$ac_dir_suffix; 27811 ac_top_srcdir=$srcdir 27812 ac_abs_top_srcdir=$srcdir ;; 27813 *) # Relative name. 27814 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 27815 ac_top_srcdir=$ac_top_build_prefix$srcdir 27816 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 27817esac 27818ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 27819 27820 27821 case $ac_mode in 27822 :F) 27823 # 27824 # CONFIG_FILE 27825 # 27826 27827 case $INSTALL in 27828 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 27829 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 27830 esac 27831 ac_MKDIR_P=$MKDIR_P 27832 case $MKDIR_P in 27833 [\\/$]* | ?:[\\/]* ) ;; 27834 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 27835 esac 27836_ACEOF 27837 27838cat >>$CONFIG_STATUS <<\_ACEOF 27839# If the template does not know about datarootdir, expand it. 27840# FIXME: This hack should be removed a few years after 2.60. 27841ac_datarootdir_hack=; ac_datarootdir_seen= 27842 27843case `sed -n '/datarootdir/ { 27844 p 27845 q 27846} 27847/@datadir@/p 27848/@docdir@/p 27849/@infodir@/p 27850/@localedir@/p 27851/@mandir@/p 27852' $ac_file_inputs` in 27853*datarootdir*) ac_datarootdir_seen=yes;; 27854*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 27855 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 27856echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 27857_ACEOF 27858cat >>$CONFIG_STATUS <<_ACEOF 27859 ac_datarootdir_hack=' 27860 s&@datadir@&$datadir&g 27861 s&@docdir@&$docdir&g 27862 s&@infodir@&$infodir&g 27863 s&@localedir@&$localedir&g 27864 s&@mandir@&$mandir&g 27865 s&\\\${datarootdir}&$datarootdir&g' ;; 27866esac 27867_ACEOF 27868 27869# Neutralize VPATH when `$srcdir' = `.'. 27870# Shell code in configure.ac might set extrasub. 27871# FIXME: do we really want to maintain this feature? 27872cat >>$CONFIG_STATUS <<_ACEOF 27873 sed "$ac_vpsub 27874$extrasub 27875_ACEOF 27876cat >>$CONFIG_STATUS <<\_ACEOF 27877:t 27878/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 27879s&@configure_input@&$configure_input&;t t 27880s&@top_builddir@&$ac_top_builddir_sub&;t t 27881s&@srcdir@&$ac_srcdir&;t t 27882s&@abs_srcdir@&$ac_abs_srcdir&;t t 27883s&@top_srcdir@&$ac_top_srcdir&;t t 27884s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 27885s&@builddir@&$ac_builddir&;t t 27886s&@abs_builddir@&$ac_abs_builddir&;t t 27887s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 27888s&@INSTALL@&$ac_INSTALL&;t t 27889s&@MKDIR_P@&$ac_MKDIR_P&;t t 27890$ac_datarootdir_hack 27891" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 27892 27893test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 27894 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 27895 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 27896 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 27897which seems to be undefined. Please make sure it is defined." >&5 27898echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 27899which seems to be undefined. Please make sure it is defined." >&2;} 27900 27901 rm -f "$tmp/stdin" 27902 case $ac_file in 27903 -) cat "$tmp/out"; rm -f "$tmp/out";; 27904 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 27905 esac 27906 ;; 27907 :H) 27908 # 27909 # CONFIG_HEADER 27910 # 27911_ACEOF 27912 27913# Transform confdefs.h into a sed script `conftest.defines', that 27914# substitutes the proper values into config.h.in to produce config.h. 27915rm -f conftest.defines conftest.tail 27916# First, append a space to every undef/define line, to ease matching. 27917echo 's/$/ /' >conftest.defines 27918# Then, protect against being on the right side of a sed subst, or in 27919# an unquoted here document, in config.status. If some macros were 27920# called several times there might be several #defines for the same 27921# symbol, which is useless. But do not sort them, since the last 27922# AC_DEFINE must be honored. 27923ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 27924# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 27925# NAME is the cpp macro being defined, VALUE is the value it is being given. 27926# PARAMS is the parameter list in the macro definition--in most cases, it's 27927# just an empty string. 27928ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 27929ac_dB='\\)[ (].*,\\1define\\2' 27930ac_dC=' ' 27931ac_dD=' ,' 27932 27933uniq confdefs.h | 27934 sed -n ' 27935 t rset 27936 :rset 27937 s/^[ ]*#[ ]*define[ ][ ]*// 27938 t ok 27939 d 27940 :ok 27941 s/[\\&,]/\\&/g 27942 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 27943 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 27944 ' >>conftest.defines 27945 27946# Remove the space that was appended to ease matching. 27947# Then replace #undef with comments. This is necessary, for 27948# example, in the case of _POSIX_SOURCE, which is predefined and required 27949# on some systems where configure will not decide to define it. 27950# (The regexp can be short, since the line contains either #define or #undef.) 27951echo 's/ $// 27952s,^[ #]*u.*,/* & */,' >>conftest.defines 27953 27954# Break up conftest.defines: 27955ac_max_sed_lines=50 27956 27957# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 27958# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 27959# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 27960# et cetera. 27961ac_in='$ac_file_inputs' 27962ac_out='"$tmp/out1"' 27963ac_nxt='"$tmp/out2"' 27964 27965while : 27966do 27967 # Write a here document: 27968 cat >>$CONFIG_STATUS <<_ACEOF 27969 # First, check the format of the line: 27970 cat >"\$tmp/defines.sed" <<\\CEOF 27971/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 27972/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 27973b 27974:def 27975_ACEOF 27976 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 27977 echo 'CEOF 27978 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 27979 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 27980 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 27981 grep . conftest.tail >/dev/null || break 27982 rm -f conftest.defines 27983 mv conftest.tail conftest.defines 27984done 27985rm -f conftest.defines conftest.tail 27986 27987echo "ac_result=$ac_in" >>$CONFIG_STATUS 27988cat >>$CONFIG_STATUS <<\_ACEOF 27989 if test x"$ac_file" != x-; then 27990 echo "/* $configure_input */" >"$tmp/config.h" 27991 cat "$ac_result" >>"$tmp/config.h" 27992 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 27993 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 27994echo "$as_me: $ac_file is unchanged" >&6;} 27995 else 27996 rm -f $ac_file 27997 mv "$tmp/config.h" $ac_file 27998 fi 27999 else 28000 echo "/* $configure_input */" 28001 cat "$ac_result" 28002 fi 28003 rm -f "$tmp/out12" 28004# Compute $ac_file's index in $config_headers. 28005_am_arg=$ac_file 28006_am_stamp_count=1 28007for _am_header in $config_headers :; do 28008 case $_am_header in 28009 $_am_arg | $_am_arg:* ) 28010 break ;; 28011 * ) 28012 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 28013 esac 28014done 28015echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 28016$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28017 X"$_am_arg" : 'X\(//\)[^/]' \| \ 28018 X"$_am_arg" : 'X\(//\)$' \| \ 28019 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 28020echo X"$_am_arg" | 28021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 28022 s//\1/ 28023 q 28024 } 28025 /^X\(\/\/\)[^/].*/{ 28026 s//\1/ 28027 q 28028 } 28029 /^X\(\/\/\)$/{ 28030 s//\1/ 28031 q 28032 } 28033 /^X\(\/\).*/{ 28034 s//\1/ 28035 q 28036 } 28037 s/.*/./; q'`/stamp-h$_am_stamp_count 28038 ;; 28039 28040 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 28041echo "$as_me: executing $ac_file commands" >&6;} 28042 ;; 28043 esac 28044 28045 28046 case $ac_file$ac_mode in 28047 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 28048 # Strip MF so we end up with the name of the file. 28049 mf=`echo "$mf" | sed -e 's/:.*$//'` 28050 # Check whether this is an Automake generated Makefile or not. 28051 # We used to match only the files named `Makefile.in', but 28052 # some people rename them; so instead we look at the file content. 28053 # Grep'ing the first line is not enough: some people post-process 28054 # each Makefile.in and add a new line on top of each file to say so. 28055 # Grep'ing the whole file is not good either: AIX grep has a line 28056 # limit of 2048, but all sed's we know have understand at least 4000. 28057 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 28058 dirpart=`$as_dirname -- "$mf" || 28059$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28060 X"$mf" : 'X\(//\)[^/]' \| \ 28061 X"$mf" : 'X\(//\)$' \| \ 28062 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 28063echo X"$mf" | 28064 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 28065 s//\1/ 28066 q 28067 } 28068 /^X\(\/\/\)[^/].*/{ 28069 s//\1/ 28070 q 28071 } 28072 /^X\(\/\/\)$/{ 28073 s//\1/ 28074 q 28075 } 28076 /^X\(\/\).*/{ 28077 s//\1/ 28078 q 28079 } 28080 s/.*/./; q'` 28081 else 28082 continue 28083 fi 28084 # Extract the definition of DEPDIR, am__include, and am__quote 28085 # from the Makefile without running `make'. 28086 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 28087 test -z "$DEPDIR" && continue 28088 am__include=`sed -n 's/^am__include = //p' < "$mf"` 28089 test -z "am__include" && continue 28090 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 28091 # When using ansi2knr, U may be empty or an underscore; expand it 28092 U=`sed -n 's/^U = //p' < "$mf"` 28093 # Find all dependency output files, they are included files with 28094 # $(DEPDIR) in their names. We invoke sed twice because it is the 28095 # simplest approach to changing $(DEPDIR) to its actual value in the 28096 # expansion. 28097 for file in `sed -n " 28098 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 28099 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 28100 # Make sure the directory exists. 28101 test -f "$dirpart/$file" && continue 28102 fdir=`$as_dirname -- "$file" || 28103$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28104 X"$file" : 'X\(//\)[^/]' \| \ 28105 X"$file" : 'X\(//\)$' \| \ 28106 X"$file" : 'X\(/\)' \| . 2>/dev/null || 28107echo X"$file" | 28108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 28109 s//\1/ 28110 q 28111 } 28112 /^X\(\/\/\)[^/].*/{ 28113 s//\1/ 28114 q 28115 } 28116 /^X\(\/\/\)$/{ 28117 s//\1/ 28118 q 28119 } 28120 /^X\(\/\).*/{ 28121 s//\1/ 28122 q 28123 } 28124 s/.*/./; q'` 28125 { as_dir=$dirpart/$fdir 28126 case $as_dir in #( 28127 -*) as_dir=./$as_dir;; 28128 esac 28129 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 28130 as_dirs= 28131 while :; do 28132 case $as_dir in #( 28133 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 28134 *) as_qdir=$as_dir;; 28135 esac 28136 as_dirs="'$as_qdir' $as_dirs" 28137 as_dir=`$as_dirname -- "$as_dir" || 28138$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28139 X"$as_dir" : 'X\(//\)[^/]' \| \ 28140 X"$as_dir" : 'X\(//\)$' \| \ 28141 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 28142echo X"$as_dir" | 28143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 28144 s//\1/ 28145 q 28146 } 28147 /^X\(\/\/\)[^/].*/{ 28148 s//\1/ 28149 q 28150 } 28151 /^X\(\/\/\)$/{ 28152 s//\1/ 28153 q 28154 } 28155 /^X\(\/\).*/{ 28156 s//\1/ 28157 q 28158 } 28159 s/.*/./; q'` 28160 test -d "$as_dir" && break 28161 done 28162 test -z "$as_dirs" || eval "mkdir $as_dirs" 28163 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 28164echo "$as_me: error: cannot create directory $as_dir" >&2;} 28165 { (exit 1); exit 1; }; }; } 28166 # echo "creating $dirpart/$file" 28167 echo '# dummy' > "$dirpart/$file" 28168 done 28169done 28170 ;; 28171 28172 esac 28173done # for ac_tag 28174 28175 28176{ (exit 0); exit 0; } 28177_ACEOF 28178chmod +x $CONFIG_STATUS 28179ac_clean_files=$ac_clean_files_save 28180 28181 28182# configure is writing to config.log, and then calls config.status. 28183# config.status does its own redirection, appending to config.log. 28184# Unfortunately, on DOS this fails, as config.log is still kept open 28185# by configure, so config.status won't be able to write to it; its 28186# output is simply discarded. So we exec the FD to /dev/null, 28187# effectively closing config.log, so it can be properly (re)opened and 28188# appended to by config.status. When coming back to configure, we 28189# need to make the FD available again. 28190if test "$no_create" != yes; then 28191 ac_cs_success=: 28192 ac_config_status_args= 28193 test "$silent" = yes && 28194 ac_config_status_args="$ac_config_status_args --quiet" 28195 exec 5>/dev/null 28196 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 28197 exec 5>>config.log 28198 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 28199 # would make configure fail if this is the last instruction. 28200 $ac_cs_success || { (exit 1); exit 1; } 28201fi 28202 28203 28204ln -sf ../config.h faad2/config.h 28205ln -sf ../config.h aacgain/config.h 28206ln -sf config.h mpeg4ip_config.h 28207