1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.60 for PEAK Library 0.1.2. 4# 5# Report bugs to <mbuna@bugged.org>. 6# 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## --------------------- ## 12## M4sh Initialization. ## 13## --------------------- ## 14 15# Be Bourne compatible 16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 17 emulate sh 18 NULLCMD=: 19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20 # is contrary to our usage. Disable this feature. 21 alias -g '${1+"$@"}'='"$@"' 22 setopt NO_GLOB_SUBST 23else 24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 25fi 26BIN_SH=xpg4; export BIN_SH # for Tru64 27DUALCASE=1; export DUALCASE # for MKS sh 28 29 30# PATH needs CR 31# Avoid depending upon Character Ranges. 32as_cr_letters='abcdefghijklmnopqrstuvwxyz' 33as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 34as_cr_Letters=$as_cr_letters$as_cr_LETTERS 35as_cr_digits='0123456789' 36as_cr_alnum=$as_cr_Letters$as_cr_digits 37 38# The user is always right. 39if test "${PATH_SEPARATOR+set}" != set; then 40 echo "#! /bin/sh" >conf$$.sh 41 echo "exit 0" >>conf$$.sh 42 chmod +x conf$$.sh 43 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 44 PATH_SEPARATOR=';' 45 else 46 PATH_SEPARATOR=: 47 fi 48 rm -f conf$$.sh 49fi 50 51# Support unset when possible. 52if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 53 as_unset=unset 54else 55 as_unset=false 56fi 57 58 59# IFS 60# We need space, tab and new line, in precisely that order. Quoting is 61# there to prevent editors from complaining about space-tab. 62# (If _AS_PATH_WALK were called with IFS unset, it would disable word 63# splitting by setting IFS to empty value.) 64as_nl=' 65' 66IFS=" "" $as_nl" 67 68# Find who we are. Look in the path if we contain no directory separator. 69case $0 in 70 *[\\/]* ) as_myself=$0 ;; 71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 72for as_dir in $PATH 73do 74 IFS=$as_save_IFS 75 test -z "$as_dir" && as_dir=. 76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 77done 78IFS=$as_save_IFS 79 80 ;; 81esac 82# We did not find ourselves, most probably we were run as `sh COMMAND' 83# in which case we are not to be found in the path. 84if test "x$as_myself" = x; then 85 as_myself=$0 86fi 87if test ! -f "$as_myself"; then 88 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 89 { (exit 1); exit 1; } 90fi 91 92# Work around bugs in pre-3.0 UWIN ksh. 93for as_var in ENV MAIL MAILPATH 94do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 95done 96PS1='$ ' 97PS2='> ' 98PS4='+ ' 99 100# NLS nuisances. 101for as_var in \ 102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 104 LC_TELEPHONE LC_TIME 105do 106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 107 eval $as_var=C; export $as_var 108 else 109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 110 fi 111done 112 113# Required to use basename. 114if expr a : '\(a\)' >/dev/null 2>&1 && 115 test "X`expr 00001 : '.*\(...\)'`" = X001; then 116 as_expr=expr 117else 118 as_expr=false 119fi 120 121if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 122 as_basename=basename 123else 124 as_basename=false 125fi 126 127 128# Name of the executable. 129as_me=`$as_basename -- "$0" || 130$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 131 X"$0" : 'X\(//\)$' \| \ 132 X"$0" : 'X\(/\)' \| . 2>/dev/null || 133echo X/"$0" | 134 sed '/^.*\/\([^/][^/]*\)\/*$/{ 135 s//\1/ 136 q 137 } 138 /^X\/\(\/\/\)$/{ 139 s//\1/ 140 q 141 } 142 /^X\/\(\/\).*/{ 143 s//\1/ 144 q 145 } 146 s/.*/./; q'` 147 148# CDPATH. 149$as_unset CDPATH 150 151 152if test "x$CONFIG_SHELL" = x; then 153 if (eval ":") 2>/dev/null; then 154 as_have_required=yes 155else 156 as_have_required=no 157fi 158 159 if test $as_have_required = yes && (eval ": 160(as_func_return () { 161 (exit \$1) 162} 163as_func_success () { 164 as_func_return 0 165} 166as_func_failure () { 167 as_func_return 1 168} 169as_func_ret_success () { 170 return 0 171} 172as_func_ret_failure () { 173 return 1 174} 175 176exitcode=0 177if as_func_success; then 178 : 179else 180 exitcode=1 181 echo as_func_success failed. 182fi 183 184if as_func_failure; then 185 exitcode=1 186 echo as_func_failure succeeded. 187fi 188 189if as_func_ret_success; then 190 : 191else 192 exitcode=1 193 echo as_func_ret_success failed. 194fi 195 196if as_func_ret_failure; then 197 exitcode=1 198 echo as_func_ret_failure succeeded. 199fi 200 201if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 202 : 203else 204 exitcode=1 205 echo positional parameters were not saved. 206fi 207 208test \$exitcode = 0) || { (exit 1); exit 1; } 209 210( 211 as_lineno_1=\$LINENO 212 as_lineno_2=\$LINENO 213 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 214 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 215") 2> /dev/null; then 216 : 217else 218 as_candidate_shells= 219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 220for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 case $as_dir in 225 /*) 226 for as_base in sh bash ksh sh5; do 227 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 228 done;; 229 esac 230done 231IFS=$as_save_IFS 232 233 234 for as_shell in $as_candidate_shells $SHELL; do 235 # Try only shells that exist, to save several forks. 236 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 237 { ("$as_shell") 2> /dev/null <<\_ASEOF 238# Be Bourne compatible 239if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 240 emulate sh 241 NULLCMD=: 242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 243 # is contrary to our usage. Disable this feature. 244 alias -g '${1+"$@"}'='"$@"' 245 setopt NO_GLOB_SUBST 246else 247 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 248fi 249BIN_SH=xpg4; export BIN_SH # for Tru64 250DUALCASE=1; export DUALCASE # for MKS sh 251 252: 253_ASEOF 254}; then 255 CONFIG_SHELL=$as_shell 256 as_have_required=yes 257 if { "$as_shell" 2> /dev/null <<\_ASEOF 258# Be Bourne compatible 259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 260 emulate sh 261 NULLCMD=: 262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 263 # is contrary to our usage. Disable this feature. 264 alias -g '${1+"$@"}'='"$@"' 265 setopt NO_GLOB_SUBST 266else 267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 268fi 269BIN_SH=xpg4; export BIN_SH # for Tru64 270DUALCASE=1; export DUALCASE # for MKS sh 271 272: 273(as_func_return () { 274 (exit $1) 275} 276as_func_success () { 277 as_func_return 0 278} 279as_func_failure () { 280 as_func_return 1 281} 282as_func_ret_success () { 283 return 0 284} 285as_func_ret_failure () { 286 return 1 287} 288 289exitcode=0 290if as_func_success; then 291 : 292else 293 exitcode=1 294 echo as_func_success failed. 295fi 296 297if as_func_failure; then 298 exitcode=1 299 echo as_func_failure succeeded. 300fi 301 302if as_func_ret_success; then 303 : 304else 305 exitcode=1 306 echo as_func_ret_success failed. 307fi 308 309if as_func_ret_failure; then 310 exitcode=1 311 echo as_func_ret_failure succeeded. 312fi 313 314if ( set x; as_func_ret_success y && test x = "$1" ); then 315 : 316else 317 exitcode=1 318 echo positional parameters were not saved. 319fi 320 321test $exitcode = 0) || { (exit 1); exit 1; } 322 323( 324 as_lineno_1=$LINENO 325 as_lineno_2=$LINENO 326 test "x$as_lineno_1" != "x$as_lineno_2" && 327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 328 329_ASEOF 330}; then 331 break 332fi 333 334fi 335 336 done 337 338 if test "x$CONFIG_SHELL" != x; then 339 for as_var in BASH_ENV ENV 340 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 341 done 342 export CONFIG_SHELL 343 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 344fi 345 346 347 if test $as_have_required = no; then 348 echo This script requires a shell more modern than all the 349 echo shells that I found on your system. Please install a 350 echo modern shell, or manually run the script under such a 351 echo shell if you do have one. 352 { (exit 1); exit 1; } 353fi 354 355 356fi 357 358fi 359 360 361 362(eval "as_func_return () { 363 (exit \$1) 364} 365as_func_success () { 366 as_func_return 0 367} 368as_func_failure () { 369 as_func_return 1 370} 371as_func_ret_success () { 372 return 0 373} 374as_func_ret_failure () { 375 return 1 376} 377 378exitcode=0 379if as_func_success; then 380 : 381else 382 exitcode=1 383 echo as_func_success failed. 384fi 385 386if as_func_failure; then 387 exitcode=1 388 echo as_func_failure succeeded. 389fi 390 391if as_func_ret_success; then 392 : 393else 394 exitcode=1 395 echo as_func_ret_success failed. 396fi 397 398if as_func_ret_failure; then 399 exitcode=1 400 echo as_func_ret_failure succeeded. 401fi 402 403if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 404 : 405else 406 exitcode=1 407 echo positional parameters were not saved. 408fi 409 410test \$exitcode = 0") || { 411 echo No shell found that supports shell functions. 412 echo Please tell autoconf@gnu.org about your system, 413 echo including any error possibly output before this 414 echo message 415} 416 417 418 419 as_lineno_1=$LINENO 420 as_lineno_2=$LINENO 421 test "x$as_lineno_1" != "x$as_lineno_2" && 422 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 423 424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 425 # uniformly replaced by the line number. The first 'sed' inserts a 426 # line-number line after each line using $LINENO; the second 'sed' 427 # does the real work. The second script uses 'N' to pair each 428 # line-number line with the line containing $LINENO, and appends 429 # trailing '-' during substitution so that $LINENO is not a special 430 # case at line end. 431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 432 # scripts with optimization help from Paolo Bonzini. Blame Lee 433 # E. McMahon (1931-1989) for sed's syntax. :-) 434 sed -n ' 435 p 436 /[$]LINENO/= 437 ' <$as_myself | 438 sed ' 439 s/[$]LINENO.*/&-/ 440 t lineno 441 b 442 :lineno 443 N 444 :loop 445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 446 t loop 447 s/-\n.*// 448 ' >$as_me.lineno && 449 chmod +x "$as_me.lineno" || 450 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 451 { (exit 1); exit 1; }; } 452 453 # Don't try to exec as it changes $[0], causing all sort of problems 454 # (the dirname of $[0] is not the place where we might find the 455 # original and so on. Autoconf is especially sensitive to this). 456 . "./$as_me.lineno" 457 # Exit status is that of the last command. 458 exit 459} 460 461 462if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 463 as_dirname=dirname 464else 465 as_dirname=false 466fi 467 468ECHO_C= ECHO_N= ECHO_T= 469case `echo -n x` in 470-n*) 471 case `echo 'x\c'` in 472 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 473 *) ECHO_C='\c';; 474 esac;; 475*) 476 ECHO_N='-n';; 477esac 478 479if expr a : '\(a\)' >/dev/null 2>&1 && 480 test "X`expr 00001 : '.*\(...\)'`" = X001; then 481 as_expr=expr 482else 483 as_expr=false 484fi 485 486rm -f conf$$ conf$$.exe conf$$.file 487if test -d conf$$.dir; then 488 rm -f conf$$.dir/conf$$.file 489else 490 rm -f conf$$.dir 491 mkdir conf$$.dir 492fi 493echo >conf$$.file 494if ln -s conf$$.file conf$$ 2>/dev/null; then 495 as_ln_s='ln -s' 496 # ... but there are two gotchas: 497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 499 # In both cases, we have to default to `cp -p'. 500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 501 as_ln_s='cp -p' 502elif ln conf$$.file conf$$ 2>/dev/null; then 503 as_ln_s=ln 504else 505 as_ln_s='cp -p' 506fi 507rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 508rmdir conf$$.dir 2>/dev/null 509 510if mkdir -p . 2>/dev/null; then 511 as_mkdir_p=: 512else 513 test -d ./-p && rmdir ./-p 514 as_mkdir_p=false 515fi 516 517# Find out whether ``test -x'' works. Don't use a zero-byte file, as 518# systems may use methods other than mode bits to determine executability. 519cat >conf$$.file <<_ASEOF 520#! /bin/sh 521exit 0 522_ASEOF 523chmod +x conf$$.file 524if test -x conf$$.file >/dev/null 2>&1; then 525 as_executable_p="test -x" 526else 527 as_executable_p=: 528fi 529rm -f conf$$.file 530 531# Sed expression to map a string onto a valid CPP name. 532as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 533 534# Sed expression to map a string onto a valid variable name. 535as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 536 537 538 539 540# Check that we are running under the correct shell. 541SHELL=${CONFIG_SHELL-/bin/sh} 542 543case X$ECHO in 544X*--fallback-echo) 545 # Remove one level of quotation (which was required for Make). 546 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 547 ;; 548esac 549 550echo=${ECHO-echo} 551if test "X$1" = X--no-reexec; then 552 # Discard the --no-reexec flag, and continue. 553 shift 554elif test "X$1" = X--fallback-echo; then 555 # Avoid inline document here, it may be left over 556 : 557elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 558 # Yippee, $echo works! 559 : 560else 561 # Restart under the correct shell. 562 exec $SHELL "$0" --no-reexec ${1+"$@"} 563fi 564 565if test "X$1" = X--fallback-echo; then 566 # used as fallback echo 567 shift 568 cat <<EOF 569$* 570EOF 571 exit 0 572fi 573 574# The HP-UX ksh and POSIX shell print the target directory to stdout 575# if CDPATH is set. 576(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 577 578if test -z "$ECHO"; then 579if test "X${echo_test_string+set}" != Xset; then 580# find a string as large as possible, as long as the shell can cope with it 581 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 582 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 583 if (echo_test_string=`eval $cmd`) 2>/dev/null && 584 echo_test_string=`eval $cmd` && 585 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 586 then 587 break 588 fi 589 done 590fi 591 592if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 593 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 594 test "X$echo_testing_string" = "X$echo_test_string"; then 595 : 596else 597 # The Solaris, AIX, and Digital Unix default echo programs unquote 598 # backslashes. This makes it impossible to quote backslashes using 599 # echo "$something" | sed 's/\\/\\\\/g' 600 # 601 # So, first we look for a working echo in the user's PATH. 602 603 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 604 for dir in $PATH /usr/ucb; do 605 IFS="$lt_save_ifs" 606 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 607 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 608 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 609 test "X$echo_testing_string" = "X$echo_test_string"; then 610 echo="$dir/echo" 611 break 612 fi 613 done 614 IFS="$lt_save_ifs" 615 616 if test "X$echo" = Xecho; then 617 # We didn't find a better echo, so look for alternatives. 618 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 619 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 620 test "X$echo_testing_string" = "X$echo_test_string"; then 621 # This shell has a builtin print -r that does the trick. 622 echo='print -r' 623 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 624 test "X$CONFIG_SHELL" != X/bin/ksh; then 625 # If we have ksh, try running configure again with it. 626 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 627 export ORIGINAL_CONFIG_SHELL 628 CONFIG_SHELL=/bin/ksh 629 export CONFIG_SHELL 630 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 631 else 632 # Try using printf. 633 echo='printf %s\n' 634 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 635 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 636 test "X$echo_testing_string" = "X$echo_test_string"; then 637 # Cool, printf works 638 : 639 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 640 test "X$echo_testing_string" = 'X\t' && 641 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 642 test "X$echo_testing_string" = "X$echo_test_string"; then 643 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 644 export CONFIG_SHELL 645 SHELL="$CONFIG_SHELL" 646 export SHELL 647 echo="$CONFIG_SHELL $0 --fallback-echo" 648 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 649 test "X$echo_testing_string" = 'X\t' && 650 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 651 test "X$echo_testing_string" = "X$echo_test_string"; then 652 echo="$CONFIG_SHELL $0 --fallback-echo" 653 else 654 # maybe with a smaller string... 655 prev=: 656 657 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 658 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 659 then 660 break 661 fi 662 prev="$cmd" 663 done 664 665 if test "$prev" != 'sed 50q "$0"'; then 666 echo_test_string=`eval $prev` 667 export echo_test_string 668 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 669 else 670 # Oops. We lost completely, so just stick with echo. 671 echo=echo 672 fi 673 fi 674 fi 675 fi 676fi 677fi 678 679# Copy echo and quote the copy suitably for passing to libtool from 680# the Makefile, instead of quoting the original, which is used later. 681ECHO=$echo 682if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 683 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 684fi 685 686 687 688 689tagnames=${tagnames+${tagnames},}CXX 690 691tagnames=${tagnames+${tagnames},}F77 692 693exec 7<&0 </dev/null 6>&1 694 695# Name of the host. 696# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 697# so uname gets run too. 698ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 699 700# 701# Initializations. 702# 703ac_default_prefix=/usr/local 704ac_clean_files= 705ac_config_libobj_dir=. 706LIBOBJS= 707cross_compiling=no 708subdirs= 709MFLAGS= 710MAKEFLAGS= 711SHELL=${CONFIG_SHELL-/bin/sh} 712 713# Identity of this package. 714PACKAGE_NAME='PEAK Library' 715PACKAGE_TARNAME='libpeak' 716PACKAGE_VERSION='0.1.2' 717PACKAGE_STRING='PEAK Library 0.1.2' 718PACKAGE_BUGREPORT='mbuna@bugged.org' 719 720ac_unique_file="peak/peak.h" 721# Factoring default headers for most tests. 722ac_includes_default="\ 723#include <stdio.h> 724#if HAVE_SYS_TYPES_H 725# include <sys/types.h> 726#endif 727#if HAVE_SYS_STAT_H 728# include <sys/stat.h> 729#endif 730#if STDC_HEADERS 731# include <stdlib.h> 732# include <stddef.h> 733#else 734# if HAVE_STDLIB_H 735# include <stdlib.h> 736# endif 737#endif 738#if HAVE_STRING_H 739# if !STDC_HEADERS && HAVE_MEMORY_H 740# include <memory.h> 741# endif 742# include <string.h> 743#endif 744#if HAVE_STRINGS_H 745# include <strings.h> 746#endif 747#if HAVE_INTTYPES_H 748# include <inttypes.h> 749#endif 750#if HAVE_STDINT_H 751# include <stdint.h> 752#endif 753#if HAVE_UNISTD_H 754# include <unistd.h> 755#endif" 756 757ac_subst_vars='SHELL 758PATH_SEPARATOR 759PACKAGE_NAME 760PACKAGE_TARNAME 761PACKAGE_VERSION 762PACKAGE_STRING 763PACKAGE_BUGREPORT 764exec_prefix 765prefix 766program_transform_name 767bindir 768sbindir 769libexecdir 770datarootdir 771datadir 772sysconfdir 773sharedstatedir 774localstatedir 775includedir 776oldincludedir 777docdir 778infodir 779htmldir 780dvidir 781pdfdir 782psdir 783libdir 784localedir 785mandir 786DEFS 787ECHO_C 788ECHO_N 789ECHO_T 790LIBS 791build_alias 792host_alias 793target_alias 794build 795build_cpu 796build_vendor 797build_os 798host 799host_cpu 800host_vendor 801host_os 802INSTALL_PROGRAM 803INSTALL_SCRIPT 804INSTALL_DATA 805CYGPATH_W 806PACKAGE 807VERSION 808ACLOCAL 809AUTOCONF 810AUTOMAKE 811AUTOHEADER 812MAKEINFO 813install_sh 814STRIP 815INSTALL_STRIP_PROGRAM 816mkdir_p 817AWK 818SET_MAKE 819am__leading_dot 820AMTAR 821am__tar 822am__untar 823MAINTAINER_MODE_TRUE 824MAINTAINER_MODE_FALSE 825MAINT 826CC 827default_includes 828includes 829LN_S 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 845GREP 846EGREP 847ECHO 848AR 849RANLIB 850CPP 851CXX 852CXXFLAGS 853ac_ct_CXX 854CXXDEPMODE 855am__fastdepCXX_TRUE 856am__fastdepCXX_FALSE 857CXXCPP 858F77 859FFLAGS 860ac_ct_F77 861LIBTOOL 862PTHREAD_LIBS 863PTHREAD_CFLAGS 864PTHREAD_CC 865ALLOCA 866LIBOBJS 867ATOMIC_HEADERS 868target 869peak_cflags 870peak_libs 871PEAK_VERSION 872PEAK_CONFIG 873LTLIBOBJS' 874ac_subst_files='atomic_header' 875 ac_precious_vars='build_alias 876host_alias 877target_alias 878CC 879CFLAGS 880LDFLAGS 881CPPFLAGS 882CPP 883CXX 884CXXFLAGS 885CCC 886CXXCPP 887F77 888FFLAGS' 889 890 891# Initialize some variables set by options. 892ac_init_help= 893ac_init_version=false 894# The variables have the same names as the options, with 895# dashes changed to underlines. 896cache_file=/dev/null 897exec_prefix=NONE 898no_create= 899no_recursion= 900prefix=NONE 901program_prefix=NONE 902program_suffix=NONE 903program_transform_name=s,x,x, 904silent= 905site= 906srcdir= 907verbose= 908x_includes=NONE 909x_libraries=NONE 910 911# Installation directory options. 912# These are left unexpanded so users can "make install exec_prefix=/foo" 913# and all the variables that are supposed to be based on exec_prefix 914# by default will actually change. 915# Use braces instead of parens because sh, perl, etc. also accept them. 916# (The list follows the same order as the GNU Coding Standards.) 917bindir='${exec_prefix}/bin' 918sbindir='${exec_prefix}/sbin' 919libexecdir='${exec_prefix}/libexec' 920datarootdir='${prefix}/share' 921datadir='${datarootdir}' 922sysconfdir='${prefix}/etc' 923sharedstatedir='${prefix}/com' 924localstatedir='${prefix}/var' 925includedir='${prefix}/include' 926oldincludedir='/usr/include' 927docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 928infodir='${datarootdir}/info' 929htmldir='${docdir}' 930dvidir='${docdir}' 931pdfdir='${docdir}' 932psdir='${docdir}' 933libdir='${exec_prefix}/lib' 934localedir='${datarootdir}/locale' 935mandir='${datarootdir}/man' 936 937ac_prev= 938ac_dashdash= 939for ac_option 940do 941 # If the previous option needs an argument, assign it. 942 if test -n "$ac_prev"; then 943 eval $ac_prev=\$ac_option 944 ac_prev= 945 continue 946 fi 947 948 case $ac_option in 949 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 950 *) ac_optarg=yes ;; 951 esac 952 953 # Accept the important Cygnus configure options, so we can diagnose typos. 954 955 case $ac_dashdash$ac_option in 956 --) 957 ac_dashdash=yes ;; 958 959 -bindir | --bindir | --bindi | --bind | --bin | --bi) 960 ac_prev=bindir ;; 961 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 962 bindir=$ac_optarg ;; 963 964 -build | --build | --buil | --bui | --bu) 965 ac_prev=build_alias ;; 966 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 967 build_alias=$ac_optarg ;; 968 969 -cache-file | --cache-file | --cache-fil | --cache-fi \ 970 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 971 ac_prev=cache_file ;; 972 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 973 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 974 cache_file=$ac_optarg ;; 975 976 --config-cache | -C) 977 cache_file=config.cache ;; 978 979 -datadir | --datadir | --datadi | --datad) 980 ac_prev=datadir ;; 981 -datadir=* | --datadir=* | --datadi=* | --datad=*) 982 datadir=$ac_optarg ;; 983 984 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 985 | --dataroo | --dataro | --datar) 986 ac_prev=datarootdir ;; 987 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 988 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 989 datarootdir=$ac_optarg ;; 990 991 -disable-* | --disable-*) 992 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 993 # Reject names that are not valid shell variable names. 994 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 995 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 996 { (exit 1); exit 1; }; } 997 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 998 eval enable_$ac_feature=no ;; 999 1000 -docdir | --docdir | --docdi | --doc | --do) 1001 ac_prev=docdir ;; 1002 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1003 docdir=$ac_optarg ;; 1004 1005 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1006 ac_prev=dvidir ;; 1007 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1008 dvidir=$ac_optarg ;; 1009 1010 -enable-* | --enable-*) 1011 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1012 # Reject names that are not valid shell variable names. 1013 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 1014 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1015 { (exit 1); exit 1; }; } 1016 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 1017 eval enable_$ac_feature=\$ac_optarg ;; 1018 1019 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1020 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1021 | --exec | --exe | --ex) 1022 ac_prev=exec_prefix ;; 1023 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1024 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1025 | --exec=* | --exe=* | --ex=*) 1026 exec_prefix=$ac_optarg ;; 1027 1028 -gas | --gas | --ga | --g) 1029 # Obsolete; use --with-gas. 1030 with_gas=yes ;; 1031 1032 -help | --help | --hel | --he | -h) 1033 ac_init_help=long ;; 1034 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1035 ac_init_help=recursive ;; 1036 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1037 ac_init_help=short ;; 1038 1039 -host | --host | --hos | --ho) 1040 ac_prev=host_alias ;; 1041 -host=* | --host=* | --hos=* | --ho=*) 1042 host_alias=$ac_optarg ;; 1043 1044 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1045 ac_prev=htmldir ;; 1046 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1047 | --ht=*) 1048 htmldir=$ac_optarg ;; 1049 1050 -includedir | --includedir | --includedi | --included | --include \ 1051 | --includ | --inclu | --incl | --inc) 1052 ac_prev=includedir ;; 1053 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1054 | --includ=* | --inclu=* | --incl=* | --inc=*) 1055 includedir=$ac_optarg ;; 1056 1057 -infodir | --infodir | --infodi | --infod | --info | --inf) 1058 ac_prev=infodir ;; 1059 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1060 infodir=$ac_optarg ;; 1061 1062 -libdir | --libdir | --libdi | --libd) 1063 ac_prev=libdir ;; 1064 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1065 libdir=$ac_optarg ;; 1066 1067 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1068 | --libexe | --libex | --libe) 1069 ac_prev=libexecdir ;; 1070 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1071 | --libexe=* | --libex=* | --libe=*) 1072 libexecdir=$ac_optarg ;; 1073 1074 -localedir | --localedir | --localedi | --localed | --locale) 1075 ac_prev=localedir ;; 1076 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1077 localedir=$ac_optarg ;; 1078 1079 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1080 | --localstate | --localstat | --localsta | --localst | --locals) 1081 ac_prev=localstatedir ;; 1082 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1083 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1084 localstatedir=$ac_optarg ;; 1085 1086 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1087 ac_prev=mandir ;; 1088 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1089 mandir=$ac_optarg ;; 1090 1091 -nfp | --nfp | --nf) 1092 # Obsolete; use --without-fp. 1093 with_fp=no ;; 1094 1095 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1096 | --no-cr | --no-c | -n) 1097 no_create=yes ;; 1098 1099 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1100 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1101 no_recursion=yes ;; 1102 1103 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1104 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1105 | --oldin | --oldi | --old | --ol | --o) 1106 ac_prev=oldincludedir ;; 1107 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1108 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1109 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1110 oldincludedir=$ac_optarg ;; 1111 1112 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1113 ac_prev=prefix ;; 1114 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1115 prefix=$ac_optarg ;; 1116 1117 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1118 | --program-pre | --program-pr | --program-p) 1119 ac_prev=program_prefix ;; 1120 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1121 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1122 program_prefix=$ac_optarg ;; 1123 1124 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1125 | --program-suf | --program-su | --program-s) 1126 ac_prev=program_suffix ;; 1127 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1128 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1129 program_suffix=$ac_optarg ;; 1130 1131 -program-transform-name | --program-transform-name \ 1132 | --program-transform-nam | --program-transform-na \ 1133 | --program-transform-n | --program-transform- \ 1134 | --program-transform | --program-transfor \ 1135 | --program-transfo | --program-transf \ 1136 | --program-trans | --program-tran \ 1137 | --progr-tra | --program-tr | --program-t) 1138 ac_prev=program_transform_name ;; 1139 -program-transform-name=* | --program-transform-name=* \ 1140 | --program-transform-nam=* | --program-transform-na=* \ 1141 | --program-transform-n=* | --program-transform-=* \ 1142 | --program-transform=* | --program-transfor=* \ 1143 | --program-transfo=* | --program-transf=* \ 1144 | --program-trans=* | --program-tran=* \ 1145 | --progr-tra=* | --program-tr=* | --program-t=*) 1146 program_transform_name=$ac_optarg ;; 1147 1148 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1149 ac_prev=pdfdir ;; 1150 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1151 pdfdir=$ac_optarg ;; 1152 1153 -psdir | --psdir | --psdi | --psd | --ps) 1154 ac_prev=psdir ;; 1155 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1156 psdir=$ac_optarg ;; 1157 1158 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1159 | -silent | --silent | --silen | --sile | --sil) 1160 silent=yes ;; 1161 1162 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1163 ac_prev=sbindir ;; 1164 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1165 | --sbi=* | --sb=*) 1166 sbindir=$ac_optarg ;; 1167 1168 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1169 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1170 | --sharedst | --shareds | --shared | --share | --shar \ 1171 | --sha | --sh) 1172 ac_prev=sharedstatedir ;; 1173 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1174 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1175 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1176 | --sha=* | --sh=*) 1177 sharedstatedir=$ac_optarg ;; 1178 1179 -site | --site | --sit) 1180 ac_prev=site ;; 1181 -site=* | --site=* | --sit=*) 1182 site=$ac_optarg ;; 1183 1184 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1185 ac_prev=srcdir ;; 1186 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1187 srcdir=$ac_optarg ;; 1188 1189 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1190 | --syscon | --sysco | --sysc | --sys | --sy) 1191 ac_prev=sysconfdir ;; 1192 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1193 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1194 sysconfdir=$ac_optarg ;; 1195 1196 -target | --target | --targe | --targ | --tar | --ta | --t) 1197 ac_prev=target_alias ;; 1198 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1199 target_alias=$ac_optarg ;; 1200 1201 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1202 verbose=yes ;; 1203 1204 -version | --version | --versio | --versi | --vers | -V) 1205 ac_init_version=: ;; 1206 1207 -with-* | --with-*) 1208 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1209 # Reject names that are not valid shell variable names. 1210 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1211 { echo "$as_me: error: invalid package name: $ac_package" >&2 1212 { (exit 1); exit 1; }; } 1213 ac_package=`echo $ac_package| sed 's/-/_/g'` 1214 eval with_$ac_package=\$ac_optarg ;; 1215 1216 -without-* | --without-*) 1217 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1218 # Reject names that are not valid shell variable names. 1219 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1220 { echo "$as_me: error: invalid package name: $ac_package" >&2 1221 { (exit 1); exit 1; }; } 1222 ac_package=`echo $ac_package | sed 's/-/_/g'` 1223 eval with_$ac_package=no ;; 1224 1225 --x) 1226 # Obsolete; use --with-x. 1227 with_x=yes ;; 1228 1229 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1230 | --x-incl | --x-inc | --x-in | --x-i) 1231 ac_prev=x_includes ;; 1232 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1233 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1234 x_includes=$ac_optarg ;; 1235 1236 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1237 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1238 ac_prev=x_libraries ;; 1239 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1240 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1241 x_libraries=$ac_optarg ;; 1242 1243 -*) { echo "$as_me: error: unrecognized option: $ac_option 1244Try \`$0 --help' for more information." >&2 1245 { (exit 1); exit 1; }; } 1246 ;; 1247 1248 *=*) 1249 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1250 # Reject names that are not valid shell variable names. 1251 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1252 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1253 { (exit 1); exit 1; }; } 1254 eval $ac_envvar=\$ac_optarg 1255 export $ac_envvar ;; 1256 1257 *) 1258 # FIXME: should be removed in autoconf 3.0. 1259 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1260 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1261 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1262 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1263 ;; 1264 1265 esac 1266done 1267 1268if test -n "$ac_prev"; then 1269 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1270 { echo "$as_me: error: missing argument to $ac_option" >&2 1271 { (exit 1); exit 1; }; } 1272fi 1273 1274# Be sure to have absolute directory names. 1275for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1276 datadir sysconfdir sharedstatedir localstatedir includedir \ 1277 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1278 libdir localedir mandir 1279do 1280 eval ac_val=\$$ac_var 1281 case $ac_val in 1282 [\\/$]* | ?:[\\/]* ) continue;; 1283 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1284 esac 1285 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1286 { (exit 1); exit 1; }; } 1287done 1288 1289# There might be people who depend on the old broken behavior: `$host' 1290# used to hold the argument of --host etc. 1291# FIXME: To remove some day. 1292build=$build_alias 1293host=$host_alias 1294target=$target_alias 1295 1296# FIXME: To remove some day. 1297if test "x$host_alias" != x; then 1298 if test "x$build_alias" = x; then 1299 cross_compiling=maybe 1300 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1301 If a cross compiler is detected then cross compile mode will be used." >&2 1302 elif test "x$build_alias" != "x$host_alias"; then 1303 cross_compiling=yes 1304 fi 1305fi 1306 1307ac_tool_prefix= 1308test -n "$host_alias" && ac_tool_prefix=$host_alias- 1309 1310test "$silent" = yes && exec 6>/dev/null 1311 1312 1313ac_pwd=`pwd` && test -n "$ac_pwd" && 1314ac_ls_di=`ls -di .` && 1315ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1316 { echo "$as_me: error: Working directory cannot be determined" >&2 1317 { (exit 1); exit 1; }; } 1318test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1319 { echo "$as_me: error: pwd does not report name of working directory" >&2 1320 { (exit 1); exit 1; }; } 1321 1322 1323# Find the source files, if location was not specified. 1324if test -z "$srcdir"; then 1325 ac_srcdir_defaulted=yes 1326 # Try the directory containing this script, then the parent directory. 1327 ac_confdir=`$as_dirname -- "$0" || 1328$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1329 X"$0" : 'X\(//\)[^/]' \| \ 1330 X"$0" : 'X\(//\)$' \| \ 1331 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1332echo X"$0" | 1333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1334 s//\1/ 1335 q 1336 } 1337 /^X\(\/\/\)[^/].*/{ 1338 s//\1/ 1339 q 1340 } 1341 /^X\(\/\/\)$/{ 1342 s//\1/ 1343 q 1344 } 1345 /^X\(\/\).*/{ 1346 s//\1/ 1347 q 1348 } 1349 s/.*/./; q'` 1350 srcdir=$ac_confdir 1351 if test ! -r "$srcdir/$ac_unique_file"; then 1352 srcdir=.. 1353 fi 1354else 1355 ac_srcdir_defaulted=no 1356fi 1357if test ! -r "$srcdir/$ac_unique_file"; then 1358 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1359 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1360 { (exit 1); exit 1; }; } 1361fi 1362ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1363ac_abs_confdir=`( 1364 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1365 { (exit 1); exit 1; }; } 1366 pwd)` 1367# When building in place, set srcdir=. 1368if test "$ac_abs_confdir" = "$ac_pwd"; then 1369 srcdir=. 1370fi 1371# Remove unnecessary trailing slashes from srcdir. 1372# Double slashes in file names in object file debugging info 1373# mess up M-x gdb in Emacs. 1374case $srcdir in 1375*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1376esac 1377for ac_var in $ac_precious_vars; do 1378 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1379 eval ac_env_${ac_var}_value=\$${ac_var} 1380 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1381 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1382done 1383 1384# 1385# Report the --help message. 1386# 1387if test "$ac_init_help" = "long"; then 1388 # Omit some internal or obsolete options to make the list less imposing. 1389 # This message is too long to be a string in the A/UX 3.1 sh. 1390 cat <<_ACEOF 1391\`configure' configures PEAK Library 0.1.2 to adapt to many kinds of systems. 1392 1393Usage: $0 [OPTION]... [VAR=VALUE]... 1394 1395To assign environment variables (e.g., CC, CFLAGS...), specify them as 1396VAR=VALUE. See below for descriptions of some of the useful variables. 1397 1398Defaults for the options are specified in brackets. 1399 1400Configuration: 1401 -h, --help display this help and exit 1402 --help=short display options specific to this package 1403 --help=recursive display the short help of all the included packages 1404 -V, --version display version information and exit 1405 -q, --quiet, --silent do not print \`checking...' messages 1406 --cache-file=FILE cache test results in FILE [disabled] 1407 -C, --config-cache alias for \`--cache-file=config.cache' 1408 -n, --no-create do not create output files 1409 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1410 1411Installation directories: 1412 --prefix=PREFIX install architecture-independent files in PREFIX 1413 [$ac_default_prefix] 1414 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1415 [PREFIX] 1416 1417By default, \`make install' will install all the files in 1418\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1419an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1420for instance \`--prefix=\$HOME'. 1421 1422For better control, use the options below. 1423 1424Fine tuning of the installation directories: 1425 --bindir=DIR user executables [EPREFIX/bin] 1426 --sbindir=DIR system admin executables [EPREFIX/sbin] 1427 --libexecdir=DIR program executables [EPREFIX/libexec] 1428 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1429 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1430 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1431 --libdir=DIR object code libraries [EPREFIX/lib] 1432 --includedir=DIR C header files [PREFIX/include] 1433 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1434 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1435 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1436 --infodir=DIR info documentation [DATAROOTDIR/info] 1437 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1438 --mandir=DIR man documentation [DATAROOTDIR/man] 1439 --docdir=DIR documentation root [DATAROOTDIR/doc/libpeak] 1440 --htmldir=DIR html documentation [DOCDIR] 1441 --dvidir=DIR dvi documentation [DOCDIR] 1442 --pdfdir=DIR pdf documentation [DOCDIR] 1443 --psdir=DIR ps documentation [DOCDIR] 1444_ACEOF 1445 1446 cat <<\_ACEOF 1447 1448Program names: 1449 --program-prefix=PREFIX prepend PREFIX to installed program names 1450 --program-suffix=SUFFIX append SUFFIX to installed program names 1451 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1452 1453System types: 1454 --build=BUILD configure for building on BUILD [guessed] 1455 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1456_ACEOF 1457fi 1458 1459if test -n "$ac_init_help"; then 1460 case $ac_init_help in 1461 short | recursive ) echo "Configuration of PEAK Library 0.1.2:";; 1462 esac 1463 cat <<\_ACEOF 1464 1465Optional Features: 1466 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1467 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1468 --enable-maintainer-mode enable make rules and dependencies not useful 1469 (and sometimes confusing) to the casual installer 1470 --enable-shared[=PKGS] build shared libraries [default=yes] 1471 --enable-static[=PKGS] build static libraries [default=yes] 1472 --enable-fast-install[=PKGS] 1473 optimize for fast installation [default=yes] 1474 --disable-dependency-tracking speeds up one-time build 1475 --enable-dependency-tracking do not reject slow dependency extractors 1476 --disable-libtool-lock avoid locking (might break parallel builds) 1477 --enable-profile Enable profiling support (add -pg to CFLAGS) 1478 --enable-pedantic Enable pedantic warnings (add -pedantic to CFLAGS) 1479 --enable-uniprocessor-only Enable uniprocessor-only code optimization 1480 Warning: library binary no more SMP safe 1481 [default=no] 1482 1483Optional Packages: 1484 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1485 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1486 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1487 --with-pic try to use only PIC/non-PIC objects [default=use 1488 both] 1489 --with-tags[=TAGS] include additional configurations [automatic] 1490 --with-engine=ENGINE Force event engine module type [automatic] 1491 --with-default-maxfds=MAXFDS Default MAXFDS flavor number [default=256] 1492 --with-select-maxfds=MAXFDS Maximum number of fds the library can handle 1493 (make sense for select engine only) 1494 [default=FD_SETSIZE] 1495 1496Some influential environment variables: 1497 CC C compiler command 1498 CFLAGS C compiler flags 1499 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1500 nonstandard directory <lib dir> 1501 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1502 you have headers in a nonstandard directory <include dir> 1503 CPP C preprocessor 1504 CXX C++ compiler command 1505 CXXFLAGS C++ compiler flags 1506 CXXCPP C++ preprocessor 1507 F77 Fortran 77 compiler command 1508 FFLAGS Fortran 77 compiler flags 1509 1510Use these variables to override the choices made by `configure' or to help 1511it to find libraries and programs with nonstandard names/locations. 1512 1513Report bugs to <mbuna@bugged.org>. 1514_ACEOF 1515ac_status=$? 1516fi 1517 1518if test "$ac_init_help" = "recursive"; then 1519 # If there are subdirs, report their specific --help. 1520 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1521 test -d "$ac_dir" || continue 1522 ac_builddir=. 1523 1524case "$ac_dir" in 1525.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1526*) 1527 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1528 # A ".." for each directory in $ac_dir_suffix. 1529 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1530 case $ac_top_builddir_sub in 1531 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1532 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1533 esac ;; 1534esac 1535ac_abs_top_builddir=$ac_pwd 1536ac_abs_builddir=$ac_pwd$ac_dir_suffix 1537# for backward compatibility: 1538ac_top_builddir=$ac_top_build_prefix 1539 1540case $srcdir in 1541 .) # We are building in place. 1542 ac_srcdir=. 1543 ac_top_srcdir=$ac_top_builddir_sub 1544 ac_abs_top_srcdir=$ac_pwd ;; 1545 [\\/]* | ?:[\\/]* ) # Absolute name. 1546 ac_srcdir=$srcdir$ac_dir_suffix; 1547 ac_top_srcdir=$srcdir 1548 ac_abs_top_srcdir=$srcdir ;; 1549 *) # Relative name. 1550 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1551 ac_top_srcdir=$ac_top_build_prefix$srcdir 1552 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1553esac 1554ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1555 1556 cd "$ac_dir" || { ac_status=$?; continue; } 1557 # Check for guested configure. 1558 if test -f "$ac_srcdir/configure.gnu"; then 1559 echo && 1560 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1561 elif test -f "$ac_srcdir/configure"; then 1562 echo && 1563 $SHELL "$ac_srcdir/configure" --help=recursive 1564 else 1565 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1566 fi || ac_status=$? 1567 cd "$ac_pwd" || { ac_status=$?; break; } 1568 done 1569fi 1570 1571test -n "$ac_init_help" && exit $ac_status 1572if $ac_init_version; then 1573 cat <<\_ACEOF 1574PEAK Library configure 0.1.2 1575generated by GNU Autoconf 2.60 1576 1577Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 15782002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1579This configure script is free software; the Free Software Foundation 1580gives unlimited permission to copy, distribute and modify it. 1581_ACEOF 1582 exit 1583fi 1584cat >config.log <<_ACEOF 1585This file contains any messages produced by compilers while 1586running configure, to aid debugging if configure makes a mistake. 1587 1588It was created by PEAK Library $as_me 0.1.2, which was 1589generated by GNU Autoconf 2.60. Invocation command line was 1590 1591 $ $0 $@ 1592 1593_ACEOF 1594exec 5>>config.log 1595{ 1596cat <<_ASUNAME 1597## --------- ## 1598## Platform. ## 1599## --------- ## 1600 1601hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1602uname -m = `(uname -m) 2>/dev/null || echo unknown` 1603uname -r = `(uname -r) 2>/dev/null || echo unknown` 1604uname -s = `(uname -s) 2>/dev/null || echo unknown` 1605uname -v = `(uname -v) 2>/dev/null || echo unknown` 1606 1607/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1608/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1609 1610/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1611/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1612/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1613/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1614/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1615/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1616/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1617 1618_ASUNAME 1619 1620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1621for as_dir in $PATH 1622do 1623 IFS=$as_save_IFS 1624 test -z "$as_dir" && as_dir=. 1625 echo "PATH: $as_dir" 1626done 1627IFS=$as_save_IFS 1628 1629} >&5 1630 1631cat >&5 <<_ACEOF 1632 1633 1634## ----------- ## 1635## Core tests. ## 1636## ----------- ## 1637 1638_ACEOF 1639 1640 1641# Keep a trace of the command line. 1642# Strip out --no-create and --no-recursion so they do not pile up. 1643# Strip out --silent because we don't want to record it for future runs. 1644# Also quote any args containing shell meta-characters. 1645# Make two passes to allow for proper duplicate-argument suppression. 1646ac_configure_args= 1647ac_configure_args0= 1648ac_configure_args1= 1649ac_must_keep_next=false 1650for ac_pass in 1 2 1651do 1652 for ac_arg 1653 do 1654 case $ac_arg in 1655 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1656 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1657 | -silent | --silent | --silen | --sile | --sil) 1658 continue ;; 1659 *\'*) 1660 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1661 esac 1662 case $ac_pass in 1663 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1664 2) 1665 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1666 if test $ac_must_keep_next = true; then 1667 ac_must_keep_next=false # Got value, back to normal. 1668 else 1669 case $ac_arg in 1670 *=* | --config-cache | -C | -disable-* | --disable-* \ 1671 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1672 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1673 | -with-* | --with-* | -without-* | --without-* | --x) 1674 case "$ac_configure_args0 " in 1675 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1676 esac 1677 ;; 1678 -* ) ac_must_keep_next=true ;; 1679 esac 1680 fi 1681 ac_configure_args="$ac_configure_args '$ac_arg'" 1682 ;; 1683 esac 1684 done 1685done 1686$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1687$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1688 1689# When interrupted or exit'd, cleanup temporary files, and complete 1690# config.log. We remove comments because anyway the quotes in there 1691# would cause problems or look ugly. 1692# WARNING: Use '\'' to represent an apostrophe within the trap. 1693# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1694trap 'exit_status=$? 1695 # Save into config.log some information that might help in debugging. 1696 { 1697 echo 1698 1699 cat <<\_ASBOX 1700## ---------------- ## 1701## Cache variables. ## 1702## ---------------- ## 1703_ASBOX 1704 echo 1705 # The following way of writing the cache mishandles newlines in values, 1706( 1707 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1708 eval ac_val=\$$ac_var 1709 case $ac_val in #( 1710 *${as_nl}*) 1711 case $ac_var in #( 1712 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1713echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1714 esac 1715 case $ac_var in #( 1716 _ | IFS | as_nl) ;; #( 1717 *) $as_unset $ac_var ;; 1718 esac ;; 1719 esac 1720 done 1721 (set) 2>&1 | 1722 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1723 *${as_nl}ac_space=\ *) 1724 sed -n \ 1725 "s/'\''/'\''\\\\'\'''\''/g; 1726 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1727 ;; #( 1728 *) 1729 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1730 ;; 1731 esac | 1732 sort 1733) 1734 echo 1735 1736 cat <<\_ASBOX 1737## ----------------- ## 1738## Output variables. ## 1739## ----------------- ## 1740_ASBOX 1741 echo 1742 for ac_var in $ac_subst_vars 1743 do 1744 eval ac_val=\$$ac_var 1745 case $ac_val in 1746 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1747 esac 1748 echo "$ac_var='\''$ac_val'\''" 1749 done | sort 1750 echo 1751 1752 if test -n "$ac_subst_files"; then 1753 cat <<\_ASBOX 1754## ------------------- ## 1755## File substitutions. ## 1756## ------------------- ## 1757_ASBOX 1758 echo 1759 for ac_var in $ac_subst_files 1760 do 1761 eval ac_val=\$$ac_var 1762 case $ac_val in 1763 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1764 esac 1765 echo "$ac_var='\''$ac_val'\''" 1766 done | sort 1767 echo 1768 fi 1769 1770 if test -s confdefs.h; then 1771 cat <<\_ASBOX 1772## ----------- ## 1773## confdefs.h. ## 1774## ----------- ## 1775_ASBOX 1776 echo 1777 cat confdefs.h 1778 echo 1779 fi 1780 test "$ac_signal" != 0 && 1781 echo "$as_me: caught signal $ac_signal" 1782 echo "$as_me: exit $exit_status" 1783 } >&5 1784 rm -f core *.core core.conftest.* && 1785 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1786 exit $exit_status 1787' 0 1788for ac_signal in 1 2 13 15; do 1789 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1790done 1791ac_signal=0 1792 1793# confdefs.h avoids OS command line length limits that DEFS can exceed. 1794rm -f -r conftest* confdefs.h 1795 1796# Predefined preprocessor variables. 1797 1798cat >>confdefs.h <<_ACEOF 1799#define PACKAGE_NAME "$PACKAGE_NAME" 1800_ACEOF 1801 1802 1803cat >>confdefs.h <<_ACEOF 1804#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1805_ACEOF 1806 1807 1808cat >>confdefs.h <<_ACEOF 1809#define PACKAGE_VERSION "$PACKAGE_VERSION" 1810_ACEOF 1811 1812 1813cat >>confdefs.h <<_ACEOF 1814#define PACKAGE_STRING "$PACKAGE_STRING" 1815_ACEOF 1816 1817 1818cat >>confdefs.h <<_ACEOF 1819#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1820_ACEOF 1821 1822 1823# Let the site file select an alternate cache file if it wants to. 1824# Prefer explicitly selected file to automatically selected ones. 1825if test -n "$CONFIG_SITE"; then 1826 set x "$CONFIG_SITE" 1827elif test "x$prefix" != xNONE; then 1828 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1829else 1830 set x "$ac_default_prefix/share/config.site" \ 1831 "$ac_default_prefix/etc/config.site" 1832fi 1833shift 1834for ac_site_file 1835do 1836 if test -r "$ac_site_file"; then 1837 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1838echo "$as_me: loading site script $ac_site_file" >&6;} 1839 sed 's/^/| /' "$ac_site_file" >&5 1840 . "$ac_site_file" 1841 fi 1842done 1843 1844if test -r "$cache_file"; then 1845 # Some versions of bash will fail to source /dev/null (special 1846 # files actually), so we avoid doing that. 1847 if test -f "$cache_file"; then 1848 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1849echo "$as_me: loading cache $cache_file" >&6;} 1850 case $cache_file in 1851 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1852 *) . "./$cache_file";; 1853 esac 1854 fi 1855else 1856 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1857echo "$as_me: creating cache $cache_file" >&6;} 1858 >$cache_file 1859fi 1860 1861# Check that the precious variables saved in the cache have kept the same 1862# value. 1863ac_cache_corrupted=false 1864for ac_var in $ac_precious_vars; do 1865 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1866 eval ac_new_set=\$ac_env_${ac_var}_set 1867 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1868 eval ac_new_val=\$ac_env_${ac_var}_value 1869 case $ac_old_set,$ac_new_set in 1870 set,) 1871 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1872echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1873 ac_cache_corrupted=: ;; 1874 ,set) 1875 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1876echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1877 ac_cache_corrupted=: ;; 1878 ,);; 1879 *) 1880 if test "x$ac_old_val" != "x$ac_new_val"; then 1881 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1882echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1883 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1884echo "$as_me: former value: $ac_old_val" >&2;} 1885 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1886echo "$as_me: current value: $ac_new_val" >&2;} 1887 ac_cache_corrupted=: 1888 fi;; 1889 esac 1890 # Pass precious variables to config.status. 1891 if test "$ac_new_set" = set; then 1892 case $ac_new_val in 1893 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1894 *) ac_arg=$ac_var=$ac_new_val ;; 1895 esac 1896 case " $ac_configure_args " in 1897 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1898 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1899 esac 1900 fi 1901done 1902if $ac_cache_corrupted; then 1903 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1904echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1905 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1906echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1907 { (exit 1); exit 1; }; } 1908fi 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934ac_ext=c 1935ac_cpp='$CPP $CPPFLAGS' 1936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1938ac_compiler_gnu=$ac_cv_c_compiler_gnu 1939 1940 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# Make sure we can run config.sub. 1974$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 1975 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 1976echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 1977 { (exit 1); exit 1; }; } 1978 1979{ echo "$as_me:$LINENO: checking build system type" >&5 1980echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 1981if test "${ac_cv_build+set}" = set; then 1982 echo $ECHO_N "(cached) $ECHO_C" >&6 1983else 1984 ac_build_alias=$build_alias 1985test "x$ac_build_alias" = x && 1986 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 1987test "x$ac_build_alias" = x && 1988 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1989echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1990 { (exit 1); exit 1; }; } 1991ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 1992 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 1993echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 1994 { (exit 1); exit 1; }; } 1995 1996fi 1997{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1998echo "${ECHO_T}$ac_cv_build" >&6; } 1999case $ac_cv_build in 2000*-*-*) ;; 2001*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2002echo "$as_me: error: invalid value of canonical build" >&2;} 2003 { (exit 1); exit 1; }; };; 2004esac 2005build=$ac_cv_build 2006ac_save_IFS=$IFS; IFS='-' 2007set x $ac_cv_build 2008shift 2009build_cpu=$1 2010build_vendor=$2 2011shift; shift 2012# Remember, the first character of IFS is used to create $*, 2013# except with old shells: 2014build_os=$* 2015IFS=$ac_save_IFS 2016case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2017 2018 2019{ echo "$as_me:$LINENO: checking host system type" >&5 2020echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 2021if test "${ac_cv_host+set}" = set; then 2022 echo $ECHO_N "(cached) $ECHO_C" >&6 2023else 2024 if test "x$host_alias" = x; then 2025 ac_cv_host=$ac_cv_build 2026else 2027 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2028 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2029echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2030 { (exit 1); exit 1; }; } 2031fi 2032 2033fi 2034{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2035echo "${ECHO_T}$ac_cv_host" >&6; } 2036case $ac_cv_host in 2037*-*-*) ;; 2038*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2039echo "$as_me: error: invalid value of canonical host" >&2;} 2040 { (exit 1); exit 1; }; };; 2041esac 2042host=$ac_cv_host 2043ac_save_IFS=$IFS; IFS='-' 2044set x $ac_cv_host 2045shift 2046host_cpu=$1 2047host_vendor=$2 2048shift; shift 2049# Remember, the first character of IFS is used to create $*, 2050# except with old shells: 2051host_os=$* 2052IFS=$ac_save_IFS 2053case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2054 2055 2056am__api_version="1.9" 2057# Find a good install program. We prefer a C program (faster), 2058# so one script is as good as another. But avoid the broken or 2059# incompatible versions: 2060# SysV /etc/install, /usr/sbin/install 2061# SunOS /usr/etc/install 2062# IRIX /sbin/install 2063# AIX /bin/install 2064# AmigaOS /C/install, which installs bootblocks on floppy discs 2065# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2066# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2067# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2068# OS/2's system install, which has a completely different semantic 2069# ./install, which can be erroneously created by make from ./install.sh. 2070{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2071echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 2072if test -z "$INSTALL"; then 2073if test "${ac_cv_path_install+set}" = set; then 2074 echo $ECHO_N "(cached) $ECHO_C" >&6 2075else 2076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2077for as_dir in $PATH 2078do 2079 IFS=$as_save_IFS 2080 test -z "$as_dir" && as_dir=. 2081 # Account for people who put trailing slashes in PATH elements. 2082case $as_dir/ in 2083 ./ | .// | /cC/* | \ 2084 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2085 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2086 /usr/ucb/* ) ;; 2087 *) 2088 # OSF1 and SCO ODT 3.0 have their own names for install. 2089 # Don't use installbsd from OSF since it installs stuff as root 2090 # by default. 2091 for ac_prog in ginstall scoinst install; do 2092 for ac_exec_ext in '' $ac_executable_extensions; do 2093 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then 2094 if test $ac_prog = install && 2095 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2096 # AIX install. It has an incompatible calling convention. 2097 : 2098 elif test $ac_prog = install && 2099 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2100 # program-specific install script used by HP pwplus--don't use. 2101 : 2102 else 2103 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2104 break 3 2105 fi 2106 fi 2107 done 2108 done 2109 ;; 2110esac 2111done 2112IFS=$as_save_IFS 2113 2114 2115fi 2116 if test "${ac_cv_path_install+set}" = set; then 2117 INSTALL=$ac_cv_path_install 2118 else 2119 # As a last resort, use the slow shell script. Don't cache a 2120 # value for INSTALL within a source directory, because that will 2121 # break other packages using the cache if that directory is 2122 # removed, or if the value is a relative name. 2123 INSTALL=$ac_install_sh 2124 fi 2125fi 2126{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2127echo "${ECHO_T}$INSTALL" >&6; } 2128 2129# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2130# It thinks the first close brace ends the variable substitution. 2131test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2132 2133test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2134 2135test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2136 2137{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2138echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2139# Just in case 2140sleep 1 2141echo timestamp > conftest.file 2142# Do `set' in a subshell so we don't clobber the current shell's 2143# arguments. Must try -L first in case configure is actually a 2144# symlink; some systems play weird games with the mod time of symlinks 2145# (eg FreeBSD returns the mod time of the symlink's containing 2146# directory). 2147if ( 2148 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2149 if test "$*" = "X"; then 2150 # -L didn't work. 2151 set X `ls -t $srcdir/configure conftest.file` 2152 fi 2153 rm -f conftest.file 2154 if test "$*" != "X $srcdir/configure conftest.file" \ 2155 && test "$*" != "X conftest.file $srcdir/configure"; then 2156 2157 # If neither matched, then we have a broken ls. This can happen 2158 # if, for instance, CONFIG_SHELL is bash and it inherits a 2159 # broken ls alias from the environment. This has actually 2160 # happened. Such a system could not be considered "sane". 2161 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2162alias in your environment" >&5 2163echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2164alias in your environment" >&2;} 2165 { (exit 1); exit 1; }; } 2166 fi 2167 2168 test "$2" = conftest.file 2169 ) 2170then 2171 # Ok. 2172 : 2173else 2174 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2175Check your system clock" >&5 2176echo "$as_me: error: newly created file is older than distributed files! 2177Check your system clock" >&2;} 2178 { (exit 1); exit 1; }; } 2179fi 2180{ echo "$as_me:$LINENO: result: yes" >&5 2181echo "${ECHO_T}yes" >&6; } 2182test "$program_prefix" != NONE && 2183 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2184# Use a double $ so make ignores it. 2185test "$program_suffix" != NONE && 2186 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2187# Double any \ or $. echo might interpret backslashes. 2188# By default was `s,x,x', remove it if useless. 2189cat <<\_ACEOF >conftest.sed 2190s/[\\$]/&&/g;s/;s,x,x,$// 2191_ACEOF 2192program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2193rm -f conftest.sed 2194 2195# expand $ac_aux_dir to an absolute path 2196am_aux_dir=`cd $ac_aux_dir && pwd` 2197 2198test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2199# Use eval to expand $SHELL 2200if eval "$MISSING --run true"; then 2201 am_missing_run="$MISSING --run " 2202else 2203 am_missing_run= 2204 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2205echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2206fi 2207 2208if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 2209 # We used to keeping the `.' as first argument, in order to 2210 # allow $(mkdir_p) to be used without argument. As in 2211 # $(mkdir_p) $(somedir) 2212 # where $(somedir) is conditionally defined. However this is wrong 2213 # for two reasons: 2214 # 1. if the package is installed by a user who cannot write `.' 2215 # make install will fail, 2216 # 2. the above comment should most certainly read 2217 # $(mkdir_p) $(DESTDIR)$(somedir) 2218 # so it does not work when $(somedir) is undefined and 2219 # $(DESTDIR) is not. 2220 # To support the latter case, we have to write 2221 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 2222 # so the `.' trick is pointless. 2223 mkdir_p='mkdir -p --' 2224else 2225 # On NextStep and OpenStep, the `mkdir' command does not 2226 # recognize any option. It will interpret all options as 2227 # directories to create, and then abort because `.' already 2228 # exists. 2229 for d in ./-p ./--version; 2230 do 2231 test -d $d && rmdir $d 2232 done 2233 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 2234 if test -f "$ac_aux_dir/mkinstalldirs"; then 2235 mkdir_p='$(mkinstalldirs)' 2236 else 2237 mkdir_p='$(install_sh) -d' 2238 fi 2239fi 2240 2241for ac_prog in gawk mawk nawk awk 2242do 2243 # Extract the first word of "$ac_prog", so it can be a program name with args. 2244set dummy $ac_prog; ac_word=$2 2245{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2246echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2247if test "${ac_cv_prog_AWK+set}" = set; then 2248 echo $ECHO_N "(cached) $ECHO_C" >&6 2249else 2250 if test -n "$AWK"; then 2251 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2252else 2253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2254for as_dir in $PATH 2255do 2256 IFS=$as_save_IFS 2257 test -z "$as_dir" && as_dir=. 2258 for ac_exec_ext in '' $ac_executable_extensions; do 2259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2260 ac_cv_prog_AWK="$ac_prog" 2261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2262 break 2 2263 fi 2264done 2265done 2266IFS=$as_save_IFS 2267 2268fi 2269fi 2270AWK=$ac_cv_prog_AWK 2271if test -n "$AWK"; then 2272 { echo "$as_me:$LINENO: result: $AWK" >&5 2273echo "${ECHO_T}$AWK" >&6; } 2274else 2275 { echo "$as_me:$LINENO: result: no" >&5 2276echo "${ECHO_T}no" >&6; } 2277fi 2278 2279 2280 test -n "$AWK" && break 2281done 2282 2283{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2284echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2285set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2286if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2287 echo $ECHO_N "(cached) $ECHO_C" >&6 2288else 2289 cat >conftest.make <<\_ACEOF 2290SHELL = /bin/sh 2291all: 2292 @echo '@@@%%%=$(MAKE)=@@@%%%' 2293_ACEOF 2294# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2295case `${MAKE-make} -f conftest.make 2>/dev/null` in 2296 *@@@%%%=?*=@@@%%%*) 2297 eval ac_cv_prog_make_${ac_make}_set=yes;; 2298 *) 2299 eval ac_cv_prog_make_${ac_make}_set=no;; 2300esac 2301rm -f conftest.make 2302fi 2303if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2304 { echo "$as_me:$LINENO: result: yes" >&5 2305echo "${ECHO_T}yes" >&6; } 2306 SET_MAKE= 2307else 2308 { echo "$as_me:$LINENO: result: no" >&5 2309echo "${ECHO_T}no" >&6; } 2310 SET_MAKE="MAKE=${MAKE-make}" 2311fi 2312 2313rm -rf .tst 2>/dev/null 2314mkdir .tst 2>/dev/null 2315if test -d .tst; then 2316 am__leading_dot=. 2317else 2318 am__leading_dot=_ 2319fi 2320rmdir .tst 2>/dev/null 2321 2322# test to see if srcdir already configured 2323if test "`cd $srcdir && pwd`" != "`pwd`" && 2324 test -f $srcdir/config.status; then 2325 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2326echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2327 { (exit 1); exit 1; }; } 2328fi 2329 2330# test whether we have cygpath 2331if test -z "$CYGPATH_W"; then 2332 if (cygpath --version) >/dev/null 2>/dev/null; then 2333 CYGPATH_W='cygpath -w' 2334 else 2335 CYGPATH_W=echo 2336 fi 2337fi 2338 2339 2340# Define the identity of the package. 2341 PACKAGE='libpeak' 2342 VERSION='0.1.2' 2343 2344 2345cat >>confdefs.h <<_ACEOF 2346#define PACKAGE "$PACKAGE" 2347_ACEOF 2348 2349 2350cat >>confdefs.h <<_ACEOF 2351#define VERSION "$VERSION" 2352_ACEOF 2353 2354# Some tools Automake needs. 2355 2356ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2357 2358 2359AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2360 2361 2362AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2363 2364 2365AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2366 2367 2368MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2369 2370install_sh=${install_sh-"$am_aux_dir/install-sh"} 2371 2372# Installed binaries are usually stripped using `strip' when the user 2373# run `make install-strip'. However `strip' might not be the right 2374# tool to use in cross-compilation environments, therefore Automake 2375# will honor the `STRIP' environment variable to overrule this program. 2376if test "$cross_compiling" != no; then 2377 if test -n "$ac_tool_prefix"; then 2378 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2379set dummy ${ac_tool_prefix}strip; ac_word=$2 2380{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2381echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2382if test "${ac_cv_prog_STRIP+set}" = set; then 2383 echo $ECHO_N "(cached) $ECHO_C" >&6 2384else 2385 if test -n "$STRIP"; then 2386 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2387else 2388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2389for as_dir in $PATH 2390do 2391 IFS=$as_save_IFS 2392 test -z "$as_dir" && as_dir=. 2393 for ac_exec_ext in '' $ac_executable_extensions; do 2394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2395 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2397 break 2 2398 fi 2399done 2400done 2401IFS=$as_save_IFS 2402 2403fi 2404fi 2405STRIP=$ac_cv_prog_STRIP 2406if test -n "$STRIP"; then 2407 { echo "$as_me:$LINENO: result: $STRIP" >&5 2408echo "${ECHO_T}$STRIP" >&6; } 2409else 2410 { echo "$as_me:$LINENO: result: no" >&5 2411echo "${ECHO_T}no" >&6; } 2412fi 2413 2414 2415fi 2416if test -z "$ac_cv_prog_STRIP"; then 2417 ac_ct_STRIP=$STRIP 2418 # Extract the first word of "strip", so it can be a program name with args. 2419set dummy strip; ac_word=$2 2420{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2421echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2422if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2423 echo $ECHO_N "(cached) $ECHO_C" >&6 2424else 2425 if test -n "$ac_ct_STRIP"; then 2426 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2427else 2428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2429for as_dir in $PATH 2430do 2431 IFS=$as_save_IFS 2432 test -z "$as_dir" && as_dir=. 2433 for ac_exec_ext in '' $ac_executable_extensions; do 2434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2435 ac_cv_prog_ac_ct_STRIP="strip" 2436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2437 break 2 2438 fi 2439done 2440done 2441IFS=$as_save_IFS 2442 2443fi 2444fi 2445ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2446if test -n "$ac_ct_STRIP"; then 2447 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2448echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2449else 2450 { echo "$as_me:$LINENO: result: no" >&5 2451echo "${ECHO_T}no" >&6; } 2452fi 2453 2454 if test "x$ac_ct_STRIP" = x; then 2455 STRIP=":" 2456 else 2457 case $cross_compiling:$ac_tool_warned in 2458yes:) 2459{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2460whose name does not start with the host triplet. If you think this 2461configuration is useful to you, please write to autoconf@gnu.org." >&5 2462echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2463whose name does not start with the host triplet. If you think this 2464configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2465ac_tool_warned=yes ;; 2466esac 2467 STRIP=$ac_ct_STRIP 2468 fi 2469else 2470 STRIP="$ac_cv_prog_STRIP" 2471fi 2472 2473fi 2474INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 2475 2476# We need awk for the "check" target. The system "awk" is bad on 2477# some platforms. 2478# Always define AMTAR for backward compatibility. 2479 2480AMTAR=${AMTAR-"${am_missing_run}tar"} 2481 2482am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2483 2484 2485 2486 2487 2488ac_config_headers="$ac_config_headers config.h" 2489 2490{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2491echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } 2492 # Check whether --enable-maintainer-mode was given. 2493if test "${enable_maintainer_mode+set}" = set; then 2494 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2495else 2496 USE_MAINTAINER_MODE=no 2497fi 2498 2499 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2500echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } 2501 2502 2503if test $USE_MAINTAINER_MODE = yes; then 2504 MAINTAINER_MODE_TRUE= 2505 MAINTAINER_MODE_FALSE='#' 2506else 2507 MAINTAINER_MODE_TRUE='#' 2508 MAINTAINER_MODE_FALSE= 2509fi 2510 2511 MAINT=$MAINTAINER_MODE_TRUE 2512 2513 2514 2515cflags='-O2 -g -Wall' 2516default_includes=' -I. -I$(srcdir) -I$(top_builddir)' 2517includes='-I$(top_builddir)' 2518 2519case "$host" in 2520 *-*-aix*) 2521 if test -z "$CC"; then 2522 for ac_prog in cc_r xlc_r gcc cc 2523do 2524 # Extract the first word of "$ac_prog", so it can be a program name with args. 2525set dummy $ac_prog; ac_word=$2 2526{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2528if test "${ac_cv_prog_CC+set}" = set; then 2529 echo $ECHO_N "(cached) $ECHO_C" >&6 2530else 2531 if test -n "$CC"; then 2532 ac_cv_prog_CC="$CC" # Let the user override the test. 2533else 2534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2535for as_dir in $PATH 2536do 2537 IFS=$as_save_IFS 2538 test -z "$as_dir" && as_dir=. 2539 for ac_exec_ext in '' $ac_executable_extensions; do 2540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2541 ac_cv_prog_CC="$ac_prog" 2542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2543 break 2 2544 fi 2545done 2546done 2547IFS=$as_save_IFS 2548 2549fi 2550fi 2551CC=$ac_cv_prog_CC 2552if test -n "$CC"; then 2553 { echo "$as_me:$LINENO: result: $CC" >&5 2554echo "${ECHO_T}$CC" >&6; } 2555else 2556 { echo "$as_me:$LINENO: result: no" >&5 2557echo "${ECHO_T}no" >&6; } 2558fi 2559 2560 2561 test -n "$CC" && break 2562done 2563 2564 fi 2565 if test "$CC" = "cc_r" -o "$CC" = "xlc_r"; then 2566 cflags='-O3 -qthreaded -qwarn64' 2567 default_includes='-I$(top_builddir)' 2568 includes= 2569 elif test "$CC" = gcc; then 2570 { echo "$as_me:$LINENO: WARNING: GCC not recommended on AIX" >&5 2571echo "$as_me: WARNING: GCC not recommended on AIX" >&2;} 2572 else 2573 { echo "$as_me:$LINENO: WARNING: cc_r on AIX not found; threads wont work!" >&5 2574echo "$as_me: WARNING: cc_r on AIX not found; threads wont work!" >&2;} 2575 default_includes='-I$(top_builddir)' 2576 includes= 2577 fi 2578 ;; 2579 2580 *-*-netbsd*) 2581 includes='-I- -I/usr/pkg/include -I$(top_builddir)' 2582 PTHREAD_CFLAGS='-I/usr/pkg/include' 2583 PTHREAD_LIBS='-L/usr/pkg/lib -lpthread' 2584 ;; 2585 2586 powerpc-*-darwin*) 2587 if test -z "$CC"; then 2588 for ac_prog in gcc cc_r cc 2589do 2590 # Extract the first word of "$ac_prog", so it can be a program name with args. 2591set dummy $ac_prog; ac_word=$2 2592{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2594if test "${ac_cv_prog_CC+set}" = set; then 2595 echo $ECHO_N "(cached) $ECHO_C" >&6 2596else 2597 if test -n "$CC"; then 2598 ac_cv_prog_CC="$CC" # Let the user override the test. 2599else 2600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2601for as_dir in $PATH 2602do 2603 IFS=$as_save_IFS 2604 test -z "$as_dir" && as_dir=. 2605 for ac_exec_ext in '' $ac_executable_extensions; do 2606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2607 ac_cv_prog_CC="$ac_prog" 2608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2609 break 2 2610 fi 2611done 2612done 2613IFS=$as_save_IFS 2614 2615fi 2616fi 2617CC=$ac_cv_prog_CC 2618if test -n "$CC"; then 2619 { echo "$as_me:$LINENO: result: $CC" >&5 2620echo "${ECHO_T}$CC" >&6; } 2621else 2622 { echo "$as_me:$LINENO: result: no" >&5 2623echo "${ECHO_T}no" >&6; } 2624fi 2625 2626 2627 test -n "$CC" && break 2628done 2629 2630 fi 2631 if test "$CC" = "cc_r" -o "$CC" = "xlc_r"; then 2632 cflags='-O3 -qthreaded -qtune=auto' 2633 default_includes='-I$(top_builddir)' 2634 includes='-I$(ARCH_INCLUDES)' 2635 fi 2636 ;; 2637 2638 *) 2639 ;; 2640esac 2641CFLAGS=$cflags 2642 2643 2644 2645{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 2646echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 2647LN_S=$as_ln_s 2648if test "$LN_S" = "ln -s"; then 2649 { echo "$as_me:$LINENO: result: yes" >&5 2650echo "${ECHO_T}yes" >&6; } 2651else 2652 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 2653echo "${ECHO_T}no, using $LN_S" >&6; } 2654fi 2655 2656{ echo "$as_me:$LINENO: checking for architecture-dependent code" >&5 2657echo $ECHO_N "checking for architecture-dependent code... $ECHO_C" >&6; } 2658arch=unknown 2659case "$host" in 2660 powerpc-*) 2661 arch=powerpc 2662 ;; 2663 2664 i*86-* | x86-* | x86_64-* | amd64-*) 2665 arch=x86 2666 ;; 2667 2668 m68k-*) 2669 arch=m68k 2670 ;; 2671 2672 sparc-*) 2673 arch=sparc 2674 ;; 2675 2676 ia64-*) 2677 arch=ia64 2678 ;; 2679 2680 *) 2681 { echo "$as_me:$LINENO: result: failed!" >&5 2682echo "${ECHO_T}failed!" >&6; } 2683 { { echo "$as_me:$LINENO: error: libpeak is not available for your architecture yet, 2684 please submit a feature request for: 2685 ${host}" >&5 2686echo "$as_me: error: libpeak is not available for your architecture yet, 2687 please submit a feature request for: 2688 ${host}" >&2;} 2689 { (exit 1); exit 1; }; } 2690 ;; 2691esac 2692ac_config_links="$ac_config_links peak/atomic.h:peak/arch/${arch}/atomic.h peak/spinlock.h:peak/arch/${arch}/spinlock.h" 2693 2694{ echo "$as_me:$LINENO: result: peak/arch/${arch} will be used." >&5 2695echo "${ECHO_T}peak/arch/${arch} will be used." >&6; } 2696 2697 2698atomic_header="peak/atomic.h" 2699 2700# Check whether --enable-shared was given. 2701if test "${enable_shared+set}" = set; then 2702 enableval=$enable_shared; p=${PACKAGE-default} 2703 case $enableval in 2704 yes) enable_shared=yes ;; 2705 no) enable_shared=no ;; 2706 *) 2707 enable_shared=no 2708 # Look at the argument we got. We use all the common list separators. 2709 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2710 for pkg in $enableval; do 2711 IFS="$lt_save_ifs" 2712 if test "X$pkg" = "X$p"; then 2713 enable_shared=yes 2714 fi 2715 done 2716 IFS="$lt_save_ifs" 2717 ;; 2718 esac 2719else 2720 enable_shared=yes 2721fi 2722 2723 2724# Check whether --enable-static was given. 2725if test "${enable_static+set}" = set; then 2726 enableval=$enable_static; p=${PACKAGE-default} 2727 case $enableval in 2728 yes) enable_static=yes ;; 2729 no) enable_static=no ;; 2730 *) 2731 enable_static=no 2732 # Look at the argument we got. We use all the common list separators. 2733 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2734 for pkg in $enableval; do 2735 IFS="$lt_save_ifs" 2736 if test "X$pkg" = "X$p"; then 2737 enable_static=yes 2738 fi 2739 done 2740 IFS="$lt_save_ifs" 2741 ;; 2742 esac 2743else 2744 enable_static=yes 2745fi 2746 2747 2748# Check whether --enable-fast-install was given. 2749if test "${enable_fast_install+set}" = set; then 2750 enableval=$enable_fast_install; p=${PACKAGE-default} 2751 case $enableval in 2752 yes) enable_fast_install=yes ;; 2753 no) enable_fast_install=no ;; 2754 *) 2755 enable_fast_install=no 2756 # Look at the argument we got. We use all the common list separators. 2757 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2758 for pkg in $enableval; do 2759 IFS="$lt_save_ifs" 2760 if test "X$pkg" = "X$p"; then 2761 enable_fast_install=yes 2762 fi 2763 done 2764 IFS="$lt_save_ifs" 2765 ;; 2766 esac 2767else 2768 enable_fast_install=yes 2769fi 2770 2771 2772DEPDIR="${am__leading_dot}deps" 2773 2774ac_config_commands="$ac_config_commands depfiles" 2775 2776 2777am_make=${MAKE-make} 2778cat > confinc << 'END' 2779am__doit: 2780 @echo done 2781.PHONY: am__doit 2782END 2783# If we don't find an include directive, just comment out the code. 2784{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2785echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 2786am__include="#" 2787am__quote= 2788_am_result=none 2789# First try GNU make style include. 2790echo "include confinc" > confmf 2791# We grep out `Entering directory' and `Leaving directory' 2792# messages which can occur if `w' ends up in MAKEFLAGS. 2793# In particular we don't look at `^make:' because GNU make might 2794# be invoked under some other name (usually "gmake"), in which 2795# case it prints its new name instead of `make'. 2796if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2797 am__include=include 2798 am__quote= 2799 _am_result=GNU 2800fi 2801# Now try BSD make style include. 2802if test "$am__include" = "#"; then 2803 echo '.include "confinc"' > confmf 2804 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2805 am__include=.include 2806 am__quote="\"" 2807 _am_result=BSD 2808 fi 2809fi 2810 2811 2812{ echo "$as_me:$LINENO: result: $_am_result" >&5 2813echo "${ECHO_T}$_am_result" >&6; } 2814rm -f confinc confmf 2815 2816# Check whether --enable-dependency-tracking was given. 2817if test "${enable_dependency_tracking+set}" = set; then 2818 enableval=$enable_dependency_tracking; 2819fi 2820 2821if test "x$enable_dependency_tracking" != xno; then 2822 am_depcomp="$ac_aux_dir/depcomp" 2823 AMDEPBACKSLASH='\' 2824fi 2825 2826 2827if test "x$enable_dependency_tracking" != xno; then 2828 AMDEP_TRUE= 2829 AMDEP_FALSE='#' 2830else 2831 AMDEP_TRUE='#' 2832 AMDEP_FALSE= 2833fi 2834 2835 2836 2837ac_ext=c 2838ac_cpp='$CPP $CPPFLAGS' 2839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2841ac_compiler_gnu=$ac_cv_c_compiler_gnu 2842if test -n "$ac_tool_prefix"; then 2843 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2844set dummy ${ac_tool_prefix}gcc; ac_word=$2 2845{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2847if test "${ac_cv_prog_CC+set}" = set; then 2848 echo $ECHO_N "(cached) $ECHO_C" >&6 2849else 2850 if test -n "$CC"; then 2851 ac_cv_prog_CC="$CC" # Let the user override the test. 2852else 2853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2854for as_dir in $PATH 2855do 2856 IFS=$as_save_IFS 2857 test -z "$as_dir" && as_dir=. 2858 for ac_exec_ext in '' $ac_executable_extensions; do 2859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2860 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2862 break 2 2863 fi 2864done 2865done 2866IFS=$as_save_IFS 2867 2868fi 2869fi 2870CC=$ac_cv_prog_CC 2871if test -n "$CC"; then 2872 { echo "$as_me:$LINENO: result: $CC" >&5 2873echo "${ECHO_T}$CC" >&6; } 2874else 2875 { echo "$as_me:$LINENO: result: no" >&5 2876echo "${ECHO_T}no" >&6; } 2877fi 2878 2879 2880fi 2881if test -z "$ac_cv_prog_CC"; then 2882 ac_ct_CC=$CC 2883 # Extract the first word of "gcc", so it can be a program name with args. 2884set dummy gcc; ac_word=$2 2885{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2887if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2888 echo $ECHO_N "(cached) $ECHO_C" >&6 2889else 2890 if test -n "$ac_ct_CC"; then 2891 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2892else 2893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2894for as_dir in $PATH 2895do 2896 IFS=$as_save_IFS 2897 test -z "$as_dir" && as_dir=. 2898 for ac_exec_ext in '' $ac_executable_extensions; do 2899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2900 ac_cv_prog_ac_ct_CC="gcc" 2901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2902 break 2 2903 fi 2904done 2905done 2906IFS=$as_save_IFS 2907 2908fi 2909fi 2910ac_ct_CC=$ac_cv_prog_ac_ct_CC 2911if test -n "$ac_ct_CC"; then 2912 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2913echo "${ECHO_T}$ac_ct_CC" >&6; } 2914else 2915 { echo "$as_me:$LINENO: result: no" >&5 2916echo "${ECHO_T}no" >&6; } 2917fi 2918 2919 if test "x$ac_ct_CC" = x; then 2920 CC="" 2921 else 2922 case $cross_compiling:$ac_tool_warned in 2923yes:) 2924{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2925whose name does not start with the host triplet. If you think this 2926configuration is useful to you, please write to autoconf@gnu.org." >&5 2927echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2928whose name does not start with the host triplet. If you think this 2929configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2930ac_tool_warned=yes ;; 2931esac 2932 CC=$ac_ct_CC 2933 fi 2934else 2935 CC="$ac_cv_prog_CC" 2936fi 2937 2938if test -z "$CC"; then 2939 if test -n "$ac_tool_prefix"; then 2940 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2941set dummy ${ac_tool_prefix}cc; ac_word=$2 2942{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2944if test "${ac_cv_prog_CC+set}" = set; then 2945 echo $ECHO_N "(cached) $ECHO_C" >&6 2946else 2947 if test -n "$CC"; then 2948 ac_cv_prog_CC="$CC" # Let the user override the test. 2949else 2950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2951for as_dir in $PATH 2952do 2953 IFS=$as_save_IFS 2954 test -z "$as_dir" && as_dir=. 2955 for ac_exec_ext in '' $ac_executable_extensions; do 2956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2957 ac_cv_prog_CC="${ac_tool_prefix}cc" 2958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2959 break 2 2960 fi 2961done 2962done 2963IFS=$as_save_IFS 2964 2965fi 2966fi 2967CC=$ac_cv_prog_CC 2968if test -n "$CC"; then 2969 { echo "$as_me:$LINENO: result: $CC" >&5 2970echo "${ECHO_T}$CC" >&6; } 2971else 2972 { echo "$as_me:$LINENO: result: no" >&5 2973echo "${ECHO_T}no" >&6; } 2974fi 2975 2976 2977 fi 2978fi 2979if test -z "$CC"; then 2980 # Extract the first word of "cc", so it can be a program name with args. 2981set dummy cc; ac_word=$2 2982{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2984if test "${ac_cv_prog_CC+set}" = set; then 2985 echo $ECHO_N "(cached) $ECHO_C" >&6 2986else 2987 if test -n "$CC"; then 2988 ac_cv_prog_CC="$CC" # Let the user override the test. 2989else 2990 ac_prog_rejected=no 2991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2992for as_dir in $PATH 2993do 2994 IFS=$as_save_IFS 2995 test -z "$as_dir" && as_dir=. 2996 for ac_exec_ext in '' $ac_executable_extensions; do 2997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2998 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2999 ac_prog_rejected=yes 3000 continue 3001 fi 3002 ac_cv_prog_CC="cc" 3003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3004 break 2 3005 fi 3006done 3007done 3008IFS=$as_save_IFS 3009 3010if test $ac_prog_rejected = yes; then 3011 # We found a bogon in the path, so make sure we never use it. 3012 set dummy $ac_cv_prog_CC 3013 shift 3014 if test $# != 0; then 3015 # We chose a different compiler from the bogus one. 3016 # However, it has the same basename, so the bogon will be chosen 3017 # first if we set CC to just the basename; use the full file name. 3018 shift 3019 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3020 fi 3021fi 3022fi 3023fi 3024CC=$ac_cv_prog_CC 3025if test -n "$CC"; then 3026 { echo "$as_me:$LINENO: result: $CC" >&5 3027echo "${ECHO_T}$CC" >&6; } 3028else 3029 { echo "$as_me:$LINENO: result: no" >&5 3030echo "${ECHO_T}no" >&6; } 3031fi 3032 3033 3034fi 3035if test -z "$CC"; then 3036 if test -n "$ac_tool_prefix"; then 3037 for ac_prog in cl.exe 3038 do 3039 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3040set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3041{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3043if test "${ac_cv_prog_CC+set}" = set; then 3044 echo $ECHO_N "(cached) $ECHO_C" >&6 3045else 3046 if test -n "$CC"; then 3047 ac_cv_prog_CC="$CC" # Let the user override the test. 3048else 3049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3050for as_dir in $PATH 3051do 3052 IFS=$as_save_IFS 3053 test -z "$as_dir" && as_dir=. 3054 for ac_exec_ext in '' $ac_executable_extensions; do 3055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 3056 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3058 break 2 3059 fi 3060done 3061done 3062IFS=$as_save_IFS 3063 3064fi 3065fi 3066CC=$ac_cv_prog_CC 3067if test -n "$CC"; then 3068 { echo "$as_me:$LINENO: result: $CC" >&5 3069echo "${ECHO_T}$CC" >&6; } 3070else 3071 { echo "$as_me:$LINENO: result: no" >&5 3072echo "${ECHO_T}no" >&6; } 3073fi 3074 3075 3076 test -n "$CC" && break 3077 done 3078fi 3079if test -z "$CC"; then 3080 ac_ct_CC=$CC 3081 for ac_prog in cl.exe 3082do 3083 # Extract the first word of "$ac_prog", so it can be a program name with args. 3084set dummy $ac_prog; ac_word=$2 3085{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3086echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3087if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3088 echo $ECHO_N "(cached) $ECHO_C" >&6 3089else 3090 if test -n "$ac_ct_CC"; then 3091 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3092else 3093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3094for as_dir in $PATH 3095do 3096 IFS=$as_save_IFS 3097 test -z "$as_dir" && as_dir=. 3098 for ac_exec_ext in '' $ac_executable_extensions; do 3099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 3100 ac_cv_prog_ac_ct_CC="$ac_prog" 3101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3102 break 2 3103 fi 3104done 3105done 3106IFS=$as_save_IFS 3107 3108fi 3109fi 3110ac_ct_CC=$ac_cv_prog_ac_ct_CC 3111if test -n "$ac_ct_CC"; then 3112 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3113echo "${ECHO_T}$ac_ct_CC" >&6; } 3114else 3115 { echo "$as_me:$LINENO: result: no" >&5 3116echo "${ECHO_T}no" >&6; } 3117fi 3118 3119 3120 test -n "$ac_ct_CC" && break 3121done 3122 3123 if test "x$ac_ct_CC" = x; then 3124 CC="" 3125 else 3126 case $cross_compiling:$ac_tool_warned in 3127yes:) 3128{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3129whose name does not start with the host triplet. If you think this 3130configuration is useful to you, please write to autoconf@gnu.org." >&5 3131echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3132whose name does not start with the host triplet. If you think this 3133configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3134ac_tool_warned=yes ;; 3135esac 3136 CC=$ac_ct_CC 3137 fi 3138fi 3139 3140fi 3141 3142 3143test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3144See \`config.log' for more details." >&5 3145echo "$as_me: error: no acceptable C compiler found in \$PATH 3146See \`config.log' for more details." >&2;} 3147 { (exit 1); exit 1; }; } 3148 3149# Provide some information about the compiler. 3150echo "$as_me:$LINENO: checking for C compiler version" >&5 3151ac_compiler=`set X $ac_compile; echo $2` 3152{ (ac_try="$ac_compiler --version >&5" 3153case "(($ac_try" in 3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3155 *) ac_try_echo=$ac_try;; 3156esac 3157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3158 (eval "$ac_compiler --version >&5") 2>&5 3159 ac_status=$? 3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3161 (exit $ac_status); } 3162{ (ac_try="$ac_compiler -v >&5" 3163case "(($ac_try" in 3164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3165 *) ac_try_echo=$ac_try;; 3166esac 3167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3168 (eval "$ac_compiler -v >&5") 2>&5 3169 ac_status=$? 3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3171 (exit $ac_status); } 3172{ (ac_try="$ac_compiler -V >&5" 3173case "(($ac_try" in 3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3175 *) ac_try_echo=$ac_try;; 3176esac 3177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3178 (eval "$ac_compiler -V >&5") 2>&5 3179 ac_status=$? 3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3181 (exit $ac_status); } 3182 3183cat >conftest.$ac_ext <<_ACEOF 3184/* confdefs.h. */ 3185_ACEOF 3186cat confdefs.h >>conftest.$ac_ext 3187cat >>conftest.$ac_ext <<_ACEOF 3188/* end confdefs.h. */ 3189 3190int 3191main () 3192{ 3193 3194 ; 3195 return 0; 3196} 3197_ACEOF 3198ac_clean_files_save=$ac_clean_files 3199ac_clean_files="$ac_clean_files a.out a.exe b.out" 3200# Try to create an executable without -o first, disregard a.out. 3201# It will help us diagnose broken compilers, and finding out an intuition 3202# of exeext. 3203{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3204echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 3205ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3206# 3207# List of possible output files, starting from the most likely. 3208# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 3209# only as a last resort. b.out is created by i960 compilers. 3210ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 3211# 3212# The IRIX 6 linker writes into existing files which may not be 3213# executable, retaining their permissions. Remove them first so a 3214# subsequent execution test works. 3215ac_rmfiles= 3216for ac_file in $ac_files 3217do 3218 case $ac_file in 3219 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3220 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3221 esac 3222done 3223rm -f $ac_rmfiles 3224 3225if { (ac_try="$ac_link_default" 3226case "(($ac_try" in 3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3228 *) ac_try_echo=$ac_try;; 3229esac 3230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3231 (eval "$ac_link_default") 2>&5 3232 ac_status=$? 3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3234 (exit $ac_status); }; then 3235 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3236# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3237# in a Makefile. We should not override ac_cv_exeext if it was cached, 3238# so that the user can short-circuit this test for compilers unknown to 3239# Autoconf. 3240for ac_file in $ac_files 3241do 3242 test -f "$ac_file" || continue 3243 case $ac_file in 3244 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 3245 ;; 3246 [ab].out ) 3247 # We found the default executable, but exeext='' is most 3248 # certainly right. 3249 break;; 3250 *.* ) 3251 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3252 then :; else 3253 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3254 fi 3255 # We set ac_cv_exeext here because the later test for it is not 3256 # safe: cross compilers may not add the suffix if given an `-o' 3257 # argument, so we may need to know it at that point already. 3258 # Even if this section looks crufty: it has the advantage of 3259 # actually working. 3260 break;; 3261 * ) 3262 break;; 3263 esac 3264done 3265test "$ac_cv_exeext" = no && ac_cv_exeext= 3266 3267else 3268 echo "$as_me: failed program was:" >&5 3269sed 's/^/| /' conftest.$ac_ext >&5 3270 3271{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 3272See \`config.log' for more details." >&5 3273echo "$as_me: error: C compiler cannot create executables 3274See \`config.log' for more details." >&2;} 3275 { (exit 77); exit 77; }; } 3276fi 3277 3278ac_exeext=$ac_cv_exeext 3279{ echo "$as_me:$LINENO: result: $ac_file" >&5 3280echo "${ECHO_T}$ac_file" >&6; } 3281 3282# Check that the compiler produces executables we can run. If not, either 3283# the compiler is broken, or we cross compile. 3284{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3285echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 3286# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3287# If not cross compiling, check that we can run a simple program. 3288if test "$cross_compiling" != yes; then 3289 if { ac_try='./$ac_file' 3290 { (case "(($ac_try" in 3291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3292 *) ac_try_echo=$ac_try;; 3293esac 3294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3295 (eval "$ac_try") 2>&5 3296 ac_status=$? 3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3298 (exit $ac_status); }; }; then 3299 cross_compiling=no 3300 else 3301 if test "$cross_compiling" = maybe; then 3302 cross_compiling=yes 3303 else 3304 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 3305If you meant to cross compile, use \`--host'. 3306See \`config.log' for more details." >&5 3307echo "$as_me: error: cannot run C compiled programs. 3308If you meant to cross compile, use \`--host'. 3309See \`config.log' for more details." >&2;} 3310 { (exit 1); exit 1; }; } 3311 fi 3312 fi 3313fi 3314{ echo "$as_me:$LINENO: result: yes" >&5 3315echo "${ECHO_T}yes" >&6; } 3316 3317rm -f a.out a.exe conftest$ac_cv_exeext b.out 3318ac_clean_files=$ac_clean_files_save 3319# Check that the compiler produces executables we can run. If not, either 3320# the compiler is broken, or we cross compile. 3321{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3322echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 3323{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 3324echo "${ECHO_T}$cross_compiling" >&6; } 3325 3326{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 3327echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 3328if { (ac_try="$ac_link" 3329case "(($ac_try" in 3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3331 *) ac_try_echo=$ac_try;; 3332esac 3333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3334 (eval "$ac_link") 2>&5 3335 ac_status=$? 3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3337 (exit $ac_status); }; then 3338 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3339# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3340# work properly (i.e., refer to `conftest.exe'), while it won't with 3341# `rm'. 3342for ac_file in conftest.exe conftest conftest.*; do 3343 test -f "$ac_file" || continue 3344 case $ac_file in 3345 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3346 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3347 break;; 3348 * ) break;; 3349 esac 3350done 3351else 3352 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3353See \`config.log' for more details." >&5 3354echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3355See \`config.log' for more details." >&2;} 3356 { (exit 1); exit 1; }; } 3357fi 3358 3359rm -f conftest$ac_cv_exeext 3360{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3361echo "${ECHO_T}$ac_cv_exeext" >&6; } 3362 3363rm -f conftest.$ac_ext 3364EXEEXT=$ac_cv_exeext 3365ac_exeext=$EXEEXT 3366{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 3367echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 3368if test "${ac_cv_objext+set}" = set; then 3369 echo $ECHO_N "(cached) $ECHO_C" >&6 3370else 3371 cat >conftest.$ac_ext <<_ACEOF 3372/* confdefs.h. */ 3373_ACEOF 3374cat confdefs.h >>conftest.$ac_ext 3375cat >>conftest.$ac_ext <<_ACEOF 3376/* end confdefs.h. */ 3377 3378int 3379main () 3380{ 3381 3382 ; 3383 return 0; 3384} 3385_ACEOF 3386rm -f conftest.o conftest.obj 3387if { (ac_try="$ac_compile" 3388case "(($ac_try" in 3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3390 *) ac_try_echo=$ac_try;; 3391esac 3392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3393 (eval "$ac_compile") 2>&5 3394 ac_status=$? 3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3396 (exit $ac_status); }; then 3397 for ac_file in conftest.o conftest.obj conftest.*; do 3398 test -f "$ac_file" || continue; 3399 case $ac_file in 3400 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3401 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3402 break;; 3403 esac 3404done 3405else 3406 echo "$as_me: failed program was:" >&5 3407sed 's/^/| /' conftest.$ac_ext >&5 3408 3409{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3410See \`config.log' for more details." >&5 3411echo "$as_me: error: cannot compute suffix of object files: cannot compile 3412See \`config.log' for more details." >&2;} 3413 { (exit 1); exit 1; }; } 3414fi 3415 3416rm -f conftest.$ac_cv_objext conftest.$ac_ext 3417fi 3418{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3419echo "${ECHO_T}$ac_cv_objext" >&6; } 3420OBJEXT=$ac_cv_objext 3421ac_objext=$OBJEXT 3422{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3423echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3424if test "${ac_cv_c_compiler_gnu+set}" = set; then 3425 echo $ECHO_N "(cached) $ECHO_C" >&6 3426else 3427 cat >conftest.$ac_ext <<_ACEOF 3428/* confdefs.h. */ 3429_ACEOF 3430cat confdefs.h >>conftest.$ac_ext 3431cat >>conftest.$ac_ext <<_ACEOF 3432/* end confdefs.h. */ 3433 3434int 3435main () 3436{ 3437#ifndef __GNUC__ 3438 choke me 3439#endif 3440 3441 ; 3442 return 0; 3443} 3444_ACEOF 3445rm -f conftest.$ac_objext 3446if { (ac_try="$ac_compile" 3447case "(($ac_try" in 3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3449 *) ac_try_echo=$ac_try;; 3450esac 3451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3452 (eval "$ac_compile") 2>conftest.er1 3453 ac_status=$? 3454 grep -v '^ *+' conftest.er1 >conftest.err 3455 rm -f conftest.er1 3456 cat conftest.err >&5 3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3458 (exit $ac_status); } && 3459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3460 { (case "(($ac_try" in 3461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3462 *) ac_try_echo=$ac_try;; 3463esac 3464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3465 (eval "$ac_try") 2>&5 3466 ac_status=$? 3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3468 (exit $ac_status); }; } && 3469 { ac_try='test -s conftest.$ac_objext' 3470 { (case "(($ac_try" in 3471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3472 *) ac_try_echo=$ac_try;; 3473esac 3474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3475 (eval "$ac_try") 2>&5 3476 ac_status=$? 3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3478 (exit $ac_status); }; }; then 3479 ac_compiler_gnu=yes 3480else 3481 echo "$as_me: failed program was:" >&5 3482sed 's/^/| /' conftest.$ac_ext >&5 3483 3484 ac_compiler_gnu=no 3485fi 3486 3487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3488ac_cv_c_compiler_gnu=$ac_compiler_gnu 3489 3490fi 3491{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3492echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3493GCC=`test $ac_compiler_gnu = yes && echo yes` 3494ac_test_CFLAGS=${CFLAGS+set} 3495ac_save_CFLAGS=$CFLAGS 3496{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3497echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3498if test "${ac_cv_prog_cc_g+set}" = set; then 3499 echo $ECHO_N "(cached) $ECHO_C" >&6 3500else 3501 ac_save_c_werror_flag=$ac_c_werror_flag 3502 ac_c_werror_flag=yes 3503 ac_cv_prog_cc_g=no 3504 CFLAGS="-g" 3505 cat >conftest.$ac_ext <<_ACEOF 3506/* confdefs.h. */ 3507_ACEOF 3508cat confdefs.h >>conftest.$ac_ext 3509cat >>conftest.$ac_ext <<_ACEOF 3510/* end confdefs.h. */ 3511 3512int 3513main () 3514{ 3515 3516 ; 3517 return 0; 3518} 3519_ACEOF 3520rm -f conftest.$ac_objext 3521if { (ac_try="$ac_compile" 3522case "(($ac_try" in 3523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3524 *) ac_try_echo=$ac_try;; 3525esac 3526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3527 (eval "$ac_compile") 2>conftest.er1 3528 ac_status=$? 3529 grep -v '^ *+' conftest.er1 >conftest.err 3530 rm -f conftest.er1 3531 cat conftest.err >&5 3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3533 (exit $ac_status); } && 3534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3535 { (case "(($ac_try" in 3536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3537 *) ac_try_echo=$ac_try;; 3538esac 3539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3540 (eval "$ac_try") 2>&5 3541 ac_status=$? 3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3543 (exit $ac_status); }; } && 3544 { ac_try='test -s conftest.$ac_objext' 3545 { (case "(($ac_try" in 3546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3547 *) ac_try_echo=$ac_try;; 3548esac 3549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3550 (eval "$ac_try") 2>&5 3551 ac_status=$? 3552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3553 (exit $ac_status); }; }; then 3554 ac_cv_prog_cc_g=yes 3555else 3556 echo "$as_me: failed program was:" >&5 3557sed 's/^/| /' conftest.$ac_ext >&5 3558 3559 CFLAGS="" 3560 cat >conftest.$ac_ext <<_ACEOF 3561/* confdefs.h. */ 3562_ACEOF 3563cat confdefs.h >>conftest.$ac_ext 3564cat >>conftest.$ac_ext <<_ACEOF 3565/* end confdefs.h. */ 3566 3567int 3568main () 3569{ 3570 3571 ; 3572 return 0; 3573} 3574_ACEOF 3575rm -f conftest.$ac_objext 3576if { (ac_try="$ac_compile" 3577case "(($ac_try" in 3578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3579 *) ac_try_echo=$ac_try;; 3580esac 3581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3582 (eval "$ac_compile") 2>conftest.er1 3583 ac_status=$? 3584 grep -v '^ *+' conftest.er1 >conftest.err 3585 rm -f conftest.er1 3586 cat conftest.err >&5 3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3588 (exit $ac_status); } && 3589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3590 { (case "(($ac_try" in 3591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3592 *) ac_try_echo=$ac_try;; 3593esac 3594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3595 (eval "$ac_try") 2>&5 3596 ac_status=$? 3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3598 (exit $ac_status); }; } && 3599 { ac_try='test -s conftest.$ac_objext' 3600 { (case "(($ac_try" in 3601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3602 *) ac_try_echo=$ac_try;; 3603esac 3604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3605 (eval "$ac_try") 2>&5 3606 ac_status=$? 3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3608 (exit $ac_status); }; }; then 3609 : 3610else 3611 echo "$as_me: failed program was:" >&5 3612sed 's/^/| /' conftest.$ac_ext >&5 3613 3614 ac_c_werror_flag=$ac_save_c_werror_flag 3615 CFLAGS="-g" 3616 cat >conftest.$ac_ext <<_ACEOF 3617/* confdefs.h. */ 3618_ACEOF 3619cat confdefs.h >>conftest.$ac_ext 3620cat >>conftest.$ac_ext <<_ACEOF 3621/* end confdefs.h. */ 3622 3623int 3624main () 3625{ 3626 3627 ; 3628 return 0; 3629} 3630_ACEOF 3631rm -f conftest.$ac_objext 3632if { (ac_try="$ac_compile" 3633case "(($ac_try" in 3634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3635 *) ac_try_echo=$ac_try;; 3636esac 3637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3638 (eval "$ac_compile") 2>conftest.er1 3639 ac_status=$? 3640 grep -v '^ *+' conftest.er1 >conftest.err 3641 rm -f conftest.er1 3642 cat conftest.err >&5 3643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3644 (exit $ac_status); } && 3645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3646 { (case "(($ac_try" in 3647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3648 *) ac_try_echo=$ac_try;; 3649esac 3650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3651 (eval "$ac_try") 2>&5 3652 ac_status=$? 3653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3654 (exit $ac_status); }; } && 3655 { ac_try='test -s conftest.$ac_objext' 3656 { (case "(($ac_try" in 3657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3658 *) ac_try_echo=$ac_try;; 3659esac 3660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3661 (eval "$ac_try") 2>&5 3662 ac_status=$? 3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3664 (exit $ac_status); }; }; then 3665 ac_cv_prog_cc_g=yes 3666else 3667 echo "$as_me: failed program was:" >&5 3668sed 's/^/| /' conftest.$ac_ext >&5 3669 3670 3671fi 3672 3673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3674fi 3675 3676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3677fi 3678 3679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3680 ac_c_werror_flag=$ac_save_c_werror_flag 3681fi 3682{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3683echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3684if test "$ac_test_CFLAGS" = set; then 3685 CFLAGS=$ac_save_CFLAGS 3686elif test $ac_cv_prog_cc_g = yes; then 3687 if test "$GCC" = yes; then 3688 CFLAGS="-g -O2" 3689 else 3690 CFLAGS="-g" 3691 fi 3692else 3693 if test "$GCC" = yes; then 3694 CFLAGS="-O2" 3695 else 3696 CFLAGS= 3697 fi 3698fi 3699{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3700echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3701if test "${ac_cv_prog_cc_c89+set}" = set; then 3702 echo $ECHO_N "(cached) $ECHO_C" >&6 3703else 3704 ac_cv_prog_cc_c89=no 3705ac_save_CC=$CC 3706cat >conftest.$ac_ext <<_ACEOF 3707/* confdefs.h. */ 3708_ACEOF 3709cat confdefs.h >>conftest.$ac_ext 3710cat >>conftest.$ac_ext <<_ACEOF 3711/* end confdefs.h. */ 3712#include <stdarg.h> 3713#include <stdio.h> 3714#include <sys/types.h> 3715#include <sys/stat.h> 3716/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3717struct buf { int x; }; 3718FILE * (*rcsopen) (struct buf *, struct stat *, int); 3719static char *e (p, i) 3720 char **p; 3721 int i; 3722{ 3723 return p[i]; 3724} 3725static char *f (char * (*g) (char **, int), char **p, ...) 3726{ 3727 char *s; 3728 va_list v; 3729 va_start (v,p); 3730 s = g (p, va_arg (v,int)); 3731 va_end (v); 3732 return s; 3733} 3734 3735/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3736 function prototypes and stuff, but not '\xHH' hex character constants. 3737 These don't provoke an error unfortunately, instead are silently treated 3738 as 'x'. The following induces an error, until -std is added to get 3739 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3740 array size at least. It's necessary to write '\x00'==0 to get something 3741 that's true only with -std. */ 3742int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3743 3744/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3745 inside strings and character constants. */ 3746#define FOO(x) 'x' 3747int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3748 3749int test (int i, double x); 3750struct s1 {int (*f) (int a);}; 3751struct s2 {int (*f) (double a);}; 3752int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3753int argc; 3754char **argv; 3755int 3756main () 3757{ 3758return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3759 ; 3760 return 0; 3761} 3762_ACEOF 3763for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3764 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3765do 3766 CC="$ac_save_CC $ac_arg" 3767 rm -f conftest.$ac_objext 3768if { (ac_try="$ac_compile" 3769case "(($ac_try" in 3770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3771 *) ac_try_echo=$ac_try;; 3772esac 3773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3774 (eval "$ac_compile") 2>conftest.er1 3775 ac_status=$? 3776 grep -v '^ *+' conftest.er1 >conftest.err 3777 rm -f conftest.er1 3778 cat conftest.err >&5 3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3780 (exit $ac_status); } && 3781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3782 { (case "(($ac_try" in 3783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3784 *) ac_try_echo=$ac_try;; 3785esac 3786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3787 (eval "$ac_try") 2>&5 3788 ac_status=$? 3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3790 (exit $ac_status); }; } && 3791 { ac_try='test -s conftest.$ac_objext' 3792 { (case "(($ac_try" in 3793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3794 *) ac_try_echo=$ac_try;; 3795esac 3796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3797 (eval "$ac_try") 2>&5 3798 ac_status=$? 3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3800 (exit $ac_status); }; }; then 3801 ac_cv_prog_cc_c89=$ac_arg 3802else 3803 echo "$as_me: failed program was:" >&5 3804sed 's/^/| /' conftest.$ac_ext >&5 3805 3806 3807fi 3808 3809rm -f core conftest.err conftest.$ac_objext 3810 test "x$ac_cv_prog_cc_c89" != "xno" && break 3811done 3812rm -f conftest.$ac_ext 3813CC=$ac_save_CC 3814 3815fi 3816# AC_CACHE_VAL 3817case "x$ac_cv_prog_cc_c89" in 3818 x) 3819 { echo "$as_me:$LINENO: result: none needed" >&5 3820echo "${ECHO_T}none needed" >&6; } ;; 3821 xno) 3822 { echo "$as_me:$LINENO: result: unsupported" >&5 3823echo "${ECHO_T}unsupported" >&6; } ;; 3824 *) 3825 CC="$CC $ac_cv_prog_cc_c89" 3826 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3827echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3828esac 3829 3830 3831ac_ext=c 3832ac_cpp='$CPP $CPPFLAGS' 3833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3835ac_compiler_gnu=$ac_cv_c_compiler_gnu 3836 3837depcc="$CC" am_compiler_list= 3838 3839{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3840echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3841if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3842 echo $ECHO_N "(cached) $ECHO_C" >&6 3843else 3844 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3845 # We make a subdir and do the tests there. Otherwise we can end up 3846 # making bogus files that we don't know about and never remove. For 3847 # instance it was reported that on HP-UX the gcc test will end up 3848 # making a dummy file named `D' -- because `-MD' means `put the output 3849 # in D'. 3850 mkdir conftest.dir 3851 # Copy depcomp to subdir because otherwise we won't find it if we're 3852 # using a relative directory. 3853 cp "$am_depcomp" conftest.dir 3854 cd conftest.dir 3855 # We will build objects and dependencies in a subdirectory because 3856 # it helps to detect inapplicable dependency modes. For instance 3857 # both Tru64's cc and ICC support -MD to output dependencies as a 3858 # side effect of compilation, but ICC will put the dependencies in 3859 # the current directory while Tru64 will put them in the object 3860 # directory. 3861 mkdir sub 3862 3863 am_cv_CC_dependencies_compiler_type=none 3864 if test "$am_compiler_list" = ""; then 3865 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3866 fi 3867 for depmode in $am_compiler_list; do 3868 # Setup a source with many dependencies, because some compilers 3869 # like to wrap large dependency lists on column 80 (with \), and 3870 # we should not choose a depcomp mode which is confused by this. 3871 # 3872 # We need to recreate these files for each test, as the compiler may 3873 # overwrite some of them when testing with obscure command lines. 3874 # This happens at least with the AIX C compiler. 3875 : > sub/conftest.c 3876 for i in 1 2 3 4 5 6; do 3877 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3878 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3879 # Solaris 8's {/usr,}/bin/sh. 3880 touch sub/conftst$i.h 3881 done 3882 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3883 3884 case $depmode in 3885 nosideeffect) 3886 # after this tag, mechanisms are not by side-effect, so they'll 3887 # only be used when explicitly requested 3888 if test "x$enable_dependency_tracking" = xyes; then 3889 continue 3890 else 3891 break 3892 fi 3893 ;; 3894 none) break ;; 3895 esac 3896 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3897 # mode. It turns out that the SunPro C++ compiler does not properly 3898 # handle `-M -o', and we need to detect this. 3899 if depmode=$depmode \ 3900 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3901 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3902 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3903 >/dev/null 2>conftest.err && 3904 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3905 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3906 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3907 # icc doesn't choke on unknown options, it will just issue warnings 3908 # or remarks (even with -Werror). So we grep stderr for any message 3909 # that says an option was ignored or not supported. 3910 # When given -MP, icc 7.0 and 7.1 complain thusly: 3911 # icc: Command line warning: ignoring option '-M'; no argument required 3912 # The diagnosis changed in icc 8.0: 3913 # icc: Command line remark: option '-MP' not supported 3914 if (grep 'ignoring option' conftest.err || 3915 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3916 am_cv_CC_dependencies_compiler_type=$depmode 3917 break 3918 fi 3919 fi 3920 done 3921 3922 cd .. 3923 rm -rf conftest.dir 3924else 3925 am_cv_CC_dependencies_compiler_type=none 3926fi 3927 3928fi 3929{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3930echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3931CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3932 3933 3934 3935if 3936 test "x$enable_dependency_tracking" != xno \ 3937 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3938 am__fastdepCC_TRUE= 3939 am__fastdepCC_FALSE='#' 3940else 3941 am__fastdepCC_TRUE='#' 3942 am__fastdepCC_FALSE= 3943fi 3944 3945 3946{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3947echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 3948if test "${lt_cv_path_SED+set}" = set; then 3949 echo $ECHO_N "(cached) $ECHO_C" >&6 3950else 3951 # Loop through the user's path and test for sed and gsed. 3952# Then use that list of sed's as ones to test for truncation. 3953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3954for as_dir in $PATH 3955do 3956 IFS=$as_save_IFS 3957 test -z "$as_dir" && as_dir=. 3958 for lt_ac_prog in sed gsed; do 3959 for ac_exec_ext in '' $ac_executable_extensions; do 3960 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3961 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3962 fi 3963 done 3964 done 3965done 3966lt_ac_max=0 3967lt_ac_count=0 3968# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3969# along with /bin/sed that truncates output. 3970for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3971 test ! -f $lt_ac_sed && continue 3972 cat /dev/null > conftest.in 3973 lt_ac_count=0 3974 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3975 # Check for GNU sed and select it if it is found. 3976 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3977 lt_cv_path_SED=$lt_ac_sed 3978 break 3979 fi 3980 while true; do 3981 cat conftest.in conftest.in >conftest.tmp 3982 mv conftest.tmp conftest.in 3983 cp conftest.in conftest.nl 3984 echo >>conftest.nl 3985 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3986 cmp -s conftest.out conftest.nl || break 3987 # 10000 chars as input seems more than enough 3988 test $lt_ac_count -gt 10 && break 3989 lt_ac_count=`expr $lt_ac_count + 1` 3990 if test $lt_ac_count -gt $lt_ac_max; then 3991 lt_ac_max=$lt_ac_count 3992 lt_cv_path_SED=$lt_ac_sed 3993 fi 3994 done 3995done 3996 3997fi 3998 3999SED=$lt_cv_path_SED 4000{ echo "$as_me:$LINENO: result: $SED" >&5 4001echo "${ECHO_T}$SED" >&6; } 4002 4003{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4004echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 4005if test "${ac_cv_path_GREP+set}" = set; then 4006 echo $ECHO_N "(cached) $ECHO_C" >&6 4007else 4008 # Extract the first word of "grep ggrep" to use in msg output 4009if test -z "$GREP"; then 4010set dummy grep ggrep; ac_prog_name=$2 4011if test "${ac_cv_path_GREP+set}" = set; then 4012 echo $ECHO_N "(cached) $ECHO_C" >&6 4013else 4014 ac_path_GREP_found=false 4015# Loop through the user's path and test for each of PROGNAME-LIST 4016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4017for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4018do 4019 IFS=$as_save_IFS 4020 test -z "$as_dir" && as_dir=. 4021 for ac_prog in grep ggrep; do 4022 for ac_exec_ext in '' $ac_executable_extensions; do 4023 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4024 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue 4025 # Check for GNU ac_path_GREP and select it if it is found. 4026 # Check for GNU $ac_path_GREP 4027case `"$ac_path_GREP" --version 2>&1` in 4028*GNU*) 4029 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4030*) 4031 ac_count=0 4032 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4033 while : 4034 do 4035 cat "conftest.in" "conftest.in" >"conftest.tmp" 4036 mv "conftest.tmp" "conftest.in" 4037 cp "conftest.in" "conftest.nl" 4038 echo 'GREP' >> "conftest.nl" 4039 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4040 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4041 ac_count=`expr $ac_count + 1` 4042 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4043 # Best one so far, save it but keep looking for a better one 4044 ac_cv_path_GREP="$ac_path_GREP" 4045 ac_path_GREP_max=$ac_count 4046 fi 4047 # 10*(2^10) chars as input seems more than enough 4048 test $ac_count -gt 10 && break 4049 done 4050 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4051esac 4052 4053 4054 $ac_path_GREP_found && break 3 4055 done 4056done 4057 4058done 4059IFS=$as_save_IFS 4060 4061 4062fi 4063 4064GREP="$ac_cv_path_GREP" 4065if test -z "$GREP"; then 4066 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4067echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4068 { (exit 1); exit 1; }; } 4069fi 4070 4071else 4072 ac_cv_path_GREP=$GREP 4073fi 4074 4075 4076fi 4077{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4078echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 4079 GREP="$ac_cv_path_GREP" 4080 4081 4082{ echo "$as_me:$LINENO: checking for egrep" >&5 4083echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 4084if test "${ac_cv_path_EGREP+set}" = set; then 4085 echo $ECHO_N "(cached) $ECHO_C" >&6 4086else 4087 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4088 then ac_cv_path_EGREP="$GREP -E" 4089 else 4090 # Extract the first word of "egrep" to use in msg output 4091if test -z "$EGREP"; then 4092set dummy egrep; ac_prog_name=$2 4093if test "${ac_cv_path_EGREP+set}" = set; then 4094 echo $ECHO_N "(cached) $ECHO_C" >&6 4095else 4096 ac_path_EGREP_found=false 4097# Loop through the user's path and test for each of PROGNAME-LIST 4098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4099for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4100do 4101 IFS=$as_save_IFS 4102 test -z "$as_dir" && as_dir=. 4103 for ac_prog in egrep; do 4104 for ac_exec_ext in '' $ac_executable_extensions; do 4105 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4106 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue 4107 # Check for GNU ac_path_EGREP and select it if it is found. 4108 # Check for GNU $ac_path_EGREP 4109case `"$ac_path_EGREP" --version 2>&1` in 4110*GNU*) 4111 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4112*) 4113 ac_count=0 4114 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4115 while : 4116 do 4117 cat "conftest.in" "conftest.in" >"conftest.tmp" 4118 mv "conftest.tmp" "conftest.in" 4119 cp "conftest.in" "conftest.nl" 4120 echo 'EGREP' >> "conftest.nl" 4121 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4122 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4123 ac_count=`expr $ac_count + 1` 4124 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4125 # Best one so far, save it but keep looking for a better one 4126 ac_cv_path_EGREP="$ac_path_EGREP" 4127 ac_path_EGREP_max=$ac_count 4128 fi 4129 # 10*(2^10) chars as input seems more than enough 4130 test $ac_count -gt 10 && break 4131 done 4132 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4133esac 4134 4135 4136 $ac_path_EGREP_found && break 3 4137 done 4138done 4139 4140done 4141IFS=$as_save_IFS 4142 4143 4144fi 4145 4146EGREP="$ac_cv_path_EGREP" 4147if test -z "$EGREP"; then 4148 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4149echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4150 { (exit 1); exit 1; }; } 4151fi 4152 4153else 4154 ac_cv_path_EGREP=$EGREP 4155fi 4156 4157 4158 fi 4159fi 4160{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4161echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4162 EGREP="$ac_cv_path_EGREP" 4163 4164 4165 4166# Check whether --with-gnu-ld was given. 4167if test "${with_gnu_ld+set}" = set; then 4168 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4169else 4170 with_gnu_ld=no 4171fi 4172 4173ac_prog=ld 4174if test "$GCC" = yes; then 4175 # Check if gcc -print-prog-name=ld gives a path. 4176 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4177echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 4178 case $host in 4179 *-*-mingw*) 4180 # gcc leaves a trailing carriage return which upsets mingw 4181 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4182 *) 4183 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4184 esac 4185 case $ac_prog in 4186 # Accept absolute paths. 4187 [\\/]* | ?:[\\/]*) 4188 re_direlt='/[^/][^/]*/\.\./' 4189 # Canonicalize the pathname of ld 4190 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 4191 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4192 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 4193 done 4194 test -z "$LD" && LD="$ac_prog" 4195 ;; 4196 "") 4197 # If it fails, then pretend we aren't using GCC. 4198 ac_prog=ld 4199 ;; 4200 *) 4201 # If it is relative, then search for the first ld in PATH. 4202 with_gnu_ld=unknown 4203 ;; 4204 esac 4205elif test "$with_gnu_ld" = yes; then 4206 { echo "$as_me:$LINENO: checking for GNU ld" >&5 4207echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 4208else 4209 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4210echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 4211fi 4212if test "${lt_cv_path_LD+set}" = set; then 4213 echo $ECHO_N "(cached) $ECHO_C" >&6 4214else 4215 if test -z "$LD"; then 4216 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4217 for ac_dir in $PATH; do 4218 IFS="$lt_save_ifs" 4219 test -z "$ac_dir" && ac_dir=. 4220 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4221 lt_cv_path_LD="$ac_dir/$ac_prog" 4222 # Check to see if the program is GNU ld. I'd rather use --version, 4223 # but apparently some variants of GNU ld only accept -v. 4224 # Break only if it was the GNU/non-GNU ld that we prefer. 4225 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4226 *GNU* | *'with BFD'*) 4227 test "$with_gnu_ld" != no && break 4228 ;; 4229 *) 4230 test "$with_gnu_ld" != yes && break 4231 ;; 4232 esac 4233 fi 4234 done 4235 IFS="$lt_save_ifs" 4236else 4237 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4238fi 4239fi 4240 4241LD="$lt_cv_path_LD" 4242if test -n "$LD"; then 4243 { echo "$as_me:$LINENO: result: $LD" >&5 4244echo "${ECHO_T}$LD" >&6; } 4245else 4246 { echo "$as_me:$LINENO: result: no" >&5 4247echo "${ECHO_T}no" >&6; } 4248fi 4249test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4250echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4251 { (exit 1); exit 1; }; } 4252{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4253echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 4254if test "${lt_cv_prog_gnu_ld+set}" = set; then 4255 echo $ECHO_N "(cached) $ECHO_C" >&6 4256else 4257 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4258case `$LD -v 2>&1 </dev/null` in 4259*GNU* | *'with BFD'*) 4260 lt_cv_prog_gnu_ld=yes 4261 ;; 4262*) 4263 lt_cv_prog_gnu_ld=no 4264 ;; 4265esac 4266fi 4267{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4268echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 4269with_gnu_ld=$lt_cv_prog_gnu_ld 4270 4271 4272{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4273echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 4274if test "${lt_cv_ld_reload_flag+set}" = set; then 4275 echo $ECHO_N "(cached) $ECHO_C" >&6 4276else 4277 lt_cv_ld_reload_flag='-r' 4278fi 4279{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4280echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 4281reload_flag=$lt_cv_ld_reload_flag 4282case $reload_flag in 4283"" | " "*) ;; 4284*) reload_flag=" $reload_flag" ;; 4285esac 4286reload_cmds='$LD$reload_flag -o $output$reload_objs' 4287case $host_os in 4288 darwin*) 4289 if test "$GCC" = yes; then 4290 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4291 else 4292 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4293 fi 4294 ;; 4295esac 4296 4297{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4298echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 4299if test "${lt_cv_path_NM+set}" = set; then 4300 echo $ECHO_N "(cached) $ECHO_C" >&6 4301else 4302 if test -n "$NM"; then 4303 # Let the user override the test. 4304 lt_cv_path_NM="$NM" 4305else 4306 lt_nm_to_check="${ac_tool_prefix}nm" 4307 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4308 lt_nm_to_check="$lt_nm_to_check nm" 4309 fi 4310 for lt_tmp_nm in $lt_nm_to_check; do 4311 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4312 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4313 IFS="$lt_save_ifs" 4314 test -z "$ac_dir" && ac_dir=. 4315 tmp_nm="$ac_dir/$lt_tmp_nm" 4316 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4317 # Check to see if the nm accepts a BSD-compat flag. 4318 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4319 # nm: unknown option "B" ignored 4320 # Tru64's nm complains that /dev/null is an invalid object file 4321 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4322 */dev/null* | *'Invalid file or object type'*) 4323 lt_cv_path_NM="$tmp_nm -B" 4324 break 4325 ;; 4326 *) 4327 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4328 */dev/null*) 4329 lt_cv_path_NM="$tmp_nm -p" 4330 break 4331 ;; 4332 *) 4333 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4334 continue # so that we can try to find one that supports BSD flags 4335 ;; 4336 esac 4337 ;; 4338 esac 4339 fi 4340 done 4341 IFS="$lt_save_ifs" 4342 done 4343 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4344fi 4345fi 4346{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4347echo "${ECHO_T}$lt_cv_path_NM" >&6; } 4348NM="$lt_cv_path_NM" 4349 4350{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 4351echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } 4352if test "${lt_cv_deplibs_check_method+set}" = set; then 4353 echo $ECHO_N "(cached) $ECHO_C" >&6 4354else 4355 lt_cv_file_magic_cmd='$MAGIC_CMD' 4356lt_cv_file_magic_test_file= 4357lt_cv_deplibs_check_method='unknown' 4358# Need to set the preceding variable on all platforms that support 4359# interlibrary dependencies. 4360# 'none' -- dependencies not supported. 4361# `unknown' -- same as none, but documents that we really don't know. 4362# 'pass_all' -- all dependencies passed with no checks. 4363# 'test_compile' -- check by making test program. 4364# 'file_magic [[regex]]' -- check by looking for files in library path 4365# which responds to the $file_magic_cmd with a given extended regex. 4366# If you have `file' or equivalent on your system and you're not sure 4367# whether `pass_all' will *always* work, you probably want this one. 4368 4369case $host_os in 4370aix4* | aix5*) 4371 lt_cv_deplibs_check_method=pass_all 4372 ;; 4373 4374beos*) 4375 lt_cv_deplibs_check_method=pass_all 4376 ;; 4377 4378bsdi[45]*) 4379 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4380 lt_cv_file_magic_cmd='/usr/bin/file -L' 4381 lt_cv_file_magic_test_file=/shlib/libc.so 4382 ;; 4383 4384cygwin*) 4385 # func_win32_libid is a shell function defined in ltmain.sh 4386 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4387 lt_cv_file_magic_cmd='func_win32_libid' 4388 ;; 4389 4390mingw* | pw32*) 4391 # Base MSYS/MinGW do not provide the 'file' command needed by 4392 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 4393 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4394 lt_cv_file_magic_cmd='$OBJDUMP -f' 4395 ;; 4396 4397darwin* | rhapsody*) 4398 lt_cv_deplibs_check_method=pass_all 4399 ;; 4400 4401freebsd* | kfreebsd*-gnu | dragonfly*) 4402 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4403 case $host_cpu in 4404 i*86 ) 4405 # Not sure whether the presence of OpenBSD here was a mistake. 4406 # Let's accept both of them until this is cleared up. 4407 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4408 lt_cv_file_magic_cmd=/usr/bin/file 4409 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4410 ;; 4411 esac 4412 else 4413 lt_cv_deplibs_check_method=pass_all 4414 fi 4415 ;; 4416 4417gnu*) 4418 lt_cv_deplibs_check_method=pass_all 4419 ;; 4420 4421hpux10.20* | hpux11*) 4422 lt_cv_file_magic_cmd=/usr/bin/file 4423 case $host_cpu in 4424 ia64*) 4425 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4426 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4427 ;; 4428 hppa*64*) 4429 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]' 4430 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4431 ;; 4432 *) 4433 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4434 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4435 ;; 4436 esac 4437 ;; 4438 4439interix3*) 4440 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4441 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4442 ;; 4443 4444irix5* | irix6* | nonstopux*) 4445 case $LD in 4446 *-32|*"-32 ") libmagic=32-bit;; 4447 *-n32|*"-n32 ") libmagic=N32;; 4448 *-64|*"-64 ") libmagic=64-bit;; 4449 *) libmagic=never-match;; 4450 esac 4451 lt_cv_deplibs_check_method=pass_all 4452 ;; 4453 4454# This must be Linux ELF. 4455linux*) 4456 lt_cv_deplibs_check_method=pass_all 4457 ;; 4458 4459netbsd*) 4460 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4461 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4462 else 4463 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4464 fi 4465 ;; 4466 4467newos6*) 4468 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4469 lt_cv_file_magic_cmd=/usr/bin/file 4470 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4471 ;; 4472 4473nto-qnx*) 4474 lt_cv_deplibs_check_method=unknown 4475 ;; 4476 4477openbsd*) 4478 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4479 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4480 else 4481 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4482 fi 4483 ;; 4484 4485osf3* | osf4* | osf5*) 4486 lt_cv_deplibs_check_method=pass_all 4487 ;; 4488 4489solaris*) 4490 lt_cv_deplibs_check_method=pass_all 4491 ;; 4492 4493sysv4 | sysv4.3*) 4494 case $host_vendor in 4495 motorola) 4496 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]' 4497 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4498 ;; 4499 ncr) 4500 lt_cv_deplibs_check_method=pass_all 4501 ;; 4502 sequent) 4503 lt_cv_file_magic_cmd='/bin/file' 4504 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4505 ;; 4506 sni) 4507 lt_cv_file_magic_cmd='/bin/file' 4508 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4509 lt_cv_file_magic_test_file=/lib/libc.so 4510 ;; 4511 siemens) 4512 lt_cv_deplibs_check_method=pass_all 4513 ;; 4514 pc) 4515 lt_cv_deplibs_check_method=pass_all 4516 ;; 4517 esac 4518 ;; 4519 4520sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4521 lt_cv_deplibs_check_method=pass_all 4522 ;; 4523esac 4524 4525fi 4526{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4527echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 4528file_magic_cmd=$lt_cv_file_magic_cmd 4529deplibs_check_method=$lt_cv_deplibs_check_method 4530test -z "$deplibs_check_method" && deplibs_check_method=unknown 4531 4532 4533 4534 4535# If no C compiler was specified, use CC. 4536LTCC=${LTCC-"$CC"} 4537 4538# If no C compiler flags were specified, use CFLAGS. 4539LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4540 4541# Allow CC to be a program name with arguments. 4542compiler=$CC 4543 4544 4545# Check whether --enable-libtool-lock was given. 4546if test "${enable_libtool_lock+set}" = set; then 4547 enableval=$enable_libtool_lock; 4548fi 4549 4550test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4551 4552# Some flags need to be propagated to the compiler or linker for good 4553# libtool support. 4554case $host in 4555ia64-*-hpux*) 4556 # Find out which ABI we are using. 4557 echo 'int i;' > conftest.$ac_ext 4558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4559 (eval $ac_compile) 2>&5 4560 ac_status=$? 4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4562 (exit $ac_status); }; then 4563 case `/usr/bin/file conftest.$ac_objext` in 4564 *ELF-32*) 4565 HPUX_IA64_MODE="32" 4566 ;; 4567 *ELF-64*) 4568 HPUX_IA64_MODE="64" 4569 ;; 4570 esac 4571 fi 4572 rm -rf conftest* 4573 ;; 4574*-*-irix6*) 4575 # Find out which ABI we are using. 4576 echo '#line 4576 "configure"' > conftest.$ac_ext 4577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4578 (eval $ac_compile) 2>&5 4579 ac_status=$? 4580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4581 (exit $ac_status); }; then 4582 if test "$lt_cv_prog_gnu_ld" = yes; then 4583 case `/usr/bin/file conftest.$ac_objext` in 4584 *32-bit*) 4585 LD="${LD-ld} -melf32bsmip" 4586 ;; 4587 *N32*) 4588 LD="${LD-ld} -melf32bmipn32" 4589 ;; 4590 *64-bit*) 4591 LD="${LD-ld} -melf64bmip" 4592 ;; 4593 esac 4594 else 4595 case `/usr/bin/file conftest.$ac_objext` in 4596 *32-bit*) 4597 LD="${LD-ld} -32" 4598 ;; 4599 *N32*) 4600 LD="${LD-ld} -n32" 4601 ;; 4602 *64-bit*) 4603 LD="${LD-ld} -64" 4604 ;; 4605 esac 4606 fi 4607 fi 4608 rm -rf conftest* 4609 ;; 4610 4611x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 4612 # Find out which ABI we are using. 4613 echo 'int i;' > conftest.$ac_ext 4614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4615 (eval $ac_compile) 2>&5 4616 ac_status=$? 4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4618 (exit $ac_status); }; then 4619 case `/usr/bin/file conftest.o` in 4620 *32-bit*) 4621 case $host in 4622 x86_64-*linux*) 4623 LD="${LD-ld} -m elf_i386" 4624 ;; 4625 ppc64-*linux*|powerpc64-*linux*) 4626 LD="${LD-ld} -m elf32ppclinux" 4627 ;; 4628 s390x-*linux*) 4629 LD="${LD-ld} -m elf_s390" 4630 ;; 4631 sparc64-*linux*) 4632 LD="${LD-ld} -m elf32_sparc" 4633 ;; 4634 esac 4635 ;; 4636 *64-bit*) 4637 case $host in 4638 x86_64-*linux*) 4639 LD="${LD-ld} -m elf_x86_64" 4640 ;; 4641 ppc*-*linux*|powerpc*-*linux*) 4642 LD="${LD-ld} -m elf64ppc" 4643 ;; 4644 s390*-*linux*) 4645 LD="${LD-ld} -m elf64_s390" 4646 ;; 4647 sparc*-*linux*) 4648 LD="${LD-ld} -m elf64_sparc" 4649 ;; 4650 esac 4651 ;; 4652 esac 4653 fi 4654 rm -rf conftest* 4655 ;; 4656 4657*-*-sco3.2v5*) 4658 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4659 SAVE_CFLAGS="$CFLAGS" 4660 CFLAGS="$CFLAGS -belf" 4661 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4662echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 4663if test "${lt_cv_cc_needs_belf+set}" = set; then 4664 echo $ECHO_N "(cached) $ECHO_C" >&6 4665else 4666 ac_ext=c 4667ac_cpp='$CPP $CPPFLAGS' 4668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4670ac_compiler_gnu=$ac_cv_c_compiler_gnu 4671 4672 cat >conftest.$ac_ext <<_ACEOF 4673/* confdefs.h. */ 4674_ACEOF 4675cat confdefs.h >>conftest.$ac_ext 4676cat >>conftest.$ac_ext <<_ACEOF 4677/* end confdefs.h. */ 4678 4679int 4680main () 4681{ 4682 4683 ; 4684 return 0; 4685} 4686_ACEOF 4687rm -f conftest.$ac_objext conftest$ac_exeext 4688if { (ac_try="$ac_link" 4689case "(($ac_try" in 4690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4691 *) ac_try_echo=$ac_try;; 4692esac 4693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4694 (eval "$ac_link") 2>conftest.er1 4695 ac_status=$? 4696 grep -v '^ *+' conftest.er1 >conftest.err 4697 rm -f conftest.er1 4698 cat conftest.err >&5 4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4700 (exit $ac_status); } && 4701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4702 { (case "(($ac_try" in 4703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4704 *) ac_try_echo=$ac_try;; 4705esac 4706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4707 (eval "$ac_try") 2>&5 4708 ac_status=$? 4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4710 (exit $ac_status); }; } && 4711 { ac_try='test -s conftest$ac_exeext' 4712 { (case "(($ac_try" in 4713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4714 *) ac_try_echo=$ac_try;; 4715esac 4716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4717 (eval "$ac_try") 2>&5 4718 ac_status=$? 4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4720 (exit $ac_status); }; }; then 4721 lt_cv_cc_needs_belf=yes 4722else 4723 echo "$as_me: failed program was:" >&5 4724sed 's/^/| /' conftest.$ac_ext >&5 4725 4726 lt_cv_cc_needs_belf=no 4727fi 4728 4729rm -f core conftest.err conftest.$ac_objext \ 4730 conftest$ac_exeext conftest.$ac_ext 4731 ac_ext=c 4732ac_cpp='$CPP $CPPFLAGS' 4733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4735ac_compiler_gnu=$ac_cv_c_compiler_gnu 4736 4737fi 4738{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4739echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 4740 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4741 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4742 CFLAGS="$SAVE_CFLAGS" 4743 fi 4744 ;; 4745sparc*-*solaris*) 4746 # Find out which ABI we are using. 4747 echo 'int i;' > conftest.$ac_ext 4748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4749 (eval $ac_compile) 2>&5 4750 ac_status=$? 4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4752 (exit $ac_status); }; then 4753 case `/usr/bin/file conftest.o` in 4754 *64-bit*) 4755 case $lt_cv_prog_gnu_ld in 4756 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4757 *) LD="${LD-ld} -64" ;; 4758 esac 4759 ;; 4760 esac 4761 fi 4762 rm -rf conftest* 4763 ;; 4764 4765 4766esac 4767 4768need_locks="$enable_libtool_lock" 4769 4770 4771ac_ext=c 4772ac_cpp='$CPP $CPPFLAGS' 4773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4775ac_compiler_gnu=$ac_cv_c_compiler_gnu 4776{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4777echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 4778# On Suns, sometimes $CPP names a directory. 4779if test -n "$CPP" && test -d "$CPP"; then 4780 CPP= 4781fi 4782if test -z "$CPP"; then 4783 if test "${ac_cv_prog_CPP+set}" = set; then 4784 echo $ECHO_N "(cached) $ECHO_C" >&6 4785else 4786 # Double quotes because CPP needs to be expanded 4787 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4788 do 4789 ac_preproc_ok=false 4790for ac_c_preproc_warn_flag in '' yes 4791do 4792 # Use a header file that comes with gcc, so configuring glibc 4793 # with a fresh cross-compiler works. 4794 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4795 # <limits.h> exists even on freestanding compilers. 4796 # On the NeXT, cc -E runs the code through the compiler's parser, 4797 # not just through cpp. "Syntax error" is here to catch this case. 4798 cat >conftest.$ac_ext <<_ACEOF 4799/* confdefs.h. */ 4800_ACEOF 4801cat confdefs.h >>conftest.$ac_ext 4802cat >>conftest.$ac_ext <<_ACEOF 4803/* end confdefs.h. */ 4804#ifdef __STDC__ 4805# include <limits.h> 4806#else 4807# include <assert.h> 4808#endif 4809 Syntax error 4810_ACEOF 4811if { (ac_try="$ac_cpp conftest.$ac_ext" 4812case "(($ac_try" in 4813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4814 *) ac_try_echo=$ac_try;; 4815esac 4816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4818 ac_status=$? 4819 grep -v '^ *+' conftest.er1 >conftest.err 4820 rm -f conftest.er1 4821 cat conftest.err >&5 4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4823 (exit $ac_status); } >/dev/null; then 4824 if test -s conftest.err; then 4825 ac_cpp_err=$ac_c_preproc_warn_flag 4826 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4827 else 4828 ac_cpp_err= 4829 fi 4830else 4831 ac_cpp_err=yes 4832fi 4833if test -z "$ac_cpp_err"; then 4834 : 4835else 4836 echo "$as_me: failed program was:" >&5 4837sed 's/^/| /' conftest.$ac_ext >&5 4838 4839 # Broken: fails on valid input. 4840continue 4841fi 4842 4843rm -f conftest.err conftest.$ac_ext 4844 4845 # OK, works on sane cases. Now check whether nonexistent headers 4846 # can be detected and how. 4847 cat >conftest.$ac_ext <<_ACEOF 4848/* confdefs.h. */ 4849_ACEOF 4850cat confdefs.h >>conftest.$ac_ext 4851cat >>conftest.$ac_ext <<_ACEOF 4852/* end confdefs.h. */ 4853#include <ac_nonexistent.h> 4854_ACEOF 4855if { (ac_try="$ac_cpp conftest.$ac_ext" 4856case "(($ac_try" in 4857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4858 *) ac_try_echo=$ac_try;; 4859esac 4860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4862 ac_status=$? 4863 grep -v '^ *+' conftest.er1 >conftest.err 4864 rm -f conftest.er1 4865 cat conftest.err >&5 4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4867 (exit $ac_status); } >/dev/null; then 4868 if test -s conftest.err; then 4869 ac_cpp_err=$ac_c_preproc_warn_flag 4870 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4871 else 4872 ac_cpp_err= 4873 fi 4874else 4875 ac_cpp_err=yes 4876fi 4877if test -z "$ac_cpp_err"; then 4878 # Broken: success on invalid input. 4879continue 4880else 4881 echo "$as_me: failed program was:" >&5 4882sed 's/^/| /' conftest.$ac_ext >&5 4883 4884 # Passes both tests. 4885ac_preproc_ok=: 4886break 4887fi 4888 4889rm -f conftest.err conftest.$ac_ext 4890 4891done 4892# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4893rm -f conftest.err conftest.$ac_ext 4894if $ac_preproc_ok; then 4895 break 4896fi 4897 4898 done 4899 ac_cv_prog_CPP=$CPP 4900 4901fi 4902 CPP=$ac_cv_prog_CPP 4903else 4904 ac_cv_prog_CPP=$CPP 4905fi 4906{ echo "$as_me:$LINENO: result: $CPP" >&5 4907echo "${ECHO_T}$CPP" >&6; } 4908ac_preproc_ok=false 4909for ac_c_preproc_warn_flag in '' yes 4910do 4911 # Use a header file that comes with gcc, so configuring glibc 4912 # with a fresh cross-compiler works. 4913 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4914 # <limits.h> exists even on freestanding compilers. 4915 # On the NeXT, cc -E runs the code through the compiler's parser, 4916 # not just through cpp. "Syntax error" is here to catch this case. 4917 cat >conftest.$ac_ext <<_ACEOF 4918/* confdefs.h. */ 4919_ACEOF 4920cat confdefs.h >>conftest.$ac_ext 4921cat >>conftest.$ac_ext <<_ACEOF 4922/* end confdefs.h. */ 4923#ifdef __STDC__ 4924# include <limits.h> 4925#else 4926# include <assert.h> 4927#endif 4928 Syntax error 4929_ACEOF 4930if { (ac_try="$ac_cpp conftest.$ac_ext" 4931case "(($ac_try" in 4932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4933 *) ac_try_echo=$ac_try;; 4934esac 4935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4936 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4937 ac_status=$? 4938 grep -v '^ *+' conftest.er1 >conftest.err 4939 rm -f conftest.er1 4940 cat conftest.err >&5 4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4942 (exit $ac_status); } >/dev/null; then 4943 if test -s conftest.err; then 4944 ac_cpp_err=$ac_c_preproc_warn_flag 4945 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4946 else 4947 ac_cpp_err= 4948 fi 4949else 4950 ac_cpp_err=yes 4951fi 4952if test -z "$ac_cpp_err"; then 4953 : 4954else 4955 echo "$as_me: failed program was:" >&5 4956sed 's/^/| /' conftest.$ac_ext >&5 4957 4958 # Broken: fails on valid input. 4959continue 4960fi 4961 4962rm -f conftest.err conftest.$ac_ext 4963 4964 # OK, works on sane cases. Now check whether nonexistent headers 4965 # can be detected and how. 4966 cat >conftest.$ac_ext <<_ACEOF 4967/* confdefs.h. */ 4968_ACEOF 4969cat confdefs.h >>conftest.$ac_ext 4970cat >>conftest.$ac_ext <<_ACEOF 4971/* end confdefs.h. */ 4972#include <ac_nonexistent.h> 4973_ACEOF 4974if { (ac_try="$ac_cpp conftest.$ac_ext" 4975case "(($ac_try" in 4976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4977 *) ac_try_echo=$ac_try;; 4978esac 4979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4980 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4981 ac_status=$? 4982 grep -v '^ *+' conftest.er1 >conftest.err 4983 rm -f conftest.er1 4984 cat conftest.err >&5 4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4986 (exit $ac_status); } >/dev/null; then 4987 if test -s conftest.err; then 4988 ac_cpp_err=$ac_c_preproc_warn_flag 4989 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4990 else 4991 ac_cpp_err= 4992 fi 4993else 4994 ac_cpp_err=yes 4995fi 4996if test -z "$ac_cpp_err"; then 4997 # Broken: success on invalid input. 4998continue 4999else 5000 echo "$as_me: failed program was:" >&5 5001sed 's/^/| /' conftest.$ac_ext >&5 5002 5003 # Passes both tests. 5004ac_preproc_ok=: 5005break 5006fi 5007 5008rm -f conftest.err conftest.$ac_ext 5009 5010done 5011# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5012rm -f conftest.err conftest.$ac_ext 5013if $ac_preproc_ok; then 5014 : 5015else 5016 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 5017See \`config.log' for more details." >&5 5018echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 5019See \`config.log' for more details." >&2;} 5020 { (exit 1); exit 1; }; } 5021fi 5022 5023ac_ext=c 5024ac_cpp='$CPP $CPPFLAGS' 5025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5027ac_compiler_gnu=$ac_cv_c_compiler_gnu 5028 5029 5030{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 5031echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 5032if test "${ac_cv_header_stdc+set}" = set; then 5033 echo $ECHO_N "(cached) $ECHO_C" >&6 5034else 5035 cat >conftest.$ac_ext <<_ACEOF 5036/* confdefs.h. */ 5037_ACEOF 5038cat confdefs.h >>conftest.$ac_ext 5039cat >>conftest.$ac_ext <<_ACEOF 5040/* end confdefs.h. */ 5041#include <stdlib.h> 5042#include <stdarg.h> 5043#include <string.h> 5044#include <float.h> 5045 5046int 5047main () 5048{ 5049 5050 ; 5051 return 0; 5052} 5053_ACEOF 5054rm -f conftest.$ac_objext 5055if { (ac_try="$ac_compile" 5056case "(($ac_try" in 5057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5058 *) ac_try_echo=$ac_try;; 5059esac 5060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5061 (eval "$ac_compile") 2>conftest.er1 5062 ac_status=$? 5063 grep -v '^ *+' conftest.er1 >conftest.err 5064 rm -f conftest.er1 5065 cat conftest.err >&5 5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5067 (exit $ac_status); } && 5068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5069 { (case "(($ac_try" in 5070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5071 *) ac_try_echo=$ac_try;; 5072esac 5073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5074 (eval "$ac_try") 2>&5 5075 ac_status=$? 5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5077 (exit $ac_status); }; } && 5078 { ac_try='test -s conftest.$ac_objext' 5079 { (case "(($ac_try" in 5080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5081 *) ac_try_echo=$ac_try;; 5082esac 5083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5084 (eval "$ac_try") 2>&5 5085 ac_status=$? 5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5087 (exit $ac_status); }; }; then 5088 ac_cv_header_stdc=yes 5089else 5090 echo "$as_me: failed program was:" >&5 5091sed 's/^/| /' conftest.$ac_ext >&5 5092 5093 ac_cv_header_stdc=no 5094fi 5095 5096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5097 5098if test $ac_cv_header_stdc = yes; then 5099 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5100 cat >conftest.$ac_ext <<_ACEOF 5101/* confdefs.h. */ 5102_ACEOF 5103cat confdefs.h >>conftest.$ac_ext 5104cat >>conftest.$ac_ext <<_ACEOF 5105/* end confdefs.h. */ 5106#include <string.h> 5107 5108_ACEOF 5109if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5110 $EGREP "memchr" >/dev/null 2>&1; then 5111 : 5112else 5113 ac_cv_header_stdc=no 5114fi 5115rm -f conftest* 5116 5117fi 5118 5119if test $ac_cv_header_stdc = yes; then 5120 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5121 cat >conftest.$ac_ext <<_ACEOF 5122/* confdefs.h. */ 5123_ACEOF 5124cat confdefs.h >>conftest.$ac_ext 5125cat >>conftest.$ac_ext <<_ACEOF 5126/* end confdefs.h. */ 5127#include <stdlib.h> 5128 5129_ACEOF 5130if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5131 $EGREP "free" >/dev/null 2>&1; then 5132 : 5133else 5134 ac_cv_header_stdc=no 5135fi 5136rm -f conftest* 5137 5138fi 5139 5140if test $ac_cv_header_stdc = yes; then 5141 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5142 if test "$cross_compiling" = yes; then 5143 : 5144else 5145 cat >conftest.$ac_ext <<_ACEOF 5146/* confdefs.h. */ 5147_ACEOF 5148cat confdefs.h >>conftest.$ac_ext 5149cat >>conftest.$ac_ext <<_ACEOF 5150/* end confdefs.h. */ 5151#include <ctype.h> 5152#include <stdlib.h> 5153#if ((' ' & 0x0FF) == 0x020) 5154# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5155# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5156#else 5157# define ISLOWER(c) \ 5158 (('a' <= (c) && (c) <= 'i') \ 5159 || ('j' <= (c) && (c) <= 'r') \ 5160 || ('s' <= (c) && (c) <= 'z')) 5161# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5162#endif 5163 5164#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5165int 5166main () 5167{ 5168 int i; 5169 for (i = 0; i < 256; i++) 5170 if (XOR (islower (i), ISLOWER (i)) 5171 || toupper (i) != TOUPPER (i)) 5172 return 2; 5173 return 0; 5174} 5175_ACEOF 5176rm -f conftest$ac_exeext 5177if { (ac_try="$ac_link" 5178case "(($ac_try" in 5179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5180 *) ac_try_echo=$ac_try;; 5181esac 5182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5183 (eval "$ac_link") 2>&5 5184 ac_status=$? 5185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5186 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5187 { (case "(($ac_try" in 5188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5189 *) ac_try_echo=$ac_try;; 5190esac 5191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5192 (eval "$ac_try") 2>&5 5193 ac_status=$? 5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5195 (exit $ac_status); }; }; then 5196 : 5197else 5198 echo "$as_me: program exited with status $ac_status" >&5 5199echo "$as_me: failed program was:" >&5 5200sed 's/^/| /' conftest.$ac_ext >&5 5201 5202( exit $ac_status ) 5203ac_cv_header_stdc=no 5204fi 5205rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5206fi 5207 5208 5209fi 5210fi 5211{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5212echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 5213if test $ac_cv_header_stdc = yes; then 5214 5215cat >>confdefs.h <<\_ACEOF 5216#define STDC_HEADERS 1 5217_ACEOF 5218 5219fi 5220 5221# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5232 inttypes.h stdint.h unistd.h 5233do 5234as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5235{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5236echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5237if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5238 echo $ECHO_N "(cached) $ECHO_C" >&6 5239else 5240 cat >conftest.$ac_ext <<_ACEOF 5241/* confdefs.h. */ 5242_ACEOF 5243cat confdefs.h >>conftest.$ac_ext 5244cat >>conftest.$ac_ext <<_ACEOF 5245/* end confdefs.h. */ 5246$ac_includes_default 5247 5248#include <$ac_header> 5249_ACEOF 5250rm -f conftest.$ac_objext 5251if { (ac_try="$ac_compile" 5252case "(($ac_try" in 5253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5254 *) ac_try_echo=$ac_try;; 5255esac 5256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5257 (eval "$ac_compile") 2>conftest.er1 5258 ac_status=$? 5259 grep -v '^ *+' conftest.er1 >conftest.err 5260 rm -f conftest.er1 5261 cat conftest.err >&5 5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5263 (exit $ac_status); } && 5264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5265 { (case "(($ac_try" in 5266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5267 *) ac_try_echo=$ac_try;; 5268esac 5269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5270 (eval "$ac_try") 2>&5 5271 ac_status=$? 5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5273 (exit $ac_status); }; } && 5274 { ac_try='test -s conftest.$ac_objext' 5275 { (case "(($ac_try" in 5276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5277 *) ac_try_echo=$ac_try;; 5278esac 5279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5280 (eval "$ac_try") 2>&5 5281 ac_status=$? 5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5283 (exit $ac_status); }; }; then 5284 eval "$as_ac_Header=yes" 5285else 5286 echo "$as_me: failed program was:" >&5 5287sed 's/^/| /' conftest.$ac_ext >&5 5288 5289 eval "$as_ac_Header=no" 5290fi 5291 5292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5293fi 5294ac_res=`eval echo '${'$as_ac_Header'}'` 5295 { echo "$as_me:$LINENO: result: $ac_res" >&5 5296echo "${ECHO_T}$ac_res" >&6; } 5297if test `eval echo '${'$as_ac_Header'}'` = yes; then 5298 cat >>confdefs.h <<_ACEOF 5299#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5300_ACEOF 5301 5302fi 5303 5304done 5305 5306 5307 5308for ac_header in dlfcn.h 5309do 5310as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5311if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5312 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5313echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5314if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5315 echo $ECHO_N "(cached) $ECHO_C" >&6 5316fi 5317ac_res=`eval echo '${'$as_ac_Header'}'` 5318 { echo "$as_me:$LINENO: result: $ac_res" >&5 5319echo "${ECHO_T}$ac_res" >&6; } 5320else 5321 # Is the header compilable? 5322{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 5323echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 5324cat >conftest.$ac_ext <<_ACEOF 5325/* confdefs.h. */ 5326_ACEOF 5327cat confdefs.h >>conftest.$ac_ext 5328cat >>conftest.$ac_ext <<_ACEOF 5329/* end confdefs.h. */ 5330$ac_includes_default 5331#include <$ac_header> 5332_ACEOF 5333rm -f conftest.$ac_objext 5334if { (ac_try="$ac_compile" 5335case "(($ac_try" in 5336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5337 *) ac_try_echo=$ac_try;; 5338esac 5339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5340 (eval "$ac_compile") 2>conftest.er1 5341 ac_status=$? 5342 grep -v '^ *+' conftest.er1 >conftest.err 5343 rm -f conftest.er1 5344 cat conftest.err >&5 5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5346 (exit $ac_status); } && 5347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5348 { (case "(($ac_try" in 5349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5350 *) ac_try_echo=$ac_try;; 5351esac 5352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5353 (eval "$ac_try") 2>&5 5354 ac_status=$? 5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5356 (exit $ac_status); }; } && 5357 { ac_try='test -s conftest.$ac_objext' 5358 { (case "(($ac_try" in 5359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5360 *) ac_try_echo=$ac_try;; 5361esac 5362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5363 (eval "$ac_try") 2>&5 5364 ac_status=$? 5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5366 (exit $ac_status); }; }; then 5367 ac_header_compiler=yes 5368else 5369 echo "$as_me: failed program was:" >&5 5370sed 's/^/| /' conftest.$ac_ext >&5 5371 5372 ac_header_compiler=no 5373fi 5374 5375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5376{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5377echo "${ECHO_T}$ac_header_compiler" >&6; } 5378 5379# Is the header present? 5380{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 5381echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 5382cat >conftest.$ac_ext <<_ACEOF 5383/* confdefs.h. */ 5384_ACEOF 5385cat confdefs.h >>conftest.$ac_ext 5386cat >>conftest.$ac_ext <<_ACEOF 5387/* end confdefs.h. */ 5388#include <$ac_header> 5389_ACEOF 5390if { (ac_try="$ac_cpp conftest.$ac_ext" 5391case "(($ac_try" in 5392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5393 *) ac_try_echo=$ac_try;; 5394esac 5395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5396 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5397 ac_status=$? 5398 grep -v '^ *+' conftest.er1 >conftest.err 5399 rm -f conftest.er1 5400 cat conftest.err >&5 5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5402 (exit $ac_status); } >/dev/null; then 5403 if test -s conftest.err; then 5404 ac_cpp_err=$ac_c_preproc_warn_flag 5405 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5406 else 5407 ac_cpp_err= 5408 fi 5409else 5410 ac_cpp_err=yes 5411fi 5412if test -z "$ac_cpp_err"; then 5413 ac_header_preproc=yes 5414else 5415 echo "$as_me: failed program was:" >&5 5416sed 's/^/| /' conftest.$ac_ext >&5 5417 5418 ac_header_preproc=no 5419fi 5420 5421rm -f conftest.err conftest.$ac_ext 5422{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5423echo "${ECHO_T}$ac_header_preproc" >&6; } 5424 5425# So? What about this header? 5426case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5427 yes:no: ) 5428 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5429echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5431echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5432 ac_header_preproc=yes 5433 ;; 5434 no:yes:* ) 5435 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5436echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5437 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5438echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5439 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5440echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5441 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5442echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5444echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5445 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5446echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5447 ( cat <<\_ASBOX 5448## ------------------------------- ## 5449## Report this to mbuna@bugged.org ## 5450## ------------------------------- ## 5451_ASBOX 5452 ) | sed "s/^/$as_me: WARNING: /" >&2 5453 ;; 5454esac 5455{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5456echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5457if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5458 echo $ECHO_N "(cached) $ECHO_C" >&6 5459else 5460 eval "$as_ac_Header=\$ac_header_preproc" 5461fi 5462ac_res=`eval echo '${'$as_ac_Header'}'` 5463 { echo "$as_me:$LINENO: result: $ac_res" >&5 5464echo "${ECHO_T}$ac_res" >&6; } 5465 5466fi 5467if test `eval echo '${'$as_ac_Header'}'` = yes; then 5468 cat >>confdefs.h <<_ACEOF 5469#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5470_ACEOF 5471 5472fi 5473 5474done 5475 5476ac_ext=cpp 5477ac_cpp='$CXXCPP $CPPFLAGS' 5478ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5479ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5480ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5481if test -z "$CXX"; then 5482 if test -n "$CCC"; then 5483 CXX=$CCC 5484 else 5485 if test -n "$ac_tool_prefix"; then 5486 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5487 do 5488 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5489set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5490{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5492if test "${ac_cv_prog_CXX+set}" = set; then 5493 echo $ECHO_N "(cached) $ECHO_C" >&6 5494else 5495 if test -n "$CXX"; then 5496 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5497else 5498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5499for as_dir in $PATH 5500do 5501 IFS=$as_save_IFS 5502 test -z "$as_dir" && as_dir=. 5503 for ac_exec_ext in '' $ac_executable_extensions; do 5504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5505 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5507 break 2 5508 fi 5509done 5510done 5511IFS=$as_save_IFS 5512 5513fi 5514fi 5515CXX=$ac_cv_prog_CXX 5516if test -n "$CXX"; then 5517 { echo "$as_me:$LINENO: result: $CXX" >&5 5518echo "${ECHO_T}$CXX" >&6; } 5519else 5520 { echo "$as_me:$LINENO: result: no" >&5 5521echo "${ECHO_T}no" >&6; } 5522fi 5523 5524 5525 test -n "$CXX" && break 5526 done 5527fi 5528if test -z "$CXX"; then 5529 ac_ct_CXX=$CXX 5530 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5531do 5532 # Extract the first word of "$ac_prog", so it can be a program name with args. 5533set dummy $ac_prog; ac_word=$2 5534{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5535echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5536if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5537 echo $ECHO_N "(cached) $ECHO_C" >&6 5538else 5539 if test -n "$ac_ct_CXX"; then 5540 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5541else 5542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5543for as_dir in $PATH 5544do 5545 IFS=$as_save_IFS 5546 test -z "$as_dir" && as_dir=. 5547 for ac_exec_ext in '' $ac_executable_extensions; do 5548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5549 ac_cv_prog_ac_ct_CXX="$ac_prog" 5550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5551 break 2 5552 fi 5553done 5554done 5555IFS=$as_save_IFS 5556 5557fi 5558fi 5559ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5560if test -n "$ac_ct_CXX"; then 5561 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5562echo "${ECHO_T}$ac_ct_CXX" >&6; } 5563else 5564 { echo "$as_me:$LINENO: result: no" >&5 5565echo "${ECHO_T}no" >&6; } 5566fi 5567 5568 5569 test -n "$ac_ct_CXX" && break 5570done 5571 5572 if test "x$ac_ct_CXX" = x; then 5573 CXX="g++" 5574 else 5575 case $cross_compiling:$ac_tool_warned in 5576yes:) 5577{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5578whose name does not start with the host triplet. If you think this 5579configuration is useful to you, please write to autoconf@gnu.org." >&5 5580echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5581whose name does not start with the host triplet. If you think this 5582configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5583ac_tool_warned=yes ;; 5584esac 5585 CXX=$ac_ct_CXX 5586 fi 5587fi 5588 5589 fi 5590fi 5591# Provide some information about the compiler. 5592echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5593ac_compiler=`set X $ac_compile; echo $2` 5594{ (ac_try="$ac_compiler --version >&5" 5595case "(($ac_try" in 5596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5597 *) ac_try_echo=$ac_try;; 5598esac 5599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5600 (eval "$ac_compiler --version >&5") 2>&5 5601 ac_status=$? 5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5603 (exit $ac_status); } 5604{ (ac_try="$ac_compiler -v >&5" 5605case "(($ac_try" in 5606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5607 *) ac_try_echo=$ac_try;; 5608esac 5609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5610 (eval "$ac_compiler -v >&5") 2>&5 5611 ac_status=$? 5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5613 (exit $ac_status); } 5614{ (ac_try="$ac_compiler -V >&5" 5615case "(($ac_try" in 5616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5617 *) ac_try_echo=$ac_try;; 5618esac 5619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5620 (eval "$ac_compiler -V >&5") 2>&5 5621 ac_status=$? 5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5623 (exit $ac_status); } 5624 5625{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5626echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 5627if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5628 echo $ECHO_N "(cached) $ECHO_C" >&6 5629else 5630 cat >conftest.$ac_ext <<_ACEOF 5631/* confdefs.h. */ 5632_ACEOF 5633cat confdefs.h >>conftest.$ac_ext 5634cat >>conftest.$ac_ext <<_ACEOF 5635/* end confdefs.h. */ 5636 5637int 5638main () 5639{ 5640#ifndef __GNUC__ 5641 choke me 5642#endif 5643 5644 ; 5645 return 0; 5646} 5647_ACEOF 5648rm -f conftest.$ac_objext 5649if { (ac_try="$ac_compile" 5650case "(($ac_try" in 5651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5652 *) ac_try_echo=$ac_try;; 5653esac 5654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5655 (eval "$ac_compile") 2>conftest.er1 5656 ac_status=$? 5657 grep -v '^ *+' conftest.er1 >conftest.err 5658 rm -f conftest.er1 5659 cat conftest.err >&5 5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5661 (exit $ac_status); } && 5662 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5663 { (case "(($ac_try" in 5664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5665 *) ac_try_echo=$ac_try;; 5666esac 5667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5668 (eval "$ac_try") 2>&5 5669 ac_status=$? 5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5671 (exit $ac_status); }; } && 5672 { ac_try='test -s conftest.$ac_objext' 5673 { (case "(($ac_try" in 5674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5675 *) ac_try_echo=$ac_try;; 5676esac 5677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5678 (eval "$ac_try") 2>&5 5679 ac_status=$? 5680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5681 (exit $ac_status); }; }; then 5682 ac_compiler_gnu=yes 5683else 5684 echo "$as_me: failed program was:" >&5 5685sed 's/^/| /' conftest.$ac_ext >&5 5686 5687 ac_compiler_gnu=no 5688fi 5689 5690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5691ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5692 5693fi 5694{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5695echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 5696GXX=`test $ac_compiler_gnu = yes && echo yes` 5697ac_test_CXXFLAGS=${CXXFLAGS+set} 5698ac_save_CXXFLAGS=$CXXFLAGS 5699{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5700echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 5701if test "${ac_cv_prog_cxx_g+set}" = set; then 5702 echo $ECHO_N "(cached) $ECHO_C" >&6 5703else 5704 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5705 ac_cxx_werror_flag=yes 5706 ac_cv_prog_cxx_g=no 5707 CXXFLAGS="-g" 5708 cat >conftest.$ac_ext <<_ACEOF 5709/* confdefs.h. */ 5710_ACEOF 5711cat confdefs.h >>conftest.$ac_ext 5712cat >>conftest.$ac_ext <<_ACEOF 5713/* end confdefs.h. */ 5714 5715int 5716main () 5717{ 5718 5719 ; 5720 return 0; 5721} 5722_ACEOF 5723rm -f conftest.$ac_objext 5724if { (ac_try="$ac_compile" 5725case "(($ac_try" in 5726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5727 *) ac_try_echo=$ac_try;; 5728esac 5729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5730 (eval "$ac_compile") 2>conftest.er1 5731 ac_status=$? 5732 grep -v '^ *+' conftest.er1 >conftest.err 5733 rm -f conftest.er1 5734 cat conftest.err >&5 5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5736 (exit $ac_status); } && 5737 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5738 { (case "(($ac_try" in 5739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5740 *) ac_try_echo=$ac_try;; 5741esac 5742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5743 (eval "$ac_try") 2>&5 5744 ac_status=$? 5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5746 (exit $ac_status); }; } && 5747 { ac_try='test -s conftest.$ac_objext' 5748 { (case "(($ac_try" in 5749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5750 *) ac_try_echo=$ac_try;; 5751esac 5752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5753 (eval "$ac_try") 2>&5 5754 ac_status=$? 5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5756 (exit $ac_status); }; }; then 5757 ac_cv_prog_cxx_g=yes 5758else 5759 echo "$as_me: failed program was:" >&5 5760sed 's/^/| /' conftest.$ac_ext >&5 5761 5762 CXXFLAGS="" 5763 cat >conftest.$ac_ext <<_ACEOF 5764/* confdefs.h. */ 5765_ACEOF 5766cat confdefs.h >>conftest.$ac_ext 5767cat >>conftest.$ac_ext <<_ACEOF 5768/* end confdefs.h. */ 5769 5770int 5771main () 5772{ 5773 5774 ; 5775 return 0; 5776} 5777_ACEOF 5778rm -f conftest.$ac_objext 5779if { (ac_try="$ac_compile" 5780case "(($ac_try" in 5781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5782 *) ac_try_echo=$ac_try;; 5783esac 5784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5785 (eval "$ac_compile") 2>conftest.er1 5786 ac_status=$? 5787 grep -v '^ *+' conftest.er1 >conftest.err 5788 rm -f conftest.er1 5789 cat conftest.err >&5 5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5791 (exit $ac_status); } && 5792 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5793 { (case "(($ac_try" in 5794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5795 *) ac_try_echo=$ac_try;; 5796esac 5797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5798 (eval "$ac_try") 2>&5 5799 ac_status=$? 5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5801 (exit $ac_status); }; } && 5802 { ac_try='test -s conftest.$ac_objext' 5803 { (case "(($ac_try" in 5804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5805 *) ac_try_echo=$ac_try;; 5806esac 5807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5808 (eval "$ac_try") 2>&5 5809 ac_status=$? 5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5811 (exit $ac_status); }; }; then 5812 : 5813else 5814 echo "$as_me: failed program was:" >&5 5815sed 's/^/| /' conftest.$ac_ext >&5 5816 5817 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5818 CXXFLAGS="-g" 5819 cat >conftest.$ac_ext <<_ACEOF 5820/* confdefs.h. */ 5821_ACEOF 5822cat confdefs.h >>conftest.$ac_ext 5823cat >>conftest.$ac_ext <<_ACEOF 5824/* end confdefs.h. */ 5825 5826int 5827main () 5828{ 5829 5830 ; 5831 return 0; 5832} 5833_ACEOF 5834rm -f conftest.$ac_objext 5835if { (ac_try="$ac_compile" 5836case "(($ac_try" in 5837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5838 *) ac_try_echo=$ac_try;; 5839esac 5840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5841 (eval "$ac_compile") 2>conftest.er1 5842 ac_status=$? 5843 grep -v '^ *+' conftest.er1 >conftest.err 5844 rm -f conftest.er1 5845 cat conftest.err >&5 5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5847 (exit $ac_status); } && 5848 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5849 { (case "(($ac_try" in 5850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5851 *) ac_try_echo=$ac_try;; 5852esac 5853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5854 (eval "$ac_try") 2>&5 5855 ac_status=$? 5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5857 (exit $ac_status); }; } && 5858 { ac_try='test -s conftest.$ac_objext' 5859 { (case "(($ac_try" in 5860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5861 *) ac_try_echo=$ac_try;; 5862esac 5863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5864 (eval "$ac_try") 2>&5 5865 ac_status=$? 5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5867 (exit $ac_status); }; }; then 5868 ac_cv_prog_cxx_g=yes 5869else 5870 echo "$as_me: failed program was:" >&5 5871sed 's/^/| /' conftest.$ac_ext >&5 5872 5873 5874fi 5875 5876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5877fi 5878 5879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5880fi 5881 5882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5883 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5884fi 5885{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5886echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 5887if test "$ac_test_CXXFLAGS" = set; then 5888 CXXFLAGS=$ac_save_CXXFLAGS 5889elif test $ac_cv_prog_cxx_g = yes; then 5890 if test "$GXX" = yes; then 5891 CXXFLAGS="-g -O2" 5892 else 5893 CXXFLAGS="-g" 5894 fi 5895else 5896 if test "$GXX" = yes; then 5897 CXXFLAGS="-O2" 5898 else 5899 CXXFLAGS= 5900 fi 5901fi 5902ac_ext=cpp 5903ac_cpp='$CXXCPP $CPPFLAGS' 5904ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5905ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5906ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5907 5908depcc="$CXX" am_compiler_list= 5909 5910{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5911echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 5912if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5913 echo $ECHO_N "(cached) $ECHO_C" >&6 5914else 5915 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5916 # We make a subdir and do the tests there. Otherwise we can end up 5917 # making bogus files that we don't know about and never remove. For 5918 # instance it was reported that on HP-UX the gcc test will end up 5919 # making a dummy file named `D' -- because `-MD' means `put the output 5920 # in D'. 5921 mkdir conftest.dir 5922 # Copy depcomp to subdir because otherwise we won't find it if we're 5923 # using a relative directory. 5924 cp "$am_depcomp" conftest.dir 5925 cd conftest.dir 5926 # We will build objects and dependencies in a subdirectory because 5927 # it helps to detect inapplicable dependency modes. For instance 5928 # both Tru64's cc and ICC support -MD to output dependencies as a 5929 # side effect of compilation, but ICC will put the dependencies in 5930 # the current directory while Tru64 will put them in the object 5931 # directory. 5932 mkdir sub 5933 5934 am_cv_CXX_dependencies_compiler_type=none 5935 if test "$am_compiler_list" = ""; then 5936 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5937 fi 5938 for depmode in $am_compiler_list; do 5939 # Setup a source with many dependencies, because some compilers 5940 # like to wrap large dependency lists on column 80 (with \), and 5941 # we should not choose a depcomp mode which is confused by this. 5942 # 5943 # We need to recreate these files for each test, as the compiler may 5944 # overwrite some of them when testing with obscure command lines. 5945 # This happens at least with the AIX C compiler. 5946 : > sub/conftest.c 5947 for i in 1 2 3 4 5 6; do 5948 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5949 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5950 # Solaris 8's {/usr,}/bin/sh. 5951 touch sub/conftst$i.h 5952 done 5953 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5954 5955 case $depmode in 5956 nosideeffect) 5957 # after this tag, mechanisms are not by side-effect, so they'll 5958 # only be used when explicitly requested 5959 if test "x$enable_dependency_tracking" = xyes; then 5960 continue 5961 else 5962 break 5963 fi 5964 ;; 5965 none) break ;; 5966 esac 5967 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5968 # mode. It turns out that the SunPro C++ compiler does not properly 5969 # handle `-M -o', and we need to detect this. 5970 if depmode=$depmode \ 5971 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5972 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5973 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5974 >/dev/null 2>conftest.err && 5975 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5976 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5977 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5978 # icc doesn't choke on unknown options, it will just issue warnings 5979 # or remarks (even with -Werror). So we grep stderr for any message 5980 # that says an option was ignored or not supported. 5981 # When given -MP, icc 7.0 and 7.1 complain thusly: 5982 # icc: Command line warning: ignoring option '-M'; no argument required 5983 # The diagnosis changed in icc 8.0: 5984 # icc: Command line remark: option '-MP' not supported 5985 if (grep 'ignoring option' conftest.err || 5986 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5987 am_cv_CXX_dependencies_compiler_type=$depmode 5988 break 5989 fi 5990 fi 5991 done 5992 5993 cd .. 5994 rm -rf conftest.dir 5995else 5996 am_cv_CXX_dependencies_compiler_type=none 5997fi 5998 5999fi 6000{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 6001echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 6002CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 6003 6004 6005 6006if 6007 test "x$enable_dependency_tracking" != xno \ 6008 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 6009 am__fastdepCXX_TRUE= 6010 am__fastdepCXX_FALSE='#' 6011else 6012 am__fastdepCXX_TRUE='#' 6013 am__fastdepCXX_FALSE= 6014fi 6015 6016 6017 6018 6019if test -n "$CXX" && ( test "X$CXX" != "Xno" && 6020 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 6021 (test "X$CXX" != "Xg++"))) ; then 6022 ac_ext=cpp 6023ac_cpp='$CXXCPP $CPPFLAGS' 6024ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6025ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6026ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6027{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 6028echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 6029if test -z "$CXXCPP"; then 6030 if test "${ac_cv_prog_CXXCPP+set}" = set; then 6031 echo $ECHO_N "(cached) $ECHO_C" >&6 6032else 6033 # Double quotes because CXXCPP needs to be expanded 6034 for CXXCPP in "$CXX -E" "/lib/cpp" 6035 do 6036 ac_preproc_ok=false 6037for ac_cxx_preproc_warn_flag in '' yes 6038do 6039 # Use a header file that comes with gcc, so configuring glibc 6040 # with a fresh cross-compiler works. 6041 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6042 # <limits.h> exists even on freestanding compilers. 6043 # On the NeXT, cc -E runs the code through the compiler's parser, 6044 # not just through cpp. "Syntax error" is here to catch this case. 6045 cat >conftest.$ac_ext <<_ACEOF 6046/* confdefs.h. */ 6047_ACEOF 6048cat confdefs.h >>conftest.$ac_ext 6049cat >>conftest.$ac_ext <<_ACEOF 6050/* end confdefs.h. */ 6051#ifdef __STDC__ 6052# include <limits.h> 6053#else 6054# include <assert.h> 6055#endif 6056 Syntax error 6057_ACEOF 6058if { (ac_try="$ac_cpp conftest.$ac_ext" 6059case "(($ac_try" in 6060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6061 *) ac_try_echo=$ac_try;; 6062esac 6063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6064 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6065 ac_status=$? 6066 grep -v '^ *+' conftest.er1 >conftest.err 6067 rm -f conftest.er1 6068 cat conftest.err >&5 6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6070 (exit $ac_status); } >/dev/null; then 6071 if test -s conftest.err; then 6072 ac_cpp_err=$ac_cxx_preproc_warn_flag 6073 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6074 else 6075 ac_cpp_err= 6076 fi 6077else 6078 ac_cpp_err=yes 6079fi 6080if test -z "$ac_cpp_err"; then 6081 : 6082else 6083 echo "$as_me: failed program was:" >&5 6084sed 's/^/| /' conftest.$ac_ext >&5 6085 6086 # Broken: fails on valid input. 6087continue 6088fi 6089 6090rm -f conftest.err conftest.$ac_ext 6091 6092 # OK, works on sane cases. Now check whether nonexistent headers 6093 # can be detected and how. 6094 cat >conftest.$ac_ext <<_ACEOF 6095/* confdefs.h. */ 6096_ACEOF 6097cat confdefs.h >>conftest.$ac_ext 6098cat >>conftest.$ac_ext <<_ACEOF 6099/* end confdefs.h. */ 6100#include <ac_nonexistent.h> 6101_ACEOF 6102if { (ac_try="$ac_cpp conftest.$ac_ext" 6103case "(($ac_try" in 6104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6105 *) ac_try_echo=$ac_try;; 6106esac 6107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6108 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6109 ac_status=$? 6110 grep -v '^ *+' conftest.er1 >conftest.err 6111 rm -f conftest.er1 6112 cat conftest.err >&5 6113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6114 (exit $ac_status); } >/dev/null; then 6115 if test -s conftest.err; then 6116 ac_cpp_err=$ac_cxx_preproc_warn_flag 6117 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6118 else 6119 ac_cpp_err= 6120 fi 6121else 6122 ac_cpp_err=yes 6123fi 6124if test -z "$ac_cpp_err"; then 6125 # Broken: success on invalid input. 6126continue 6127else 6128 echo "$as_me: failed program was:" >&5 6129sed 's/^/| /' conftest.$ac_ext >&5 6130 6131 # Passes both tests. 6132ac_preproc_ok=: 6133break 6134fi 6135 6136rm -f conftest.err conftest.$ac_ext 6137 6138done 6139# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6140rm -f conftest.err conftest.$ac_ext 6141if $ac_preproc_ok; then 6142 break 6143fi 6144 6145 done 6146 ac_cv_prog_CXXCPP=$CXXCPP 6147 6148fi 6149 CXXCPP=$ac_cv_prog_CXXCPP 6150else 6151 ac_cv_prog_CXXCPP=$CXXCPP 6152fi 6153{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 6154echo "${ECHO_T}$CXXCPP" >&6; } 6155ac_preproc_ok=false 6156for ac_cxx_preproc_warn_flag in '' yes 6157do 6158 # Use a header file that comes with gcc, so configuring glibc 6159 # with a fresh cross-compiler works. 6160 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6161 # <limits.h> exists even on freestanding compilers. 6162 # On the NeXT, cc -E runs the code through the compiler's parser, 6163 # not just through cpp. "Syntax error" is here to catch this case. 6164 cat >conftest.$ac_ext <<_ACEOF 6165/* confdefs.h. */ 6166_ACEOF 6167cat confdefs.h >>conftest.$ac_ext 6168cat >>conftest.$ac_ext <<_ACEOF 6169/* end confdefs.h. */ 6170#ifdef __STDC__ 6171# include <limits.h> 6172#else 6173# include <assert.h> 6174#endif 6175 Syntax error 6176_ACEOF 6177if { (ac_try="$ac_cpp conftest.$ac_ext" 6178case "(($ac_try" in 6179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6180 *) ac_try_echo=$ac_try;; 6181esac 6182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6183 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6184 ac_status=$? 6185 grep -v '^ *+' conftest.er1 >conftest.err 6186 rm -f conftest.er1 6187 cat conftest.err >&5 6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6189 (exit $ac_status); } >/dev/null; then 6190 if test -s conftest.err; then 6191 ac_cpp_err=$ac_cxx_preproc_warn_flag 6192 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6193 else 6194 ac_cpp_err= 6195 fi 6196else 6197 ac_cpp_err=yes 6198fi 6199if test -z "$ac_cpp_err"; then 6200 : 6201else 6202 echo "$as_me: failed program was:" >&5 6203sed 's/^/| /' conftest.$ac_ext >&5 6204 6205 # Broken: fails on valid input. 6206continue 6207fi 6208 6209rm -f conftest.err conftest.$ac_ext 6210 6211 # OK, works on sane cases. Now check whether nonexistent headers 6212 # can be detected and how. 6213 cat >conftest.$ac_ext <<_ACEOF 6214/* confdefs.h. */ 6215_ACEOF 6216cat confdefs.h >>conftest.$ac_ext 6217cat >>conftest.$ac_ext <<_ACEOF 6218/* end confdefs.h. */ 6219#include <ac_nonexistent.h> 6220_ACEOF 6221if { (ac_try="$ac_cpp conftest.$ac_ext" 6222case "(($ac_try" in 6223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6224 *) ac_try_echo=$ac_try;; 6225esac 6226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6227 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6228 ac_status=$? 6229 grep -v '^ *+' conftest.er1 >conftest.err 6230 rm -f conftest.er1 6231 cat conftest.err >&5 6232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6233 (exit $ac_status); } >/dev/null; then 6234 if test -s conftest.err; then 6235 ac_cpp_err=$ac_cxx_preproc_warn_flag 6236 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6237 else 6238 ac_cpp_err= 6239 fi 6240else 6241 ac_cpp_err=yes 6242fi 6243if test -z "$ac_cpp_err"; then 6244 # Broken: success on invalid input. 6245continue 6246else 6247 echo "$as_me: failed program was:" >&5 6248sed 's/^/| /' conftest.$ac_ext >&5 6249 6250 # Passes both tests. 6251ac_preproc_ok=: 6252break 6253fi 6254 6255rm -f conftest.err conftest.$ac_ext 6256 6257done 6258# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6259rm -f conftest.err conftest.$ac_ext 6260if $ac_preproc_ok; then 6261 : 6262else 6263 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6264See \`config.log' for more details." >&5 6265echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6266See \`config.log' for more details." >&2;} 6267 { (exit 1); exit 1; }; } 6268fi 6269 6270ac_ext=cpp 6271ac_cpp='$CXXCPP $CPPFLAGS' 6272ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6273ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6274ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6275 6276fi 6277 6278 6279ac_ext=f 6280ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6281ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6282ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6283if test -n "$ac_tool_prefix"; then 6284 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn 6285 do 6286 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6287set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6288{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6289echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6290if test "${ac_cv_prog_F77+set}" = set; then 6291 echo $ECHO_N "(cached) $ECHO_C" >&6 6292else 6293 if test -n "$F77"; then 6294 ac_cv_prog_F77="$F77" # Let the user override the test. 6295else 6296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6297for as_dir in $PATH 6298do 6299 IFS=$as_save_IFS 6300 test -z "$as_dir" && as_dir=. 6301 for ac_exec_ext in '' $ac_executable_extensions; do 6302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6303 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 6304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6305 break 2 6306 fi 6307done 6308done 6309IFS=$as_save_IFS 6310 6311fi 6312fi 6313F77=$ac_cv_prog_F77 6314if test -n "$F77"; then 6315 { echo "$as_me:$LINENO: result: $F77" >&5 6316echo "${ECHO_T}$F77" >&6; } 6317else 6318 { echo "$as_me:$LINENO: result: no" >&5 6319echo "${ECHO_T}no" >&6; } 6320fi 6321 6322 6323 test -n "$F77" && break 6324 done 6325fi 6326if test -z "$F77"; then 6327 ac_ct_F77=$F77 6328 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn 6329do 6330 # Extract the first word of "$ac_prog", so it can be a program name with args. 6331set dummy $ac_prog; ac_word=$2 6332{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6333echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6334if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 6335 echo $ECHO_N "(cached) $ECHO_C" >&6 6336else 6337 if test -n "$ac_ct_F77"; then 6338 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 6339else 6340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6341for as_dir in $PATH 6342do 6343 IFS=$as_save_IFS 6344 test -z "$as_dir" && as_dir=. 6345 for ac_exec_ext in '' $ac_executable_extensions; do 6346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6347 ac_cv_prog_ac_ct_F77="$ac_prog" 6348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6349 break 2 6350 fi 6351done 6352done 6353IFS=$as_save_IFS 6354 6355fi 6356fi 6357ac_ct_F77=$ac_cv_prog_ac_ct_F77 6358if test -n "$ac_ct_F77"; then 6359 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 6360echo "${ECHO_T}$ac_ct_F77" >&6; } 6361else 6362 { echo "$as_me:$LINENO: result: no" >&5 6363echo "${ECHO_T}no" >&6; } 6364fi 6365 6366 6367 test -n "$ac_ct_F77" && break 6368done 6369 6370 if test "x$ac_ct_F77" = x; then 6371 F77="" 6372 else 6373 case $cross_compiling:$ac_tool_warned in 6374yes:) 6375{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6376whose name does not start with the host triplet. If you think this 6377configuration is useful to you, please write to autoconf@gnu.org." >&5 6378echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6379whose name does not start with the host triplet. If you think this 6380configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6381ac_tool_warned=yes ;; 6382esac 6383 F77=$ac_ct_F77 6384 fi 6385fi 6386 6387 6388# Provide some information about the compiler. 6389echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 6390ac_compiler=`set X $ac_compile; echo $2` 6391{ (ac_try="$ac_compiler --version >&5" 6392case "(($ac_try" in 6393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6394 *) ac_try_echo=$ac_try;; 6395esac 6396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6397 (eval "$ac_compiler --version >&5") 2>&5 6398 ac_status=$? 6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6400 (exit $ac_status); } 6401{ (ac_try="$ac_compiler -v >&5" 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_compiler -v >&5") 2>&5 6408 ac_status=$? 6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6410 (exit $ac_status); } 6411{ (ac_try="$ac_compiler -V >&5" 6412case "(($ac_try" in 6413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6414 *) ac_try_echo=$ac_try;; 6415esac 6416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6417 (eval "$ac_compiler -V >&5") 2>&5 6418 ac_status=$? 6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6420 (exit $ac_status); } 6421rm -f a.out 6422 6423# If we don't use `.F' as extension, the preprocessor is not run on the 6424# input file. (Note that this only needs to work for GNU compilers.) 6425ac_save_ext=$ac_ext 6426ac_ext=F 6427{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6428echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 6429if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6430 echo $ECHO_N "(cached) $ECHO_C" >&6 6431else 6432 cat >conftest.$ac_ext <<_ACEOF 6433 program main 6434#ifndef __GNUC__ 6435 choke me 6436#endif 6437 6438 end 6439_ACEOF 6440rm -f conftest.$ac_objext 6441if { (ac_try="$ac_compile" 6442case "(($ac_try" in 6443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6444 *) ac_try_echo=$ac_try;; 6445esac 6446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6447 (eval "$ac_compile") 2>conftest.er1 6448 ac_status=$? 6449 grep -v '^ *+' conftest.er1 >conftest.err 6450 rm -f conftest.er1 6451 cat conftest.err >&5 6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6453 (exit $ac_status); } && 6454 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 6455 { (case "(($ac_try" in 6456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6457 *) ac_try_echo=$ac_try;; 6458esac 6459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6460 (eval "$ac_try") 2>&5 6461 ac_status=$? 6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6463 (exit $ac_status); }; } && 6464 { ac_try='test -s conftest.$ac_objext' 6465 { (case "(($ac_try" in 6466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6467 *) ac_try_echo=$ac_try;; 6468esac 6469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6470 (eval "$ac_try") 2>&5 6471 ac_status=$? 6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6473 (exit $ac_status); }; }; then 6474 ac_compiler_gnu=yes 6475else 6476 echo "$as_me: failed program was:" >&5 6477sed 's/^/| /' conftest.$ac_ext >&5 6478 6479 ac_compiler_gnu=no 6480fi 6481 6482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6483ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6484 6485fi 6486{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6487echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 6488ac_ext=$ac_save_ext 6489ac_test_FFLAGS=${FFLAGS+set} 6490ac_save_FFLAGS=$FFLAGS 6491FFLAGS= 6492{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6493echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 6494if test "${ac_cv_prog_f77_g+set}" = set; then 6495 echo $ECHO_N "(cached) $ECHO_C" >&6 6496else 6497 FFLAGS=-g 6498cat >conftest.$ac_ext <<_ACEOF 6499 program main 6500 6501 end 6502_ACEOF 6503rm -f conftest.$ac_objext 6504if { (ac_try="$ac_compile" 6505case "(($ac_try" in 6506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6507 *) ac_try_echo=$ac_try;; 6508esac 6509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6510 (eval "$ac_compile") 2>conftest.er1 6511 ac_status=$? 6512 grep -v '^ *+' conftest.er1 >conftest.err 6513 rm -f conftest.er1 6514 cat conftest.err >&5 6515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6516 (exit $ac_status); } && 6517 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 6518 { (case "(($ac_try" in 6519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6520 *) ac_try_echo=$ac_try;; 6521esac 6522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6523 (eval "$ac_try") 2>&5 6524 ac_status=$? 6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6526 (exit $ac_status); }; } && 6527 { ac_try='test -s conftest.$ac_objext' 6528 { (case "(($ac_try" in 6529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6530 *) ac_try_echo=$ac_try;; 6531esac 6532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6533 (eval "$ac_try") 2>&5 6534 ac_status=$? 6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6536 (exit $ac_status); }; }; then 6537 ac_cv_prog_f77_g=yes 6538else 6539 echo "$as_me: failed program was:" >&5 6540sed 's/^/| /' conftest.$ac_ext >&5 6541 6542 ac_cv_prog_f77_g=no 6543fi 6544 6545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6546 6547fi 6548{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6549echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 6550if test "$ac_test_FFLAGS" = set; then 6551 FFLAGS=$ac_save_FFLAGS 6552elif test $ac_cv_prog_f77_g = yes; then 6553 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6554 FFLAGS="-g -O2" 6555 else 6556 FFLAGS="-g" 6557 fi 6558else 6559 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6560 FFLAGS="-O2" 6561 else 6562 FFLAGS= 6563 fi 6564fi 6565 6566G77=`test $ac_compiler_gnu = yes && echo yes` 6567ac_ext=c 6568ac_cpp='$CPP $CPPFLAGS' 6569ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6570ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6571ac_compiler_gnu=$ac_cv_c_compiler_gnu 6572 6573 6574 6575# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6576 6577# find the maximum length of command line arguments 6578{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6579echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 6580if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6581 echo $ECHO_N "(cached) $ECHO_C" >&6 6582else 6583 i=0 6584 teststring="ABCD" 6585 6586 case $build_os in 6587 msdosdjgpp*) 6588 # On DJGPP, this test can blow up pretty badly due to problems in libc 6589 # (any single argument exceeding 2000 bytes causes a buffer overrun 6590 # during glob expansion). Even if it were fixed, the result of this 6591 # check would be larger than it should be. 6592 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6593 ;; 6594 6595 gnu*) 6596 # Under GNU Hurd, this test is not required because there is 6597 # no limit to the length of command line arguments. 6598 # Libtool will interpret -1 as no limit whatsoever 6599 lt_cv_sys_max_cmd_len=-1; 6600 ;; 6601 6602 cygwin* | mingw*) 6603 # On Win9x/ME, this test blows up -- it succeeds, but takes 6604 # about 5 minutes as the teststring grows exponentially. 6605 # Worse, since 9x/ME are not pre-emptively multitasking, 6606 # you end up with a "frozen" computer, even though with patience 6607 # the test eventually succeeds (with a max line length of 256k). 6608 # Instead, let's just punt: use the minimum linelength reported by 6609 # all of the supported platforms: 8192 (on NT/2K/XP). 6610 lt_cv_sys_max_cmd_len=8192; 6611 ;; 6612 6613 amigaos*) 6614 # On AmigaOS with pdksh, this test takes hours, literally. 6615 # So we just punt and use a minimum line length of 8192. 6616 lt_cv_sys_max_cmd_len=8192; 6617 ;; 6618 6619 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6620 # This has been around since 386BSD, at least. Likely further. 6621 if test -x /sbin/sysctl; then 6622 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6623 elif test -x /usr/sbin/sysctl; then 6624 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6625 else 6626 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6627 fi 6628 # And add a safety zone 6629 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6630 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6631 ;; 6632 6633 interix*) 6634 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6635 lt_cv_sys_max_cmd_len=196608 6636 ;; 6637 6638 osf*) 6639 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6640 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6641 # nice to cause kernel panics so lets avoid the loop below. 6642 # First set a reasonable default. 6643 lt_cv_sys_max_cmd_len=16384 6644 # 6645 if test -x /sbin/sysconfig; then 6646 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6647 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6648 esac 6649 fi 6650 ;; 6651 sco3.2v5*) 6652 lt_cv_sys_max_cmd_len=102400 6653 ;; 6654 sysv5* | sco5v6* | sysv4.2uw2*) 6655 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6656 if test -n "$kargmax"; then 6657 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6658 else 6659 lt_cv_sys_max_cmd_len=32768 6660 fi 6661 ;; 6662 *) 6663 # If test is not a shell built-in, we'll probably end up computing a 6664 # maximum length that is only half of the actual maximum length, but 6665 # we can't tell. 6666 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6667 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6668 = "XX$teststring") >/dev/null 2>&1 && 6669 new_result=`expr "X$teststring" : ".*" 2>&1` && 6670 lt_cv_sys_max_cmd_len=$new_result && 6671 test $i != 17 # 1/2 MB should be enough 6672 do 6673 i=`expr $i + 1` 6674 teststring=$teststring$teststring 6675 done 6676 teststring= 6677 # Add a significant safety factor because C++ compilers can tack on massive 6678 # amounts of additional arguments before passing them to the linker. 6679 # It appears as though 1/2 is a usable value. 6680 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6681 ;; 6682 esac 6683 6684fi 6685 6686if test -n $lt_cv_sys_max_cmd_len ; then 6687 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6688echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 6689else 6690 { echo "$as_me:$LINENO: result: none" >&5 6691echo "${ECHO_T}none" >&6; } 6692fi 6693 6694 6695 6696 6697# Check for command to grab the raw symbol name followed by C symbol from nm. 6698{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6699echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 6700if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6701 echo $ECHO_N "(cached) $ECHO_C" >&6 6702else 6703 6704# These are sane defaults that work on at least a few old systems. 6705# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6706 6707# Character class describing NM global symbol codes. 6708symcode='[BCDEGRST]' 6709 6710# Regexp to match symbols that can be accessed directly from C. 6711sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6712 6713# Transform an extracted symbol line into a proper C declaration 6714lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6715 6716# Transform an extracted symbol line into symbol name and symbol address 6717lt_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'" 6718 6719# Define system-specific variables. 6720case $host_os in 6721aix*) 6722 symcode='[BCDT]' 6723 ;; 6724cygwin* | mingw* | pw32*) 6725 symcode='[ABCDGISTW]' 6726 ;; 6727hpux*) # Its linker distinguishes data from code symbols 6728 if test "$host_cpu" = ia64; then 6729 symcode='[ABCDEGRST]' 6730 fi 6731 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6732 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'" 6733 ;; 6734linux*) 6735 if test "$host_cpu" = ia64; then 6736 symcode='[ABCDGIRSTW]' 6737 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6738 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'" 6739 fi 6740 ;; 6741irix* | nonstopux*) 6742 symcode='[BCDEGRST]' 6743 ;; 6744osf*) 6745 symcode='[BCDEGQRST]' 6746 ;; 6747solaris*) 6748 symcode='[BDRT]' 6749 ;; 6750sco3.2v5*) 6751 symcode='[DT]' 6752 ;; 6753sysv4.2uw2*) 6754 symcode='[DT]' 6755 ;; 6756sysv5* | sco5v6* | unixware* | OpenUNIX*) 6757 symcode='[ABDT]' 6758 ;; 6759sysv4) 6760 symcode='[DFNSTU]' 6761 ;; 6762esac 6763 6764# Handle CRLF in mingw tool chain 6765opt_cr= 6766case $build_os in 6767mingw*) 6768 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6769 ;; 6770esac 6771 6772# If we're using GNU nm, then use its standard symbol codes. 6773case `$NM -V 2>&1` in 6774*GNU* | *'with BFD'*) 6775 symcode='[ABCDGIRSTW]' ;; 6776esac 6777 6778# Try without a prefix undercore, then with it. 6779for ac_symprfx in "" "_"; do 6780 6781 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6782 symxfrm="\\1 $ac_symprfx\\2 \\2" 6783 6784 # Write the raw and C identifiers. 6785 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6786 6787 # Check to see that the pipe works correctly. 6788 pipe_works=no 6789 6790 rm -f conftest* 6791 cat > conftest.$ac_ext <<EOF 6792#ifdef __cplusplus 6793extern "C" { 6794#endif 6795char nm_test_var; 6796void nm_test_func(){} 6797#ifdef __cplusplus 6798} 6799#endif 6800int main(){nm_test_var='a';nm_test_func();return(0);} 6801EOF 6802 6803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6804 (eval $ac_compile) 2>&5 6805 ac_status=$? 6806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6807 (exit $ac_status); }; then 6808 # Now try to grab the symbols. 6809 nlist=conftest.nm 6810 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6811 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6812 ac_status=$? 6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6814 (exit $ac_status); } && test -s "$nlist"; then 6815 # Try sorting and uniquifying the output. 6816 if sort "$nlist" | uniq > "$nlist"T; then 6817 mv -f "$nlist"T "$nlist" 6818 else 6819 rm -f "$nlist"T 6820 fi 6821 6822 # Make sure that we snagged all the symbols we need. 6823 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6824 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6825 cat <<EOF > conftest.$ac_ext 6826#ifdef __cplusplus 6827extern "C" { 6828#endif 6829 6830EOF 6831 # Now generate the symbol file. 6832 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6833 6834 cat <<EOF >> conftest.$ac_ext 6835#if defined (__STDC__) && __STDC__ 6836# define lt_ptr_t void * 6837#else 6838# define lt_ptr_t char * 6839# define const 6840#endif 6841 6842/* The mapping between symbol names and symbols. */ 6843const struct { 6844 const char *name; 6845 lt_ptr_t address; 6846} 6847lt_preloaded_symbols[] = 6848{ 6849EOF 6850 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6851 cat <<\EOF >> conftest.$ac_ext 6852 {0, (lt_ptr_t) 0} 6853}; 6854 6855#ifdef __cplusplus 6856} 6857#endif 6858EOF 6859 # Now try linking the two files. 6860 mv conftest.$ac_objext conftstm.$ac_objext 6861 lt_save_LIBS="$LIBS" 6862 lt_save_CFLAGS="$CFLAGS" 6863 LIBS="conftstm.$ac_objext" 6864 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6866 (eval $ac_link) 2>&5 6867 ac_status=$? 6868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6869 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6870 pipe_works=yes 6871 fi 6872 LIBS="$lt_save_LIBS" 6873 CFLAGS="$lt_save_CFLAGS" 6874 else 6875 echo "cannot find nm_test_func in $nlist" >&5 6876 fi 6877 else 6878 echo "cannot find nm_test_var in $nlist" >&5 6879 fi 6880 else 6881 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6882 fi 6883 else 6884 echo "$progname: failed program was:" >&5 6885 cat conftest.$ac_ext >&5 6886 fi 6887 rm -f conftest* conftst* 6888 6889 # Do not use the global_symbol_pipe unless it works. 6890 if test "$pipe_works" = yes; then 6891 break 6892 else 6893 lt_cv_sys_global_symbol_pipe= 6894 fi 6895done 6896 6897fi 6898 6899if test -z "$lt_cv_sys_global_symbol_pipe"; then 6900 lt_cv_sys_global_symbol_to_cdecl= 6901fi 6902if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6903 { echo "$as_me:$LINENO: result: failed" >&5 6904echo "${ECHO_T}failed" >&6; } 6905else 6906 { echo "$as_me:$LINENO: result: ok" >&5 6907echo "${ECHO_T}ok" >&6; } 6908fi 6909 6910{ echo "$as_me:$LINENO: checking for objdir" >&5 6911echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 6912if test "${lt_cv_objdir+set}" = set; then 6913 echo $ECHO_N "(cached) $ECHO_C" >&6 6914else 6915 rm -f .libs 2>/dev/null 6916mkdir .libs 2>/dev/null 6917if test -d .libs; then 6918 lt_cv_objdir=.libs 6919else 6920 # MS-DOS does not allow filenames that begin with a dot. 6921 lt_cv_objdir=_libs 6922fi 6923rmdir .libs 2>/dev/null 6924fi 6925{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6926echo "${ECHO_T}$lt_cv_objdir" >&6; } 6927objdir=$lt_cv_objdir 6928 6929 6930 6931 6932 6933case $host_os in 6934aix3*) 6935 # AIX sometimes has problems with the GCC collect2 program. For some 6936 # reason, if we set the COLLECT_NAMES environment variable, the problems 6937 # vanish in a puff of smoke. 6938 if test "X${COLLECT_NAMES+set}" != Xset; then 6939 COLLECT_NAMES= 6940 export COLLECT_NAMES 6941 fi 6942 ;; 6943esac 6944 6945# Sed substitution that helps us do robust quoting. It backslashifies 6946# metacharacters that are still active within double-quoted strings. 6947Xsed='sed -e 1s/^X//' 6948sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6949 6950# Same as above, but do not quote variable references. 6951double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6952 6953# Sed substitution to delay expansion of an escaped shell variable in a 6954# double_quote_subst'ed string. 6955delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6956 6957# Sed substitution to avoid accidental globbing in evaled expressions 6958no_glob_subst='s/\*/\\\*/g' 6959 6960# Constants: 6961rm="rm -f" 6962 6963# Global variables: 6964default_ofile=libtool 6965can_build_shared=yes 6966 6967# All known linkers require a `.a' archive for static linking (except MSVC, 6968# which needs '.lib'). 6969libext=a 6970ltmain="$ac_aux_dir/ltmain.sh" 6971ofile="$default_ofile" 6972with_gnu_ld="$lt_cv_prog_gnu_ld" 6973 6974if test -n "$ac_tool_prefix"; then 6975 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6976set dummy ${ac_tool_prefix}ar; ac_word=$2 6977{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6979if test "${ac_cv_prog_AR+set}" = set; then 6980 echo $ECHO_N "(cached) $ECHO_C" >&6 6981else 6982 if test -n "$AR"; then 6983 ac_cv_prog_AR="$AR" # Let the user override the test. 6984else 6985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6986for as_dir in $PATH 6987do 6988 IFS=$as_save_IFS 6989 test -z "$as_dir" && as_dir=. 6990 for ac_exec_ext in '' $ac_executable_extensions; do 6991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6992 ac_cv_prog_AR="${ac_tool_prefix}ar" 6993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6994 break 2 6995 fi 6996done 6997done 6998IFS=$as_save_IFS 6999 7000fi 7001fi 7002AR=$ac_cv_prog_AR 7003if test -n "$AR"; then 7004 { echo "$as_me:$LINENO: result: $AR" >&5 7005echo "${ECHO_T}$AR" >&6; } 7006else 7007 { echo "$as_me:$LINENO: result: no" >&5 7008echo "${ECHO_T}no" >&6; } 7009fi 7010 7011 7012fi 7013if test -z "$ac_cv_prog_AR"; then 7014 ac_ct_AR=$AR 7015 # Extract the first word of "ar", so it can be a program name with args. 7016set dummy ar; ac_word=$2 7017{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7019if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 7020 echo $ECHO_N "(cached) $ECHO_C" >&6 7021else 7022 if test -n "$ac_ct_AR"; then 7023 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7024else 7025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7026for as_dir in $PATH 7027do 7028 IFS=$as_save_IFS 7029 test -z "$as_dir" && as_dir=. 7030 for ac_exec_ext in '' $ac_executable_extensions; do 7031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7032 ac_cv_prog_ac_ct_AR="ar" 7033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7034 break 2 7035 fi 7036done 7037done 7038IFS=$as_save_IFS 7039 7040fi 7041fi 7042ac_ct_AR=$ac_cv_prog_ac_ct_AR 7043if test -n "$ac_ct_AR"; then 7044 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 7045echo "${ECHO_T}$ac_ct_AR" >&6; } 7046else 7047 { echo "$as_me:$LINENO: result: no" >&5 7048echo "${ECHO_T}no" >&6; } 7049fi 7050 7051 if test "x$ac_ct_AR" = x; then 7052 AR="false" 7053 else 7054 case $cross_compiling:$ac_tool_warned in 7055yes:) 7056{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7057whose name does not start with the host triplet. If you think this 7058configuration is useful to you, please write to autoconf@gnu.org." >&5 7059echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7060whose name does not start with the host triplet. If you think this 7061configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7062ac_tool_warned=yes ;; 7063esac 7064 AR=$ac_ct_AR 7065 fi 7066else 7067 AR="$ac_cv_prog_AR" 7068fi 7069 7070if test -n "$ac_tool_prefix"; then 7071 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7072set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7073{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7075if test "${ac_cv_prog_RANLIB+set}" = set; then 7076 echo $ECHO_N "(cached) $ECHO_C" >&6 7077else 7078 if test -n "$RANLIB"; then 7079 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7080else 7081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7082for as_dir in $PATH 7083do 7084 IFS=$as_save_IFS 7085 test -z "$as_dir" && as_dir=. 7086 for ac_exec_ext in '' $ac_executable_extensions; do 7087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7088 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7090 break 2 7091 fi 7092done 7093done 7094IFS=$as_save_IFS 7095 7096fi 7097fi 7098RANLIB=$ac_cv_prog_RANLIB 7099if test -n "$RANLIB"; then 7100 { echo "$as_me:$LINENO: result: $RANLIB" >&5 7101echo "${ECHO_T}$RANLIB" >&6; } 7102else 7103 { echo "$as_me:$LINENO: result: no" >&5 7104echo "${ECHO_T}no" >&6; } 7105fi 7106 7107 7108fi 7109if test -z "$ac_cv_prog_RANLIB"; then 7110 ac_ct_RANLIB=$RANLIB 7111 # Extract the first word of "ranlib", so it can be a program name with args. 7112set dummy ranlib; ac_word=$2 7113{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7114echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7115if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 7116 echo $ECHO_N "(cached) $ECHO_C" >&6 7117else 7118 if test -n "$ac_ct_RANLIB"; then 7119 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7120else 7121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7122for as_dir in $PATH 7123do 7124 IFS=$as_save_IFS 7125 test -z "$as_dir" && as_dir=. 7126 for ac_exec_ext in '' $ac_executable_extensions; do 7127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7128 ac_cv_prog_ac_ct_RANLIB="ranlib" 7129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7130 break 2 7131 fi 7132done 7133done 7134IFS=$as_save_IFS 7135 7136fi 7137fi 7138ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7139if test -n "$ac_ct_RANLIB"; then 7140 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 7141echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 7142else 7143 { echo "$as_me:$LINENO: result: no" >&5 7144echo "${ECHO_T}no" >&6; } 7145fi 7146 7147 if test "x$ac_ct_RANLIB" = x; then 7148 RANLIB=":" 7149 else 7150 case $cross_compiling:$ac_tool_warned in 7151yes:) 7152{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7153whose name does not start with the host triplet. If you think this 7154configuration is useful to you, please write to autoconf@gnu.org." >&5 7155echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7156whose name does not start with the host triplet. If you think this 7157configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7158ac_tool_warned=yes ;; 7159esac 7160 RANLIB=$ac_ct_RANLIB 7161 fi 7162else 7163 RANLIB="$ac_cv_prog_RANLIB" 7164fi 7165 7166if test -n "$ac_tool_prefix"; then 7167 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7168set dummy ${ac_tool_prefix}strip; ac_word=$2 7169{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7171if test "${ac_cv_prog_STRIP+set}" = set; then 7172 echo $ECHO_N "(cached) $ECHO_C" >&6 7173else 7174 if test -n "$STRIP"; then 7175 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7176else 7177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7178for as_dir in $PATH 7179do 7180 IFS=$as_save_IFS 7181 test -z "$as_dir" && as_dir=. 7182 for ac_exec_ext in '' $ac_executable_extensions; do 7183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7184 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7186 break 2 7187 fi 7188done 7189done 7190IFS=$as_save_IFS 7191 7192fi 7193fi 7194STRIP=$ac_cv_prog_STRIP 7195if test -n "$STRIP"; then 7196 { echo "$as_me:$LINENO: result: $STRIP" >&5 7197echo "${ECHO_T}$STRIP" >&6; } 7198else 7199 { echo "$as_me:$LINENO: result: no" >&5 7200echo "${ECHO_T}no" >&6; } 7201fi 7202 7203 7204fi 7205if test -z "$ac_cv_prog_STRIP"; then 7206 ac_ct_STRIP=$STRIP 7207 # Extract the first word of "strip", so it can be a program name with args. 7208set dummy strip; ac_word=$2 7209{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7210echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7211if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 7212 echo $ECHO_N "(cached) $ECHO_C" >&6 7213else 7214 if test -n "$ac_ct_STRIP"; then 7215 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7216else 7217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7218for as_dir in $PATH 7219do 7220 IFS=$as_save_IFS 7221 test -z "$as_dir" && as_dir=. 7222 for ac_exec_ext in '' $ac_executable_extensions; do 7223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7224 ac_cv_prog_ac_ct_STRIP="strip" 7225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7226 break 2 7227 fi 7228done 7229done 7230IFS=$as_save_IFS 7231 7232fi 7233fi 7234ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7235if test -n "$ac_ct_STRIP"; then 7236 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 7237echo "${ECHO_T}$ac_ct_STRIP" >&6; } 7238else 7239 { echo "$as_me:$LINENO: result: no" >&5 7240echo "${ECHO_T}no" >&6; } 7241fi 7242 7243 if test "x$ac_ct_STRIP" = x; then 7244 STRIP=":" 7245 else 7246 case $cross_compiling:$ac_tool_warned in 7247yes:) 7248{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7249whose name does not start with the host triplet. If you think this 7250configuration is useful to you, please write to autoconf@gnu.org." >&5 7251echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7252whose name does not start with the host triplet. If you think this 7253configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7254ac_tool_warned=yes ;; 7255esac 7256 STRIP=$ac_ct_STRIP 7257 fi 7258else 7259 STRIP="$ac_cv_prog_STRIP" 7260fi 7261 7262 7263old_CC="$CC" 7264old_CFLAGS="$CFLAGS" 7265 7266# Set sane defaults for various variables 7267test -z "$AR" && AR=ar 7268test -z "$AR_FLAGS" && AR_FLAGS=cru 7269test -z "$AS" && AS=as 7270test -z "$CC" && CC=cc 7271test -z "$LTCC" && LTCC=$CC 7272test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7273test -z "$DLLTOOL" && DLLTOOL=dlltool 7274test -z "$LD" && LD=ld 7275test -z "$LN_S" && LN_S="ln -s" 7276test -z "$MAGIC_CMD" && MAGIC_CMD=file 7277test -z "$NM" && NM=nm 7278test -z "$SED" && SED=sed 7279test -z "$OBJDUMP" && OBJDUMP=objdump 7280test -z "$RANLIB" && RANLIB=: 7281test -z "$STRIP" && STRIP=: 7282test -z "$ac_objext" && ac_objext=o 7283 7284# Determine commands to create old-style static archives. 7285old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 7286old_postinstall_cmds='chmod 644 $oldlib' 7287old_postuninstall_cmds= 7288 7289if test -n "$RANLIB"; then 7290 case $host_os in 7291 openbsd*) 7292 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7293 ;; 7294 *) 7295 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7296 ;; 7297 esac 7298 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7299fi 7300 7301for cc_temp in $compiler""; do 7302 case $cc_temp in 7303 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7304 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7305 \-*) ;; 7306 *) break;; 7307 esac 7308done 7309cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7310 7311 7312# Only perform the check for file, if the check method requires it 7313case $deplibs_check_method in 7314file_magic*) 7315 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7316 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7317echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 7318if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7319 echo $ECHO_N "(cached) $ECHO_C" >&6 7320else 7321 case $MAGIC_CMD in 7322[\\/*] | ?:[\\/]*) 7323 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7324 ;; 7325*) 7326 lt_save_MAGIC_CMD="$MAGIC_CMD" 7327 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7328 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7329 for ac_dir in $ac_dummy; do 7330 IFS="$lt_save_ifs" 7331 test -z "$ac_dir" && ac_dir=. 7332 if test -f $ac_dir/${ac_tool_prefix}file; then 7333 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7334 if test -n "$file_magic_test_file"; then 7335 case $deplibs_check_method in 7336 "file_magic "*) 7337 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7338 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7339 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7340 $EGREP "$file_magic_regex" > /dev/null; then 7341 : 7342 else 7343 cat <<EOF 1>&2 7344 7345*** Warning: the command libtool uses to detect shared libraries, 7346*** $file_magic_cmd, produces output that libtool cannot recognize. 7347*** The result is that libtool may fail to recognize shared libraries 7348*** as such. This will affect the creation of libtool libraries that 7349*** depend on shared libraries, but programs linked with such libtool 7350*** libraries will work regardless of this problem. Nevertheless, you 7351*** may want to report the problem to your system manager and/or to 7352*** bug-libtool@gnu.org 7353 7354EOF 7355 fi ;; 7356 esac 7357 fi 7358 break 7359 fi 7360 done 7361 IFS="$lt_save_ifs" 7362 MAGIC_CMD="$lt_save_MAGIC_CMD" 7363 ;; 7364esac 7365fi 7366 7367MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7368if test -n "$MAGIC_CMD"; then 7369 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7370echo "${ECHO_T}$MAGIC_CMD" >&6; } 7371else 7372 { echo "$as_me:$LINENO: result: no" >&5 7373echo "${ECHO_T}no" >&6; } 7374fi 7375 7376if test -z "$lt_cv_path_MAGIC_CMD"; then 7377 if test -n "$ac_tool_prefix"; then 7378 { echo "$as_me:$LINENO: checking for file" >&5 7379echo $ECHO_N "checking for file... $ECHO_C" >&6; } 7380if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7381 echo $ECHO_N "(cached) $ECHO_C" >&6 7382else 7383 case $MAGIC_CMD in 7384[\\/*] | ?:[\\/]*) 7385 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7386 ;; 7387*) 7388 lt_save_MAGIC_CMD="$MAGIC_CMD" 7389 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7390 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7391 for ac_dir in $ac_dummy; do 7392 IFS="$lt_save_ifs" 7393 test -z "$ac_dir" && ac_dir=. 7394 if test -f $ac_dir/file; then 7395 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7396 if test -n "$file_magic_test_file"; then 7397 case $deplibs_check_method in 7398 "file_magic "*) 7399 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7400 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7401 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7402 $EGREP "$file_magic_regex" > /dev/null; then 7403 : 7404 else 7405 cat <<EOF 1>&2 7406 7407*** Warning: the command libtool uses to detect shared libraries, 7408*** $file_magic_cmd, produces output that libtool cannot recognize. 7409*** The result is that libtool may fail to recognize shared libraries 7410*** as such. This will affect the creation of libtool libraries that 7411*** depend on shared libraries, but programs linked with such libtool 7412*** libraries will work regardless of this problem. Nevertheless, you 7413*** may want to report the problem to your system manager and/or to 7414*** bug-libtool@gnu.org 7415 7416EOF 7417 fi ;; 7418 esac 7419 fi 7420 break 7421 fi 7422 done 7423 IFS="$lt_save_ifs" 7424 MAGIC_CMD="$lt_save_MAGIC_CMD" 7425 ;; 7426esac 7427fi 7428 7429MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7430if test -n "$MAGIC_CMD"; then 7431 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7432echo "${ECHO_T}$MAGIC_CMD" >&6; } 7433else 7434 { echo "$as_me:$LINENO: result: no" >&5 7435echo "${ECHO_T}no" >&6; } 7436fi 7437 7438 else 7439 MAGIC_CMD=: 7440 fi 7441fi 7442 7443 fi 7444 ;; 7445esac 7446 7447enable_dlopen=no 7448enable_win32_dll=no 7449 7450# Check whether --enable-libtool-lock was given. 7451if test "${enable_libtool_lock+set}" = set; then 7452 enableval=$enable_libtool_lock; 7453fi 7454 7455test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7456 7457 7458# Check whether --with-pic was given. 7459if test "${with_pic+set}" = set; then 7460 withval=$with_pic; pic_mode="$withval" 7461else 7462 pic_mode=default 7463fi 7464 7465test -z "$pic_mode" && pic_mode=default 7466 7467# Use C for the default configuration in the libtool script 7468tagname= 7469lt_save_CC="$CC" 7470ac_ext=c 7471ac_cpp='$CPP $CPPFLAGS' 7472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7474ac_compiler_gnu=$ac_cv_c_compiler_gnu 7475 7476 7477# Source file extension for C test sources. 7478ac_ext=c 7479 7480# Object file extension for compiled C test sources. 7481objext=o 7482objext=$objext 7483 7484# Code to be used in simple compile tests 7485lt_simple_compile_test_code="int some_variable = 0;\n" 7486 7487# Code to be used in simple link tests 7488lt_simple_link_test_code='int main(){return(0);}\n' 7489 7490 7491# If no C compiler was specified, use CC. 7492LTCC=${LTCC-"$CC"} 7493 7494# If no C compiler flags were specified, use CFLAGS. 7495LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7496 7497# Allow CC to be a program name with arguments. 7498compiler=$CC 7499 7500 7501# save warnings/boilerplate of simple test code 7502ac_outfile=conftest.$ac_objext 7503printf "$lt_simple_compile_test_code" >conftest.$ac_ext 7504eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7505_lt_compiler_boilerplate=`cat conftest.err` 7506$rm conftest* 7507 7508ac_outfile=conftest.$ac_objext 7509printf "$lt_simple_link_test_code" >conftest.$ac_ext 7510eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7511_lt_linker_boilerplate=`cat conftest.err` 7512$rm conftest* 7513 7514 7515 7516lt_prog_compiler_no_builtin_flag= 7517 7518if test "$GCC" = yes; then 7519 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7520 7521 7522{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7523echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 7524if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7525 echo $ECHO_N "(cached) $ECHO_C" >&6 7526else 7527 lt_cv_prog_compiler_rtti_exceptions=no 7528 ac_outfile=conftest.$ac_objext 7529 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7530 lt_compiler_flag="-fno-rtti -fno-exceptions" 7531 # Insert the option either (1) after the last *FLAGS variable, or 7532 # (2) before a word containing "conftest.", or (3) at the end. 7533 # Note that $ac_compile itself does not contain backslashes and begins 7534 # with a dollar sign (not a hyphen), so the echo should work correctly. 7535 # The option is referenced via a variable to avoid confusing sed. 7536 lt_compile=`echo "$ac_compile" | $SED \ 7537 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7538 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7539 -e 's:$: $lt_compiler_flag:'` 7540 (eval echo "\"\$as_me:7540: $lt_compile\"" >&5) 7541 (eval "$lt_compile" 2>conftest.err) 7542 ac_status=$? 7543 cat conftest.err >&5 7544 echo "$as_me:7544: \$? = $ac_status" >&5 7545 if (exit $ac_status) && test -s "$ac_outfile"; then 7546 # The compiler can only warn and ignore the option if not recognized 7547 # So say no if there are warnings other than the usual output. 7548 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7549 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7550 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7551 lt_cv_prog_compiler_rtti_exceptions=yes 7552 fi 7553 fi 7554 $rm conftest* 7555 7556fi 7557{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7558echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7559 7560if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7561 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7562else 7563 : 7564fi 7565 7566fi 7567 7568lt_prog_compiler_wl= 7569lt_prog_compiler_pic= 7570lt_prog_compiler_static= 7571 7572{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7573echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 7574 7575 if test "$GCC" = yes; then 7576 lt_prog_compiler_wl='-Wl,' 7577 lt_prog_compiler_static='-static' 7578 7579 case $host_os in 7580 aix*) 7581 # All AIX code is PIC. 7582 if test "$host_cpu" = ia64; then 7583 # AIX 5 now supports IA64 processor 7584 lt_prog_compiler_static='-Bstatic' 7585 fi 7586 ;; 7587 7588 amigaos*) 7589 # FIXME: we need at least 68020 code to build shared libraries, but 7590 # adding the `-m68020' flag to GCC prevents building anything better, 7591 # like `-m68040'. 7592 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7593 ;; 7594 7595 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7596 # PIC is the default for these OSes. 7597 ;; 7598 7599 mingw* | pw32* | os2*) 7600 # This hack is so that the source file can tell whether it is being 7601 # built for inclusion in a dll (and should export symbols for example). 7602 lt_prog_compiler_pic='-DDLL_EXPORT' 7603 ;; 7604 7605 darwin* | rhapsody*) 7606 # PIC is the default on this platform 7607 # Common symbols not allowed in MH_DYLIB files 7608 lt_prog_compiler_pic='-fno-common' 7609 ;; 7610 7611 interix3*) 7612 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7613 # Instead, we relocate shared libraries at runtime. 7614 ;; 7615 7616 msdosdjgpp*) 7617 # Just because we use GCC doesn't mean we suddenly get shared libraries 7618 # on systems that don't support them. 7619 lt_prog_compiler_can_build_shared=no 7620 enable_shared=no 7621 ;; 7622 7623 sysv4*MP*) 7624 if test -d /usr/nec; then 7625 lt_prog_compiler_pic=-Kconform_pic 7626 fi 7627 ;; 7628 7629 hpux*) 7630 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7631 # not for PA HP-UX. 7632 case $host_cpu in 7633 hppa*64*|ia64*) 7634 # +Z the default 7635 ;; 7636 *) 7637 lt_prog_compiler_pic='-fPIC' 7638 ;; 7639 esac 7640 ;; 7641 7642 *) 7643 lt_prog_compiler_pic='-fPIC' 7644 ;; 7645 esac 7646 else 7647 # PORTME Check for flag to pass linker flags through the system compiler. 7648 case $host_os in 7649 aix*) 7650 lt_prog_compiler_wl='-Wl,' 7651 if test "$host_cpu" = ia64; then 7652 # AIX 5 now supports IA64 processor 7653 lt_prog_compiler_static='-Bstatic' 7654 else 7655 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7656 fi 7657 ;; 7658 darwin*) 7659 # PIC is the default on this platform 7660 # Common symbols not allowed in MH_DYLIB files 7661 case $cc_basename in 7662 xlc*) 7663 lt_prog_compiler_pic='-qnocommon' 7664 lt_prog_compiler_wl='-Wl,' 7665 ;; 7666 esac 7667 ;; 7668 7669 mingw* | pw32* | os2*) 7670 # This hack is so that the source file can tell whether it is being 7671 # built for inclusion in a dll (and should export symbols for example). 7672 lt_prog_compiler_pic='-DDLL_EXPORT' 7673 ;; 7674 7675 hpux9* | hpux10* | hpux11*) 7676 lt_prog_compiler_wl='-Wl,' 7677 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7678 # not for PA HP-UX. 7679 case $host_cpu in 7680 hppa*64*|ia64*) 7681 # +Z the default 7682 ;; 7683 *) 7684 lt_prog_compiler_pic='+Z' 7685 ;; 7686 esac 7687 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7688 lt_prog_compiler_static='${wl}-a ${wl}archive' 7689 ;; 7690 7691 irix5* | irix6* | nonstopux*) 7692 lt_prog_compiler_wl='-Wl,' 7693 # PIC (with -KPIC) is the default. 7694 lt_prog_compiler_static='-non_shared' 7695 ;; 7696 7697 newsos6) 7698 lt_prog_compiler_pic='-KPIC' 7699 lt_prog_compiler_static='-Bstatic' 7700 ;; 7701 7702 linux*) 7703 case $cc_basename in 7704 icc* | ecc*) 7705 lt_prog_compiler_wl='-Wl,' 7706 lt_prog_compiler_pic='-KPIC' 7707 lt_prog_compiler_static='-static' 7708 ;; 7709 pgcc* | pgf77* | pgf90* | pgf95*) 7710 # Portland Group compilers (*not* the Pentium gcc compiler, 7711 # which looks to be a dead project) 7712 lt_prog_compiler_wl='-Wl,' 7713 lt_prog_compiler_pic='-fpic' 7714 lt_prog_compiler_static='-Bstatic' 7715 ;; 7716 ccc*) 7717 lt_prog_compiler_wl='-Wl,' 7718 # All Alpha code is PIC. 7719 lt_prog_compiler_static='-non_shared' 7720 ;; 7721 esac 7722 ;; 7723 7724 osf3* | osf4* | osf5*) 7725 lt_prog_compiler_wl='-Wl,' 7726 # All OSF/1 code is PIC. 7727 lt_prog_compiler_static='-non_shared' 7728 ;; 7729 7730 solaris*) 7731 lt_prog_compiler_pic='-KPIC' 7732 lt_prog_compiler_static='-Bstatic' 7733 case $cc_basename in 7734 f77* | f90* | f95*) 7735 lt_prog_compiler_wl='-Qoption ld ';; 7736 *) 7737 lt_prog_compiler_wl='-Wl,';; 7738 esac 7739 ;; 7740 7741 sunos4*) 7742 lt_prog_compiler_wl='-Qoption ld ' 7743 lt_prog_compiler_pic='-PIC' 7744 lt_prog_compiler_static='-Bstatic' 7745 ;; 7746 7747 sysv4 | sysv4.2uw2* | sysv4.3*) 7748 lt_prog_compiler_wl='-Wl,' 7749 lt_prog_compiler_pic='-KPIC' 7750 lt_prog_compiler_static='-Bstatic' 7751 ;; 7752 7753 sysv4*MP*) 7754 if test -d /usr/nec ;then 7755 lt_prog_compiler_pic='-Kconform_pic' 7756 lt_prog_compiler_static='-Bstatic' 7757 fi 7758 ;; 7759 7760 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7761 lt_prog_compiler_wl='-Wl,' 7762 lt_prog_compiler_pic='-KPIC' 7763 lt_prog_compiler_static='-Bstatic' 7764 ;; 7765 7766 unicos*) 7767 lt_prog_compiler_wl='-Wl,' 7768 lt_prog_compiler_can_build_shared=no 7769 ;; 7770 7771 uts4*) 7772 lt_prog_compiler_pic='-pic' 7773 lt_prog_compiler_static='-Bstatic' 7774 ;; 7775 7776 *) 7777 lt_prog_compiler_can_build_shared=no 7778 ;; 7779 esac 7780 fi 7781 7782{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7783echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 7784 7785# 7786# Check to make sure the PIC flag actually works. 7787# 7788if test -n "$lt_prog_compiler_pic"; then 7789 7790{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7791echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 7792if test "${lt_prog_compiler_pic_works+set}" = set; then 7793 echo $ECHO_N "(cached) $ECHO_C" >&6 7794else 7795 lt_prog_compiler_pic_works=no 7796 ac_outfile=conftest.$ac_objext 7797 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7798 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7799 # Insert the option either (1) after the last *FLAGS variable, or 7800 # (2) before a word containing "conftest.", or (3) at the end. 7801 # Note that $ac_compile itself does not contain backslashes and begins 7802 # with a dollar sign (not a hyphen), so the echo should work correctly. 7803 # The option is referenced via a variable to avoid confusing sed. 7804 lt_compile=`echo "$ac_compile" | $SED \ 7805 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7806 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7807 -e 's:$: $lt_compiler_flag:'` 7808 (eval echo "\"\$as_me:7808: $lt_compile\"" >&5) 7809 (eval "$lt_compile" 2>conftest.err) 7810 ac_status=$? 7811 cat conftest.err >&5 7812 echo "$as_me:7812: \$? = $ac_status" >&5 7813 if (exit $ac_status) && test -s "$ac_outfile"; then 7814 # The compiler can only warn and ignore the option if not recognized 7815 # So say no if there are warnings other than the usual output. 7816 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7817 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7818 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7819 lt_prog_compiler_pic_works=yes 7820 fi 7821 fi 7822 $rm conftest* 7823 7824fi 7825{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 7826echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } 7827 7828if test x"$lt_prog_compiler_pic_works" = xyes; then 7829 case $lt_prog_compiler_pic in 7830 "" | " "*) ;; 7831 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7832 esac 7833else 7834 lt_prog_compiler_pic= 7835 lt_prog_compiler_can_build_shared=no 7836fi 7837 7838fi 7839case $host_os in 7840 # For platforms which do not support PIC, -DPIC is meaningless: 7841 *djgpp*) 7842 lt_prog_compiler_pic= 7843 ;; 7844 *) 7845 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7846 ;; 7847esac 7848 7849# 7850# Check to make sure the static flag actually works. 7851# 7852wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7853{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7854echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 7855if test "${lt_prog_compiler_static_works+set}" = set; then 7856 echo $ECHO_N "(cached) $ECHO_C" >&6 7857else 7858 lt_prog_compiler_static_works=no 7859 save_LDFLAGS="$LDFLAGS" 7860 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7861 printf "$lt_simple_link_test_code" > conftest.$ac_ext 7862 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7863 # The linker can only warn and ignore the option if not recognized 7864 # So say no if there are warnings 7865 if test -s conftest.err; then 7866 # Append any errors to the config.log. 7867 cat conftest.err 1>&5 7868 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7869 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7870 if diff conftest.exp conftest.er2 >/dev/null; then 7871 lt_prog_compiler_static_works=yes 7872 fi 7873 else 7874 lt_prog_compiler_static_works=yes 7875 fi 7876 fi 7877 $rm conftest* 7878 LDFLAGS="$save_LDFLAGS" 7879 7880fi 7881{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 7882echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } 7883 7884if test x"$lt_prog_compiler_static_works" = xyes; then 7885 : 7886else 7887 lt_prog_compiler_static= 7888fi 7889 7890 7891{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7892echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 7893if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7894 echo $ECHO_N "(cached) $ECHO_C" >&6 7895else 7896 lt_cv_prog_compiler_c_o=no 7897 $rm -r conftest 2>/dev/null 7898 mkdir conftest 7899 cd conftest 7900 mkdir out 7901 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7902 7903 lt_compiler_flag="-o out/conftest2.$ac_objext" 7904 # Insert the option either (1) after the last *FLAGS variable, or 7905 # (2) before a word containing "conftest.", or (3) at the end. 7906 # Note that $ac_compile itself does not contain backslashes and begins 7907 # with a dollar sign (not a hyphen), so the echo should work correctly. 7908 lt_compile=`echo "$ac_compile" | $SED \ 7909 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7910 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7911 -e 's:$: $lt_compiler_flag:'` 7912 (eval echo "\"\$as_me:7912: $lt_compile\"" >&5) 7913 (eval "$lt_compile" 2>out/conftest.err) 7914 ac_status=$? 7915 cat out/conftest.err >&5 7916 echo "$as_me:7916: \$? = $ac_status" >&5 7917 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7918 then 7919 # The compiler can only warn and ignore the option if not recognized 7920 # So say no if there are warnings 7921 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7922 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7923 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7924 lt_cv_prog_compiler_c_o=yes 7925 fi 7926 fi 7927 chmod u+w . 2>&5 7928 $rm conftest* 7929 # SGI C++ compiler will create directory out/ii_files/ for 7930 # template instantiation 7931 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7932 $rm out/* && rmdir out 7933 cd .. 7934 rmdir conftest 7935 $rm conftest* 7936 7937fi 7938{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7939echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 7940 7941 7942hard_links="nottested" 7943if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7944 # do not overwrite the value of need_locks provided by the user 7945 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7946echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 7947 hard_links=yes 7948 $rm conftest* 7949 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7950 touch conftest.a 7951 ln conftest.a conftest.b 2>&5 || hard_links=no 7952 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7953 { echo "$as_me:$LINENO: result: $hard_links" >&5 7954echo "${ECHO_T}$hard_links" >&6; } 7955 if test "$hard_links" = no; then 7956 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7957echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7958 need_locks=warn 7959 fi 7960else 7961 need_locks=no 7962fi 7963 7964{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7965echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 7966 7967 runpath_var= 7968 allow_undefined_flag= 7969 enable_shared_with_static_runtimes=no 7970 archive_cmds= 7971 archive_expsym_cmds= 7972 old_archive_From_new_cmds= 7973 old_archive_from_expsyms_cmds= 7974 export_dynamic_flag_spec= 7975 whole_archive_flag_spec= 7976 thread_safe_flag_spec= 7977 hardcode_libdir_flag_spec= 7978 hardcode_libdir_flag_spec_ld= 7979 hardcode_libdir_separator= 7980 hardcode_direct=no 7981 hardcode_minus_L=no 7982 hardcode_shlibpath_var=unsupported 7983 link_all_deplibs=unknown 7984 hardcode_automatic=no 7985 module_cmds= 7986 module_expsym_cmds= 7987 always_export_symbols=no 7988 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7989 # include_expsyms should be a list of space-separated symbols to be *always* 7990 # included in the symbol list 7991 include_expsyms= 7992 # exclude_expsyms can be an extended regexp of symbols to exclude 7993 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7994 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7995 # as well as any symbol that contains `d'. 7996 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 7997 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7998 # platforms (ab)use it in PIC code, but their linkers get confused if 7999 # the symbol is explicitly referenced. Since portable code cannot 8000 # rely on this symbol name, it's probably fine to never include it in 8001 # preloaded symbol tables. 8002 extract_expsyms_cmds= 8003 # Just being paranoid about ensuring that cc_basename is set. 8004 for cc_temp in $compiler""; do 8005 case $cc_temp in 8006 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8007 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8008 \-*) ;; 8009 *) break;; 8010 esac 8011done 8012cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8013 8014 case $host_os in 8015 cygwin* | mingw* | pw32*) 8016 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8017 # When not using gcc, we currently assume that we are using 8018 # Microsoft Visual C++. 8019 if test "$GCC" != yes; then 8020 with_gnu_ld=no 8021 fi 8022 ;; 8023 interix*) 8024 # we just hope/assume this is gcc and not c89 (= MSVC++) 8025 with_gnu_ld=yes 8026 ;; 8027 openbsd*) 8028 with_gnu_ld=no 8029 ;; 8030 esac 8031 8032 ld_shlibs=yes 8033 if test "$with_gnu_ld" = yes; then 8034 # If archive_cmds runs LD, not CC, wlarc should be empty 8035 wlarc='${wl}' 8036 8037 # Set some defaults for GNU ld with shared library support. These 8038 # are reset later if shared libraries are not supported. Putting them 8039 # here allows them to be overridden if necessary. 8040 runpath_var=LD_RUN_PATH 8041 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 8042 export_dynamic_flag_spec='${wl}--export-dynamic' 8043 # ancient GNU ld didn't support --whole-archive et. al. 8044 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 8045 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8046 else 8047 whole_archive_flag_spec= 8048 fi 8049 supports_anon_versioning=no 8050 case `$LD -v 2>/dev/null` in 8051 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8052 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8053 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8054 *\ 2.11.*) ;; # other 2.11 versions 8055 *) supports_anon_versioning=yes ;; 8056 esac 8057 8058 # See if GNU ld supports shared libraries. 8059 case $host_os in 8060 aix3* | aix4* | aix5*) 8061 # On AIX/PPC, the GNU linker is very broken 8062 if test "$host_cpu" != ia64; then 8063 ld_shlibs=no 8064 cat <<EOF 1>&2 8065 8066*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8067*** to be unable to reliably create shared libraries on AIX. 8068*** Therefore, libtool is disabling shared libraries support. If you 8069*** really care for shared libraries, you may want to modify your PATH 8070*** so that a non-GNU linker is found, and then restart. 8071 8072EOF 8073 fi 8074 ;; 8075 8076 amigaos*) 8077 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)' 8078 hardcode_libdir_flag_spec='-L$libdir' 8079 hardcode_minus_L=yes 8080 8081 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 8082 # that the semantics of dynamic libraries on AmigaOS, at least up 8083 # to version 4, is to share data among multiple programs linked 8084 # with the same dynamic library. Since this doesn't match the 8085 # behavior of shared libraries on other platforms, we can't use 8086 # them. 8087 ld_shlibs=no 8088 ;; 8089 8090 beos*) 8091 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8092 allow_undefined_flag=unsupported 8093 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8094 # support --undefined. This deserves some investigation. FIXME 8095 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8096 else 8097 ld_shlibs=no 8098 fi 8099 ;; 8100 8101 cygwin* | mingw* | pw32*) 8102 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8103 # as there is no search path for DLLs. 8104 hardcode_libdir_flag_spec='-L$libdir' 8105 allow_undefined_flag=unsupported 8106 always_export_symbols=no 8107 enable_shared_with_static_runtimes=yes 8108 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 8109 8110 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 8111 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8112 # If the export-symbols file already is a .def file (1st line 8113 # is EXPORTS), use it as is; otherwise, prepend... 8114 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8115 cp $export_symbols $output_objdir/$soname.def; 8116 else 8117 echo EXPORTS > $output_objdir/$soname.def; 8118 cat $export_symbols >> $output_objdir/$soname.def; 8119 fi~ 8120 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8121 else 8122 ld_shlibs=no 8123 fi 8124 ;; 8125 8126 interix3*) 8127 hardcode_direct=no 8128 hardcode_shlibpath_var=no 8129 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8130 export_dynamic_flag_spec='${wl}-E' 8131 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8132 # Instead, shared libraries are loaded at an image base (0x10000000 by 8133 # default) and relocated if they conflict, which is a slow very memory 8134 # consuming and fragmenting process. To avoid this, we pick a random, 8135 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8136 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8137 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8138 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' 8139 ;; 8140 8141 linux*) 8142 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8143 tmp_addflag= 8144 case $cc_basename,$host_cpu in 8145 pgcc*) # Portland Group C compiler 8146 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' 8147 tmp_addflag=' $pic_flag' 8148 ;; 8149 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8150 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' 8151 tmp_addflag=' $pic_flag -Mnomain' ;; 8152 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8153 tmp_addflag=' -i_dynamic' ;; 8154 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8155 tmp_addflag=' -i_dynamic -nofor_main' ;; 8156 ifc* | ifort*) # Intel Fortran compiler 8157 tmp_addflag=' -nofor_main' ;; 8158 esac 8159 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8160 8161 if test $supports_anon_versioning = yes; then 8162 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8163 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8164 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8165 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8166 fi 8167 else 8168 ld_shlibs=no 8169 fi 8170 ;; 8171 8172 netbsd*) 8173 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8174 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8175 wlarc= 8176 else 8177 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8178 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8179 fi 8180 ;; 8181 8182 solaris*) 8183 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8184 ld_shlibs=no 8185 cat <<EOF 1>&2 8186 8187*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8188*** create shared libraries on Solaris systems. Therefore, libtool 8189*** is disabling shared libraries support. We urge you to upgrade GNU 8190*** binutils to release 2.9.1 or newer. Another option is to modify 8191*** your PATH or compiler configuration so that the native linker is 8192*** used, and then restart. 8193 8194EOF 8195 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8196 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8197 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8198 else 8199 ld_shlibs=no 8200 fi 8201 ;; 8202 8203 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8204 case `$LD -v 2>&1` in 8205 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8206 ld_shlibs=no 8207 cat <<_LT_EOF 1>&2 8208 8209*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8210*** reliably create shared libraries on SCO systems. Therefore, libtool 8211*** is disabling shared libraries support. We urge you to upgrade GNU 8212*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8213*** your PATH or compiler configuration so that the native linker is 8214*** used, and then restart. 8215 8216_LT_EOF 8217 ;; 8218 *) 8219 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8220 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 8221 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 8222 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 8223 else 8224 ld_shlibs=no 8225 fi 8226 ;; 8227 esac 8228 ;; 8229 8230 sunos4*) 8231 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8232 wlarc= 8233 hardcode_direct=yes 8234 hardcode_shlibpath_var=no 8235 ;; 8236 8237 *) 8238 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8239 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8240 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8241 else 8242 ld_shlibs=no 8243 fi 8244 ;; 8245 esac 8246 8247 if test "$ld_shlibs" = no; then 8248 runpath_var= 8249 hardcode_libdir_flag_spec= 8250 export_dynamic_flag_spec= 8251 whole_archive_flag_spec= 8252 fi 8253 else 8254 # PORTME fill in a description of your system's linker (not GNU ld) 8255 case $host_os in 8256 aix3*) 8257 allow_undefined_flag=unsupported 8258 always_export_symbols=yes 8259 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' 8260 # Note: this linker hardcodes the directories in LIBPATH if there 8261 # are no directories specified by -L. 8262 hardcode_minus_L=yes 8263 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8264 # Neither direct hardcoding nor static linking is supported with a 8265 # broken collect2. 8266 hardcode_direct=unsupported 8267 fi 8268 ;; 8269 8270 aix4* | aix5*) 8271 if test "$host_cpu" = ia64; then 8272 # On IA64, the linker does run time linking by default, so we don't 8273 # have to do anything special. 8274 aix_use_runtimelinking=no 8275 exp_sym_flag='-Bexport' 8276 no_entry_flag="" 8277 else 8278 # If we're using GNU nm, then we don't want the "-C" option. 8279 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8280 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 8281 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' 8282 else 8283 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' 8284 fi 8285 aix_use_runtimelinking=no 8286 8287 # Test if we are trying to use run time linking or normal 8288 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8289 # need to do runtime linking. 8290 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 8291 for ld_flag in $LDFLAGS; do 8292 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8293 aix_use_runtimelinking=yes 8294 break 8295 fi 8296 done 8297 ;; 8298 esac 8299 8300 exp_sym_flag='-bexport' 8301 no_entry_flag='-bnoentry' 8302 fi 8303 8304 # When large executables or shared objects are built, AIX ld can 8305 # have problems creating the table of contents. If linking a library 8306 # or program results in "error TOC overflow" add -mminimal-toc to 8307 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8308 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8309 8310 archive_cmds='' 8311 hardcode_direct=yes 8312 hardcode_libdir_separator=':' 8313 link_all_deplibs=yes 8314 8315 if test "$GCC" = yes; then 8316 case $host_os in aix4.[012]|aix4.[012].*) 8317 # We only want to do this on AIX 4.2 and lower, the check 8318 # below for broken collect2 doesn't work under 4.3+ 8319 collect2name=`${CC} -print-prog-name=collect2` 8320 if test -f "$collect2name" && \ 8321 strings "$collect2name" | grep resolve_lib_name >/dev/null 8322 then 8323 # We have reworked collect2 8324 hardcode_direct=yes 8325 else 8326 # We have old collect2 8327 hardcode_direct=unsupported 8328 # It fails to find uninstalled libraries when the uninstalled 8329 # path is not listed in the libpath. Setting hardcode_minus_L 8330 # to unsupported forces relinking 8331 hardcode_minus_L=yes 8332 hardcode_libdir_flag_spec='-L$libdir' 8333 hardcode_libdir_separator= 8334 fi 8335 ;; 8336 esac 8337 shared_flag='-shared' 8338 if test "$aix_use_runtimelinking" = yes; then 8339 shared_flag="$shared_flag "'${wl}-G' 8340 fi 8341 else 8342 # not using gcc 8343 if test "$host_cpu" = ia64; then 8344 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8345 # chokes on -Wl,-G. The following line is correct: 8346 shared_flag='-G' 8347 else 8348 if test "$aix_use_runtimelinking" = yes; then 8349 shared_flag='${wl}-G' 8350 else 8351 shared_flag='${wl}-bM:SRE' 8352 fi 8353 fi 8354 fi 8355 8356 # It seems that -bexpall does not export symbols beginning with 8357 # underscore (_), so it is better to generate a list of symbols to export. 8358 always_export_symbols=yes 8359 if test "$aix_use_runtimelinking" = yes; then 8360 # Warning - without using the other runtime loading flags (-brtl), 8361 # -berok will link without error, but may produce a broken library. 8362 allow_undefined_flag='-berok' 8363 # Determine the default libpath from the value encoded in an empty executable. 8364 cat >conftest.$ac_ext <<_ACEOF 8365/* confdefs.h. */ 8366_ACEOF 8367cat confdefs.h >>conftest.$ac_ext 8368cat >>conftest.$ac_ext <<_ACEOF 8369/* end confdefs.h. */ 8370 8371int 8372main () 8373{ 8374 8375 ; 8376 return 0; 8377} 8378_ACEOF 8379rm -f conftest.$ac_objext conftest$ac_exeext 8380if { (ac_try="$ac_link" 8381case "(($ac_try" in 8382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8383 *) ac_try_echo=$ac_try;; 8384esac 8385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8386 (eval "$ac_link") 2>conftest.er1 8387 ac_status=$? 8388 grep -v '^ *+' conftest.er1 >conftest.err 8389 rm -f conftest.er1 8390 cat conftest.err >&5 8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8392 (exit $ac_status); } && 8393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8394 { (case "(($ac_try" in 8395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8396 *) ac_try_echo=$ac_try;; 8397esac 8398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8399 (eval "$ac_try") 2>&5 8400 ac_status=$? 8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8402 (exit $ac_status); }; } && 8403 { ac_try='test -s conftest$ac_exeext' 8404 { (case "(($ac_try" in 8405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8406 *) ac_try_echo=$ac_try;; 8407esac 8408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8409 (eval "$ac_try") 2>&5 8410 ac_status=$? 8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8412 (exit $ac_status); }; }; then 8413 8414aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8415}'` 8416# Check for a 64-bit object if we didn't find anything. 8417if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8418}'`; fi 8419else 8420 echo "$as_me: failed program was:" >&5 8421sed 's/^/| /' conftest.$ac_ext >&5 8422 8423 8424fi 8425 8426rm -f core conftest.err conftest.$ac_objext \ 8427 conftest$ac_exeext conftest.$ac_ext 8428if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8429 8430 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8431 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" 8432 else 8433 if test "$host_cpu" = ia64; then 8434 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8435 allow_undefined_flag="-z nodefs" 8436 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" 8437 else 8438 # Determine the default libpath from the value encoded in an empty executable. 8439 cat >conftest.$ac_ext <<_ACEOF 8440/* confdefs.h. */ 8441_ACEOF 8442cat confdefs.h >>conftest.$ac_ext 8443cat >>conftest.$ac_ext <<_ACEOF 8444/* end confdefs.h. */ 8445 8446int 8447main () 8448{ 8449 8450 ; 8451 return 0; 8452} 8453_ACEOF 8454rm -f conftest.$ac_objext conftest$ac_exeext 8455if { (ac_try="$ac_link" 8456case "(($ac_try" in 8457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8458 *) ac_try_echo=$ac_try;; 8459esac 8460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8461 (eval "$ac_link") 2>conftest.er1 8462 ac_status=$? 8463 grep -v '^ *+' conftest.er1 >conftest.err 8464 rm -f conftest.er1 8465 cat conftest.err >&5 8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8467 (exit $ac_status); } && 8468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8469 { (case "(($ac_try" in 8470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8471 *) ac_try_echo=$ac_try;; 8472esac 8473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8474 (eval "$ac_try") 2>&5 8475 ac_status=$? 8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8477 (exit $ac_status); }; } && 8478 { ac_try='test -s conftest$ac_exeext' 8479 { (case "(($ac_try" in 8480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8481 *) ac_try_echo=$ac_try;; 8482esac 8483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8484 (eval "$ac_try") 2>&5 8485 ac_status=$? 8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8487 (exit $ac_status); }; }; then 8488 8489aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8490}'` 8491# Check for a 64-bit object if we didn't find anything. 8492if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8493}'`; fi 8494else 8495 echo "$as_me: failed program was:" >&5 8496sed 's/^/| /' conftest.$ac_ext >&5 8497 8498 8499fi 8500 8501rm -f core conftest.err conftest.$ac_objext \ 8502 conftest$ac_exeext conftest.$ac_ext 8503if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8504 8505 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8506 # Warning - without using the other run time loading flags, 8507 # -berok will link without error, but may produce a broken library. 8508 no_undefined_flag=' ${wl}-bernotok' 8509 allow_undefined_flag=' ${wl}-berok' 8510 # Exported symbols can be pulled into shared objects from archives 8511 whole_archive_flag_spec='$convenience' 8512 archive_cmds_need_lc=yes 8513 # This is similar to how AIX traditionally builds its shared libraries. 8514 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' 8515 fi 8516 fi 8517 ;; 8518 8519 amigaos*) 8520 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)' 8521 hardcode_libdir_flag_spec='-L$libdir' 8522 hardcode_minus_L=yes 8523 # see comment about different semantics on the GNU ld section 8524 ld_shlibs=no 8525 ;; 8526 8527 bsdi[45]*) 8528 export_dynamic_flag_spec=-rdynamic 8529 ;; 8530 8531 cygwin* | mingw* | pw32*) 8532 # When not using gcc, we currently assume that we are using 8533 # Microsoft Visual C++. 8534 # hardcode_libdir_flag_spec is actually meaningless, as there is 8535 # no search path for DLLs. 8536 hardcode_libdir_flag_spec=' ' 8537 allow_undefined_flag=unsupported 8538 # Tell ltmain to make .lib files, not .a files. 8539 libext=lib 8540 # Tell ltmain to make .dll files, not .so files. 8541 shrext_cmds=".dll" 8542 # FIXME: Setting linknames here is a bad hack. 8543 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8544 # The linker will automatically build a .lib file if we build a DLL. 8545 old_archive_From_new_cmds='true' 8546 # FIXME: Should let the user specify the lib program. 8547 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 8548 fix_srcfile_path='`cygpath -w "$srcfile"`' 8549 enable_shared_with_static_runtimes=yes 8550 ;; 8551 8552 darwin* | rhapsody*) 8553 case $host_os in 8554 rhapsody* | darwin1.[012]) 8555 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8556 ;; 8557 *) # Darwin 1.3 on 8558 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8559 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8560 else 8561 case ${MACOSX_DEPLOYMENT_TARGET} in 8562 10.[012]) 8563 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8564 ;; 8565 10.*) 8566 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8567 ;; 8568 esac 8569 fi 8570 ;; 8571 esac 8572 archive_cmds_need_lc=no 8573 hardcode_direct=no 8574 hardcode_automatic=yes 8575 hardcode_shlibpath_var=unsupported 8576 whole_archive_flag_spec='' 8577 link_all_deplibs=yes 8578 if test "$GCC" = yes ; then 8579 output_verbose_link_cmd='echo' 8580 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 8581 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8582 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8583 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8584 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}' 8585 else 8586 case $cc_basename in 8587 xlc*) 8588 output_verbose_link_cmd='echo' 8589 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 8590 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8591 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8592 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8593 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}' 8594 ;; 8595 *) 8596 ld_shlibs=no 8597 ;; 8598 esac 8599 fi 8600 ;; 8601 8602 dgux*) 8603 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8604 hardcode_libdir_flag_spec='-L$libdir' 8605 hardcode_shlibpath_var=no 8606 ;; 8607 8608 freebsd1*) 8609 ld_shlibs=no 8610 ;; 8611 8612 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8613 # support. Future versions do this automatically, but an explicit c++rt0.o 8614 # does not break anything, and helps significantly (at the cost of a little 8615 # extra space). 8616 freebsd2.2*) 8617 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8618 hardcode_libdir_flag_spec='-R$libdir' 8619 hardcode_direct=yes 8620 hardcode_shlibpath_var=no 8621 ;; 8622 8623 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8624 freebsd2*) 8625 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8626 hardcode_direct=yes 8627 hardcode_minus_L=yes 8628 hardcode_shlibpath_var=no 8629 ;; 8630 8631 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8632 freebsd* | kfreebsd*-gnu | dragonfly*) 8633 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8634 hardcode_libdir_flag_spec='-R$libdir' 8635 hardcode_direct=yes 8636 hardcode_shlibpath_var=no 8637 ;; 8638 8639 hpux9*) 8640 if test "$GCC" = yes; then 8641 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' 8642 else 8643 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' 8644 fi 8645 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8646 hardcode_libdir_separator=: 8647 hardcode_direct=yes 8648 8649 # hardcode_minus_L: Not really in the search PATH, 8650 # but as the default location of the library. 8651 hardcode_minus_L=yes 8652 export_dynamic_flag_spec='${wl}-E' 8653 ;; 8654 8655 hpux10*) 8656 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8657 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8658 else 8659 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8660 fi 8661 if test "$with_gnu_ld" = no; then 8662 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8663 hardcode_libdir_separator=: 8664 8665 hardcode_direct=yes 8666 export_dynamic_flag_spec='${wl}-E' 8667 8668 # hardcode_minus_L: Not really in the search PATH, 8669 # but as the default location of the library. 8670 hardcode_minus_L=yes 8671 fi 8672 ;; 8673 8674 hpux11*) 8675 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8676 case $host_cpu in 8677 hppa*64*) 8678 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8679 ;; 8680 ia64*) 8681 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8682 ;; 8683 *) 8684 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8685 ;; 8686 esac 8687 else 8688 case $host_cpu in 8689 hppa*64*) 8690 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8691 ;; 8692 ia64*) 8693 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8694 ;; 8695 *) 8696 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8697 ;; 8698 esac 8699 fi 8700 if test "$with_gnu_ld" = no; then 8701 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8702 hardcode_libdir_separator=: 8703 8704 case $host_cpu in 8705 hppa*64*|ia64*) 8706 hardcode_libdir_flag_spec_ld='+b $libdir' 8707 hardcode_direct=no 8708 hardcode_shlibpath_var=no 8709 ;; 8710 *) 8711 hardcode_direct=yes 8712 export_dynamic_flag_spec='${wl}-E' 8713 8714 # hardcode_minus_L: Not really in the search PATH, 8715 # but as the default location of the library. 8716 hardcode_minus_L=yes 8717 ;; 8718 esac 8719 fi 8720 ;; 8721 8722 irix5* | irix6* | nonstopux*) 8723 if test "$GCC" = yes; then 8724 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' 8725 else 8726 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' 8727 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8728 fi 8729 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8730 hardcode_libdir_separator=: 8731 link_all_deplibs=yes 8732 ;; 8733 8734 netbsd*) 8735 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8736 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8737 else 8738 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8739 fi 8740 hardcode_libdir_flag_spec='-R$libdir' 8741 hardcode_direct=yes 8742 hardcode_shlibpath_var=no 8743 ;; 8744 8745 newsos6) 8746 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8747 hardcode_direct=yes 8748 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8749 hardcode_libdir_separator=: 8750 hardcode_shlibpath_var=no 8751 ;; 8752 8753 openbsd*) 8754 hardcode_direct=yes 8755 hardcode_shlibpath_var=no 8756 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8757 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8758 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8759 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8760 export_dynamic_flag_spec='${wl}-E' 8761 else 8762 case $host_os in 8763 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8764 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8765 hardcode_libdir_flag_spec='-R$libdir' 8766 ;; 8767 *) 8768 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8769 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8770 ;; 8771 esac 8772 fi 8773 ;; 8774 8775 os2*) 8776 hardcode_libdir_flag_spec='-L$libdir' 8777 hardcode_minus_L=yes 8778 allow_undefined_flag=unsupported 8779 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' 8780 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8781 ;; 8782 8783 osf3*) 8784 if test "$GCC" = yes; then 8785 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8786 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' 8787 else 8788 allow_undefined_flag=' -expect_unresolved \*' 8789 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' 8790 fi 8791 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8792 hardcode_libdir_separator=: 8793 ;; 8794 8795 osf4* | osf5*) # as osf3* with the addition of -msym flag 8796 if test "$GCC" = yes; then 8797 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8798 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' 8799 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8800 else 8801 allow_undefined_flag=' -expect_unresolved \*' 8802 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' 8803 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8804 $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' 8805 8806 # Both c and cxx compiler support -rpath directly 8807 hardcode_libdir_flag_spec='-rpath $libdir' 8808 fi 8809 hardcode_libdir_separator=: 8810 ;; 8811 8812 solaris*) 8813 no_undefined_flag=' -z text' 8814 if test "$GCC" = yes; then 8815 wlarc='${wl}' 8816 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8817 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8818 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8819 else 8820 wlarc='' 8821 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8822 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8823 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8824 fi 8825 hardcode_libdir_flag_spec='-R$libdir' 8826 hardcode_shlibpath_var=no 8827 case $host_os in 8828 solaris2.[0-5] | solaris2.[0-5].*) ;; 8829 *) 8830 # The compiler driver will combine linker options so we 8831 # cannot just pass the convience library names through 8832 # without $wl, iff we do not link with $LD. 8833 # Luckily, gcc supports the same syntax we need for Sun Studio. 8834 # Supported since Solaris 2.6 (maybe 2.5.1?) 8835 case $wlarc in 8836 '') 8837 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 8838 *) 8839 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 8840 esac ;; 8841 esac 8842 link_all_deplibs=yes 8843 ;; 8844 8845 sunos4*) 8846 if test "x$host_vendor" = xsequent; then 8847 # Use $CC to link under sequent, because it throws in some extra .o 8848 # files that make .init and .fini sections work. 8849 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8850 else 8851 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8852 fi 8853 hardcode_libdir_flag_spec='-L$libdir' 8854 hardcode_direct=yes 8855 hardcode_minus_L=yes 8856 hardcode_shlibpath_var=no 8857 ;; 8858 8859 sysv4) 8860 case $host_vendor in 8861 sni) 8862 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8863 hardcode_direct=yes # is this really true??? 8864 ;; 8865 siemens) 8866 ## LD is ld it makes a PLAMLIB 8867 ## CC just makes a GrossModule. 8868 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8869 reload_cmds='$CC -r -o $output$reload_objs' 8870 hardcode_direct=no 8871 ;; 8872 motorola) 8873 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8874 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8875 ;; 8876 esac 8877 runpath_var='LD_RUN_PATH' 8878 hardcode_shlibpath_var=no 8879 ;; 8880 8881 sysv4.3*) 8882 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8883 hardcode_shlibpath_var=no 8884 export_dynamic_flag_spec='-Bexport' 8885 ;; 8886 8887 sysv4*MP*) 8888 if test -d /usr/nec; then 8889 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8890 hardcode_shlibpath_var=no 8891 runpath_var=LD_RUN_PATH 8892 hardcode_runpath_var=yes 8893 ld_shlibs=yes 8894 fi 8895 ;; 8896 8897 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 8898 no_undefined_flag='${wl}-z,text' 8899 archive_cmds_need_lc=no 8900 hardcode_shlibpath_var=no 8901 runpath_var='LD_RUN_PATH' 8902 8903 if test "$GCC" = yes; then 8904 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8905 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8906 else 8907 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8908 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8909 fi 8910 ;; 8911 8912 sysv5* | sco3.2v5* | sco5v6*) 8913 # Note: We can NOT use -z defs as we might desire, because we do not 8914 # link with -lc, and that would cause any symbols used from libc to 8915 # always be unresolved, which means just about no library would 8916 # ever link correctly. If we're not using GNU ld we use -z text 8917 # though, which does catch some bad symbols but isn't as heavy-handed 8918 # as -z defs. 8919 no_undefined_flag='${wl}-z,text' 8920 allow_undefined_flag='${wl}-z,nodefs' 8921 archive_cmds_need_lc=no 8922 hardcode_shlibpath_var=no 8923 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8924 hardcode_libdir_separator=':' 8925 link_all_deplibs=yes 8926 export_dynamic_flag_spec='${wl}-Bexport' 8927 runpath_var='LD_RUN_PATH' 8928 8929 if test "$GCC" = yes; then 8930 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8931 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8932 else 8933 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8934 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8935 fi 8936 ;; 8937 8938 uts4*) 8939 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8940 hardcode_libdir_flag_spec='-L$libdir' 8941 hardcode_shlibpath_var=no 8942 ;; 8943 8944 *) 8945 ld_shlibs=no 8946 ;; 8947 esac 8948 fi 8949 8950{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8951echo "${ECHO_T}$ld_shlibs" >&6; } 8952test "$ld_shlibs" = no && can_build_shared=no 8953 8954# 8955# Do we need to explicitly link libc? 8956# 8957case "x$archive_cmds_need_lc" in 8958x|xyes) 8959 # Assume -lc should be added 8960 archive_cmds_need_lc=yes 8961 8962 if test "$enable_shared" = yes && test "$GCC" = yes; then 8963 case $archive_cmds in 8964 *'~'*) 8965 # FIXME: we may have to deal with multi-command sequences. 8966 ;; 8967 '$CC '*) 8968 # Test whether the compiler implicitly links with -lc since on some 8969 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8970 # to ld, don't add -lc before -lgcc. 8971 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8972echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 8973 $rm conftest* 8974 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8975 8976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8977 (eval $ac_compile) 2>&5 8978 ac_status=$? 8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8980 (exit $ac_status); } 2>conftest.err; then 8981 soname=conftest 8982 lib=conftest 8983 libobjs=conftest.$ac_objext 8984 deplibs= 8985 wl=$lt_prog_compiler_wl 8986 pic_flag=$lt_prog_compiler_pic 8987 compiler_flags=-v 8988 linker_flags=-v 8989 verstring= 8990 output_objdir=. 8991 libname=conftest 8992 lt_save_allow_undefined_flag=$allow_undefined_flag 8993 allow_undefined_flag= 8994 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 8995 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8996 ac_status=$? 8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8998 (exit $ac_status); } 8999 then 9000 archive_cmds_need_lc=no 9001 else 9002 archive_cmds_need_lc=yes 9003 fi 9004 allow_undefined_flag=$lt_save_allow_undefined_flag 9005 else 9006 cat conftest.err 1>&5 9007 fi 9008 $rm conftest* 9009 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9010echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 9011 ;; 9012 esac 9013 fi 9014 ;; 9015esac 9016 9017{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9018echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 9019library_names_spec= 9020libname_spec='lib$name' 9021soname_spec= 9022shrext_cmds=".so" 9023postinstall_cmds= 9024postuninstall_cmds= 9025finish_cmds= 9026finish_eval= 9027shlibpath_var= 9028shlibpath_overrides_runpath=unknown 9029version_type=none 9030dynamic_linker="$host_os ld.so" 9031sys_lib_dlsearch_path_spec="/lib /usr/lib" 9032if test "$GCC" = yes; then 9033 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9034 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 9035 # if the path contains ";" then we assume it to be the separator 9036 # otherwise default to the standard path separator (i.e. ":") - it is 9037 # assumed that no part of a normal pathname contains ";" but that should 9038 # okay in the real world where ";" in dirpaths is itself problematic. 9039 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9040 else 9041 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9042 fi 9043else 9044 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9045fi 9046need_lib_prefix=unknown 9047hardcode_into_libs=no 9048 9049# when you set need_version to no, make sure it does not cause -set_version 9050# flags to be left without arguments 9051need_version=unknown 9052 9053case $host_os in 9054aix3*) 9055 version_type=linux 9056 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9057 shlibpath_var=LIBPATH 9058 9059 # AIX 3 has no versioning support, so we append a major version to the name. 9060 soname_spec='${libname}${release}${shared_ext}$major' 9061 ;; 9062 9063aix4* | aix5*) 9064 version_type=linux 9065 need_lib_prefix=no 9066 need_version=no 9067 hardcode_into_libs=yes 9068 if test "$host_cpu" = ia64; then 9069 # AIX 5 supports IA64 9070 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9071 shlibpath_var=LD_LIBRARY_PATH 9072 else 9073 # With GCC up to 2.95.x, collect2 would create an import file 9074 # for dependence libraries. The import file would start with 9075 # the line `#! .'. This would cause the generated library to 9076 # depend on `.', always an invalid library. This was fixed in 9077 # development snapshots of GCC prior to 3.0. 9078 case $host_os in 9079 aix4 | aix4.[01] | aix4.[01].*) 9080 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9081 echo ' yes ' 9082 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 9083 : 9084 else 9085 can_build_shared=no 9086 fi 9087 ;; 9088 esac 9089 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9090 # soname into executable. Probably we can add versioning support to 9091 # collect2, so additional links can be useful in future. 9092 if test "$aix_use_runtimelinking" = yes; then 9093 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9094 # instead of lib<name>.a to let people know that these are not 9095 # typical AIX shared libraries. 9096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9097 else 9098 # We preserve .a as extension for shared libraries through AIX4.2 9099 # and later when we are not doing run time linking. 9100 library_names_spec='${libname}${release}.a $libname.a' 9101 soname_spec='${libname}${release}${shared_ext}$major' 9102 fi 9103 shlibpath_var=LIBPATH 9104 fi 9105 ;; 9106 9107amigaos*) 9108 library_names_spec='$libname.ixlibrary $libname.a' 9109 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9110 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' 9111 ;; 9112 9113beos*) 9114 library_names_spec='${libname}${shared_ext}' 9115 dynamic_linker="$host_os ld.so" 9116 shlibpath_var=LIBRARY_PATH 9117 ;; 9118 9119bsdi[45]*) 9120 version_type=linux 9121 need_version=no 9122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9123 soname_spec='${libname}${release}${shared_ext}$major' 9124 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9125 shlibpath_var=LD_LIBRARY_PATH 9126 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9127 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9128 # the default ld.so.conf also contains /usr/contrib/lib and 9129 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9130 # libtool to hard-code these into programs 9131 ;; 9132 9133cygwin* | mingw* | pw32*) 9134 version_type=windows 9135 shrext_cmds=".dll" 9136 need_version=no 9137 need_lib_prefix=no 9138 9139 case $GCC,$host_os in 9140 yes,cygwin* | yes,mingw* | yes,pw32*) 9141 library_names_spec='$libname.dll.a' 9142 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9143 postinstall_cmds='base_file=`basename \${file}`~ 9144 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9145 dldir=$destdir/`dirname \$dlpath`~ 9146 test -d \$dldir || mkdir -p \$dldir~ 9147 $install_prog $dir/$dlname \$dldir/$dlname~ 9148 chmod a+x \$dldir/$dlname' 9149 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9150 dlpath=$dir/\$dldll~ 9151 $rm \$dlpath' 9152 shlibpath_overrides_runpath=yes 9153 9154 case $host_os in 9155 cygwin*) 9156 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9157 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9158 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9159 ;; 9160 mingw*) 9161 # MinGW DLLs use traditional 'lib' prefix 9162 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9163 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9164 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9165 # It is most probably a Windows format PATH printed by 9166 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9167 # path with ; separators, and with drive letters. We can handle the 9168 # drive letters (cygwin fileutils understands them), so leave them, 9169 # especially as we might pass files found there to a mingw objdump, 9170 # which wouldn't understand a cygwinified path. Ahh. 9171 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9172 else 9173 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9174 fi 9175 ;; 9176 pw32*) 9177 # pw32 DLLs use 'pw' prefix rather than 'lib' 9178 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9179 ;; 9180 esac 9181 ;; 9182 9183 *) 9184 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9185 ;; 9186 esac 9187 dynamic_linker='Win32 ld.exe' 9188 # FIXME: first we should search . and the directory the executable is in 9189 shlibpath_var=PATH 9190 ;; 9191 9192darwin* | rhapsody*) 9193 dynamic_linker="$host_os dyld" 9194 version_type=darwin 9195 need_lib_prefix=no 9196 need_version=no 9197 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9198 soname_spec='${libname}${release}${major}$shared_ext' 9199 shlibpath_overrides_runpath=yes 9200 shlibpath_var=DYLD_LIBRARY_PATH 9201 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9202 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 9203 if test "$GCC" = yes; then 9204 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 9205 else 9206 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 9207 fi 9208 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9209 ;; 9210 9211dgux*) 9212 version_type=linux 9213 need_lib_prefix=no 9214 need_version=no 9215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9216 soname_spec='${libname}${release}${shared_ext}$major' 9217 shlibpath_var=LD_LIBRARY_PATH 9218 ;; 9219 9220freebsd1*) 9221 dynamic_linker=no 9222 ;; 9223 9224kfreebsd*-gnu) 9225 version_type=linux 9226 need_lib_prefix=no 9227 need_version=no 9228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9229 soname_spec='${libname}${release}${shared_ext}$major' 9230 shlibpath_var=LD_LIBRARY_PATH 9231 shlibpath_overrides_runpath=no 9232 hardcode_into_libs=yes 9233 dynamic_linker='GNU ld.so' 9234 ;; 9235 9236freebsd* | dragonfly*) 9237 # DragonFly does not have aout. When/if they implement a new 9238 # versioning mechanism, adjust this. 9239 if test -x /usr/bin/objformat; then 9240 objformat=`/usr/bin/objformat` 9241 else 9242 case $host_os in 9243 freebsd[123]*) objformat=aout ;; 9244 *) objformat=elf ;; 9245 esac 9246 fi 9247 version_type=freebsd-$objformat 9248 case $version_type in 9249 freebsd-elf*) 9250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9251 need_version=no 9252 need_lib_prefix=no 9253 ;; 9254 freebsd-*) 9255 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9256 need_version=yes 9257 ;; 9258 esac 9259 shlibpath_var=LD_LIBRARY_PATH 9260 case $host_os in 9261 freebsd2*) 9262 shlibpath_overrides_runpath=yes 9263 ;; 9264 freebsd3.[01]* | freebsdelf3.[01]*) 9265 shlibpath_overrides_runpath=yes 9266 hardcode_into_libs=yes 9267 ;; 9268 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9269 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9270 shlibpath_overrides_runpath=no 9271 hardcode_into_libs=yes 9272 ;; 9273 freebsd*) # from 4.6 on 9274 shlibpath_overrides_runpath=yes 9275 hardcode_into_libs=yes 9276 ;; 9277 esac 9278 ;; 9279 9280gnu*) 9281 version_type=linux 9282 need_lib_prefix=no 9283 need_version=no 9284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9285 soname_spec='${libname}${release}${shared_ext}$major' 9286 shlibpath_var=LD_LIBRARY_PATH 9287 hardcode_into_libs=yes 9288 ;; 9289 9290hpux9* | hpux10* | hpux11*) 9291 # Give a soname corresponding to the major version so that dld.sl refuses to 9292 # link against other versions. 9293 version_type=sunos 9294 need_lib_prefix=no 9295 need_version=no 9296 case $host_cpu in 9297 ia64*) 9298 shrext_cmds='.so' 9299 hardcode_into_libs=yes 9300 dynamic_linker="$host_os dld.so" 9301 shlibpath_var=LD_LIBRARY_PATH 9302 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9304 soname_spec='${libname}${release}${shared_ext}$major' 9305 if test "X$HPUX_IA64_MODE" = X32; then 9306 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9307 else 9308 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9309 fi 9310 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9311 ;; 9312 hppa*64*) 9313 shrext_cmds='.sl' 9314 hardcode_into_libs=yes 9315 dynamic_linker="$host_os dld.sl" 9316 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9317 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9319 soname_spec='${libname}${release}${shared_ext}$major' 9320 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9321 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9322 ;; 9323 *) 9324 shrext_cmds='.sl' 9325 dynamic_linker="$host_os dld.sl" 9326 shlibpath_var=SHLIB_PATH 9327 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9329 soname_spec='${libname}${release}${shared_ext}$major' 9330 ;; 9331 esac 9332 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9333 postinstall_cmds='chmod 555 $lib' 9334 ;; 9335 9336interix3*) 9337 version_type=linux 9338 need_lib_prefix=no 9339 need_version=no 9340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9341 soname_spec='${libname}${release}${shared_ext}$major' 9342 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9343 shlibpath_var=LD_LIBRARY_PATH 9344 shlibpath_overrides_runpath=no 9345 hardcode_into_libs=yes 9346 ;; 9347 9348irix5* | irix6* | nonstopux*) 9349 case $host_os in 9350 nonstopux*) version_type=nonstopux ;; 9351 *) 9352 if test "$lt_cv_prog_gnu_ld" = yes; then 9353 version_type=linux 9354 else 9355 version_type=irix 9356 fi ;; 9357 esac 9358 need_lib_prefix=no 9359 need_version=no 9360 soname_spec='${libname}${release}${shared_ext}$major' 9361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9362 case $host_os in 9363 irix5* | nonstopux*) 9364 libsuff= shlibsuff= 9365 ;; 9366 *) 9367 case $LD in # libtool.m4 will add one of these switches to LD 9368 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9369 libsuff= shlibsuff= libmagic=32-bit;; 9370 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9371 libsuff=32 shlibsuff=N32 libmagic=N32;; 9372 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9373 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9374 *) libsuff= shlibsuff= libmagic=never-match;; 9375 esac 9376 ;; 9377 esac 9378 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9379 shlibpath_overrides_runpath=no 9380 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9381 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9382 hardcode_into_libs=yes 9383 ;; 9384 9385# No shared lib support for Linux oldld, aout, or coff. 9386linux*oldld* | linux*aout* | linux*coff*) 9387 dynamic_linker=no 9388 ;; 9389 9390# This must be Linux ELF. 9391linux*) 9392 version_type=linux 9393 need_lib_prefix=no 9394 need_version=no 9395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9396 soname_spec='${libname}${release}${shared_ext}$major' 9397 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9398 shlibpath_var=LD_LIBRARY_PATH 9399 shlibpath_overrides_runpath=no 9400 # This implies no fast_install, which is unacceptable. 9401 # Some rework will be needed to allow for fast_install 9402 # before this can be enabled. 9403 hardcode_into_libs=yes 9404 9405 # Append ld.so.conf contents to the search path 9406 if test -f /etc/ld.so.conf; then 9407 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 9408 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9409 fi 9410 9411 # We used to test for /lib/ld.so.1 and disable shared libraries on 9412 # powerpc, because MkLinux only supported shared libraries with the 9413 # GNU dynamic linker. Since this was broken with cross compilers, 9414 # most powerpc-linux boxes support dynamic linking these days and 9415 # people can always --disable-shared, the test was removed, and we 9416 # assume the GNU/Linux dynamic linker is in use. 9417 dynamic_linker='GNU/Linux ld.so' 9418 ;; 9419 9420knetbsd*-gnu) 9421 version_type=linux 9422 need_lib_prefix=no 9423 need_version=no 9424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9425 soname_spec='${libname}${release}${shared_ext}$major' 9426 shlibpath_var=LD_LIBRARY_PATH 9427 shlibpath_overrides_runpath=no 9428 hardcode_into_libs=yes 9429 dynamic_linker='GNU ld.so' 9430 ;; 9431 9432netbsd*) 9433 version_type=sunos 9434 need_lib_prefix=no 9435 need_version=no 9436 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9438 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9439 dynamic_linker='NetBSD (a.out) ld.so' 9440 else 9441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9442 soname_spec='${libname}${release}${shared_ext}$major' 9443 dynamic_linker='NetBSD ld.elf_so' 9444 fi 9445 shlibpath_var=LD_LIBRARY_PATH 9446 shlibpath_overrides_runpath=yes 9447 hardcode_into_libs=yes 9448 ;; 9449 9450newsos6) 9451 version_type=linux 9452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9453 shlibpath_var=LD_LIBRARY_PATH 9454 shlibpath_overrides_runpath=yes 9455 ;; 9456 9457nto-qnx*) 9458 version_type=linux 9459 need_lib_prefix=no 9460 need_version=no 9461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9462 soname_spec='${libname}${release}${shared_ext}$major' 9463 shlibpath_var=LD_LIBRARY_PATH 9464 shlibpath_overrides_runpath=yes 9465 ;; 9466 9467openbsd*) 9468 version_type=sunos 9469 sys_lib_dlsearch_path_spec="/usr/lib" 9470 need_lib_prefix=no 9471 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9472 case $host_os in 9473 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9474 *) need_version=no ;; 9475 esac 9476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9477 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9478 shlibpath_var=LD_LIBRARY_PATH 9479 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9480 case $host_os in 9481 openbsd2.[89] | openbsd2.[89].*) 9482 shlibpath_overrides_runpath=no 9483 ;; 9484 *) 9485 shlibpath_overrides_runpath=yes 9486 ;; 9487 esac 9488 else 9489 shlibpath_overrides_runpath=yes 9490 fi 9491 ;; 9492 9493os2*) 9494 libname_spec='$name' 9495 shrext_cmds=".dll" 9496 need_lib_prefix=no 9497 library_names_spec='$libname${shared_ext} $libname.a' 9498 dynamic_linker='OS/2 ld.exe' 9499 shlibpath_var=LIBPATH 9500 ;; 9501 9502osf3* | osf4* | osf5*) 9503 version_type=osf 9504 need_lib_prefix=no 9505 need_version=no 9506 soname_spec='${libname}${release}${shared_ext}$major' 9507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9508 shlibpath_var=LD_LIBRARY_PATH 9509 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9510 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9511 ;; 9512 9513solaris*) 9514 version_type=linux 9515 need_lib_prefix=no 9516 need_version=no 9517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9518 soname_spec='${libname}${release}${shared_ext}$major' 9519 shlibpath_var=LD_LIBRARY_PATH 9520 shlibpath_overrides_runpath=yes 9521 hardcode_into_libs=yes 9522 # ldd complains unless libraries are executable 9523 postinstall_cmds='chmod +x $lib' 9524 ;; 9525 9526sunos4*) 9527 version_type=sunos 9528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9529 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9530 shlibpath_var=LD_LIBRARY_PATH 9531 shlibpath_overrides_runpath=yes 9532 if test "$with_gnu_ld" = yes; then 9533 need_lib_prefix=no 9534 fi 9535 need_version=yes 9536 ;; 9537 9538sysv4 | sysv4.3*) 9539 version_type=linux 9540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9541 soname_spec='${libname}${release}${shared_ext}$major' 9542 shlibpath_var=LD_LIBRARY_PATH 9543 case $host_vendor in 9544 sni) 9545 shlibpath_overrides_runpath=no 9546 need_lib_prefix=no 9547 export_dynamic_flag_spec='${wl}-Blargedynsym' 9548 runpath_var=LD_RUN_PATH 9549 ;; 9550 siemens) 9551 need_lib_prefix=no 9552 ;; 9553 motorola) 9554 need_lib_prefix=no 9555 need_version=no 9556 shlibpath_overrides_runpath=no 9557 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9558 ;; 9559 esac 9560 ;; 9561 9562sysv4*MP*) 9563 if test -d /usr/nec ;then 9564 version_type=linux 9565 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9566 soname_spec='$libname${shared_ext}.$major' 9567 shlibpath_var=LD_LIBRARY_PATH 9568 fi 9569 ;; 9570 9571sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9572 version_type=freebsd-elf 9573 need_lib_prefix=no 9574 need_version=no 9575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9576 soname_spec='${libname}${release}${shared_ext}$major' 9577 shlibpath_var=LD_LIBRARY_PATH 9578 hardcode_into_libs=yes 9579 if test "$with_gnu_ld" = yes; then 9580 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9581 shlibpath_overrides_runpath=no 9582 else 9583 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9584 shlibpath_overrides_runpath=yes 9585 case $host_os in 9586 sco3.2v5*) 9587 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9588 ;; 9589 esac 9590 fi 9591 sys_lib_dlsearch_path_spec='/usr/lib' 9592 ;; 9593 9594uts4*) 9595 version_type=linux 9596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9597 soname_spec='${libname}${release}${shared_ext}$major' 9598 shlibpath_var=LD_LIBRARY_PATH 9599 ;; 9600 9601*) 9602 dynamic_linker=no 9603 ;; 9604esac 9605{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9606echo "${ECHO_T}$dynamic_linker" >&6; } 9607test "$dynamic_linker" = no && can_build_shared=no 9608 9609variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9610if test "$GCC" = yes; then 9611 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9612fi 9613 9614{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9615echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 9616hardcode_action= 9617if test -n "$hardcode_libdir_flag_spec" || \ 9618 test -n "$runpath_var" || \ 9619 test "X$hardcode_automatic" = "Xyes" ; then 9620 9621 # We can hardcode non-existant directories. 9622 if test "$hardcode_direct" != no && 9623 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9624 # have to relink, otherwise we might link with an installed library 9625 # when we should be linking with a yet-to-be-installed one 9626 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9627 test "$hardcode_minus_L" != no; then 9628 # Linking always hardcodes the temporary library directory. 9629 hardcode_action=relink 9630 else 9631 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9632 hardcode_action=immediate 9633 fi 9634else 9635 # We cannot hardcode anything, or else we can only hardcode existing 9636 # directories. 9637 hardcode_action=unsupported 9638fi 9639{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 9640echo "${ECHO_T}$hardcode_action" >&6; } 9641 9642if test "$hardcode_action" = relink; then 9643 # Fast installation is not supported 9644 enable_fast_install=no 9645elif test "$shlibpath_overrides_runpath" = yes || 9646 test "$enable_shared" = no; then 9647 # Fast installation is not necessary 9648 enable_fast_install=needless 9649fi 9650 9651striplib= 9652old_striplib= 9653{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9654echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 9655if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9656 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9657 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9658 { echo "$as_me:$LINENO: result: yes" >&5 9659echo "${ECHO_T}yes" >&6; } 9660else 9661# FIXME - insert some real tests, host_os isn't really good enough 9662 case $host_os in 9663 darwin*) 9664 if test -n "$STRIP" ; then 9665 striplib="$STRIP -x" 9666 { echo "$as_me:$LINENO: result: yes" >&5 9667echo "${ECHO_T}yes" >&6; } 9668 else 9669 { echo "$as_me:$LINENO: result: no" >&5 9670echo "${ECHO_T}no" >&6; } 9671fi 9672 ;; 9673 *) 9674 { echo "$as_me:$LINENO: result: no" >&5 9675echo "${ECHO_T}no" >&6; } 9676 ;; 9677 esac 9678fi 9679 9680if test "x$enable_dlopen" != xyes; then 9681 enable_dlopen=unknown 9682 enable_dlopen_self=unknown 9683 enable_dlopen_self_static=unknown 9684else 9685 lt_cv_dlopen=no 9686 lt_cv_dlopen_libs= 9687 9688 case $host_os in 9689 beos*) 9690 lt_cv_dlopen="load_add_on" 9691 lt_cv_dlopen_libs= 9692 lt_cv_dlopen_self=yes 9693 ;; 9694 9695 mingw* | pw32*) 9696 lt_cv_dlopen="LoadLibrary" 9697 lt_cv_dlopen_libs= 9698 ;; 9699 9700 cygwin*) 9701 lt_cv_dlopen="dlopen" 9702 lt_cv_dlopen_libs= 9703 ;; 9704 9705 darwin*) 9706 # if libdl is installed we need to link against it 9707 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9708echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9709if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9710 echo $ECHO_N "(cached) $ECHO_C" >&6 9711else 9712 ac_check_lib_save_LIBS=$LIBS 9713LIBS="-ldl $LIBS" 9714cat >conftest.$ac_ext <<_ACEOF 9715/* confdefs.h. */ 9716_ACEOF 9717cat confdefs.h >>conftest.$ac_ext 9718cat >>conftest.$ac_ext <<_ACEOF 9719/* end confdefs.h. */ 9720 9721/* Override any GCC internal prototype to avoid an error. 9722 Use char because int might match the return type of a GCC 9723 builtin and then its argument prototype would still apply. */ 9724#ifdef __cplusplus 9725extern "C" 9726#endif 9727char dlopen (); 9728int 9729main () 9730{ 9731return dlopen (); 9732 ; 9733 return 0; 9734} 9735_ACEOF 9736rm -f conftest.$ac_objext conftest$ac_exeext 9737if { (ac_try="$ac_link" 9738case "(($ac_try" in 9739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9740 *) ac_try_echo=$ac_try;; 9741esac 9742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9743 (eval "$ac_link") 2>conftest.er1 9744 ac_status=$? 9745 grep -v '^ *+' conftest.er1 >conftest.err 9746 rm -f conftest.er1 9747 cat conftest.err >&5 9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9749 (exit $ac_status); } && 9750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9751 { (case "(($ac_try" in 9752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9753 *) ac_try_echo=$ac_try;; 9754esac 9755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9756 (eval "$ac_try") 2>&5 9757 ac_status=$? 9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9759 (exit $ac_status); }; } && 9760 { ac_try='test -s conftest$ac_exeext' 9761 { (case "(($ac_try" in 9762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9763 *) ac_try_echo=$ac_try;; 9764esac 9765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9766 (eval "$ac_try") 2>&5 9767 ac_status=$? 9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9769 (exit $ac_status); }; }; then 9770 ac_cv_lib_dl_dlopen=yes 9771else 9772 echo "$as_me: failed program was:" >&5 9773sed 's/^/| /' conftest.$ac_ext >&5 9774 9775 ac_cv_lib_dl_dlopen=no 9776fi 9777 9778rm -f core conftest.err conftest.$ac_objext \ 9779 conftest$ac_exeext conftest.$ac_ext 9780LIBS=$ac_check_lib_save_LIBS 9781fi 9782{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9783echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9784if test $ac_cv_lib_dl_dlopen = yes; then 9785 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9786else 9787 9788 lt_cv_dlopen="dyld" 9789 lt_cv_dlopen_libs= 9790 lt_cv_dlopen_self=yes 9791 9792fi 9793 9794 ;; 9795 9796 *) 9797 { echo "$as_me:$LINENO: checking for shl_load" >&5 9798echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9799if test "${ac_cv_func_shl_load+set}" = set; then 9800 echo $ECHO_N "(cached) $ECHO_C" >&6 9801else 9802 cat >conftest.$ac_ext <<_ACEOF 9803/* confdefs.h. */ 9804_ACEOF 9805cat confdefs.h >>conftest.$ac_ext 9806cat >>conftest.$ac_ext <<_ACEOF 9807/* end confdefs.h. */ 9808/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9809 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9810#define shl_load innocuous_shl_load 9811 9812/* System header to define __stub macros and hopefully few prototypes, 9813 which can conflict with char shl_load (); below. 9814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9815 <limits.h> exists even on freestanding compilers. */ 9816 9817#ifdef __STDC__ 9818# include <limits.h> 9819#else 9820# include <assert.h> 9821#endif 9822 9823#undef shl_load 9824 9825/* Override any GCC internal prototype to avoid an error. 9826 Use char because int might match the return type of a GCC 9827 builtin and then its argument prototype would still apply. */ 9828#ifdef __cplusplus 9829extern "C" 9830#endif 9831char shl_load (); 9832/* The GNU C library defines this for functions which it implements 9833 to always fail with ENOSYS. Some functions are actually named 9834 something starting with __ and the normal name is an alias. */ 9835#if defined __stub_shl_load || defined __stub___shl_load 9836choke me 9837#endif 9838 9839int 9840main () 9841{ 9842return shl_load (); 9843 ; 9844 return 0; 9845} 9846_ACEOF 9847rm -f conftest.$ac_objext conftest$ac_exeext 9848if { (ac_try="$ac_link" 9849case "(($ac_try" in 9850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9851 *) ac_try_echo=$ac_try;; 9852esac 9853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9854 (eval "$ac_link") 2>conftest.er1 9855 ac_status=$? 9856 grep -v '^ *+' conftest.er1 >conftest.err 9857 rm -f conftest.er1 9858 cat conftest.err >&5 9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9860 (exit $ac_status); } && 9861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9862 { (case "(($ac_try" in 9863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9864 *) ac_try_echo=$ac_try;; 9865esac 9866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9867 (eval "$ac_try") 2>&5 9868 ac_status=$? 9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9870 (exit $ac_status); }; } && 9871 { ac_try='test -s conftest$ac_exeext' 9872 { (case "(($ac_try" in 9873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9874 *) ac_try_echo=$ac_try;; 9875esac 9876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9877 (eval "$ac_try") 2>&5 9878 ac_status=$? 9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9880 (exit $ac_status); }; }; then 9881 ac_cv_func_shl_load=yes 9882else 9883 echo "$as_me: failed program was:" >&5 9884sed 's/^/| /' conftest.$ac_ext >&5 9885 9886 ac_cv_func_shl_load=no 9887fi 9888 9889rm -f core conftest.err conftest.$ac_objext \ 9890 conftest$ac_exeext conftest.$ac_ext 9891fi 9892{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9893echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9894if test $ac_cv_func_shl_load = yes; then 9895 lt_cv_dlopen="shl_load" 9896else 9897 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9898echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9899if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9900 echo $ECHO_N "(cached) $ECHO_C" >&6 9901else 9902 ac_check_lib_save_LIBS=$LIBS 9903LIBS="-ldld $LIBS" 9904cat >conftest.$ac_ext <<_ACEOF 9905/* confdefs.h. */ 9906_ACEOF 9907cat confdefs.h >>conftest.$ac_ext 9908cat >>conftest.$ac_ext <<_ACEOF 9909/* end confdefs.h. */ 9910 9911/* Override any GCC internal prototype to avoid an error. 9912 Use char because int might match the return type of a GCC 9913 builtin and then its argument prototype would still apply. */ 9914#ifdef __cplusplus 9915extern "C" 9916#endif 9917char shl_load (); 9918int 9919main () 9920{ 9921return shl_load (); 9922 ; 9923 return 0; 9924} 9925_ACEOF 9926rm -f conftest.$ac_objext conftest$ac_exeext 9927if { (ac_try="$ac_link" 9928case "(($ac_try" in 9929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9930 *) ac_try_echo=$ac_try;; 9931esac 9932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9933 (eval "$ac_link") 2>conftest.er1 9934 ac_status=$? 9935 grep -v '^ *+' conftest.er1 >conftest.err 9936 rm -f conftest.er1 9937 cat conftest.err >&5 9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9939 (exit $ac_status); } && 9940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9941 { (case "(($ac_try" in 9942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9943 *) ac_try_echo=$ac_try;; 9944esac 9945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9946 (eval "$ac_try") 2>&5 9947 ac_status=$? 9948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9949 (exit $ac_status); }; } && 9950 { ac_try='test -s conftest$ac_exeext' 9951 { (case "(($ac_try" in 9952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9953 *) ac_try_echo=$ac_try;; 9954esac 9955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9956 (eval "$ac_try") 2>&5 9957 ac_status=$? 9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9959 (exit $ac_status); }; }; then 9960 ac_cv_lib_dld_shl_load=yes 9961else 9962 echo "$as_me: failed program was:" >&5 9963sed 's/^/| /' conftest.$ac_ext >&5 9964 9965 ac_cv_lib_dld_shl_load=no 9966fi 9967 9968rm -f core conftest.err conftest.$ac_objext \ 9969 conftest$ac_exeext conftest.$ac_ext 9970LIBS=$ac_check_lib_save_LIBS 9971fi 9972{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9973echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9974if test $ac_cv_lib_dld_shl_load = yes; then 9975 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 9976else 9977 { echo "$as_me:$LINENO: checking for dlopen" >&5 9978echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 9979if test "${ac_cv_func_dlopen+set}" = set; then 9980 echo $ECHO_N "(cached) $ECHO_C" >&6 9981else 9982 cat >conftest.$ac_ext <<_ACEOF 9983/* confdefs.h. */ 9984_ACEOF 9985cat confdefs.h >>conftest.$ac_ext 9986cat >>conftest.$ac_ext <<_ACEOF 9987/* end confdefs.h. */ 9988/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9989 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9990#define dlopen innocuous_dlopen 9991 9992/* System header to define __stub macros and hopefully few prototypes, 9993 which can conflict with char dlopen (); below. 9994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9995 <limits.h> exists even on freestanding compilers. */ 9996 9997#ifdef __STDC__ 9998# include <limits.h> 9999#else 10000# include <assert.h> 10001#endif 10002 10003#undef dlopen 10004 10005/* Override any GCC internal prototype to avoid an error. 10006 Use char because int might match the return type of a GCC 10007 builtin and then its argument prototype would still apply. */ 10008#ifdef __cplusplus 10009extern "C" 10010#endif 10011char dlopen (); 10012/* The GNU C library defines this for functions which it implements 10013 to always fail with ENOSYS. Some functions are actually named 10014 something starting with __ and the normal name is an alias. */ 10015#if defined __stub_dlopen || defined __stub___dlopen 10016choke me 10017#endif 10018 10019int 10020main () 10021{ 10022return dlopen (); 10023 ; 10024 return 0; 10025} 10026_ACEOF 10027rm -f conftest.$ac_objext conftest$ac_exeext 10028if { (ac_try="$ac_link" 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_link") 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 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10042 { (case "(($ac_try" in 10043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10044 *) ac_try_echo=$ac_try;; 10045esac 10046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10047 (eval "$ac_try") 2>&5 10048 ac_status=$? 10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10050 (exit $ac_status); }; } && 10051 { ac_try='test -s conftest$ac_exeext' 10052 { (case "(($ac_try" in 10053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10054 *) ac_try_echo=$ac_try;; 10055esac 10056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10057 (eval "$ac_try") 2>&5 10058 ac_status=$? 10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10060 (exit $ac_status); }; }; then 10061 ac_cv_func_dlopen=yes 10062else 10063 echo "$as_me: failed program was:" >&5 10064sed 's/^/| /' conftest.$ac_ext >&5 10065 10066 ac_cv_func_dlopen=no 10067fi 10068 10069rm -f core conftest.err conftest.$ac_objext \ 10070 conftest$ac_exeext conftest.$ac_ext 10071fi 10072{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10073echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 10074if test $ac_cv_func_dlopen = yes; then 10075 lt_cv_dlopen="dlopen" 10076else 10077 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10078echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 10079if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10080 echo $ECHO_N "(cached) $ECHO_C" >&6 10081else 10082 ac_check_lib_save_LIBS=$LIBS 10083LIBS="-ldl $LIBS" 10084cat >conftest.$ac_ext <<_ACEOF 10085/* confdefs.h. */ 10086_ACEOF 10087cat confdefs.h >>conftest.$ac_ext 10088cat >>conftest.$ac_ext <<_ACEOF 10089/* end confdefs.h. */ 10090 10091/* Override any GCC internal prototype to avoid an error. 10092 Use char because int might match the return type of a GCC 10093 builtin and then its argument prototype would still apply. */ 10094#ifdef __cplusplus 10095extern "C" 10096#endif 10097char dlopen (); 10098int 10099main () 10100{ 10101return dlopen (); 10102 ; 10103 return 0; 10104} 10105_ACEOF 10106rm -f conftest.$ac_objext conftest$ac_exeext 10107if { (ac_try="$ac_link" 10108case "(($ac_try" in 10109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10110 *) ac_try_echo=$ac_try;; 10111esac 10112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10113 (eval "$ac_link") 2>conftest.er1 10114 ac_status=$? 10115 grep -v '^ *+' conftest.er1 >conftest.err 10116 rm -f conftest.er1 10117 cat conftest.err >&5 10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10119 (exit $ac_status); } && 10120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10121 { (case "(($ac_try" in 10122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10123 *) ac_try_echo=$ac_try;; 10124esac 10125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10126 (eval "$ac_try") 2>&5 10127 ac_status=$? 10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10129 (exit $ac_status); }; } && 10130 { ac_try='test -s conftest$ac_exeext' 10131 { (case "(($ac_try" in 10132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10133 *) ac_try_echo=$ac_try;; 10134esac 10135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10136 (eval "$ac_try") 2>&5 10137 ac_status=$? 10138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10139 (exit $ac_status); }; }; then 10140 ac_cv_lib_dl_dlopen=yes 10141else 10142 echo "$as_me: failed program was:" >&5 10143sed 's/^/| /' conftest.$ac_ext >&5 10144 10145 ac_cv_lib_dl_dlopen=no 10146fi 10147 10148rm -f core conftest.err conftest.$ac_objext \ 10149 conftest$ac_exeext conftest.$ac_ext 10150LIBS=$ac_check_lib_save_LIBS 10151fi 10152{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10153echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 10154if test $ac_cv_lib_dl_dlopen = yes; then 10155 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10156else 10157 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10158echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 10159if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10160 echo $ECHO_N "(cached) $ECHO_C" >&6 10161else 10162 ac_check_lib_save_LIBS=$LIBS 10163LIBS="-lsvld $LIBS" 10164cat >conftest.$ac_ext <<_ACEOF 10165/* confdefs.h. */ 10166_ACEOF 10167cat confdefs.h >>conftest.$ac_ext 10168cat >>conftest.$ac_ext <<_ACEOF 10169/* end confdefs.h. */ 10170 10171/* Override any GCC internal prototype to avoid an error. 10172 Use char because int might match the return type of a GCC 10173 builtin and then its argument prototype would still apply. */ 10174#ifdef __cplusplus 10175extern "C" 10176#endif 10177char dlopen (); 10178int 10179main () 10180{ 10181return dlopen (); 10182 ; 10183 return 0; 10184} 10185_ACEOF 10186rm -f conftest.$ac_objext conftest$ac_exeext 10187if { (ac_try="$ac_link" 10188case "(($ac_try" in 10189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10190 *) ac_try_echo=$ac_try;; 10191esac 10192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10193 (eval "$ac_link") 2>conftest.er1 10194 ac_status=$? 10195 grep -v '^ *+' conftest.er1 >conftest.err 10196 rm -f conftest.er1 10197 cat conftest.err >&5 10198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10199 (exit $ac_status); } && 10200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10201 { (case "(($ac_try" in 10202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10203 *) ac_try_echo=$ac_try;; 10204esac 10205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10206 (eval "$ac_try") 2>&5 10207 ac_status=$? 10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10209 (exit $ac_status); }; } && 10210 { ac_try='test -s conftest$ac_exeext' 10211 { (case "(($ac_try" in 10212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10213 *) ac_try_echo=$ac_try;; 10214esac 10215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10216 (eval "$ac_try") 2>&5 10217 ac_status=$? 10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10219 (exit $ac_status); }; }; then 10220 ac_cv_lib_svld_dlopen=yes 10221else 10222 echo "$as_me: failed program was:" >&5 10223sed 's/^/| /' conftest.$ac_ext >&5 10224 10225 ac_cv_lib_svld_dlopen=no 10226fi 10227 10228rm -f core conftest.err conftest.$ac_objext \ 10229 conftest$ac_exeext conftest.$ac_ext 10230LIBS=$ac_check_lib_save_LIBS 10231fi 10232{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10233echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 10234if test $ac_cv_lib_svld_dlopen = yes; then 10235 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10236else 10237 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10238echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 10239if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10240 echo $ECHO_N "(cached) $ECHO_C" >&6 10241else 10242 ac_check_lib_save_LIBS=$LIBS 10243LIBS="-ldld $LIBS" 10244cat >conftest.$ac_ext <<_ACEOF 10245/* confdefs.h. */ 10246_ACEOF 10247cat confdefs.h >>conftest.$ac_ext 10248cat >>conftest.$ac_ext <<_ACEOF 10249/* end confdefs.h. */ 10250 10251/* Override any GCC internal prototype to avoid an error. 10252 Use char because int might match the return type of a GCC 10253 builtin and then its argument prototype would still apply. */ 10254#ifdef __cplusplus 10255extern "C" 10256#endif 10257char dld_link (); 10258int 10259main () 10260{ 10261return dld_link (); 10262 ; 10263 return 0; 10264} 10265_ACEOF 10266rm -f conftest.$ac_objext conftest$ac_exeext 10267if { (ac_try="$ac_link" 10268case "(($ac_try" in 10269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10270 *) ac_try_echo=$ac_try;; 10271esac 10272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10273 (eval "$ac_link") 2>conftest.er1 10274 ac_status=$? 10275 grep -v '^ *+' conftest.er1 >conftest.err 10276 rm -f conftest.er1 10277 cat conftest.err >&5 10278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10279 (exit $ac_status); } && 10280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10281 { (case "(($ac_try" in 10282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10283 *) ac_try_echo=$ac_try;; 10284esac 10285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10286 (eval "$ac_try") 2>&5 10287 ac_status=$? 10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10289 (exit $ac_status); }; } && 10290 { ac_try='test -s conftest$ac_exeext' 10291 { (case "(($ac_try" in 10292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10293 *) ac_try_echo=$ac_try;; 10294esac 10295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10296 (eval "$ac_try") 2>&5 10297 ac_status=$? 10298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10299 (exit $ac_status); }; }; then 10300 ac_cv_lib_dld_dld_link=yes 10301else 10302 echo "$as_me: failed program was:" >&5 10303sed 's/^/| /' conftest.$ac_ext >&5 10304 10305 ac_cv_lib_dld_dld_link=no 10306fi 10307 10308rm -f core conftest.err conftest.$ac_objext \ 10309 conftest$ac_exeext conftest.$ac_ext 10310LIBS=$ac_check_lib_save_LIBS 10311fi 10312{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10313echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 10314if test $ac_cv_lib_dld_dld_link = yes; then 10315 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 10316fi 10317 10318 10319fi 10320 10321 10322fi 10323 10324 10325fi 10326 10327 10328fi 10329 10330 10331fi 10332 10333 ;; 10334 esac 10335 10336 if test "x$lt_cv_dlopen" != xno; then 10337 enable_dlopen=yes 10338 else 10339 enable_dlopen=no 10340 fi 10341 10342 case $lt_cv_dlopen in 10343 dlopen) 10344 save_CPPFLAGS="$CPPFLAGS" 10345 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10346 10347 save_LDFLAGS="$LDFLAGS" 10348 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10349 10350 save_LIBS="$LIBS" 10351 LIBS="$lt_cv_dlopen_libs $LIBS" 10352 10353 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10354echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 10355if test "${lt_cv_dlopen_self+set}" = set; then 10356 echo $ECHO_N "(cached) $ECHO_C" >&6 10357else 10358 if test "$cross_compiling" = yes; then : 10359 lt_cv_dlopen_self=cross 10360else 10361 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10362 lt_status=$lt_dlunknown 10363 cat > conftest.$ac_ext <<EOF 10364#line 10364 "configure" 10365#include "confdefs.h" 10366 10367#if HAVE_DLFCN_H 10368#include <dlfcn.h> 10369#endif 10370 10371#include <stdio.h> 10372 10373#ifdef RTLD_GLOBAL 10374# define LT_DLGLOBAL RTLD_GLOBAL 10375#else 10376# ifdef DL_GLOBAL 10377# define LT_DLGLOBAL DL_GLOBAL 10378# else 10379# define LT_DLGLOBAL 0 10380# endif 10381#endif 10382 10383/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10384 find out it does not work in some platform. */ 10385#ifndef LT_DLLAZY_OR_NOW 10386# ifdef RTLD_LAZY 10387# define LT_DLLAZY_OR_NOW RTLD_LAZY 10388# else 10389# ifdef DL_LAZY 10390# define LT_DLLAZY_OR_NOW DL_LAZY 10391# else 10392# ifdef RTLD_NOW 10393# define LT_DLLAZY_OR_NOW RTLD_NOW 10394# else 10395# ifdef DL_NOW 10396# define LT_DLLAZY_OR_NOW DL_NOW 10397# else 10398# define LT_DLLAZY_OR_NOW 0 10399# endif 10400# endif 10401# endif 10402# endif 10403#endif 10404 10405#ifdef __cplusplus 10406extern "C" void exit (int); 10407#endif 10408 10409void fnord() { int i=42;} 10410int main () 10411{ 10412 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10413 int status = $lt_dlunknown; 10414 10415 if (self) 10416 { 10417 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10418 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10419 /* dlclose (self); */ 10420 } 10421 else 10422 puts (dlerror ()); 10423 10424 exit (status); 10425} 10426EOF 10427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10428 (eval $ac_link) 2>&5 10429 ac_status=$? 10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10431 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10432 (./conftest; exit; ) >&5 2>/dev/null 10433 lt_status=$? 10434 case x$lt_status in 10435 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10436 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10437 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10438 esac 10439 else : 10440 # compilation failed 10441 lt_cv_dlopen_self=no 10442 fi 10443fi 10444rm -fr conftest* 10445 10446 10447fi 10448{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10449echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 10450 10451 if test "x$lt_cv_dlopen_self" = xyes; then 10452 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10453 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10454echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 10455if test "${lt_cv_dlopen_self_static+set}" = set; then 10456 echo $ECHO_N "(cached) $ECHO_C" >&6 10457else 10458 if test "$cross_compiling" = yes; then : 10459 lt_cv_dlopen_self_static=cross 10460else 10461 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10462 lt_status=$lt_dlunknown 10463 cat > conftest.$ac_ext <<EOF 10464#line 10464 "configure" 10465#include "confdefs.h" 10466 10467#if HAVE_DLFCN_H 10468#include <dlfcn.h> 10469#endif 10470 10471#include <stdio.h> 10472 10473#ifdef RTLD_GLOBAL 10474# define LT_DLGLOBAL RTLD_GLOBAL 10475#else 10476# ifdef DL_GLOBAL 10477# define LT_DLGLOBAL DL_GLOBAL 10478# else 10479# define LT_DLGLOBAL 0 10480# endif 10481#endif 10482 10483/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10484 find out it does not work in some platform. */ 10485#ifndef LT_DLLAZY_OR_NOW 10486# ifdef RTLD_LAZY 10487# define LT_DLLAZY_OR_NOW RTLD_LAZY 10488# else 10489# ifdef DL_LAZY 10490# define LT_DLLAZY_OR_NOW DL_LAZY 10491# else 10492# ifdef RTLD_NOW 10493# define LT_DLLAZY_OR_NOW RTLD_NOW 10494# else 10495# ifdef DL_NOW 10496# define LT_DLLAZY_OR_NOW DL_NOW 10497# else 10498# define LT_DLLAZY_OR_NOW 0 10499# endif 10500# endif 10501# endif 10502# endif 10503#endif 10504 10505#ifdef __cplusplus 10506extern "C" void exit (int); 10507#endif 10508 10509void fnord() { int i=42;} 10510int main () 10511{ 10512 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10513 int status = $lt_dlunknown; 10514 10515 if (self) 10516 { 10517 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10518 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10519 /* dlclose (self); */ 10520 } 10521 else 10522 puts (dlerror ()); 10523 10524 exit (status); 10525} 10526EOF 10527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10528 (eval $ac_link) 2>&5 10529 ac_status=$? 10530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10531 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10532 (./conftest; exit; ) >&5 2>/dev/null 10533 lt_status=$? 10534 case x$lt_status in 10535 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10536 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10537 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10538 esac 10539 else : 10540 # compilation failed 10541 lt_cv_dlopen_self_static=no 10542 fi 10543fi 10544rm -fr conftest* 10545 10546 10547fi 10548{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10549echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 10550 fi 10551 10552 CPPFLAGS="$save_CPPFLAGS" 10553 LDFLAGS="$save_LDFLAGS" 10554 LIBS="$save_LIBS" 10555 ;; 10556 esac 10557 10558 case $lt_cv_dlopen_self in 10559 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10560 *) enable_dlopen_self=unknown ;; 10561 esac 10562 10563 case $lt_cv_dlopen_self_static in 10564 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10565 *) enable_dlopen_self_static=unknown ;; 10566 esac 10567fi 10568 10569 10570# Report which library types will actually be built 10571{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10572echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 10573{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 10574echo "${ECHO_T}$can_build_shared" >&6; } 10575 10576{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10577echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 10578test "$can_build_shared" = "no" && enable_shared=no 10579 10580# On AIX, shared libraries and static libraries use the same namespace, and 10581# are all built from PIC. 10582case $host_os in 10583aix3*) 10584 test "$enable_shared" = yes && enable_static=no 10585 if test -n "$RANLIB"; then 10586 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10587 postinstall_cmds='$RANLIB $lib' 10588 fi 10589 ;; 10590 10591aix4* | aix5*) 10592 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10593 test "$enable_shared" = yes && enable_static=no 10594 fi 10595 ;; 10596esac 10597{ echo "$as_me:$LINENO: result: $enable_shared" >&5 10598echo "${ECHO_T}$enable_shared" >&6; } 10599 10600{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10601echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 10602# Make sure either enable_shared or enable_static is yes. 10603test "$enable_shared" = yes || enable_static=yes 10604{ echo "$as_me:$LINENO: result: $enable_static" >&5 10605echo "${ECHO_T}$enable_static" >&6; } 10606 10607# The else clause should only fire when bootstrapping the 10608# libtool distribution, otherwise you forgot to ship ltmain.sh 10609# with your package, and you will get complaints that there are 10610# no rules to generate ltmain.sh. 10611if test -f "$ltmain"; then 10612 # See if we are running on zsh, and set the options which allow our commands through 10613 # without removal of \ escapes. 10614 if test -n "${ZSH_VERSION+set}" ; then 10615 setopt NO_GLOB_SUBST 10616 fi 10617 # Now quote all the things that may contain metacharacters while being 10618 # careful not to overquote the AC_SUBSTed values. We take copies of the 10619 # variables and quote the copies for generation of the libtool script. 10620 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10621 SED SHELL STRIP \ 10622 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10623 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10624 deplibs_check_method reload_flag reload_cmds need_locks \ 10625 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10626 lt_cv_sys_global_symbol_to_c_name_address \ 10627 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10628 old_postinstall_cmds old_postuninstall_cmds \ 10629 compiler \ 10630 CC \ 10631 LD \ 10632 lt_prog_compiler_wl \ 10633 lt_prog_compiler_pic \ 10634 lt_prog_compiler_static \ 10635 lt_prog_compiler_no_builtin_flag \ 10636 export_dynamic_flag_spec \ 10637 thread_safe_flag_spec \ 10638 whole_archive_flag_spec \ 10639 enable_shared_with_static_runtimes \ 10640 old_archive_cmds \ 10641 old_archive_from_new_cmds \ 10642 predep_objects \ 10643 postdep_objects \ 10644 predeps \ 10645 postdeps \ 10646 compiler_lib_search_path \ 10647 archive_cmds \ 10648 archive_expsym_cmds \ 10649 postinstall_cmds \ 10650 postuninstall_cmds \ 10651 old_archive_from_expsyms_cmds \ 10652 allow_undefined_flag \ 10653 no_undefined_flag \ 10654 export_symbols_cmds \ 10655 hardcode_libdir_flag_spec \ 10656 hardcode_libdir_flag_spec_ld \ 10657 hardcode_libdir_separator \ 10658 hardcode_automatic \ 10659 module_cmds \ 10660 module_expsym_cmds \ 10661 lt_cv_prog_compiler_c_o \ 10662 exclude_expsyms \ 10663 include_expsyms; do 10664 10665 case $var in 10666 old_archive_cmds | \ 10667 old_archive_from_new_cmds | \ 10668 archive_cmds | \ 10669 archive_expsym_cmds | \ 10670 module_cmds | \ 10671 module_expsym_cmds | \ 10672 old_archive_from_expsyms_cmds | \ 10673 export_symbols_cmds | \ 10674 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10675 postinstall_cmds | postuninstall_cmds | \ 10676 old_postinstall_cmds | old_postuninstall_cmds | \ 10677 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10678 # Double-quote double-evaled strings. 10679 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10680 ;; 10681 *) 10682 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10683 ;; 10684 esac 10685 done 10686 10687 case $lt_echo in 10688 *'\$0 --fallback-echo"') 10689 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10690 ;; 10691 esac 10692 10693cfgfile="${ofile}T" 10694 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10695 $rm -f "$cfgfile" 10696 { echo "$as_me:$LINENO: creating $ofile" >&5 10697echo "$as_me: creating $ofile" >&6;} 10698 10699 cat <<__EOF__ >> "$cfgfile" 10700#! $SHELL 10701 10702# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10703# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10704# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10705# 10706# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 10707# Free Software Foundation, Inc. 10708# 10709# This file is part of GNU Libtool: 10710# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10711# 10712# This program is free software; you can redistribute it and/or modify 10713# it under the terms of the GNU General Public License as published by 10714# the Free Software Foundation; either version 2 of the License, or 10715# (at your option) any later version. 10716# 10717# This program is distributed in the hope that it will be useful, but 10718# WITHOUT ANY WARRANTY; without even the implied warranty of 10719# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10720# General Public License for more details. 10721# 10722# You should have received a copy of the GNU General Public License 10723# along with this program; if not, write to the Free Software 10724# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10725# 10726# As a special exception to the GNU General Public License, if you 10727# distribute this file as part of a program that contains a 10728# configuration script generated by Autoconf, you may include it under 10729# the same distribution terms that you use for the rest of that program. 10730 10731# A sed program that does not truncate output. 10732SED=$lt_SED 10733 10734# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10735Xsed="$SED -e 1s/^X//" 10736 10737# The HP-UX ksh and POSIX shell print the target directory to stdout 10738# if CDPATH is set. 10739(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10740 10741# The names of the tagged configurations supported by this script. 10742available_tags= 10743 10744# ### BEGIN LIBTOOL CONFIG 10745 10746# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10747 10748# Shell to use when invoking shell scripts. 10749SHELL=$lt_SHELL 10750 10751# Whether or not to build shared libraries. 10752build_libtool_libs=$enable_shared 10753 10754# Whether or not to build static libraries. 10755build_old_libs=$enable_static 10756 10757# Whether or not to add -lc for building shared libraries. 10758build_libtool_need_lc=$archive_cmds_need_lc 10759 10760# Whether or not to disallow shared libs when runtime libs are static 10761allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10762 10763# Whether or not to optimize for fast installation. 10764fast_install=$enable_fast_install 10765 10766# The host system. 10767host_alias=$host_alias 10768host=$host 10769host_os=$host_os 10770 10771# The build system. 10772build_alias=$build_alias 10773build=$build 10774build_os=$build_os 10775 10776# An echo program that does not interpret backslashes. 10777echo=$lt_echo 10778 10779# The archiver. 10780AR=$lt_AR 10781AR_FLAGS=$lt_AR_FLAGS 10782 10783# A C compiler. 10784LTCC=$lt_LTCC 10785 10786# LTCC compiler flags. 10787LTCFLAGS=$lt_LTCFLAGS 10788 10789# A language-specific compiler. 10790CC=$lt_compiler 10791 10792# Is the compiler the GNU C compiler? 10793with_gcc=$GCC 10794 10795# An ERE matcher. 10796EGREP=$lt_EGREP 10797 10798# The linker used to build libraries. 10799LD=$lt_LD 10800 10801# Whether we need hard or soft links. 10802LN_S=$lt_LN_S 10803 10804# A BSD-compatible nm program. 10805NM=$lt_NM 10806 10807# A symbol stripping program 10808STRIP=$lt_STRIP 10809 10810# Used to examine libraries when file_magic_cmd begins "file" 10811MAGIC_CMD=$MAGIC_CMD 10812 10813# Used on cygwin: DLL creation program. 10814DLLTOOL="$DLLTOOL" 10815 10816# Used on cygwin: object dumper. 10817OBJDUMP="$OBJDUMP" 10818 10819# Used on cygwin: assembler. 10820AS="$AS" 10821 10822# The name of the directory that contains temporary libtool files. 10823objdir=$objdir 10824 10825# How to create reloadable object files. 10826reload_flag=$lt_reload_flag 10827reload_cmds=$lt_reload_cmds 10828 10829# How to pass a linker flag through the compiler. 10830wl=$lt_lt_prog_compiler_wl 10831 10832# Object file suffix (normally "o"). 10833objext="$ac_objext" 10834 10835# Old archive suffix (normally "a"). 10836libext="$libext" 10837 10838# Shared library suffix (normally ".so"). 10839shrext_cmds='$shrext_cmds' 10840 10841# Executable file suffix (normally ""). 10842exeext="$exeext" 10843 10844# Additional compiler flags for building library objects. 10845pic_flag=$lt_lt_prog_compiler_pic 10846pic_mode=$pic_mode 10847 10848# What is the maximum length of a command? 10849max_cmd_len=$lt_cv_sys_max_cmd_len 10850 10851# Does compiler simultaneously support -c and -o options? 10852compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10853 10854# Must we lock files when doing compilation? 10855need_locks=$lt_need_locks 10856 10857# Do we need the lib prefix for modules? 10858need_lib_prefix=$need_lib_prefix 10859 10860# Do we need a version for libraries? 10861need_version=$need_version 10862 10863# Whether dlopen is supported. 10864dlopen_support=$enable_dlopen 10865 10866# Whether dlopen of programs is supported. 10867dlopen_self=$enable_dlopen_self 10868 10869# Whether dlopen of statically linked programs is supported. 10870dlopen_self_static=$enable_dlopen_self_static 10871 10872# Compiler flag to prevent dynamic linking. 10873link_static_flag=$lt_lt_prog_compiler_static 10874 10875# Compiler flag to turn off builtin functions. 10876no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10877 10878# Compiler flag to allow reflexive dlopens. 10879export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10880 10881# Compiler flag to generate shared objects directly from archives. 10882whole_archive_flag_spec=$lt_whole_archive_flag_spec 10883 10884# Compiler flag to generate thread-safe objects. 10885thread_safe_flag_spec=$lt_thread_safe_flag_spec 10886 10887# Library versioning type. 10888version_type=$version_type 10889 10890# Format of library name prefix. 10891libname_spec=$lt_libname_spec 10892 10893# List of archive names. First name is the real one, the rest are links. 10894# The last name is the one that the linker finds with -lNAME. 10895library_names_spec=$lt_library_names_spec 10896 10897# The coded name of the library, if different from the real name. 10898soname_spec=$lt_soname_spec 10899 10900# Commands used to build and install an old-style archive. 10901RANLIB=$lt_RANLIB 10902old_archive_cmds=$lt_old_archive_cmds 10903old_postinstall_cmds=$lt_old_postinstall_cmds 10904old_postuninstall_cmds=$lt_old_postuninstall_cmds 10905 10906# Create an old-style archive from a shared archive. 10907old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10908 10909# Create a temporary old-style archive to link instead of a shared archive. 10910old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10911 10912# Commands used to build and install a shared archive. 10913archive_cmds=$lt_archive_cmds 10914archive_expsym_cmds=$lt_archive_expsym_cmds 10915postinstall_cmds=$lt_postinstall_cmds 10916postuninstall_cmds=$lt_postuninstall_cmds 10917 10918# Commands used to build a loadable module (assumed same as above if empty) 10919module_cmds=$lt_module_cmds 10920module_expsym_cmds=$lt_module_expsym_cmds 10921 10922# Commands to strip libraries. 10923old_striplib=$lt_old_striplib 10924striplib=$lt_striplib 10925 10926# Dependencies to place before the objects being linked to create a 10927# shared library. 10928predep_objects=$lt_predep_objects 10929 10930# Dependencies to place after the objects being linked to create a 10931# shared library. 10932postdep_objects=$lt_postdep_objects 10933 10934# Dependencies to place before the objects being linked to create a 10935# shared library. 10936predeps=$lt_predeps 10937 10938# Dependencies to place after the objects being linked to create a 10939# shared library. 10940postdeps=$lt_postdeps 10941 10942# The library search path used internally by the compiler when linking 10943# a shared library. 10944compiler_lib_search_path=$lt_compiler_lib_search_path 10945 10946# Method to check whether dependent libraries are shared objects. 10947deplibs_check_method=$lt_deplibs_check_method 10948 10949# Command to use when deplibs_check_method == file_magic. 10950file_magic_cmd=$lt_file_magic_cmd 10951 10952# Flag that allows shared libraries with undefined symbols to be built. 10953allow_undefined_flag=$lt_allow_undefined_flag 10954 10955# Flag that forces no undefined symbols. 10956no_undefined_flag=$lt_no_undefined_flag 10957 10958# Commands used to finish a libtool library installation in a directory. 10959finish_cmds=$lt_finish_cmds 10960 10961# Same as above, but a single script fragment to be evaled but not shown. 10962finish_eval=$lt_finish_eval 10963 10964# Take the output of nm and produce a listing of raw symbols and C names. 10965global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10966 10967# Transform the output of nm in a proper C declaration 10968global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10969 10970# Transform the output of nm in a C name address pair 10971global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10972 10973# This is the shared library runtime path variable. 10974runpath_var=$runpath_var 10975 10976# This is the shared library path variable. 10977shlibpath_var=$shlibpath_var 10978 10979# Is shlibpath searched before the hard-coded library search path? 10980shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10981 10982# How to hardcode a shared library path into an executable. 10983hardcode_action=$hardcode_action 10984 10985# Whether we should hardcode library paths into libraries. 10986hardcode_into_libs=$hardcode_into_libs 10987 10988# Flag to hardcode \$libdir into a binary during linking. 10989# This must work even if \$libdir does not exist. 10990hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10991 10992# If ld is used when linking, flag to hardcode \$libdir into 10993# a binary during linking. This must work even if \$libdir does 10994# not exist. 10995hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10996 10997# Whether we need a single -rpath flag with a separated argument. 10998hardcode_libdir_separator=$lt_hardcode_libdir_separator 10999 11000# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 11001# resulting binary. 11002hardcode_direct=$hardcode_direct 11003 11004# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 11005# resulting binary. 11006hardcode_minus_L=$hardcode_minus_L 11007 11008# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 11009# the resulting binary. 11010hardcode_shlibpath_var=$hardcode_shlibpath_var 11011 11012# Set to yes if building a shared library automatically hardcodes DIR into the library 11013# and all subsequent libraries and executables linked against it. 11014hardcode_automatic=$hardcode_automatic 11015 11016# Variables whose values should be saved in libtool wrapper scripts and 11017# restored at relink time. 11018variables_saved_for_relink="$variables_saved_for_relink" 11019 11020# Whether libtool must link a program against all its dependency libraries. 11021link_all_deplibs=$link_all_deplibs 11022 11023# Compile-time system search path for libraries 11024sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 11025 11026# Run-time system search path for libraries 11027sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 11028 11029# Fix the shell variable \$srcfile for the compiler. 11030fix_srcfile_path="$fix_srcfile_path" 11031 11032# Set to yes if exported symbols are required. 11033always_export_symbols=$always_export_symbols 11034 11035# The commands to list exported symbols. 11036export_symbols_cmds=$lt_export_symbols_cmds 11037 11038# The commands to extract the exported symbol list from a shared archive. 11039extract_expsyms_cmds=$lt_extract_expsyms_cmds 11040 11041# Symbols that should not be listed in the preloaded symbols. 11042exclude_expsyms=$lt_exclude_expsyms 11043 11044# Symbols that must always be exported. 11045include_expsyms=$lt_include_expsyms 11046 11047# ### END LIBTOOL CONFIG 11048 11049__EOF__ 11050 11051 11052 case $host_os in 11053 aix3*) 11054 cat <<\EOF >> "$cfgfile" 11055 11056# AIX sometimes has problems with the GCC collect2 program. For some 11057# reason, if we set the COLLECT_NAMES environment variable, the problems 11058# vanish in a puff of smoke. 11059if test "X${COLLECT_NAMES+set}" != Xset; then 11060 COLLECT_NAMES= 11061 export COLLECT_NAMES 11062fi 11063EOF 11064 ;; 11065 esac 11066 11067 # We use sed instead of cat because bash on DJGPP gets confused if 11068 # if finds mixed CR/LF and LF-only lines. Since sed operates in 11069 # text mode, it properly converts lines to CR/LF. This bash problem 11070 # is reportedly fixed, but why not run on old versions too? 11071 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 11072 11073 mv -f "$cfgfile" "$ofile" || \ 11074 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 11075 chmod +x "$ofile" 11076 11077else 11078 # If there is no Makefile yet, we rely on a make rule to execute 11079 # `config.status --recheck' to rerun these tests and create the 11080 # libtool script then. 11081 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 11082 if test -f "$ltmain_in"; then 11083 test -f Makefile && make "$ltmain" 11084 fi 11085fi 11086 11087 11088ac_ext=c 11089ac_cpp='$CPP $CPPFLAGS' 11090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11092ac_compiler_gnu=$ac_cv_c_compiler_gnu 11093 11094CC="$lt_save_CC" 11095 11096 11097# Check whether --with-tags was given. 11098if test "${with_tags+set}" = set; then 11099 withval=$with_tags; tagnames="$withval" 11100fi 11101 11102 11103if test -f "$ltmain" && test -n "$tagnames"; then 11104 if test ! -f "${ofile}"; then 11105 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 11106echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 11107 fi 11108 11109 if test -z "$LTCC"; then 11110 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 11111 if test -z "$LTCC"; then 11112 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 11113echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 11114 else 11115 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 11116echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 11117 fi 11118 fi 11119 if test -z "$LTCFLAGS"; then 11120 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 11121 fi 11122 11123 # Extract list of available tagged configurations in $ofile. 11124 # Note that this assumes the entire list is on one line. 11125 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 11126 11127 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11128 for tagname in $tagnames; do 11129 IFS="$lt_save_ifs" 11130 # Check whether tagname contains only valid characters 11131 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 11132 "") ;; 11133 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 11134echo "$as_me: error: invalid tag name: $tagname" >&2;} 11135 { (exit 1); exit 1; }; } 11136 ;; 11137 esac 11138 11139 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 11140 then 11141 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 11142echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 11143 { (exit 1); exit 1; }; } 11144 fi 11145 11146 # Update the list of available tags. 11147 if test -n "$tagname"; then 11148 echo appending configuration tag \"$tagname\" to $ofile 11149 11150 case $tagname in 11151 CXX) 11152 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11153 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11154 (test "X$CXX" != "Xg++"))) ; then 11155 ac_ext=cpp 11156ac_cpp='$CXXCPP $CPPFLAGS' 11157ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11158ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11159ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11160 11161 11162 11163 11164archive_cmds_need_lc_CXX=no 11165allow_undefined_flag_CXX= 11166always_export_symbols_CXX=no 11167archive_expsym_cmds_CXX= 11168export_dynamic_flag_spec_CXX= 11169hardcode_direct_CXX=no 11170hardcode_libdir_flag_spec_CXX= 11171hardcode_libdir_flag_spec_ld_CXX= 11172hardcode_libdir_separator_CXX= 11173hardcode_minus_L_CXX=no 11174hardcode_shlibpath_var_CXX=unsupported 11175hardcode_automatic_CXX=no 11176module_cmds_CXX= 11177module_expsym_cmds_CXX= 11178link_all_deplibs_CXX=unknown 11179old_archive_cmds_CXX=$old_archive_cmds 11180no_undefined_flag_CXX= 11181whole_archive_flag_spec_CXX= 11182enable_shared_with_static_runtimes_CXX=no 11183 11184# Dependencies to place before and after the object being linked: 11185predep_objects_CXX= 11186postdep_objects_CXX= 11187predeps_CXX= 11188postdeps_CXX= 11189compiler_lib_search_path_CXX= 11190 11191# Source file extension for C++ test sources. 11192ac_ext=cpp 11193 11194# Object file extension for compiled C++ test sources. 11195objext=o 11196objext_CXX=$objext 11197 11198# Code to be used in simple compile tests 11199lt_simple_compile_test_code="int some_variable = 0;\n" 11200 11201# Code to be used in simple link tests 11202lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 11203 11204# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11205 11206# If no C compiler was specified, use CC. 11207LTCC=${LTCC-"$CC"} 11208 11209# If no C compiler flags were specified, use CFLAGS. 11210LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11211 11212# Allow CC to be a program name with arguments. 11213compiler=$CC 11214 11215 11216# save warnings/boilerplate of simple test code 11217ac_outfile=conftest.$ac_objext 11218printf "$lt_simple_compile_test_code" >conftest.$ac_ext 11219eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11220_lt_compiler_boilerplate=`cat conftest.err` 11221$rm conftest* 11222 11223ac_outfile=conftest.$ac_objext 11224printf "$lt_simple_link_test_code" >conftest.$ac_ext 11225eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11226_lt_linker_boilerplate=`cat conftest.err` 11227$rm conftest* 11228 11229 11230# Allow CC to be a program name with arguments. 11231lt_save_CC=$CC 11232lt_save_LD=$LD 11233lt_save_GCC=$GCC 11234GCC=$GXX 11235lt_save_with_gnu_ld=$with_gnu_ld 11236lt_save_path_LD=$lt_cv_path_LD 11237if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11238 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11239else 11240 $as_unset lt_cv_prog_gnu_ld 11241fi 11242if test -n "${lt_cv_path_LDCXX+set}"; then 11243 lt_cv_path_LD=$lt_cv_path_LDCXX 11244else 11245 $as_unset lt_cv_path_LD 11246fi 11247test -z "${LDCXX+set}" || LD=$LDCXX 11248CC=${CXX-"c++"} 11249compiler=$CC 11250compiler_CXX=$CC 11251for cc_temp in $compiler""; do 11252 case $cc_temp in 11253 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11254 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11255 \-*) ;; 11256 *) break;; 11257 esac 11258done 11259cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11260 11261 11262# We don't want -fno-exception wen compiling C++ code, so set the 11263# no_builtin_flag separately 11264if test "$GXX" = yes; then 11265 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11266else 11267 lt_prog_compiler_no_builtin_flag_CXX= 11268fi 11269 11270if test "$GXX" = yes; then 11271 # Set up default GNU C++ configuration 11272 11273 11274# Check whether --with-gnu-ld was given. 11275if test "${with_gnu_ld+set}" = set; then 11276 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11277else 11278 with_gnu_ld=no 11279fi 11280 11281ac_prog=ld 11282if test "$GCC" = yes; then 11283 # Check if gcc -print-prog-name=ld gives a path. 11284 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 11285echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 11286 case $host in 11287 *-*-mingw*) 11288 # gcc leaves a trailing carriage return which upsets mingw 11289 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11290 *) 11291 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11292 esac 11293 case $ac_prog in 11294 # Accept absolute paths. 11295 [\\/]* | ?:[\\/]*) 11296 re_direlt='/[^/][^/]*/\.\./' 11297 # Canonicalize the pathname of ld 11298 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 11299 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11300 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 11301 done 11302 test -z "$LD" && LD="$ac_prog" 11303 ;; 11304 "") 11305 # If it fails, then pretend we aren't using GCC. 11306 ac_prog=ld 11307 ;; 11308 *) 11309 # If it is relative, then search for the first ld in PATH. 11310 with_gnu_ld=unknown 11311 ;; 11312 esac 11313elif test "$with_gnu_ld" = yes; then 11314 { echo "$as_me:$LINENO: checking for GNU ld" >&5 11315echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 11316else 11317 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 11318echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 11319fi 11320if test "${lt_cv_path_LD+set}" = set; then 11321 echo $ECHO_N "(cached) $ECHO_C" >&6 11322else 11323 if test -z "$LD"; then 11324 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11325 for ac_dir in $PATH; do 11326 IFS="$lt_save_ifs" 11327 test -z "$ac_dir" && ac_dir=. 11328 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11329 lt_cv_path_LD="$ac_dir/$ac_prog" 11330 # Check to see if the program is GNU ld. I'd rather use --version, 11331 # but apparently some variants of GNU ld only accept -v. 11332 # Break only if it was the GNU/non-GNU ld that we prefer. 11333 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11334 *GNU* | *'with BFD'*) 11335 test "$with_gnu_ld" != no && break 11336 ;; 11337 *) 11338 test "$with_gnu_ld" != yes && break 11339 ;; 11340 esac 11341 fi 11342 done 11343 IFS="$lt_save_ifs" 11344else 11345 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11346fi 11347fi 11348 11349LD="$lt_cv_path_LD" 11350if test -n "$LD"; then 11351 { echo "$as_me:$LINENO: result: $LD" >&5 11352echo "${ECHO_T}$LD" >&6; } 11353else 11354 { echo "$as_me:$LINENO: result: no" >&5 11355echo "${ECHO_T}no" >&6; } 11356fi 11357test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 11358echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 11359 { (exit 1); exit 1; }; } 11360{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 11361echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 11362if test "${lt_cv_prog_gnu_ld+set}" = set; then 11363 echo $ECHO_N "(cached) $ECHO_C" >&6 11364else 11365 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11366case `$LD -v 2>&1 </dev/null` in 11367*GNU* | *'with BFD'*) 11368 lt_cv_prog_gnu_ld=yes 11369 ;; 11370*) 11371 lt_cv_prog_gnu_ld=no 11372 ;; 11373esac 11374fi 11375{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 11376echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 11377with_gnu_ld=$lt_cv_prog_gnu_ld 11378 11379 11380 11381 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11382 # archiving commands below assume that GNU ld is being used. 11383 if test "$with_gnu_ld" = yes; then 11384 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11385 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' 11386 11387 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11388 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11389 11390 # If archive_cmds runs LD, not CC, wlarc should be empty 11391 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11392 # investigate it a little bit more. (MM) 11393 wlarc='${wl}' 11394 11395 # ancient GNU ld didn't support --whole-archive et. al. 11396 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 11397 grep 'no-whole-archive' > /dev/null; then 11398 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11399 else 11400 whole_archive_flag_spec_CXX= 11401 fi 11402 else 11403 with_gnu_ld=no 11404 wlarc= 11405 11406 # A generic and very simple default shared library creation 11407 # command for GNU C++ for the case where it uses the native 11408 # linker, instead of GNU ld. If possible, this setting should 11409 # overridden to take advantage of the native linker features on 11410 # the platform it is being used on. 11411 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11412 fi 11413 11414 # Commands to make compiler produce verbose output that lists 11415 # what "hidden" libraries, object files and flags are used when 11416 # linking a shared library. 11417 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11418 11419else 11420 GXX=no 11421 with_gnu_ld=no 11422 wlarc= 11423fi 11424 11425# PORTME: fill in a description of your system's C++ link characteristics 11426{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11427echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 11428ld_shlibs_CXX=yes 11429case $host_os in 11430 aix3*) 11431 # FIXME: insert proper C++ library support 11432 ld_shlibs_CXX=no 11433 ;; 11434 aix4* | aix5*) 11435 if test "$host_cpu" = ia64; then 11436 # On IA64, the linker does run time linking by default, so we don't 11437 # have to do anything special. 11438 aix_use_runtimelinking=no 11439 exp_sym_flag='-Bexport' 11440 no_entry_flag="" 11441 else 11442 aix_use_runtimelinking=no 11443 11444 # Test if we are trying to use run time linking or normal 11445 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11446 # need to do runtime linking. 11447 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 11448 for ld_flag in $LDFLAGS; do 11449 case $ld_flag in 11450 *-brtl*) 11451 aix_use_runtimelinking=yes 11452 break 11453 ;; 11454 esac 11455 done 11456 ;; 11457 esac 11458 11459 exp_sym_flag='-bexport' 11460 no_entry_flag='-bnoentry' 11461 fi 11462 11463 # When large executables or shared objects are built, AIX ld can 11464 # have problems creating the table of contents. If linking a library 11465 # or program results in "error TOC overflow" add -mminimal-toc to 11466 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11467 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11468 11469 archive_cmds_CXX='' 11470 hardcode_direct_CXX=yes 11471 hardcode_libdir_separator_CXX=':' 11472 link_all_deplibs_CXX=yes 11473 11474 if test "$GXX" = yes; then 11475 case $host_os in aix4.[012]|aix4.[012].*) 11476 # We only want to do this on AIX 4.2 and lower, the check 11477 # below for broken collect2 doesn't work under 4.3+ 11478 collect2name=`${CC} -print-prog-name=collect2` 11479 if test -f "$collect2name" && \ 11480 strings "$collect2name" | grep resolve_lib_name >/dev/null 11481 then 11482 # We have reworked collect2 11483 hardcode_direct_CXX=yes 11484 else 11485 # We have old collect2 11486 hardcode_direct_CXX=unsupported 11487 # It fails to find uninstalled libraries when the uninstalled 11488 # path is not listed in the libpath. Setting hardcode_minus_L 11489 # to unsupported forces relinking 11490 hardcode_minus_L_CXX=yes 11491 hardcode_libdir_flag_spec_CXX='-L$libdir' 11492 hardcode_libdir_separator_CXX= 11493 fi 11494 ;; 11495 esac 11496 shared_flag='-shared' 11497 if test "$aix_use_runtimelinking" = yes; then 11498 shared_flag="$shared_flag "'${wl}-G' 11499 fi 11500 else 11501 # not using gcc 11502 if test "$host_cpu" = ia64; then 11503 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11504 # chokes on -Wl,-G. The following line is correct: 11505 shared_flag='-G' 11506 else 11507 if test "$aix_use_runtimelinking" = yes; then 11508 shared_flag='${wl}-G' 11509 else 11510 shared_flag='${wl}-bM:SRE' 11511 fi 11512 fi 11513 fi 11514 11515 # It seems that -bexpall does not export symbols beginning with 11516 # underscore (_), so it is better to generate a list of symbols to export. 11517 always_export_symbols_CXX=yes 11518 if test "$aix_use_runtimelinking" = yes; then 11519 # Warning - without using the other runtime loading flags (-brtl), 11520 # -berok will link without error, but may produce a broken library. 11521 allow_undefined_flag_CXX='-berok' 11522 # Determine the default libpath from the value encoded in an empty executable. 11523 cat >conftest.$ac_ext <<_ACEOF 11524/* confdefs.h. */ 11525_ACEOF 11526cat confdefs.h >>conftest.$ac_ext 11527cat >>conftest.$ac_ext <<_ACEOF 11528/* end confdefs.h. */ 11529 11530int 11531main () 11532{ 11533 11534 ; 11535 return 0; 11536} 11537_ACEOF 11538rm -f conftest.$ac_objext conftest$ac_exeext 11539if { (ac_try="$ac_link" 11540case "(($ac_try" in 11541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11542 *) ac_try_echo=$ac_try;; 11543esac 11544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11545 (eval "$ac_link") 2>conftest.er1 11546 ac_status=$? 11547 grep -v '^ *+' conftest.er1 >conftest.err 11548 rm -f conftest.er1 11549 cat conftest.err >&5 11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11551 (exit $ac_status); } && 11552 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11553 { (case "(($ac_try" in 11554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11555 *) ac_try_echo=$ac_try;; 11556esac 11557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11558 (eval "$ac_try") 2>&5 11559 ac_status=$? 11560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11561 (exit $ac_status); }; } && 11562 { ac_try='test -s conftest$ac_exeext' 11563 { (case "(($ac_try" in 11564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11565 *) ac_try_echo=$ac_try;; 11566esac 11567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11568 (eval "$ac_try") 2>&5 11569 ac_status=$? 11570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11571 (exit $ac_status); }; }; then 11572 11573aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11574}'` 11575# Check for a 64-bit object if we didn't find anything. 11576if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11577}'`; fi 11578else 11579 echo "$as_me: failed program was:" >&5 11580sed 's/^/| /' conftest.$ac_ext >&5 11581 11582 11583fi 11584 11585rm -f core conftest.err conftest.$ac_objext \ 11586 conftest$ac_exeext conftest.$ac_ext 11587if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11588 11589 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11590 11591 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" 11592 else 11593 if test "$host_cpu" = ia64; then 11594 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11595 allow_undefined_flag_CXX="-z nodefs" 11596 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" 11597 else 11598 # Determine the default libpath from the value encoded in an empty executable. 11599 cat >conftest.$ac_ext <<_ACEOF 11600/* confdefs.h. */ 11601_ACEOF 11602cat confdefs.h >>conftest.$ac_ext 11603cat >>conftest.$ac_ext <<_ACEOF 11604/* end confdefs.h. */ 11605 11606int 11607main () 11608{ 11609 11610 ; 11611 return 0; 11612} 11613_ACEOF 11614rm -f conftest.$ac_objext conftest$ac_exeext 11615if { (ac_try="$ac_link" 11616case "(($ac_try" in 11617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11618 *) ac_try_echo=$ac_try;; 11619esac 11620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11621 (eval "$ac_link") 2>conftest.er1 11622 ac_status=$? 11623 grep -v '^ *+' conftest.er1 >conftest.err 11624 rm -f conftest.er1 11625 cat conftest.err >&5 11626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11627 (exit $ac_status); } && 11628 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11629 { (case "(($ac_try" in 11630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11631 *) ac_try_echo=$ac_try;; 11632esac 11633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11634 (eval "$ac_try") 2>&5 11635 ac_status=$? 11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11637 (exit $ac_status); }; } && 11638 { ac_try='test -s conftest$ac_exeext' 11639 { (case "(($ac_try" in 11640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11641 *) ac_try_echo=$ac_try;; 11642esac 11643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11644 (eval "$ac_try") 2>&5 11645 ac_status=$? 11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11647 (exit $ac_status); }; }; then 11648 11649aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11650}'` 11651# Check for a 64-bit object if we didn't find anything. 11652if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11653}'`; fi 11654else 11655 echo "$as_me: failed program was:" >&5 11656sed 's/^/| /' conftest.$ac_ext >&5 11657 11658 11659fi 11660 11661rm -f core conftest.err conftest.$ac_objext \ 11662 conftest$ac_exeext conftest.$ac_ext 11663if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11664 11665 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11666 # Warning - without using the other run time loading flags, 11667 # -berok will link without error, but may produce a broken library. 11668 no_undefined_flag_CXX=' ${wl}-bernotok' 11669 allow_undefined_flag_CXX=' ${wl}-berok' 11670 # Exported symbols can be pulled into shared objects from archives 11671 whole_archive_flag_spec_CXX='$convenience' 11672 archive_cmds_need_lc_CXX=yes 11673 # This is similar to how AIX traditionally builds its shared libraries. 11674 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' 11675 fi 11676 fi 11677 ;; 11678 11679 beos*) 11680 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11681 allow_undefined_flag_CXX=unsupported 11682 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11683 # support --undefined. This deserves some investigation. FIXME 11684 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11685 else 11686 ld_shlibs_CXX=no 11687 fi 11688 ;; 11689 11690 chorus*) 11691 case $cc_basename in 11692 *) 11693 # FIXME: insert proper C++ library support 11694 ld_shlibs_CXX=no 11695 ;; 11696 esac 11697 ;; 11698 11699 cygwin* | mingw* | pw32*) 11700 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11701 # as there is no search path for DLLs. 11702 hardcode_libdir_flag_spec_CXX='-L$libdir' 11703 allow_undefined_flag_CXX=unsupported 11704 always_export_symbols_CXX=no 11705 enable_shared_with_static_runtimes_CXX=yes 11706 11707 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11708 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' 11709 # If the export-symbols file already is a .def file (1st line 11710 # is EXPORTS), use it as is; otherwise, prepend... 11711 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11712 cp $export_symbols $output_objdir/$soname.def; 11713 else 11714 echo EXPORTS > $output_objdir/$soname.def; 11715 cat $export_symbols >> $output_objdir/$soname.def; 11716 fi~ 11717 $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' 11718 else 11719 ld_shlibs_CXX=no 11720 fi 11721 ;; 11722 darwin* | rhapsody*) 11723 case $host_os in 11724 rhapsody* | darwin1.[012]) 11725 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 11726 ;; 11727 *) # Darwin 1.3 on 11728 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11729 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11730 else 11731 case ${MACOSX_DEPLOYMENT_TARGET} in 11732 10.[012]) 11733 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11734 ;; 11735 10.*) 11736 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 11737 ;; 11738 esac 11739 fi 11740 ;; 11741 esac 11742 archive_cmds_need_lc_CXX=no 11743 hardcode_direct_CXX=no 11744 hardcode_automatic_CXX=yes 11745 hardcode_shlibpath_var_CXX=unsupported 11746 whole_archive_flag_spec_CXX='' 11747 link_all_deplibs_CXX=yes 11748 11749 if test "$GXX" = yes ; then 11750 lt_int_apple_cc_single_mod=no 11751 output_verbose_link_cmd='echo' 11752 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 11753 lt_int_apple_cc_single_mod=yes 11754 fi 11755 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11756 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11757 else 11758 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' 11759 fi 11760 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11761 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11762 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11763 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11764 else 11765 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11766 fi 11767 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}' 11768 else 11769 case $cc_basename in 11770 xlc*) 11771 output_verbose_link_cmd='echo' 11772 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 11773 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11774 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11775 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11776 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}' 11777 ;; 11778 *) 11779 ld_shlibs_CXX=no 11780 ;; 11781 esac 11782 fi 11783 ;; 11784 11785 dgux*) 11786 case $cc_basename in 11787 ec++*) 11788 # FIXME: insert proper C++ library support 11789 ld_shlibs_CXX=no 11790 ;; 11791 ghcx*) 11792 # Green Hills C++ Compiler 11793 # FIXME: insert proper C++ library support 11794 ld_shlibs_CXX=no 11795 ;; 11796 *) 11797 # FIXME: insert proper C++ library support 11798 ld_shlibs_CXX=no 11799 ;; 11800 esac 11801 ;; 11802 freebsd[12]*) 11803 # C++ shared libraries reported to be fairly broken before switch to ELF 11804 ld_shlibs_CXX=no 11805 ;; 11806 freebsd-elf*) 11807 archive_cmds_need_lc_CXX=no 11808 ;; 11809 freebsd* | kfreebsd*-gnu | dragonfly*) 11810 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11811 # conventions 11812 ld_shlibs_CXX=yes 11813 ;; 11814 gnu*) 11815 ;; 11816 hpux9*) 11817 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11818 hardcode_libdir_separator_CXX=: 11819 export_dynamic_flag_spec_CXX='${wl}-E' 11820 hardcode_direct_CXX=yes 11821 hardcode_minus_L_CXX=yes # Not in the search PATH, 11822 # but as the default 11823 # location of the library. 11824 11825 case $cc_basename in 11826 CC*) 11827 # FIXME: insert proper C++ library support 11828 ld_shlibs_CXX=no 11829 ;; 11830 aCC*) 11831 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' 11832 # Commands to make compiler produce verbose output that lists 11833 # what "hidden" libraries, object files and flags are used when 11834 # linking a shared library. 11835 # 11836 # There doesn't appear to be a way to prevent this compiler from 11837 # explicitly linking system object files so we need to strip them 11838 # from the output so that they don't get included in the library 11839 # dependencies. 11840 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' 11841 ;; 11842 *) 11843 if test "$GXX" = yes; then 11844 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' 11845 else 11846 # FIXME: insert proper C++ library support 11847 ld_shlibs_CXX=no 11848 fi 11849 ;; 11850 esac 11851 ;; 11852 hpux10*|hpux11*) 11853 if test $with_gnu_ld = no; then 11854 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11855 hardcode_libdir_separator_CXX=: 11856 11857 case $host_cpu in 11858 hppa*64*|ia64*) 11859 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 11860 ;; 11861 *) 11862 export_dynamic_flag_spec_CXX='${wl}-E' 11863 ;; 11864 esac 11865 fi 11866 case $host_cpu in 11867 hppa*64*|ia64*) 11868 hardcode_direct_CXX=no 11869 hardcode_shlibpath_var_CXX=no 11870 ;; 11871 *) 11872 hardcode_direct_CXX=yes 11873 hardcode_minus_L_CXX=yes # Not in the search PATH, 11874 # but as the default 11875 # location of the library. 11876 ;; 11877 esac 11878 11879 case $cc_basename in 11880 CC*) 11881 # FIXME: insert proper C++ library support 11882 ld_shlibs_CXX=no 11883 ;; 11884 aCC*) 11885 case $host_cpu in 11886 hppa*64*) 11887 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11888 ;; 11889 ia64*) 11890 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11891 ;; 11892 *) 11893 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11894 ;; 11895 esac 11896 # Commands to make compiler produce verbose output that lists 11897 # what "hidden" libraries, object files and flags are used when 11898 # linking a shared library. 11899 # 11900 # There doesn't appear to be a way to prevent this compiler from 11901 # explicitly linking system object files so we need to strip them 11902 # from the output so that they don't get included in the library 11903 # dependencies. 11904 output_verbose_link_cmd='templist=`($CC -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' 11905 ;; 11906 *) 11907 if test "$GXX" = yes; then 11908 if test $with_gnu_ld = no; then 11909 case $host_cpu in 11910 hppa*64*) 11911 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11912 ;; 11913 ia64*) 11914 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11915 ;; 11916 *) 11917 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' 11918 ;; 11919 esac 11920 fi 11921 else 11922 # FIXME: insert proper C++ library support 11923 ld_shlibs_CXX=no 11924 fi 11925 ;; 11926 esac 11927 ;; 11928 interix3*) 11929 hardcode_direct_CXX=no 11930 hardcode_shlibpath_var_CXX=no 11931 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11932 export_dynamic_flag_spec_CXX='${wl}-E' 11933 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11934 # Instead, shared libraries are loaded at an image base (0x10000000 by 11935 # default) and relocated if they conflict, which is a slow very memory 11936 # consuming and fragmenting process. To avoid this, we pick a random, 11937 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11938 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11939 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' 11940 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' 11941 ;; 11942 irix5* | irix6*) 11943 case $cc_basename in 11944 CC*) 11945 # SGI C++ 11946 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' 11947 11948 # Archives containing C++ object files must be created using 11949 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11950 # necessary to make sure instantiated templates are included 11951 # in the archive. 11952 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11953 ;; 11954 *) 11955 if test "$GXX" = yes; then 11956 if test "$with_gnu_ld" = no; then 11957 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' 11958 else 11959 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' 11960 fi 11961 fi 11962 link_all_deplibs_CXX=yes 11963 ;; 11964 esac 11965 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11966 hardcode_libdir_separator_CXX=: 11967 ;; 11968 linux*) 11969 case $cc_basename in 11970 KCC*) 11971 # Kuck and Associates, Inc. (KAI) C++ Compiler 11972 11973 # KCC will only create a shared library if the output file 11974 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11975 # to its proper name (with version) after linking. 11976 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' 11977 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' 11978 # Commands to make compiler produce verbose output that lists 11979 # what "hidden" libraries, object files and flags are used when 11980 # linking a shared library. 11981 # 11982 # There doesn't appear to be a way to prevent this compiler from 11983 # explicitly linking system object files so we need to strip them 11984 # from the output so that they don't get included in the library 11985 # dependencies. 11986 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' 11987 11988 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11989 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11990 11991 # Archives containing C++ object files must be created using 11992 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11993 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11994 ;; 11995 icpc*) 11996 # Intel C++ 11997 with_gnu_ld=yes 11998 # version 8.0 and above of icpc choke on multiply defined symbols 11999 # if we add $predep_objects and $postdep_objects, however 7.1 and 12000 # earlier do not add the objects themselves. 12001 case `$CC -V 2>&1` in 12002 *"Version 7."*) 12003 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12004 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' 12005 ;; 12006 *) # Version 8.0 or newer 12007 tmp_idyn= 12008 case $host_cpu in 12009 ia64*) tmp_idyn=' -i_dynamic';; 12010 esac 12011 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12012 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' 12013 ;; 12014 esac 12015 archive_cmds_need_lc_CXX=no 12016 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12017 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12018 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12019 ;; 12020 pgCC*) 12021 # Portland Group C++ compiler 12022 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12023 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' 12024 12025 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12026 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12027 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' 12028 ;; 12029 cxx*) 12030 # Compaq C++ 12031 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12032 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' 12033 12034 runpath_var=LD_RUN_PATH 12035 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12036 hardcode_libdir_separator_CXX=: 12037 12038 # Commands to make compiler produce verbose output that lists 12039 # what "hidden" libraries, object files and flags are used when 12040 # linking a shared library. 12041 # 12042 # There doesn't appear to be a way to prevent this compiler from 12043 # explicitly linking system object files so we need to strip them 12044 # from the output so that they don't get included in the library 12045 # dependencies. 12046 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' 12047 ;; 12048 esac 12049 ;; 12050 lynxos*) 12051 # FIXME: insert proper C++ library support 12052 ld_shlibs_CXX=no 12053 ;; 12054 m88k*) 12055 # FIXME: insert proper C++ library support 12056 ld_shlibs_CXX=no 12057 ;; 12058 mvs*) 12059 case $cc_basename in 12060 cxx*) 12061 # FIXME: insert proper C++ library support 12062 ld_shlibs_CXX=no 12063 ;; 12064 *) 12065 # FIXME: insert proper C++ library support 12066 ld_shlibs_CXX=no 12067 ;; 12068 esac 12069 ;; 12070 netbsd*) 12071 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12072 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12073 wlarc= 12074 hardcode_libdir_flag_spec_CXX='-R$libdir' 12075 hardcode_direct_CXX=yes 12076 hardcode_shlibpath_var_CXX=no 12077 fi 12078 # Workaround some broken pre-1.5 toolchains 12079 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12080 ;; 12081 openbsd2*) 12082 # C++ shared libraries are fairly broken 12083 ld_shlibs_CXX=no 12084 ;; 12085 openbsd*) 12086 hardcode_direct_CXX=yes 12087 hardcode_shlibpath_var_CXX=no 12088 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12089 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12090 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12091 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12092 export_dynamic_flag_spec_CXX='${wl}-E' 12093 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12094 fi 12095 output_verbose_link_cmd='echo' 12096 ;; 12097 osf3*) 12098 case $cc_basename in 12099 KCC*) 12100 # Kuck and Associates, Inc. (KAI) C++ Compiler 12101 12102 # KCC will only create a shared library if the output file 12103 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12104 # to its proper name (with version) after linking. 12105 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' 12106 12107 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12108 hardcode_libdir_separator_CXX=: 12109 12110 # Archives containing C++ object files must be created using 12111 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12112 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12113 12114 ;; 12115 RCC*) 12116 # Rational C++ 2.4.1 12117 # FIXME: insert proper C++ library support 12118 ld_shlibs_CXX=no 12119 ;; 12120 cxx*) 12121 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12122 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' 12123 12124 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12125 hardcode_libdir_separator_CXX=: 12126 12127 # Commands to make compiler produce verbose output that lists 12128 # what "hidden" libraries, object files and flags are used when 12129 # linking a shared library. 12130 # 12131 # There doesn't appear to be a way to prevent this compiler from 12132 # explicitly linking system object files so we need to strip them 12133 # from the output so that they don't get included in the library 12134 # dependencies. 12135 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' 12136 ;; 12137 *) 12138 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12139 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12140 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' 12141 12142 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12143 hardcode_libdir_separator_CXX=: 12144 12145 # Commands to make compiler produce verbose output that lists 12146 # what "hidden" libraries, object files and flags are used when 12147 # linking a shared library. 12148 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12149 12150 else 12151 # FIXME: insert proper C++ library support 12152 ld_shlibs_CXX=no 12153 fi 12154 ;; 12155 esac 12156 ;; 12157 osf4* | osf5*) 12158 case $cc_basename in 12159 KCC*) 12160 # Kuck and Associates, Inc. (KAI) C++ Compiler 12161 12162 # KCC will only create a shared library if the output file 12163 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12164 # to its proper name (with version) after linking. 12165 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' 12166 12167 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12168 hardcode_libdir_separator_CXX=: 12169 12170 # Archives containing C++ object files must be created using 12171 # the KAI C++ compiler. 12172 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 12173 ;; 12174 RCC*) 12175 # Rational C++ 2.4.1 12176 # FIXME: insert proper C++ library support 12177 ld_shlibs_CXX=no 12178 ;; 12179 cxx*) 12180 allow_undefined_flag_CXX=' -expect_unresolved \*' 12181 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' 12182 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12183 echo "-hidden">> $lib.exp~ 12184 $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~ 12185 $rm $lib.exp' 12186 12187 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12188 hardcode_libdir_separator_CXX=: 12189 12190 # Commands to make compiler produce verbose output that lists 12191 # what "hidden" libraries, object files and flags are used when 12192 # linking a shared library. 12193 # 12194 # There doesn't appear to be a way to prevent this compiler from 12195 # explicitly linking system object files so we need to strip them 12196 # from the output so that they don't get included in the library 12197 # dependencies. 12198 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' 12199 ;; 12200 *) 12201 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12202 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12203 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' 12204 12205 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12206 hardcode_libdir_separator_CXX=: 12207 12208 # Commands to make compiler produce verbose output that lists 12209 # what "hidden" libraries, object files and flags are used when 12210 # linking a shared library. 12211 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12212 12213 else 12214 # FIXME: insert proper C++ library support 12215 ld_shlibs_CXX=no 12216 fi 12217 ;; 12218 esac 12219 ;; 12220 psos*) 12221 # FIXME: insert proper C++ library support 12222 ld_shlibs_CXX=no 12223 ;; 12224 sunos4*) 12225 case $cc_basename in 12226 CC*) 12227 # Sun C++ 4.x 12228 # FIXME: insert proper C++ library support 12229 ld_shlibs_CXX=no 12230 ;; 12231 lcc*) 12232 # Lucid 12233 # FIXME: insert proper C++ library support 12234 ld_shlibs_CXX=no 12235 ;; 12236 *) 12237 # FIXME: insert proper C++ library support 12238 ld_shlibs_CXX=no 12239 ;; 12240 esac 12241 ;; 12242 solaris*) 12243 case $cc_basename in 12244 CC*) 12245 # Sun C++ 4.2, 5.x and Centerline C++ 12246 archive_cmds_need_lc_CXX=yes 12247 no_undefined_flag_CXX=' -zdefs' 12248 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12249 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12250 $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' 12251 12252 hardcode_libdir_flag_spec_CXX='-R$libdir' 12253 hardcode_shlibpath_var_CXX=no 12254 case $host_os in 12255 solaris2.[0-5] | solaris2.[0-5].*) ;; 12256 *) 12257 # The C++ compiler is used as linker so we must use $wl 12258 # flag to pass the commands to the underlying system 12259 # linker. We must also pass each convience library through 12260 # to the system linker between allextract/defaultextract. 12261 # The C++ compiler will combine linker options so we 12262 # cannot just pass the convience library names through 12263 # without $wl. 12264 # Supported since Solaris 2.6 (maybe 2.5.1?) 12265 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' 12266 ;; 12267 esac 12268 link_all_deplibs_CXX=yes 12269 12270 output_verbose_link_cmd='echo' 12271 12272 # Archives containing C++ object files must be created using 12273 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12274 # necessary to make sure instantiated templates are included 12275 # in the archive. 12276 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12277 ;; 12278 gcx*) 12279 # Green Hills C++ Compiler 12280 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12281 12282 # The C++ compiler must be used to create the archive. 12283 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12284 ;; 12285 *) 12286 # GNU C++ compiler with Solaris linker 12287 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12288 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12289 if $CC --version | grep -v '^2\.7' > /dev/null; then 12290 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12291 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12292 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12293 12294 # Commands to make compiler produce verbose output that lists 12295 # what "hidden" libraries, object files and flags are used when 12296 # linking a shared library. 12297 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12298 else 12299 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12300 # platform. 12301 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12302 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12303 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12304 12305 # Commands to make compiler produce verbose output that lists 12306 # what "hidden" libraries, object files and flags are used when 12307 # linking a shared library. 12308 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12309 fi 12310 12311 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12312 fi 12313 ;; 12314 esac 12315 ;; 12316 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12317 no_undefined_flag_CXX='${wl}-z,text' 12318 archive_cmds_need_lc_CXX=no 12319 hardcode_shlibpath_var_CXX=no 12320 runpath_var='LD_RUN_PATH' 12321 12322 case $cc_basename in 12323 CC*) 12324 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12325 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12326 ;; 12327 *) 12328 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12329 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12330 ;; 12331 esac 12332 ;; 12333 sysv5* | sco3.2v5* | sco5v6*) 12334 # Note: We can NOT use -z defs as we might desire, because we do not 12335 # link with -lc, and that would cause any symbols used from libc to 12336 # always be unresolved, which means just about no library would 12337 # ever link correctly. If we're not using GNU ld we use -z text 12338 # though, which does catch some bad symbols but isn't as heavy-handed 12339 # as -z defs. 12340 # For security reasons, it is highly recommended that you always 12341 # use absolute paths for naming shared libraries, and exclude the 12342 # DT_RUNPATH tag from executables and libraries. But doing so 12343 # requires that you compile everything twice, which is a pain. 12344 # So that behaviour is only enabled if SCOABSPATH is set to a 12345 # non-empty value in the environment. Most likely only useful for 12346 # creating official distributions of packages. 12347 # This is a hack until libtool officially supports absolute path 12348 # names for shared libraries. 12349 no_undefined_flag_CXX='${wl}-z,text' 12350 allow_undefined_flag_CXX='${wl}-z,nodefs' 12351 archive_cmds_need_lc_CXX=no 12352 hardcode_shlibpath_var_CXX=no 12353 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 12354 hardcode_libdir_separator_CXX=':' 12355 link_all_deplibs_CXX=yes 12356 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12357 runpath_var='LD_RUN_PATH' 12358 12359 case $cc_basename in 12360 CC*) 12361 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12362 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12363 ;; 12364 *) 12365 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12366 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12367 ;; 12368 esac 12369 ;; 12370 tandem*) 12371 case $cc_basename in 12372 NCC*) 12373 # NonStop-UX NCC 3.20 12374 # FIXME: insert proper C++ library support 12375 ld_shlibs_CXX=no 12376 ;; 12377 *) 12378 # FIXME: insert proper C++ library support 12379 ld_shlibs_CXX=no 12380 ;; 12381 esac 12382 ;; 12383 vxworks*) 12384 # FIXME: insert proper C++ library support 12385 ld_shlibs_CXX=no 12386 ;; 12387 *) 12388 # FIXME: insert proper C++ library support 12389 ld_shlibs_CXX=no 12390 ;; 12391esac 12392{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12393echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12394test "$ld_shlibs_CXX" = no && can_build_shared=no 12395 12396GCC_CXX="$GXX" 12397LD_CXX="$LD" 12398 12399 12400cat > conftest.$ac_ext <<EOF 12401class Foo 12402{ 12403public: 12404 Foo (void) { a = 0; } 12405private: 12406 int a; 12407}; 12408EOF 12409 12410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12411 (eval $ac_compile) 2>&5 12412 ac_status=$? 12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12414 (exit $ac_status); }; then 12415 # Parse the compiler output and extract the necessary 12416 # objects, libraries and library flags. 12417 12418 # Sentinel used to keep track of whether or not we are before 12419 # the conftest object file. 12420 pre_test_object_deps_done=no 12421 12422 # The `*' in the case matches for architectures that use `case' in 12423 # $output_verbose_cmd can trigger glob expansion during the loop 12424 # eval without this substitution. 12425 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 12426 12427 for p in `eval $output_verbose_link_cmd`; do 12428 case $p in 12429 12430 -L* | -R* | -l*) 12431 # Some compilers place space between "-{L,R}" and the path. 12432 # Remove the space. 12433 if test $p = "-L" \ 12434 || test $p = "-R"; then 12435 prev=$p 12436 continue 12437 else 12438 prev= 12439 fi 12440 12441 if test "$pre_test_object_deps_done" = no; then 12442 case $p in 12443 -L* | -R*) 12444 # Internal compiler library paths should come after those 12445 # provided the user. The postdeps already come after the 12446 # user supplied libs so there is no need to process them. 12447 if test -z "$compiler_lib_search_path_CXX"; then 12448 compiler_lib_search_path_CXX="${prev}${p}" 12449 else 12450 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12451 fi 12452 ;; 12453 # The "-l" case would never come before the object being 12454 # linked, so don't bother handling this case. 12455 esac 12456 else 12457 if test -z "$postdeps_CXX"; then 12458 postdeps_CXX="${prev}${p}" 12459 else 12460 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12461 fi 12462 fi 12463 ;; 12464 12465 *.$objext) 12466 # This assumes that the test object file only shows up 12467 # once in the compiler output. 12468 if test "$p" = "conftest.$objext"; then 12469 pre_test_object_deps_done=yes 12470 continue 12471 fi 12472 12473 if test "$pre_test_object_deps_done" = no; then 12474 if test -z "$predep_objects_CXX"; then 12475 predep_objects_CXX="$p" 12476 else 12477 predep_objects_CXX="$predep_objects_CXX $p" 12478 fi 12479 else 12480 if test -z "$postdep_objects_CXX"; then 12481 postdep_objects_CXX="$p" 12482 else 12483 postdep_objects_CXX="$postdep_objects_CXX $p" 12484 fi 12485 fi 12486 ;; 12487 12488 *) ;; # Ignore the rest. 12489 12490 esac 12491 done 12492 12493 # Clean up. 12494 rm -f a.out a.exe 12495else 12496 echo "libtool.m4: error: problem compiling CXX test program" 12497fi 12498 12499$rm -f confest.$objext 12500 12501# PORTME: override above test on systems where it is broken 12502case $host_os in 12503interix3*) 12504 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12505 # hack all around it, let's just trust "g++" to DTRT. 12506 predep_objects_CXX= 12507 postdep_objects_CXX= 12508 postdeps_CXX= 12509 ;; 12510 12511solaris*) 12512 case $cc_basename in 12513 CC*) 12514 # Adding this requires a known-good setup of shared libraries for 12515 # Sun compiler versions before 5.6, else PIC objects from an old 12516 # archive will be linked into the output, leading to subtle bugs. 12517 postdeps_CXX='-lCstd -lCrun' 12518 ;; 12519 esac 12520 ;; 12521esac 12522 12523 12524case " $postdeps_CXX " in 12525*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12526esac 12527 12528lt_prog_compiler_wl_CXX= 12529lt_prog_compiler_pic_CXX= 12530lt_prog_compiler_static_CXX= 12531 12532{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12533echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 12534 12535 # C++ specific cases for pic, static, wl, etc. 12536 if test "$GXX" = yes; then 12537 lt_prog_compiler_wl_CXX='-Wl,' 12538 lt_prog_compiler_static_CXX='-static' 12539 12540 case $host_os in 12541 aix*) 12542 # All AIX code is PIC. 12543 if test "$host_cpu" = ia64; then 12544 # AIX 5 now supports IA64 processor 12545 lt_prog_compiler_static_CXX='-Bstatic' 12546 fi 12547 ;; 12548 amigaos*) 12549 # FIXME: we need at least 68020 code to build shared libraries, but 12550 # adding the `-m68020' flag to GCC prevents building anything better, 12551 # like `-m68040'. 12552 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12553 ;; 12554 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12555 # PIC is the default for these OSes. 12556 ;; 12557 mingw* | os2* | pw32*) 12558 # This hack is so that the source file can tell whether it is being 12559 # built for inclusion in a dll (and should export symbols for example). 12560 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12561 ;; 12562 darwin* | rhapsody*) 12563 # PIC is the default on this platform 12564 # Common symbols not allowed in MH_DYLIB files 12565 lt_prog_compiler_pic_CXX='-fno-common' 12566 ;; 12567 *djgpp*) 12568 # DJGPP does not support shared libraries at all 12569 lt_prog_compiler_pic_CXX= 12570 ;; 12571 interix3*) 12572 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12573 # Instead, we relocate shared libraries at runtime. 12574 ;; 12575 sysv4*MP*) 12576 if test -d /usr/nec; then 12577 lt_prog_compiler_pic_CXX=-Kconform_pic 12578 fi 12579 ;; 12580 hpux*) 12581 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12582 # not for PA HP-UX. 12583 case $host_cpu in 12584 hppa*64*|ia64*) 12585 ;; 12586 *) 12587 lt_prog_compiler_pic_CXX='-fPIC' 12588 ;; 12589 esac 12590 ;; 12591 *) 12592 lt_prog_compiler_pic_CXX='-fPIC' 12593 ;; 12594 esac 12595 else 12596 case $host_os in 12597 aix4* | aix5*) 12598 # All AIX code is PIC. 12599 if test "$host_cpu" = ia64; then 12600 # AIX 5 now supports IA64 processor 12601 lt_prog_compiler_static_CXX='-Bstatic' 12602 else 12603 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12604 fi 12605 ;; 12606 chorus*) 12607 case $cc_basename in 12608 cxch68*) 12609 # Green Hills C++ Compiler 12610 # _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" 12611 ;; 12612 esac 12613 ;; 12614 darwin*) 12615 # PIC is the default on this platform 12616 # Common symbols not allowed in MH_DYLIB files 12617 case $cc_basename in 12618 xlc*) 12619 lt_prog_compiler_pic_CXX='-qnocommon' 12620 lt_prog_compiler_wl_CXX='-Wl,' 12621 ;; 12622 esac 12623 ;; 12624 dgux*) 12625 case $cc_basename in 12626 ec++*) 12627 lt_prog_compiler_pic_CXX='-KPIC' 12628 ;; 12629 ghcx*) 12630 # Green Hills C++ Compiler 12631 lt_prog_compiler_pic_CXX='-pic' 12632 ;; 12633 *) 12634 ;; 12635 esac 12636 ;; 12637 freebsd* | kfreebsd*-gnu | dragonfly*) 12638 # FreeBSD uses GNU C++ 12639 ;; 12640 hpux9* | hpux10* | hpux11*) 12641 case $cc_basename in 12642 CC*) 12643 lt_prog_compiler_wl_CXX='-Wl,' 12644 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12645 if test "$host_cpu" != ia64; then 12646 lt_prog_compiler_pic_CXX='+Z' 12647 fi 12648 ;; 12649 aCC*) 12650 lt_prog_compiler_wl_CXX='-Wl,' 12651 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12652 case $host_cpu in 12653 hppa*64*|ia64*) 12654 # +Z the default 12655 ;; 12656 *) 12657 lt_prog_compiler_pic_CXX='+Z' 12658 ;; 12659 esac 12660 ;; 12661 *) 12662 ;; 12663 esac 12664 ;; 12665 interix*) 12666 # This is c89, which is MS Visual C++ (no shared libs) 12667 # Anyone wants to do a port? 12668 ;; 12669 irix5* | irix6* | nonstopux*) 12670 case $cc_basename in 12671 CC*) 12672 lt_prog_compiler_wl_CXX='-Wl,' 12673 lt_prog_compiler_static_CXX='-non_shared' 12674 # CC pic flag -KPIC is the default. 12675 ;; 12676 *) 12677 ;; 12678 esac 12679 ;; 12680 linux*) 12681 case $cc_basename in 12682 KCC*) 12683 # KAI C++ Compiler 12684 lt_prog_compiler_wl_CXX='--backend -Wl,' 12685 lt_prog_compiler_pic_CXX='-fPIC' 12686 ;; 12687 icpc* | ecpc*) 12688 # Intel C++ 12689 lt_prog_compiler_wl_CXX='-Wl,' 12690 lt_prog_compiler_pic_CXX='-KPIC' 12691 lt_prog_compiler_static_CXX='-static' 12692 ;; 12693 pgCC*) 12694 # Portland Group C++ compiler. 12695 lt_prog_compiler_wl_CXX='-Wl,' 12696 lt_prog_compiler_pic_CXX='-fpic' 12697 lt_prog_compiler_static_CXX='-Bstatic' 12698 ;; 12699 cxx*) 12700 # Compaq C++ 12701 # Make sure the PIC flag is empty. It appears that all Alpha 12702 # Linux and Compaq Tru64 Unix objects are PIC. 12703 lt_prog_compiler_pic_CXX= 12704 lt_prog_compiler_static_CXX='-non_shared' 12705 ;; 12706 *) 12707 ;; 12708 esac 12709 ;; 12710 lynxos*) 12711 ;; 12712 m88k*) 12713 ;; 12714 mvs*) 12715 case $cc_basename in 12716 cxx*) 12717 lt_prog_compiler_pic_CXX='-W c,exportall' 12718 ;; 12719 *) 12720 ;; 12721 esac 12722 ;; 12723 netbsd*) 12724 ;; 12725 osf3* | osf4* | osf5*) 12726 case $cc_basename in 12727 KCC*) 12728 lt_prog_compiler_wl_CXX='--backend -Wl,' 12729 ;; 12730 RCC*) 12731 # Rational C++ 2.4.1 12732 lt_prog_compiler_pic_CXX='-pic' 12733 ;; 12734 cxx*) 12735 # Digital/Compaq C++ 12736 lt_prog_compiler_wl_CXX='-Wl,' 12737 # Make sure the PIC flag is empty. It appears that all Alpha 12738 # Linux and Compaq Tru64 Unix objects are PIC. 12739 lt_prog_compiler_pic_CXX= 12740 lt_prog_compiler_static_CXX='-non_shared' 12741 ;; 12742 *) 12743 ;; 12744 esac 12745 ;; 12746 psos*) 12747 ;; 12748 solaris*) 12749 case $cc_basename in 12750 CC*) 12751 # Sun C++ 4.2, 5.x and Centerline C++ 12752 lt_prog_compiler_pic_CXX='-KPIC' 12753 lt_prog_compiler_static_CXX='-Bstatic' 12754 lt_prog_compiler_wl_CXX='-Qoption ld ' 12755 ;; 12756 gcx*) 12757 # Green Hills C++ Compiler 12758 lt_prog_compiler_pic_CXX='-PIC' 12759 ;; 12760 *) 12761 ;; 12762 esac 12763 ;; 12764 sunos4*) 12765 case $cc_basename in 12766 CC*) 12767 # Sun C++ 4.x 12768 lt_prog_compiler_pic_CXX='-pic' 12769 lt_prog_compiler_static_CXX='-Bstatic' 12770 ;; 12771 lcc*) 12772 # Lucid 12773 lt_prog_compiler_pic_CXX='-pic' 12774 ;; 12775 *) 12776 ;; 12777 esac 12778 ;; 12779 tandem*) 12780 case $cc_basename in 12781 NCC*) 12782 # NonStop-UX NCC 3.20 12783 lt_prog_compiler_pic_CXX='-KPIC' 12784 ;; 12785 *) 12786 ;; 12787 esac 12788 ;; 12789 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12790 case $cc_basename in 12791 CC*) 12792 lt_prog_compiler_wl_CXX='-Wl,' 12793 lt_prog_compiler_pic_CXX='-KPIC' 12794 lt_prog_compiler_static_CXX='-Bstatic' 12795 ;; 12796 esac 12797 ;; 12798 vxworks*) 12799 ;; 12800 *) 12801 lt_prog_compiler_can_build_shared_CXX=no 12802 ;; 12803 esac 12804 fi 12805 12806{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12807echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 12808 12809# 12810# Check to make sure the PIC flag actually works. 12811# 12812if test -n "$lt_prog_compiler_pic_CXX"; then 12813 12814{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12815echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 12816if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 12817 echo $ECHO_N "(cached) $ECHO_C" >&6 12818else 12819 lt_prog_compiler_pic_works_CXX=no 12820 ac_outfile=conftest.$ac_objext 12821 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12822 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12823 # Insert the option either (1) after the last *FLAGS variable, or 12824 # (2) before a word containing "conftest.", or (3) at the end. 12825 # Note that $ac_compile itself does not contain backslashes and begins 12826 # with a dollar sign (not a hyphen), so the echo should work correctly. 12827 # The option is referenced via a variable to avoid confusing sed. 12828 lt_compile=`echo "$ac_compile" | $SED \ 12829 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12830 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12831 -e 's:$: $lt_compiler_flag:'` 12832 (eval echo "\"\$as_me:12832: $lt_compile\"" >&5) 12833 (eval "$lt_compile" 2>conftest.err) 12834 ac_status=$? 12835 cat conftest.err >&5 12836 echo "$as_me:12836: \$? = $ac_status" >&5 12837 if (exit $ac_status) && test -s "$ac_outfile"; then 12838 # The compiler can only warn and ignore the option if not recognized 12839 # So say no if there are warnings other than the usual output. 12840 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12841 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12842 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12843 lt_prog_compiler_pic_works_CXX=yes 12844 fi 12845 fi 12846 $rm conftest* 12847 12848fi 12849{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 12850echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } 12851 12852if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 12853 case $lt_prog_compiler_pic_CXX in 12854 "" | " "*) ;; 12855 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12856 esac 12857else 12858 lt_prog_compiler_pic_CXX= 12859 lt_prog_compiler_can_build_shared_CXX=no 12860fi 12861 12862fi 12863case $host_os in 12864 # For platforms which do not support PIC, -DPIC is meaningless: 12865 *djgpp*) 12866 lt_prog_compiler_pic_CXX= 12867 ;; 12868 *) 12869 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12870 ;; 12871esac 12872 12873# 12874# Check to make sure the static flag actually works. 12875# 12876wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12877{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12878echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 12879if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 12880 echo $ECHO_N "(cached) $ECHO_C" >&6 12881else 12882 lt_prog_compiler_static_works_CXX=no 12883 save_LDFLAGS="$LDFLAGS" 12884 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12885 printf "$lt_simple_link_test_code" > conftest.$ac_ext 12886 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12887 # The linker can only warn and ignore the option if not recognized 12888 # So say no if there are warnings 12889 if test -s conftest.err; then 12890 # Append any errors to the config.log. 12891 cat conftest.err 1>&5 12892 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12893 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12894 if diff conftest.exp conftest.er2 >/dev/null; then 12895 lt_prog_compiler_static_works_CXX=yes 12896 fi 12897 else 12898 lt_prog_compiler_static_works_CXX=yes 12899 fi 12900 fi 12901 $rm conftest* 12902 LDFLAGS="$save_LDFLAGS" 12903 12904fi 12905{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 12906echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } 12907 12908if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 12909 : 12910else 12911 lt_prog_compiler_static_CXX= 12912fi 12913 12914 12915{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12916echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 12917if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12918 echo $ECHO_N "(cached) $ECHO_C" >&6 12919else 12920 lt_cv_prog_compiler_c_o_CXX=no 12921 $rm -r conftest 2>/dev/null 12922 mkdir conftest 12923 cd conftest 12924 mkdir out 12925 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12926 12927 lt_compiler_flag="-o out/conftest2.$ac_objext" 12928 # Insert the option either (1) after the last *FLAGS variable, or 12929 # (2) before a word containing "conftest.", or (3) at the end. 12930 # Note that $ac_compile itself does not contain backslashes and begins 12931 # with a dollar sign (not a hyphen), so the echo should work correctly. 12932 lt_compile=`echo "$ac_compile" | $SED \ 12933 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12934 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12935 -e 's:$: $lt_compiler_flag:'` 12936 (eval echo "\"\$as_me:12936: $lt_compile\"" >&5) 12937 (eval "$lt_compile" 2>out/conftest.err) 12938 ac_status=$? 12939 cat out/conftest.err >&5 12940 echo "$as_me:12940: \$? = $ac_status" >&5 12941 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12942 then 12943 # The compiler can only warn and ignore the option if not recognized 12944 # So say no if there are warnings 12945 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12946 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12947 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12948 lt_cv_prog_compiler_c_o_CXX=yes 12949 fi 12950 fi 12951 chmod u+w . 2>&5 12952 $rm conftest* 12953 # SGI C++ compiler will create directory out/ii_files/ for 12954 # template instantiation 12955 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12956 $rm out/* && rmdir out 12957 cd .. 12958 rmdir conftest 12959 $rm conftest* 12960 12961fi 12962{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12963echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 12964 12965 12966hard_links="nottested" 12967if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12968 # do not overwrite the value of need_locks provided by the user 12969 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12970echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 12971 hard_links=yes 12972 $rm conftest* 12973 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12974 touch conftest.a 12975 ln conftest.a conftest.b 2>&5 || hard_links=no 12976 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12977 { echo "$as_me:$LINENO: result: $hard_links" >&5 12978echo "${ECHO_T}$hard_links" >&6; } 12979 if test "$hard_links" = no; then 12980 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12981echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12982 need_locks=warn 12983 fi 12984else 12985 need_locks=no 12986fi 12987 12988{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12989echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 12990 12991 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12992 case $host_os in 12993 aix4* | aix5*) 12994 # If we're using GNU nm, then we don't want the "-C" option. 12995 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12996 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12997 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' 12998 else 12999 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' 13000 fi 13001 ;; 13002 pw32*) 13003 export_symbols_cmds_CXX="$ltdll_cmds" 13004 ;; 13005 cygwin* | mingw*) 13006 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' 13007 ;; 13008 *) 13009 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13010 ;; 13011 esac 13012 13013{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 13014echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 13015test "$ld_shlibs_CXX" = no && can_build_shared=no 13016 13017# 13018# Do we need to explicitly link libc? 13019# 13020case "x$archive_cmds_need_lc_CXX" in 13021x|xyes) 13022 # Assume -lc should be added 13023 archive_cmds_need_lc_CXX=yes 13024 13025 if test "$enable_shared" = yes && test "$GCC" = yes; then 13026 case $archive_cmds_CXX in 13027 *'~'*) 13028 # FIXME: we may have to deal with multi-command sequences. 13029 ;; 13030 '$CC '*) 13031 # Test whether the compiler implicitly links with -lc since on some 13032 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13033 # to ld, don't add -lc before -lgcc. 13034 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 13035echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 13036 $rm conftest* 13037 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13038 13039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13040 (eval $ac_compile) 2>&5 13041 ac_status=$? 13042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13043 (exit $ac_status); } 2>conftest.err; then 13044 soname=conftest 13045 lib=conftest 13046 libobjs=conftest.$ac_objext 13047 deplibs= 13048 wl=$lt_prog_compiler_wl_CXX 13049 pic_flag=$lt_prog_compiler_pic_CXX 13050 compiler_flags=-v 13051 linker_flags=-v 13052 verstring= 13053 output_objdir=. 13054 libname=conftest 13055 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 13056 allow_undefined_flag_CXX= 13057 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 13058 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 13059 ac_status=$? 13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13061 (exit $ac_status); } 13062 then 13063 archive_cmds_need_lc_CXX=no 13064 else 13065 archive_cmds_need_lc_CXX=yes 13066 fi 13067 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 13068 else 13069 cat conftest.err 1>&5 13070 fi 13071 $rm conftest* 13072 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 13073echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 13074 ;; 13075 esac 13076 fi 13077 ;; 13078esac 13079 13080{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 13081echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 13082library_names_spec= 13083libname_spec='lib$name' 13084soname_spec= 13085shrext_cmds=".so" 13086postinstall_cmds= 13087postuninstall_cmds= 13088finish_cmds= 13089finish_eval= 13090shlibpath_var= 13091shlibpath_overrides_runpath=unknown 13092version_type=none 13093dynamic_linker="$host_os ld.so" 13094sys_lib_dlsearch_path_spec="/lib /usr/lib" 13095if test "$GCC" = yes; then 13096 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13097 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 13098 # if the path contains ";" then we assume it to be the separator 13099 # otherwise default to the standard path separator (i.e. ":") - it is 13100 # assumed that no part of a normal pathname contains ";" but that should 13101 # okay in the real world where ";" in dirpaths is itself problematic. 13102 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13103 else 13104 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13105 fi 13106else 13107 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13108fi 13109need_lib_prefix=unknown 13110hardcode_into_libs=no 13111 13112# when you set need_version to no, make sure it does not cause -set_version 13113# flags to be left without arguments 13114need_version=unknown 13115 13116case $host_os in 13117aix3*) 13118 version_type=linux 13119 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13120 shlibpath_var=LIBPATH 13121 13122 # AIX 3 has no versioning support, so we append a major version to the name. 13123 soname_spec='${libname}${release}${shared_ext}$major' 13124 ;; 13125 13126aix4* | aix5*) 13127 version_type=linux 13128 need_lib_prefix=no 13129 need_version=no 13130 hardcode_into_libs=yes 13131 if test "$host_cpu" = ia64; then 13132 # AIX 5 supports IA64 13133 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13134 shlibpath_var=LD_LIBRARY_PATH 13135 else 13136 # With GCC up to 2.95.x, collect2 would create an import file 13137 # for dependence libraries. The import file would start with 13138 # the line `#! .'. This would cause the generated library to 13139 # depend on `.', always an invalid library. This was fixed in 13140 # development snapshots of GCC prior to 3.0. 13141 case $host_os in 13142 aix4 | aix4.[01] | aix4.[01].*) 13143 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13144 echo ' yes ' 13145 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13146 : 13147 else 13148 can_build_shared=no 13149 fi 13150 ;; 13151 esac 13152 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13153 # soname into executable. Probably we can add versioning support to 13154 # collect2, so additional links can be useful in future. 13155 if test "$aix_use_runtimelinking" = yes; then 13156 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13157 # instead of lib<name>.a to let people know that these are not 13158 # typical AIX shared libraries. 13159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13160 else 13161 # We preserve .a as extension for shared libraries through AIX4.2 13162 # and later when we are not doing run time linking. 13163 library_names_spec='${libname}${release}.a $libname.a' 13164 soname_spec='${libname}${release}${shared_ext}$major' 13165 fi 13166 shlibpath_var=LIBPATH 13167 fi 13168 ;; 13169 13170amigaos*) 13171 library_names_spec='$libname.ixlibrary $libname.a' 13172 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13173 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' 13174 ;; 13175 13176beos*) 13177 library_names_spec='${libname}${shared_ext}' 13178 dynamic_linker="$host_os ld.so" 13179 shlibpath_var=LIBRARY_PATH 13180 ;; 13181 13182bsdi[45]*) 13183 version_type=linux 13184 need_version=no 13185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13186 soname_spec='${libname}${release}${shared_ext}$major' 13187 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13188 shlibpath_var=LD_LIBRARY_PATH 13189 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13190 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13191 # the default ld.so.conf also contains /usr/contrib/lib and 13192 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13193 # libtool to hard-code these into programs 13194 ;; 13195 13196cygwin* | mingw* | pw32*) 13197 version_type=windows 13198 shrext_cmds=".dll" 13199 need_version=no 13200 need_lib_prefix=no 13201 13202 case $GCC,$host_os in 13203 yes,cygwin* | yes,mingw* | yes,pw32*) 13204 library_names_spec='$libname.dll.a' 13205 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13206 postinstall_cmds='base_file=`basename \${file}`~ 13207 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13208 dldir=$destdir/`dirname \$dlpath`~ 13209 test -d \$dldir || mkdir -p \$dldir~ 13210 $install_prog $dir/$dlname \$dldir/$dlname~ 13211 chmod a+x \$dldir/$dlname' 13212 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13213 dlpath=$dir/\$dldll~ 13214 $rm \$dlpath' 13215 shlibpath_overrides_runpath=yes 13216 13217 case $host_os in 13218 cygwin*) 13219 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13220 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13221 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13222 ;; 13223 mingw*) 13224 # MinGW DLLs use traditional 'lib' prefix 13225 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13226 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13227 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13228 # It is most probably a Windows format PATH printed by 13229 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13230 # path with ; separators, and with drive letters. We can handle the 13231 # drive letters (cygwin fileutils understands them), so leave them, 13232 # especially as we might pass files found there to a mingw objdump, 13233 # which wouldn't understand a cygwinified path. Ahh. 13234 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13235 else 13236 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13237 fi 13238 ;; 13239 pw32*) 13240 # pw32 DLLs use 'pw' prefix rather than 'lib' 13241 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13242 ;; 13243 esac 13244 ;; 13245 13246 *) 13247 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13248 ;; 13249 esac 13250 dynamic_linker='Win32 ld.exe' 13251 # FIXME: first we should search . and the directory the executable is in 13252 shlibpath_var=PATH 13253 ;; 13254 13255darwin* | rhapsody*) 13256 dynamic_linker="$host_os dyld" 13257 version_type=darwin 13258 need_lib_prefix=no 13259 need_version=no 13260 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13261 soname_spec='${libname}${release}${major}$shared_ext' 13262 shlibpath_overrides_runpath=yes 13263 shlibpath_var=DYLD_LIBRARY_PATH 13264 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13265 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 13266 if test "$GCC" = yes; then 13267 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 13268 else 13269 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 13270 fi 13271 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13272 ;; 13273 13274dgux*) 13275 version_type=linux 13276 need_lib_prefix=no 13277 need_version=no 13278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13279 soname_spec='${libname}${release}${shared_ext}$major' 13280 shlibpath_var=LD_LIBRARY_PATH 13281 ;; 13282 13283freebsd1*) 13284 dynamic_linker=no 13285 ;; 13286 13287kfreebsd*-gnu) 13288 version_type=linux 13289 need_lib_prefix=no 13290 need_version=no 13291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13292 soname_spec='${libname}${release}${shared_ext}$major' 13293 shlibpath_var=LD_LIBRARY_PATH 13294 shlibpath_overrides_runpath=no 13295 hardcode_into_libs=yes 13296 dynamic_linker='GNU ld.so' 13297 ;; 13298 13299freebsd* | dragonfly*) 13300 # DragonFly does not have aout. When/if they implement a new 13301 # versioning mechanism, adjust this. 13302 if test -x /usr/bin/objformat; then 13303 objformat=`/usr/bin/objformat` 13304 else 13305 case $host_os in 13306 freebsd[123]*) objformat=aout ;; 13307 *) objformat=elf ;; 13308 esac 13309 fi 13310 version_type=freebsd-$objformat 13311 case $version_type in 13312 freebsd-elf*) 13313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13314 need_version=no 13315 need_lib_prefix=no 13316 ;; 13317 freebsd-*) 13318 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13319 need_version=yes 13320 ;; 13321 esac 13322 shlibpath_var=LD_LIBRARY_PATH 13323 case $host_os in 13324 freebsd2*) 13325 shlibpath_overrides_runpath=yes 13326 ;; 13327 freebsd3.[01]* | freebsdelf3.[01]*) 13328 shlibpath_overrides_runpath=yes 13329 hardcode_into_libs=yes 13330 ;; 13331 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13332 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13333 shlibpath_overrides_runpath=no 13334 hardcode_into_libs=yes 13335 ;; 13336 freebsd*) # from 4.6 on 13337 shlibpath_overrides_runpath=yes 13338 hardcode_into_libs=yes 13339 ;; 13340 esac 13341 ;; 13342 13343gnu*) 13344 version_type=linux 13345 need_lib_prefix=no 13346 need_version=no 13347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13348 soname_spec='${libname}${release}${shared_ext}$major' 13349 shlibpath_var=LD_LIBRARY_PATH 13350 hardcode_into_libs=yes 13351 ;; 13352 13353hpux9* | hpux10* | hpux11*) 13354 # Give a soname corresponding to the major version so that dld.sl refuses to 13355 # link against other versions. 13356 version_type=sunos 13357 need_lib_prefix=no 13358 need_version=no 13359 case $host_cpu in 13360 ia64*) 13361 shrext_cmds='.so' 13362 hardcode_into_libs=yes 13363 dynamic_linker="$host_os dld.so" 13364 shlibpath_var=LD_LIBRARY_PATH 13365 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13367 soname_spec='${libname}${release}${shared_ext}$major' 13368 if test "X$HPUX_IA64_MODE" = X32; then 13369 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13370 else 13371 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13372 fi 13373 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13374 ;; 13375 hppa*64*) 13376 shrext_cmds='.sl' 13377 hardcode_into_libs=yes 13378 dynamic_linker="$host_os dld.sl" 13379 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13380 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13382 soname_spec='${libname}${release}${shared_ext}$major' 13383 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13384 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13385 ;; 13386 *) 13387 shrext_cmds='.sl' 13388 dynamic_linker="$host_os dld.sl" 13389 shlibpath_var=SHLIB_PATH 13390 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13392 soname_spec='${libname}${release}${shared_ext}$major' 13393 ;; 13394 esac 13395 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13396 postinstall_cmds='chmod 555 $lib' 13397 ;; 13398 13399interix3*) 13400 version_type=linux 13401 need_lib_prefix=no 13402 need_version=no 13403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13404 soname_spec='${libname}${release}${shared_ext}$major' 13405 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13406 shlibpath_var=LD_LIBRARY_PATH 13407 shlibpath_overrides_runpath=no 13408 hardcode_into_libs=yes 13409 ;; 13410 13411irix5* | irix6* | nonstopux*) 13412 case $host_os in 13413 nonstopux*) version_type=nonstopux ;; 13414 *) 13415 if test "$lt_cv_prog_gnu_ld" = yes; then 13416 version_type=linux 13417 else 13418 version_type=irix 13419 fi ;; 13420 esac 13421 need_lib_prefix=no 13422 need_version=no 13423 soname_spec='${libname}${release}${shared_ext}$major' 13424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13425 case $host_os in 13426 irix5* | nonstopux*) 13427 libsuff= shlibsuff= 13428 ;; 13429 *) 13430 case $LD in # libtool.m4 will add one of these switches to LD 13431 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13432 libsuff= shlibsuff= libmagic=32-bit;; 13433 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13434 libsuff=32 shlibsuff=N32 libmagic=N32;; 13435 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13436 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13437 *) libsuff= shlibsuff= libmagic=never-match;; 13438 esac 13439 ;; 13440 esac 13441 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13442 shlibpath_overrides_runpath=no 13443 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13444 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13445 hardcode_into_libs=yes 13446 ;; 13447 13448# No shared lib support for Linux oldld, aout, or coff. 13449linux*oldld* | linux*aout* | linux*coff*) 13450 dynamic_linker=no 13451 ;; 13452 13453# This must be Linux ELF. 13454linux*) 13455 version_type=linux 13456 need_lib_prefix=no 13457 need_version=no 13458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13459 soname_spec='${libname}${release}${shared_ext}$major' 13460 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13461 shlibpath_var=LD_LIBRARY_PATH 13462 shlibpath_overrides_runpath=no 13463 # This implies no fast_install, which is unacceptable. 13464 # Some rework will be needed to allow for fast_install 13465 # before this can be enabled. 13466 hardcode_into_libs=yes 13467 13468 # Append ld.so.conf contents to the search path 13469 if test -f /etc/ld.so.conf; then 13470 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 13471 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13472 fi 13473 13474 # We used to test for /lib/ld.so.1 and disable shared libraries on 13475 # powerpc, because MkLinux only supported shared libraries with the 13476 # GNU dynamic linker. Since this was broken with cross compilers, 13477 # most powerpc-linux boxes support dynamic linking these days and 13478 # people can always --disable-shared, the test was removed, and we 13479 # assume the GNU/Linux dynamic linker is in use. 13480 dynamic_linker='GNU/Linux ld.so' 13481 ;; 13482 13483knetbsd*-gnu) 13484 version_type=linux 13485 need_lib_prefix=no 13486 need_version=no 13487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13488 soname_spec='${libname}${release}${shared_ext}$major' 13489 shlibpath_var=LD_LIBRARY_PATH 13490 shlibpath_overrides_runpath=no 13491 hardcode_into_libs=yes 13492 dynamic_linker='GNU ld.so' 13493 ;; 13494 13495netbsd*) 13496 version_type=sunos 13497 need_lib_prefix=no 13498 need_version=no 13499 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13501 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13502 dynamic_linker='NetBSD (a.out) ld.so' 13503 else 13504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13505 soname_spec='${libname}${release}${shared_ext}$major' 13506 dynamic_linker='NetBSD ld.elf_so' 13507 fi 13508 shlibpath_var=LD_LIBRARY_PATH 13509 shlibpath_overrides_runpath=yes 13510 hardcode_into_libs=yes 13511 ;; 13512 13513newsos6) 13514 version_type=linux 13515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13516 shlibpath_var=LD_LIBRARY_PATH 13517 shlibpath_overrides_runpath=yes 13518 ;; 13519 13520nto-qnx*) 13521 version_type=linux 13522 need_lib_prefix=no 13523 need_version=no 13524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13525 soname_spec='${libname}${release}${shared_ext}$major' 13526 shlibpath_var=LD_LIBRARY_PATH 13527 shlibpath_overrides_runpath=yes 13528 ;; 13529 13530openbsd*) 13531 version_type=sunos 13532 sys_lib_dlsearch_path_spec="/usr/lib" 13533 need_lib_prefix=no 13534 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13535 case $host_os in 13536 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13537 *) need_version=no ;; 13538 esac 13539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13540 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13541 shlibpath_var=LD_LIBRARY_PATH 13542 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13543 case $host_os in 13544 openbsd2.[89] | openbsd2.[89].*) 13545 shlibpath_overrides_runpath=no 13546 ;; 13547 *) 13548 shlibpath_overrides_runpath=yes 13549 ;; 13550 esac 13551 else 13552 shlibpath_overrides_runpath=yes 13553 fi 13554 ;; 13555 13556os2*) 13557 libname_spec='$name' 13558 shrext_cmds=".dll" 13559 need_lib_prefix=no 13560 library_names_spec='$libname${shared_ext} $libname.a' 13561 dynamic_linker='OS/2 ld.exe' 13562 shlibpath_var=LIBPATH 13563 ;; 13564 13565osf3* | osf4* | osf5*) 13566 version_type=osf 13567 need_lib_prefix=no 13568 need_version=no 13569 soname_spec='${libname}${release}${shared_ext}$major' 13570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13571 shlibpath_var=LD_LIBRARY_PATH 13572 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13573 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13574 ;; 13575 13576solaris*) 13577 version_type=linux 13578 need_lib_prefix=no 13579 need_version=no 13580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13581 soname_spec='${libname}${release}${shared_ext}$major' 13582 shlibpath_var=LD_LIBRARY_PATH 13583 shlibpath_overrides_runpath=yes 13584 hardcode_into_libs=yes 13585 # ldd complains unless libraries are executable 13586 postinstall_cmds='chmod +x $lib' 13587 ;; 13588 13589sunos4*) 13590 version_type=sunos 13591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13592 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13593 shlibpath_var=LD_LIBRARY_PATH 13594 shlibpath_overrides_runpath=yes 13595 if test "$with_gnu_ld" = yes; then 13596 need_lib_prefix=no 13597 fi 13598 need_version=yes 13599 ;; 13600 13601sysv4 | sysv4.3*) 13602 version_type=linux 13603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13604 soname_spec='${libname}${release}${shared_ext}$major' 13605 shlibpath_var=LD_LIBRARY_PATH 13606 case $host_vendor in 13607 sni) 13608 shlibpath_overrides_runpath=no 13609 need_lib_prefix=no 13610 export_dynamic_flag_spec='${wl}-Blargedynsym' 13611 runpath_var=LD_RUN_PATH 13612 ;; 13613 siemens) 13614 need_lib_prefix=no 13615 ;; 13616 motorola) 13617 need_lib_prefix=no 13618 need_version=no 13619 shlibpath_overrides_runpath=no 13620 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13621 ;; 13622 esac 13623 ;; 13624 13625sysv4*MP*) 13626 if test -d /usr/nec ;then 13627 version_type=linux 13628 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13629 soname_spec='$libname${shared_ext}.$major' 13630 shlibpath_var=LD_LIBRARY_PATH 13631 fi 13632 ;; 13633 13634sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13635 version_type=freebsd-elf 13636 need_lib_prefix=no 13637 need_version=no 13638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13639 soname_spec='${libname}${release}${shared_ext}$major' 13640 shlibpath_var=LD_LIBRARY_PATH 13641 hardcode_into_libs=yes 13642 if test "$with_gnu_ld" = yes; then 13643 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13644 shlibpath_overrides_runpath=no 13645 else 13646 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13647 shlibpath_overrides_runpath=yes 13648 case $host_os in 13649 sco3.2v5*) 13650 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13651 ;; 13652 esac 13653 fi 13654 sys_lib_dlsearch_path_spec='/usr/lib' 13655 ;; 13656 13657uts4*) 13658 version_type=linux 13659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13660 soname_spec='${libname}${release}${shared_ext}$major' 13661 shlibpath_var=LD_LIBRARY_PATH 13662 ;; 13663 13664*) 13665 dynamic_linker=no 13666 ;; 13667esac 13668{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13669echo "${ECHO_T}$dynamic_linker" >&6; } 13670test "$dynamic_linker" = no && can_build_shared=no 13671 13672variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13673if test "$GCC" = yes; then 13674 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13675fi 13676 13677{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13678echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 13679hardcode_action_CXX= 13680if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13681 test -n "$runpath_var_CXX" || \ 13682 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13683 13684 # We can hardcode non-existant directories. 13685 if test "$hardcode_direct_CXX" != no && 13686 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13687 # have to relink, otherwise we might link with an installed library 13688 # when we should be linking with a yet-to-be-installed one 13689 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13690 test "$hardcode_minus_L_CXX" != no; then 13691 # Linking always hardcodes the temporary library directory. 13692 hardcode_action_CXX=relink 13693 else 13694 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13695 hardcode_action_CXX=immediate 13696 fi 13697else 13698 # We cannot hardcode anything, or else we can only hardcode existing 13699 # directories. 13700 hardcode_action_CXX=unsupported 13701fi 13702{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13703echo "${ECHO_T}$hardcode_action_CXX" >&6; } 13704 13705if test "$hardcode_action_CXX" = relink; then 13706 # Fast installation is not supported 13707 enable_fast_install=no 13708elif test "$shlibpath_overrides_runpath" = yes || 13709 test "$enable_shared" = no; then 13710 # Fast installation is not necessary 13711 enable_fast_install=needless 13712fi 13713 13714 13715# The else clause should only fire when bootstrapping the 13716# libtool distribution, otherwise you forgot to ship ltmain.sh 13717# with your package, and you will get complaints that there are 13718# no rules to generate ltmain.sh. 13719if test -f "$ltmain"; then 13720 # See if we are running on zsh, and set the options which allow our commands through 13721 # without removal of \ escapes. 13722 if test -n "${ZSH_VERSION+set}" ; then 13723 setopt NO_GLOB_SUBST 13724 fi 13725 # Now quote all the things that may contain metacharacters while being 13726 # careful not to overquote the AC_SUBSTed values. We take copies of the 13727 # variables and quote the copies for generation of the libtool script. 13728 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13729 SED SHELL STRIP \ 13730 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13731 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13732 deplibs_check_method reload_flag reload_cmds need_locks \ 13733 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13734 lt_cv_sys_global_symbol_to_c_name_address \ 13735 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13736 old_postinstall_cmds old_postuninstall_cmds \ 13737 compiler_CXX \ 13738 CC_CXX \ 13739 LD_CXX \ 13740 lt_prog_compiler_wl_CXX \ 13741 lt_prog_compiler_pic_CXX \ 13742 lt_prog_compiler_static_CXX \ 13743 lt_prog_compiler_no_builtin_flag_CXX \ 13744 export_dynamic_flag_spec_CXX \ 13745 thread_safe_flag_spec_CXX \ 13746 whole_archive_flag_spec_CXX \ 13747 enable_shared_with_static_runtimes_CXX \ 13748 old_archive_cmds_CXX \ 13749 old_archive_from_new_cmds_CXX \ 13750 predep_objects_CXX \ 13751 postdep_objects_CXX \ 13752 predeps_CXX \ 13753 postdeps_CXX \ 13754 compiler_lib_search_path_CXX \ 13755 archive_cmds_CXX \ 13756 archive_expsym_cmds_CXX \ 13757 postinstall_cmds_CXX \ 13758 postuninstall_cmds_CXX \ 13759 old_archive_from_expsyms_cmds_CXX \ 13760 allow_undefined_flag_CXX \ 13761 no_undefined_flag_CXX \ 13762 export_symbols_cmds_CXX \ 13763 hardcode_libdir_flag_spec_CXX \ 13764 hardcode_libdir_flag_spec_ld_CXX \ 13765 hardcode_libdir_separator_CXX \ 13766 hardcode_automatic_CXX \ 13767 module_cmds_CXX \ 13768 module_expsym_cmds_CXX \ 13769 lt_cv_prog_compiler_c_o_CXX \ 13770 exclude_expsyms_CXX \ 13771 include_expsyms_CXX; do 13772 13773 case $var in 13774 old_archive_cmds_CXX | \ 13775 old_archive_from_new_cmds_CXX | \ 13776 archive_cmds_CXX | \ 13777 archive_expsym_cmds_CXX | \ 13778 module_cmds_CXX | \ 13779 module_expsym_cmds_CXX | \ 13780 old_archive_from_expsyms_cmds_CXX | \ 13781 export_symbols_cmds_CXX | \ 13782 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13783 postinstall_cmds | postuninstall_cmds | \ 13784 old_postinstall_cmds | old_postuninstall_cmds | \ 13785 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13786 # Double-quote double-evaled strings. 13787 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13788 ;; 13789 *) 13790 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13791 ;; 13792 esac 13793 done 13794 13795 case $lt_echo in 13796 *'\$0 --fallback-echo"') 13797 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13798 ;; 13799 esac 13800 13801cfgfile="$ofile" 13802 13803 cat <<__EOF__ >> "$cfgfile" 13804# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13805 13806# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13807 13808# Shell to use when invoking shell scripts. 13809SHELL=$lt_SHELL 13810 13811# Whether or not to build shared libraries. 13812build_libtool_libs=$enable_shared 13813 13814# Whether or not to build static libraries. 13815build_old_libs=$enable_static 13816 13817# Whether or not to add -lc for building shared libraries. 13818build_libtool_need_lc=$archive_cmds_need_lc_CXX 13819 13820# Whether or not to disallow shared libs when runtime libs are static 13821allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13822 13823# Whether or not to optimize for fast installation. 13824fast_install=$enable_fast_install 13825 13826# The host system. 13827host_alias=$host_alias 13828host=$host 13829host_os=$host_os 13830 13831# The build system. 13832build_alias=$build_alias 13833build=$build 13834build_os=$build_os 13835 13836# An echo program that does not interpret backslashes. 13837echo=$lt_echo 13838 13839# The archiver. 13840AR=$lt_AR 13841AR_FLAGS=$lt_AR_FLAGS 13842 13843# A C compiler. 13844LTCC=$lt_LTCC 13845 13846# LTCC compiler flags. 13847LTCFLAGS=$lt_LTCFLAGS 13848 13849# A language-specific compiler. 13850CC=$lt_compiler_CXX 13851 13852# Is the compiler the GNU C compiler? 13853with_gcc=$GCC_CXX 13854 13855# An ERE matcher. 13856EGREP=$lt_EGREP 13857 13858# The linker used to build libraries. 13859LD=$lt_LD_CXX 13860 13861# Whether we need hard or soft links. 13862LN_S=$lt_LN_S 13863 13864# A BSD-compatible nm program. 13865NM=$lt_NM 13866 13867# A symbol stripping program 13868STRIP=$lt_STRIP 13869 13870# Used to examine libraries when file_magic_cmd begins "file" 13871MAGIC_CMD=$MAGIC_CMD 13872 13873# Used on cygwin: DLL creation program. 13874DLLTOOL="$DLLTOOL" 13875 13876# Used on cygwin: object dumper. 13877OBJDUMP="$OBJDUMP" 13878 13879# Used on cygwin: assembler. 13880AS="$AS" 13881 13882# The name of the directory that contains temporary libtool files. 13883objdir=$objdir 13884 13885# How to create reloadable object files. 13886reload_flag=$lt_reload_flag 13887reload_cmds=$lt_reload_cmds 13888 13889# How to pass a linker flag through the compiler. 13890wl=$lt_lt_prog_compiler_wl_CXX 13891 13892# Object file suffix (normally "o"). 13893objext="$ac_objext" 13894 13895# Old archive suffix (normally "a"). 13896libext="$libext" 13897 13898# Shared library suffix (normally ".so"). 13899shrext_cmds='$shrext_cmds' 13900 13901# Executable file suffix (normally ""). 13902exeext="$exeext" 13903 13904# Additional compiler flags for building library objects. 13905pic_flag=$lt_lt_prog_compiler_pic_CXX 13906pic_mode=$pic_mode 13907 13908# What is the maximum length of a command? 13909max_cmd_len=$lt_cv_sys_max_cmd_len 13910 13911# Does compiler simultaneously support -c and -o options? 13912compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13913 13914# Must we lock files when doing compilation? 13915need_locks=$lt_need_locks 13916 13917# Do we need the lib prefix for modules? 13918need_lib_prefix=$need_lib_prefix 13919 13920# Do we need a version for libraries? 13921need_version=$need_version 13922 13923# Whether dlopen is supported. 13924dlopen_support=$enable_dlopen 13925 13926# Whether dlopen of programs is supported. 13927dlopen_self=$enable_dlopen_self 13928 13929# Whether dlopen of statically linked programs is supported. 13930dlopen_self_static=$enable_dlopen_self_static 13931 13932# Compiler flag to prevent dynamic linking. 13933link_static_flag=$lt_lt_prog_compiler_static_CXX 13934 13935# Compiler flag to turn off builtin functions. 13936no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13937 13938# Compiler flag to allow reflexive dlopens. 13939export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13940 13941# Compiler flag to generate shared objects directly from archives. 13942whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13943 13944# Compiler flag to generate thread-safe objects. 13945thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13946 13947# Library versioning type. 13948version_type=$version_type 13949 13950# Format of library name prefix. 13951libname_spec=$lt_libname_spec 13952 13953# List of archive names. First name is the real one, the rest are links. 13954# The last name is the one that the linker finds with -lNAME. 13955library_names_spec=$lt_library_names_spec 13956 13957# The coded name of the library, if different from the real name. 13958soname_spec=$lt_soname_spec 13959 13960# Commands used to build and install an old-style archive. 13961RANLIB=$lt_RANLIB 13962old_archive_cmds=$lt_old_archive_cmds_CXX 13963old_postinstall_cmds=$lt_old_postinstall_cmds 13964old_postuninstall_cmds=$lt_old_postuninstall_cmds 13965 13966# Create an old-style archive from a shared archive. 13967old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13968 13969# Create a temporary old-style archive to link instead of a shared archive. 13970old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13971 13972# Commands used to build and install a shared archive. 13973archive_cmds=$lt_archive_cmds_CXX 13974archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13975postinstall_cmds=$lt_postinstall_cmds 13976postuninstall_cmds=$lt_postuninstall_cmds 13977 13978# Commands used to build a loadable module (assumed same as above if empty) 13979module_cmds=$lt_module_cmds_CXX 13980module_expsym_cmds=$lt_module_expsym_cmds_CXX 13981 13982# Commands to strip libraries. 13983old_striplib=$lt_old_striplib 13984striplib=$lt_striplib 13985 13986# Dependencies to place before the objects being linked to create a 13987# shared library. 13988predep_objects=$lt_predep_objects_CXX 13989 13990# Dependencies to place after the objects being linked to create a 13991# shared library. 13992postdep_objects=$lt_postdep_objects_CXX 13993 13994# Dependencies to place before the objects being linked to create a 13995# shared library. 13996predeps=$lt_predeps_CXX 13997 13998# Dependencies to place after the objects being linked to create a 13999# shared library. 14000postdeps=$lt_postdeps_CXX 14001 14002# The library search path used internally by the compiler when linking 14003# a shared library. 14004compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 14005 14006# Method to check whether dependent libraries are shared objects. 14007deplibs_check_method=$lt_deplibs_check_method 14008 14009# Command to use when deplibs_check_method == file_magic. 14010file_magic_cmd=$lt_file_magic_cmd 14011 14012# Flag that allows shared libraries with undefined symbols to be built. 14013allow_undefined_flag=$lt_allow_undefined_flag_CXX 14014 14015# Flag that forces no undefined symbols. 14016no_undefined_flag=$lt_no_undefined_flag_CXX 14017 14018# Commands used to finish a libtool library installation in a directory. 14019finish_cmds=$lt_finish_cmds 14020 14021# Same as above, but a single script fragment to be evaled but not shown. 14022finish_eval=$lt_finish_eval 14023 14024# Take the output of nm and produce a listing of raw symbols and C names. 14025global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14026 14027# Transform the output of nm in a proper C declaration 14028global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14029 14030# Transform the output of nm in a C name address pair 14031global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14032 14033# This is the shared library runtime path variable. 14034runpath_var=$runpath_var 14035 14036# This is the shared library path variable. 14037shlibpath_var=$shlibpath_var 14038 14039# Is shlibpath searched before the hard-coded library search path? 14040shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14041 14042# How to hardcode a shared library path into an executable. 14043hardcode_action=$hardcode_action_CXX 14044 14045# Whether we should hardcode library paths into libraries. 14046hardcode_into_libs=$hardcode_into_libs 14047 14048# Flag to hardcode \$libdir into a binary during linking. 14049# This must work even if \$libdir does not exist. 14050hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 14051 14052# If ld is used when linking, flag to hardcode \$libdir into 14053# a binary during linking. This must work even if \$libdir does 14054# not exist. 14055hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 14056 14057# Whether we need a single -rpath flag with a separated argument. 14058hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 14059 14060# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 14061# resulting binary. 14062hardcode_direct=$hardcode_direct_CXX 14063 14064# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 14065# resulting binary. 14066hardcode_minus_L=$hardcode_minus_L_CXX 14067 14068# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 14069# the resulting binary. 14070hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 14071 14072# Set to yes if building a shared library automatically hardcodes DIR into the library 14073# and all subsequent libraries and executables linked against it. 14074hardcode_automatic=$hardcode_automatic_CXX 14075 14076# Variables whose values should be saved in libtool wrapper scripts and 14077# restored at relink time. 14078variables_saved_for_relink="$variables_saved_for_relink" 14079 14080# Whether libtool must link a program against all its dependency libraries. 14081link_all_deplibs=$link_all_deplibs_CXX 14082 14083# Compile-time system search path for libraries 14084sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14085 14086# Run-time system search path for libraries 14087sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14088 14089# Fix the shell variable \$srcfile for the compiler. 14090fix_srcfile_path="$fix_srcfile_path_CXX" 14091 14092# Set to yes if exported symbols are required. 14093always_export_symbols=$always_export_symbols_CXX 14094 14095# The commands to list exported symbols. 14096export_symbols_cmds=$lt_export_symbols_cmds_CXX 14097 14098# The commands to extract the exported symbol list from a shared archive. 14099extract_expsyms_cmds=$lt_extract_expsyms_cmds 14100 14101# Symbols that should not be listed in the preloaded symbols. 14102exclude_expsyms=$lt_exclude_expsyms_CXX 14103 14104# Symbols that must always be exported. 14105include_expsyms=$lt_include_expsyms_CXX 14106 14107# ### END LIBTOOL TAG CONFIG: $tagname 14108 14109__EOF__ 14110 14111 14112else 14113 # If there is no Makefile yet, we rely on a make rule to execute 14114 # `config.status --recheck' to rerun these tests and create the 14115 # libtool script then. 14116 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 14117 if test -f "$ltmain_in"; then 14118 test -f Makefile && make "$ltmain" 14119 fi 14120fi 14121 14122 14123ac_ext=c 14124ac_cpp='$CPP $CPPFLAGS' 14125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14127ac_compiler_gnu=$ac_cv_c_compiler_gnu 14128 14129CC=$lt_save_CC 14130LDCXX=$LD 14131LD=$lt_save_LD 14132GCC=$lt_save_GCC 14133with_gnu_ldcxx=$with_gnu_ld 14134with_gnu_ld=$lt_save_with_gnu_ld 14135lt_cv_path_LDCXX=$lt_cv_path_LD 14136lt_cv_path_LD=$lt_save_path_LD 14137lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14138lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14139 14140 else 14141 tagname="" 14142 fi 14143 ;; 14144 14145 F77) 14146 if test -n "$F77" && test "X$F77" != "Xno"; then 14147 14148ac_ext=f 14149ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 14150ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14151ac_compiler_gnu=$ac_cv_f77_compiler_gnu 14152 14153 14154archive_cmds_need_lc_F77=no 14155allow_undefined_flag_F77= 14156always_export_symbols_F77=no 14157archive_expsym_cmds_F77= 14158export_dynamic_flag_spec_F77= 14159hardcode_direct_F77=no 14160hardcode_libdir_flag_spec_F77= 14161hardcode_libdir_flag_spec_ld_F77= 14162hardcode_libdir_separator_F77= 14163hardcode_minus_L_F77=no 14164hardcode_automatic_F77=no 14165module_cmds_F77= 14166module_expsym_cmds_F77= 14167link_all_deplibs_F77=unknown 14168old_archive_cmds_F77=$old_archive_cmds 14169no_undefined_flag_F77= 14170whole_archive_flag_spec_F77= 14171enable_shared_with_static_runtimes_F77=no 14172 14173# Source file extension for f77 test sources. 14174ac_ext=f 14175 14176# Object file extension for compiled f77 test sources. 14177objext=o 14178objext_F77=$objext 14179 14180# Code to be used in simple compile tests 14181lt_simple_compile_test_code=" subroutine t\n return\n end\n" 14182 14183# Code to be used in simple link tests 14184lt_simple_link_test_code=" program t\n end\n" 14185 14186# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14187 14188# If no C compiler was specified, use CC. 14189LTCC=${LTCC-"$CC"} 14190 14191# If no C compiler flags were specified, use CFLAGS. 14192LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14193 14194# Allow CC to be a program name with arguments. 14195compiler=$CC 14196 14197 14198# save warnings/boilerplate of simple test code 14199ac_outfile=conftest.$ac_objext 14200printf "$lt_simple_compile_test_code" >conftest.$ac_ext 14201eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14202_lt_compiler_boilerplate=`cat conftest.err` 14203$rm conftest* 14204 14205ac_outfile=conftest.$ac_objext 14206printf "$lt_simple_link_test_code" >conftest.$ac_ext 14207eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14208_lt_linker_boilerplate=`cat conftest.err` 14209$rm conftest* 14210 14211 14212# Allow CC to be a program name with arguments. 14213lt_save_CC="$CC" 14214CC=${F77-"f77"} 14215compiler=$CC 14216compiler_F77=$CC 14217for cc_temp in $compiler""; do 14218 case $cc_temp in 14219 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14220 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14221 \-*) ;; 14222 *) break;; 14223 esac 14224done 14225cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14226 14227 14228{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 14229echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 14230{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 14231echo "${ECHO_T}$can_build_shared" >&6; } 14232 14233{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 14234echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 14235test "$can_build_shared" = "no" && enable_shared=no 14236 14237# On AIX, shared libraries and static libraries use the same namespace, and 14238# are all built from PIC. 14239case $host_os in 14240aix3*) 14241 test "$enable_shared" = yes && enable_static=no 14242 if test -n "$RANLIB"; then 14243 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14244 postinstall_cmds='$RANLIB $lib' 14245 fi 14246 ;; 14247aix4* | aix5*) 14248 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14249 test "$enable_shared" = yes && enable_static=no 14250 fi 14251 ;; 14252esac 14253{ echo "$as_me:$LINENO: result: $enable_shared" >&5 14254echo "${ECHO_T}$enable_shared" >&6; } 14255 14256{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 14257echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 14258# Make sure either enable_shared or enable_static is yes. 14259test "$enable_shared" = yes || enable_static=yes 14260{ echo "$as_me:$LINENO: result: $enable_static" >&5 14261echo "${ECHO_T}$enable_static" >&6; } 14262 14263GCC_F77="$G77" 14264LD_F77="$LD" 14265 14266lt_prog_compiler_wl_F77= 14267lt_prog_compiler_pic_F77= 14268lt_prog_compiler_static_F77= 14269 14270{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14271echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 14272 14273 if test "$GCC" = yes; then 14274 lt_prog_compiler_wl_F77='-Wl,' 14275 lt_prog_compiler_static_F77='-static' 14276 14277 case $host_os in 14278 aix*) 14279 # All AIX code is PIC. 14280 if test "$host_cpu" = ia64; then 14281 # AIX 5 now supports IA64 processor 14282 lt_prog_compiler_static_F77='-Bstatic' 14283 fi 14284 ;; 14285 14286 amigaos*) 14287 # FIXME: we need at least 68020 code to build shared libraries, but 14288 # adding the `-m68020' flag to GCC prevents building anything better, 14289 # like `-m68040'. 14290 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14291 ;; 14292 14293 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14294 # PIC is the default for these OSes. 14295 ;; 14296 14297 mingw* | pw32* | os2*) 14298 # This hack is so that the source file can tell whether it is being 14299 # built for inclusion in a dll (and should export symbols for example). 14300 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14301 ;; 14302 14303 darwin* | rhapsody*) 14304 # PIC is the default on this platform 14305 # Common symbols not allowed in MH_DYLIB files 14306 lt_prog_compiler_pic_F77='-fno-common' 14307 ;; 14308 14309 interix3*) 14310 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14311 # Instead, we relocate shared libraries at runtime. 14312 ;; 14313 14314 msdosdjgpp*) 14315 # Just because we use GCC doesn't mean we suddenly get shared libraries 14316 # on systems that don't support them. 14317 lt_prog_compiler_can_build_shared_F77=no 14318 enable_shared=no 14319 ;; 14320 14321 sysv4*MP*) 14322 if test -d /usr/nec; then 14323 lt_prog_compiler_pic_F77=-Kconform_pic 14324 fi 14325 ;; 14326 14327 hpux*) 14328 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14329 # not for PA HP-UX. 14330 case $host_cpu in 14331 hppa*64*|ia64*) 14332 # +Z the default 14333 ;; 14334 *) 14335 lt_prog_compiler_pic_F77='-fPIC' 14336 ;; 14337 esac 14338 ;; 14339 14340 *) 14341 lt_prog_compiler_pic_F77='-fPIC' 14342 ;; 14343 esac 14344 else 14345 # PORTME Check for flag to pass linker flags through the system compiler. 14346 case $host_os in 14347 aix*) 14348 lt_prog_compiler_wl_F77='-Wl,' 14349 if test "$host_cpu" = ia64; then 14350 # AIX 5 now supports IA64 processor 14351 lt_prog_compiler_static_F77='-Bstatic' 14352 else 14353 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 14354 fi 14355 ;; 14356 darwin*) 14357 # PIC is the default on this platform 14358 # Common symbols not allowed in MH_DYLIB files 14359 case $cc_basename in 14360 xlc*) 14361 lt_prog_compiler_pic_F77='-qnocommon' 14362 lt_prog_compiler_wl_F77='-Wl,' 14363 ;; 14364 esac 14365 ;; 14366 14367 mingw* | pw32* | os2*) 14368 # This hack is so that the source file can tell whether it is being 14369 # built for inclusion in a dll (and should export symbols for example). 14370 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14371 ;; 14372 14373 hpux9* | hpux10* | hpux11*) 14374 lt_prog_compiler_wl_F77='-Wl,' 14375 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14376 # not for PA HP-UX. 14377 case $host_cpu in 14378 hppa*64*|ia64*) 14379 # +Z the default 14380 ;; 14381 *) 14382 lt_prog_compiler_pic_F77='+Z' 14383 ;; 14384 esac 14385 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14386 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 14387 ;; 14388 14389 irix5* | irix6* | nonstopux*) 14390 lt_prog_compiler_wl_F77='-Wl,' 14391 # PIC (with -KPIC) is the default. 14392 lt_prog_compiler_static_F77='-non_shared' 14393 ;; 14394 14395 newsos6) 14396 lt_prog_compiler_pic_F77='-KPIC' 14397 lt_prog_compiler_static_F77='-Bstatic' 14398 ;; 14399 14400 linux*) 14401 case $cc_basename in 14402 icc* | ecc*) 14403 lt_prog_compiler_wl_F77='-Wl,' 14404 lt_prog_compiler_pic_F77='-KPIC' 14405 lt_prog_compiler_static_F77='-static' 14406 ;; 14407 pgcc* | pgf77* | pgf90* | pgf95*) 14408 # Portland Group compilers (*not* the Pentium gcc compiler, 14409 # which looks to be a dead project) 14410 lt_prog_compiler_wl_F77='-Wl,' 14411 lt_prog_compiler_pic_F77='-fpic' 14412 lt_prog_compiler_static_F77='-Bstatic' 14413 ;; 14414 ccc*) 14415 lt_prog_compiler_wl_F77='-Wl,' 14416 # All Alpha code is PIC. 14417 lt_prog_compiler_static_F77='-non_shared' 14418 ;; 14419 esac 14420 ;; 14421 14422 osf3* | osf4* | osf5*) 14423 lt_prog_compiler_wl_F77='-Wl,' 14424 # All OSF/1 code is PIC. 14425 lt_prog_compiler_static_F77='-non_shared' 14426 ;; 14427 14428 solaris*) 14429 lt_prog_compiler_pic_F77='-KPIC' 14430 lt_prog_compiler_static_F77='-Bstatic' 14431 case $cc_basename in 14432 f77* | f90* | f95*) 14433 lt_prog_compiler_wl_F77='-Qoption ld ';; 14434 *) 14435 lt_prog_compiler_wl_F77='-Wl,';; 14436 esac 14437 ;; 14438 14439 sunos4*) 14440 lt_prog_compiler_wl_F77='-Qoption ld ' 14441 lt_prog_compiler_pic_F77='-PIC' 14442 lt_prog_compiler_static_F77='-Bstatic' 14443 ;; 14444 14445 sysv4 | sysv4.2uw2* | sysv4.3*) 14446 lt_prog_compiler_wl_F77='-Wl,' 14447 lt_prog_compiler_pic_F77='-KPIC' 14448 lt_prog_compiler_static_F77='-Bstatic' 14449 ;; 14450 14451 sysv4*MP*) 14452 if test -d /usr/nec ;then 14453 lt_prog_compiler_pic_F77='-Kconform_pic' 14454 lt_prog_compiler_static_F77='-Bstatic' 14455 fi 14456 ;; 14457 14458 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14459 lt_prog_compiler_wl_F77='-Wl,' 14460 lt_prog_compiler_pic_F77='-KPIC' 14461 lt_prog_compiler_static_F77='-Bstatic' 14462 ;; 14463 14464 unicos*) 14465 lt_prog_compiler_wl_F77='-Wl,' 14466 lt_prog_compiler_can_build_shared_F77=no 14467 ;; 14468 14469 uts4*) 14470 lt_prog_compiler_pic_F77='-pic' 14471 lt_prog_compiler_static_F77='-Bstatic' 14472 ;; 14473 14474 *) 14475 lt_prog_compiler_can_build_shared_F77=no 14476 ;; 14477 esac 14478 fi 14479 14480{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14481echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 14482 14483# 14484# Check to make sure the PIC flag actually works. 14485# 14486if test -n "$lt_prog_compiler_pic_F77"; then 14487 14488{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14489echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 14490if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 14491 echo $ECHO_N "(cached) $ECHO_C" >&6 14492else 14493 lt_prog_compiler_pic_works_F77=no 14494 ac_outfile=conftest.$ac_objext 14495 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14496 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14497 # Insert the option either (1) after the last *FLAGS variable, or 14498 # (2) before a word containing "conftest.", or (3) at the end. 14499 # Note that $ac_compile itself does not contain backslashes and begins 14500 # with a dollar sign (not a hyphen), so the echo should work correctly. 14501 # The option is referenced via a variable to avoid confusing sed. 14502 lt_compile=`echo "$ac_compile" | $SED \ 14503 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14504 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14505 -e 's:$: $lt_compiler_flag:'` 14506 (eval echo "\"\$as_me:14506: $lt_compile\"" >&5) 14507 (eval "$lt_compile" 2>conftest.err) 14508 ac_status=$? 14509 cat conftest.err >&5 14510 echo "$as_me:14510: \$? = $ac_status" >&5 14511 if (exit $ac_status) && test -s "$ac_outfile"; then 14512 # The compiler can only warn and ignore the option if not recognized 14513 # So say no if there are warnings other than the usual output. 14514 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14515 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14516 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14517 lt_prog_compiler_pic_works_F77=yes 14518 fi 14519 fi 14520 $rm conftest* 14521 14522fi 14523{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 14524echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } 14525 14526if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 14527 case $lt_prog_compiler_pic_F77 in 14528 "" | " "*) ;; 14529 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14530 esac 14531else 14532 lt_prog_compiler_pic_F77= 14533 lt_prog_compiler_can_build_shared_F77=no 14534fi 14535 14536fi 14537case $host_os in 14538 # For platforms which do not support PIC, -DPIC is meaningless: 14539 *djgpp*) 14540 lt_prog_compiler_pic_F77= 14541 ;; 14542 *) 14543 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14544 ;; 14545esac 14546 14547# 14548# Check to make sure the static flag actually works. 14549# 14550wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14551{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14552echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 14553if test "${lt_prog_compiler_static_works_F77+set}" = set; then 14554 echo $ECHO_N "(cached) $ECHO_C" >&6 14555else 14556 lt_prog_compiler_static_works_F77=no 14557 save_LDFLAGS="$LDFLAGS" 14558 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14559 printf "$lt_simple_link_test_code" > conftest.$ac_ext 14560 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14561 # The linker can only warn and ignore the option if not recognized 14562 # So say no if there are warnings 14563 if test -s conftest.err; then 14564 # Append any errors to the config.log. 14565 cat conftest.err 1>&5 14566 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14567 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14568 if diff conftest.exp conftest.er2 >/dev/null; then 14569 lt_prog_compiler_static_works_F77=yes 14570 fi 14571 else 14572 lt_prog_compiler_static_works_F77=yes 14573 fi 14574 fi 14575 $rm conftest* 14576 LDFLAGS="$save_LDFLAGS" 14577 14578fi 14579{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 14580echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } 14581 14582if test x"$lt_prog_compiler_static_works_F77" = xyes; then 14583 : 14584else 14585 lt_prog_compiler_static_F77= 14586fi 14587 14588 14589{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14590echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 14591if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14592 echo $ECHO_N "(cached) $ECHO_C" >&6 14593else 14594 lt_cv_prog_compiler_c_o_F77=no 14595 $rm -r conftest 2>/dev/null 14596 mkdir conftest 14597 cd conftest 14598 mkdir out 14599 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14600 14601 lt_compiler_flag="-o out/conftest2.$ac_objext" 14602 # Insert the option either (1) after the last *FLAGS variable, or 14603 # (2) before a word containing "conftest.", or (3) at the end. 14604 # Note that $ac_compile itself does not contain backslashes and begins 14605 # with a dollar sign (not a hyphen), so the echo should work correctly. 14606 lt_compile=`echo "$ac_compile" | $SED \ 14607 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14608 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14609 -e 's:$: $lt_compiler_flag:'` 14610 (eval echo "\"\$as_me:14610: $lt_compile\"" >&5) 14611 (eval "$lt_compile" 2>out/conftest.err) 14612 ac_status=$? 14613 cat out/conftest.err >&5 14614 echo "$as_me:14614: \$? = $ac_status" >&5 14615 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14616 then 14617 # The compiler can only warn and ignore the option if not recognized 14618 # So say no if there are warnings 14619 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14620 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14621 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14622 lt_cv_prog_compiler_c_o_F77=yes 14623 fi 14624 fi 14625 chmod u+w . 2>&5 14626 $rm conftest* 14627 # SGI C++ compiler will create directory out/ii_files/ for 14628 # template instantiation 14629 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14630 $rm out/* && rmdir out 14631 cd .. 14632 rmdir conftest 14633 $rm conftest* 14634 14635fi 14636{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14637echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 14638 14639 14640hard_links="nottested" 14641if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14642 # do not overwrite the value of need_locks provided by the user 14643 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14644echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 14645 hard_links=yes 14646 $rm conftest* 14647 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14648 touch conftest.a 14649 ln conftest.a conftest.b 2>&5 || hard_links=no 14650 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14651 { echo "$as_me:$LINENO: result: $hard_links" >&5 14652echo "${ECHO_T}$hard_links" >&6; } 14653 if test "$hard_links" = no; then 14654 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14655echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14656 need_locks=warn 14657 fi 14658else 14659 need_locks=no 14660fi 14661 14662{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14663echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 14664 14665 runpath_var= 14666 allow_undefined_flag_F77= 14667 enable_shared_with_static_runtimes_F77=no 14668 archive_cmds_F77= 14669 archive_expsym_cmds_F77= 14670 old_archive_From_new_cmds_F77= 14671 old_archive_from_expsyms_cmds_F77= 14672 export_dynamic_flag_spec_F77= 14673 whole_archive_flag_spec_F77= 14674 thread_safe_flag_spec_F77= 14675 hardcode_libdir_flag_spec_F77= 14676 hardcode_libdir_flag_spec_ld_F77= 14677 hardcode_libdir_separator_F77= 14678 hardcode_direct_F77=no 14679 hardcode_minus_L_F77=no 14680 hardcode_shlibpath_var_F77=unsupported 14681 link_all_deplibs_F77=unknown 14682 hardcode_automatic_F77=no 14683 module_cmds_F77= 14684 module_expsym_cmds_F77= 14685 always_export_symbols_F77=no 14686 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14687 # include_expsyms should be a list of space-separated symbols to be *always* 14688 # included in the symbol list 14689 include_expsyms_F77= 14690 # exclude_expsyms can be an extended regexp of symbols to exclude 14691 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14692 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14693 # as well as any symbol that contains `d'. 14694 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 14695 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14696 # platforms (ab)use it in PIC code, but their linkers get confused if 14697 # the symbol is explicitly referenced. Since portable code cannot 14698 # rely on this symbol name, it's probably fine to never include it in 14699 # preloaded symbol tables. 14700 extract_expsyms_cmds= 14701 # Just being paranoid about ensuring that cc_basename is set. 14702 for cc_temp in $compiler""; do 14703 case $cc_temp in 14704 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14705 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14706 \-*) ;; 14707 *) break;; 14708 esac 14709done 14710cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14711 14712 case $host_os in 14713 cygwin* | mingw* | pw32*) 14714 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14715 # When not using gcc, we currently assume that we are using 14716 # Microsoft Visual C++. 14717 if test "$GCC" != yes; then 14718 with_gnu_ld=no 14719 fi 14720 ;; 14721 interix*) 14722 # we just hope/assume this is gcc and not c89 (= MSVC++) 14723 with_gnu_ld=yes 14724 ;; 14725 openbsd*) 14726 with_gnu_ld=no 14727 ;; 14728 esac 14729 14730 ld_shlibs_F77=yes 14731 if test "$with_gnu_ld" = yes; then 14732 # If archive_cmds runs LD, not CC, wlarc should be empty 14733 wlarc='${wl}' 14734 14735 # Set some defaults for GNU ld with shared library support. These 14736 # are reset later if shared libraries are not supported. Putting them 14737 # here allows them to be overridden if necessary. 14738 runpath_var=LD_RUN_PATH 14739 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14740 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14741 # ancient GNU ld didn't support --whole-archive et. al. 14742 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14743 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14744 else 14745 whole_archive_flag_spec_F77= 14746 fi 14747 supports_anon_versioning=no 14748 case `$LD -v 2>/dev/null` in 14749 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14750 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14751 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14752 *\ 2.11.*) ;; # other 2.11 versions 14753 *) supports_anon_versioning=yes ;; 14754 esac 14755 14756 # See if GNU ld supports shared libraries. 14757 case $host_os in 14758 aix3* | aix4* | aix5*) 14759 # On AIX/PPC, the GNU linker is very broken 14760 if test "$host_cpu" != ia64; then 14761 ld_shlibs_F77=no 14762 cat <<EOF 1>&2 14763 14764*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14765*** to be unable to reliably create shared libraries on AIX. 14766*** Therefore, libtool is disabling shared libraries support. If you 14767*** really care for shared libraries, you may want to modify your PATH 14768*** so that a non-GNU linker is found, and then restart. 14769 14770EOF 14771 fi 14772 ;; 14773 14774 amigaos*) 14775 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)' 14776 hardcode_libdir_flag_spec_F77='-L$libdir' 14777 hardcode_minus_L_F77=yes 14778 14779 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14780 # that the semantics of dynamic libraries on AmigaOS, at least up 14781 # to version 4, is to share data among multiple programs linked 14782 # with the same dynamic library. Since this doesn't match the 14783 # behavior of shared libraries on other platforms, we can't use 14784 # them. 14785 ld_shlibs_F77=no 14786 ;; 14787 14788 beos*) 14789 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14790 allow_undefined_flag_F77=unsupported 14791 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14792 # support --undefined. This deserves some investigation. FIXME 14793 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14794 else 14795 ld_shlibs_F77=no 14796 fi 14797 ;; 14798 14799 cygwin* | mingw* | pw32*) 14800 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14801 # as there is no search path for DLLs. 14802 hardcode_libdir_flag_spec_F77='-L$libdir' 14803 allow_undefined_flag_F77=unsupported 14804 always_export_symbols_F77=no 14805 enable_shared_with_static_runtimes_F77=yes 14806 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 14807 14808 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14809 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14810 # If the export-symbols file already is a .def file (1st line 14811 # is EXPORTS), use it as is; otherwise, prepend... 14812 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14813 cp $export_symbols $output_objdir/$soname.def; 14814 else 14815 echo EXPORTS > $output_objdir/$soname.def; 14816 cat $export_symbols >> $output_objdir/$soname.def; 14817 fi~ 14818 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14819 else 14820 ld_shlibs_F77=no 14821 fi 14822 ;; 14823 14824 interix3*) 14825 hardcode_direct_F77=no 14826 hardcode_shlibpath_var_F77=no 14827 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14828 export_dynamic_flag_spec_F77='${wl}-E' 14829 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14830 # Instead, shared libraries are loaded at an image base (0x10000000 by 14831 # default) and relocated if they conflict, which is a slow very memory 14832 # consuming and fragmenting process. To avoid this, we pick a random, 14833 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14834 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14835 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' 14836 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' 14837 ;; 14838 14839 linux*) 14840 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14841 tmp_addflag= 14842 case $cc_basename,$host_cpu in 14843 pgcc*) # Portland Group C compiler 14844 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' 14845 tmp_addflag=' $pic_flag' 14846 ;; 14847 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14848 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' 14849 tmp_addflag=' $pic_flag -Mnomain' ;; 14850 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14851 tmp_addflag=' -i_dynamic' ;; 14852 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14853 tmp_addflag=' -i_dynamic -nofor_main' ;; 14854 ifc* | ifort*) # Intel Fortran compiler 14855 tmp_addflag=' -nofor_main' ;; 14856 esac 14857 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14858 14859 if test $supports_anon_versioning = yes; then 14860 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14861 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14862 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14863 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14864 fi 14865 else 14866 ld_shlibs_F77=no 14867 fi 14868 ;; 14869 14870 netbsd*) 14871 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14872 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14873 wlarc= 14874 else 14875 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14876 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14877 fi 14878 ;; 14879 14880 solaris*) 14881 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14882 ld_shlibs_F77=no 14883 cat <<EOF 1>&2 14884 14885*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14886*** create shared libraries on Solaris systems. Therefore, libtool 14887*** is disabling shared libraries support. We urge you to upgrade GNU 14888*** binutils to release 2.9.1 or newer. Another option is to modify 14889*** your PATH or compiler configuration so that the native linker is 14890*** used, and then restart. 14891 14892EOF 14893 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14894 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14895 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14896 else 14897 ld_shlibs_F77=no 14898 fi 14899 ;; 14900 14901 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14902 case `$LD -v 2>&1` in 14903 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14904 ld_shlibs_F77=no 14905 cat <<_LT_EOF 1>&2 14906 14907*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14908*** reliably create shared libraries on SCO systems. Therefore, libtool 14909*** is disabling shared libraries support. We urge you to upgrade GNU 14910*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14911*** your PATH or compiler configuration so that the native linker is 14912*** used, and then restart. 14913 14914_LT_EOF 14915 ;; 14916 *) 14917 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14918 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14919 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14920 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14921 else 14922 ld_shlibs_F77=no 14923 fi 14924 ;; 14925 esac 14926 ;; 14927 14928 sunos4*) 14929 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14930 wlarc= 14931 hardcode_direct_F77=yes 14932 hardcode_shlibpath_var_F77=no 14933 ;; 14934 14935 *) 14936 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14937 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14938 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14939 else 14940 ld_shlibs_F77=no 14941 fi 14942 ;; 14943 esac 14944 14945 if test "$ld_shlibs_F77" = no; then 14946 runpath_var= 14947 hardcode_libdir_flag_spec_F77= 14948 export_dynamic_flag_spec_F77= 14949 whole_archive_flag_spec_F77= 14950 fi 14951 else 14952 # PORTME fill in a description of your system's linker (not GNU ld) 14953 case $host_os in 14954 aix3*) 14955 allow_undefined_flag_F77=unsupported 14956 always_export_symbols_F77=yes 14957 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' 14958 # Note: this linker hardcodes the directories in LIBPATH if there 14959 # are no directories specified by -L. 14960 hardcode_minus_L_F77=yes 14961 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14962 # Neither direct hardcoding nor static linking is supported with a 14963 # broken collect2. 14964 hardcode_direct_F77=unsupported 14965 fi 14966 ;; 14967 14968 aix4* | aix5*) 14969 if test "$host_cpu" = ia64; then 14970 # On IA64, the linker does run time linking by default, so we don't 14971 # have to do anything special. 14972 aix_use_runtimelinking=no 14973 exp_sym_flag='-Bexport' 14974 no_entry_flag="" 14975 else 14976 # If we're using GNU nm, then we don't want the "-C" option. 14977 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14978 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14979 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' 14980 else 14981 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' 14982 fi 14983 aix_use_runtimelinking=no 14984 14985 # Test if we are trying to use run time linking or normal 14986 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14987 # need to do runtime linking. 14988 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 14989 for ld_flag in $LDFLAGS; do 14990 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14991 aix_use_runtimelinking=yes 14992 break 14993 fi 14994 done 14995 ;; 14996 esac 14997 14998 exp_sym_flag='-bexport' 14999 no_entry_flag='-bnoentry' 15000 fi 15001 15002 # When large executables or shared objects are built, AIX ld can 15003 # have problems creating the table of contents. If linking a library 15004 # or program results in "error TOC overflow" add -mminimal-toc to 15005 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15006 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15007 15008 archive_cmds_F77='' 15009 hardcode_direct_F77=yes 15010 hardcode_libdir_separator_F77=':' 15011 link_all_deplibs_F77=yes 15012 15013 if test "$GCC" = yes; then 15014 case $host_os in aix4.[012]|aix4.[012].*) 15015 # We only want to do this on AIX 4.2 and lower, the check 15016 # below for broken collect2 doesn't work under 4.3+ 15017 collect2name=`${CC} -print-prog-name=collect2` 15018 if test -f "$collect2name" && \ 15019 strings "$collect2name" | grep resolve_lib_name >/dev/null 15020 then 15021 # We have reworked collect2 15022 hardcode_direct_F77=yes 15023 else 15024 # We have old collect2 15025 hardcode_direct_F77=unsupported 15026 # It fails to find uninstalled libraries when the uninstalled 15027 # path is not listed in the libpath. Setting hardcode_minus_L 15028 # to unsupported forces relinking 15029 hardcode_minus_L_F77=yes 15030 hardcode_libdir_flag_spec_F77='-L$libdir' 15031 hardcode_libdir_separator_F77= 15032 fi 15033 ;; 15034 esac 15035 shared_flag='-shared' 15036 if test "$aix_use_runtimelinking" = yes; then 15037 shared_flag="$shared_flag "'${wl}-G' 15038 fi 15039 else 15040 # not using gcc 15041 if test "$host_cpu" = ia64; then 15042 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15043 # chokes on -Wl,-G. The following line is correct: 15044 shared_flag='-G' 15045 else 15046 if test "$aix_use_runtimelinking" = yes; then 15047 shared_flag='${wl}-G' 15048 else 15049 shared_flag='${wl}-bM:SRE' 15050 fi 15051 fi 15052 fi 15053 15054 # It seems that -bexpall does not export symbols beginning with 15055 # underscore (_), so it is better to generate a list of symbols to export. 15056 always_export_symbols_F77=yes 15057 if test "$aix_use_runtimelinking" = yes; then 15058 # Warning - without using the other runtime loading flags (-brtl), 15059 # -berok will link without error, but may produce a broken library. 15060 allow_undefined_flag_F77='-berok' 15061 # Determine the default libpath from the value encoded in an empty executable. 15062 cat >conftest.$ac_ext <<_ACEOF 15063 program main 15064 15065 end 15066_ACEOF 15067rm -f conftest.$ac_objext conftest$ac_exeext 15068if { (ac_try="$ac_link" 15069case "(($ac_try" in 15070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15071 *) ac_try_echo=$ac_try;; 15072esac 15073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15074 (eval "$ac_link") 2>conftest.er1 15075 ac_status=$? 15076 grep -v '^ *+' conftest.er1 >conftest.err 15077 rm -f conftest.er1 15078 cat conftest.err >&5 15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15080 (exit $ac_status); } && 15081 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 15082 { (case "(($ac_try" in 15083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15084 *) ac_try_echo=$ac_try;; 15085esac 15086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15087 (eval "$ac_try") 2>&5 15088 ac_status=$? 15089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15090 (exit $ac_status); }; } && 15091 { ac_try='test -s conftest$ac_exeext' 15092 { (case "(($ac_try" in 15093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15094 *) ac_try_echo=$ac_try;; 15095esac 15096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15097 (eval "$ac_try") 2>&5 15098 ac_status=$? 15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15100 (exit $ac_status); }; }; then 15101 15102aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15103}'` 15104# Check for a 64-bit object if we didn't find anything. 15105if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15106}'`; fi 15107else 15108 echo "$as_me: failed program was:" >&5 15109sed 's/^/| /' conftest.$ac_ext >&5 15110 15111 15112fi 15113 15114rm -f core conftest.err conftest.$ac_objext \ 15115 conftest$ac_exeext conftest.$ac_ext 15116if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15117 15118 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15119 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" 15120 else 15121 if test "$host_cpu" = ia64; then 15122 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 15123 allow_undefined_flag_F77="-z nodefs" 15124 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" 15125 else 15126 # Determine the default libpath from the value encoded in an empty executable. 15127 cat >conftest.$ac_ext <<_ACEOF 15128 program main 15129 15130 end 15131_ACEOF 15132rm -f conftest.$ac_objext conftest$ac_exeext 15133if { (ac_try="$ac_link" 15134case "(($ac_try" in 15135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15136 *) ac_try_echo=$ac_try;; 15137esac 15138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15139 (eval "$ac_link") 2>conftest.er1 15140 ac_status=$? 15141 grep -v '^ *+' conftest.er1 >conftest.err 15142 rm -f conftest.er1 15143 cat conftest.err >&5 15144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15145 (exit $ac_status); } && 15146 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 15147 { (case "(($ac_try" in 15148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15149 *) ac_try_echo=$ac_try;; 15150esac 15151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15152 (eval "$ac_try") 2>&5 15153 ac_status=$? 15154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15155 (exit $ac_status); }; } && 15156 { ac_try='test -s conftest$ac_exeext' 15157 { (case "(($ac_try" in 15158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15159 *) ac_try_echo=$ac_try;; 15160esac 15161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15162 (eval "$ac_try") 2>&5 15163 ac_status=$? 15164 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15165 (exit $ac_status); }; }; then 15166 15167aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15168}'` 15169# Check for a 64-bit object if we didn't find anything. 15170if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15171}'`; fi 15172else 15173 echo "$as_me: failed program was:" >&5 15174sed 's/^/| /' conftest.$ac_ext >&5 15175 15176 15177fi 15178 15179rm -f core conftest.err conftest.$ac_objext \ 15180 conftest$ac_exeext conftest.$ac_ext 15181if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15182 15183 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15184 # Warning - without using the other run time loading flags, 15185 # -berok will link without error, but may produce a broken library. 15186 no_undefined_flag_F77=' ${wl}-bernotok' 15187 allow_undefined_flag_F77=' ${wl}-berok' 15188 # Exported symbols can be pulled into shared objects from archives 15189 whole_archive_flag_spec_F77='$convenience' 15190 archive_cmds_need_lc_F77=yes 15191 # This is similar to how AIX traditionally builds its shared libraries. 15192 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' 15193 fi 15194 fi 15195 ;; 15196 15197 amigaos*) 15198 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)' 15199 hardcode_libdir_flag_spec_F77='-L$libdir' 15200 hardcode_minus_L_F77=yes 15201 # see comment about different semantics on the GNU ld section 15202 ld_shlibs_F77=no 15203 ;; 15204 15205 bsdi[45]*) 15206 export_dynamic_flag_spec_F77=-rdynamic 15207 ;; 15208 15209 cygwin* | mingw* | pw32*) 15210 # When not using gcc, we currently assume that we are using 15211 # Microsoft Visual C++. 15212 # hardcode_libdir_flag_spec is actually meaningless, as there is 15213 # no search path for DLLs. 15214 hardcode_libdir_flag_spec_F77=' ' 15215 allow_undefined_flag_F77=unsupported 15216 # Tell ltmain to make .lib files, not .a files. 15217 libext=lib 15218 # Tell ltmain to make .dll files, not .so files. 15219 shrext_cmds=".dll" 15220 # FIXME: Setting linknames here is a bad hack. 15221 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15222 # The linker will automatically build a .lib file if we build a DLL. 15223 old_archive_From_new_cmds_F77='true' 15224 # FIXME: Should let the user specify the lib program. 15225 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 15226 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 15227 enable_shared_with_static_runtimes_F77=yes 15228 ;; 15229 15230 darwin* | rhapsody*) 15231 case $host_os in 15232 rhapsody* | darwin1.[012]) 15233 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 15234 ;; 15235 *) # Darwin 1.3 on 15236 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15237 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15238 else 15239 case ${MACOSX_DEPLOYMENT_TARGET} in 15240 10.[012]) 15241 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15242 ;; 15243 10.*) 15244 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 15245 ;; 15246 esac 15247 fi 15248 ;; 15249 esac 15250 archive_cmds_need_lc_F77=no 15251 hardcode_direct_F77=no 15252 hardcode_automatic_F77=yes 15253 hardcode_shlibpath_var_F77=unsupported 15254 whole_archive_flag_spec_F77='' 15255 link_all_deplibs_F77=yes 15256 if test "$GCC" = yes ; then 15257 output_verbose_link_cmd='echo' 15258 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 15259 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15260 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15261 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15262 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}' 15263 else 15264 case $cc_basename in 15265 xlc*) 15266 output_verbose_link_cmd='echo' 15267 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 15268 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15269 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15270 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15271 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}' 15272 ;; 15273 *) 15274 ld_shlibs_F77=no 15275 ;; 15276 esac 15277 fi 15278 ;; 15279 15280 dgux*) 15281 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15282 hardcode_libdir_flag_spec_F77='-L$libdir' 15283 hardcode_shlibpath_var_F77=no 15284 ;; 15285 15286 freebsd1*) 15287 ld_shlibs_F77=no 15288 ;; 15289 15290 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15291 # support. Future versions do this automatically, but an explicit c++rt0.o 15292 # does not break anything, and helps significantly (at the cost of a little 15293 # extra space). 15294 freebsd2.2*) 15295 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15296 hardcode_libdir_flag_spec_F77='-R$libdir' 15297 hardcode_direct_F77=yes 15298 hardcode_shlibpath_var_F77=no 15299 ;; 15300 15301 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15302 freebsd2*) 15303 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15304 hardcode_direct_F77=yes 15305 hardcode_minus_L_F77=yes 15306 hardcode_shlibpath_var_F77=no 15307 ;; 15308 15309 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15310 freebsd* | kfreebsd*-gnu | dragonfly*) 15311 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15312 hardcode_libdir_flag_spec_F77='-R$libdir' 15313 hardcode_direct_F77=yes 15314 hardcode_shlibpath_var_F77=no 15315 ;; 15316 15317 hpux9*) 15318 if test "$GCC" = yes; then 15319 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' 15320 else 15321 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' 15322 fi 15323 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15324 hardcode_libdir_separator_F77=: 15325 hardcode_direct_F77=yes 15326 15327 # hardcode_minus_L: Not really in the search PATH, 15328 # but as the default location of the library. 15329 hardcode_minus_L_F77=yes 15330 export_dynamic_flag_spec_F77='${wl}-E' 15331 ;; 15332 15333 hpux10*) 15334 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15335 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15336 else 15337 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15338 fi 15339 if test "$with_gnu_ld" = no; then 15340 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15341 hardcode_libdir_separator_F77=: 15342 15343 hardcode_direct_F77=yes 15344 export_dynamic_flag_spec_F77='${wl}-E' 15345 15346 # hardcode_minus_L: Not really in the search PATH, 15347 # but as the default location of the library. 15348 hardcode_minus_L_F77=yes 15349 fi 15350 ;; 15351 15352 hpux11*) 15353 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15354 case $host_cpu in 15355 hppa*64*) 15356 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15357 ;; 15358 ia64*) 15359 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15360 ;; 15361 *) 15362 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15363 ;; 15364 esac 15365 else 15366 case $host_cpu in 15367 hppa*64*) 15368 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15369 ;; 15370 ia64*) 15371 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15372 ;; 15373 *) 15374 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15375 ;; 15376 esac 15377 fi 15378 if test "$with_gnu_ld" = no; then 15379 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15380 hardcode_libdir_separator_F77=: 15381 15382 case $host_cpu in 15383 hppa*64*|ia64*) 15384 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15385 hardcode_direct_F77=no 15386 hardcode_shlibpath_var_F77=no 15387 ;; 15388 *) 15389 hardcode_direct_F77=yes 15390 export_dynamic_flag_spec_F77='${wl}-E' 15391 15392 # hardcode_minus_L: Not really in the search PATH, 15393 # but as the default location of the library. 15394 hardcode_minus_L_F77=yes 15395 ;; 15396 esac 15397 fi 15398 ;; 15399 15400 irix5* | irix6* | nonstopux*) 15401 if test "$GCC" = yes; then 15402 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' 15403 else 15404 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' 15405 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 15406 fi 15407 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15408 hardcode_libdir_separator_F77=: 15409 link_all_deplibs_F77=yes 15410 ;; 15411 15412 netbsd*) 15413 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15414 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15415 else 15416 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15417 fi 15418 hardcode_libdir_flag_spec_F77='-R$libdir' 15419 hardcode_direct_F77=yes 15420 hardcode_shlibpath_var_F77=no 15421 ;; 15422 15423 newsos6) 15424 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15425 hardcode_direct_F77=yes 15426 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15427 hardcode_libdir_separator_F77=: 15428 hardcode_shlibpath_var_F77=no 15429 ;; 15430 15431 openbsd*) 15432 hardcode_direct_F77=yes 15433 hardcode_shlibpath_var_F77=no 15434 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15435 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15436 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15437 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15438 export_dynamic_flag_spec_F77='${wl}-E' 15439 else 15440 case $host_os in 15441 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15442 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15443 hardcode_libdir_flag_spec_F77='-R$libdir' 15444 ;; 15445 *) 15446 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15447 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15448 ;; 15449 esac 15450 fi 15451 ;; 15452 15453 os2*) 15454 hardcode_libdir_flag_spec_F77='-L$libdir' 15455 hardcode_minus_L_F77=yes 15456 allow_undefined_flag_F77=unsupported 15457 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' 15458 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15459 ;; 15460 15461 osf3*) 15462 if test "$GCC" = yes; then 15463 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15464 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' 15465 else 15466 allow_undefined_flag_F77=' -expect_unresolved \*' 15467 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' 15468 fi 15469 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15470 hardcode_libdir_separator_F77=: 15471 ;; 15472 15473 osf4* | osf5*) # as osf3* with the addition of -msym flag 15474 if test "$GCC" = yes; then 15475 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15476 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' 15477 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15478 else 15479 allow_undefined_flag_F77=' -expect_unresolved \*' 15480 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' 15481 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~ 15482 $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' 15483 15484 # Both c and cxx compiler support -rpath directly 15485 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15486 fi 15487 hardcode_libdir_separator_F77=: 15488 ;; 15489 15490 solaris*) 15491 no_undefined_flag_F77=' -z text' 15492 if test "$GCC" = yes; then 15493 wlarc='${wl}' 15494 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15495 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15496 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15497 else 15498 wlarc='' 15499 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15500 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15501 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15502 fi 15503 hardcode_libdir_flag_spec_F77='-R$libdir' 15504 hardcode_shlibpath_var_F77=no 15505 case $host_os in 15506 solaris2.[0-5] | solaris2.[0-5].*) ;; 15507 *) 15508 # The compiler driver will combine linker options so we 15509 # cannot just pass the convience library names through 15510 # without $wl, iff we do not link with $LD. 15511 # Luckily, gcc supports the same syntax we need for Sun Studio. 15512 # Supported since Solaris 2.6 (maybe 2.5.1?) 15513 case $wlarc in 15514 '') 15515 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 15516 *) 15517 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 15518 esac ;; 15519 esac 15520 link_all_deplibs_F77=yes 15521 ;; 15522 15523 sunos4*) 15524 if test "x$host_vendor" = xsequent; then 15525 # Use $CC to link under sequent, because it throws in some extra .o 15526 # files that make .init and .fini sections work. 15527 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15528 else 15529 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15530 fi 15531 hardcode_libdir_flag_spec_F77='-L$libdir' 15532 hardcode_direct_F77=yes 15533 hardcode_minus_L_F77=yes 15534 hardcode_shlibpath_var_F77=no 15535 ;; 15536 15537 sysv4) 15538 case $host_vendor in 15539 sni) 15540 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15541 hardcode_direct_F77=yes # is this really true??? 15542 ;; 15543 siemens) 15544 ## LD is ld it makes a PLAMLIB 15545 ## CC just makes a GrossModule. 15546 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15547 reload_cmds_F77='$CC -r -o $output$reload_objs' 15548 hardcode_direct_F77=no 15549 ;; 15550 motorola) 15551 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15552 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15553 ;; 15554 esac 15555 runpath_var='LD_RUN_PATH' 15556 hardcode_shlibpath_var_F77=no 15557 ;; 15558 15559 sysv4.3*) 15560 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15561 hardcode_shlibpath_var_F77=no 15562 export_dynamic_flag_spec_F77='-Bexport' 15563 ;; 15564 15565 sysv4*MP*) 15566 if test -d /usr/nec; then 15567 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15568 hardcode_shlibpath_var_F77=no 15569 runpath_var=LD_RUN_PATH 15570 hardcode_runpath_var=yes 15571 ld_shlibs_F77=yes 15572 fi 15573 ;; 15574 15575 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 15576 no_undefined_flag_F77='${wl}-z,text' 15577 archive_cmds_need_lc_F77=no 15578 hardcode_shlibpath_var_F77=no 15579 runpath_var='LD_RUN_PATH' 15580 15581 if test "$GCC" = yes; then 15582 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15583 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15584 else 15585 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15586 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15587 fi 15588 ;; 15589 15590 sysv5* | sco3.2v5* | sco5v6*) 15591 # Note: We can NOT use -z defs as we might desire, because we do not 15592 # link with -lc, and that would cause any symbols used from libc to 15593 # always be unresolved, which means just about no library would 15594 # ever link correctly. If we're not using GNU ld we use -z text 15595 # though, which does catch some bad symbols but isn't as heavy-handed 15596 # as -z defs. 15597 no_undefined_flag_F77='${wl}-z,text' 15598 allow_undefined_flag_F77='${wl}-z,nodefs' 15599 archive_cmds_need_lc_F77=no 15600 hardcode_shlibpath_var_F77=no 15601 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15602 hardcode_libdir_separator_F77=':' 15603 link_all_deplibs_F77=yes 15604 export_dynamic_flag_spec_F77='${wl}-Bexport' 15605 runpath_var='LD_RUN_PATH' 15606 15607 if test "$GCC" = yes; then 15608 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15609 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15610 else 15611 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15612 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15613 fi 15614 ;; 15615 15616 uts4*) 15617 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15618 hardcode_libdir_flag_spec_F77='-L$libdir' 15619 hardcode_shlibpath_var_F77=no 15620 ;; 15621 15622 *) 15623 ld_shlibs_F77=no 15624 ;; 15625 esac 15626 fi 15627 15628{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15629echo "${ECHO_T}$ld_shlibs_F77" >&6; } 15630test "$ld_shlibs_F77" = no && can_build_shared=no 15631 15632# 15633# Do we need to explicitly link libc? 15634# 15635case "x$archive_cmds_need_lc_F77" in 15636x|xyes) 15637 # Assume -lc should be added 15638 archive_cmds_need_lc_F77=yes 15639 15640 if test "$enable_shared" = yes && test "$GCC" = yes; then 15641 case $archive_cmds_F77 in 15642 *'~'*) 15643 # FIXME: we may have to deal with multi-command sequences. 15644 ;; 15645 '$CC '*) 15646 # Test whether the compiler implicitly links with -lc since on some 15647 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15648 # to ld, don't add -lc before -lgcc. 15649 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15650echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 15651 $rm conftest* 15652 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15653 15654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15655 (eval $ac_compile) 2>&5 15656 ac_status=$? 15657 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15658 (exit $ac_status); } 2>conftest.err; then 15659 soname=conftest 15660 lib=conftest 15661 libobjs=conftest.$ac_objext 15662 deplibs= 15663 wl=$lt_prog_compiler_wl_F77 15664 pic_flag=$lt_prog_compiler_pic_F77 15665 compiler_flags=-v 15666 linker_flags=-v 15667 verstring= 15668 output_objdir=. 15669 libname=conftest 15670 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15671 allow_undefined_flag_F77= 15672 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15673 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15674 ac_status=$? 15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15676 (exit $ac_status); } 15677 then 15678 archive_cmds_need_lc_F77=no 15679 else 15680 archive_cmds_need_lc_F77=yes 15681 fi 15682 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15683 else 15684 cat conftest.err 1>&5 15685 fi 15686 $rm conftest* 15687 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15688echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 15689 ;; 15690 esac 15691 fi 15692 ;; 15693esac 15694 15695{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15696echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 15697library_names_spec= 15698libname_spec='lib$name' 15699soname_spec= 15700shrext_cmds=".so" 15701postinstall_cmds= 15702postuninstall_cmds= 15703finish_cmds= 15704finish_eval= 15705shlibpath_var= 15706shlibpath_overrides_runpath=unknown 15707version_type=none 15708dynamic_linker="$host_os ld.so" 15709sys_lib_dlsearch_path_spec="/lib /usr/lib" 15710if test "$GCC" = yes; then 15711 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15712 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 15713 # if the path contains ";" then we assume it to be the separator 15714 # otherwise default to the standard path separator (i.e. ":") - it is 15715 # assumed that no part of a normal pathname contains ";" but that should 15716 # okay in the real world where ";" in dirpaths is itself problematic. 15717 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15718 else 15719 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15720 fi 15721else 15722 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15723fi 15724need_lib_prefix=unknown 15725hardcode_into_libs=no 15726 15727# when you set need_version to no, make sure it does not cause -set_version 15728# flags to be left without arguments 15729need_version=unknown 15730 15731case $host_os in 15732aix3*) 15733 version_type=linux 15734 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15735 shlibpath_var=LIBPATH 15736 15737 # AIX 3 has no versioning support, so we append a major version to the name. 15738 soname_spec='${libname}${release}${shared_ext}$major' 15739 ;; 15740 15741aix4* | aix5*) 15742 version_type=linux 15743 need_lib_prefix=no 15744 need_version=no 15745 hardcode_into_libs=yes 15746 if test "$host_cpu" = ia64; then 15747 # AIX 5 supports IA64 15748 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15749 shlibpath_var=LD_LIBRARY_PATH 15750 else 15751 # With GCC up to 2.95.x, collect2 would create an import file 15752 # for dependence libraries. The import file would start with 15753 # the line `#! .'. This would cause the generated library to 15754 # depend on `.', always an invalid library. This was fixed in 15755 # development snapshots of GCC prior to 3.0. 15756 case $host_os in 15757 aix4 | aix4.[01] | aix4.[01].*) 15758 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15759 echo ' yes ' 15760 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15761 : 15762 else 15763 can_build_shared=no 15764 fi 15765 ;; 15766 esac 15767 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15768 # soname into executable. Probably we can add versioning support to 15769 # collect2, so additional links can be useful in future. 15770 if test "$aix_use_runtimelinking" = yes; then 15771 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15772 # instead of lib<name>.a to let people know that these are not 15773 # typical AIX shared libraries. 15774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15775 else 15776 # We preserve .a as extension for shared libraries through AIX4.2 15777 # and later when we are not doing run time linking. 15778 library_names_spec='${libname}${release}.a $libname.a' 15779 soname_spec='${libname}${release}${shared_ext}$major' 15780 fi 15781 shlibpath_var=LIBPATH 15782 fi 15783 ;; 15784 15785amigaos*) 15786 library_names_spec='$libname.ixlibrary $libname.a' 15787 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15788 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' 15789 ;; 15790 15791beos*) 15792 library_names_spec='${libname}${shared_ext}' 15793 dynamic_linker="$host_os ld.so" 15794 shlibpath_var=LIBRARY_PATH 15795 ;; 15796 15797bsdi[45]*) 15798 version_type=linux 15799 need_version=no 15800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15801 soname_spec='${libname}${release}${shared_ext}$major' 15802 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15803 shlibpath_var=LD_LIBRARY_PATH 15804 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15805 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15806 # the default ld.so.conf also contains /usr/contrib/lib and 15807 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15808 # libtool to hard-code these into programs 15809 ;; 15810 15811cygwin* | mingw* | pw32*) 15812 version_type=windows 15813 shrext_cmds=".dll" 15814 need_version=no 15815 need_lib_prefix=no 15816 15817 case $GCC,$host_os in 15818 yes,cygwin* | yes,mingw* | yes,pw32*) 15819 library_names_spec='$libname.dll.a' 15820 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15821 postinstall_cmds='base_file=`basename \${file}`~ 15822 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15823 dldir=$destdir/`dirname \$dlpath`~ 15824 test -d \$dldir || mkdir -p \$dldir~ 15825 $install_prog $dir/$dlname \$dldir/$dlname~ 15826 chmod a+x \$dldir/$dlname' 15827 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15828 dlpath=$dir/\$dldll~ 15829 $rm \$dlpath' 15830 shlibpath_overrides_runpath=yes 15831 15832 case $host_os in 15833 cygwin*) 15834 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15835 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15836 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15837 ;; 15838 mingw*) 15839 # MinGW DLLs use traditional 'lib' prefix 15840 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15841 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15842 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15843 # It is most probably a Windows format PATH printed by 15844 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15845 # path with ; separators, and with drive letters. We can handle the 15846 # drive letters (cygwin fileutils understands them), so leave them, 15847 # especially as we might pass files found there to a mingw objdump, 15848 # which wouldn't understand a cygwinified path. Ahh. 15849 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15850 else 15851 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15852 fi 15853 ;; 15854 pw32*) 15855 # pw32 DLLs use 'pw' prefix rather than 'lib' 15856 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15857 ;; 15858 esac 15859 ;; 15860 15861 *) 15862 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15863 ;; 15864 esac 15865 dynamic_linker='Win32 ld.exe' 15866 # FIXME: first we should search . and the directory the executable is in 15867 shlibpath_var=PATH 15868 ;; 15869 15870darwin* | rhapsody*) 15871 dynamic_linker="$host_os dyld" 15872 version_type=darwin 15873 need_lib_prefix=no 15874 need_version=no 15875 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15876 soname_spec='${libname}${release}${major}$shared_ext' 15877 shlibpath_overrides_runpath=yes 15878 shlibpath_var=DYLD_LIBRARY_PATH 15879 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15880 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 15881 if test "$GCC" = yes; then 15882 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 15883 else 15884 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 15885 fi 15886 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15887 ;; 15888 15889dgux*) 15890 version_type=linux 15891 need_lib_prefix=no 15892 need_version=no 15893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15894 soname_spec='${libname}${release}${shared_ext}$major' 15895 shlibpath_var=LD_LIBRARY_PATH 15896 ;; 15897 15898freebsd1*) 15899 dynamic_linker=no 15900 ;; 15901 15902kfreebsd*-gnu) 15903 version_type=linux 15904 need_lib_prefix=no 15905 need_version=no 15906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15907 soname_spec='${libname}${release}${shared_ext}$major' 15908 shlibpath_var=LD_LIBRARY_PATH 15909 shlibpath_overrides_runpath=no 15910 hardcode_into_libs=yes 15911 dynamic_linker='GNU ld.so' 15912 ;; 15913 15914freebsd* | dragonfly*) 15915 # DragonFly does not have aout. When/if they implement a new 15916 # versioning mechanism, adjust this. 15917 if test -x /usr/bin/objformat; then 15918 objformat=`/usr/bin/objformat` 15919 else 15920 case $host_os in 15921 freebsd[123]*) objformat=aout ;; 15922 *) objformat=elf ;; 15923 esac 15924 fi 15925 version_type=freebsd-$objformat 15926 case $version_type in 15927 freebsd-elf*) 15928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15929 need_version=no 15930 need_lib_prefix=no 15931 ;; 15932 freebsd-*) 15933 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15934 need_version=yes 15935 ;; 15936 esac 15937 shlibpath_var=LD_LIBRARY_PATH 15938 case $host_os in 15939 freebsd2*) 15940 shlibpath_overrides_runpath=yes 15941 ;; 15942 freebsd3.[01]* | freebsdelf3.[01]*) 15943 shlibpath_overrides_runpath=yes 15944 hardcode_into_libs=yes 15945 ;; 15946 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15947 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15948 shlibpath_overrides_runpath=no 15949 hardcode_into_libs=yes 15950 ;; 15951 freebsd*) # from 4.6 on 15952 shlibpath_overrides_runpath=yes 15953 hardcode_into_libs=yes 15954 ;; 15955 esac 15956 ;; 15957 15958gnu*) 15959 version_type=linux 15960 need_lib_prefix=no 15961 need_version=no 15962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15963 soname_spec='${libname}${release}${shared_ext}$major' 15964 shlibpath_var=LD_LIBRARY_PATH 15965 hardcode_into_libs=yes 15966 ;; 15967 15968hpux9* | hpux10* | hpux11*) 15969 # Give a soname corresponding to the major version so that dld.sl refuses to 15970 # link against other versions. 15971 version_type=sunos 15972 need_lib_prefix=no 15973 need_version=no 15974 case $host_cpu in 15975 ia64*) 15976 shrext_cmds='.so' 15977 hardcode_into_libs=yes 15978 dynamic_linker="$host_os dld.so" 15979 shlibpath_var=LD_LIBRARY_PATH 15980 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15982 soname_spec='${libname}${release}${shared_ext}$major' 15983 if test "X$HPUX_IA64_MODE" = X32; then 15984 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15985 else 15986 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15987 fi 15988 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15989 ;; 15990 hppa*64*) 15991 shrext_cmds='.sl' 15992 hardcode_into_libs=yes 15993 dynamic_linker="$host_os dld.sl" 15994 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15995 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15997 soname_spec='${libname}${release}${shared_ext}$major' 15998 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15999 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16000 ;; 16001 *) 16002 shrext_cmds='.sl' 16003 dynamic_linker="$host_os dld.sl" 16004 shlibpath_var=SHLIB_PATH 16005 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16007 soname_spec='${libname}${release}${shared_ext}$major' 16008 ;; 16009 esac 16010 # HP-UX runs *really* slowly unless shared libraries are mode 555. 16011 postinstall_cmds='chmod 555 $lib' 16012 ;; 16013 16014interix3*) 16015 version_type=linux 16016 need_lib_prefix=no 16017 need_version=no 16018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16019 soname_spec='${libname}${release}${shared_ext}$major' 16020 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16021 shlibpath_var=LD_LIBRARY_PATH 16022 shlibpath_overrides_runpath=no 16023 hardcode_into_libs=yes 16024 ;; 16025 16026irix5* | irix6* | nonstopux*) 16027 case $host_os in 16028 nonstopux*) version_type=nonstopux ;; 16029 *) 16030 if test "$lt_cv_prog_gnu_ld" = yes; then 16031 version_type=linux 16032 else 16033 version_type=irix 16034 fi ;; 16035 esac 16036 need_lib_prefix=no 16037 need_version=no 16038 soname_spec='${libname}${release}${shared_ext}$major' 16039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16040 case $host_os in 16041 irix5* | nonstopux*) 16042 libsuff= shlibsuff= 16043 ;; 16044 *) 16045 case $LD in # libtool.m4 will add one of these switches to LD 16046 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16047 libsuff= shlibsuff= libmagic=32-bit;; 16048 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16049 libsuff=32 shlibsuff=N32 libmagic=N32;; 16050 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16051 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16052 *) libsuff= shlibsuff= libmagic=never-match;; 16053 esac 16054 ;; 16055 esac 16056 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16057 shlibpath_overrides_runpath=no 16058 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16059 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16060 hardcode_into_libs=yes 16061 ;; 16062 16063# No shared lib support for Linux oldld, aout, or coff. 16064linux*oldld* | linux*aout* | linux*coff*) 16065 dynamic_linker=no 16066 ;; 16067 16068# This must be Linux ELF. 16069linux*) 16070 version_type=linux 16071 need_lib_prefix=no 16072 need_version=no 16073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16074 soname_spec='${libname}${release}${shared_ext}$major' 16075 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16076 shlibpath_var=LD_LIBRARY_PATH 16077 shlibpath_overrides_runpath=no 16078 # This implies no fast_install, which is unacceptable. 16079 # Some rework will be needed to allow for fast_install 16080 # before this can be enabled. 16081 hardcode_into_libs=yes 16082 16083 # Append ld.so.conf contents to the search path 16084 if test -f /etc/ld.so.conf; then 16085 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 16086 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16087 fi 16088 16089 # We used to test for /lib/ld.so.1 and disable shared libraries on 16090 # powerpc, because MkLinux only supported shared libraries with the 16091 # GNU dynamic linker. Since this was broken with cross compilers, 16092 # most powerpc-linux boxes support dynamic linking these days and 16093 # people can always --disable-shared, the test was removed, and we 16094 # assume the GNU/Linux dynamic linker is in use. 16095 dynamic_linker='GNU/Linux ld.so' 16096 ;; 16097 16098knetbsd*-gnu) 16099 version_type=linux 16100 need_lib_prefix=no 16101 need_version=no 16102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16103 soname_spec='${libname}${release}${shared_ext}$major' 16104 shlibpath_var=LD_LIBRARY_PATH 16105 shlibpath_overrides_runpath=no 16106 hardcode_into_libs=yes 16107 dynamic_linker='GNU ld.so' 16108 ;; 16109 16110netbsd*) 16111 version_type=sunos 16112 need_lib_prefix=no 16113 need_version=no 16114 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16116 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16117 dynamic_linker='NetBSD (a.out) ld.so' 16118 else 16119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16120 soname_spec='${libname}${release}${shared_ext}$major' 16121 dynamic_linker='NetBSD ld.elf_so' 16122 fi 16123 shlibpath_var=LD_LIBRARY_PATH 16124 shlibpath_overrides_runpath=yes 16125 hardcode_into_libs=yes 16126 ;; 16127 16128newsos6) 16129 version_type=linux 16130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16131 shlibpath_var=LD_LIBRARY_PATH 16132 shlibpath_overrides_runpath=yes 16133 ;; 16134 16135nto-qnx*) 16136 version_type=linux 16137 need_lib_prefix=no 16138 need_version=no 16139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16140 soname_spec='${libname}${release}${shared_ext}$major' 16141 shlibpath_var=LD_LIBRARY_PATH 16142 shlibpath_overrides_runpath=yes 16143 ;; 16144 16145openbsd*) 16146 version_type=sunos 16147 sys_lib_dlsearch_path_spec="/usr/lib" 16148 need_lib_prefix=no 16149 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16150 case $host_os in 16151 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16152 *) need_version=no ;; 16153 esac 16154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16155 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16156 shlibpath_var=LD_LIBRARY_PATH 16157 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16158 case $host_os in 16159 openbsd2.[89] | openbsd2.[89].*) 16160 shlibpath_overrides_runpath=no 16161 ;; 16162 *) 16163 shlibpath_overrides_runpath=yes 16164 ;; 16165 esac 16166 else 16167 shlibpath_overrides_runpath=yes 16168 fi 16169 ;; 16170 16171os2*) 16172 libname_spec='$name' 16173 shrext_cmds=".dll" 16174 need_lib_prefix=no 16175 library_names_spec='$libname${shared_ext} $libname.a' 16176 dynamic_linker='OS/2 ld.exe' 16177 shlibpath_var=LIBPATH 16178 ;; 16179 16180osf3* | osf4* | osf5*) 16181 version_type=osf 16182 need_lib_prefix=no 16183 need_version=no 16184 soname_spec='${libname}${release}${shared_ext}$major' 16185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16186 shlibpath_var=LD_LIBRARY_PATH 16187 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16188 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16189 ;; 16190 16191solaris*) 16192 version_type=linux 16193 need_lib_prefix=no 16194 need_version=no 16195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16196 soname_spec='${libname}${release}${shared_ext}$major' 16197 shlibpath_var=LD_LIBRARY_PATH 16198 shlibpath_overrides_runpath=yes 16199 hardcode_into_libs=yes 16200 # ldd complains unless libraries are executable 16201 postinstall_cmds='chmod +x $lib' 16202 ;; 16203 16204sunos4*) 16205 version_type=sunos 16206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16207 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16208 shlibpath_var=LD_LIBRARY_PATH 16209 shlibpath_overrides_runpath=yes 16210 if test "$with_gnu_ld" = yes; then 16211 need_lib_prefix=no 16212 fi 16213 need_version=yes 16214 ;; 16215 16216sysv4 | sysv4.3*) 16217 version_type=linux 16218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16219 soname_spec='${libname}${release}${shared_ext}$major' 16220 shlibpath_var=LD_LIBRARY_PATH 16221 case $host_vendor in 16222 sni) 16223 shlibpath_overrides_runpath=no 16224 need_lib_prefix=no 16225 export_dynamic_flag_spec='${wl}-Blargedynsym' 16226 runpath_var=LD_RUN_PATH 16227 ;; 16228 siemens) 16229 need_lib_prefix=no 16230 ;; 16231 motorola) 16232 need_lib_prefix=no 16233 need_version=no 16234 shlibpath_overrides_runpath=no 16235 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16236 ;; 16237 esac 16238 ;; 16239 16240sysv4*MP*) 16241 if test -d /usr/nec ;then 16242 version_type=linux 16243 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16244 soname_spec='$libname${shared_ext}.$major' 16245 shlibpath_var=LD_LIBRARY_PATH 16246 fi 16247 ;; 16248 16249sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16250 version_type=freebsd-elf 16251 need_lib_prefix=no 16252 need_version=no 16253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16254 soname_spec='${libname}${release}${shared_ext}$major' 16255 shlibpath_var=LD_LIBRARY_PATH 16256 hardcode_into_libs=yes 16257 if test "$with_gnu_ld" = yes; then 16258 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16259 shlibpath_overrides_runpath=no 16260 else 16261 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16262 shlibpath_overrides_runpath=yes 16263 case $host_os in 16264 sco3.2v5*) 16265 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16266 ;; 16267 esac 16268 fi 16269 sys_lib_dlsearch_path_spec='/usr/lib' 16270 ;; 16271 16272uts4*) 16273 version_type=linux 16274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16275 soname_spec='${libname}${release}${shared_ext}$major' 16276 shlibpath_var=LD_LIBRARY_PATH 16277 ;; 16278 16279*) 16280 dynamic_linker=no 16281 ;; 16282esac 16283{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16284echo "${ECHO_T}$dynamic_linker" >&6; } 16285test "$dynamic_linker" = no && can_build_shared=no 16286 16287variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16288if test "$GCC" = yes; then 16289 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16290fi 16291 16292{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16293echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 16294hardcode_action_F77= 16295if test -n "$hardcode_libdir_flag_spec_F77" || \ 16296 test -n "$runpath_var_F77" || \ 16297 test "X$hardcode_automatic_F77" = "Xyes" ; then 16298 16299 # We can hardcode non-existant directories. 16300 if test "$hardcode_direct_F77" != no && 16301 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16302 # have to relink, otherwise we might link with an installed library 16303 # when we should be linking with a yet-to-be-installed one 16304 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 16305 test "$hardcode_minus_L_F77" != no; then 16306 # Linking always hardcodes the temporary library directory. 16307 hardcode_action_F77=relink 16308 else 16309 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16310 hardcode_action_F77=immediate 16311 fi 16312else 16313 # We cannot hardcode anything, or else we can only hardcode existing 16314 # directories. 16315 hardcode_action_F77=unsupported 16316fi 16317{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 16318echo "${ECHO_T}$hardcode_action_F77" >&6; } 16319 16320if test "$hardcode_action_F77" = relink; then 16321 # Fast installation is not supported 16322 enable_fast_install=no 16323elif test "$shlibpath_overrides_runpath" = yes || 16324 test "$enable_shared" = no; then 16325 # Fast installation is not necessary 16326 enable_fast_install=needless 16327fi 16328 16329 16330# The else clause should only fire when bootstrapping the 16331# libtool distribution, otherwise you forgot to ship ltmain.sh 16332# with your package, and you will get complaints that there are 16333# no rules to generate ltmain.sh. 16334if test -f "$ltmain"; then 16335 # See if we are running on zsh, and set the options which allow our commands through 16336 # without removal of \ escapes. 16337 if test -n "${ZSH_VERSION+set}" ; then 16338 setopt NO_GLOB_SUBST 16339 fi 16340 # Now quote all the things that may contain metacharacters while being 16341 # careful not to overquote the AC_SUBSTed values. We take copies of the 16342 # variables and quote the copies for generation of the libtool script. 16343 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 16344 SED SHELL STRIP \ 16345 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16346 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16347 deplibs_check_method reload_flag reload_cmds need_locks \ 16348 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16349 lt_cv_sys_global_symbol_to_c_name_address \ 16350 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16351 old_postinstall_cmds old_postuninstall_cmds \ 16352 compiler_F77 \ 16353 CC_F77 \ 16354 LD_F77 \ 16355 lt_prog_compiler_wl_F77 \ 16356 lt_prog_compiler_pic_F77 \ 16357 lt_prog_compiler_static_F77 \ 16358 lt_prog_compiler_no_builtin_flag_F77 \ 16359 export_dynamic_flag_spec_F77 \ 16360 thread_safe_flag_spec_F77 \ 16361 whole_archive_flag_spec_F77 \ 16362 enable_shared_with_static_runtimes_F77 \ 16363 old_archive_cmds_F77 \ 16364 old_archive_from_new_cmds_F77 \ 16365 predep_objects_F77 \ 16366 postdep_objects_F77 \ 16367 predeps_F77 \ 16368 postdeps_F77 \ 16369 compiler_lib_search_path_F77 \ 16370 archive_cmds_F77 \ 16371 archive_expsym_cmds_F77 \ 16372 postinstall_cmds_F77 \ 16373 postuninstall_cmds_F77 \ 16374 old_archive_from_expsyms_cmds_F77 \ 16375 allow_undefined_flag_F77 \ 16376 no_undefined_flag_F77 \ 16377 export_symbols_cmds_F77 \ 16378 hardcode_libdir_flag_spec_F77 \ 16379 hardcode_libdir_flag_spec_ld_F77 \ 16380 hardcode_libdir_separator_F77 \ 16381 hardcode_automatic_F77 \ 16382 module_cmds_F77 \ 16383 module_expsym_cmds_F77 \ 16384 lt_cv_prog_compiler_c_o_F77 \ 16385 exclude_expsyms_F77 \ 16386 include_expsyms_F77; do 16387 16388 case $var in 16389 old_archive_cmds_F77 | \ 16390 old_archive_from_new_cmds_F77 | \ 16391 archive_cmds_F77 | \ 16392 archive_expsym_cmds_F77 | \ 16393 module_cmds_F77 | \ 16394 module_expsym_cmds_F77 | \ 16395 old_archive_from_expsyms_cmds_F77 | \ 16396 export_symbols_cmds_F77 | \ 16397 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16398 postinstall_cmds | postuninstall_cmds | \ 16399 old_postinstall_cmds | old_postuninstall_cmds | \ 16400 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16401 # Double-quote double-evaled strings. 16402 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16403 ;; 16404 *) 16405 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16406 ;; 16407 esac 16408 done 16409 16410 case $lt_echo in 16411 *'\$0 --fallback-echo"') 16412 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16413 ;; 16414 esac 16415 16416cfgfile="$ofile" 16417 16418 cat <<__EOF__ >> "$cfgfile" 16419# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16420 16421# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16422 16423# Shell to use when invoking shell scripts. 16424SHELL=$lt_SHELL 16425 16426# Whether or not to build shared libraries. 16427build_libtool_libs=$enable_shared 16428 16429# Whether or not to build static libraries. 16430build_old_libs=$enable_static 16431 16432# Whether or not to add -lc for building shared libraries. 16433build_libtool_need_lc=$archive_cmds_need_lc_F77 16434 16435# Whether or not to disallow shared libs when runtime libs are static 16436allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 16437 16438# Whether or not to optimize for fast installation. 16439fast_install=$enable_fast_install 16440 16441# The host system. 16442host_alias=$host_alias 16443host=$host 16444host_os=$host_os 16445 16446# The build system. 16447build_alias=$build_alias 16448build=$build 16449build_os=$build_os 16450 16451# An echo program that does not interpret backslashes. 16452echo=$lt_echo 16453 16454# The archiver. 16455AR=$lt_AR 16456AR_FLAGS=$lt_AR_FLAGS 16457 16458# A C compiler. 16459LTCC=$lt_LTCC 16460 16461# LTCC compiler flags. 16462LTCFLAGS=$lt_LTCFLAGS 16463 16464# A language-specific compiler. 16465CC=$lt_compiler_F77 16466 16467# Is the compiler the GNU C compiler? 16468with_gcc=$GCC_F77 16469 16470# An ERE matcher. 16471EGREP=$lt_EGREP 16472 16473# The linker used to build libraries. 16474LD=$lt_LD_F77 16475 16476# Whether we need hard or soft links. 16477LN_S=$lt_LN_S 16478 16479# A BSD-compatible nm program. 16480NM=$lt_NM 16481 16482# A symbol stripping program 16483STRIP=$lt_STRIP 16484 16485# Used to examine libraries when file_magic_cmd begins "file" 16486MAGIC_CMD=$MAGIC_CMD 16487 16488# Used on cygwin: DLL creation program. 16489DLLTOOL="$DLLTOOL" 16490 16491# Used on cygwin: object dumper. 16492OBJDUMP="$OBJDUMP" 16493 16494# Used on cygwin: assembler. 16495AS="$AS" 16496 16497# The name of the directory that contains temporary libtool files. 16498objdir=$objdir 16499 16500# How to create reloadable object files. 16501reload_flag=$lt_reload_flag 16502reload_cmds=$lt_reload_cmds 16503 16504# How to pass a linker flag through the compiler. 16505wl=$lt_lt_prog_compiler_wl_F77 16506 16507# Object file suffix (normally "o"). 16508objext="$ac_objext" 16509 16510# Old archive suffix (normally "a"). 16511libext="$libext" 16512 16513# Shared library suffix (normally ".so"). 16514shrext_cmds='$shrext_cmds' 16515 16516# Executable file suffix (normally ""). 16517exeext="$exeext" 16518 16519# Additional compiler flags for building library objects. 16520pic_flag=$lt_lt_prog_compiler_pic_F77 16521pic_mode=$pic_mode 16522 16523# What is the maximum length of a command? 16524max_cmd_len=$lt_cv_sys_max_cmd_len 16525 16526# Does compiler simultaneously support -c and -o options? 16527compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16528 16529# Must we lock files when doing compilation? 16530need_locks=$lt_need_locks 16531 16532# Do we need the lib prefix for modules? 16533need_lib_prefix=$need_lib_prefix 16534 16535# Do we need a version for libraries? 16536need_version=$need_version 16537 16538# Whether dlopen is supported. 16539dlopen_support=$enable_dlopen 16540 16541# Whether dlopen of programs is supported. 16542dlopen_self=$enable_dlopen_self 16543 16544# Whether dlopen of statically linked programs is supported. 16545dlopen_self_static=$enable_dlopen_self_static 16546 16547# Compiler flag to prevent dynamic linking. 16548link_static_flag=$lt_lt_prog_compiler_static_F77 16549 16550# Compiler flag to turn off builtin functions. 16551no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16552 16553# Compiler flag to allow reflexive dlopens. 16554export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16555 16556# Compiler flag to generate shared objects directly from archives. 16557whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16558 16559# Compiler flag to generate thread-safe objects. 16560thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16561 16562# Library versioning type. 16563version_type=$version_type 16564 16565# Format of library name prefix. 16566libname_spec=$lt_libname_spec 16567 16568# List of archive names. First name is the real one, the rest are links. 16569# The last name is the one that the linker finds with -lNAME. 16570library_names_spec=$lt_library_names_spec 16571 16572# The coded name of the library, if different from the real name. 16573soname_spec=$lt_soname_spec 16574 16575# Commands used to build and install an old-style archive. 16576RANLIB=$lt_RANLIB 16577old_archive_cmds=$lt_old_archive_cmds_F77 16578old_postinstall_cmds=$lt_old_postinstall_cmds 16579old_postuninstall_cmds=$lt_old_postuninstall_cmds 16580 16581# Create an old-style archive from a shared archive. 16582old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16583 16584# Create a temporary old-style archive to link instead of a shared archive. 16585old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16586 16587# Commands used to build and install a shared archive. 16588archive_cmds=$lt_archive_cmds_F77 16589archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16590postinstall_cmds=$lt_postinstall_cmds 16591postuninstall_cmds=$lt_postuninstall_cmds 16592 16593# Commands used to build a loadable module (assumed same as above if empty) 16594module_cmds=$lt_module_cmds_F77 16595module_expsym_cmds=$lt_module_expsym_cmds_F77 16596 16597# Commands to strip libraries. 16598old_striplib=$lt_old_striplib 16599striplib=$lt_striplib 16600 16601# Dependencies to place before the objects being linked to create a 16602# shared library. 16603predep_objects=$lt_predep_objects_F77 16604 16605# Dependencies to place after the objects being linked to create a 16606# shared library. 16607postdep_objects=$lt_postdep_objects_F77 16608 16609# Dependencies to place before the objects being linked to create a 16610# shared library. 16611predeps=$lt_predeps_F77 16612 16613# Dependencies to place after the objects being linked to create a 16614# shared library. 16615postdeps=$lt_postdeps_F77 16616 16617# The library search path used internally by the compiler when linking 16618# a shared library. 16619compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16620 16621# Method to check whether dependent libraries are shared objects. 16622deplibs_check_method=$lt_deplibs_check_method 16623 16624# Command to use when deplibs_check_method == file_magic. 16625file_magic_cmd=$lt_file_magic_cmd 16626 16627# Flag that allows shared libraries with undefined symbols to be built. 16628allow_undefined_flag=$lt_allow_undefined_flag_F77 16629 16630# Flag that forces no undefined symbols. 16631no_undefined_flag=$lt_no_undefined_flag_F77 16632 16633# Commands used to finish a libtool library installation in a directory. 16634finish_cmds=$lt_finish_cmds 16635 16636# Same as above, but a single script fragment to be evaled but not shown. 16637finish_eval=$lt_finish_eval 16638 16639# Take the output of nm and produce a listing of raw symbols and C names. 16640global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16641 16642# Transform the output of nm in a proper C declaration 16643global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16644 16645# Transform the output of nm in a C name address pair 16646global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16647 16648# This is the shared library runtime path variable. 16649runpath_var=$runpath_var 16650 16651# This is the shared library path variable. 16652shlibpath_var=$shlibpath_var 16653 16654# Is shlibpath searched before the hard-coded library search path? 16655shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16656 16657# How to hardcode a shared library path into an executable. 16658hardcode_action=$hardcode_action_F77 16659 16660# Whether we should hardcode library paths into libraries. 16661hardcode_into_libs=$hardcode_into_libs 16662 16663# Flag to hardcode \$libdir into a binary during linking. 16664# This must work even if \$libdir does not exist. 16665hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16666 16667# If ld is used when linking, flag to hardcode \$libdir into 16668# a binary during linking. This must work even if \$libdir does 16669# not exist. 16670hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16671 16672# Whether we need a single -rpath flag with a separated argument. 16673hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16674 16675# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16676# resulting binary. 16677hardcode_direct=$hardcode_direct_F77 16678 16679# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16680# resulting binary. 16681hardcode_minus_L=$hardcode_minus_L_F77 16682 16683# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16684# the resulting binary. 16685hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16686 16687# Set to yes if building a shared library automatically hardcodes DIR into the library 16688# and all subsequent libraries and executables linked against it. 16689hardcode_automatic=$hardcode_automatic_F77 16690 16691# Variables whose values should be saved in libtool wrapper scripts and 16692# restored at relink time. 16693variables_saved_for_relink="$variables_saved_for_relink" 16694 16695# Whether libtool must link a program against all its dependency libraries. 16696link_all_deplibs=$link_all_deplibs_F77 16697 16698# Compile-time system search path for libraries 16699sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16700 16701# Run-time system search path for libraries 16702sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16703 16704# Fix the shell variable \$srcfile for the compiler. 16705fix_srcfile_path="$fix_srcfile_path_F77" 16706 16707# Set to yes if exported symbols are required. 16708always_export_symbols=$always_export_symbols_F77 16709 16710# The commands to list exported symbols. 16711export_symbols_cmds=$lt_export_symbols_cmds_F77 16712 16713# The commands to extract the exported symbol list from a shared archive. 16714extract_expsyms_cmds=$lt_extract_expsyms_cmds 16715 16716# Symbols that should not be listed in the preloaded symbols. 16717exclude_expsyms=$lt_exclude_expsyms_F77 16718 16719# Symbols that must always be exported. 16720include_expsyms=$lt_include_expsyms_F77 16721 16722# ### END LIBTOOL TAG CONFIG: $tagname 16723 16724__EOF__ 16725 16726 16727else 16728 # If there is no Makefile yet, we rely on a make rule to execute 16729 # `config.status --recheck' to rerun these tests and create the 16730 # libtool script then. 16731 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16732 if test -f "$ltmain_in"; then 16733 test -f Makefile && make "$ltmain" 16734 fi 16735fi 16736 16737 16738ac_ext=c 16739ac_cpp='$CPP $CPPFLAGS' 16740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16742ac_compiler_gnu=$ac_cv_c_compiler_gnu 16743 16744CC="$lt_save_CC" 16745 16746 else 16747 tagname="" 16748 fi 16749 ;; 16750 16751 GCJ) 16752 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16753 16754 16755# Source file extension for Java test sources. 16756ac_ext=java 16757 16758# Object file extension for compiled Java test sources. 16759objext=o 16760objext_GCJ=$objext 16761 16762# Code to be used in simple compile tests 16763lt_simple_compile_test_code="class foo {}\n" 16764 16765# Code to be used in simple link tests 16766lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 16767 16768# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16769 16770# If no C compiler was specified, use CC. 16771LTCC=${LTCC-"$CC"} 16772 16773# If no C compiler flags were specified, use CFLAGS. 16774LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16775 16776# Allow CC to be a program name with arguments. 16777compiler=$CC 16778 16779 16780# save warnings/boilerplate of simple test code 16781ac_outfile=conftest.$ac_objext 16782printf "$lt_simple_compile_test_code" >conftest.$ac_ext 16783eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16784_lt_compiler_boilerplate=`cat conftest.err` 16785$rm conftest* 16786 16787ac_outfile=conftest.$ac_objext 16788printf "$lt_simple_link_test_code" >conftest.$ac_ext 16789eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16790_lt_linker_boilerplate=`cat conftest.err` 16791$rm conftest* 16792 16793 16794# Allow CC to be a program name with arguments. 16795lt_save_CC="$CC" 16796CC=${GCJ-"gcj"} 16797compiler=$CC 16798compiler_GCJ=$CC 16799for cc_temp in $compiler""; do 16800 case $cc_temp in 16801 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16802 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16803 \-*) ;; 16804 *) break;; 16805 esac 16806done 16807cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16808 16809 16810# GCJ did not exist at the time GCC didn't implicitly link libc in. 16811archive_cmds_need_lc_GCJ=no 16812 16813old_archive_cmds_GCJ=$old_archive_cmds 16814 16815 16816lt_prog_compiler_no_builtin_flag_GCJ= 16817 16818if test "$GCC" = yes; then 16819 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16820 16821 16822{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16823echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 16824if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16825 echo $ECHO_N "(cached) $ECHO_C" >&6 16826else 16827 lt_cv_prog_compiler_rtti_exceptions=no 16828 ac_outfile=conftest.$ac_objext 16829 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16830 lt_compiler_flag="-fno-rtti -fno-exceptions" 16831 # Insert the option either (1) after the last *FLAGS variable, or 16832 # (2) before a word containing "conftest.", or (3) at the end. 16833 # Note that $ac_compile itself does not contain backslashes and begins 16834 # with a dollar sign (not a hyphen), so the echo should work correctly. 16835 # The option is referenced via a variable to avoid confusing sed. 16836 lt_compile=`echo "$ac_compile" | $SED \ 16837 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16838 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16839 -e 's:$: $lt_compiler_flag:'` 16840 (eval echo "\"\$as_me:16840: $lt_compile\"" >&5) 16841 (eval "$lt_compile" 2>conftest.err) 16842 ac_status=$? 16843 cat conftest.err >&5 16844 echo "$as_me:16844: \$? = $ac_status" >&5 16845 if (exit $ac_status) && test -s "$ac_outfile"; then 16846 # The compiler can only warn and ignore the option if not recognized 16847 # So say no if there are warnings other than the usual output. 16848 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16849 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16850 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16851 lt_cv_prog_compiler_rtti_exceptions=yes 16852 fi 16853 fi 16854 $rm conftest* 16855 16856fi 16857{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16858echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16859 16860if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16861 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16862else 16863 : 16864fi 16865 16866fi 16867 16868lt_prog_compiler_wl_GCJ= 16869lt_prog_compiler_pic_GCJ= 16870lt_prog_compiler_static_GCJ= 16871 16872{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16873echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 16874 16875 if test "$GCC" = yes; then 16876 lt_prog_compiler_wl_GCJ='-Wl,' 16877 lt_prog_compiler_static_GCJ='-static' 16878 16879 case $host_os in 16880 aix*) 16881 # All AIX code is PIC. 16882 if test "$host_cpu" = ia64; then 16883 # AIX 5 now supports IA64 processor 16884 lt_prog_compiler_static_GCJ='-Bstatic' 16885 fi 16886 ;; 16887 16888 amigaos*) 16889 # FIXME: we need at least 68020 code to build shared libraries, but 16890 # adding the `-m68020' flag to GCC prevents building anything better, 16891 # like `-m68040'. 16892 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16893 ;; 16894 16895 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16896 # PIC is the default for these OSes. 16897 ;; 16898 16899 mingw* | pw32* | os2*) 16900 # This hack is so that the source file can tell whether it is being 16901 # built for inclusion in a dll (and should export symbols for example). 16902 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16903 ;; 16904 16905 darwin* | rhapsody*) 16906 # PIC is the default on this platform 16907 # Common symbols not allowed in MH_DYLIB files 16908 lt_prog_compiler_pic_GCJ='-fno-common' 16909 ;; 16910 16911 interix3*) 16912 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16913 # Instead, we relocate shared libraries at runtime. 16914 ;; 16915 16916 msdosdjgpp*) 16917 # Just because we use GCC doesn't mean we suddenly get shared libraries 16918 # on systems that don't support them. 16919 lt_prog_compiler_can_build_shared_GCJ=no 16920 enable_shared=no 16921 ;; 16922 16923 sysv4*MP*) 16924 if test -d /usr/nec; then 16925 lt_prog_compiler_pic_GCJ=-Kconform_pic 16926 fi 16927 ;; 16928 16929 hpux*) 16930 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16931 # not for PA HP-UX. 16932 case $host_cpu in 16933 hppa*64*|ia64*) 16934 # +Z the default 16935 ;; 16936 *) 16937 lt_prog_compiler_pic_GCJ='-fPIC' 16938 ;; 16939 esac 16940 ;; 16941 16942 *) 16943 lt_prog_compiler_pic_GCJ='-fPIC' 16944 ;; 16945 esac 16946 else 16947 # PORTME Check for flag to pass linker flags through the system compiler. 16948 case $host_os in 16949 aix*) 16950 lt_prog_compiler_wl_GCJ='-Wl,' 16951 if test "$host_cpu" = ia64; then 16952 # AIX 5 now supports IA64 processor 16953 lt_prog_compiler_static_GCJ='-Bstatic' 16954 else 16955 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16956 fi 16957 ;; 16958 darwin*) 16959 # PIC is the default on this platform 16960 # Common symbols not allowed in MH_DYLIB files 16961 case $cc_basename in 16962 xlc*) 16963 lt_prog_compiler_pic_GCJ='-qnocommon' 16964 lt_prog_compiler_wl_GCJ='-Wl,' 16965 ;; 16966 esac 16967 ;; 16968 16969 mingw* | pw32* | os2*) 16970 # This hack is so that the source file can tell whether it is being 16971 # built for inclusion in a dll (and should export symbols for example). 16972 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16973 ;; 16974 16975 hpux9* | hpux10* | hpux11*) 16976 lt_prog_compiler_wl_GCJ='-Wl,' 16977 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16978 # not for PA HP-UX. 16979 case $host_cpu in 16980 hppa*64*|ia64*) 16981 # +Z the default 16982 ;; 16983 *) 16984 lt_prog_compiler_pic_GCJ='+Z' 16985 ;; 16986 esac 16987 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16988 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16989 ;; 16990 16991 irix5* | irix6* | nonstopux*) 16992 lt_prog_compiler_wl_GCJ='-Wl,' 16993 # PIC (with -KPIC) is the default. 16994 lt_prog_compiler_static_GCJ='-non_shared' 16995 ;; 16996 16997 newsos6) 16998 lt_prog_compiler_pic_GCJ='-KPIC' 16999 lt_prog_compiler_static_GCJ='-Bstatic' 17000 ;; 17001 17002 linux*) 17003 case $cc_basename in 17004 icc* | ecc*) 17005 lt_prog_compiler_wl_GCJ='-Wl,' 17006 lt_prog_compiler_pic_GCJ='-KPIC' 17007 lt_prog_compiler_static_GCJ='-static' 17008 ;; 17009 pgcc* | pgf77* | pgf90* | pgf95*) 17010 # Portland Group compilers (*not* the Pentium gcc compiler, 17011 # which looks to be a dead project) 17012 lt_prog_compiler_wl_GCJ='-Wl,' 17013 lt_prog_compiler_pic_GCJ='-fpic' 17014 lt_prog_compiler_static_GCJ='-Bstatic' 17015 ;; 17016 ccc*) 17017 lt_prog_compiler_wl_GCJ='-Wl,' 17018 # All Alpha code is PIC. 17019 lt_prog_compiler_static_GCJ='-non_shared' 17020 ;; 17021 esac 17022 ;; 17023 17024 osf3* | osf4* | osf5*) 17025 lt_prog_compiler_wl_GCJ='-Wl,' 17026 # All OSF/1 code is PIC. 17027 lt_prog_compiler_static_GCJ='-non_shared' 17028 ;; 17029 17030 solaris*) 17031 lt_prog_compiler_pic_GCJ='-KPIC' 17032 lt_prog_compiler_static_GCJ='-Bstatic' 17033 case $cc_basename in 17034 f77* | f90* | f95*) 17035 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 17036 *) 17037 lt_prog_compiler_wl_GCJ='-Wl,';; 17038 esac 17039 ;; 17040 17041 sunos4*) 17042 lt_prog_compiler_wl_GCJ='-Qoption ld ' 17043 lt_prog_compiler_pic_GCJ='-PIC' 17044 lt_prog_compiler_static_GCJ='-Bstatic' 17045 ;; 17046 17047 sysv4 | sysv4.2uw2* | sysv4.3*) 17048 lt_prog_compiler_wl_GCJ='-Wl,' 17049 lt_prog_compiler_pic_GCJ='-KPIC' 17050 lt_prog_compiler_static_GCJ='-Bstatic' 17051 ;; 17052 17053 sysv4*MP*) 17054 if test -d /usr/nec ;then 17055 lt_prog_compiler_pic_GCJ='-Kconform_pic' 17056 lt_prog_compiler_static_GCJ='-Bstatic' 17057 fi 17058 ;; 17059 17060 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 17061 lt_prog_compiler_wl_GCJ='-Wl,' 17062 lt_prog_compiler_pic_GCJ='-KPIC' 17063 lt_prog_compiler_static_GCJ='-Bstatic' 17064 ;; 17065 17066 unicos*) 17067 lt_prog_compiler_wl_GCJ='-Wl,' 17068 lt_prog_compiler_can_build_shared_GCJ=no 17069 ;; 17070 17071 uts4*) 17072 lt_prog_compiler_pic_GCJ='-pic' 17073 lt_prog_compiler_static_GCJ='-Bstatic' 17074 ;; 17075 17076 *) 17077 lt_prog_compiler_can_build_shared_GCJ=no 17078 ;; 17079 esac 17080 fi 17081 17082{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 17083echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 17084 17085# 17086# Check to make sure the PIC flag actually works. 17087# 17088if test -n "$lt_prog_compiler_pic_GCJ"; then 17089 17090{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 17091echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 17092if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 17093 echo $ECHO_N "(cached) $ECHO_C" >&6 17094else 17095 lt_prog_compiler_pic_works_GCJ=no 17096 ac_outfile=conftest.$ac_objext 17097 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17098 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 17099 # Insert the option either (1) after the last *FLAGS variable, or 17100 # (2) before a word containing "conftest.", or (3) at the end. 17101 # Note that $ac_compile itself does not contain backslashes and begins 17102 # with a dollar sign (not a hyphen), so the echo should work correctly. 17103 # The option is referenced via a variable to avoid confusing sed. 17104 lt_compile=`echo "$ac_compile" | $SED \ 17105 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17106 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17107 -e 's:$: $lt_compiler_flag:'` 17108 (eval echo "\"\$as_me:17108: $lt_compile\"" >&5) 17109 (eval "$lt_compile" 2>conftest.err) 17110 ac_status=$? 17111 cat conftest.err >&5 17112 echo "$as_me:17112: \$? = $ac_status" >&5 17113 if (exit $ac_status) && test -s "$ac_outfile"; then 17114 # The compiler can only warn and ignore the option if not recognized 17115 # So say no if there are warnings other than the usual output. 17116 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17117 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17118 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17119 lt_prog_compiler_pic_works_GCJ=yes 17120 fi 17121 fi 17122 $rm conftest* 17123 17124fi 17125{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 17126echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } 17127 17128if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 17129 case $lt_prog_compiler_pic_GCJ in 17130 "" | " "*) ;; 17131 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 17132 esac 17133else 17134 lt_prog_compiler_pic_GCJ= 17135 lt_prog_compiler_can_build_shared_GCJ=no 17136fi 17137 17138fi 17139case $host_os in 17140 # For platforms which do not support PIC, -DPIC is meaningless: 17141 *djgpp*) 17142 lt_prog_compiler_pic_GCJ= 17143 ;; 17144 *) 17145 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 17146 ;; 17147esac 17148 17149# 17150# Check to make sure the static flag actually works. 17151# 17152wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 17153{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17154echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 17155if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 17156 echo $ECHO_N "(cached) $ECHO_C" >&6 17157else 17158 lt_prog_compiler_static_works_GCJ=no 17159 save_LDFLAGS="$LDFLAGS" 17160 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17161 printf "$lt_simple_link_test_code" > conftest.$ac_ext 17162 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17163 # The linker can only warn and ignore the option if not recognized 17164 # So say no if there are warnings 17165 if test -s conftest.err; then 17166 # Append any errors to the config.log. 17167 cat conftest.err 1>&5 17168 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 17169 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17170 if diff conftest.exp conftest.er2 >/dev/null; then 17171 lt_prog_compiler_static_works_GCJ=yes 17172 fi 17173 else 17174 lt_prog_compiler_static_works_GCJ=yes 17175 fi 17176 fi 17177 $rm conftest* 17178 LDFLAGS="$save_LDFLAGS" 17179 17180fi 17181{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 17182echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } 17183 17184if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 17185 : 17186else 17187 lt_prog_compiler_static_GCJ= 17188fi 17189 17190 17191{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 17192echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 17193if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 17194 echo $ECHO_N "(cached) $ECHO_C" >&6 17195else 17196 lt_cv_prog_compiler_c_o_GCJ=no 17197 $rm -r conftest 2>/dev/null 17198 mkdir conftest 17199 cd conftest 17200 mkdir out 17201 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17202 17203 lt_compiler_flag="-o out/conftest2.$ac_objext" 17204 # Insert the option either (1) after the last *FLAGS variable, or 17205 # (2) before a word containing "conftest.", or (3) at the end. 17206 # Note that $ac_compile itself does not contain backslashes and begins 17207 # with a dollar sign (not a hyphen), so the echo should work correctly. 17208 lt_compile=`echo "$ac_compile" | $SED \ 17209 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17210 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17211 -e 's:$: $lt_compiler_flag:'` 17212 (eval echo "\"\$as_me:17212: $lt_compile\"" >&5) 17213 (eval "$lt_compile" 2>out/conftest.err) 17214 ac_status=$? 17215 cat out/conftest.err >&5 17216 echo "$as_me:17216: \$? = $ac_status" >&5 17217 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17218 then 17219 # The compiler can only warn and ignore the option if not recognized 17220 # So say no if there are warnings 17221 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 17222 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17223 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17224 lt_cv_prog_compiler_c_o_GCJ=yes 17225 fi 17226 fi 17227 chmod u+w . 2>&5 17228 $rm conftest* 17229 # SGI C++ compiler will create directory out/ii_files/ for 17230 # template instantiation 17231 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 17232 $rm out/* && rmdir out 17233 cd .. 17234 rmdir conftest 17235 $rm conftest* 17236 17237fi 17238{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 17239echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 17240 17241 17242hard_links="nottested" 17243if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 17244 # do not overwrite the value of need_locks provided by the user 17245 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 17246echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 17247 hard_links=yes 17248 $rm conftest* 17249 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17250 touch conftest.a 17251 ln conftest.a conftest.b 2>&5 || hard_links=no 17252 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17253 { echo "$as_me:$LINENO: result: $hard_links" >&5 17254echo "${ECHO_T}$hard_links" >&6; } 17255 if test "$hard_links" = no; then 17256 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17257echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17258 need_locks=warn 17259 fi 17260else 17261 need_locks=no 17262fi 17263 17264{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17265echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 17266 17267 runpath_var= 17268 allow_undefined_flag_GCJ= 17269 enable_shared_with_static_runtimes_GCJ=no 17270 archive_cmds_GCJ= 17271 archive_expsym_cmds_GCJ= 17272 old_archive_From_new_cmds_GCJ= 17273 old_archive_from_expsyms_cmds_GCJ= 17274 export_dynamic_flag_spec_GCJ= 17275 whole_archive_flag_spec_GCJ= 17276 thread_safe_flag_spec_GCJ= 17277 hardcode_libdir_flag_spec_GCJ= 17278 hardcode_libdir_flag_spec_ld_GCJ= 17279 hardcode_libdir_separator_GCJ= 17280 hardcode_direct_GCJ=no 17281 hardcode_minus_L_GCJ=no 17282 hardcode_shlibpath_var_GCJ=unsupported 17283 link_all_deplibs_GCJ=unknown 17284 hardcode_automatic_GCJ=no 17285 module_cmds_GCJ= 17286 module_expsym_cmds_GCJ= 17287 always_export_symbols_GCJ=no 17288 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17289 # include_expsyms should be a list of space-separated symbols to be *always* 17290 # included in the symbol list 17291 include_expsyms_GCJ= 17292 # exclude_expsyms can be an extended regexp of symbols to exclude 17293 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17294 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17295 # as well as any symbol that contains `d'. 17296 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 17297 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17298 # platforms (ab)use it in PIC code, but their linkers get confused if 17299 # the symbol is explicitly referenced. Since portable code cannot 17300 # rely on this symbol name, it's probably fine to never include it in 17301 # preloaded symbol tables. 17302 extract_expsyms_cmds= 17303 # Just being paranoid about ensuring that cc_basename is set. 17304 for cc_temp in $compiler""; do 17305 case $cc_temp in 17306 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17307 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17308 \-*) ;; 17309 *) break;; 17310 esac 17311done 17312cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17313 17314 case $host_os in 17315 cygwin* | mingw* | pw32*) 17316 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17317 # When not using gcc, we currently assume that we are using 17318 # Microsoft Visual C++. 17319 if test "$GCC" != yes; then 17320 with_gnu_ld=no 17321 fi 17322 ;; 17323 interix*) 17324 # we just hope/assume this is gcc and not c89 (= MSVC++) 17325 with_gnu_ld=yes 17326 ;; 17327 openbsd*) 17328 with_gnu_ld=no 17329 ;; 17330 esac 17331 17332 ld_shlibs_GCJ=yes 17333 if test "$with_gnu_ld" = yes; then 17334 # If archive_cmds runs LD, not CC, wlarc should be empty 17335 wlarc='${wl}' 17336 17337 # Set some defaults for GNU ld with shared library support. These 17338 # are reset later if shared libraries are not supported. Putting them 17339 # here allows them to be overridden if necessary. 17340 runpath_var=LD_RUN_PATH 17341 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 17342 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 17343 # ancient GNU ld didn't support --whole-archive et. al. 17344 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17345 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17346 else 17347 whole_archive_flag_spec_GCJ= 17348 fi 17349 supports_anon_versioning=no 17350 case `$LD -v 2>/dev/null` in 17351 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17352 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17353 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17354 *\ 2.11.*) ;; # other 2.11 versions 17355 *) supports_anon_versioning=yes ;; 17356 esac 17357 17358 # See if GNU ld supports shared libraries. 17359 case $host_os in 17360 aix3* | aix4* | aix5*) 17361 # On AIX/PPC, the GNU linker is very broken 17362 if test "$host_cpu" != ia64; then 17363 ld_shlibs_GCJ=no 17364 cat <<EOF 1>&2 17365 17366*** Warning: the GNU linker, at least up to release 2.9.1, is reported 17367*** to be unable to reliably create shared libraries on AIX. 17368*** Therefore, libtool is disabling shared libraries support. If you 17369*** really care for shared libraries, you may want to modify your PATH 17370*** so that a non-GNU linker is found, and then restart. 17371 17372EOF 17373 fi 17374 ;; 17375 17376 amigaos*) 17377 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)' 17378 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17379 hardcode_minus_L_GCJ=yes 17380 17381 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 17382 # that the semantics of dynamic libraries on AmigaOS, at least up 17383 # to version 4, is to share data among multiple programs linked 17384 # with the same dynamic library. Since this doesn't match the 17385 # behavior of shared libraries on other platforms, we can't use 17386 # them. 17387 ld_shlibs_GCJ=no 17388 ;; 17389 17390 beos*) 17391 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17392 allow_undefined_flag_GCJ=unsupported 17393 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17394 # support --undefined. This deserves some investigation. FIXME 17395 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17396 else 17397 ld_shlibs_GCJ=no 17398 fi 17399 ;; 17400 17401 cygwin* | mingw* | pw32*) 17402 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 17403 # as there is no search path for DLLs. 17404 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17405 allow_undefined_flag_GCJ=unsupported 17406 always_export_symbols_GCJ=no 17407 enable_shared_with_static_runtimes_GCJ=yes 17408 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 17409 17410 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17411 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17412 # If the export-symbols file already is a .def file (1st line 17413 # is EXPORTS), use it as is; otherwise, prepend... 17414 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17415 cp $export_symbols $output_objdir/$soname.def; 17416 else 17417 echo EXPORTS > $output_objdir/$soname.def; 17418 cat $export_symbols >> $output_objdir/$soname.def; 17419 fi~ 17420 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17421 else 17422 ld_shlibs_GCJ=no 17423 fi 17424 ;; 17425 17426 interix3*) 17427 hardcode_direct_GCJ=no 17428 hardcode_shlibpath_var_GCJ=no 17429 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17430 export_dynamic_flag_spec_GCJ='${wl}-E' 17431 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17432 # Instead, shared libraries are loaded at an image base (0x10000000 by 17433 # default) and relocated if they conflict, which is a slow very memory 17434 # consuming and fragmenting process. To avoid this, we pick a random, 17435 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17436 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17437 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' 17438 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' 17439 ;; 17440 17441 linux*) 17442 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17443 tmp_addflag= 17444 case $cc_basename,$host_cpu in 17445 pgcc*) # Portland Group C compiler 17446 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' 17447 tmp_addflag=' $pic_flag' 17448 ;; 17449 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17450 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' 17451 tmp_addflag=' $pic_flag -Mnomain' ;; 17452 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17453 tmp_addflag=' -i_dynamic' ;; 17454 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17455 tmp_addflag=' -i_dynamic -nofor_main' ;; 17456 ifc* | ifort*) # Intel Fortran compiler 17457 tmp_addflag=' -nofor_main' ;; 17458 esac 17459 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17460 17461 if test $supports_anon_versioning = yes; then 17462 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17463 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17464 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17465 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17466 fi 17467 else 17468 ld_shlibs_GCJ=no 17469 fi 17470 ;; 17471 17472 netbsd*) 17473 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17474 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17475 wlarc= 17476 else 17477 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17478 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17479 fi 17480 ;; 17481 17482 solaris*) 17483 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17484 ld_shlibs_GCJ=no 17485 cat <<EOF 1>&2 17486 17487*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17488*** create shared libraries on Solaris systems. Therefore, libtool 17489*** is disabling shared libraries support. We urge you to upgrade GNU 17490*** binutils to release 2.9.1 or newer. Another option is to modify 17491*** your PATH or compiler configuration so that the native linker is 17492*** used, and then restart. 17493 17494EOF 17495 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17496 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17497 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17498 else 17499 ld_shlibs_GCJ=no 17500 fi 17501 ;; 17502 17503 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17504 case `$LD -v 2>&1` in 17505 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17506 ld_shlibs_GCJ=no 17507 cat <<_LT_EOF 1>&2 17508 17509*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17510*** reliably create shared libraries on SCO systems. Therefore, libtool 17511*** is disabling shared libraries support. We urge you to upgrade GNU 17512*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17513*** your PATH or compiler configuration so that the native linker is 17514*** used, and then restart. 17515 17516_LT_EOF 17517 ;; 17518 *) 17519 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17520 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17521 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17522 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17523 else 17524 ld_shlibs_GCJ=no 17525 fi 17526 ;; 17527 esac 17528 ;; 17529 17530 sunos4*) 17531 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17532 wlarc= 17533 hardcode_direct_GCJ=yes 17534 hardcode_shlibpath_var_GCJ=no 17535 ;; 17536 17537 *) 17538 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17539 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17540 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17541 else 17542 ld_shlibs_GCJ=no 17543 fi 17544 ;; 17545 esac 17546 17547 if test "$ld_shlibs_GCJ" = no; then 17548 runpath_var= 17549 hardcode_libdir_flag_spec_GCJ= 17550 export_dynamic_flag_spec_GCJ= 17551 whole_archive_flag_spec_GCJ= 17552 fi 17553 else 17554 # PORTME fill in a description of your system's linker (not GNU ld) 17555 case $host_os in 17556 aix3*) 17557 allow_undefined_flag_GCJ=unsupported 17558 always_export_symbols_GCJ=yes 17559 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' 17560 # Note: this linker hardcodes the directories in LIBPATH if there 17561 # are no directories specified by -L. 17562 hardcode_minus_L_GCJ=yes 17563 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17564 # Neither direct hardcoding nor static linking is supported with a 17565 # broken collect2. 17566 hardcode_direct_GCJ=unsupported 17567 fi 17568 ;; 17569 17570 aix4* | aix5*) 17571 if test "$host_cpu" = ia64; then 17572 # On IA64, the linker does run time linking by default, so we don't 17573 # have to do anything special. 17574 aix_use_runtimelinking=no 17575 exp_sym_flag='-Bexport' 17576 no_entry_flag="" 17577 else 17578 # If we're using GNU nm, then we don't want the "-C" option. 17579 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17580 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17581 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' 17582 else 17583 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' 17584 fi 17585 aix_use_runtimelinking=no 17586 17587 # Test if we are trying to use run time linking or normal 17588 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17589 # need to do runtime linking. 17590 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 17591 for ld_flag in $LDFLAGS; do 17592 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17593 aix_use_runtimelinking=yes 17594 break 17595 fi 17596 done 17597 ;; 17598 esac 17599 17600 exp_sym_flag='-bexport' 17601 no_entry_flag='-bnoentry' 17602 fi 17603 17604 # When large executables or shared objects are built, AIX ld can 17605 # have problems creating the table of contents. If linking a library 17606 # or program results in "error TOC overflow" add -mminimal-toc to 17607 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17608 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17609 17610 archive_cmds_GCJ='' 17611 hardcode_direct_GCJ=yes 17612 hardcode_libdir_separator_GCJ=':' 17613 link_all_deplibs_GCJ=yes 17614 17615 if test "$GCC" = yes; then 17616 case $host_os in aix4.[012]|aix4.[012].*) 17617 # We only want to do this on AIX 4.2 and lower, the check 17618 # below for broken collect2 doesn't work under 4.3+ 17619 collect2name=`${CC} -print-prog-name=collect2` 17620 if test -f "$collect2name" && \ 17621 strings "$collect2name" | grep resolve_lib_name >/dev/null 17622 then 17623 # We have reworked collect2 17624 hardcode_direct_GCJ=yes 17625 else 17626 # We have old collect2 17627 hardcode_direct_GCJ=unsupported 17628 # It fails to find uninstalled libraries when the uninstalled 17629 # path is not listed in the libpath. Setting hardcode_minus_L 17630 # to unsupported forces relinking 17631 hardcode_minus_L_GCJ=yes 17632 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17633 hardcode_libdir_separator_GCJ= 17634 fi 17635 ;; 17636 esac 17637 shared_flag='-shared' 17638 if test "$aix_use_runtimelinking" = yes; then 17639 shared_flag="$shared_flag "'${wl}-G' 17640 fi 17641 else 17642 # not using gcc 17643 if test "$host_cpu" = ia64; then 17644 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17645 # chokes on -Wl,-G. The following line is correct: 17646 shared_flag='-G' 17647 else 17648 if test "$aix_use_runtimelinking" = yes; then 17649 shared_flag='${wl}-G' 17650 else 17651 shared_flag='${wl}-bM:SRE' 17652 fi 17653 fi 17654 fi 17655 17656 # It seems that -bexpall does not export symbols beginning with 17657 # underscore (_), so it is better to generate a list of symbols to export. 17658 always_export_symbols_GCJ=yes 17659 if test "$aix_use_runtimelinking" = yes; then 17660 # Warning - without using the other runtime loading flags (-brtl), 17661 # -berok will link without error, but may produce a broken library. 17662 allow_undefined_flag_GCJ='-berok' 17663 # Determine the default libpath from the value encoded in an empty executable. 17664 cat >conftest.$ac_ext <<_ACEOF 17665/* confdefs.h. */ 17666_ACEOF 17667cat confdefs.h >>conftest.$ac_ext 17668cat >>conftest.$ac_ext <<_ACEOF 17669/* end confdefs.h. */ 17670 17671int 17672main () 17673{ 17674 17675 ; 17676 return 0; 17677} 17678_ACEOF 17679rm -f conftest.$ac_objext conftest$ac_exeext 17680if { (ac_try="$ac_link" 17681case "(($ac_try" in 17682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17683 *) ac_try_echo=$ac_try;; 17684esac 17685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17686 (eval "$ac_link") 2>conftest.er1 17687 ac_status=$? 17688 grep -v '^ *+' conftest.er1 >conftest.err 17689 rm -f conftest.er1 17690 cat conftest.err >&5 17691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17692 (exit $ac_status); } && 17693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17694 { (case "(($ac_try" in 17695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17696 *) ac_try_echo=$ac_try;; 17697esac 17698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17699 (eval "$ac_try") 2>&5 17700 ac_status=$? 17701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17702 (exit $ac_status); }; } && 17703 { ac_try='test -s conftest$ac_exeext' 17704 { (case "(($ac_try" in 17705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17706 *) ac_try_echo=$ac_try;; 17707esac 17708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17709 (eval "$ac_try") 2>&5 17710 ac_status=$? 17711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17712 (exit $ac_status); }; }; then 17713 17714aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17715}'` 17716# Check for a 64-bit object if we didn't find anything. 17717if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17718}'`; fi 17719else 17720 echo "$as_me: failed program was:" >&5 17721sed 's/^/| /' conftest.$ac_ext >&5 17722 17723 17724fi 17725 17726rm -f core conftest.err conftest.$ac_objext \ 17727 conftest$ac_exeext conftest.$ac_ext 17728if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17729 17730 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17731 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" 17732 else 17733 if test "$host_cpu" = ia64; then 17734 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17735 allow_undefined_flag_GCJ="-z nodefs" 17736 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" 17737 else 17738 # Determine the default libpath from the value encoded in an empty executable. 17739 cat >conftest.$ac_ext <<_ACEOF 17740/* confdefs.h. */ 17741_ACEOF 17742cat confdefs.h >>conftest.$ac_ext 17743cat >>conftest.$ac_ext <<_ACEOF 17744/* end confdefs.h. */ 17745 17746int 17747main () 17748{ 17749 17750 ; 17751 return 0; 17752} 17753_ACEOF 17754rm -f conftest.$ac_objext conftest$ac_exeext 17755if { (ac_try="$ac_link" 17756case "(($ac_try" in 17757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17758 *) ac_try_echo=$ac_try;; 17759esac 17760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17761 (eval "$ac_link") 2>conftest.er1 17762 ac_status=$? 17763 grep -v '^ *+' conftest.er1 >conftest.err 17764 rm -f conftest.er1 17765 cat conftest.err >&5 17766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17767 (exit $ac_status); } && 17768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17769 { (case "(($ac_try" in 17770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17771 *) ac_try_echo=$ac_try;; 17772esac 17773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17774 (eval "$ac_try") 2>&5 17775 ac_status=$? 17776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17777 (exit $ac_status); }; } && 17778 { ac_try='test -s conftest$ac_exeext' 17779 { (case "(($ac_try" in 17780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17781 *) ac_try_echo=$ac_try;; 17782esac 17783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17784 (eval "$ac_try") 2>&5 17785 ac_status=$? 17786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17787 (exit $ac_status); }; }; then 17788 17789aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17790}'` 17791# Check for a 64-bit object if we didn't find anything. 17792if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17793}'`; fi 17794else 17795 echo "$as_me: failed program was:" >&5 17796sed 's/^/| /' conftest.$ac_ext >&5 17797 17798 17799fi 17800 17801rm -f core conftest.err conftest.$ac_objext \ 17802 conftest$ac_exeext conftest.$ac_ext 17803if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17804 17805 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17806 # Warning - without using the other run time loading flags, 17807 # -berok will link without error, but may produce a broken library. 17808 no_undefined_flag_GCJ=' ${wl}-bernotok' 17809 allow_undefined_flag_GCJ=' ${wl}-berok' 17810 # Exported symbols can be pulled into shared objects from archives 17811 whole_archive_flag_spec_GCJ='$convenience' 17812 archive_cmds_need_lc_GCJ=yes 17813 # This is similar to how AIX traditionally builds its shared libraries. 17814 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' 17815 fi 17816 fi 17817 ;; 17818 17819 amigaos*) 17820 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)' 17821 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17822 hardcode_minus_L_GCJ=yes 17823 # see comment about different semantics on the GNU ld section 17824 ld_shlibs_GCJ=no 17825 ;; 17826 17827 bsdi[45]*) 17828 export_dynamic_flag_spec_GCJ=-rdynamic 17829 ;; 17830 17831 cygwin* | mingw* | pw32*) 17832 # When not using gcc, we currently assume that we are using 17833 # Microsoft Visual C++. 17834 # hardcode_libdir_flag_spec is actually meaningless, as there is 17835 # no search path for DLLs. 17836 hardcode_libdir_flag_spec_GCJ=' ' 17837 allow_undefined_flag_GCJ=unsupported 17838 # Tell ltmain to make .lib files, not .a files. 17839 libext=lib 17840 # Tell ltmain to make .dll files, not .so files. 17841 shrext_cmds=".dll" 17842 # FIXME: Setting linknames here is a bad hack. 17843 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17844 # The linker will automatically build a .lib file if we build a DLL. 17845 old_archive_From_new_cmds_GCJ='true' 17846 # FIXME: Should let the user specify the lib program. 17847 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 17848 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17849 enable_shared_with_static_runtimes_GCJ=yes 17850 ;; 17851 17852 darwin* | rhapsody*) 17853 case $host_os in 17854 rhapsody* | darwin1.[012]) 17855 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17856 ;; 17857 *) # Darwin 1.3 on 17858 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17859 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17860 else 17861 case ${MACOSX_DEPLOYMENT_TARGET} in 17862 10.[012]) 17863 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17864 ;; 17865 10.*) 17866 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17867 ;; 17868 esac 17869 fi 17870 ;; 17871 esac 17872 archive_cmds_need_lc_GCJ=no 17873 hardcode_direct_GCJ=no 17874 hardcode_automatic_GCJ=yes 17875 hardcode_shlibpath_var_GCJ=unsupported 17876 whole_archive_flag_spec_GCJ='' 17877 link_all_deplibs_GCJ=yes 17878 if test "$GCC" = yes ; then 17879 output_verbose_link_cmd='echo' 17880 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17881 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17882 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17883 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17884 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}' 17885 else 17886 case $cc_basename in 17887 xlc*) 17888 output_verbose_link_cmd='echo' 17889 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 17890 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17891 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17892 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17893 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}' 17894 ;; 17895 *) 17896 ld_shlibs_GCJ=no 17897 ;; 17898 esac 17899 fi 17900 ;; 17901 17902 dgux*) 17903 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17904 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17905 hardcode_shlibpath_var_GCJ=no 17906 ;; 17907 17908 freebsd1*) 17909 ld_shlibs_GCJ=no 17910 ;; 17911 17912 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17913 # support. Future versions do this automatically, but an explicit c++rt0.o 17914 # does not break anything, and helps significantly (at the cost of a little 17915 # extra space). 17916 freebsd2.2*) 17917 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17918 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17919 hardcode_direct_GCJ=yes 17920 hardcode_shlibpath_var_GCJ=no 17921 ;; 17922 17923 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17924 freebsd2*) 17925 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17926 hardcode_direct_GCJ=yes 17927 hardcode_minus_L_GCJ=yes 17928 hardcode_shlibpath_var_GCJ=no 17929 ;; 17930 17931 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17932 freebsd* | kfreebsd*-gnu | dragonfly*) 17933 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17934 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17935 hardcode_direct_GCJ=yes 17936 hardcode_shlibpath_var_GCJ=no 17937 ;; 17938 17939 hpux9*) 17940 if test "$GCC" = yes; then 17941 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' 17942 else 17943 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' 17944 fi 17945 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17946 hardcode_libdir_separator_GCJ=: 17947 hardcode_direct_GCJ=yes 17948 17949 # hardcode_minus_L: Not really in the search PATH, 17950 # but as the default location of the library. 17951 hardcode_minus_L_GCJ=yes 17952 export_dynamic_flag_spec_GCJ='${wl}-E' 17953 ;; 17954 17955 hpux10*) 17956 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17957 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17958 else 17959 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17960 fi 17961 if test "$with_gnu_ld" = no; then 17962 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17963 hardcode_libdir_separator_GCJ=: 17964 17965 hardcode_direct_GCJ=yes 17966 export_dynamic_flag_spec_GCJ='${wl}-E' 17967 17968 # hardcode_minus_L: Not really in the search PATH, 17969 # but as the default location of the library. 17970 hardcode_minus_L_GCJ=yes 17971 fi 17972 ;; 17973 17974 hpux11*) 17975 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17976 case $host_cpu in 17977 hppa*64*) 17978 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17979 ;; 17980 ia64*) 17981 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17982 ;; 17983 *) 17984 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17985 ;; 17986 esac 17987 else 17988 case $host_cpu in 17989 hppa*64*) 17990 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17991 ;; 17992 ia64*) 17993 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17994 ;; 17995 *) 17996 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17997 ;; 17998 esac 17999 fi 18000 if test "$with_gnu_ld" = no; then 18001 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18002 hardcode_libdir_separator_GCJ=: 18003 18004 case $host_cpu in 18005 hppa*64*|ia64*) 18006 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 18007 hardcode_direct_GCJ=no 18008 hardcode_shlibpath_var_GCJ=no 18009 ;; 18010 *) 18011 hardcode_direct_GCJ=yes 18012 export_dynamic_flag_spec_GCJ='${wl}-E' 18013 18014 # hardcode_minus_L: Not really in the search PATH, 18015 # but as the default location of the library. 18016 hardcode_minus_L_GCJ=yes 18017 ;; 18018 esac 18019 fi 18020 ;; 18021 18022 irix5* | irix6* | nonstopux*) 18023 if test "$GCC" = yes; then 18024 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' 18025 else 18026 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' 18027 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 18028 fi 18029 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18030 hardcode_libdir_separator_GCJ=: 18031 link_all_deplibs_GCJ=yes 18032 ;; 18033 18034 netbsd*) 18035 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18036 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 18037 else 18038 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 18039 fi 18040 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18041 hardcode_direct_GCJ=yes 18042 hardcode_shlibpath_var_GCJ=no 18043 ;; 18044 18045 newsos6) 18046 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18047 hardcode_direct_GCJ=yes 18048 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18049 hardcode_libdir_separator_GCJ=: 18050 hardcode_shlibpath_var_GCJ=no 18051 ;; 18052 18053 openbsd*) 18054 hardcode_direct_GCJ=yes 18055 hardcode_shlibpath_var_GCJ=no 18056 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18057 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18058 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 18059 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18060 export_dynamic_flag_spec_GCJ='${wl}-E' 18061 else 18062 case $host_os in 18063 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 18064 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18065 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18066 ;; 18067 *) 18068 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18069 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18070 ;; 18071 esac 18072 fi 18073 ;; 18074 18075 os2*) 18076 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18077 hardcode_minus_L_GCJ=yes 18078 allow_undefined_flag_GCJ=unsupported 18079 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' 18080 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 18081 ;; 18082 18083 osf3*) 18084 if test "$GCC" = yes; then 18085 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18086 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' 18087 else 18088 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18089 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' 18090 fi 18091 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18092 hardcode_libdir_separator_GCJ=: 18093 ;; 18094 18095 osf4* | osf5*) # as osf3* with the addition of -msym flag 18096 if test "$GCC" = yes; then 18097 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18098 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' 18099 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18100 else 18101 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18102 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' 18103 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~ 18104 $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' 18105 18106 # Both c and cxx compiler support -rpath directly 18107 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 18108 fi 18109 hardcode_libdir_separator_GCJ=: 18110 ;; 18111 18112 solaris*) 18113 no_undefined_flag_GCJ=' -z text' 18114 if test "$GCC" = yes; then 18115 wlarc='${wl}' 18116 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18117 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18118 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 18119 else 18120 wlarc='' 18121 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 18122 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18123 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 18124 fi 18125 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18126 hardcode_shlibpath_var_GCJ=no 18127 case $host_os in 18128 solaris2.[0-5] | solaris2.[0-5].*) ;; 18129 *) 18130 # The compiler driver will combine linker options so we 18131 # cannot just pass the convience library names through 18132 # without $wl, iff we do not link with $LD. 18133 # Luckily, gcc supports the same syntax we need for Sun Studio. 18134 # Supported since Solaris 2.6 (maybe 2.5.1?) 18135 case $wlarc in 18136 '') 18137 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 18138 *) 18139 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 18140 esac ;; 18141 esac 18142 link_all_deplibs_GCJ=yes 18143 ;; 18144 18145 sunos4*) 18146 if test "x$host_vendor" = xsequent; then 18147 # Use $CC to link under sequent, because it throws in some extra .o 18148 # files that make .init and .fini sections work. 18149 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 18150 else 18151 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 18152 fi 18153 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18154 hardcode_direct_GCJ=yes 18155 hardcode_minus_L_GCJ=yes 18156 hardcode_shlibpath_var_GCJ=no 18157 ;; 18158 18159 sysv4) 18160 case $host_vendor in 18161 sni) 18162 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18163 hardcode_direct_GCJ=yes # is this really true??? 18164 ;; 18165 siemens) 18166 ## LD is ld it makes a PLAMLIB 18167 ## CC just makes a GrossModule. 18168 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18169 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 18170 hardcode_direct_GCJ=no 18171 ;; 18172 motorola) 18173 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18174 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 18175 ;; 18176 esac 18177 runpath_var='LD_RUN_PATH' 18178 hardcode_shlibpath_var_GCJ=no 18179 ;; 18180 18181 sysv4.3*) 18182 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18183 hardcode_shlibpath_var_GCJ=no 18184 export_dynamic_flag_spec_GCJ='-Bexport' 18185 ;; 18186 18187 sysv4*MP*) 18188 if test -d /usr/nec; then 18189 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18190 hardcode_shlibpath_var_GCJ=no 18191 runpath_var=LD_RUN_PATH 18192 hardcode_runpath_var=yes 18193 ld_shlibs_GCJ=yes 18194 fi 18195 ;; 18196 18197 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 18198 no_undefined_flag_GCJ='${wl}-z,text' 18199 archive_cmds_need_lc_GCJ=no 18200 hardcode_shlibpath_var_GCJ=no 18201 runpath_var='LD_RUN_PATH' 18202 18203 if test "$GCC" = yes; then 18204 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18205 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18206 else 18207 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18208 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18209 fi 18210 ;; 18211 18212 sysv5* | sco3.2v5* | sco5v6*) 18213 # Note: We can NOT use -z defs as we might desire, because we do not 18214 # link with -lc, and that would cause any symbols used from libc to 18215 # always be unresolved, which means just about no library would 18216 # ever link correctly. If we're not using GNU ld we use -z text 18217 # though, which does catch some bad symbols but isn't as heavy-handed 18218 # as -z defs. 18219 no_undefined_flag_GCJ='${wl}-z,text' 18220 allow_undefined_flag_GCJ='${wl}-z,nodefs' 18221 archive_cmds_need_lc_GCJ=no 18222 hardcode_shlibpath_var_GCJ=no 18223 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 18224 hardcode_libdir_separator_GCJ=':' 18225 link_all_deplibs_GCJ=yes 18226 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 18227 runpath_var='LD_RUN_PATH' 18228 18229 if test "$GCC" = yes; then 18230 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18231 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18232 else 18233 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18234 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18235 fi 18236 ;; 18237 18238 uts4*) 18239 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18240 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18241 hardcode_shlibpath_var_GCJ=no 18242 ;; 18243 18244 *) 18245 ld_shlibs_GCJ=no 18246 ;; 18247 esac 18248 fi 18249 18250{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 18251echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 18252test "$ld_shlibs_GCJ" = no && can_build_shared=no 18253 18254# 18255# Do we need to explicitly link libc? 18256# 18257case "x$archive_cmds_need_lc_GCJ" in 18258x|xyes) 18259 # Assume -lc should be added 18260 archive_cmds_need_lc_GCJ=yes 18261 18262 if test "$enable_shared" = yes && test "$GCC" = yes; then 18263 case $archive_cmds_GCJ in 18264 *'~'*) 18265 # FIXME: we may have to deal with multi-command sequences. 18266 ;; 18267 '$CC '*) 18268 # Test whether the compiler implicitly links with -lc since on some 18269 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18270 # to ld, don't add -lc before -lgcc. 18271 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 18272echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 18273 $rm conftest* 18274 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 18275 18276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18277 (eval $ac_compile) 2>&5 18278 ac_status=$? 18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18280 (exit $ac_status); } 2>conftest.err; then 18281 soname=conftest 18282 lib=conftest 18283 libobjs=conftest.$ac_objext 18284 deplibs= 18285 wl=$lt_prog_compiler_wl_GCJ 18286 pic_flag=$lt_prog_compiler_pic_GCJ 18287 compiler_flags=-v 18288 linker_flags=-v 18289 verstring= 18290 output_objdir=. 18291 libname=conftest 18292 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 18293 allow_undefined_flag_GCJ= 18294 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 18295 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18296 ac_status=$? 18297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18298 (exit $ac_status); } 18299 then 18300 archive_cmds_need_lc_GCJ=no 18301 else 18302 archive_cmds_need_lc_GCJ=yes 18303 fi 18304 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 18305 else 18306 cat conftest.err 1>&5 18307 fi 18308 $rm conftest* 18309 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 18310echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 18311 ;; 18312 esac 18313 fi 18314 ;; 18315esac 18316 18317{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 18318echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 18319library_names_spec= 18320libname_spec='lib$name' 18321soname_spec= 18322shrext_cmds=".so" 18323postinstall_cmds= 18324postuninstall_cmds= 18325finish_cmds= 18326finish_eval= 18327shlibpath_var= 18328shlibpath_overrides_runpath=unknown 18329version_type=none 18330dynamic_linker="$host_os ld.so" 18331sys_lib_dlsearch_path_spec="/lib /usr/lib" 18332if test "$GCC" = yes; then 18333 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18334 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 18335 # if the path contains ";" then we assume it to be the separator 18336 # otherwise default to the standard path separator (i.e. ":") - it is 18337 # assumed that no part of a normal pathname contains ";" but that should 18338 # okay in the real world where ";" in dirpaths is itself problematic. 18339 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18340 else 18341 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18342 fi 18343else 18344 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18345fi 18346need_lib_prefix=unknown 18347hardcode_into_libs=no 18348 18349# when you set need_version to no, make sure it does not cause -set_version 18350# flags to be left without arguments 18351need_version=unknown 18352 18353case $host_os in 18354aix3*) 18355 version_type=linux 18356 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18357 shlibpath_var=LIBPATH 18358 18359 # AIX 3 has no versioning support, so we append a major version to the name. 18360 soname_spec='${libname}${release}${shared_ext}$major' 18361 ;; 18362 18363aix4* | aix5*) 18364 version_type=linux 18365 need_lib_prefix=no 18366 need_version=no 18367 hardcode_into_libs=yes 18368 if test "$host_cpu" = ia64; then 18369 # AIX 5 supports IA64 18370 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18371 shlibpath_var=LD_LIBRARY_PATH 18372 else 18373 # With GCC up to 2.95.x, collect2 would create an import file 18374 # for dependence libraries. The import file would start with 18375 # the line `#! .'. This would cause the generated library to 18376 # depend on `.', always an invalid library. This was fixed in 18377 # development snapshots of GCC prior to 3.0. 18378 case $host_os in 18379 aix4 | aix4.[01] | aix4.[01].*) 18380 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18381 echo ' yes ' 18382 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 18383 : 18384 else 18385 can_build_shared=no 18386 fi 18387 ;; 18388 esac 18389 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18390 # soname into executable. Probably we can add versioning support to 18391 # collect2, so additional links can be useful in future. 18392 if test "$aix_use_runtimelinking" = yes; then 18393 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18394 # instead of lib<name>.a to let people know that these are not 18395 # typical AIX shared libraries. 18396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18397 else 18398 # We preserve .a as extension for shared libraries through AIX4.2 18399 # and later when we are not doing run time linking. 18400 library_names_spec='${libname}${release}.a $libname.a' 18401 soname_spec='${libname}${release}${shared_ext}$major' 18402 fi 18403 shlibpath_var=LIBPATH 18404 fi 18405 ;; 18406 18407amigaos*) 18408 library_names_spec='$libname.ixlibrary $libname.a' 18409 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18410 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' 18411 ;; 18412 18413beos*) 18414 library_names_spec='${libname}${shared_ext}' 18415 dynamic_linker="$host_os ld.so" 18416 shlibpath_var=LIBRARY_PATH 18417 ;; 18418 18419bsdi[45]*) 18420 version_type=linux 18421 need_version=no 18422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18423 soname_spec='${libname}${release}${shared_ext}$major' 18424 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18425 shlibpath_var=LD_LIBRARY_PATH 18426 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18427 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18428 # the default ld.so.conf also contains /usr/contrib/lib and 18429 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18430 # libtool to hard-code these into programs 18431 ;; 18432 18433cygwin* | mingw* | pw32*) 18434 version_type=windows 18435 shrext_cmds=".dll" 18436 need_version=no 18437 need_lib_prefix=no 18438 18439 case $GCC,$host_os in 18440 yes,cygwin* | yes,mingw* | yes,pw32*) 18441 library_names_spec='$libname.dll.a' 18442 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18443 postinstall_cmds='base_file=`basename \${file}`~ 18444 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18445 dldir=$destdir/`dirname \$dlpath`~ 18446 test -d \$dldir || mkdir -p \$dldir~ 18447 $install_prog $dir/$dlname \$dldir/$dlname~ 18448 chmod a+x \$dldir/$dlname' 18449 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18450 dlpath=$dir/\$dldll~ 18451 $rm \$dlpath' 18452 shlibpath_overrides_runpath=yes 18453 18454 case $host_os in 18455 cygwin*) 18456 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18457 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18458 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 18459 ;; 18460 mingw*) 18461 # MinGW DLLs use traditional 'lib' prefix 18462 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18463 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18464 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18465 # It is most probably a Windows format PATH printed by 18466 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18467 # path with ; separators, and with drive letters. We can handle the 18468 # drive letters (cygwin fileutils understands them), so leave them, 18469 # especially as we might pass files found there to a mingw objdump, 18470 # which wouldn't understand a cygwinified path. Ahh. 18471 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18472 else 18473 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18474 fi 18475 ;; 18476 pw32*) 18477 # pw32 DLLs use 'pw' prefix rather than 'lib' 18478 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18479 ;; 18480 esac 18481 ;; 18482 18483 *) 18484 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18485 ;; 18486 esac 18487 dynamic_linker='Win32 ld.exe' 18488 # FIXME: first we should search . and the directory the executable is in 18489 shlibpath_var=PATH 18490 ;; 18491 18492darwin* | rhapsody*) 18493 dynamic_linker="$host_os dyld" 18494 version_type=darwin 18495 need_lib_prefix=no 18496 need_version=no 18497 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18498 soname_spec='${libname}${release}${major}$shared_ext' 18499 shlibpath_overrides_runpath=yes 18500 shlibpath_var=DYLD_LIBRARY_PATH 18501 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18502 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 18503 if test "$GCC" = yes; then 18504 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 18505 else 18506 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 18507 fi 18508 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18509 ;; 18510 18511dgux*) 18512 version_type=linux 18513 need_lib_prefix=no 18514 need_version=no 18515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18516 soname_spec='${libname}${release}${shared_ext}$major' 18517 shlibpath_var=LD_LIBRARY_PATH 18518 ;; 18519 18520freebsd1*) 18521 dynamic_linker=no 18522 ;; 18523 18524kfreebsd*-gnu) 18525 version_type=linux 18526 need_lib_prefix=no 18527 need_version=no 18528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18529 soname_spec='${libname}${release}${shared_ext}$major' 18530 shlibpath_var=LD_LIBRARY_PATH 18531 shlibpath_overrides_runpath=no 18532 hardcode_into_libs=yes 18533 dynamic_linker='GNU ld.so' 18534 ;; 18535 18536freebsd* | dragonfly*) 18537 # DragonFly does not have aout. When/if they implement a new 18538 # versioning mechanism, adjust this. 18539 if test -x /usr/bin/objformat; then 18540 objformat=`/usr/bin/objformat` 18541 else 18542 case $host_os in 18543 freebsd[123]*) objformat=aout ;; 18544 *) objformat=elf ;; 18545 esac 18546 fi 18547 version_type=freebsd-$objformat 18548 case $version_type in 18549 freebsd-elf*) 18550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18551 need_version=no 18552 need_lib_prefix=no 18553 ;; 18554 freebsd-*) 18555 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18556 need_version=yes 18557 ;; 18558 esac 18559 shlibpath_var=LD_LIBRARY_PATH 18560 case $host_os in 18561 freebsd2*) 18562 shlibpath_overrides_runpath=yes 18563 ;; 18564 freebsd3.[01]* | freebsdelf3.[01]*) 18565 shlibpath_overrides_runpath=yes 18566 hardcode_into_libs=yes 18567 ;; 18568 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18569 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18570 shlibpath_overrides_runpath=no 18571 hardcode_into_libs=yes 18572 ;; 18573 freebsd*) # from 4.6 on 18574 shlibpath_overrides_runpath=yes 18575 hardcode_into_libs=yes 18576 ;; 18577 esac 18578 ;; 18579 18580gnu*) 18581 version_type=linux 18582 need_lib_prefix=no 18583 need_version=no 18584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18585 soname_spec='${libname}${release}${shared_ext}$major' 18586 shlibpath_var=LD_LIBRARY_PATH 18587 hardcode_into_libs=yes 18588 ;; 18589 18590hpux9* | hpux10* | hpux11*) 18591 # Give a soname corresponding to the major version so that dld.sl refuses to 18592 # link against other versions. 18593 version_type=sunos 18594 need_lib_prefix=no 18595 need_version=no 18596 case $host_cpu in 18597 ia64*) 18598 shrext_cmds='.so' 18599 hardcode_into_libs=yes 18600 dynamic_linker="$host_os dld.so" 18601 shlibpath_var=LD_LIBRARY_PATH 18602 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18604 soname_spec='${libname}${release}${shared_ext}$major' 18605 if test "X$HPUX_IA64_MODE" = X32; then 18606 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18607 else 18608 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18609 fi 18610 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18611 ;; 18612 hppa*64*) 18613 shrext_cmds='.sl' 18614 hardcode_into_libs=yes 18615 dynamic_linker="$host_os dld.sl" 18616 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18617 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18619 soname_spec='${libname}${release}${shared_ext}$major' 18620 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18621 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18622 ;; 18623 *) 18624 shrext_cmds='.sl' 18625 dynamic_linker="$host_os dld.sl" 18626 shlibpath_var=SHLIB_PATH 18627 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18629 soname_spec='${libname}${release}${shared_ext}$major' 18630 ;; 18631 esac 18632 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18633 postinstall_cmds='chmod 555 $lib' 18634 ;; 18635 18636interix3*) 18637 version_type=linux 18638 need_lib_prefix=no 18639 need_version=no 18640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18641 soname_spec='${libname}${release}${shared_ext}$major' 18642 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18643 shlibpath_var=LD_LIBRARY_PATH 18644 shlibpath_overrides_runpath=no 18645 hardcode_into_libs=yes 18646 ;; 18647 18648irix5* | irix6* | nonstopux*) 18649 case $host_os in 18650 nonstopux*) version_type=nonstopux ;; 18651 *) 18652 if test "$lt_cv_prog_gnu_ld" = yes; then 18653 version_type=linux 18654 else 18655 version_type=irix 18656 fi ;; 18657 esac 18658 need_lib_prefix=no 18659 need_version=no 18660 soname_spec='${libname}${release}${shared_ext}$major' 18661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18662 case $host_os in 18663 irix5* | nonstopux*) 18664 libsuff= shlibsuff= 18665 ;; 18666 *) 18667 case $LD in # libtool.m4 will add one of these switches to LD 18668 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18669 libsuff= shlibsuff= libmagic=32-bit;; 18670 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18671 libsuff=32 shlibsuff=N32 libmagic=N32;; 18672 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18673 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18674 *) libsuff= shlibsuff= libmagic=never-match;; 18675 esac 18676 ;; 18677 esac 18678 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18679 shlibpath_overrides_runpath=no 18680 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18681 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18682 hardcode_into_libs=yes 18683 ;; 18684 18685# No shared lib support for Linux oldld, aout, or coff. 18686linux*oldld* | linux*aout* | linux*coff*) 18687 dynamic_linker=no 18688 ;; 18689 18690# This must be Linux ELF. 18691linux*) 18692 version_type=linux 18693 need_lib_prefix=no 18694 need_version=no 18695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18696 soname_spec='${libname}${release}${shared_ext}$major' 18697 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18698 shlibpath_var=LD_LIBRARY_PATH 18699 shlibpath_overrides_runpath=no 18700 # This implies no fast_install, which is unacceptable. 18701 # Some rework will be needed to allow for fast_install 18702 # before this can be enabled. 18703 hardcode_into_libs=yes 18704 18705 # Append ld.so.conf contents to the search path 18706 if test -f /etc/ld.so.conf; then 18707 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 18708 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18709 fi 18710 18711 # We used to test for /lib/ld.so.1 and disable shared libraries on 18712 # powerpc, because MkLinux only supported shared libraries with the 18713 # GNU dynamic linker. Since this was broken with cross compilers, 18714 # most powerpc-linux boxes support dynamic linking these days and 18715 # people can always --disable-shared, the test was removed, and we 18716 # assume the GNU/Linux dynamic linker is in use. 18717 dynamic_linker='GNU/Linux ld.so' 18718 ;; 18719 18720knetbsd*-gnu) 18721 version_type=linux 18722 need_lib_prefix=no 18723 need_version=no 18724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18725 soname_spec='${libname}${release}${shared_ext}$major' 18726 shlibpath_var=LD_LIBRARY_PATH 18727 shlibpath_overrides_runpath=no 18728 hardcode_into_libs=yes 18729 dynamic_linker='GNU ld.so' 18730 ;; 18731 18732netbsd*) 18733 version_type=sunos 18734 need_lib_prefix=no 18735 need_version=no 18736 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18738 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18739 dynamic_linker='NetBSD (a.out) ld.so' 18740 else 18741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18742 soname_spec='${libname}${release}${shared_ext}$major' 18743 dynamic_linker='NetBSD ld.elf_so' 18744 fi 18745 shlibpath_var=LD_LIBRARY_PATH 18746 shlibpath_overrides_runpath=yes 18747 hardcode_into_libs=yes 18748 ;; 18749 18750newsos6) 18751 version_type=linux 18752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18753 shlibpath_var=LD_LIBRARY_PATH 18754 shlibpath_overrides_runpath=yes 18755 ;; 18756 18757nto-qnx*) 18758 version_type=linux 18759 need_lib_prefix=no 18760 need_version=no 18761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18762 soname_spec='${libname}${release}${shared_ext}$major' 18763 shlibpath_var=LD_LIBRARY_PATH 18764 shlibpath_overrides_runpath=yes 18765 ;; 18766 18767openbsd*) 18768 version_type=sunos 18769 sys_lib_dlsearch_path_spec="/usr/lib" 18770 need_lib_prefix=no 18771 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18772 case $host_os in 18773 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18774 *) need_version=no ;; 18775 esac 18776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18777 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18778 shlibpath_var=LD_LIBRARY_PATH 18779 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18780 case $host_os in 18781 openbsd2.[89] | openbsd2.[89].*) 18782 shlibpath_overrides_runpath=no 18783 ;; 18784 *) 18785 shlibpath_overrides_runpath=yes 18786 ;; 18787 esac 18788 else 18789 shlibpath_overrides_runpath=yes 18790 fi 18791 ;; 18792 18793os2*) 18794 libname_spec='$name' 18795 shrext_cmds=".dll" 18796 need_lib_prefix=no 18797 library_names_spec='$libname${shared_ext} $libname.a' 18798 dynamic_linker='OS/2 ld.exe' 18799 shlibpath_var=LIBPATH 18800 ;; 18801 18802osf3* | osf4* | osf5*) 18803 version_type=osf 18804 need_lib_prefix=no 18805 need_version=no 18806 soname_spec='${libname}${release}${shared_ext}$major' 18807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18808 shlibpath_var=LD_LIBRARY_PATH 18809 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18810 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18811 ;; 18812 18813solaris*) 18814 version_type=linux 18815 need_lib_prefix=no 18816 need_version=no 18817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18818 soname_spec='${libname}${release}${shared_ext}$major' 18819 shlibpath_var=LD_LIBRARY_PATH 18820 shlibpath_overrides_runpath=yes 18821 hardcode_into_libs=yes 18822 # ldd complains unless libraries are executable 18823 postinstall_cmds='chmod +x $lib' 18824 ;; 18825 18826sunos4*) 18827 version_type=sunos 18828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18829 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18830 shlibpath_var=LD_LIBRARY_PATH 18831 shlibpath_overrides_runpath=yes 18832 if test "$with_gnu_ld" = yes; then 18833 need_lib_prefix=no 18834 fi 18835 need_version=yes 18836 ;; 18837 18838sysv4 | sysv4.3*) 18839 version_type=linux 18840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18841 soname_spec='${libname}${release}${shared_ext}$major' 18842 shlibpath_var=LD_LIBRARY_PATH 18843 case $host_vendor in 18844 sni) 18845 shlibpath_overrides_runpath=no 18846 need_lib_prefix=no 18847 export_dynamic_flag_spec='${wl}-Blargedynsym' 18848 runpath_var=LD_RUN_PATH 18849 ;; 18850 siemens) 18851 need_lib_prefix=no 18852 ;; 18853 motorola) 18854 need_lib_prefix=no 18855 need_version=no 18856 shlibpath_overrides_runpath=no 18857 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18858 ;; 18859 esac 18860 ;; 18861 18862sysv4*MP*) 18863 if test -d /usr/nec ;then 18864 version_type=linux 18865 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18866 soname_spec='$libname${shared_ext}.$major' 18867 shlibpath_var=LD_LIBRARY_PATH 18868 fi 18869 ;; 18870 18871sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18872 version_type=freebsd-elf 18873 need_lib_prefix=no 18874 need_version=no 18875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18876 soname_spec='${libname}${release}${shared_ext}$major' 18877 shlibpath_var=LD_LIBRARY_PATH 18878 hardcode_into_libs=yes 18879 if test "$with_gnu_ld" = yes; then 18880 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18881 shlibpath_overrides_runpath=no 18882 else 18883 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18884 shlibpath_overrides_runpath=yes 18885 case $host_os in 18886 sco3.2v5*) 18887 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18888 ;; 18889 esac 18890 fi 18891 sys_lib_dlsearch_path_spec='/usr/lib' 18892 ;; 18893 18894uts4*) 18895 version_type=linux 18896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18897 soname_spec='${libname}${release}${shared_ext}$major' 18898 shlibpath_var=LD_LIBRARY_PATH 18899 ;; 18900 18901*) 18902 dynamic_linker=no 18903 ;; 18904esac 18905{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18906echo "${ECHO_T}$dynamic_linker" >&6; } 18907test "$dynamic_linker" = no && can_build_shared=no 18908 18909variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18910if test "$GCC" = yes; then 18911 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18912fi 18913 18914{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18915echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 18916hardcode_action_GCJ= 18917if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18918 test -n "$runpath_var_GCJ" || \ 18919 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18920 18921 # We can hardcode non-existant directories. 18922 if test "$hardcode_direct_GCJ" != no && 18923 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18924 # have to relink, otherwise we might link with an installed library 18925 # when we should be linking with a yet-to-be-installed one 18926 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18927 test "$hardcode_minus_L_GCJ" != no; then 18928 # Linking always hardcodes the temporary library directory. 18929 hardcode_action_GCJ=relink 18930 else 18931 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18932 hardcode_action_GCJ=immediate 18933 fi 18934else 18935 # We cannot hardcode anything, or else we can only hardcode existing 18936 # directories. 18937 hardcode_action_GCJ=unsupported 18938fi 18939{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18940echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 18941 18942if test "$hardcode_action_GCJ" = relink; then 18943 # Fast installation is not supported 18944 enable_fast_install=no 18945elif test "$shlibpath_overrides_runpath" = yes || 18946 test "$enable_shared" = no; then 18947 # Fast installation is not necessary 18948 enable_fast_install=needless 18949fi 18950 18951 18952# The else clause should only fire when bootstrapping the 18953# libtool distribution, otherwise you forgot to ship ltmain.sh 18954# with your package, and you will get complaints that there are 18955# no rules to generate ltmain.sh. 18956if test -f "$ltmain"; then 18957 # See if we are running on zsh, and set the options which allow our commands through 18958 # without removal of \ escapes. 18959 if test -n "${ZSH_VERSION+set}" ; then 18960 setopt NO_GLOB_SUBST 18961 fi 18962 # Now quote all the things that may contain metacharacters while being 18963 # careful not to overquote the AC_SUBSTed values. We take copies of the 18964 # variables and quote the copies for generation of the libtool script. 18965 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18966 SED SHELL STRIP \ 18967 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18968 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18969 deplibs_check_method reload_flag reload_cmds need_locks \ 18970 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18971 lt_cv_sys_global_symbol_to_c_name_address \ 18972 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18973 old_postinstall_cmds old_postuninstall_cmds \ 18974 compiler_GCJ \ 18975 CC_GCJ \ 18976 LD_GCJ \ 18977 lt_prog_compiler_wl_GCJ \ 18978 lt_prog_compiler_pic_GCJ \ 18979 lt_prog_compiler_static_GCJ \ 18980 lt_prog_compiler_no_builtin_flag_GCJ \ 18981 export_dynamic_flag_spec_GCJ \ 18982 thread_safe_flag_spec_GCJ \ 18983 whole_archive_flag_spec_GCJ \ 18984 enable_shared_with_static_runtimes_GCJ \ 18985 old_archive_cmds_GCJ \ 18986 old_archive_from_new_cmds_GCJ \ 18987 predep_objects_GCJ \ 18988 postdep_objects_GCJ \ 18989 predeps_GCJ \ 18990 postdeps_GCJ \ 18991 compiler_lib_search_path_GCJ \ 18992 archive_cmds_GCJ \ 18993 archive_expsym_cmds_GCJ \ 18994 postinstall_cmds_GCJ \ 18995 postuninstall_cmds_GCJ \ 18996 old_archive_from_expsyms_cmds_GCJ \ 18997 allow_undefined_flag_GCJ \ 18998 no_undefined_flag_GCJ \ 18999 export_symbols_cmds_GCJ \ 19000 hardcode_libdir_flag_spec_GCJ \ 19001 hardcode_libdir_flag_spec_ld_GCJ \ 19002 hardcode_libdir_separator_GCJ \ 19003 hardcode_automatic_GCJ \ 19004 module_cmds_GCJ \ 19005 module_expsym_cmds_GCJ \ 19006 lt_cv_prog_compiler_c_o_GCJ \ 19007 exclude_expsyms_GCJ \ 19008 include_expsyms_GCJ; do 19009 19010 case $var in 19011 old_archive_cmds_GCJ | \ 19012 old_archive_from_new_cmds_GCJ | \ 19013 archive_cmds_GCJ | \ 19014 archive_expsym_cmds_GCJ | \ 19015 module_cmds_GCJ | \ 19016 module_expsym_cmds_GCJ | \ 19017 old_archive_from_expsyms_cmds_GCJ | \ 19018 export_symbols_cmds_GCJ | \ 19019 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19020 postinstall_cmds | postuninstall_cmds | \ 19021 old_postinstall_cmds | old_postuninstall_cmds | \ 19022 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19023 # Double-quote double-evaled strings. 19024 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19025 ;; 19026 *) 19027 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19028 ;; 19029 esac 19030 done 19031 19032 case $lt_echo in 19033 *'\$0 --fallback-echo"') 19034 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19035 ;; 19036 esac 19037 19038cfgfile="$ofile" 19039 19040 cat <<__EOF__ >> "$cfgfile" 19041# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19042 19043# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19044 19045# Shell to use when invoking shell scripts. 19046SHELL=$lt_SHELL 19047 19048# Whether or not to build shared libraries. 19049build_libtool_libs=$enable_shared 19050 19051# Whether or not to build static libraries. 19052build_old_libs=$enable_static 19053 19054# Whether or not to add -lc for building shared libraries. 19055build_libtool_need_lc=$archive_cmds_need_lc_GCJ 19056 19057# Whether or not to disallow shared libs when runtime libs are static 19058allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 19059 19060# Whether or not to optimize for fast installation. 19061fast_install=$enable_fast_install 19062 19063# The host system. 19064host_alias=$host_alias 19065host=$host 19066host_os=$host_os 19067 19068# The build system. 19069build_alias=$build_alias 19070build=$build 19071build_os=$build_os 19072 19073# An echo program that does not interpret backslashes. 19074echo=$lt_echo 19075 19076# The archiver. 19077AR=$lt_AR 19078AR_FLAGS=$lt_AR_FLAGS 19079 19080# A C compiler. 19081LTCC=$lt_LTCC 19082 19083# LTCC compiler flags. 19084LTCFLAGS=$lt_LTCFLAGS 19085 19086# A language-specific compiler. 19087CC=$lt_compiler_GCJ 19088 19089# Is the compiler the GNU C compiler? 19090with_gcc=$GCC_GCJ 19091 19092# An ERE matcher. 19093EGREP=$lt_EGREP 19094 19095# The linker used to build libraries. 19096LD=$lt_LD_GCJ 19097 19098# Whether we need hard or soft links. 19099LN_S=$lt_LN_S 19100 19101# A BSD-compatible nm program. 19102NM=$lt_NM 19103 19104# A symbol stripping program 19105STRIP=$lt_STRIP 19106 19107# Used to examine libraries when file_magic_cmd begins "file" 19108MAGIC_CMD=$MAGIC_CMD 19109 19110# Used on cygwin: DLL creation program. 19111DLLTOOL="$DLLTOOL" 19112 19113# Used on cygwin: object dumper. 19114OBJDUMP="$OBJDUMP" 19115 19116# Used on cygwin: assembler. 19117AS="$AS" 19118 19119# The name of the directory that contains temporary libtool files. 19120objdir=$objdir 19121 19122# How to create reloadable object files. 19123reload_flag=$lt_reload_flag 19124reload_cmds=$lt_reload_cmds 19125 19126# How to pass a linker flag through the compiler. 19127wl=$lt_lt_prog_compiler_wl_GCJ 19128 19129# Object file suffix (normally "o"). 19130objext="$ac_objext" 19131 19132# Old archive suffix (normally "a"). 19133libext="$libext" 19134 19135# Shared library suffix (normally ".so"). 19136shrext_cmds='$shrext_cmds' 19137 19138# Executable file suffix (normally ""). 19139exeext="$exeext" 19140 19141# Additional compiler flags for building library objects. 19142pic_flag=$lt_lt_prog_compiler_pic_GCJ 19143pic_mode=$pic_mode 19144 19145# What is the maximum length of a command? 19146max_cmd_len=$lt_cv_sys_max_cmd_len 19147 19148# Does compiler simultaneously support -c and -o options? 19149compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 19150 19151# Must we lock files when doing compilation? 19152need_locks=$lt_need_locks 19153 19154# Do we need the lib prefix for modules? 19155need_lib_prefix=$need_lib_prefix 19156 19157# Do we need a version for libraries? 19158need_version=$need_version 19159 19160# Whether dlopen is supported. 19161dlopen_support=$enable_dlopen 19162 19163# Whether dlopen of programs is supported. 19164dlopen_self=$enable_dlopen_self 19165 19166# Whether dlopen of statically linked programs is supported. 19167dlopen_self_static=$enable_dlopen_self_static 19168 19169# Compiler flag to prevent dynamic linking. 19170link_static_flag=$lt_lt_prog_compiler_static_GCJ 19171 19172# Compiler flag to turn off builtin functions. 19173no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19174 19175# Compiler flag to allow reflexive dlopens. 19176export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19177 19178# Compiler flag to generate shared objects directly from archives. 19179whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19180 19181# Compiler flag to generate thread-safe objects. 19182thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19183 19184# Library versioning type. 19185version_type=$version_type 19186 19187# Format of library name prefix. 19188libname_spec=$lt_libname_spec 19189 19190# List of archive names. First name is the real one, the rest are links. 19191# The last name is the one that the linker finds with -lNAME. 19192library_names_spec=$lt_library_names_spec 19193 19194# The coded name of the library, if different from the real name. 19195soname_spec=$lt_soname_spec 19196 19197# Commands used to build and install an old-style archive. 19198RANLIB=$lt_RANLIB 19199old_archive_cmds=$lt_old_archive_cmds_GCJ 19200old_postinstall_cmds=$lt_old_postinstall_cmds 19201old_postuninstall_cmds=$lt_old_postuninstall_cmds 19202 19203# Create an old-style archive from a shared archive. 19204old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19205 19206# Create a temporary old-style archive to link instead of a shared archive. 19207old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19208 19209# Commands used to build and install a shared archive. 19210archive_cmds=$lt_archive_cmds_GCJ 19211archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19212postinstall_cmds=$lt_postinstall_cmds 19213postuninstall_cmds=$lt_postuninstall_cmds 19214 19215# Commands used to build a loadable module (assumed same as above if empty) 19216module_cmds=$lt_module_cmds_GCJ 19217module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19218 19219# Commands to strip libraries. 19220old_striplib=$lt_old_striplib 19221striplib=$lt_striplib 19222 19223# Dependencies to place before the objects being linked to create a 19224# shared library. 19225predep_objects=$lt_predep_objects_GCJ 19226 19227# Dependencies to place after the objects being linked to create a 19228# shared library. 19229postdep_objects=$lt_postdep_objects_GCJ 19230 19231# Dependencies to place before the objects being linked to create a 19232# shared library. 19233predeps=$lt_predeps_GCJ 19234 19235# Dependencies to place after the objects being linked to create a 19236# shared library. 19237postdeps=$lt_postdeps_GCJ 19238 19239# The library search path used internally by the compiler when linking 19240# a shared library. 19241compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19242 19243# Method to check whether dependent libraries are shared objects. 19244deplibs_check_method=$lt_deplibs_check_method 19245 19246# Command to use when deplibs_check_method == file_magic. 19247file_magic_cmd=$lt_file_magic_cmd 19248 19249# Flag that allows shared libraries with undefined symbols to be built. 19250allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19251 19252# Flag that forces no undefined symbols. 19253no_undefined_flag=$lt_no_undefined_flag_GCJ 19254 19255# Commands used to finish a libtool library installation in a directory. 19256finish_cmds=$lt_finish_cmds 19257 19258# Same as above, but a single script fragment to be evaled but not shown. 19259finish_eval=$lt_finish_eval 19260 19261# Take the output of nm and produce a listing of raw symbols and C names. 19262global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19263 19264# Transform the output of nm in a proper C declaration 19265global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19266 19267# Transform the output of nm in a C name address pair 19268global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19269 19270# This is the shared library runtime path variable. 19271runpath_var=$runpath_var 19272 19273# This is the shared library path variable. 19274shlibpath_var=$shlibpath_var 19275 19276# Is shlibpath searched before the hard-coded library search path? 19277shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19278 19279# How to hardcode a shared library path into an executable. 19280hardcode_action=$hardcode_action_GCJ 19281 19282# Whether we should hardcode library paths into libraries. 19283hardcode_into_libs=$hardcode_into_libs 19284 19285# Flag to hardcode \$libdir into a binary during linking. 19286# This must work even if \$libdir does not exist. 19287hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19288 19289# If ld is used when linking, flag to hardcode \$libdir into 19290# a binary during linking. This must work even if \$libdir does 19291# not exist. 19292hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19293 19294# Whether we need a single -rpath flag with a separated argument. 19295hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19296 19297# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19298# resulting binary. 19299hardcode_direct=$hardcode_direct_GCJ 19300 19301# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19302# resulting binary. 19303hardcode_minus_L=$hardcode_minus_L_GCJ 19304 19305# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19306# the resulting binary. 19307hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19308 19309# Set to yes if building a shared library automatically hardcodes DIR into the library 19310# and all subsequent libraries and executables linked against it. 19311hardcode_automatic=$hardcode_automatic_GCJ 19312 19313# Variables whose values should be saved in libtool wrapper scripts and 19314# restored at relink time. 19315variables_saved_for_relink="$variables_saved_for_relink" 19316 19317# Whether libtool must link a program against all its dependency libraries. 19318link_all_deplibs=$link_all_deplibs_GCJ 19319 19320# Compile-time system search path for libraries 19321sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19322 19323# Run-time system search path for libraries 19324sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19325 19326# Fix the shell variable \$srcfile for the compiler. 19327fix_srcfile_path="$fix_srcfile_path_GCJ" 19328 19329# Set to yes if exported symbols are required. 19330always_export_symbols=$always_export_symbols_GCJ 19331 19332# The commands to list exported symbols. 19333export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19334 19335# The commands to extract the exported symbol list from a shared archive. 19336extract_expsyms_cmds=$lt_extract_expsyms_cmds 19337 19338# Symbols that should not be listed in the preloaded symbols. 19339exclude_expsyms=$lt_exclude_expsyms_GCJ 19340 19341# Symbols that must always be exported. 19342include_expsyms=$lt_include_expsyms_GCJ 19343 19344# ### END LIBTOOL TAG CONFIG: $tagname 19345 19346__EOF__ 19347 19348 19349else 19350 # If there is no Makefile yet, we rely on a make rule to execute 19351 # `config.status --recheck' to rerun these tests and create the 19352 # libtool script then. 19353 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19354 if test -f "$ltmain_in"; then 19355 test -f Makefile && make "$ltmain" 19356 fi 19357fi 19358 19359 19360ac_ext=c 19361ac_cpp='$CPP $CPPFLAGS' 19362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19364ac_compiler_gnu=$ac_cv_c_compiler_gnu 19365 19366CC="$lt_save_CC" 19367 19368 else 19369 tagname="" 19370 fi 19371 ;; 19372 19373 RC) 19374 19375 19376# Source file extension for RC test sources. 19377ac_ext=rc 19378 19379# Object file extension for compiled RC test sources. 19380objext=o 19381objext_RC=$objext 19382 19383# Code to be used in simple compile tests 19384lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 19385 19386# Code to be used in simple link tests 19387lt_simple_link_test_code="$lt_simple_compile_test_code" 19388 19389# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19390 19391# If no C compiler was specified, use CC. 19392LTCC=${LTCC-"$CC"} 19393 19394# If no C compiler flags were specified, use CFLAGS. 19395LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19396 19397# Allow CC to be a program name with arguments. 19398compiler=$CC 19399 19400 19401# save warnings/boilerplate of simple test code 19402ac_outfile=conftest.$ac_objext 19403printf "$lt_simple_compile_test_code" >conftest.$ac_ext 19404eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19405_lt_compiler_boilerplate=`cat conftest.err` 19406$rm conftest* 19407 19408ac_outfile=conftest.$ac_objext 19409printf "$lt_simple_link_test_code" >conftest.$ac_ext 19410eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19411_lt_linker_boilerplate=`cat conftest.err` 19412$rm conftest* 19413 19414 19415# Allow CC to be a program name with arguments. 19416lt_save_CC="$CC" 19417CC=${RC-"windres"} 19418compiler=$CC 19419compiler_RC=$CC 19420for cc_temp in $compiler""; do 19421 case $cc_temp in 19422 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19423 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19424 \-*) ;; 19425 *) break;; 19426 esac 19427done 19428cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19429 19430lt_cv_prog_compiler_c_o_RC=yes 19431 19432# The else clause should only fire when bootstrapping the 19433# libtool distribution, otherwise you forgot to ship ltmain.sh 19434# with your package, and you will get complaints that there are 19435# no rules to generate ltmain.sh. 19436if test -f "$ltmain"; then 19437 # See if we are running on zsh, and set the options which allow our commands through 19438 # without removal of \ escapes. 19439 if test -n "${ZSH_VERSION+set}" ; then 19440 setopt NO_GLOB_SUBST 19441 fi 19442 # Now quote all the things that may contain metacharacters while being 19443 # careful not to overquote the AC_SUBSTed values. We take copies of the 19444 # variables and quote the copies for generation of the libtool script. 19445 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19446 SED SHELL STRIP \ 19447 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19448 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19449 deplibs_check_method reload_flag reload_cmds need_locks \ 19450 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19451 lt_cv_sys_global_symbol_to_c_name_address \ 19452 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19453 old_postinstall_cmds old_postuninstall_cmds \ 19454 compiler_RC \ 19455 CC_RC \ 19456 LD_RC \ 19457 lt_prog_compiler_wl_RC \ 19458 lt_prog_compiler_pic_RC \ 19459 lt_prog_compiler_static_RC \ 19460 lt_prog_compiler_no_builtin_flag_RC \ 19461 export_dynamic_flag_spec_RC \ 19462 thread_safe_flag_spec_RC \ 19463 whole_archive_flag_spec_RC \ 19464 enable_shared_with_static_runtimes_RC \ 19465 old_archive_cmds_RC \ 19466 old_archive_from_new_cmds_RC \ 19467 predep_objects_RC \ 19468 postdep_objects_RC \ 19469 predeps_RC \ 19470 postdeps_RC \ 19471 compiler_lib_search_path_RC \ 19472 archive_cmds_RC \ 19473 archive_expsym_cmds_RC \ 19474 postinstall_cmds_RC \ 19475 postuninstall_cmds_RC \ 19476 old_archive_from_expsyms_cmds_RC \ 19477 allow_undefined_flag_RC \ 19478 no_undefined_flag_RC \ 19479 export_symbols_cmds_RC \ 19480 hardcode_libdir_flag_spec_RC \ 19481 hardcode_libdir_flag_spec_ld_RC \ 19482 hardcode_libdir_separator_RC \ 19483 hardcode_automatic_RC \ 19484 module_cmds_RC \ 19485 module_expsym_cmds_RC \ 19486 lt_cv_prog_compiler_c_o_RC \ 19487 exclude_expsyms_RC \ 19488 include_expsyms_RC; do 19489 19490 case $var in 19491 old_archive_cmds_RC | \ 19492 old_archive_from_new_cmds_RC | \ 19493 archive_cmds_RC | \ 19494 archive_expsym_cmds_RC | \ 19495 module_cmds_RC | \ 19496 module_expsym_cmds_RC | \ 19497 old_archive_from_expsyms_cmds_RC | \ 19498 export_symbols_cmds_RC | \ 19499 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19500 postinstall_cmds | postuninstall_cmds | \ 19501 old_postinstall_cmds | old_postuninstall_cmds | \ 19502 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19503 # Double-quote double-evaled strings. 19504 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19505 ;; 19506 *) 19507 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19508 ;; 19509 esac 19510 done 19511 19512 case $lt_echo in 19513 *'\$0 --fallback-echo"') 19514 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19515 ;; 19516 esac 19517 19518cfgfile="$ofile" 19519 19520 cat <<__EOF__ >> "$cfgfile" 19521# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19522 19523# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19524 19525# Shell to use when invoking shell scripts. 19526SHELL=$lt_SHELL 19527 19528# Whether or not to build shared libraries. 19529build_libtool_libs=$enable_shared 19530 19531# Whether or not to build static libraries. 19532build_old_libs=$enable_static 19533 19534# Whether or not to add -lc for building shared libraries. 19535build_libtool_need_lc=$archive_cmds_need_lc_RC 19536 19537# Whether or not to disallow shared libs when runtime libs are static 19538allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19539 19540# Whether or not to optimize for fast installation. 19541fast_install=$enable_fast_install 19542 19543# The host system. 19544host_alias=$host_alias 19545host=$host 19546host_os=$host_os 19547 19548# The build system. 19549build_alias=$build_alias 19550build=$build 19551build_os=$build_os 19552 19553# An echo program that does not interpret backslashes. 19554echo=$lt_echo 19555 19556# The archiver. 19557AR=$lt_AR 19558AR_FLAGS=$lt_AR_FLAGS 19559 19560# A C compiler. 19561LTCC=$lt_LTCC 19562 19563# LTCC compiler flags. 19564LTCFLAGS=$lt_LTCFLAGS 19565 19566# A language-specific compiler. 19567CC=$lt_compiler_RC 19568 19569# Is the compiler the GNU C compiler? 19570with_gcc=$GCC_RC 19571 19572# An ERE matcher. 19573EGREP=$lt_EGREP 19574 19575# The linker used to build libraries. 19576LD=$lt_LD_RC 19577 19578# Whether we need hard or soft links. 19579LN_S=$lt_LN_S 19580 19581# A BSD-compatible nm program. 19582NM=$lt_NM 19583 19584# A symbol stripping program 19585STRIP=$lt_STRIP 19586 19587# Used to examine libraries when file_magic_cmd begins "file" 19588MAGIC_CMD=$MAGIC_CMD 19589 19590# Used on cygwin: DLL creation program. 19591DLLTOOL="$DLLTOOL" 19592 19593# Used on cygwin: object dumper. 19594OBJDUMP="$OBJDUMP" 19595 19596# Used on cygwin: assembler. 19597AS="$AS" 19598 19599# The name of the directory that contains temporary libtool files. 19600objdir=$objdir 19601 19602# How to create reloadable object files. 19603reload_flag=$lt_reload_flag 19604reload_cmds=$lt_reload_cmds 19605 19606# How to pass a linker flag through the compiler. 19607wl=$lt_lt_prog_compiler_wl_RC 19608 19609# Object file suffix (normally "o"). 19610objext="$ac_objext" 19611 19612# Old archive suffix (normally "a"). 19613libext="$libext" 19614 19615# Shared library suffix (normally ".so"). 19616shrext_cmds='$shrext_cmds' 19617 19618# Executable file suffix (normally ""). 19619exeext="$exeext" 19620 19621# Additional compiler flags for building library objects. 19622pic_flag=$lt_lt_prog_compiler_pic_RC 19623pic_mode=$pic_mode 19624 19625# What is the maximum length of a command? 19626max_cmd_len=$lt_cv_sys_max_cmd_len 19627 19628# Does compiler simultaneously support -c and -o options? 19629compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19630 19631# Must we lock files when doing compilation? 19632need_locks=$lt_need_locks 19633 19634# Do we need the lib prefix for modules? 19635need_lib_prefix=$need_lib_prefix 19636 19637# Do we need a version for libraries? 19638need_version=$need_version 19639 19640# Whether dlopen is supported. 19641dlopen_support=$enable_dlopen 19642 19643# Whether dlopen of programs is supported. 19644dlopen_self=$enable_dlopen_self 19645 19646# Whether dlopen of statically linked programs is supported. 19647dlopen_self_static=$enable_dlopen_self_static 19648 19649# Compiler flag to prevent dynamic linking. 19650link_static_flag=$lt_lt_prog_compiler_static_RC 19651 19652# Compiler flag to turn off builtin functions. 19653no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19654 19655# Compiler flag to allow reflexive dlopens. 19656export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19657 19658# Compiler flag to generate shared objects directly from archives. 19659whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19660 19661# Compiler flag to generate thread-safe objects. 19662thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19663 19664# Library versioning type. 19665version_type=$version_type 19666 19667# Format of library name prefix. 19668libname_spec=$lt_libname_spec 19669 19670# List of archive names. First name is the real one, the rest are links. 19671# The last name is the one that the linker finds with -lNAME. 19672library_names_spec=$lt_library_names_spec 19673 19674# The coded name of the library, if different from the real name. 19675soname_spec=$lt_soname_spec 19676 19677# Commands used to build and install an old-style archive. 19678RANLIB=$lt_RANLIB 19679old_archive_cmds=$lt_old_archive_cmds_RC 19680old_postinstall_cmds=$lt_old_postinstall_cmds 19681old_postuninstall_cmds=$lt_old_postuninstall_cmds 19682 19683# Create an old-style archive from a shared archive. 19684old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19685 19686# Create a temporary old-style archive to link instead of a shared archive. 19687old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19688 19689# Commands used to build and install a shared archive. 19690archive_cmds=$lt_archive_cmds_RC 19691archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19692postinstall_cmds=$lt_postinstall_cmds 19693postuninstall_cmds=$lt_postuninstall_cmds 19694 19695# Commands used to build a loadable module (assumed same as above if empty) 19696module_cmds=$lt_module_cmds_RC 19697module_expsym_cmds=$lt_module_expsym_cmds_RC 19698 19699# Commands to strip libraries. 19700old_striplib=$lt_old_striplib 19701striplib=$lt_striplib 19702 19703# Dependencies to place before the objects being linked to create a 19704# shared library. 19705predep_objects=$lt_predep_objects_RC 19706 19707# Dependencies to place after the objects being linked to create a 19708# shared library. 19709postdep_objects=$lt_postdep_objects_RC 19710 19711# Dependencies to place before the objects being linked to create a 19712# shared library. 19713predeps=$lt_predeps_RC 19714 19715# Dependencies to place after the objects being linked to create a 19716# shared library. 19717postdeps=$lt_postdeps_RC 19718 19719# The library search path used internally by the compiler when linking 19720# a shared library. 19721compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19722 19723# Method to check whether dependent libraries are shared objects. 19724deplibs_check_method=$lt_deplibs_check_method 19725 19726# Command to use when deplibs_check_method == file_magic. 19727file_magic_cmd=$lt_file_magic_cmd 19728 19729# Flag that allows shared libraries with undefined symbols to be built. 19730allow_undefined_flag=$lt_allow_undefined_flag_RC 19731 19732# Flag that forces no undefined symbols. 19733no_undefined_flag=$lt_no_undefined_flag_RC 19734 19735# Commands used to finish a libtool library installation in a directory. 19736finish_cmds=$lt_finish_cmds 19737 19738# Same as above, but a single script fragment to be evaled but not shown. 19739finish_eval=$lt_finish_eval 19740 19741# Take the output of nm and produce a listing of raw symbols and C names. 19742global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19743 19744# Transform the output of nm in a proper C declaration 19745global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19746 19747# Transform the output of nm in a C name address pair 19748global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19749 19750# This is the shared library runtime path variable. 19751runpath_var=$runpath_var 19752 19753# This is the shared library path variable. 19754shlibpath_var=$shlibpath_var 19755 19756# Is shlibpath searched before the hard-coded library search path? 19757shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19758 19759# How to hardcode a shared library path into an executable. 19760hardcode_action=$hardcode_action_RC 19761 19762# Whether we should hardcode library paths into libraries. 19763hardcode_into_libs=$hardcode_into_libs 19764 19765# Flag to hardcode \$libdir into a binary during linking. 19766# This must work even if \$libdir does not exist. 19767hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19768 19769# If ld is used when linking, flag to hardcode \$libdir into 19770# a binary during linking. This must work even if \$libdir does 19771# not exist. 19772hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19773 19774# Whether we need a single -rpath flag with a separated argument. 19775hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19776 19777# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19778# resulting binary. 19779hardcode_direct=$hardcode_direct_RC 19780 19781# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19782# resulting binary. 19783hardcode_minus_L=$hardcode_minus_L_RC 19784 19785# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19786# the resulting binary. 19787hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19788 19789# Set to yes if building a shared library automatically hardcodes DIR into the library 19790# and all subsequent libraries and executables linked against it. 19791hardcode_automatic=$hardcode_automatic_RC 19792 19793# Variables whose values should be saved in libtool wrapper scripts and 19794# restored at relink time. 19795variables_saved_for_relink="$variables_saved_for_relink" 19796 19797# Whether libtool must link a program against all its dependency libraries. 19798link_all_deplibs=$link_all_deplibs_RC 19799 19800# Compile-time system search path for libraries 19801sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19802 19803# Run-time system search path for libraries 19804sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19805 19806# Fix the shell variable \$srcfile for the compiler. 19807fix_srcfile_path="$fix_srcfile_path_RC" 19808 19809# Set to yes if exported symbols are required. 19810always_export_symbols=$always_export_symbols_RC 19811 19812# The commands to list exported symbols. 19813export_symbols_cmds=$lt_export_symbols_cmds_RC 19814 19815# The commands to extract the exported symbol list from a shared archive. 19816extract_expsyms_cmds=$lt_extract_expsyms_cmds 19817 19818# Symbols that should not be listed in the preloaded symbols. 19819exclude_expsyms=$lt_exclude_expsyms_RC 19820 19821# Symbols that must always be exported. 19822include_expsyms=$lt_include_expsyms_RC 19823 19824# ### END LIBTOOL TAG CONFIG: $tagname 19825 19826__EOF__ 19827 19828 19829else 19830 # If there is no Makefile yet, we rely on a make rule to execute 19831 # `config.status --recheck' to rerun these tests and create the 19832 # libtool script then. 19833 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19834 if test -f "$ltmain_in"; then 19835 test -f Makefile && make "$ltmain" 19836 fi 19837fi 19838 19839 19840ac_ext=c 19841ac_cpp='$CPP $CPPFLAGS' 19842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19844ac_compiler_gnu=$ac_cv_c_compiler_gnu 19845 19846CC="$lt_save_CC" 19847 19848 ;; 19849 19850 *) 19851 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19852echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19853 { (exit 1); exit 1; }; } 19854 ;; 19855 esac 19856 19857 # Append the new tag name to the list of available tags. 19858 if test -n "$tagname" ; then 19859 available_tags="$available_tags $tagname" 19860 fi 19861 fi 19862 done 19863 IFS="$lt_save_ifs" 19864 19865 # Now substitute the updated list of available tags. 19866 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19867 mv "${ofile}T" "$ofile" 19868 chmod +x "$ofile" 19869 else 19870 rm -f "${ofile}T" 19871 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19872echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19873 { (exit 1); exit 1; }; } 19874 fi 19875fi 19876 19877 19878 19879# This can be used to rebuild libtool when needed 19880LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19881 19882# Always use our own libtool. 19883LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19884 19885# Prevent multiple expansion 19886 19887 19888 19889 19890 19891 19892 19893 19894 19895 19896 19897 19898 19899 19900 19901 19902 19903 19904 19905 19906 19907ac_ext=c 19908ac_cpp='$CPP $CPPFLAGS' 19909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19911ac_compiler_gnu=$ac_cv_c_compiler_gnu 19912if test -n "$ac_tool_prefix"; then 19913 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 19914set dummy ${ac_tool_prefix}gcc; ac_word=$2 19915{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19917if test "${ac_cv_prog_CC+set}" = set; then 19918 echo $ECHO_N "(cached) $ECHO_C" >&6 19919else 19920 if test -n "$CC"; then 19921 ac_cv_prog_CC="$CC" # Let the user override the test. 19922else 19923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19924for as_dir in $PATH 19925do 19926 IFS=$as_save_IFS 19927 test -z "$as_dir" && as_dir=. 19928 for ac_exec_ext in '' $ac_executable_extensions; do 19929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 19930 ac_cv_prog_CC="${ac_tool_prefix}gcc" 19931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19932 break 2 19933 fi 19934done 19935done 19936IFS=$as_save_IFS 19937 19938fi 19939fi 19940CC=$ac_cv_prog_CC 19941if test -n "$CC"; then 19942 { echo "$as_me:$LINENO: result: $CC" >&5 19943echo "${ECHO_T}$CC" >&6; } 19944else 19945 { echo "$as_me:$LINENO: result: no" >&5 19946echo "${ECHO_T}no" >&6; } 19947fi 19948 19949 19950fi 19951if test -z "$ac_cv_prog_CC"; then 19952 ac_ct_CC=$CC 19953 # Extract the first word of "gcc", so it can be a program name with args. 19954set dummy gcc; ac_word=$2 19955{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19957if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 19958 echo $ECHO_N "(cached) $ECHO_C" >&6 19959else 19960 if test -n "$ac_ct_CC"; then 19961 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 19962else 19963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19964for as_dir in $PATH 19965do 19966 IFS=$as_save_IFS 19967 test -z "$as_dir" && as_dir=. 19968 for ac_exec_ext in '' $ac_executable_extensions; do 19969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 19970 ac_cv_prog_ac_ct_CC="gcc" 19971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19972 break 2 19973 fi 19974done 19975done 19976IFS=$as_save_IFS 19977 19978fi 19979fi 19980ac_ct_CC=$ac_cv_prog_ac_ct_CC 19981if test -n "$ac_ct_CC"; then 19982 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 19983echo "${ECHO_T}$ac_ct_CC" >&6; } 19984else 19985 { echo "$as_me:$LINENO: result: no" >&5 19986echo "${ECHO_T}no" >&6; } 19987fi 19988 19989 if test "x$ac_ct_CC" = x; then 19990 CC="" 19991 else 19992 case $cross_compiling:$ac_tool_warned in 19993yes:) 19994{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 19995whose name does not start with the host triplet. If you think this 19996configuration is useful to you, please write to autoconf@gnu.org." >&5 19997echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 19998whose name does not start with the host triplet. If you think this 19999configuration is useful to you, please write to autoconf@gnu.org." >&2;} 20000ac_tool_warned=yes ;; 20001esac 20002 CC=$ac_ct_CC 20003 fi 20004else 20005 CC="$ac_cv_prog_CC" 20006fi 20007 20008if test -z "$CC"; then 20009 if test -n "$ac_tool_prefix"; then 20010 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 20011set dummy ${ac_tool_prefix}cc; ac_word=$2 20012{ echo "$as_me:$LINENO: checking for $ac_word" >&5 20013echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 20014if test "${ac_cv_prog_CC+set}" = set; then 20015 echo $ECHO_N "(cached) $ECHO_C" >&6 20016else 20017 if test -n "$CC"; then 20018 ac_cv_prog_CC="$CC" # Let the user override the test. 20019else 20020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20021for as_dir in $PATH 20022do 20023 IFS=$as_save_IFS 20024 test -z "$as_dir" && as_dir=. 20025 for ac_exec_ext in '' $ac_executable_extensions; do 20026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 20027 ac_cv_prog_CC="${ac_tool_prefix}cc" 20028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20029 break 2 20030 fi 20031done 20032done 20033IFS=$as_save_IFS 20034 20035fi 20036fi 20037CC=$ac_cv_prog_CC 20038if test -n "$CC"; then 20039 { echo "$as_me:$LINENO: result: $CC" >&5 20040echo "${ECHO_T}$CC" >&6; } 20041else 20042 { echo "$as_me:$LINENO: result: no" >&5 20043echo "${ECHO_T}no" >&6; } 20044fi 20045 20046 20047 fi 20048fi 20049if test -z "$CC"; then 20050 # Extract the first word of "cc", so it can be a program name with args. 20051set dummy cc; ac_word=$2 20052{ echo "$as_me:$LINENO: checking for $ac_word" >&5 20053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 20054if test "${ac_cv_prog_CC+set}" = set; then 20055 echo $ECHO_N "(cached) $ECHO_C" >&6 20056else 20057 if test -n "$CC"; then 20058 ac_cv_prog_CC="$CC" # Let the user override the test. 20059else 20060 ac_prog_rejected=no 20061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20062for as_dir in $PATH 20063do 20064 IFS=$as_save_IFS 20065 test -z "$as_dir" && as_dir=. 20066 for ac_exec_ext in '' $ac_executable_extensions; do 20067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 20068 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 20069 ac_prog_rejected=yes 20070 continue 20071 fi 20072 ac_cv_prog_CC="cc" 20073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20074 break 2 20075 fi 20076done 20077done 20078IFS=$as_save_IFS 20079 20080if test $ac_prog_rejected = yes; then 20081 # We found a bogon in the path, so make sure we never use it. 20082 set dummy $ac_cv_prog_CC 20083 shift 20084 if test $# != 0; then 20085 # We chose a different compiler from the bogus one. 20086 # However, it has the same basename, so the bogon will be chosen 20087 # first if we set CC to just the basename; use the full file name. 20088 shift 20089 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 20090 fi 20091fi 20092fi 20093fi 20094CC=$ac_cv_prog_CC 20095if test -n "$CC"; then 20096 { echo "$as_me:$LINENO: result: $CC" >&5 20097echo "${ECHO_T}$CC" >&6; } 20098else 20099 { echo "$as_me:$LINENO: result: no" >&5 20100echo "${ECHO_T}no" >&6; } 20101fi 20102 20103 20104fi 20105if test -z "$CC"; then 20106 if test -n "$ac_tool_prefix"; then 20107 for ac_prog in cl.exe 20108 do 20109 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 20110set dummy $ac_tool_prefix$ac_prog; ac_word=$2 20111{ echo "$as_me:$LINENO: checking for $ac_word" >&5 20112echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 20113if test "${ac_cv_prog_CC+set}" = set; then 20114 echo $ECHO_N "(cached) $ECHO_C" >&6 20115else 20116 if test -n "$CC"; then 20117 ac_cv_prog_CC="$CC" # Let the user override the test. 20118else 20119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20120for as_dir in $PATH 20121do 20122 IFS=$as_save_IFS 20123 test -z "$as_dir" && as_dir=. 20124 for ac_exec_ext in '' $ac_executable_extensions; do 20125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 20126 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 20127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20128 break 2 20129 fi 20130done 20131done 20132IFS=$as_save_IFS 20133 20134fi 20135fi 20136CC=$ac_cv_prog_CC 20137if test -n "$CC"; then 20138 { echo "$as_me:$LINENO: result: $CC" >&5 20139echo "${ECHO_T}$CC" >&6; } 20140else 20141 { echo "$as_me:$LINENO: result: no" >&5 20142echo "${ECHO_T}no" >&6; } 20143fi 20144 20145 20146 test -n "$CC" && break 20147 done 20148fi 20149if test -z "$CC"; then 20150 ac_ct_CC=$CC 20151 for ac_prog in cl.exe 20152do 20153 # Extract the first word of "$ac_prog", so it can be a program name with args. 20154set dummy $ac_prog; ac_word=$2 20155{ echo "$as_me:$LINENO: checking for $ac_word" >&5 20156echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 20157if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 20158 echo $ECHO_N "(cached) $ECHO_C" >&6 20159else 20160 if test -n "$ac_ct_CC"; then 20161 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 20162else 20163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20164for as_dir in $PATH 20165do 20166 IFS=$as_save_IFS 20167 test -z "$as_dir" && as_dir=. 20168 for ac_exec_ext in '' $ac_executable_extensions; do 20169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 20170 ac_cv_prog_ac_ct_CC="$ac_prog" 20171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20172 break 2 20173 fi 20174done 20175done 20176IFS=$as_save_IFS 20177 20178fi 20179fi 20180ac_ct_CC=$ac_cv_prog_ac_ct_CC 20181if test -n "$ac_ct_CC"; then 20182 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 20183echo "${ECHO_T}$ac_ct_CC" >&6; } 20184else 20185 { echo "$as_me:$LINENO: result: no" >&5 20186echo "${ECHO_T}no" >&6; } 20187fi 20188 20189 20190 test -n "$ac_ct_CC" && break 20191done 20192 20193 if test "x$ac_ct_CC" = x; then 20194 CC="" 20195 else 20196 case $cross_compiling:$ac_tool_warned in 20197yes:) 20198{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 20199whose name does not start with the host triplet. If you think this 20200configuration is useful to you, please write to autoconf@gnu.org." >&5 20201echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 20202whose name does not start with the host triplet. If you think this 20203configuration is useful to you, please write to autoconf@gnu.org." >&2;} 20204ac_tool_warned=yes ;; 20205esac 20206 CC=$ac_ct_CC 20207 fi 20208fi 20209 20210fi 20211 20212 20213test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 20214See \`config.log' for more details." >&5 20215echo "$as_me: error: no acceptable C compiler found in \$PATH 20216See \`config.log' for more details." >&2;} 20217 { (exit 1); exit 1; }; } 20218 20219# Provide some information about the compiler. 20220echo "$as_me:$LINENO: checking for C compiler version" >&5 20221ac_compiler=`set X $ac_compile; echo $2` 20222{ (ac_try="$ac_compiler --version >&5" 20223case "(($ac_try" in 20224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20225 *) ac_try_echo=$ac_try;; 20226esac 20227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20228 (eval "$ac_compiler --version >&5") 2>&5 20229 ac_status=$? 20230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20231 (exit $ac_status); } 20232{ (ac_try="$ac_compiler -v >&5" 20233case "(($ac_try" in 20234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20235 *) ac_try_echo=$ac_try;; 20236esac 20237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20238 (eval "$ac_compiler -v >&5") 2>&5 20239 ac_status=$? 20240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20241 (exit $ac_status); } 20242{ (ac_try="$ac_compiler -V >&5" 20243case "(($ac_try" in 20244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20245 *) ac_try_echo=$ac_try;; 20246esac 20247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20248 (eval "$ac_compiler -V >&5") 2>&5 20249 ac_status=$? 20250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20251 (exit $ac_status); } 20252 20253{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 20254echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 20255if test "${ac_cv_c_compiler_gnu+set}" = set; then 20256 echo $ECHO_N "(cached) $ECHO_C" >&6 20257else 20258 cat >conftest.$ac_ext <<_ACEOF 20259/* confdefs.h. */ 20260_ACEOF 20261cat confdefs.h >>conftest.$ac_ext 20262cat >>conftest.$ac_ext <<_ACEOF 20263/* end confdefs.h. */ 20264 20265int 20266main () 20267{ 20268#ifndef __GNUC__ 20269 choke me 20270#endif 20271 20272 ; 20273 return 0; 20274} 20275_ACEOF 20276rm -f conftest.$ac_objext 20277if { (ac_try="$ac_compile" 20278case "(($ac_try" in 20279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20280 *) ac_try_echo=$ac_try;; 20281esac 20282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20283 (eval "$ac_compile") 2>conftest.er1 20284 ac_status=$? 20285 grep -v '^ *+' conftest.er1 >conftest.err 20286 rm -f conftest.er1 20287 cat conftest.err >&5 20288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20289 (exit $ac_status); } && 20290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20291 { (case "(($ac_try" in 20292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20293 *) ac_try_echo=$ac_try;; 20294esac 20295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20296 (eval "$ac_try") 2>&5 20297 ac_status=$? 20298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20299 (exit $ac_status); }; } && 20300 { ac_try='test -s conftest.$ac_objext' 20301 { (case "(($ac_try" in 20302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20303 *) ac_try_echo=$ac_try;; 20304esac 20305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20306 (eval "$ac_try") 2>&5 20307 ac_status=$? 20308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20309 (exit $ac_status); }; }; then 20310 ac_compiler_gnu=yes 20311else 20312 echo "$as_me: failed program was:" >&5 20313sed 's/^/| /' conftest.$ac_ext >&5 20314 20315 ac_compiler_gnu=no 20316fi 20317 20318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20319ac_cv_c_compiler_gnu=$ac_compiler_gnu 20320 20321fi 20322{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 20323echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 20324GCC=`test $ac_compiler_gnu = yes && echo yes` 20325ac_test_CFLAGS=${CFLAGS+set} 20326ac_save_CFLAGS=$CFLAGS 20327{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 20328echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 20329if test "${ac_cv_prog_cc_g+set}" = set; then 20330 echo $ECHO_N "(cached) $ECHO_C" >&6 20331else 20332 ac_save_c_werror_flag=$ac_c_werror_flag 20333 ac_c_werror_flag=yes 20334 ac_cv_prog_cc_g=no 20335 CFLAGS="-g" 20336 cat >conftest.$ac_ext <<_ACEOF 20337/* confdefs.h. */ 20338_ACEOF 20339cat confdefs.h >>conftest.$ac_ext 20340cat >>conftest.$ac_ext <<_ACEOF 20341/* end confdefs.h. */ 20342 20343int 20344main () 20345{ 20346 20347 ; 20348 return 0; 20349} 20350_ACEOF 20351rm -f conftest.$ac_objext 20352if { (ac_try="$ac_compile" 20353case "(($ac_try" in 20354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20355 *) ac_try_echo=$ac_try;; 20356esac 20357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20358 (eval "$ac_compile") 2>conftest.er1 20359 ac_status=$? 20360 grep -v '^ *+' conftest.er1 >conftest.err 20361 rm -f conftest.er1 20362 cat conftest.err >&5 20363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20364 (exit $ac_status); } && 20365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20366 { (case "(($ac_try" in 20367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20368 *) ac_try_echo=$ac_try;; 20369esac 20370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20371 (eval "$ac_try") 2>&5 20372 ac_status=$? 20373 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20374 (exit $ac_status); }; } && 20375 { ac_try='test -s conftest.$ac_objext' 20376 { (case "(($ac_try" in 20377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20378 *) ac_try_echo=$ac_try;; 20379esac 20380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20381 (eval "$ac_try") 2>&5 20382 ac_status=$? 20383 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20384 (exit $ac_status); }; }; then 20385 ac_cv_prog_cc_g=yes 20386else 20387 echo "$as_me: failed program was:" >&5 20388sed 's/^/| /' conftest.$ac_ext >&5 20389 20390 CFLAGS="" 20391 cat >conftest.$ac_ext <<_ACEOF 20392/* confdefs.h. */ 20393_ACEOF 20394cat confdefs.h >>conftest.$ac_ext 20395cat >>conftest.$ac_ext <<_ACEOF 20396/* end confdefs.h. */ 20397 20398int 20399main () 20400{ 20401 20402 ; 20403 return 0; 20404} 20405_ACEOF 20406rm -f conftest.$ac_objext 20407if { (ac_try="$ac_compile" 20408case "(($ac_try" in 20409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20410 *) ac_try_echo=$ac_try;; 20411esac 20412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20413 (eval "$ac_compile") 2>conftest.er1 20414 ac_status=$? 20415 grep -v '^ *+' conftest.er1 >conftest.err 20416 rm -f conftest.er1 20417 cat conftest.err >&5 20418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20419 (exit $ac_status); } && 20420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20421 { (case "(($ac_try" in 20422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20423 *) ac_try_echo=$ac_try;; 20424esac 20425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20426 (eval "$ac_try") 2>&5 20427 ac_status=$? 20428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20429 (exit $ac_status); }; } && 20430 { ac_try='test -s conftest.$ac_objext' 20431 { (case "(($ac_try" in 20432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20433 *) ac_try_echo=$ac_try;; 20434esac 20435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20436 (eval "$ac_try") 2>&5 20437 ac_status=$? 20438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20439 (exit $ac_status); }; }; then 20440 : 20441else 20442 echo "$as_me: failed program was:" >&5 20443sed 's/^/| /' conftest.$ac_ext >&5 20444 20445 ac_c_werror_flag=$ac_save_c_werror_flag 20446 CFLAGS="-g" 20447 cat >conftest.$ac_ext <<_ACEOF 20448/* confdefs.h. */ 20449_ACEOF 20450cat confdefs.h >>conftest.$ac_ext 20451cat >>conftest.$ac_ext <<_ACEOF 20452/* end confdefs.h. */ 20453 20454int 20455main () 20456{ 20457 20458 ; 20459 return 0; 20460} 20461_ACEOF 20462rm -f conftest.$ac_objext 20463if { (ac_try="$ac_compile" 20464case "(($ac_try" in 20465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20466 *) ac_try_echo=$ac_try;; 20467esac 20468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20469 (eval "$ac_compile") 2>conftest.er1 20470 ac_status=$? 20471 grep -v '^ *+' conftest.er1 >conftest.err 20472 rm -f conftest.er1 20473 cat conftest.err >&5 20474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20475 (exit $ac_status); } && 20476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20477 { (case "(($ac_try" in 20478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20479 *) ac_try_echo=$ac_try;; 20480esac 20481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20482 (eval "$ac_try") 2>&5 20483 ac_status=$? 20484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20485 (exit $ac_status); }; } && 20486 { ac_try='test -s conftest.$ac_objext' 20487 { (case "(($ac_try" in 20488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20489 *) ac_try_echo=$ac_try;; 20490esac 20491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20492 (eval "$ac_try") 2>&5 20493 ac_status=$? 20494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20495 (exit $ac_status); }; }; then 20496 ac_cv_prog_cc_g=yes 20497else 20498 echo "$as_me: failed program was:" >&5 20499sed 's/^/| /' conftest.$ac_ext >&5 20500 20501 20502fi 20503 20504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20505fi 20506 20507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20508fi 20509 20510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20511 ac_c_werror_flag=$ac_save_c_werror_flag 20512fi 20513{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 20514echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 20515if test "$ac_test_CFLAGS" = set; then 20516 CFLAGS=$ac_save_CFLAGS 20517elif test $ac_cv_prog_cc_g = yes; then 20518 if test "$GCC" = yes; then 20519 CFLAGS="-g -O2" 20520 else 20521 CFLAGS="-g" 20522 fi 20523else 20524 if test "$GCC" = yes; then 20525 CFLAGS="-O2" 20526 else 20527 CFLAGS= 20528 fi 20529fi 20530{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 20531echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 20532if test "${ac_cv_prog_cc_c89+set}" = set; then 20533 echo $ECHO_N "(cached) $ECHO_C" >&6 20534else 20535 ac_cv_prog_cc_c89=no 20536ac_save_CC=$CC 20537cat >conftest.$ac_ext <<_ACEOF 20538/* confdefs.h. */ 20539_ACEOF 20540cat confdefs.h >>conftest.$ac_ext 20541cat >>conftest.$ac_ext <<_ACEOF 20542/* end confdefs.h. */ 20543#include <stdarg.h> 20544#include <stdio.h> 20545#include <sys/types.h> 20546#include <sys/stat.h> 20547/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 20548struct buf { int x; }; 20549FILE * (*rcsopen) (struct buf *, struct stat *, int); 20550static char *e (p, i) 20551 char **p; 20552 int i; 20553{ 20554 return p[i]; 20555} 20556static char *f (char * (*g) (char **, int), char **p, ...) 20557{ 20558 char *s; 20559 va_list v; 20560 va_start (v,p); 20561 s = g (p, va_arg (v,int)); 20562 va_end (v); 20563 return s; 20564} 20565 20566/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 20567 function prototypes and stuff, but not '\xHH' hex character constants. 20568 These don't provoke an error unfortunately, instead are silently treated 20569 as 'x'. The following induces an error, until -std is added to get 20570 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 20571 array size at least. It's necessary to write '\x00'==0 to get something 20572 that's true only with -std. */ 20573int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 20574 20575/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 20576 inside strings and character constants. */ 20577#define FOO(x) 'x' 20578int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 20579 20580int test (int i, double x); 20581struct s1 {int (*f) (int a);}; 20582struct s2 {int (*f) (double a);}; 20583int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 20584int argc; 20585char **argv; 20586int 20587main () 20588{ 20589return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 20590 ; 20591 return 0; 20592} 20593_ACEOF 20594for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 20595 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 20596do 20597 CC="$ac_save_CC $ac_arg" 20598 rm -f conftest.$ac_objext 20599if { (ac_try="$ac_compile" 20600case "(($ac_try" in 20601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20602 *) ac_try_echo=$ac_try;; 20603esac 20604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20605 (eval "$ac_compile") 2>conftest.er1 20606 ac_status=$? 20607 grep -v '^ *+' conftest.er1 >conftest.err 20608 rm -f conftest.er1 20609 cat conftest.err >&5 20610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20611 (exit $ac_status); } && 20612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20613 { (case "(($ac_try" in 20614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20615 *) ac_try_echo=$ac_try;; 20616esac 20617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20618 (eval "$ac_try") 2>&5 20619 ac_status=$? 20620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20621 (exit $ac_status); }; } && 20622 { ac_try='test -s conftest.$ac_objext' 20623 { (case "(($ac_try" in 20624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20625 *) ac_try_echo=$ac_try;; 20626esac 20627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20628 (eval "$ac_try") 2>&5 20629 ac_status=$? 20630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20631 (exit $ac_status); }; }; then 20632 ac_cv_prog_cc_c89=$ac_arg 20633else 20634 echo "$as_me: failed program was:" >&5 20635sed 's/^/| /' conftest.$ac_ext >&5 20636 20637 20638fi 20639 20640rm -f core conftest.err conftest.$ac_objext 20641 test "x$ac_cv_prog_cc_c89" != "xno" && break 20642done 20643rm -f conftest.$ac_ext 20644CC=$ac_save_CC 20645 20646fi 20647# AC_CACHE_VAL 20648case "x$ac_cv_prog_cc_c89" in 20649 x) 20650 { echo "$as_me:$LINENO: result: none needed" >&5 20651echo "${ECHO_T}none needed" >&6; } ;; 20652 xno) 20653 { echo "$as_me:$LINENO: result: unsupported" >&5 20654echo "${ECHO_T}unsupported" >&6; } ;; 20655 *) 20656 CC="$CC $ac_cv_prog_cc_c89" 20657 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 20658echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 20659esac 20660 20661 20662ac_ext=c 20663ac_cpp='$CPP $CPPFLAGS' 20664ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20665ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20666ac_compiler_gnu=$ac_cv_c_compiler_gnu 20667 20668depcc="$CC" am_compiler_list= 20669 20670{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 20671echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 20672if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 20673 echo $ECHO_N "(cached) $ECHO_C" >&6 20674else 20675 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 20676 # We make a subdir and do the tests there. Otherwise we can end up 20677 # making bogus files that we don't know about and never remove. For 20678 # instance it was reported that on HP-UX the gcc test will end up 20679 # making a dummy file named `D' -- because `-MD' means `put the output 20680 # in D'. 20681 mkdir conftest.dir 20682 # Copy depcomp to subdir because otherwise we won't find it if we're 20683 # using a relative directory. 20684 cp "$am_depcomp" conftest.dir 20685 cd conftest.dir 20686 # We will build objects and dependencies in a subdirectory because 20687 # it helps to detect inapplicable dependency modes. For instance 20688 # both Tru64's cc and ICC support -MD to output dependencies as a 20689 # side effect of compilation, but ICC will put the dependencies in 20690 # the current directory while Tru64 will put them in the object 20691 # directory. 20692 mkdir sub 20693 20694 am_cv_CC_dependencies_compiler_type=none 20695 if test "$am_compiler_list" = ""; then 20696 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 20697 fi 20698 for depmode in $am_compiler_list; do 20699 # Setup a source with many dependencies, because some compilers 20700 # like to wrap large dependency lists on column 80 (with \), and 20701 # we should not choose a depcomp mode which is confused by this. 20702 # 20703 # We need to recreate these files for each test, as the compiler may 20704 # overwrite some of them when testing with obscure command lines. 20705 # This happens at least with the AIX C compiler. 20706 : > sub/conftest.c 20707 for i in 1 2 3 4 5 6; do 20708 echo '#include "conftst'$i'.h"' >> sub/conftest.c 20709 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 20710 # Solaris 8's {/usr,}/bin/sh. 20711 touch sub/conftst$i.h 20712 done 20713 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 20714 20715 case $depmode in 20716 nosideeffect) 20717 # after this tag, mechanisms are not by side-effect, so they'll 20718 # only be used when explicitly requested 20719 if test "x$enable_dependency_tracking" = xyes; then 20720 continue 20721 else 20722 break 20723 fi 20724 ;; 20725 none) break ;; 20726 esac 20727 # We check with `-c' and `-o' for the sake of the "dashmstdout" 20728 # mode. It turns out that the SunPro C++ compiler does not properly 20729 # handle `-M -o', and we need to detect this. 20730 if depmode=$depmode \ 20731 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 20732 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 20733 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 20734 >/dev/null 2>conftest.err && 20735 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 20736 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 20737 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 20738 # icc doesn't choke on unknown options, it will just issue warnings 20739 # or remarks (even with -Werror). So we grep stderr for any message 20740 # that says an option was ignored or not supported. 20741 # When given -MP, icc 7.0 and 7.1 complain thusly: 20742 # icc: Command line warning: ignoring option '-M'; no argument required 20743 # The diagnosis changed in icc 8.0: 20744 # icc: Command line remark: option '-MP' not supported 20745 if (grep 'ignoring option' conftest.err || 20746 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 20747 am_cv_CC_dependencies_compiler_type=$depmode 20748 break 20749 fi 20750 fi 20751 done 20752 20753 cd .. 20754 rm -rf conftest.dir 20755else 20756 am_cv_CC_dependencies_compiler_type=none 20757fi 20758 20759fi 20760{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 20761echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 20762CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 20763 20764 20765 20766if 20767 test "x$enable_dependency_tracking" != xno \ 20768 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 20769 am__fastdepCC_TRUE= 20770 am__fastdepCC_FALSE='#' 20771else 20772 am__fastdepCC_TRUE='#' 20773 am__fastdepCC_FALSE= 20774fi 20775 20776 20777{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 20778echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 20779set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 20780if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 20781 echo $ECHO_N "(cached) $ECHO_C" >&6 20782else 20783 cat >conftest.make <<\_ACEOF 20784SHELL = /bin/sh 20785all: 20786 @echo '@@@%%%=$(MAKE)=@@@%%%' 20787_ACEOF 20788# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 20789case `${MAKE-make} -f conftest.make 2>/dev/null` in 20790 *@@@%%%=?*=@@@%%%*) 20791 eval ac_cv_prog_make_${ac_make}_set=yes;; 20792 *) 20793 eval ac_cv_prog_make_${ac_make}_set=no;; 20794esac 20795rm -f conftest.make 20796fi 20797if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 20798 { echo "$as_me:$LINENO: result: yes" >&5 20799echo "${ECHO_T}yes" >&6; } 20800 SET_MAKE= 20801else 20802 { echo "$as_me:$LINENO: result: no" >&5 20803echo "${ECHO_T}no" >&6; } 20804 SET_MAKE="MAKE=${MAKE-make}" 20805fi 20806 20807 20808 20809 20810ac_ext=c 20811ac_cpp='$CPP $CPPFLAGS' 20812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20814ac_compiler_gnu=$ac_cv_c_compiler_gnu 20815 20816acx_pthread_ok=no 20817 20818# We used to check for pthread.h first, but this fails if pthread.h 20819# requires special compiler flags (e.g. on True64 or Sequent). 20820# It gets checked for in the link test anyway. 20821 20822# First of all, check if the user has set any of the PTHREAD_LIBS, 20823# etcetera environment variables, and if threads linking works using 20824# them: 20825if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 20826 save_CFLAGS="$CFLAGS" 20827 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 20828 save_LIBS="$LIBS" 20829 LIBS="$PTHREAD_LIBS $LIBS" 20830 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 20831echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; } 20832 cat >conftest.$ac_ext <<_ACEOF 20833/* confdefs.h. */ 20834_ACEOF 20835cat confdefs.h >>conftest.$ac_ext 20836cat >>conftest.$ac_ext <<_ACEOF 20837/* end confdefs.h. */ 20838 20839/* Override any GCC internal prototype to avoid an error. 20840 Use char because int might match the return type of a GCC 20841 builtin and then its argument prototype would still apply. */ 20842#ifdef __cplusplus 20843extern "C" 20844#endif 20845char pthread_join (); 20846int 20847main () 20848{ 20849return pthread_join (); 20850 ; 20851 return 0; 20852} 20853_ACEOF 20854rm -f conftest.$ac_objext conftest$ac_exeext 20855if { (ac_try="$ac_link" 20856case "(($ac_try" in 20857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20858 *) ac_try_echo=$ac_try;; 20859esac 20860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20861 (eval "$ac_link") 2>conftest.er1 20862 ac_status=$? 20863 grep -v '^ *+' conftest.er1 >conftest.err 20864 rm -f conftest.er1 20865 cat conftest.err >&5 20866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20867 (exit $ac_status); } && 20868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20869 { (case "(($ac_try" in 20870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20871 *) ac_try_echo=$ac_try;; 20872esac 20873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20874 (eval "$ac_try") 2>&5 20875 ac_status=$? 20876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20877 (exit $ac_status); }; } && 20878 { ac_try='test -s conftest$ac_exeext' 20879 { (case "(($ac_try" in 20880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20881 *) ac_try_echo=$ac_try;; 20882esac 20883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20884 (eval "$ac_try") 2>&5 20885 ac_status=$? 20886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20887 (exit $ac_status); }; }; then 20888 acx_pthread_ok=yes 20889else 20890 echo "$as_me: failed program was:" >&5 20891sed 's/^/| /' conftest.$ac_ext >&5 20892 20893 20894fi 20895 20896rm -f core conftest.err conftest.$ac_objext \ 20897 conftest$ac_exeext conftest.$ac_ext 20898 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5 20899echo "${ECHO_T}$acx_pthread_ok" >&6; } 20900 if test x"$acx_pthread_ok" = xno; then 20901 PTHREAD_LIBS="" 20902 PTHREAD_CFLAGS="" 20903 fi 20904 LIBS="$save_LIBS" 20905 CFLAGS="$save_CFLAGS" 20906fi 20907 20908# We must check for the threads library under a number of different 20909# names; the ordering is very important because some systems 20910# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 20911# libraries is broken (non-POSIX). 20912 20913# Create a list of thread flags to try. Items starting with a "-" are 20914# C compiler flags, and other items are library names, except for "none" 20915# which indicates that we try without any flags at all. 20916 20917acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt" 20918 20919# The ordering *is* (sometimes) important. Some notes on the 20920# individual items follow: 20921 20922# pthreads: AIX (must check this before -lpthread) 20923# none: in case threads are in libc; should be tried before -Kthread and 20924# other compiler flags to prevent continual compiler warnings 20925# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 20926# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 20927# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 20928# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 20929# -pthreads: Solaris/gcc 20930# -mthreads: Mingw32/gcc, Lynx/gcc 20931# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 20932# doesn't hurt to check since this sometimes defines pthreads too; 20933# also defines -D_REENTRANT) 20934# pthread: Linux, etcetera 20935# --thread-safe: KAI C++ 20936 20937case "${host_cpu}-${host_os}" in 20938 *solaris*) 20939 20940 # On Solaris (at least, for some versions), libc contains stubbed 20941 # (non-functional) versions of the pthreads routines, so link-based 20942 # tests will erroneously succeed. (We need to link with -pthread or 20943 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 20944 # a function called by this macro, so we could check for that, but 20945 # who knows whether they'll stub that too in a future libc.) So, 20946 # we'll just look for -pthreads and -lpthread first: 20947 20948 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags" 20949 ;; 20950esac 20951 20952if test x"$acx_pthread_ok" = xno; then 20953for flag in $acx_pthread_flags; do 20954 20955 case $flag in 20956 none) 20957 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 20958echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; } 20959 ;; 20960 20961 -*) 20962 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 20963echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; } 20964 PTHREAD_CFLAGS="$flag" 20965 ;; 20966 20967 *) 20968 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 20969echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; } 20970 PTHREAD_LIBS="-l$flag" 20971 ;; 20972 esac 20973 20974 save_LIBS="$LIBS" 20975 save_CFLAGS="$CFLAGS" 20976 LIBS="$PTHREAD_LIBS $LIBS" 20977 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 20978 20979 # Check for various functions. We must include pthread.h, 20980 # since some functions may be macros. (On the Sequent, we 20981 # need a special flag -Kthread to make this header compile.) 20982 # We check for pthread_join because it is in -lpthread on IRIX 20983 # while pthread_create is in libc. We check for pthread_attr_init 20984 # due to DEC craziness with -lpthreads. We check for 20985 # pthread_cleanup_push because it is one of the few pthread 20986 # functions on Solaris that doesn't have a non-functional libc stub. 20987 # We try pthread_create on general principles. 20988 cat >conftest.$ac_ext <<_ACEOF 20989/* confdefs.h. */ 20990_ACEOF 20991cat confdefs.h >>conftest.$ac_ext 20992cat >>conftest.$ac_ext <<_ACEOF 20993/* end confdefs.h. */ 20994#include <pthread.h> 20995int 20996main () 20997{ 20998pthread_t th; pthread_join(th, 0); 20999 pthread_attr_init(0); pthread_cleanup_push(0, 0); 21000 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 21001 ; 21002 return 0; 21003} 21004_ACEOF 21005rm -f conftest.$ac_objext conftest$ac_exeext 21006if { (ac_try="$ac_link" 21007case "(($ac_try" in 21008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21009 *) ac_try_echo=$ac_try;; 21010esac 21011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21012 (eval "$ac_link") 2>conftest.er1 21013 ac_status=$? 21014 grep -v '^ *+' conftest.er1 >conftest.err 21015 rm -f conftest.er1 21016 cat conftest.err >&5 21017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21018 (exit $ac_status); } && 21019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21020 { (case "(($ac_try" in 21021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21022 *) ac_try_echo=$ac_try;; 21023esac 21024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21025 (eval "$ac_try") 2>&5 21026 ac_status=$? 21027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21028 (exit $ac_status); }; } && 21029 { ac_try='test -s conftest$ac_exeext' 21030 { (case "(($ac_try" in 21031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21032 *) ac_try_echo=$ac_try;; 21033esac 21034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21035 (eval "$ac_try") 2>&5 21036 ac_status=$? 21037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21038 (exit $ac_status); }; }; then 21039 acx_pthread_ok=yes 21040else 21041 echo "$as_me: failed program was:" >&5 21042sed 's/^/| /' conftest.$ac_ext >&5 21043 21044 21045fi 21046 21047rm -f core conftest.err conftest.$ac_objext \ 21048 conftest$ac_exeext conftest.$ac_ext 21049 21050 LIBS="$save_LIBS" 21051 CFLAGS="$save_CFLAGS" 21052 21053 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5 21054echo "${ECHO_T}$acx_pthread_ok" >&6; } 21055 if test "x$acx_pthread_ok" = xyes; then 21056 break; 21057 fi 21058 21059 PTHREAD_LIBS="" 21060 PTHREAD_CFLAGS="" 21061done 21062fi 21063 21064# Various other checks: 21065if test "x$acx_pthread_ok" = xyes; then 21066 save_LIBS="$LIBS" 21067 LIBS="$PTHREAD_LIBS $LIBS" 21068 save_CFLAGS="$CFLAGS" 21069 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 21070 21071 # Detect AIX lossage: threads are created detached by default 21072 # and the JOINABLE attribute has a nonstandard name (UNDETACHED). 21073 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5 21074echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; } 21075 cat >conftest.$ac_ext <<_ACEOF 21076/* confdefs.h. */ 21077_ACEOF 21078cat confdefs.h >>conftest.$ac_ext 21079cat >>conftest.$ac_ext <<_ACEOF 21080/* end confdefs.h. */ 21081#include <pthread.h> 21082int 21083main () 21084{ 21085int attr=PTHREAD_CREATE_JOINABLE; 21086 ; 21087 return 0; 21088} 21089_ACEOF 21090rm -f conftest.$ac_objext conftest$ac_exeext 21091if { (ac_try="$ac_link" 21092case "(($ac_try" in 21093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21094 *) ac_try_echo=$ac_try;; 21095esac 21096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21097 (eval "$ac_link") 2>conftest.er1 21098 ac_status=$? 21099 grep -v '^ *+' conftest.er1 >conftest.err 21100 rm -f conftest.er1 21101 cat conftest.err >&5 21102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21103 (exit $ac_status); } && 21104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21105 { (case "(($ac_try" in 21106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21107 *) ac_try_echo=$ac_try;; 21108esac 21109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21110 (eval "$ac_try") 2>&5 21111 ac_status=$? 21112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21113 (exit $ac_status); }; } && 21114 { ac_try='test -s conftest$ac_exeext' 21115 { (case "(($ac_try" in 21116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21117 *) ac_try_echo=$ac_try;; 21118esac 21119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21120 (eval "$ac_try") 2>&5 21121 ac_status=$? 21122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21123 (exit $ac_status); }; }; then 21124 ok=PTHREAD_CREATE_JOINABLE 21125else 21126 echo "$as_me: failed program was:" >&5 21127sed 's/^/| /' conftest.$ac_ext >&5 21128 21129 ok=unknown 21130fi 21131 21132rm -f core conftest.err conftest.$ac_objext \ 21133 conftest$ac_exeext conftest.$ac_ext 21134 if test x"$ok" = xunknown; then 21135 cat >conftest.$ac_ext <<_ACEOF 21136/* confdefs.h. */ 21137_ACEOF 21138cat confdefs.h >>conftest.$ac_ext 21139cat >>conftest.$ac_ext <<_ACEOF 21140/* end confdefs.h. */ 21141#include <pthread.h> 21142int 21143main () 21144{ 21145int attr=PTHREAD_CREATE_UNDETACHED; 21146 ; 21147 return 0; 21148} 21149_ACEOF 21150rm -f conftest.$ac_objext conftest$ac_exeext 21151if { (ac_try="$ac_link" 21152case "(($ac_try" in 21153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21154 *) ac_try_echo=$ac_try;; 21155esac 21156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21157 (eval "$ac_link") 2>conftest.er1 21158 ac_status=$? 21159 grep -v '^ *+' conftest.er1 >conftest.err 21160 rm -f conftest.er1 21161 cat conftest.err >&5 21162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21163 (exit $ac_status); } && 21164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21165 { (case "(($ac_try" in 21166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21167 *) ac_try_echo=$ac_try;; 21168esac 21169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21170 (eval "$ac_try") 2>&5 21171 ac_status=$? 21172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21173 (exit $ac_status); }; } && 21174 { ac_try='test -s conftest$ac_exeext' 21175 { (case "(($ac_try" in 21176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21177 *) ac_try_echo=$ac_try;; 21178esac 21179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21180 (eval "$ac_try") 2>&5 21181 ac_status=$? 21182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21183 (exit $ac_status); }; }; then 21184 ok=PTHREAD_CREATE_UNDETACHED 21185else 21186 echo "$as_me: failed program was:" >&5 21187sed 's/^/| /' conftest.$ac_ext >&5 21188 21189 ok=unknown 21190fi 21191 21192rm -f core conftest.err conftest.$ac_objext \ 21193 conftest$ac_exeext conftest.$ac_ext 21194 fi 21195 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then 21196 21197cat >>confdefs.h <<\_ACEOF 21198#define PTHREAD_CREATE_JOINABLE $ok 21199_ACEOF 21200 21201 fi 21202 { echo "$as_me:$LINENO: result: ${ok}" >&5 21203echo "${ECHO_T}${ok}" >&6; } 21204 if test x"$ok" = xunknown; then 21205 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5 21206echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;} 21207 fi 21208 21209 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 21210echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; } 21211 flag=no 21212 case "${host_cpu}-${host_os}" in 21213 *-aix* | *-freebsd*) flag="-D_THREAD_SAFE";; 21214 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; 21215 esac 21216 { echo "$as_me:$LINENO: result: ${flag}" >&5 21217echo "${ECHO_T}${flag}" >&6; } 21218 if test "x$flag" != xno; then 21219 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 21220 fi 21221 21222 LIBS="$save_LIBS" 21223 CFLAGS="$save_CFLAGS" 21224fi 21225PTHREAD_CC="$CC" 21226 21227 21228 21229 21230 21231# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 21232if test x"$acx_pthread_ok" = xyes; then 21233 21234cat >>confdefs.h <<\_ACEOF 21235#define HAVE_PTHREAD 1 21236_ACEOF 21237 21238 : 21239else 21240 acx_pthread_ok=no 21241 21242fi 21243ac_ext=c 21244ac_cpp='$CPP $CPPFLAGS' 21245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21247ac_compiler_gnu=$ac_cv_c_compiler_gnu 21248 21249 21250LIBS="$PTHREAD_CFLAGS $PTHREAD_LIBS $LIBS" 21251CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 21252CC="$PTHREAD_CC" 21253 21254{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 21255echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 21256if test "${ac_cv_header_stdc+set}" = set; then 21257 echo $ECHO_N "(cached) $ECHO_C" >&6 21258else 21259 cat >conftest.$ac_ext <<_ACEOF 21260/* confdefs.h. */ 21261_ACEOF 21262cat confdefs.h >>conftest.$ac_ext 21263cat >>conftest.$ac_ext <<_ACEOF 21264/* end confdefs.h. */ 21265#include <stdlib.h> 21266#include <stdarg.h> 21267#include <string.h> 21268#include <float.h> 21269 21270int 21271main () 21272{ 21273 21274 ; 21275 return 0; 21276} 21277_ACEOF 21278rm -f conftest.$ac_objext 21279if { (ac_try="$ac_compile" 21280case "(($ac_try" in 21281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21282 *) ac_try_echo=$ac_try;; 21283esac 21284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21285 (eval "$ac_compile") 2>conftest.er1 21286 ac_status=$? 21287 grep -v '^ *+' conftest.er1 >conftest.err 21288 rm -f conftest.er1 21289 cat conftest.err >&5 21290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21291 (exit $ac_status); } && 21292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21293 { (case "(($ac_try" in 21294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21295 *) ac_try_echo=$ac_try;; 21296esac 21297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21298 (eval "$ac_try") 2>&5 21299 ac_status=$? 21300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21301 (exit $ac_status); }; } && 21302 { ac_try='test -s conftest.$ac_objext' 21303 { (case "(($ac_try" in 21304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21305 *) ac_try_echo=$ac_try;; 21306esac 21307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21308 (eval "$ac_try") 2>&5 21309 ac_status=$? 21310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21311 (exit $ac_status); }; }; then 21312 ac_cv_header_stdc=yes 21313else 21314 echo "$as_me: failed program was:" >&5 21315sed 's/^/| /' conftest.$ac_ext >&5 21316 21317 ac_cv_header_stdc=no 21318fi 21319 21320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21321 21322if test $ac_cv_header_stdc = yes; then 21323 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 21324 cat >conftest.$ac_ext <<_ACEOF 21325/* confdefs.h. */ 21326_ACEOF 21327cat confdefs.h >>conftest.$ac_ext 21328cat >>conftest.$ac_ext <<_ACEOF 21329/* end confdefs.h. */ 21330#include <string.h> 21331 21332_ACEOF 21333if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21334 $EGREP "memchr" >/dev/null 2>&1; then 21335 : 21336else 21337 ac_cv_header_stdc=no 21338fi 21339rm -f conftest* 21340 21341fi 21342 21343if test $ac_cv_header_stdc = yes; then 21344 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 21345 cat >conftest.$ac_ext <<_ACEOF 21346/* confdefs.h. */ 21347_ACEOF 21348cat confdefs.h >>conftest.$ac_ext 21349cat >>conftest.$ac_ext <<_ACEOF 21350/* end confdefs.h. */ 21351#include <stdlib.h> 21352 21353_ACEOF 21354if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21355 $EGREP "free" >/dev/null 2>&1; then 21356 : 21357else 21358 ac_cv_header_stdc=no 21359fi 21360rm -f conftest* 21361 21362fi 21363 21364if test $ac_cv_header_stdc = yes; then 21365 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 21366 if test "$cross_compiling" = yes; then 21367 : 21368else 21369 cat >conftest.$ac_ext <<_ACEOF 21370/* confdefs.h. */ 21371_ACEOF 21372cat confdefs.h >>conftest.$ac_ext 21373cat >>conftest.$ac_ext <<_ACEOF 21374/* end confdefs.h. */ 21375#include <ctype.h> 21376#include <stdlib.h> 21377#if ((' ' & 0x0FF) == 0x020) 21378# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 21379# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 21380#else 21381# define ISLOWER(c) \ 21382 (('a' <= (c) && (c) <= 'i') \ 21383 || ('j' <= (c) && (c) <= 'r') \ 21384 || ('s' <= (c) && (c) <= 'z')) 21385# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 21386#endif 21387 21388#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 21389int 21390main () 21391{ 21392 int i; 21393 for (i = 0; i < 256; i++) 21394 if (XOR (islower (i), ISLOWER (i)) 21395 || toupper (i) != TOUPPER (i)) 21396 return 2; 21397 return 0; 21398} 21399_ACEOF 21400rm -f conftest$ac_exeext 21401if { (ac_try="$ac_link" 21402case "(($ac_try" in 21403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21404 *) ac_try_echo=$ac_try;; 21405esac 21406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21407 (eval "$ac_link") 2>&5 21408 ac_status=$? 21409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21410 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21411 { (case "(($ac_try" in 21412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21413 *) ac_try_echo=$ac_try;; 21414esac 21415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21416 (eval "$ac_try") 2>&5 21417 ac_status=$? 21418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21419 (exit $ac_status); }; }; then 21420 : 21421else 21422 echo "$as_me: program exited with status $ac_status" >&5 21423echo "$as_me: failed program was:" >&5 21424sed 's/^/| /' conftest.$ac_ext >&5 21425 21426( exit $ac_status ) 21427ac_cv_header_stdc=no 21428fi 21429rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21430fi 21431 21432 21433fi 21434fi 21435{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 21436echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 21437if test $ac_cv_header_stdc = yes; then 21438 21439cat >>confdefs.h <<\_ACEOF 21440#define STDC_HEADERS 1 21441_ACEOF 21442 21443fi 21444 21445 21446 21447 21448 21449for ac_header in pthread.h sched.h mach/mach_init.h mach/mach.h 21450do 21451as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21452if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21453 { echo "$as_me:$LINENO: checking for $ac_header" >&5 21454echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21455if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21456 echo $ECHO_N "(cached) $ECHO_C" >&6 21457fi 21458ac_res=`eval echo '${'$as_ac_Header'}'` 21459 { echo "$as_me:$LINENO: result: $ac_res" >&5 21460echo "${ECHO_T}$ac_res" >&6; } 21461else 21462 # Is the header compilable? 21463{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 21464echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 21465cat >conftest.$ac_ext <<_ACEOF 21466/* confdefs.h. */ 21467_ACEOF 21468cat confdefs.h >>conftest.$ac_ext 21469cat >>conftest.$ac_ext <<_ACEOF 21470/* end confdefs.h. */ 21471$ac_includes_default 21472#include <$ac_header> 21473_ACEOF 21474rm -f conftest.$ac_objext 21475if { (ac_try="$ac_compile" 21476case "(($ac_try" in 21477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21478 *) ac_try_echo=$ac_try;; 21479esac 21480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21481 (eval "$ac_compile") 2>conftest.er1 21482 ac_status=$? 21483 grep -v '^ *+' conftest.er1 >conftest.err 21484 rm -f conftest.er1 21485 cat conftest.err >&5 21486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21487 (exit $ac_status); } && 21488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21489 { (case "(($ac_try" in 21490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21491 *) ac_try_echo=$ac_try;; 21492esac 21493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21494 (eval "$ac_try") 2>&5 21495 ac_status=$? 21496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21497 (exit $ac_status); }; } && 21498 { ac_try='test -s conftest.$ac_objext' 21499 { (case "(($ac_try" in 21500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21501 *) ac_try_echo=$ac_try;; 21502esac 21503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21504 (eval "$ac_try") 2>&5 21505 ac_status=$? 21506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21507 (exit $ac_status); }; }; then 21508 ac_header_compiler=yes 21509else 21510 echo "$as_me: failed program was:" >&5 21511sed 's/^/| /' conftest.$ac_ext >&5 21512 21513 ac_header_compiler=no 21514fi 21515 21516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21517{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21518echo "${ECHO_T}$ac_header_compiler" >&6; } 21519 21520# Is the header present? 21521{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 21522echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 21523cat >conftest.$ac_ext <<_ACEOF 21524/* confdefs.h. */ 21525_ACEOF 21526cat confdefs.h >>conftest.$ac_ext 21527cat >>conftest.$ac_ext <<_ACEOF 21528/* end confdefs.h. */ 21529#include <$ac_header> 21530_ACEOF 21531if { (ac_try="$ac_cpp conftest.$ac_ext" 21532case "(($ac_try" in 21533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21534 *) ac_try_echo=$ac_try;; 21535esac 21536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 21538 ac_status=$? 21539 grep -v '^ *+' conftest.er1 >conftest.err 21540 rm -f conftest.er1 21541 cat conftest.err >&5 21542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21543 (exit $ac_status); } >/dev/null; then 21544 if test -s conftest.err; then 21545 ac_cpp_err=$ac_c_preproc_warn_flag 21546 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 21547 else 21548 ac_cpp_err= 21549 fi 21550else 21551 ac_cpp_err=yes 21552fi 21553if test -z "$ac_cpp_err"; then 21554 ac_header_preproc=yes 21555else 21556 echo "$as_me: failed program was:" >&5 21557sed 's/^/| /' conftest.$ac_ext >&5 21558 21559 ac_header_preproc=no 21560fi 21561 21562rm -f conftest.err conftest.$ac_ext 21563{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21564echo "${ECHO_T}$ac_header_preproc" >&6; } 21565 21566# So? What about this header? 21567case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21568 yes:no: ) 21569 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 21570echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 21571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 21572echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 21573 ac_header_preproc=yes 21574 ;; 21575 no:yes:* ) 21576 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 21577echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 21578 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 21579echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 21580 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 21581echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 21582 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 21583echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 21584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 21585echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 21586 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 21587echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 21588 ( cat <<\_ASBOX 21589## ------------------------------- ## 21590## Report this to mbuna@bugged.org ## 21591## ------------------------------- ## 21592_ASBOX 21593 ) | sed "s/^/$as_me: WARNING: /" >&2 21594 ;; 21595esac 21596{ echo "$as_me:$LINENO: checking for $ac_header" >&5 21597echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21598if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21599 echo $ECHO_N "(cached) $ECHO_C" >&6 21600else 21601 eval "$as_ac_Header=\$ac_header_preproc" 21602fi 21603ac_res=`eval echo '${'$as_ac_Header'}'` 21604 { echo "$as_me:$LINENO: result: $ac_res" >&5 21605echo "${ECHO_T}$ac_res" >&6; } 21606 21607fi 21608if test `eval echo '${'$as_ac_Header'}'` = yes; then 21609 cat >>confdefs.h <<_ACEOF 21610#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21611_ACEOF 21612 21613fi 21614 21615done 21616 21617 21618 21619 21620 21621for ac_header in mach/semaphore.h mach/task.h signal.h sys/signal.h 21622do 21623as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21624if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21625 { echo "$as_me:$LINENO: checking for $ac_header" >&5 21626echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21627if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21628 echo $ECHO_N "(cached) $ECHO_C" >&6 21629fi 21630ac_res=`eval echo '${'$as_ac_Header'}'` 21631 { echo "$as_me:$LINENO: result: $ac_res" >&5 21632echo "${ECHO_T}$ac_res" >&6; } 21633else 21634 # Is the header compilable? 21635{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 21636echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 21637cat >conftest.$ac_ext <<_ACEOF 21638/* confdefs.h. */ 21639_ACEOF 21640cat confdefs.h >>conftest.$ac_ext 21641cat >>conftest.$ac_ext <<_ACEOF 21642/* end confdefs.h. */ 21643$ac_includes_default 21644#include <$ac_header> 21645_ACEOF 21646rm -f conftest.$ac_objext 21647if { (ac_try="$ac_compile" 21648case "(($ac_try" in 21649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21650 *) ac_try_echo=$ac_try;; 21651esac 21652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21653 (eval "$ac_compile") 2>conftest.er1 21654 ac_status=$? 21655 grep -v '^ *+' conftest.er1 >conftest.err 21656 rm -f conftest.er1 21657 cat conftest.err >&5 21658 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21659 (exit $ac_status); } && 21660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21661 { (case "(($ac_try" in 21662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21663 *) ac_try_echo=$ac_try;; 21664esac 21665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21666 (eval "$ac_try") 2>&5 21667 ac_status=$? 21668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21669 (exit $ac_status); }; } && 21670 { ac_try='test -s conftest.$ac_objext' 21671 { (case "(($ac_try" in 21672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21673 *) ac_try_echo=$ac_try;; 21674esac 21675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21676 (eval "$ac_try") 2>&5 21677 ac_status=$? 21678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21679 (exit $ac_status); }; }; then 21680 ac_header_compiler=yes 21681else 21682 echo "$as_me: failed program was:" >&5 21683sed 's/^/| /' conftest.$ac_ext >&5 21684 21685 ac_header_compiler=no 21686fi 21687 21688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21689{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21690echo "${ECHO_T}$ac_header_compiler" >&6; } 21691 21692# Is the header present? 21693{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 21694echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 21695cat >conftest.$ac_ext <<_ACEOF 21696/* confdefs.h. */ 21697_ACEOF 21698cat confdefs.h >>conftest.$ac_ext 21699cat >>conftest.$ac_ext <<_ACEOF 21700/* end confdefs.h. */ 21701#include <$ac_header> 21702_ACEOF 21703if { (ac_try="$ac_cpp conftest.$ac_ext" 21704case "(($ac_try" in 21705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21706 *) ac_try_echo=$ac_try;; 21707esac 21708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21709 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 21710 ac_status=$? 21711 grep -v '^ *+' conftest.er1 >conftest.err 21712 rm -f conftest.er1 21713 cat conftest.err >&5 21714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21715 (exit $ac_status); } >/dev/null; then 21716 if test -s conftest.err; then 21717 ac_cpp_err=$ac_c_preproc_warn_flag 21718 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 21719 else 21720 ac_cpp_err= 21721 fi 21722else 21723 ac_cpp_err=yes 21724fi 21725if test -z "$ac_cpp_err"; then 21726 ac_header_preproc=yes 21727else 21728 echo "$as_me: failed program was:" >&5 21729sed 's/^/| /' conftest.$ac_ext >&5 21730 21731 ac_header_preproc=no 21732fi 21733 21734rm -f conftest.err conftest.$ac_ext 21735{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21736echo "${ECHO_T}$ac_header_preproc" >&6; } 21737 21738# So? What about this header? 21739case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21740 yes:no: ) 21741 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 21742echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 21743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 21744echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 21745 ac_header_preproc=yes 21746 ;; 21747 no:yes:* ) 21748 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 21749echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 21750 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 21751echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 21752 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 21753echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 21754 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 21755echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 21756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 21757echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 21758 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 21759echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 21760 ( cat <<\_ASBOX 21761## ------------------------------- ## 21762## Report this to mbuna@bugged.org ## 21763## ------------------------------- ## 21764_ASBOX 21765 ) | sed "s/^/$as_me: WARNING: /" >&2 21766 ;; 21767esac 21768{ echo "$as_me:$LINENO: checking for $ac_header" >&5 21769echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21770if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21771 echo $ECHO_N "(cached) $ECHO_C" >&6 21772else 21773 eval "$as_ac_Header=\$ac_header_preproc" 21774fi 21775ac_res=`eval echo '${'$as_ac_Header'}'` 21776 { echo "$as_me:$LINENO: result: $ac_res" >&5 21777echo "${ECHO_T}$ac_res" >&6; } 21778 21779fi 21780if test `eval echo '${'$as_ac_Header'}'` = yes; then 21781 cat >>confdefs.h <<_ACEOF 21782#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21783_ACEOF 21784 21785fi 21786 21787done 21788 21789 21790 21791for ac_header in machine/hal_sysinfo.h sys/atomic_op.h 21792do 21793as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21794if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21795 { echo "$as_me:$LINENO: checking for $ac_header" >&5 21796echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21797if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21798 echo $ECHO_N "(cached) $ECHO_C" >&6 21799fi 21800ac_res=`eval echo '${'$as_ac_Header'}'` 21801 { echo "$as_me:$LINENO: result: $ac_res" >&5 21802echo "${ECHO_T}$ac_res" >&6; } 21803else 21804 # Is the header compilable? 21805{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 21806echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 21807cat >conftest.$ac_ext <<_ACEOF 21808/* confdefs.h. */ 21809_ACEOF 21810cat confdefs.h >>conftest.$ac_ext 21811cat >>conftest.$ac_ext <<_ACEOF 21812/* end confdefs.h. */ 21813$ac_includes_default 21814#include <$ac_header> 21815_ACEOF 21816rm -f conftest.$ac_objext 21817if { (ac_try="$ac_compile" 21818case "(($ac_try" in 21819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21820 *) ac_try_echo=$ac_try;; 21821esac 21822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21823 (eval "$ac_compile") 2>conftest.er1 21824 ac_status=$? 21825 grep -v '^ *+' conftest.er1 >conftest.err 21826 rm -f conftest.er1 21827 cat conftest.err >&5 21828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21829 (exit $ac_status); } && 21830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21831 { (case "(($ac_try" in 21832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21833 *) ac_try_echo=$ac_try;; 21834esac 21835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21836 (eval "$ac_try") 2>&5 21837 ac_status=$? 21838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21839 (exit $ac_status); }; } && 21840 { ac_try='test -s conftest.$ac_objext' 21841 { (case "(($ac_try" in 21842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21843 *) ac_try_echo=$ac_try;; 21844esac 21845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21846 (eval "$ac_try") 2>&5 21847 ac_status=$? 21848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21849 (exit $ac_status); }; }; then 21850 ac_header_compiler=yes 21851else 21852 echo "$as_me: failed program was:" >&5 21853sed 's/^/| /' conftest.$ac_ext >&5 21854 21855 ac_header_compiler=no 21856fi 21857 21858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21859{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21860echo "${ECHO_T}$ac_header_compiler" >&6; } 21861 21862# Is the header present? 21863{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 21864echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 21865cat >conftest.$ac_ext <<_ACEOF 21866/* confdefs.h. */ 21867_ACEOF 21868cat confdefs.h >>conftest.$ac_ext 21869cat >>conftest.$ac_ext <<_ACEOF 21870/* end confdefs.h. */ 21871#include <$ac_header> 21872_ACEOF 21873if { (ac_try="$ac_cpp conftest.$ac_ext" 21874case "(($ac_try" in 21875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21876 *) ac_try_echo=$ac_try;; 21877esac 21878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21879 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 21880 ac_status=$? 21881 grep -v '^ *+' conftest.er1 >conftest.err 21882 rm -f conftest.er1 21883 cat conftest.err >&5 21884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21885 (exit $ac_status); } >/dev/null; then 21886 if test -s conftest.err; then 21887 ac_cpp_err=$ac_c_preproc_warn_flag 21888 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 21889 else 21890 ac_cpp_err= 21891 fi 21892else 21893 ac_cpp_err=yes 21894fi 21895if test -z "$ac_cpp_err"; then 21896 ac_header_preproc=yes 21897else 21898 echo "$as_me: failed program was:" >&5 21899sed 's/^/| /' conftest.$ac_ext >&5 21900 21901 ac_header_preproc=no 21902fi 21903 21904rm -f conftest.err conftest.$ac_ext 21905{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21906echo "${ECHO_T}$ac_header_preproc" >&6; } 21907 21908# So? What about this header? 21909case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21910 yes:no: ) 21911 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 21912echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 21913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 21914echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 21915 ac_header_preproc=yes 21916 ;; 21917 no:yes:* ) 21918 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 21919echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 21920 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 21921echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 21922 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 21923echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 21924 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 21925echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 21926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 21927echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 21928 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 21929echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 21930 ( cat <<\_ASBOX 21931## ------------------------------- ## 21932## Report this to mbuna@bugged.org ## 21933## ------------------------------- ## 21934_ASBOX 21935 ) | sed "s/^/$as_me: WARNING: /" >&2 21936 ;; 21937esac 21938{ echo "$as_me:$LINENO: checking for $ac_header" >&5 21939echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21940if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21941 echo $ECHO_N "(cached) $ECHO_C" >&6 21942else 21943 eval "$as_ac_Header=\$ac_header_preproc" 21944fi 21945ac_res=`eval echo '${'$as_ac_Header'}'` 21946 { echo "$as_me:$LINENO: result: $ac_res" >&5 21947echo "${ECHO_T}$ac_res" >&6; } 21948 21949fi 21950if test `eval echo '${'$as_ac_Header'}'` = yes; then 21951 cat >>confdefs.h <<_ACEOF 21952#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21953_ACEOF 21954 21955fi 21956 21957done 21958 21959 21960 21961 21962 21963 21964for ac_header in poll.h sys/poll.h sys/devpoll.h sys/epoll.h sys/event.h 21965do 21966as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21967if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21968 { echo "$as_me:$LINENO: checking for $ac_header" >&5 21969echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21970if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21971 echo $ECHO_N "(cached) $ECHO_C" >&6 21972fi 21973ac_res=`eval echo '${'$as_ac_Header'}'` 21974 { echo "$as_me:$LINENO: result: $ac_res" >&5 21975echo "${ECHO_T}$ac_res" >&6; } 21976else 21977 # Is the header compilable? 21978{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 21979echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 21980cat >conftest.$ac_ext <<_ACEOF 21981/* confdefs.h. */ 21982_ACEOF 21983cat confdefs.h >>conftest.$ac_ext 21984cat >>conftest.$ac_ext <<_ACEOF 21985/* end confdefs.h. */ 21986$ac_includes_default 21987#include <$ac_header> 21988_ACEOF 21989rm -f conftest.$ac_objext 21990if { (ac_try="$ac_compile" 21991case "(($ac_try" in 21992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21993 *) ac_try_echo=$ac_try;; 21994esac 21995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21996 (eval "$ac_compile") 2>conftest.er1 21997 ac_status=$? 21998 grep -v '^ *+' conftest.er1 >conftest.err 21999 rm -f conftest.er1 22000 cat conftest.err >&5 22001 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22002 (exit $ac_status); } && 22003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22004 { (case "(($ac_try" in 22005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22006 *) ac_try_echo=$ac_try;; 22007esac 22008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22009 (eval "$ac_try") 2>&5 22010 ac_status=$? 22011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22012 (exit $ac_status); }; } && 22013 { ac_try='test -s conftest.$ac_objext' 22014 { (case "(($ac_try" in 22015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22016 *) ac_try_echo=$ac_try;; 22017esac 22018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22019 (eval "$ac_try") 2>&5 22020 ac_status=$? 22021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22022 (exit $ac_status); }; }; then 22023 ac_header_compiler=yes 22024else 22025 echo "$as_me: failed program was:" >&5 22026sed 's/^/| /' conftest.$ac_ext >&5 22027 22028 ac_header_compiler=no 22029fi 22030 22031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22032{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 22033echo "${ECHO_T}$ac_header_compiler" >&6; } 22034 22035# Is the header present? 22036{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 22037echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 22038cat >conftest.$ac_ext <<_ACEOF 22039/* confdefs.h. */ 22040_ACEOF 22041cat confdefs.h >>conftest.$ac_ext 22042cat >>conftest.$ac_ext <<_ACEOF 22043/* end confdefs.h. */ 22044#include <$ac_header> 22045_ACEOF 22046if { (ac_try="$ac_cpp conftest.$ac_ext" 22047case "(($ac_try" in 22048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22049 *) ac_try_echo=$ac_try;; 22050esac 22051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22052 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 22053 ac_status=$? 22054 grep -v '^ *+' conftest.er1 >conftest.err 22055 rm -f conftest.er1 22056 cat conftest.err >&5 22057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22058 (exit $ac_status); } >/dev/null; then 22059 if test -s conftest.err; then 22060 ac_cpp_err=$ac_c_preproc_warn_flag 22061 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 22062 else 22063 ac_cpp_err= 22064 fi 22065else 22066 ac_cpp_err=yes 22067fi 22068if test -z "$ac_cpp_err"; then 22069 ac_header_preproc=yes 22070else 22071 echo "$as_me: failed program was:" >&5 22072sed 's/^/| /' conftest.$ac_ext >&5 22073 22074 ac_header_preproc=no 22075fi 22076 22077rm -f conftest.err conftest.$ac_ext 22078{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 22079echo "${ECHO_T}$ac_header_preproc" >&6; } 22080 22081# So? What about this header? 22082case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 22083 yes:no: ) 22084 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 22085echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 22086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 22087echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 22088 ac_header_preproc=yes 22089 ;; 22090 no:yes:* ) 22091 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 22092echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 22093 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 22094echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 22095 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 22096echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 22097 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 22098echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 22099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 22100echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 22101 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 22102echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 22103 ( cat <<\_ASBOX 22104## ------------------------------- ## 22105## Report this to mbuna@bugged.org ## 22106## ------------------------------- ## 22107_ASBOX 22108 ) | sed "s/^/$as_me: WARNING: /" >&2 22109 ;; 22110esac 22111{ echo "$as_me:$LINENO: checking for $ac_header" >&5 22112echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 22113if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 22114 echo $ECHO_N "(cached) $ECHO_C" >&6 22115else 22116 eval "$as_ac_Header=\$ac_header_preproc" 22117fi 22118ac_res=`eval echo '${'$as_ac_Header'}'` 22119 { echo "$as_me:$LINENO: result: $ac_res" >&5 22120echo "${ECHO_T}$ac_res" >&6; } 22121 22122fi 22123if test `eval echo '${'$as_ac_Header'}'` = yes; then 22124 cat >>confdefs.h <<_ACEOF 22125#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 22126_ACEOF 22127 22128fi 22129 22130done 22131 22132 22133 22134 22135for ac_header in sys/mpctl.h sys/sysctl.h sys/sysinfo.h 22136do 22137as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 22138if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 22139 { echo "$as_me:$LINENO: checking for $ac_header" >&5 22140echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 22141if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 22142 echo $ECHO_N "(cached) $ECHO_C" >&6 22143fi 22144ac_res=`eval echo '${'$as_ac_Header'}'` 22145 { echo "$as_me:$LINENO: result: $ac_res" >&5 22146echo "${ECHO_T}$ac_res" >&6; } 22147else 22148 # Is the header compilable? 22149{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 22150echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 22151cat >conftest.$ac_ext <<_ACEOF 22152/* confdefs.h. */ 22153_ACEOF 22154cat confdefs.h >>conftest.$ac_ext 22155cat >>conftest.$ac_ext <<_ACEOF 22156/* end confdefs.h. */ 22157$ac_includes_default 22158#include <$ac_header> 22159_ACEOF 22160rm -f conftest.$ac_objext 22161if { (ac_try="$ac_compile" 22162case "(($ac_try" in 22163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22164 *) ac_try_echo=$ac_try;; 22165esac 22166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22167 (eval "$ac_compile") 2>conftest.er1 22168 ac_status=$? 22169 grep -v '^ *+' conftest.er1 >conftest.err 22170 rm -f conftest.er1 22171 cat conftest.err >&5 22172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22173 (exit $ac_status); } && 22174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22175 { (case "(($ac_try" in 22176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22177 *) ac_try_echo=$ac_try;; 22178esac 22179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22180 (eval "$ac_try") 2>&5 22181 ac_status=$? 22182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22183 (exit $ac_status); }; } && 22184 { ac_try='test -s conftest.$ac_objext' 22185 { (case "(($ac_try" in 22186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22187 *) ac_try_echo=$ac_try;; 22188esac 22189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22190 (eval "$ac_try") 2>&5 22191 ac_status=$? 22192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22193 (exit $ac_status); }; }; then 22194 ac_header_compiler=yes 22195else 22196 echo "$as_me: failed program was:" >&5 22197sed 's/^/| /' conftest.$ac_ext >&5 22198 22199 ac_header_compiler=no 22200fi 22201 22202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22203{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 22204echo "${ECHO_T}$ac_header_compiler" >&6; } 22205 22206# Is the header present? 22207{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 22208echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 22209cat >conftest.$ac_ext <<_ACEOF 22210/* confdefs.h. */ 22211_ACEOF 22212cat confdefs.h >>conftest.$ac_ext 22213cat >>conftest.$ac_ext <<_ACEOF 22214/* end confdefs.h. */ 22215#include <$ac_header> 22216_ACEOF 22217if { (ac_try="$ac_cpp conftest.$ac_ext" 22218case "(($ac_try" in 22219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22220 *) ac_try_echo=$ac_try;; 22221esac 22222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22223 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 22224 ac_status=$? 22225 grep -v '^ *+' conftest.er1 >conftest.err 22226 rm -f conftest.er1 22227 cat conftest.err >&5 22228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22229 (exit $ac_status); } >/dev/null; then 22230 if test -s conftest.err; then 22231 ac_cpp_err=$ac_c_preproc_warn_flag 22232 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 22233 else 22234 ac_cpp_err= 22235 fi 22236else 22237 ac_cpp_err=yes 22238fi 22239if test -z "$ac_cpp_err"; then 22240 ac_header_preproc=yes 22241else 22242 echo "$as_me: failed program was:" >&5 22243sed 's/^/| /' conftest.$ac_ext >&5 22244 22245 ac_header_preproc=no 22246fi 22247 22248rm -f conftest.err conftest.$ac_ext 22249{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 22250echo "${ECHO_T}$ac_header_preproc" >&6; } 22251 22252# So? What about this header? 22253case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 22254 yes:no: ) 22255 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 22256echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 22257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 22258echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 22259 ac_header_preproc=yes 22260 ;; 22261 no:yes:* ) 22262 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 22263echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 22264 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 22265echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 22266 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 22267echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 22268 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 22269echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 22270 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 22271echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 22272 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 22273echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 22274 ( cat <<\_ASBOX 22275## ------------------------------- ## 22276## Report this to mbuna@bugged.org ## 22277## ------------------------------- ## 22278_ASBOX 22279 ) | sed "s/^/$as_me: WARNING: /" >&2 22280 ;; 22281esac 22282{ echo "$as_me:$LINENO: checking for $ac_header" >&5 22283echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 22284if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 22285 echo $ECHO_N "(cached) $ECHO_C" >&6 22286else 22287 eval "$as_ac_Header=\$ac_header_preproc" 22288fi 22289ac_res=`eval echo '${'$as_ac_Header'}'` 22290 { echo "$as_me:$LINENO: result: $ac_res" >&5 22291echo "${ECHO_T}$ac_res" >&6; } 22292 22293fi 22294if test `eval echo '${'$as_ac_Header'}'` = yes; then 22295 cat >>confdefs.h <<_ACEOF 22296#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 22297_ACEOF 22298 22299fi 22300 22301done 22302 22303# ------ AC CREATE STDINT H ------------------------------------- 22304{ echo "$as_me:$LINENO: checking for stdint-types...." >&5 22305echo $ECHO_N "checking for stdint-types....... $ECHO_C" >&6; } 22306ac_stdint_h=`echo peak/stdint.h` 22307if test "$ac_stdint_h" = "stdint.h" ; then 22308 { echo "$as_me:$LINENO: result: \"(are you sure you want them in ./stdint.h?)\"" >&5 22309echo "${ECHO_T}\"(are you sure you want them in ./stdint.h?)\"" >&6; } 22310elif test "$ac_stdint_h" = "inttypes.h" ; then 22311 { echo "$as_me:$LINENO: result: \"(are you sure you want them in ./inttypes.h?)\"" >&5 22312echo "${ECHO_T}\"(are you sure you want them in ./inttypes.h?)\"" >&6; } 22313else 22314 { echo "$as_me:$LINENO: result: \"(putting them into $ac_stdint_h)\"" >&5 22315echo "${ECHO_T}\"(putting them into $ac_stdint_h)\"" >&6; } 22316fi 22317 22318inttype_headers=`echo inttypes.h sys/inttypes.h sys/inttypes.h \ 22319| sed -e 's/,/ /g'` 22320 22321 ac_cv_header_stdint_x="no-file" 22322 ac_cv_header_stdint_o="no-file" 22323 ac_cv_header_stdint_u="no-file" 22324 for i in inttypes.h stdint.h $inttype_headers ; do 22325 unset ac_cv_type_uintptr_t 22326 unset ac_cv_type_uint64_t 22327 { echo "$as_me:$LINENO: checking for uintptr_t" >&5 22328echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; } 22329if test "${ac_cv_type_uintptr_t+set}" = set; then 22330 echo $ECHO_N "(cached) $ECHO_C" >&6 22331else 22332 cat >conftest.$ac_ext <<_ACEOF 22333/* confdefs.h. */ 22334_ACEOF 22335cat confdefs.h >>conftest.$ac_ext 22336cat >>conftest.$ac_ext <<_ACEOF 22337/* end confdefs.h. */ 22338#include <$i> 22339 22340typedef uintptr_t ac__type_new_; 22341int 22342main () 22343{ 22344if ((ac__type_new_ *) 0) 22345 return 0; 22346if (sizeof (ac__type_new_)) 22347 return 0; 22348 ; 22349 return 0; 22350} 22351_ACEOF 22352rm -f conftest.$ac_objext 22353if { (ac_try="$ac_compile" 22354case "(($ac_try" in 22355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22356 *) ac_try_echo=$ac_try;; 22357esac 22358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22359 (eval "$ac_compile") 2>conftest.er1 22360 ac_status=$? 22361 grep -v '^ *+' conftest.er1 >conftest.err 22362 rm -f conftest.er1 22363 cat conftest.err >&5 22364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22365 (exit $ac_status); } && 22366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22367 { (case "(($ac_try" in 22368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22369 *) ac_try_echo=$ac_try;; 22370esac 22371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22372 (eval "$ac_try") 2>&5 22373 ac_status=$? 22374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22375 (exit $ac_status); }; } && 22376 { ac_try='test -s conftest.$ac_objext' 22377 { (case "(($ac_try" in 22378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22379 *) ac_try_echo=$ac_try;; 22380esac 22381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22382 (eval "$ac_try") 2>&5 22383 ac_status=$? 22384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22385 (exit $ac_status); }; }; then 22386 ac_cv_type_uintptr_t=yes 22387else 22388 echo "$as_me: failed program was:" >&5 22389sed 's/^/| /' conftest.$ac_ext >&5 22390 22391 ac_cv_type_uintptr_t=no 22392fi 22393 22394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22395fi 22396{ echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 22397echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; } 22398if test $ac_cv_type_uintptr_t = yes; then 22399 ac_cv_header_stdint_x=$i 22400else 22401 continue 22402fi 22403 22404 { echo "$as_me:$LINENO: checking for uint64_t" >&5 22405echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } 22406if test "${ac_cv_type_uint64_t+set}" = set; then 22407 echo $ECHO_N "(cached) $ECHO_C" >&6 22408else 22409 cat >conftest.$ac_ext <<_ACEOF 22410/* confdefs.h. */ 22411_ACEOF 22412cat confdefs.h >>conftest.$ac_ext 22413cat >>conftest.$ac_ext <<_ACEOF 22414/* end confdefs.h. */ 22415#include<$i> 22416 22417typedef uint64_t ac__type_new_; 22418int 22419main () 22420{ 22421if ((ac__type_new_ *) 0) 22422 return 0; 22423if (sizeof (ac__type_new_)) 22424 return 0; 22425 ; 22426 return 0; 22427} 22428_ACEOF 22429rm -f conftest.$ac_objext 22430if { (ac_try="$ac_compile" 22431case "(($ac_try" in 22432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22433 *) ac_try_echo=$ac_try;; 22434esac 22435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22436 (eval "$ac_compile") 2>conftest.er1 22437 ac_status=$? 22438 grep -v '^ *+' conftest.er1 >conftest.err 22439 rm -f conftest.er1 22440 cat conftest.err >&5 22441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22442 (exit $ac_status); } && 22443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22444 { (case "(($ac_try" in 22445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22446 *) ac_try_echo=$ac_try;; 22447esac 22448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22449 (eval "$ac_try") 2>&5 22450 ac_status=$? 22451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22452 (exit $ac_status); }; } && 22453 { ac_try='test -s conftest.$ac_objext' 22454 { (case "(($ac_try" in 22455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22456 *) ac_try_echo=$ac_try;; 22457esac 22458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22459 (eval "$ac_try") 2>&5 22460 ac_status=$? 22461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22462 (exit $ac_status); }; }; then 22463 ac_cv_type_uint64_t=yes 22464else 22465 echo "$as_me: failed program was:" >&5 22466sed 's/^/| /' conftest.$ac_ext >&5 22467 22468 ac_cv_type_uint64_t=no 22469fi 22470 22471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22472fi 22473{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 22474echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } 22475if test $ac_cv_type_uint64_t = yes; then 22476 and64="(uint64_t too)" 22477else 22478 and64="" 22479fi 22480 22481 { echo "$as_me:$LINENO: result: ... seen our uintptr_t in $i $and64" >&5 22482echo "${ECHO_T}... seen our uintptr_t in $i $and64" >&6; } 22483 break; 22484 done 22485 if test "$ac_cv_header_stdint_x" = "no-file" ; then 22486 for i in stdint.h $inttype_headers ; do 22487 unset ac_cv_type_uint32_t 22488 unset ac_cv_type_uint64_t 22489 { echo "$as_me:$LINENO: checking for uint32_t" >&5 22490echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } 22491if test "${ac_cv_type_uint32_t+set}" = set; then 22492 echo $ECHO_N "(cached) $ECHO_C" >&6 22493else 22494 cat >conftest.$ac_ext <<_ACEOF 22495/* confdefs.h. */ 22496_ACEOF 22497cat confdefs.h >>conftest.$ac_ext 22498cat >>conftest.$ac_ext <<_ACEOF 22499/* end confdefs.h. */ 22500#include <$i> 22501 22502typedef uint32_t ac__type_new_; 22503int 22504main () 22505{ 22506if ((ac__type_new_ *) 0) 22507 return 0; 22508if (sizeof (ac__type_new_)) 22509 return 0; 22510 ; 22511 return 0; 22512} 22513_ACEOF 22514rm -f conftest.$ac_objext 22515if { (ac_try="$ac_compile" 22516case "(($ac_try" in 22517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22518 *) ac_try_echo=$ac_try;; 22519esac 22520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22521 (eval "$ac_compile") 2>conftest.er1 22522 ac_status=$? 22523 grep -v '^ *+' conftest.er1 >conftest.err 22524 rm -f conftest.er1 22525 cat conftest.err >&5 22526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22527 (exit $ac_status); } && 22528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22529 { (case "(($ac_try" in 22530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22531 *) ac_try_echo=$ac_try;; 22532esac 22533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22534 (eval "$ac_try") 2>&5 22535 ac_status=$? 22536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22537 (exit $ac_status); }; } && 22538 { ac_try='test -s conftest.$ac_objext' 22539 { (case "(($ac_try" in 22540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22541 *) ac_try_echo=$ac_try;; 22542esac 22543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22544 (eval "$ac_try") 2>&5 22545 ac_status=$? 22546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22547 (exit $ac_status); }; }; then 22548 ac_cv_type_uint32_t=yes 22549else 22550 echo "$as_me: failed program was:" >&5 22551sed 's/^/| /' conftest.$ac_ext >&5 22552 22553 ac_cv_type_uint32_t=no 22554fi 22555 22556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22557fi 22558{ echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 22559echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; } 22560if test $ac_cv_type_uint32_t = yes; then 22561 ac_cv_header_stdint_o=$i 22562else 22563 continue 22564fi 22565 22566 { echo "$as_me:$LINENO: checking for uint64_t" >&5 22567echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } 22568if test "${ac_cv_type_uint64_t+set}" = set; then 22569 echo $ECHO_N "(cached) $ECHO_C" >&6 22570else 22571 cat >conftest.$ac_ext <<_ACEOF 22572/* confdefs.h. */ 22573_ACEOF 22574cat confdefs.h >>conftest.$ac_ext 22575cat >>conftest.$ac_ext <<_ACEOF 22576/* end confdefs.h. */ 22577#include<$i> 22578 22579typedef uint64_t ac__type_new_; 22580int 22581main () 22582{ 22583if ((ac__type_new_ *) 0) 22584 return 0; 22585if (sizeof (ac__type_new_)) 22586 return 0; 22587 ; 22588 return 0; 22589} 22590_ACEOF 22591rm -f conftest.$ac_objext 22592if { (ac_try="$ac_compile" 22593case "(($ac_try" in 22594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22595 *) ac_try_echo=$ac_try;; 22596esac 22597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22598 (eval "$ac_compile") 2>conftest.er1 22599 ac_status=$? 22600 grep -v '^ *+' conftest.er1 >conftest.err 22601 rm -f conftest.er1 22602 cat conftest.err >&5 22603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22604 (exit $ac_status); } && 22605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22606 { (case "(($ac_try" in 22607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22608 *) ac_try_echo=$ac_try;; 22609esac 22610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22611 (eval "$ac_try") 2>&5 22612 ac_status=$? 22613 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22614 (exit $ac_status); }; } && 22615 { ac_try='test -s conftest.$ac_objext' 22616 { (case "(($ac_try" in 22617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22618 *) ac_try_echo=$ac_try;; 22619esac 22620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22621 (eval "$ac_try") 2>&5 22622 ac_status=$? 22623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22624 (exit $ac_status); }; }; then 22625 ac_cv_type_uint64_t=yes 22626else 22627 echo "$as_me: failed program was:" >&5 22628sed 's/^/| /' conftest.$ac_ext >&5 22629 22630 ac_cv_type_uint64_t=no 22631fi 22632 22633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22634fi 22635{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 22636echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } 22637if test $ac_cv_type_uint64_t = yes; then 22638 and64="(uint64_t too)" 22639else 22640 and64="" 22641fi 22642 22643 { echo "$as_me:$LINENO: result: ... seen our uint32_t in $i $and64" >&5 22644echo "${ECHO_T}... seen our uint32_t in $i $and64" >&6; } 22645 break; 22646 done 22647 if test "$ac_cv_header_stdint_o" = "no-file" ; then 22648 for i in sys/types.h $inttype_headers ; do 22649 unset ac_cv_type_u_int32_t 22650 unset ac_cv_type_u_int64_t 22651 { echo "$as_me:$LINENO: checking for u_int32_t" >&5 22652echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; } 22653if test "${ac_cv_type_u_int32_t+set}" = set; then 22654 echo $ECHO_N "(cached) $ECHO_C" >&6 22655else 22656 cat >conftest.$ac_ext <<_ACEOF 22657/* confdefs.h. */ 22658_ACEOF 22659cat confdefs.h >>conftest.$ac_ext 22660cat >>conftest.$ac_ext <<_ACEOF 22661/* end confdefs.h. */ 22662#include <$i> 22663 22664typedef u_int32_t ac__type_new_; 22665int 22666main () 22667{ 22668if ((ac__type_new_ *) 0) 22669 return 0; 22670if (sizeof (ac__type_new_)) 22671 return 0; 22672 ; 22673 return 0; 22674} 22675_ACEOF 22676rm -f conftest.$ac_objext 22677if { (ac_try="$ac_compile" 22678case "(($ac_try" in 22679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22680 *) ac_try_echo=$ac_try;; 22681esac 22682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22683 (eval "$ac_compile") 2>conftest.er1 22684 ac_status=$? 22685 grep -v '^ *+' conftest.er1 >conftest.err 22686 rm -f conftest.er1 22687 cat conftest.err >&5 22688 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22689 (exit $ac_status); } && 22690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22691 { (case "(($ac_try" in 22692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22693 *) ac_try_echo=$ac_try;; 22694esac 22695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22696 (eval "$ac_try") 2>&5 22697 ac_status=$? 22698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22699 (exit $ac_status); }; } && 22700 { ac_try='test -s conftest.$ac_objext' 22701 { (case "(($ac_try" in 22702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22703 *) ac_try_echo=$ac_try;; 22704esac 22705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22706 (eval "$ac_try") 2>&5 22707 ac_status=$? 22708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22709 (exit $ac_status); }; }; then 22710 ac_cv_type_u_int32_t=yes 22711else 22712 echo "$as_me: failed program was:" >&5 22713sed 's/^/| /' conftest.$ac_ext >&5 22714 22715 ac_cv_type_u_int32_t=no 22716fi 22717 22718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22719fi 22720{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 22721echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; } 22722if test $ac_cv_type_u_int32_t = yes; then 22723 ac_cv_header_stdint_u=$i 22724else 22725 continue 22726fi 22727 22728 { echo "$as_me:$LINENO: checking for uint64_t" >&5 22729echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } 22730if test "${ac_cv_type_uint64_t+set}" = set; then 22731 echo $ECHO_N "(cached) $ECHO_C" >&6 22732else 22733 cat >conftest.$ac_ext <<_ACEOF 22734/* confdefs.h. */ 22735_ACEOF 22736cat confdefs.h >>conftest.$ac_ext 22737cat >>conftest.$ac_ext <<_ACEOF 22738/* end confdefs.h. */ 22739#include<$i> 22740 22741typedef uint64_t ac__type_new_; 22742int 22743main () 22744{ 22745if ((ac__type_new_ *) 0) 22746 return 0; 22747if (sizeof (ac__type_new_)) 22748 return 0; 22749 ; 22750 return 0; 22751} 22752_ACEOF 22753rm -f conftest.$ac_objext 22754if { (ac_try="$ac_compile" 22755case "(($ac_try" in 22756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22757 *) ac_try_echo=$ac_try;; 22758esac 22759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22760 (eval "$ac_compile") 2>conftest.er1 22761 ac_status=$? 22762 grep -v '^ *+' conftest.er1 >conftest.err 22763 rm -f conftest.er1 22764 cat conftest.err >&5 22765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22766 (exit $ac_status); } && 22767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22768 { (case "(($ac_try" in 22769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22770 *) ac_try_echo=$ac_try;; 22771esac 22772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22773 (eval "$ac_try") 2>&5 22774 ac_status=$? 22775 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22776 (exit $ac_status); }; } && 22777 { ac_try='test -s conftest.$ac_objext' 22778 { (case "(($ac_try" in 22779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22780 *) ac_try_echo=$ac_try;; 22781esac 22782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22783 (eval "$ac_try") 2>&5 22784 ac_status=$? 22785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22786 (exit $ac_status); }; }; then 22787 ac_cv_type_uint64_t=yes 22788else 22789 echo "$as_me: failed program was:" >&5 22790sed 's/^/| /' conftest.$ac_ext >&5 22791 22792 ac_cv_type_uint64_t=no 22793fi 22794 22795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22796fi 22797{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 22798echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } 22799if test $ac_cv_type_uint64_t = yes; then 22800 and64="(u_int64_t too)" 22801else 22802 and64="" 22803fi 22804 22805 { echo "$as_me:$LINENO: result: ... seen our u_int32_t in $i $and64" >&5 22806echo "${ECHO_T}... seen our u_int32_t in $i $and64" >&6; } 22807 break; 22808 done 22809 fi 22810 fi 22811 22812# ----------------- DONE inttypes.h checks MAYBE C basic types -------- 22813 22814if test "$ac_cv_header_stdint_x" = "no-file" ; then 22815 { echo "$as_me:$LINENO: checking size of char" >&5 22816echo $ECHO_N "checking size of char... $ECHO_C" >&6; } 22817if test "${ac_cv_sizeof_char+set}" = set; then 22818 echo $ECHO_N "(cached) $ECHO_C" >&6 22819else 22820 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence. 22821 cat >conftest.$ac_ext <<_ACEOF 22822/* confdefs.h. */ 22823_ACEOF 22824cat confdefs.h >>conftest.$ac_ext 22825cat >>conftest.$ac_ext <<_ACEOF 22826/* end confdefs.h. */ 22827#include "confdefs.h" 22828#include <sys/types.h> 22829 22830 22831int 22832main () 22833{ 22834switch (0) case 0: case (sizeof (char) == $ac_size):; 22835 ; 22836 return 0; 22837} 22838_ACEOF 22839rm -f conftest.$ac_objext 22840if { (ac_try="$ac_compile" 22841case "(($ac_try" in 22842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22843 *) ac_try_echo=$ac_try;; 22844esac 22845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22846 (eval "$ac_compile") 2>conftest.er1 22847 ac_status=$? 22848 grep -v '^ *+' conftest.er1 >conftest.err 22849 rm -f conftest.er1 22850 cat conftest.err >&5 22851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22852 (exit $ac_status); } && 22853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22854 { (case "(($ac_try" in 22855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22856 *) ac_try_echo=$ac_try;; 22857esac 22858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22859 (eval "$ac_try") 2>&5 22860 ac_status=$? 22861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22862 (exit $ac_status); }; } && 22863 { ac_try='test -s conftest.$ac_objext' 22864 { (case "(($ac_try" in 22865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22866 *) ac_try_echo=$ac_try;; 22867esac 22868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22869 (eval "$ac_try") 2>&5 22870 ac_status=$? 22871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22872 (exit $ac_status); }; }; then 22873 ac_cv_sizeof_char=$ac_size 22874else 22875 echo "$as_me: failed program was:" >&5 22876sed 's/^/| /' conftest.$ac_ext >&5 22877 22878 22879fi 22880 22881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22882 if test x$ac_cv_sizeof_char != x ; then break; fi 22883done 22884 22885fi 22886 22887if test x$ac_cv_sizeof_char = x ; then 22888 { { echo "$as_me:$LINENO: error: cannot determine a size for char" >&5 22889echo "$as_me: error: cannot determine a size for char" >&2;} 22890 { (exit 1); exit 1; }; } 22891fi 22892{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 22893echo "${ECHO_T}$ac_cv_sizeof_char" >&6; } 22894 22895cat >>confdefs.h <<_ACEOF 22896#define SIZEOF_CHAR $ac_cv_sizeof_char 22897_ACEOF 22898 22899 22900 { echo "$as_me:$LINENO: checking size of short" >&5 22901echo $ECHO_N "checking size of short... $ECHO_C" >&6; } 22902if test "${ac_cv_sizeof_short+set}" = set; then 22903 echo $ECHO_N "(cached) $ECHO_C" >&6 22904else 22905 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence. 22906 cat >conftest.$ac_ext <<_ACEOF 22907/* confdefs.h. */ 22908_ACEOF 22909cat confdefs.h >>conftest.$ac_ext 22910cat >>conftest.$ac_ext <<_ACEOF 22911/* end confdefs.h. */ 22912#include "confdefs.h" 22913#include <sys/types.h> 22914 22915 22916int 22917main () 22918{ 22919switch (0) case 0: case (sizeof (short) == $ac_size):; 22920 ; 22921 return 0; 22922} 22923_ACEOF 22924rm -f conftest.$ac_objext 22925if { (ac_try="$ac_compile" 22926case "(($ac_try" in 22927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22928 *) ac_try_echo=$ac_try;; 22929esac 22930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22931 (eval "$ac_compile") 2>conftest.er1 22932 ac_status=$? 22933 grep -v '^ *+' conftest.er1 >conftest.err 22934 rm -f conftest.er1 22935 cat conftest.err >&5 22936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22937 (exit $ac_status); } && 22938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22939 { (case "(($ac_try" in 22940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22941 *) ac_try_echo=$ac_try;; 22942esac 22943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22944 (eval "$ac_try") 2>&5 22945 ac_status=$? 22946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22947 (exit $ac_status); }; } && 22948 { ac_try='test -s conftest.$ac_objext' 22949 { (case "(($ac_try" in 22950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22951 *) ac_try_echo=$ac_try;; 22952esac 22953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22954 (eval "$ac_try") 2>&5 22955 ac_status=$? 22956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22957 (exit $ac_status); }; }; then 22958 ac_cv_sizeof_short=$ac_size 22959else 22960 echo "$as_me: failed program was:" >&5 22961sed 's/^/| /' conftest.$ac_ext >&5 22962 22963 22964fi 22965 22966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22967 if test x$ac_cv_sizeof_short != x ; then break; fi 22968done 22969 22970fi 22971 22972if test x$ac_cv_sizeof_short = x ; then 22973 { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5 22974echo "$as_me: error: cannot determine a size for short" >&2;} 22975 { (exit 1); exit 1; }; } 22976fi 22977{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 22978echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } 22979 22980cat >>confdefs.h <<_ACEOF 22981#define SIZEOF_SHORT $ac_cv_sizeof_short 22982_ACEOF 22983 22984 22985 { echo "$as_me:$LINENO: checking size of int" >&5 22986echo $ECHO_N "checking size of int... $ECHO_C" >&6; } 22987if test "${ac_cv_sizeof_int+set}" = set; then 22988 echo $ECHO_N "(cached) $ECHO_C" >&6 22989else 22990 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence. 22991 cat >conftest.$ac_ext <<_ACEOF 22992/* confdefs.h. */ 22993_ACEOF 22994cat confdefs.h >>conftest.$ac_ext 22995cat >>conftest.$ac_ext <<_ACEOF 22996/* end confdefs.h. */ 22997#include "confdefs.h" 22998#include <sys/types.h> 22999 23000 23001int 23002main () 23003{ 23004switch (0) case 0: case (sizeof (int) == $ac_size):; 23005 ; 23006 return 0; 23007} 23008_ACEOF 23009rm -f conftest.$ac_objext 23010if { (ac_try="$ac_compile" 23011case "(($ac_try" in 23012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23013 *) ac_try_echo=$ac_try;; 23014esac 23015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23016 (eval "$ac_compile") 2>conftest.er1 23017 ac_status=$? 23018 grep -v '^ *+' conftest.er1 >conftest.err 23019 rm -f conftest.er1 23020 cat conftest.err >&5 23021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23022 (exit $ac_status); } && 23023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 23024 { (case "(($ac_try" in 23025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23026 *) ac_try_echo=$ac_try;; 23027esac 23028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23029 (eval "$ac_try") 2>&5 23030 ac_status=$? 23031 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23032 (exit $ac_status); }; } && 23033 { ac_try='test -s conftest.$ac_objext' 23034 { (case "(($ac_try" in 23035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23036 *) ac_try_echo=$ac_try;; 23037esac 23038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23039 (eval "$ac_try") 2>&5 23040 ac_status=$? 23041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23042 (exit $ac_status); }; }; then 23043 ac_cv_sizeof_int=$ac_size 23044else 23045 echo "$as_me: failed program was:" >&5 23046sed 's/^/| /' conftest.$ac_ext >&5 23047 23048 23049fi 23050 23051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23052 if test x$ac_cv_sizeof_int != x ; then break; fi 23053done 23054 23055fi 23056 23057if test x$ac_cv_sizeof_int = x ; then 23058 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5 23059echo "$as_me: error: cannot determine a size for int" >&2;} 23060 { (exit 1); exit 1; }; } 23061fi 23062{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 23063echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } 23064 23065cat >>confdefs.h <<_ACEOF 23066#define SIZEOF_INT $ac_cv_sizeof_int 23067_ACEOF 23068 23069 23070 { echo "$as_me:$LINENO: checking size of long" >&5 23071echo $ECHO_N "checking size of long... $ECHO_C" >&6; } 23072if test "${ac_cv_sizeof_long+set}" = set; then 23073 echo $ECHO_N "(cached) $ECHO_C" >&6 23074else 23075 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence. 23076 cat >conftest.$ac_ext <<_ACEOF 23077/* confdefs.h. */ 23078_ACEOF 23079cat confdefs.h >>conftest.$ac_ext 23080cat >>conftest.$ac_ext <<_ACEOF 23081/* end confdefs.h. */ 23082#include "confdefs.h" 23083#include <sys/types.h> 23084 23085 23086int 23087main () 23088{ 23089switch (0) case 0: case (sizeof (long) == $ac_size):; 23090 ; 23091 return 0; 23092} 23093_ACEOF 23094rm -f conftest.$ac_objext 23095if { (ac_try="$ac_compile" 23096case "(($ac_try" in 23097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23098 *) ac_try_echo=$ac_try;; 23099esac 23100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23101 (eval "$ac_compile") 2>conftest.er1 23102 ac_status=$? 23103 grep -v '^ *+' conftest.er1 >conftest.err 23104 rm -f conftest.er1 23105 cat conftest.err >&5 23106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23107 (exit $ac_status); } && 23108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 23109 { (case "(($ac_try" in 23110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23111 *) ac_try_echo=$ac_try;; 23112esac 23113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23114 (eval "$ac_try") 2>&5 23115 ac_status=$? 23116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23117 (exit $ac_status); }; } && 23118 { ac_try='test -s conftest.$ac_objext' 23119 { (case "(($ac_try" in 23120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23121 *) ac_try_echo=$ac_try;; 23122esac 23123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23124 (eval "$ac_try") 2>&5 23125 ac_status=$? 23126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23127 (exit $ac_status); }; }; then 23128 ac_cv_sizeof_long=$ac_size 23129else 23130 echo "$as_me: failed program was:" >&5 23131sed 's/^/| /' conftest.$ac_ext >&5 23132 23133 23134fi 23135 23136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23137 if test x$ac_cv_sizeof_long != x ; then break; fi 23138done 23139 23140fi 23141 23142if test x$ac_cv_sizeof_long = x ; then 23143 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5 23144echo "$as_me: error: cannot determine a size for long" >&2;} 23145 { (exit 1); exit 1; }; } 23146fi 23147{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 23148echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } 23149 23150cat >>confdefs.h <<_ACEOF 23151#define SIZEOF_LONG $ac_cv_sizeof_long 23152_ACEOF 23153 23154 23155 { echo "$as_me:$LINENO: checking size of void*" >&5 23156echo $ECHO_N "checking size of void*... $ECHO_C" >&6; } 23157if test "${ac_cv_sizeof_voidp+set}" = set; then 23158 echo $ECHO_N "(cached) $ECHO_C" >&6 23159else 23160 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence. 23161 cat >conftest.$ac_ext <<_ACEOF 23162/* confdefs.h. */ 23163_ACEOF 23164cat confdefs.h >>conftest.$ac_ext 23165cat >>conftest.$ac_ext <<_ACEOF 23166/* end confdefs.h. */ 23167#include "confdefs.h" 23168#include <sys/types.h> 23169 23170 23171int 23172main () 23173{ 23174switch (0) case 0: case (sizeof (void*) == $ac_size):; 23175 ; 23176 return 0; 23177} 23178_ACEOF 23179rm -f conftest.$ac_objext 23180if { (ac_try="$ac_compile" 23181case "(($ac_try" in 23182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23183 *) ac_try_echo=$ac_try;; 23184esac 23185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23186 (eval "$ac_compile") 2>conftest.er1 23187 ac_status=$? 23188 grep -v '^ *+' conftest.er1 >conftest.err 23189 rm -f conftest.er1 23190 cat conftest.err >&5 23191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23192 (exit $ac_status); } && 23193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 23194 { (case "(($ac_try" in 23195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23196 *) ac_try_echo=$ac_try;; 23197esac 23198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23199 (eval "$ac_try") 2>&5 23200 ac_status=$? 23201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23202 (exit $ac_status); }; } && 23203 { ac_try='test -s conftest.$ac_objext' 23204 { (case "(($ac_try" in 23205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23206 *) ac_try_echo=$ac_try;; 23207esac 23208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23209 (eval "$ac_try") 2>&5 23210 ac_status=$? 23211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23212 (exit $ac_status); }; }; then 23213 ac_cv_sizeof_voidp=$ac_size 23214else 23215 echo "$as_me: failed program was:" >&5 23216sed 's/^/| /' conftest.$ac_ext >&5 23217 23218 23219fi 23220 23221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23222 if test x$ac_cv_sizeof_voidp != x ; then break; fi 23223done 23224 23225fi 23226 23227if test x$ac_cv_sizeof_voidp = x ; then 23228 { { echo "$as_me:$LINENO: error: cannot determine a size for void*" >&5 23229echo "$as_me: error: cannot determine a size for void*" >&2;} 23230 { (exit 1); exit 1; }; } 23231fi 23232{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5 23233echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6; } 23234 23235cat >>confdefs.h <<_ACEOF 23236#define SIZEOF_VOIDP $ac_cv_sizeof_voidp 23237_ACEOF 23238 23239 23240 ac_cv_header_stdint_test="yes" 23241else 23242 ac_cv_header_stdint_test="no" 23243fi 23244 23245# ----------------- DONE inttypes.h checks START header ------------- 23246_ac_stdint_h=`echo "_$ac_stdint_h" | $as_tr_cpp` 23247{ echo "$as_me:$LINENO: result: creating $ac_stdint_h : $_ac_stdint_h" >&5 23248echo "${ECHO_T}creating $ac_stdint_h : $_ac_stdint_h" >&6; } 23249echo "#ifndef" $_ac_stdint_h >$ac_stdint_h 23250echo "#define" $_ac_stdint_h "1" >>$ac_stdint_h 23251echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint_h 23252echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint_h 23253if test "$GCC" = "yes" ; then 23254 echo "/* generated using a gnu compiler version" `$CC --version` "*/" \ 23255 >>$ac_stdint_h 23256else 23257 echo "/* generated using $CC */" >>$ac_stdint_h 23258fi 23259echo "" >>$ac_stdint_h 23260 23261if test "$ac_cv_header_stdint_x" != "no-file" ; then 23262 ac_cv_header_stdint="$ac_cv_header_stdint_x" 23263elif test "$ac_cv_header_stdint_o" != "no-file" ; then 23264 ac_cv_header_stdint="$ac_cv_header_stdint_o" 23265elif test "$ac_cv_header_stdint_u" != "no-file" ; then 23266 ac_cv_header_stdint="$ac_cv_header_stdint_u" 23267else 23268 ac_cv_header_stdint="stddef.h" 23269fi 23270 23271# ----------------- See if int_least and int_fast types are present 23272unset ac_cv_type_int_least32_t 23273unset ac_cv_type_int_fast32_t 23274{ echo "$as_me:$LINENO: checking for int_least32_t" >&5 23275echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6; } 23276if test "${ac_cv_type_int_least32_t+set}" = set; then 23277 echo $ECHO_N "(cached) $ECHO_C" >&6 23278else 23279 cat >conftest.$ac_ext <<_ACEOF 23280/* confdefs.h. */ 23281_ACEOF 23282cat confdefs.h >>conftest.$ac_ext 23283cat >>conftest.$ac_ext <<_ACEOF 23284/* end confdefs.h. */ 23285#include <$ac_cv_header_stdint> 23286 23287typedef int_least32_t ac__type_new_; 23288int 23289main () 23290{ 23291if ((ac__type_new_ *) 0) 23292 return 0; 23293if (sizeof (ac__type_new_)) 23294 return 0; 23295 ; 23296 return 0; 23297} 23298_ACEOF 23299rm -f conftest.$ac_objext 23300if { (ac_try="$ac_compile" 23301case "(($ac_try" in 23302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23303 *) ac_try_echo=$ac_try;; 23304esac 23305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23306 (eval "$ac_compile") 2>conftest.er1 23307 ac_status=$? 23308 grep -v '^ *+' conftest.er1 >conftest.err 23309 rm -f conftest.er1 23310 cat conftest.err >&5 23311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23312 (exit $ac_status); } && 23313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 23314 { (case "(($ac_try" in 23315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23316 *) ac_try_echo=$ac_try;; 23317esac 23318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23319 (eval "$ac_try") 2>&5 23320 ac_status=$? 23321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23322 (exit $ac_status); }; } && 23323 { ac_try='test -s conftest.$ac_objext' 23324 { (case "(($ac_try" in 23325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23326 *) ac_try_echo=$ac_try;; 23327esac 23328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23329 (eval "$ac_try") 2>&5 23330 ac_status=$? 23331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23332 (exit $ac_status); }; }; then 23333 ac_cv_type_int_least32_t=yes 23334else 23335 echo "$as_me: failed program was:" >&5 23336sed 's/^/| /' conftest.$ac_ext >&5 23337 23338 ac_cv_type_int_least32_t=no 23339fi 23340 23341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23342fi 23343{ echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5 23344echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6; } 23345 23346{ echo "$as_me:$LINENO: checking for int_fast32_t" >&5 23347echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6; } 23348if test "${ac_cv_type_int_fast32_t+set}" = set; then 23349 echo $ECHO_N "(cached) $ECHO_C" >&6 23350else 23351 cat >conftest.$ac_ext <<_ACEOF 23352/* confdefs.h. */ 23353_ACEOF 23354cat confdefs.h >>conftest.$ac_ext 23355cat >>conftest.$ac_ext <<_ACEOF 23356/* end confdefs.h. */ 23357#include<$ac_cv_header_stdint> 23358 23359typedef int_fast32_t ac__type_new_; 23360int 23361main () 23362{ 23363if ((ac__type_new_ *) 0) 23364 return 0; 23365if (sizeof (ac__type_new_)) 23366 return 0; 23367 ; 23368 return 0; 23369} 23370_ACEOF 23371rm -f conftest.$ac_objext 23372if { (ac_try="$ac_compile" 23373case "(($ac_try" in 23374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23375 *) ac_try_echo=$ac_try;; 23376esac 23377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23378 (eval "$ac_compile") 2>conftest.er1 23379 ac_status=$? 23380 grep -v '^ *+' conftest.er1 >conftest.err 23381 rm -f conftest.er1 23382 cat conftest.err >&5 23383 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23384 (exit $ac_status); } && 23385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 23386 { (case "(($ac_try" in 23387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23388 *) ac_try_echo=$ac_try;; 23389esac 23390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23391 (eval "$ac_try") 2>&5 23392 ac_status=$? 23393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23394 (exit $ac_status); }; } && 23395 { ac_try='test -s conftest.$ac_objext' 23396 { (case "(($ac_try" in 23397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23398 *) ac_try_echo=$ac_try;; 23399esac 23400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23401 (eval "$ac_try") 2>&5 23402 ac_status=$? 23403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23404 (exit $ac_status); }; }; then 23405 ac_cv_type_int_fast32_t=yes 23406else 23407 echo "$as_me: failed program was:" >&5 23408sed 's/^/| /' conftest.$ac_ext >&5 23409 23410 ac_cv_type_int_fast32_t=no 23411fi 23412 23413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23414fi 23415{ echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5 23416echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6; } 23417 23418 23419if test "$ac_cv_header_stdint" != "stddef.h" ; then 23420if test "$ac_cv_header_stdint" != "stdint.h" ; then 23421{ echo "$as_me:$LINENO: result: ..adding include stddef.h" >&5 23422echo "${ECHO_T}..adding include stddef.h" >&6; } 23423 echo "#include <stddef.h>" >>$ac_stdint_h 23424fi ; fi 23425{ echo "$as_me:$LINENO: result: ..adding include $ac_cv_header_stdint" >&5 23426echo "${ECHO_T}..adding include $ac_cv_header_stdint" >&6; } 23427 echo "#include <$ac_cv_header_stdint>" >>$ac_stdint_h 23428echo "" >>$ac_stdint_h 23429 23430# ----------------- DONE header START basic int types ------------- 23431if test "$ac_cv_header_stdint_x" = "no-file" ; then 23432 { echo "$as_me:$LINENO: result: ... need to look at C basic types" >&5 23433echo "${ECHO_T}... need to look at C basic types" >&6; } 23434else 23435 { echo "$as_me:$LINENO: result: ... seen good stdint.h inttypes" >&5 23436echo "${ECHO_T}... seen good stdint.h inttypes" >&6; } 23437fi 23438 23439if test "$ac_cv_header_stdint_u" != "no-file" ; then 23440 { echo "$as_me:$LINENO: result: ... seen bsd/sysv typedefs" >&5 23441echo "${ECHO_T}... seen bsd/sysv typedefs" >&6; } 23442 cat >>$ac_stdint_h <<EOF 23443 23444/* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */ 23445typedef u_int8_t uint8_t; 23446typedef u_int16_t uint16_t; 23447typedef u_int32_t uint32_t; 23448EOF 23449 cat >>$ac_stdint_h <<EOF 23450 23451/* glibc compatibility */ 23452#ifndef __int8_t_defined 23453#define __int8_t_defined 23454#endif 23455EOF 23456fi 23457 23458ac_cv_sizeof_x="$ac_cv_sizeof_char:$ac_cv_sizeof_short" 23459ac_cv_sizeof_X="$ac_cv_sizeof_x:$ac_cv_sizeof_int" 23460ac_cv_sizeof_X="$ac_cv_sizeof_X:$ac_cv_sizeof_voidp:$ac_cv_sizeof_long" 23461if test "$ac_cv_header_stdint" = "stddef.h" ; then 23462# we must guess all the basic types. Apart from byte-adressable system, 23463# there a few 32-bit-only dsp-systems. nibble-addressable systems are way off. 23464 cat >>$ac_stdint_h <<EOF 23465/* ------------ BITSPECIFIC INTTYPES SECTION --------------- */ 23466EOF 23467 t="typedefs for a" 23468 case "$ac_cv_sizeof_X" in 23469 1:2:2:2:4) { echo "$as_me:$LINENO: result: ..adding $t normal 16-bit system" >&5 23470echo "${ECHO_T}..adding $t normal 16-bit system" >&6; } 23471 cat >>$ac_stdint_h <<EOF 23472/* a normal 16-bit system */ 23473typedef unsigned char uint8_t; 23474typedef unsigned short uint16_t; 23475typedef unsigned long uint32_t; 23476#ifndef __int8_t_defined 23477#define __int8_t_defined 23478typedef char int8_t; 23479typedef short int16_t; 23480typedef long int32_t; 23481#endif 23482EOF 23483;; 23484 1:2:2:4:4) { echo "$as_me:$LINENO: result: ..adding $t 32-bit system derived from a 16-bit" >&5 23485echo "${ECHO_T}..adding $t 32-bit system derived from a 16-bit" >&6; } 23486 cat >>$ac_stdint_h <<EOF 23487/* a 32-bit system derived from a 16-bit */ 23488typedef unsigned char uint8_t; 23489typedef unsigned short uint16_t; 23490typedef unsigned int uint32_t; 23491#ifndef __int8_t_defined 23492#define __int8_t_defined 23493typedef char int8_t; 23494typedef short int16_t; 23495typedef int int32_t; 23496#endif 23497EOF 23498;; 23499 1:2:4:4:4) { echo "$as_me:$LINENO: result: ..adding $t normal 32-bit system" >&5 23500echo "${ECHO_T}..adding $t normal 32-bit system" >&6; } 23501 cat >>$ac_stdint_h <<EOF 23502/* a normal 32-bit system */ 23503typedef unsigned char uint8_t; 23504typedef unsigned short uint16_t; 23505typedef unsigned int uint32_t; 23506#ifndef __int8_t_defined 23507#define __int8_t_defined 23508typedef char int8_t; 23509typedef short int16_t; 23510typedef int int32_t; 23511#endif 23512EOF 23513;; 23514 1:2:4:4:8) { echo "$as_me:$LINENO: result: ..adding $t 32-bit system prepared for 64-bit" >&5 23515echo "${ECHO_T}..adding $t 32-bit system prepared for 64-bit" >&6; } 23516 cat >>$ac_stdint_h <<EOF 23517 23518/* a 32-bit system prepared for 64-bit */ 23519typedef unsigned char uint8_t; 23520typedef unsigned short uint16_t; 23521typedef unsigned int uint32_t; 23522#ifndef __int8_t_defined 23523#define __int8_t_defined 23524typedef char int8_t; 23525typedef short int16_t; 23526typedef int int32_t; 23527#endif 23528EOF 23529;; 23530 1:2:4:8:8) { echo "$as_me:$LINENO: result: ..adding $t normal 64-bit system" >&5 23531echo "${ECHO_T}..adding $t normal 64-bit system" >&6; } 23532 cat >>$ac_stdint_h <<EOF 23533 23534/* a normal 64-bit system */ 23535typedef unsigned char uint8_t; 23536typedef unsigned short uint16_t; 23537typedef unsigned int uint32_t; 23538#ifndef __int8_t_defined 23539#define __int8_t_defined 23540typedef char int8_t; 23541typedef short int16_t; 23542typedef int int32_t; 23543#endif 23544EOF 23545;; 23546 1:2:4:8:4) { echo "$as_me:$LINENO: result: ..adding $t 64-bit system derived from a 32-bit" >&5 23547echo "${ECHO_T}..adding $t 64-bit system derived from a 32-bit" >&6; } 23548 cat >>$ac_stdint_h <<EOF 23549 23550/* a 64-bit system derived from a 32-bit system */ 23551typedef unsigned char uint8_t; 23552typedef unsigned short uint16_t; 23553typedef unsigned int uint32_t; 23554#ifndef __int8_t_defined 23555#define __int8_t_defined 23556typedef char int8_t; 23557typedef short int16_t; 23558typedef int int32_t; 23559#endif 23560EOF 23561;; 23562 *) 23563 { { echo "$as_me:$LINENO: error: $ac_cv_sizeof_X what is that a system? contact the author, quick! http://ac-archive.sf.net" >&5 23564echo "$as_me: error: $ac_cv_sizeof_X what is that a system? contact the author, quick! http://ac-archive.sf.net" >&2;} 23565 { (exit 1); exit 1; }; } 23566 exit 1 23567;; 23568 esac 23569fi 23570 23571# ------------- DONE basic int types START int64_t types ------------ 23572if test "$ac_cv_type_uint64_t" = "yes" 23573then { echo "$as_me:$LINENO: result: ... seen good uint64_t" >&5 23574echo "${ECHO_T}... seen good uint64_t" >&6; } 23575 cat >>$ac_stdint_h <<EOF 23576 23577/* system headers have good uint64_t */ 23578#ifndef _HAVE_UINT64_T 23579#define _HAVE_UINT64_T 23580#endif 23581EOF 23582 23583elif test "$ac_cv_type_u_int64_t" = "yes" 23584then { echo "$as_me:$LINENO: result: ..adding typedef u_int64_t uint64_t" >&5 23585echo "${ECHO_T}..adding typedef u_int64_t uint64_t" >&6; } 23586 cat >>$ac_stdint_h <<EOF 23587 23588/* system headers have an u_int64_t */ 23589#ifndef _HAVE_UINT64_T 23590#define _HAVE_UINT64_T 23591typedef u_int64_t uint64_t; 23592#endif 23593EOF 23594else { echo "$as_me:$LINENO: result: ..adding generic uint64_t runtime checks" >&5 23595echo "${ECHO_T}..adding generic uint64_t runtime checks" >&6; } 23596 cat >>$ac_stdint_h <<EOF 23597 23598/* -------------------- 64 BIT GENERIC SECTION -------------------- */ 23599/* here are some common heuristics using compiler runtime specifics */ 23600#if defined __STDC_VERSION__ && defined __STDC_VERSION__ > 199901L 23601 23602#ifndef _HAVE_UINT64_T 23603#define _HAVE_UINT64_T 23604typedef long long int64_t; 23605typedef unsigned long long uint64_t; 23606#endif 23607 23608#elif !defined __STRICT_ANSI__ 23609#if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ 23610 23611#ifndef _HAVE_UINT64_T 23612#define _HAVE_UINT64_T 23613typedef __int64 int64_t; 23614typedef unsigned __int64 uint64_t; 23615#endif 23616 23617#elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__ 23618 23619#if !defined _NO_LONGLONG 23620#ifndef _HAVE_UINT64_T 23621#define _HAVE_UINT64_T 23622typedef long long int64_t; 23623typedef unsigned long long uint64_t; 23624#endif 23625#endif 23626 23627#elif defined __alpha || (defined __mips && defined _ABIN32) 23628 23629#if !defined _NO_LONGLONG 23630#ifndef _HAVE_UINT64_T 23631#define _HAVE_UINT64_T 23632typedef long int64_t; 23633typedef unsigned long uint64_t; 23634#endif 23635#endif 23636 /* compiler/cpu type ... or just ISO C99 */ 23637#endif 23638#endif 23639EOF 23640 23641# plus a default 64-bit for systems that are likely to be 64-bit ready 23642 case "$ac_cv_sizeof_x:$ac_cv_sizeof_voidp:$ac_cv_sizeof_long" in 23643 1:2:8:8) { echo "$as_me:$LINENO: result: ..adding uint64_t default" >&5 23644echo "${ECHO_T}..adding uint64_t default" >&6; } 23645cat >>$ac_stdint_h <<EOF 23646/* DEFAULT: */ 23647/* seen normal 64-bit system, CC has sizeof(long and void*) == 8 bytes */ 23648#ifndef _HAVE_UINT64_T 23649#define _HAVE_UINT64_T 23650typedef long int64_t; 23651typedef unsigned long uint64_t; 23652#endif 23653EOF 23654;; 23655 1:2:4:8) { echo "$as_me:$LINENO: result: ..adding uint64_t default" >&5 23656echo "${ECHO_T}..adding uint64_t default" >&6; } 23657cat >>$ac_stdint_h <<EOF 23658/* DEFAULT: */ 23659/* seen 32-bit system prepared for 64-bit, CC has sizeof(long) == 8 bytes */ 23660#ifndef _HAVE_UINT64_T 23661#define _HAVE_UINT64_T 23662typedef long int64_t; 23663typedef unsigned long uint64_t; 23664#endif 23665EOF 23666;; 23667 1:2:8:4) { echo "$as_me:$LINENO: result: ..adding uint64_t default" >&5 23668echo "${ECHO_T}..adding uint64_t default" >&6; } 23669cat >>$ac_stdint_h <<EOF 23670/* DEFAULT: */ 23671/* seen 64-bit derived from a 32-bit, CC has sizeof(long) == 4 bytes */ 23672#ifndef _HAVE_UINT64_T 23673#define _HAVE_UINT64_T 23674typedef long long int64_t; 23675typedef unsigned long long uint64_t; 23676#endif 23677EOF 23678;; 23679 *) 23680cat >>$ac_stdint_h <<EOF 23681/* NOTE: */ 23682/* the configure-checks for the basic types did not make us believe */ 23683/* that we could add a fallback to a 'long long' typedef to int64_t */ 23684EOF 23685 esac 23686fi 23687 23688# ------------- DONE int64_t types START intptr types ------------ 23689if test "$ac_cv_header_stdint_x" = "no-file" ; then 23690 cat >>$ac_stdint_h <<EOF 23691 23692/* -------------------------- INPTR SECTION --------------------------- */ 23693EOF 23694 case "$ac_cv_sizeof_x:$ac_cv_sizeof_voidp" in 23695 1:2:2) 23696 a="int16_t" ; cat >>$ac_stdint_h <<EOF 23697/* we tested sizeof(void*) to be of 2 chars, hence we declare it 16-bit */ 23698 23699typedef uint16_t uintptr_t; 23700typedef int16_t intptr_t; 23701EOF 23702;; 23703 1:2:4) 23704 a="int32_t" ; cat >>$ac_stdint_h <<EOF 23705/* we tested sizeof(void*) to be of 4 chars, hence we declare it 32-bit */ 23706 23707typedef uint32_t uintptr_t; 23708typedef int32_t intptr_t; 23709EOF 23710;; 23711 1:2:8) 23712 a="int64_t" ; cat >>$ac_stdint_h <<EOF 23713/* we tested sizeof(void*) to be of 8 chars, hence we declare it 64-bit */ 23714 23715typedef uint64_t uintptr_t; 23716typedef int64_t intptr_t; 23717EOF 23718;; 23719 *) 23720 a="long" ; cat >>$ac_stdint_h <<EOF 23721/* we tested sizeof(void*) but got no guess, hence we declare it as if long */ 23722 23723typedef unsigned long uintptr_t; 23724typedef long intptr_t; 23725EOF 23726;; 23727 esac 23728{ echo "$as_me:$LINENO: result: ..adding typedef $a intptr_t" >&5 23729echo "${ECHO_T}..adding typedef $a intptr_t" >&6; } 23730fi 23731 23732# ------------- DONE intptr types START int_least types ------------ 23733if test "$ac_cv_type_int_least32_t" = "no"; then 23734{ echo "$as_me:$LINENO: result: ..adding generic int_least-types" >&5 23735echo "${ECHO_T}..adding generic int_least-types" >&6; } 23736 cat >>$ac_stdint_h <<EOF 23737 23738/* --------------GENERIC INT_LEAST ------------------ */ 23739 23740typedef int8_t int_least8_t; 23741typedef int16_t int_least16_t; 23742typedef int32_t int_least32_t; 23743#ifdef _HAVE_UINT64_T 23744typedef int64_t int_least64_t; 23745#endif 23746 23747typedef uint8_t uint_least8_t; 23748typedef uint16_t uint_least16_t; 23749typedef uint32_t uint_least32_t; 23750#ifdef _HAVE_UINT64_T 23751typedef uint64_t uint_least64_t; 23752#endif 23753EOF 23754fi 23755 23756# ------------- DONE intptr types START int_least types ------------ 23757if test "$ac_cv_type_int_fast32_t" = "no"; then 23758{ echo "$as_me:$LINENO: result: ..adding generic int_fast-types" >&5 23759echo "${ECHO_T}..adding generic int_fast-types" >&6; } 23760 cat >>$ac_stdint_h <<EOF 23761 23762/* --------------GENERIC INT_FAST ------------------ */ 23763 23764typedef int8_t int_fast8_t; 23765typedef int32_t int_fast16_t; 23766typedef int32_t int_fast32_t; 23767#ifdef _HAVE_UINT64_T 23768typedef int64_t int_fast64_t; 23769#endif 23770 23771typedef uint8_t uint_fast8_t; 23772typedef uint32_t uint_fast16_t; 23773typedef uint32_t uint_fast32_t; 23774#ifdef _HAVE_UINT64_T 23775typedef uint64_t uint_fast64_t; 23776#endif 23777EOF 23778fi 23779 23780if test "$ac_cv_header_stdint_x" = "no-file" ; then 23781 cat >>$ac_stdint_h <<EOF 23782 23783#ifdef _HAVE_UINT64_T 23784typedef int64_t intmax_t; 23785typedef uint64_t uintmax_t; 23786#else 23787typedef long int intmax_t; 23788typedef unsigned long uintmax_t; 23789#endif 23790EOF 23791fi 23792 23793{ echo "$as_me:$LINENO: result: ... DONE $ac_stdint_h" >&5 23794echo "${ECHO_T}... DONE $ac_stdint_h" >&6; } 23795 cat >>$ac_stdint_h <<EOF 23796 23797 /* once */ 23798#endif 23799#endif 23800EOF 23801 23802 23803{ echo "$as_me:$LINENO: checking for inline" >&5 23804echo $ECHO_N "checking for inline... $ECHO_C" >&6; } 23805if test "${ac_cv_c_inline+set}" = set; then 23806 echo $ECHO_N "(cached) $ECHO_C" >&6 23807else 23808 ac_cv_c_inline=no 23809for ac_kw in inline __inline__ __inline; do 23810 cat >conftest.$ac_ext <<_ACEOF 23811/* confdefs.h. */ 23812_ACEOF 23813cat confdefs.h >>conftest.$ac_ext 23814cat >>conftest.$ac_ext <<_ACEOF 23815/* end confdefs.h. */ 23816#ifndef __cplusplus 23817typedef int foo_t; 23818static $ac_kw foo_t static_foo () {return 0; } 23819$ac_kw foo_t foo () {return 0; } 23820#endif 23821 23822_ACEOF 23823rm -f conftest.$ac_objext 23824if { (ac_try="$ac_compile" 23825case "(($ac_try" in 23826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23827 *) ac_try_echo=$ac_try;; 23828esac 23829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23830 (eval "$ac_compile") 2>conftest.er1 23831 ac_status=$? 23832 grep -v '^ *+' conftest.er1 >conftest.err 23833 rm -f conftest.er1 23834 cat conftest.err >&5 23835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23836 (exit $ac_status); } && 23837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 23838 { (case "(($ac_try" in 23839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23840 *) ac_try_echo=$ac_try;; 23841esac 23842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23843 (eval "$ac_try") 2>&5 23844 ac_status=$? 23845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23846 (exit $ac_status); }; } && 23847 { ac_try='test -s conftest.$ac_objext' 23848 { (case "(($ac_try" in 23849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23850 *) ac_try_echo=$ac_try;; 23851esac 23852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23853 (eval "$ac_try") 2>&5 23854 ac_status=$? 23855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23856 (exit $ac_status); }; }; then 23857 ac_cv_c_inline=$ac_kw 23858else 23859 echo "$as_me: failed program was:" >&5 23860sed 's/^/| /' conftest.$ac_ext >&5 23861 23862 23863fi 23864 23865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23866 test "$ac_cv_c_inline" != no && break 23867done 23868 23869fi 23870{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 23871echo "${ECHO_T}$ac_cv_c_inline" >&6; } 23872 23873 23874case $ac_cv_c_inline in 23875 inline | yes) ;; 23876 *) 23877 case $ac_cv_c_inline in 23878 no) ac_val=;; 23879 *) ac_val=$ac_cv_c_inline;; 23880 esac 23881 cat >>confdefs.h <<_ACEOF 23882#ifndef __cplusplus 23883#define inline $ac_val 23884#endif 23885_ACEOF 23886 ;; 23887esac 23888 23889{ echo "$as_me:$LINENO: checking for size_t" >&5 23890echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } 23891if test "${ac_cv_type_size_t+set}" = set; then 23892 echo $ECHO_N "(cached) $ECHO_C" >&6 23893else 23894 cat >conftest.$ac_ext <<_ACEOF 23895/* confdefs.h. */ 23896_ACEOF 23897cat confdefs.h >>conftest.$ac_ext 23898cat >>conftest.$ac_ext <<_ACEOF 23899/* end confdefs.h. */ 23900$ac_includes_default 23901typedef size_t ac__type_new_; 23902int 23903main () 23904{ 23905if ((ac__type_new_ *) 0) 23906 return 0; 23907if (sizeof (ac__type_new_)) 23908 return 0; 23909 ; 23910 return 0; 23911} 23912_ACEOF 23913rm -f conftest.$ac_objext 23914if { (ac_try="$ac_compile" 23915case "(($ac_try" in 23916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23917 *) ac_try_echo=$ac_try;; 23918esac 23919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23920 (eval "$ac_compile") 2>conftest.er1 23921 ac_status=$? 23922 grep -v '^ *+' conftest.er1 >conftest.err 23923 rm -f conftest.er1 23924 cat conftest.err >&5 23925 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23926 (exit $ac_status); } && 23927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 23928 { (case "(($ac_try" in 23929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23930 *) ac_try_echo=$ac_try;; 23931esac 23932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23933 (eval "$ac_try") 2>&5 23934 ac_status=$? 23935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23936 (exit $ac_status); }; } && 23937 { ac_try='test -s conftest.$ac_objext' 23938 { (case "(($ac_try" in 23939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23940 *) ac_try_echo=$ac_try;; 23941esac 23942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23943 (eval "$ac_try") 2>&5 23944 ac_status=$? 23945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23946 (exit $ac_status); }; }; then 23947 ac_cv_type_size_t=yes 23948else 23949 echo "$as_me: failed program was:" >&5 23950sed 's/^/| /' conftest.$ac_ext >&5 23951 23952 ac_cv_type_size_t=no 23953fi 23954 23955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23956fi 23957{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 23958echo "${ECHO_T}$ac_cv_type_size_t" >&6; } 23959if test $ac_cv_type_size_t = yes; then 23960 : 23961else 23962 23963cat >>confdefs.h <<_ACEOF 23964#define size_t unsigned int 23965_ACEOF 23966 23967fi 23968 23969{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 23970echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } 23971if test "${ac_cv_header_time+set}" = set; then 23972 echo $ECHO_N "(cached) $ECHO_C" >&6 23973else 23974 cat >conftest.$ac_ext <<_ACEOF 23975/* confdefs.h. */ 23976_ACEOF 23977cat confdefs.h >>conftest.$ac_ext 23978cat >>conftest.$ac_ext <<_ACEOF 23979/* end confdefs.h. */ 23980#include <sys/types.h> 23981#include <sys/time.h> 23982#include <time.h> 23983 23984int 23985main () 23986{ 23987if ((struct tm *) 0) 23988return 0; 23989 ; 23990 return 0; 23991} 23992_ACEOF 23993rm -f conftest.$ac_objext 23994if { (ac_try="$ac_compile" 23995case "(($ac_try" in 23996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23997 *) ac_try_echo=$ac_try;; 23998esac 23999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24000 (eval "$ac_compile") 2>conftest.er1 24001 ac_status=$? 24002 grep -v '^ *+' conftest.er1 >conftest.err 24003 rm -f conftest.er1 24004 cat conftest.err >&5 24005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24006 (exit $ac_status); } && 24007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 24008 { (case "(($ac_try" in 24009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24010 *) ac_try_echo=$ac_try;; 24011esac 24012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24013 (eval "$ac_try") 2>&5 24014 ac_status=$? 24015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24016 (exit $ac_status); }; } && 24017 { ac_try='test -s conftest.$ac_objext' 24018 { (case "(($ac_try" in 24019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24020 *) ac_try_echo=$ac_try;; 24021esac 24022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24023 (eval "$ac_try") 2>&5 24024 ac_status=$? 24025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24026 (exit $ac_status); }; }; then 24027 ac_cv_header_time=yes 24028else 24029 echo "$as_me: failed program was:" >&5 24030sed 's/^/| /' conftest.$ac_ext >&5 24031 24032 ac_cv_header_time=no 24033fi 24034 24035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24036fi 24037{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 24038echo "${ECHO_T}$ac_cv_header_time" >&6; } 24039if test $ac_cv_header_time = yes; then 24040 24041cat >>confdefs.h <<\_ACEOF 24042#define TIME_WITH_SYS_TIME 1 24043_ACEOF 24044 24045fi 24046 24047{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 24048echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } 24049if test "${ac_cv_struct_tm+set}" = set; then 24050 echo $ECHO_N "(cached) $ECHO_C" >&6 24051else 24052 cat >conftest.$ac_ext <<_ACEOF 24053/* confdefs.h. */ 24054_ACEOF 24055cat confdefs.h >>conftest.$ac_ext 24056cat >>conftest.$ac_ext <<_ACEOF 24057/* end confdefs.h. */ 24058#include <sys/types.h> 24059#include <time.h> 24060 24061int 24062main () 24063{ 24064struct tm *tp; tp->tm_sec; 24065 ; 24066 return 0; 24067} 24068_ACEOF 24069rm -f conftest.$ac_objext 24070if { (ac_try="$ac_compile" 24071case "(($ac_try" in 24072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24073 *) ac_try_echo=$ac_try;; 24074esac 24075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24076 (eval "$ac_compile") 2>conftest.er1 24077 ac_status=$? 24078 grep -v '^ *+' conftest.er1 >conftest.err 24079 rm -f conftest.er1 24080 cat conftest.err >&5 24081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24082 (exit $ac_status); } && 24083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 24084 { (case "(($ac_try" in 24085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24086 *) ac_try_echo=$ac_try;; 24087esac 24088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24089 (eval "$ac_try") 2>&5 24090 ac_status=$? 24091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24092 (exit $ac_status); }; } && 24093 { ac_try='test -s conftest.$ac_objext' 24094 { (case "(($ac_try" in 24095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24096 *) ac_try_echo=$ac_try;; 24097esac 24098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24099 (eval "$ac_try") 2>&5 24100 ac_status=$? 24101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24102 (exit $ac_status); }; }; then 24103 ac_cv_struct_tm=time.h 24104else 24105 echo "$as_me: failed program was:" >&5 24106sed 's/^/| /' conftest.$ac_ext >&5 24107 24108 ac_cv_struct_tm=sys/time.h 24109fi 24110 24111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24112fi 24113{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 24114echo "${ECHO_T}$ac_cv_struct_tm" >&6; } 24115if test $ac_cv_struct_tm = sys/time.h; then 24116 24117cat >>confdefs.h <<\_ACEOF 24118#define TM_IN_SYS_TIME 1 24119_ACEOF 24120 24121fi 24122 24123 24124for ac_header in tzfile.h 24125do 24126as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 24127if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 24128 { echo "$as_me:$LINENO: checking for $ac_header" >&5 24129echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 24130if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 24131 echo $ECHO_N "(cached) $ECHO_C" >&6 24132fi 24133ac_res=`eval echo '${'$as_ac_Header'}'` 24134 { echo "$as_me:$LINENO: result: $ac_res" >&5 24135echo "${ECHO_T}$ac_res" >&6; } 24136else 24137 # Is the header compilable? 24138{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 24139echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 24140cat >conftest.$ac_ext <<_ACEOF 24141/* confdefs.h. */ 24142_ACEOF 24143cat confdefs.h >>conftest.$ac_ext 24144cat >>conftest.$ac_ext <<_ACEOF 24145/* end confdefs.h. */ 24146$ac_includes_default 24147#include <$ac_header> 24148_ACEOF 24149rm -f conftest.$ac_objext 24150if { (ac_try="$ac_compile" 24151case "(($ac_try" in 24152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24153 *) ac_try_echo=$ac_try;; 24154esac 24155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24156 (eval "$ac_compile") 2>conftest.er1 24157 ac_status=$? 24158 grep -v '^ *+' conftest.er1 >conftest.err 24159 rm -f conftest.er1 24160 cat conftest.err >&5 24161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24162 (exit $ac_status); } && 24163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 24164 { (case "(($ac_try" in 24165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24166 *) ac_try_echo=$ac_try;; 24167esac 24168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24169 (eval "$ac_try") 2>&5 24170 ac_status=$? 24171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24172 (exit $ac_status); }; } && 24173 { ac_try='test -s conftest.$ac_objext' 24174 { (case "(($ac_try" in 24175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24176 *) ac_try_echo=$ac_try;; 24177esac 24178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24179 (eval "$ac_try") 2>&5 24180 ac_status=$? 24181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24182 (exit $ac_status); }; }; then 24183 ac_header_compiler=yes 24184else 24185 echo "$as_me: failed program was:" >&5 24186sed 's/^/| /' conftest.$ac_ext >&5 24187 24188 ac_header_compiler=no 24189fi 24190 24191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24192{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 24193echo "${ECHO_T}$ac_header_compiler" >&6; } 24194 24195# Is the header present? 24196{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 24197echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 24198cat >conftest.$ac_ext <<_ACEOF 24199/* confdefs.h. */ 24200_ACEOF 24201cat confdefs.h >>conftest.$ac_ext 24202cat >>conftest.$ac_ext <<_ACEOF 24203/* end confdefs.h. */ 24204#include <$ac_header> 24205_ACEOF 24206if { (ac_try="$ac_cpp conftest.$ac_ext" 24207case "(($ac_try" in 24208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24209 *) ac_try_echo=$ac_try;; 24210esac 24211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24212 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 24213 ac_status=$? 24214 grep -v '^ *+' conftest.er1 >conftest.err 24215 rm -f conftest.er1 24216 cat conftest.err >&5 24217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24218 (exit $ac_status); } >/dev/null; then 24219 if test -s conftest.err; then 24220 ac_cpp_err=$ac_c_preproc_warn_flag 24221 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 24222 else 24223 ac_cpp_err= 24224 fi 24225else 24226 ac_cpp_err=yes 24227fi 24228if test -z "$ac_cpp_err"; then 24229 ac_header_preproc=yes 24230else 24231 echo "$as_me: failed program was:" >&5 24232sed 's/^/| /' conftest.$ac_ext >&5 24233 24234 ac_header_preproc=no 24235fi 24236 24237rm -f conftest.err conftest.$ac_ext 24238{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 24239echo "${ECHO_T}$ac_header_preproc" >&6; } 24240 24241# So? What about this header? 24242case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 24243 yes:no: ) 24244 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 24245echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 24246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 24247echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 24248 ac_header_preproc=yes 24249 ;; 24250 no:yes:* ) 24251 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 24252echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 24253 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 24254echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 24255 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 24256echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 24257 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 24258echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 24259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 24260echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 24261 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 24262echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 24263 ( cat <<\_ASBOX 24264## ------------------------------- ## 24265## Report this to mbuna@bugged.org ## 24266## ------------------------------- ## 24267_ASBOX 24268 ) | sed "s/^/$as_me: WARNING: /" >&2 24269 ;; 24270esac 24271{ echo "$as_me:$LINENO: checking for $ac_header" >&5 24272echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 24273if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 24274 echo $ECHO_N "(cached) $ECHO_C" >&6 24275else 24276 eval "$as_ac_Header=\$ac_header_preproc" 24277fi 24278ac_res=`eval echo '${'$as_ac_Header'}'` 24279 { echo "$as_me:$LINENO: result: $ac_res" >&5 24280echo "${ECHO_T}$ac_res" >&6; } 24281 24282fi 24283if test `eval echo '${'$as_ac_Header'}'` = yes; then 24284 cat >>confdefs.h <<_ACEOF 24285#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 24286_ACEOF 24287 24288fi 24289 24290done 24291 24292{ echo "$as_me:$LINENO: checking whether struct tzhead is defined in tzfile.h" >&5 24293echo $ECHO_N "checking whether struct tzhead is defined in tzfile.h... $ECHO_C" >&6; } 24294if test "${acx_cv_struct_tzhead+set}" = set; then 24295 echo $ECHO_N "(cached) $ECHO_C" >&6 24296else 24297 cat > conftest.$ac_ext <<EOF 24298 24299#include "confdefs.h" 24300#ifdef HAVE_TZFILE_H 24301#include <tzfile.h> 24302#endif 24303 24304int main() 24305{ 24306 int size = sizeof(struct tzhead); 24307 exit(0); 24308} 24309EOF 24310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24311 (eval $ac_compile) 2>&5 24312 ac_status=$? 24313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24314 (exit $ac_status); }; then 24315 acx_cv_struct_tzhead=yes 24316else 24317 acx_cv_struct_tzhead=no 24318fi 24319rm -fr conftest* 24320fi 24321 24322{ echo "$as_me:$LINENO: result: $acx_cv_struct_tzhead" >&5 24323echo "${ECHO_T}$acx_cv_struct_tzhead" >&6; } 24324if test x$acx_cv_struct_tzhead = xyes; then 24325 24326cat >>confdefs.h <<\_ACEOF 24327#define HAVE_STRUCT_TZHEAD 1 24328_ACEOF 24329 24330fi 24331 24332for ac_func in select 24333do 24334as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 24335{ echo "$as_me:$LINENO: checking for $ac_func" >&5 24336echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 24337if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 24338 echo $ECHO_N "(cached) $ECHO_C" >&6 24339else 24340 cat >conftest.$ac_ext <<_ACEOF 24341/* confdefs.h. */ 24342_ACEOF 24343cat confdefs.h >>conftest.$ac_ext 24344cat >>conftest.$ac_ext <<_ACEOF 24345/* end confdefs.h. */ 24346/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 24347 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 24348#define $ac_func innocuous_$ac_func 24349 24350/* System header to define __stub macros and hopefully few prototypes, 24351 which can conflict with char $ac_func (); below. 24352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 24353 <limits.h> exists even on freestanding compilers. */ 24354 24355#ifdef __STDC__ 24356# include <limits.h> 24357#else 24358# include <assert.h> 24359#endif 24360 24361#undef $ac_func 24362 24363/* Override any GCC internal prototype to avoid an error. 24364 Use char because int might match the return type of a GCC 24365 builtin and then its argument prototype would still apply. */ 24366#ifdef __cplusplus 24367extern "C" 24368#endif 24369char $ac_func (); 24370/* The GNU C library defines this for functions which it implements 24371 to always fail with ENOSYS. Some functions are actually named 24372 something starting with __ and the normal name is an alias. */ 24373#if defined __stub_$ac_func || defined __stub___$ac_func 24374choke me 24375#endif 24376 24377int 24378main () 24379{ 24380return $ac_func (); 24381 ; 24382 return 0; 24383} 24384_ACEOF 24385rm -f conftest.$ac_objext conftest$ac_exeext 24386if { (ac_try="$ac_link" 24387case "(($ac_try" in 24388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24389 *) ac_try_echo=$ac_try;; 24390esac 24391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24392 (eval "$ac_link") 2>conftest.er1 24393 ac_status=$? 24394 grep -v '^ *+' conftest.er1 >conftest.err 24395 rm -f conftest.er1 24396 cat conftest.err >&5 24397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24398 (exit $ac_status); } && 24399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 24400 { (case "(($ac_try" in 24401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24402 *) ac_try_echo=$ac_try;; 24403esac 24404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24405 (eval "$ac_try") 2>&5 24406 ac_status=$? 24407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24408 (exit $ac_status); }; } && 24409 { ac_try='test -s conftest$ac_exeext' 24410 { (case "(($ac_try" in 24411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24412 *) ac_try_echo=$ac_try;; 24413esac 24414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24415 (eval "$ac_try") 2>&5 24416 ac_status=$? 24417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24418 (exit $ac_status); }; }; then 24419 eval "$as_ac_var=yes" 24420else 24421 echo "$as_me: failed program was:" >&5 24422sed 's/^/| /' conftest.$ac_ext >&5 24423 24424 eval "$as_ac_var=no" 24425fi 24426 24427rm -f core conftest.err conftest.$ac_objext \ 24428 conftest$ac_exeext conftest.$ac_ext 24429fi 24430ac_res=`eval echo '${'$as_ac_var'}'` 24431 { echo "$as_me:$LINENO: result: $ac_res" >&5 24432echo "${ECHO_T}$ac_res" >&6; } 24433if test `eval echo '${'$as_ac_var'}'` = yes; then 24434 cat >>confdefs.h <<_ACEOF 24435#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 24436_ACEOF 24437 24438fi 24439done 24440 24441{ echo "$as_me:$LINENO: checking whether we can redefine FD_SETSIZE" >&5 24442echo $ECHO_N "checking whether we can redefine FD_SETSIZE... $ECHO_C" >&6; } 24443if test "${acx_cv_fd_setsize+set}" = set; then 24444 echo $ECHO_N "(cached) $ECHO_C" >&6 24445else 24446 ss_status=0 24447cat > conftest.$ac_ext <<EOF 24448 24449#define FD_SETSIZE 1234 24450#include "confdefs.h" 24451#include <stdlib.h> 24452#include <sys/types.h> 24453#include <sys/time.h> 24454#include <sys/select.h> 24455#include <unistd.h> 24456 24457int main() 24458{ 24459 int status = 0; 24460 int val = FD_SETSIZE; 24461 24462 if (val == 1234) status = 1; 24463 else status = 2; 24464 24465 exit(status); 24466} 24467EOF 24468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 24469 (eval $ac_link) 2>&5 24470 ac_status=$? 24471 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24472 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 24473 (./conftest; exit; ) 2>/dev/null 24474 ss_status=$? 24475 if test x$ss_status = x1; then 24476 acx_cv_fd_setsize=yes 24477 else 24478 acx_cv_fd_setsize=no 24479 fi 24480else 24481 acx_cv_fd_setsize=no 24482fi 24483rm -fr conftest* 24484fi 24485 24486{ echo "$as_me:$LINENO: result: $acx_cv_fd_setsize" >&5 24487echo "${ECHO_T}$acx_cv_fd_setsize" >&6; } 24488if test x$acx_cv_fd_setsize = xyes; then 24489 24490cat >>confdefs.h <<\_ACEOF 24491#define PEAK_FD_SETSIZE_REDEFINABLE 1 24492_ACEOF 24493 24494fi 24495 24496if test $ac_cv_c_compiler_gnu = yes; then 24497 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 24498echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; } 24499if test "${ac_cv_prog_gcc_traditional+set}" = set; then 24500 echo $ECHO_N "(cached) $ECHO_C" >&6 24501else 24502 ac_pattern="Autoconf.*'x'" 24503 cat >conftest.$ac_ext <<_ACEOF 24504/* confdefs.h. */ 24505_ACEOF 24506cat confdefs.h >>conftest.$ac_ext 24507cat >>conftest.$ac_ext <<_ACEOF 24508/* end confdefs.h. */ 24509#include <sgtty.h> 24510Autoconf TIOCGETP 24511_ACEOF 24512if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 24513 $EGREP "$ac_pattern" >/dev/null 2>&1; then 24514 ac_cv_prog_gcc_traditional=yes 24515else 24516 ac_cv_prog_gcc_traditional=no 24517fi 24518rm -f conftest* 24519 24520 24521 if test $ac_cv_prog_gcc_traditional = no; then 24522 cat >conftest.$ac_ext <<_ACEOF 24523/* confdefs.h. */ 24524_ACEOF 24525cat confdefs.h >>conftest.$ac_ext 24526cat >>conftest.$ac_ext <<_ACEOF 24527/* end confdefs.h. */ 24528#include <termio.h> 24529Autoconf TCGETA 24530_ACEOF 24531if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 24532 $EGREP "$ac_pattern" >/dev/null 2>&1; then 24533 ac_cv_prog_gcc_traditional=yes 24534fi 24535rm -f conftest* 24536 24537 fi 24538fi 24539{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 24540echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; } 24541 if test $ac_cv_prog_gcc_traditional = yes; then 24542 CC="$CC -traditional" 24543 fi 24544fi 24545 24546# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 24547# for constant arguments. Useless! 24548{ echo "$as_me:$LINENO: checking for working alloca.h" >&5 24549echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } 24550if test "${ac_cv_working_alloca_h+set}" = set; then 24551 echo $ECHO_N "(cached) $ECHO_C" >&6 24552else 24553 cat >conftest.$ac_ext <<_ACEOF 24554/* confdefs.h. */ 24555_ACEOF 24556cat confdefs.h >>conftest.$ac_ext 24557cat >>conftest.$ac_ext <<_ACEOF 24558/* end confdefs.h. */ 24559#include <alloca.h> 24560int 24561main () 24562{ 24563char *p = (char *) alloca (2 * sizeof (int)); 24564 if (p) return 0; 24565 ; 24566 return 0; 24567} 24568_ACEOF 24569rm -f conftest.$ac_objext conftest$ac_exeext 24570if { (ac_try="$ac_link" 24571case "(($ac_try" in 24572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24573 *) ac_try_echo=$ac_try;; 24574esac 24575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24576 (eval "$ac_link") 2>conftest.er1 24577 ac_status=$? 24578 grep -v '^ *+' conftest.er1 >conftest.err 24579 rm -f conftest.er1 24580 cat conftest.err >&5 24581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24582 (exit $ac_status); } && 24583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 24584 { (case "(($ac_try" in 24585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24586 *) ac_try_echo=$ac_try;; 24587esac 24588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24589 (eval "$ac_try") 2>&5 24590 ac_status=$? 24591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24592 (exit $ac_status); }; } && 24593 { ac_try='test -s conftest$ac_exeext' 24594 { (case "(($ac_try" in 24595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24596 *) ac_try_echo=$ac_try;; 24597esac 24598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24599 (eval "$ac_try") 2>&5 24600 ac_status=$? 24601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24602 (exit $ac_status); }; }; then 24603 ac_cv_working_alloca_h=yes 24604else 24605 echo "$as_me: failed program was:" >&5 24606sed 's/^/| /' conftest.$ac_ext >&5 24607 24608 ac_cv_working_alloca_h=no 24609fi 24610 24611rm -f core conftest.err conftest.$ac_objext \ 24612 conftest$ac_exeext conftest.$ac_ext 24613fi 24614{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 24615echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } 24616if test $ac_cv_working_alloca_h = yes; then 24617 24618cat >>confdefs.h <<\_ACEOF 24619#define HAVE_ALLOCA_H 1 24620_ACEOF 24621 24622fi 24623 24624{ echo "$as_me:$LINENO: checking for alloca" >&5 24625echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } 24626if test "${ac_cv_func_alloca_works+set}" = set; then 24627 echo $ECHO_N "(cached) $ECHO_C" >&6 24628else 24629 cat >conftest.$ac_ext <<_ACEOF 24630/* confdefs.h. */ 24631_ACEOF 24632cat confdefs.h >>conftest.$ac_ext 24633cat >>conftest.$ac_ext <<_ACEOF 24634/* end confdefs.h. */ 24635#ifdef __GNUC__ 24636# define alloca __builtin_alloca 24637#else 24638# ifdef _MSC_VER 24639# include <malloc.h> 24640# define alloca _alloca 24641# else 24642# if HAVE_ALLOCA_H 24643# include <alloca.h> 24644# else 24645# ifdef _AIX 24646 #pragma alloca 24647# else 24648# ifndef alloca /* predefined by HP cc +Olibcalls */ 24649char *alloca (); 24650# endif 24651# endif 24652# endif 24653# endif 24654#endif 24655 24656int 24657main () 24658{ 24659char *p = (char *) alloca (1); 24660 if (p) return 0; 24661 ; 24662 return 0; 24663} 24664_ACEOF 24665rm -f conftest.$ac_objext conftest$ac_exeext 24666if { (ac_try="$ac_link" 24667case "(($ac_try" in 24668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24669 *) ac_try_echo=$ac_try;; 24670esac 24671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24672 (eval "$ac_link") 2>conftest.er1 24673 ac_status=$? 24674 grep -v '^ *+' conftest.er1 >conftest.err 24675 rm -f conftest.er1 24676 cat conftest.err >&5 24677 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24678 (exit $ac_status); } && 24679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 24680 { (case "(($ac_try" in 24681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24682 *) ac_try_echo=$ac_try;; 24683esac 24684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24685 (eval "$ac_try") 2>&5 24686 ac_status=$? 24687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24688 (exit $ac_status); }; } && 24689 { ac_try='test -s conftest$ac_exeext' 24690 { (case "(($ac_try" in 24691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24692 *) ac_try_echo=$ac_try;; 24693esac 24694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24695 (eval "$ac_try") 2>&5 24696 ac_status=$? 24697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24698 (exit $ac_status); }; }; then 24699 ac_cv_func_alloca_works=yes 24700else 24701 echo "$as_me: failed program was:" >&5 24702sed 's/^/| /' conftest.$ac_ext >&5 24703 24704 ac_cv_func_alloca_works=no 24705fi 24706 24707rm -f core conftest.err conftest.$ac_objext \ 24708 conftest$ac_exeext conftest.$ac_ext 24709fi 24710{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 24711echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } 24712 24713if test $ac_cv_func_alloca_works = yes; then 24714 24715cat >>confdefs.h <<\_ACEOF 24716#define HAVE_ALLOCA 1 24717_ACEOF 24718 24719else 24720 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 24721# that cause trouble. Some versions do not even contain alloca or 24722# contain a buggy version. If you still want to use their alloca, 24723# use ar to extract alloca.o from them instead of compiling alloca.c. 24724 24725ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 24726 24727cat >>confdefs.h <<\_ACEOF 24728#define C_ALLOCA 1 24729_ACEOF 24730 24731 24732{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 24733echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } 24734if test "${ac_cv_os_cray+set}" = set; then 24735 echo $ECHO_N "(cached) $ECHO_C" >&6 24736else 24737 cat >conftest.$ac_ext <<_ACEOF 24738/* confdefs.h. */ 24739_ACEOF 24740cat confdefs.h >>conftest.$ac_ext 24741cat >>conftest.$ac_ext <<_ACEOF 24742/* end confdefs.h. */ 24743#if defined CRAY && ! defined CRAY2 24744webecray 24745#else 24746wenotbecray 24747#endif 24748 24749_ACEOF 24750if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 24751 $EGREP "webecray" >/dev/null 2>&1; then 24752 ac_cv_os_cray=yes 24753else 24754 ac_cv_os_cray=no 24755fi 24756rm -f conftest* 24757 24758fi 24759{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 24760echo "${ECHO_T}$ac_cv_os_cray" >&6; } 24761if test $ac_cv_os_cray = yes; then 24762 for ac_func in _getb67 GETB67 getb67; do 24763 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 24764{ echo "$as_me:$LINENO: checking for $ac_func" >&5 24765echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 24766if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 24767 echo $ECHO_N "(cached) $ECHO_C" >&6 24768else 24769 cat >conftest.$ac_ext <<_ACEOF 24770/* confdefs.h. */ 24771_ACEOF 24772cat confdefs.h >>conftest.$ac_ext 24773cat >>conftest.$ac_ext <<_ACEOF 24774/* end confdefs.h. */ 24775/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 24776 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 24777#define $ac_func innocuous_$ac_func 24778 24779/* System header to define __stub macros and hopefully few prototypes, 24780 which can conflict with char $ac_func (); below. 24781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 24782 <limits.h> exists even on freestanding compilers. */ 24783 24784#ifdef __STDC__ 24785# include <limits.h> 24786#else 24787# include <assert.h> 24788#endif 24789 24790#undef $ac_func 24791 24792/* Override any GCC internal prototype to avoid an error. 24793 Use char because int might match the return type of a GCC 24794 builtin and then its argument prototype would still apply. */ 24795#ifdef __cplusplus 24796extern "C" 24797#endif 24798char $ac_func (); 24799/* The GNU C library defines this for functions which it implements 24800 to always fail with ENOSYS. Some functions are actually named 24801 something starting with __ and the normal name is an alias. */ 24802#if defined __stub_$ac_func || defined __stub___$ac_func 24803choke me 24804#endif 24805 24806int 24807main () 24808{ 24809return $ac_func (); 24810 ; 24811 return 0; 24812} 24813_ACEOF 24814rm -f conftest.$ac_objext conftest$ac_exeext 24815if { (ac_try="$ac_link" 24816case "(($ac_try" in 24817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24818 *) ac_try_echo=$ac_try;; 24819esac 24820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24821 (eval "$ac_link") 2>conftest.er1 24822 ac_status=$? 24823 grep -v '^ *+' conftest.er1 >conftest.err 24824 rm -f conftest.er1 24825 cat conftest.err >&5 24826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24827 (exit $ac_status); } && 24828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 24829 { (case "(($ac_try" in 24830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24831 *) ac_try_echo=$ac_try;; 24832esac 24833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24834 (eval "$ac_try") 2>&5 24835 ac_status=$? 24836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24837 (exit $ac_status); }; } && 24838 { ac_try='test -s conftest$ac_exeext' 24839 { (case "(($ac_try" in 24840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24841 *) ac_try_echo=$ac_try;; 24842esac 24843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24844 (eval "$ac_try") 2>&5 24845 ac_status=$? 24846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24847 (exit $ac_status); }; }; then 24848 eval "$as_ac_var=yes" 24849else 24850 echo "$as_me: failed program was:" >&5 24851sed 's/^/| /' conftest.$ac_ext >&5 24852 24853 eval "$as_ac_var=no" 24854fi 24855 24856rm -f core conftest.err conftest.$ac_objext \ 24857 conftest$ac_exeext conftest.$ac_ext 24858fi 24859ac_res=`eval echo '${'$as_ac_var'}'` 24860 { echo "$as_me:$LINENO: result: $ac_res" >&5 24861echo "${ECHO_T}$ac_res" >&6; } 24862if test `eval echo '${'$as_ac_var'}'` = yes; then 24863 24864cat >>confdefs.h <<_ACEOF 24865#define CRAY_STACKSEG_END $ac_func 24866_ACEOF 24867 24868 break 24869fi 24870 24871 done 24872fi 24873 24874{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 24875echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } 24876if test "${ac_cv_c_stack_direction+set}" = set; then 24877 echo $ECHO_N "(cached) $ECHO_C" >&6 24878else 24879 if test "$cross_compiling" = yes; then 24880 ac_cv_c_stack_direction=0 24881else 24882 cat >conftest.$ac_ext <<_ACEOF 24883/* confdefs.h. */ 24884_ACEOF 24885cat confdefs.h >>conftest.$ac_ext 24886cat >>conftest.$ac_ext <<_ACEOF 24887/* end confdefs.h. */ 24888$ac_includes_default 24889int 24890find_stack_direction () 24891{ 24892 static char *addr = 0; 24893 auto char dummy; 24894 if (addr == 0) 24895 { 24896 addr = &dummy; 24897 return find_stack_direction (); 24898 } 24899 else 24900 return (&dummy > addr) ? 1 : -1; 24901} 24902 24903int 24904main () 24905{ 24906 return find_stack_direction () < 0; 24907} 24908_ACEOF 24909rm -f conftest$ac_exeext 24910if { (ac_try="$ac_link" 24911case "(($ac_try" in 24912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24913 *) ac_try_echo=$ac_try;; 24914esac 24915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24916 (eval "$ac_link") 2>&5 24917 ac_status=$? 24918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24919 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 24920 { (case "(($ac_try" in 24921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24922 *) ac_try_echo=$ac_try;; 24923esac 24924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24925 (eval "$ac_try") 2>&5 24926 ac_status=$? 24927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24928 (exit $ac_status); }; }; then 24929 ac_cv_c_stack_direction=1 24930else 24931 echo "$as_me: program exited with status $ac_status" >&5 24932echo "$as_me: failed program was:" >&5 24933sed 's/^/| /' conftest.$ac_ext >&5 24934 24935( exit $ac_status ) 24936ac_cv_c_stack_direction=-1 24937fi 24938rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 24939fi 24940 24941 24942fi 24943{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 24944echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } 24945 24946cat >>confdefs.h <<_ACEOF 24947#define STACK_DIRECTION $ac_cv_c_stack_direction 24948_ACEOF 24949 24950 24951fi 24952 24953 24954 24955for ac_header in sys/select.h sys/socket.h 24956do 24957as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 24958if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 24959 { echo "$as_me:$LINENO: checking for $ac_header" >&5 24960echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 24961if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 24962 echo $ECHO_N "(cached) $ECHO_C" >&6 24963fi 24964ac_res=`eval echo '${'$as_ac_Header'}'` 24965 { echo "$as_me:$LINENO: result: $ac_res" >&5 24966echo "${ECHO_T}$ac_res" >&6; } 24967else 24968 # Is the header compilable? 24969{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 24970echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 24971cat >conftest.$ac_ext <<_ACEOF 24972/* confdefs.h. */ 24973_ACEOF 24974cat confdefs.h >>conftest.$ac_ext 24975cat >>conftest.$ac_ext <<_ACEOF 24976/* end confdefs.h. */ 24977$ac_includes_default 24978#include <$ac_header> 24979_ACEOF 24980rm -f conftest.$ac_objext 24981if { (ac_try="$ac_compile" 24982case "(($ac_try" in 24983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24984 *) ac_try_echo=$ac_try;; 24985esac 24986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24987 (eval "$ac_compile") 2>conftest.er1 24988 ac_status=$? 24989 grep -v '^ *+' conftest.er1 >conftest.err 24990 rm -f conftest.er1 24991 cat conftest.err >&5 24992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24993 (exit $ac_status); } && 24994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 24995 { (case "(($ac_try" in 24996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24997 *) ac_try_echo=$ac_try;; 24998esac 24999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25000 (eval "$ac_try") 2>&5 25001 ac_status=$? 25002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25003 (exit $ac_status); }; } && 25004 { ac_try='test -s conftest.$ac_objext' 25005 { (case "(($ac_try" in 25006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25007 *) ac_try_echo=$ac_try;; 25008esac 25009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25010 (eval "$ac_try") 2>&5 25011 ac_status=$? 25012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25013 (exit $ac_status); }; }; then 25014 ac_header_compiler=yes 25015else 25016 echo "$as_me: failed program was:" >&5 25017sed 's/^/| /' conftest.$ac_ext >&5 25018 25019 ac_header_compiler=no 25020fi 25021 25022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25023{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 25024echo "${ECHO_T}$ac_header_compiler" >&6; } 25025 25026# Is the header present? 25027{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 25028echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 25029cat >conftest.$ac_ext <<_ACEOF 25030/* confdefs.h. */ 25031_ACEOF 25032cat confdefs.h >>conftest.$ac_ext 25033cat >>conftest.$ac_ext <<_ACEOF 25034/* end confdefs.h. */ 25035#include <$ac_header> 25036_ACEOF 25037if { (ac_try="$ac_cpp conftest.$ac_ext" 25038case "(($ac_try" in 25039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25040 *) ac_try_echo=$ac_try;; 25041esac 25042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25043 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 25044 ac_status=$? 25045 grep -v '^ *+' conftest.er1 >conftest.err 25046 rm -f conftest.er1 25047 cat conftest.err >&5 25048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25049 (exit $ac_status); } >/dev/null; then 25050 if test -s conftest.err; then 25051 ac_cpp_err=$ac_c_preproc_warn_flag 25052 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 25053 else 25054 ac_cpp_err= 25055 fi 25056else 25057 ac_cpp_err=yes 25058fi 25059if test -z "$ac_cpp_err"; then 25060 ac_header_preproc=yes 25061else 25062 echo "$as_me: failed program was:" >&5 25063sed 's/^/| /' conftest.$ac_ext >&5 25064 25065 ac_header_preproc=no 25066fi 25067 25068rm -f conftest.err conftest.$ac_ext 25069{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 25070echo "${ECHO_T}$ac_header_preproc" >&6; } 25071 25072# So? What about this header? 25073case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 25074 yes:no: ) 25075 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 25076echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 25077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 25078echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 25079 ac_header_preproc=yes 25080 ;; 25081 no:yes:* ) 25082 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 25083echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 25084 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 25085echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 25086 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 25087echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 25088 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 25089echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 25090 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 25091echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 25092 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 25093echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 25094 ( cat <<\_ASBOX 25095## ------------------------------- ## 25096## Report this to mbuna@bugged.org ## 25097## ------------------------------- ## 25098_ASBOX 25099 ) | sed "s/^/$as_me: WARNING: /" >&2 25100 ;; 25101esac 25102{ echo "$as_me:$LINENO: checking for $ac_header" >&5 25103echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 25104if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 25105 echo $ECHO_N "(cached) $ECHO_C" >&6 25106else 25107 eval "$as_ac_Header=\$ac_header_preproc" 25108fi 25109ac_res=`eval echo '${'$as_ac_Header'}'` 25110 { echo "$as_me:$LINENO: result: $ac_res" >&5 25111echo "${ECHO_T}$ac_res" >&6; } 25112 25113fi 25114if test `eval echo '${'$as_ac_Header'}'` = yes; then 25115 cat >>confdefs.h <<_ACEOF 25116#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 25117_ACEOF 25118 25119fi 25120 25121done 25122 25123{ echo "$as_me:$LINENO: checking types of arguments for select" >&5 25124echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; } 25125if test "${ac_cv_func_select_args+set}" = set; then 25126 echo $ECHO_N "(cached) $ECHO_C" >&6 25127else 25128 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do 25129 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do 25130 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do 25131 cat >conftest.$ac_ext <<_ACEOF 25132/* confdefs.h. */ 25133_ACEOF 25134cat confdefs.h >>conftest.$ac_ext 25135cat >>conftest.$ac_ext <<_ACEOF 25136/* end confdefs.h. */ 25137$ac_includes_default 25138#if HAVE_SYS_SELECT_H 25139# include <sys/select.h> 25140#endif 25141#if HAVE_SYS_SOCKET_H 25142# include <sys/socket.h> 25143#endif 25144 25145int 25146main () 25147{ 25148extern int select ($ac_arg1, 25149 $ac_arg234, $ac_arg234, $ac_arg234, 25150 $ac_arg5); 25151 ; 25152 return 0; 25153} 25154_ACEOF 25155rm -f conftest.$ac_objext 25156if { (ac_try="$ac_compile" 25157case "(($ac_try" in 25158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25159 *) ac_try_echo=$ac_try;; 25160esac 25161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25162 (eval "$ac_compile") 2>conftest.er1 25163 ac_status=$? 25164 grep -v '^ *+' conftest.er1 >conftest.err 25165 rm -f conftest.er1 25166 cat conftest.err >&5 25167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25168 (exit $ac_status); } && 25169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 25170 { (case "(($ac_try" in 25171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25172 *) ac_try_echo=$ac_try;; 25173esac 25174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25175 (eval "$ac_try") 2>&5 25176 ac_status=$? 25177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25178 (exit $ac_status); }; } && 25179 { ac_try='test -s conftest.$ac_objext' 25180 { (case "(($ac_try" in 25181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25182 *) ac_try_echo=$ac_try;; 25183esac 25184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25185 (eval "$ac_try") 2>&5 25186 ac_status=$? 25187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25188 (exit $ac_status); }; }; then 25189 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 25190else 25191 echo "$as_me: failed program was:" >&5 25192sed 's/^/| /' conftest.$ac_ext >&5 25193 25194 25195fi 25196 25197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25198 done 25199 done 25200done 25201# Provide a safe default value. 25202: ${ac_cv_func_select_args='int,int *,struct timeval *'} 25203 25204fi 25205{ echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 25206echo "${ECHO_T}$ac_cv_func_select_args" >&6; } 25207ac_save_IFS=$IFS; IFS=',' 25208set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` 25209IFS=$ac_save_IFS 25210shift 25211 25212cat >>confdefs.h <<_ACEOF 25213#define SELECT_TYPE_ARG1 $1 25214_ACEOF 25215 25216 25217cat >>confdefs.h <<_ACEOF 25218#define SELECT_TYPE_ARG234 ($2) 25219_ACEOF 25220 25221 25222cat >>confdefs.h <<_ACEOF 25223#define SELECT_TYPE_ARG5 ($3) 25224_ACEOF 25225 25226rm -f conftest* 25227 25228 25229 25230 # Most operating systems have gethostbyname() in the default searched 25231 # libraries (i.e. libc): 25232 { echo "$as_me:$LINENO: checking for gethostbyname" >&5 25233echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } 25234if test "${ac_cv_func_gethostbyname+set}" = set; then 25235 echo $ECHO_N "(cached) $ECHO_C" >&6 25236else 25237 cat >conftest.$ac_ext <<_ACEOF 25238/* confdefs.h. */ 25239_ACEOF 25240cat confdefs.h >>conftest.$ac_ext 25241cat >>conftest.$ac_ext <<_ACEOF 25242/* end confdefs.h. */ 25243/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. 25244 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 25245#define gethostbyname innocuous_gethostbyname 25246 25247/* System header to define __stub macros and hopefully few prototypes, 25248 which can conflict with char gethostbyname (); below. 25249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 25250 <limits.h> exists even on freestanding compilers. */ 25251 25252#ifdef __STDC__ 25253# include <limits.h> 25254#else 25255# include <assert.h> 25256#endif 25257 25258#undef gethostbyname 25259 25260/* Override any GCC internal prototype to avoid an error. 25261 Use char because int might match the return type of a GCC 25262 builtin and then its argument prototype would still apply. */ 25263#ifdef __cplusplus 25264extern "C" 25265#endif 25266char gethostbyname (); 25267/* The GNU C library defines this for functions which it implements 25268 to always fail with ENOSYS. Some functions are actually named 25269 something starting with __ and the normal name is an alias. */ 25270#if defined __stub_gethostbyname || defined __stub___gethostbyname 25271choke me 25272#endif 25273 25274int 25275main () 25276{ 25277return gethostbyname (); 25278 ; 25279 return 0; 25280} 25281_ACEOF 25282rm -f conftest.$ac_objext conftest$ac_exeext 25283if { (ac_try="$ac_link" 25284case "(($ac_try" in 25285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25286 *) ac_try_echo=$ac_try;; 25287esac 25288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25289 (eval "$ac_link") 2>conftest.er1 25290 ac_status=$? 25291 grep -v '^ *+' conftest.er1 >conftest.err 25292 rm -f conftest.er1 25293 cat conftest.err >&5 25294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25295 (exit $ac_status); } && 25296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 25297 { (case "(($ac_try" in 25298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25299 *) ac_try_echo=$ac_try;; 25300esac 25301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25302 (eval "$ac_try") 2>&5 25303 ac_status=$? 25304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25305 (exit $ac_status); }; } && 25306 { ac_try='test -s conftest$ac_exeext' 25307 { (case "(($ac_try" in 25308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25309 *) ac_try_echo=$ac_try;; 25310esac 25311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25312 (eval "$ac_try") 2>&5 25313 ac_status=$? 25314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25315 (exit $ac_status); }; }; then 25316 ac_cv_func_gethostbyname=yes 25317else 25318 echo "$as_me: failed program was:" >&5 25319sed 's/^/| /' conftest.$ac_ext >&5 25320 25321 ac_cv_func_gethostbyname=no 25322fi 25323 25324rm -f core conftest.err conftest.$ac_objext \ 25325 conftest$ac_exeext conftest.$ac_ext 25326fi 25327{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 25328echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } 25329if test $ac_cv_func_gethostbyname = yes; then 25330 : 25331else 25332 # Some OSes (eg. Solaris) place it in libnsl: 25333 25334{ echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 25335echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } 25336if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 25337 echo $ECHO_N "(cached) $ECHO_C" >&6 25338else 25339 ac_check_lib_save_LIBS=$LIBS 25340LIBS="-lnsl $LIBS" 25341cat >conftest.$ac_ext <<_ACEOF 25342/* confdefs.h. */ 25343_ACEOF 25344cat confdefs.h >>conftest.$ac_ext 25345cat >>conftest.$ac_ext <<_ACEOF 25346/* end confdefs.h. */ 25347 25348/* Override any GCC internal prototype to avoid an error. 25349 Use char because int might match the return type of a GCC 25350 builtin and then its argument prototype would still apply. */ 25351#ifdef __cplusplus 25352extern "C" 25353#endif 25354char gethostbyname (); 25355int 25356main () 25357{ 25358return gethostbyname (); 25359 ; 25360 return 0; 25361} 25362_ACEOF 25363rm -f conftest.$ac_objext conftest$ac_exeext 25364if { (ac_try="$ac_link" 25365case "(($ac_try" in 25366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25367 *) ac_try_echo=$ac_try;; 25368esac 25369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25370 (eval "$ac_link") 2>conftest.er1 25371 ac_status=$? 25372 grep -v '^ *+' conftest.er1 >conftest.err 25373 rm -f conftest.er1 25374 cat conftest.err >&5 25375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25376 (exit $ac_status); } && 25377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 25378 { (case "(($ac_try" in 25379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25380 *) ac_try_echo=$ac_try;; 25381esac 25382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25383 (eval "$ac_try") 2>&5 25384 ac_status=$? 25385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25386 (exit $ac_status); }; } && 25387 { ac_try='test -s conftest$ac_exeext' 25388 { (case "(($ac_try" in 25389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25390 *) ac_try_echo=$ac_try;; 25391esac 25392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25393 (eval "$ac_try") 2>&5 25394 ac_status=$? 25395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25396 (exit $ac_status); }; }; then 25397 ac_cv_lib_nsl_gethostbyname=yes 25398else 25399 echo "$as_me: failed program was:" >&5 25400sed 's/^/| /' conftest.$ac_ext >&5 25401 25402 ac_cv_lib_nsl_gethostbyname=no 25403fi 25404 25405rm -f core conftest.err conftest.$ac_objext \ 25406 conftest$ac_exeext conftest.$ac_ext 25407LIBS=$ac_check_lib_save_LIBS 25408fi 25409{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 25410echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 25411if test $ac_cv_lib_nsl_gethostbyname = yes; then 25412 cat >>confdefs.h <<_ACEOF 25413#define HAVE_LIBNSL 1 25414_ACEOF 25415 25416 LIBS="-lnsl $LIBS" 25417 25418else 25419 # Some strange OSes (SINIX) have it in libsocket: 25420 25421{ echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5 25422echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; } 25423if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then 25424 echo $ECHO_N "(cached) $ECHO_C" >&6 25425else 25426 ac_check_lib_save_LIBS=$LIBS 25427LIBS="-lsocket $LIBS" 25428cat >conftest.$ac_ext <<_ACEOF 25429/* confdefs.h. */ 25430_ACEOF 25431cat confdefs.h >>conftest.$ac_ext 25432cat >>conftest.$ac_ext <<_ACEOF 25433/* end confdefs.h. */ 25434 25435/* Override any GCC internal prototype to avoid an error. 25436 Use char because int might match the return type of a GCC 25437 builtin and then its argument prototype would still apply. */ 25438#ifdef __cplusplus 25439extern "C" 25440#endif 25441char gethostbyname (); 25442int 25443main () 25444{ 25445return gethostbyname (); 25446 ; 25447 return 0; 25448} 25449_ACEOF 25450rm -f conftest.$ac_objext conftest$ac_exeext 25451if { (ac_try="$ac_link" 25452case "(($ac_try" in 25453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25454 *) ac_try_echo=$ac_try;; 25455esac 25456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25457 (eval "$ac_link") 2>conftest.er1 25458 ac_status=$? 25459 grep -v '^ *+' conftest.er1 >conftest.err 25460 rm -f conftest.er1 25461 cat conftest.err >&5 25462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25463 (exit $ac_status); } && 25464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 25465 { (case "(($ac_try" in 25466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25467 *) ac_try_echo=$ac_try;; 25468esac 25469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25470 (eval "$ac_try") 2>&5 25471 ac_status=$? 25472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25473 (exit $ac_status); }; } && 25474 { ac_try='test -s conftest$ac_exeext' 25475 { (case "(($ac_try" in 25476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25477 *) ac_try_echo=$ac_try;; 25478esac 25479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25480 (eval "$ac_try") 2>&5 25481 ac_status=$? 25482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25483 (exit $ac_status); }; }; then 25484 ac_cv_lib_socket_gethostbyname=yes 25485else 25486 echo "$as_me: failed program was:" >&5 25487sed 's/^/| /' conftest.$ac_ext >&5 25488 25489 ac_cv_lib_socket_gethostbyname=no 25490fi 25491 25492rm -f core conftest.err conftest.$ac_objext \ 25493 conftest$ac_exeext conftest.$ac_ext 25494LIBS=$ac_check_lib_save_LIBS 25495fi 25496{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5 25497echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; } 25498if test $ac_cv_lib_socket_gethostbyname = yes; then 25499 cat >>confdefs.h <<_ACEOF 25500#define HAVE_LIBSOCKET 1 25501_ACEOF 25502 25503 LIBS="-lsocket $LIBS" 25504 25505else 25506 # Unfortunately libsocket sometimes depends on libnsl. 25507 # AC_CHECK_LIB's API is essentially broken so the following 25508 # ugliness is necessary: 25509 { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5 25510echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; } 25511if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then 25512 echo $ECHO_N "(cached) $ECHO_C" >&6 25513else 25514 ac_check_lib_save_LIBS=$LIBS 25515LIBS="-lsocket -lnsl $LIBS" 25516cat >conftest.$ac_ext <<_ACEOF 25517/* confdefs.h. */ 25518_ACEOF 25519cat confdefs.h >>conftest.$ac_ext 25520cat >>conftest.$ac_ext <<_ACEOF 25521/* end confdefs.h. */ 25522 25523/* Override any GCC internal prototype to avoid an error. 25524 Use char because int might match the return type of a GCC 25525 builtin and then its argument prototype would still apply. */ 25526#ifdef __cplusplus 25527extern "C" 25528#endif 25529char gethostbyname (); 25530int 25531main () 25532{ 25533return gethostbyname (); 25534 ; 25535 return 0; 25536} 25537_ACEOF 25538rm -f conftest.$ac_objext conftest$ac_exeext 25539if { (ac_try="$ac_link" 25540case "(($ac_try" in 25541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25542 *) ac_try_echo=$ac_try;; 25543esac 25544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25545 (eval "$ac_link") 2>conftest.er1 25546 ac_status=$? 25547 grep -v '^ *+' conftest.er1 >conftest.err 25548 rm -f conftest.er1 25549 cat conftest.err >&5 25550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25551 (exit $ac_status); } && 25552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 25553 { (case "(($ac_try" in 25554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25555 *) ac_try_echo=$ac_try;; 25556esac 25557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25558 (eval "$ac_try") 2>&5 25559 ac_status=$? 25560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25561 (exit $ac_status); }; } && 25562 { ac_try='test -s conftest$ac_exeext' 25563 { (case "(($ac_try" in 25564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25565 *) ac_try_echo=$ac_try;; 25566esac 25567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25568 (eval "$ac_try") 2>&5 25569 ac_status=$? 25570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25571 (exit $ac_status); }; }; then 25572 ac_cv_lib_socket_gethostbyname=yes 25573else 25574 echo "$as_me: failed program was:" >&5 25575sed 's/^/| /' conftest.$ac_ext >&5 25576 25577 ac_cv_lib_socket_gethostbyname=no 25578fi 25579 25580rm -f core conftest.err conftest.$ac_objext \ 25581 conftest$ac_exeext conftest.$ac_ext 25582LIBS=$ac_check_lib_save_LIBS 25583fi 25584{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5 25585echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; } 25586if test $ac_cv_lib_socket_gethostbyname = yes; then 25587 LIBS="-lsocket -lnsl $LIBS" 25588else 25589 25590{ echo "$as_me:$LINENO: checking for gethostbyname in -lresolv" >&5 25591echo $ECHO_N "checking for gethostbyname in -lresolv... $ECHO_C" >&6; } 25592if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then 25593 echo $ECHO_N "(cached) $ECHO_C" >&6 25594else 25595 ac_check_lib_save_LIBS=$LIBS 25596LIBS="-lresolv $LIBS" 25597cat >conftest.$ac_ext <<_ACEOF 25598/* confdefs.h. */ 25599_ACEOF 25600cat confdefs.h >>conftest.$ac_ext 25601cat >>conftest.$ac_ext <<_ACEOF 25602/* end confdefs.h. */ 25603 25604/* Override any GCC internal prototype to avoid an error. 25605 Use char because int might match the return type of a GCC 25606 builtin and then its argument prototype would still apply. */ 25607#ifdef __cplusplus 25608extern "C" 25609#endif 25610char gethostbyname (); 25611int 25612main () 25613{ 25614return gethostbyname (); 25615 ; 25616 return 0; 25617} 25618_ACEOF 25619rm -f conftest.$ac_objext conftest$ac_exeext 25620if { (ac_try="$ac_link" 25621case "(($ac_try" in 25622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25623 *) ac_try_echo=$ac_try;; 25624esac 25625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25626 (eval "$ac_link") 2>conftest.er1 25627 ac_status=$? 25628 grep -v '^ *+' conftest.er1 >conftest.err 25629 rm -f conftest.er1 25630 cat conftest.err >&5 25631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25632 (exit $ac_status); } && 25633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 25634 { (case "(($ac_try" in 25635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25636 *) ac_try_echo=$ac_try;; 25637esac 25638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25639 (eval "$ac_try") 2>&5 25640 ac_status=$? 25641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25642 (exit $ac_status); }; } && 25643 { ac_try='test -s conftest$ac_exeext' 25644 { (case "(($ac_try" in 25645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25646 *) ac_try_echo=$ac_try;; 25647esac 25648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25649 (eval "$ac_try") 2>&5 25650 ac_status=$? 25651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25652 (exit $ac_status); }; }; then 25653 ac_cv_lib_resolv_gethostbyname=yes 25654else 25655 echo "$as_me: failed program was:" >&5 25656sed 's/^/| /' conftest.$ac_ext >&5 25657 25658 ac_cv_lib_resolv_gethostbyname=no 25659fi 25660 25661rm -f core conftest.err conftest.$ac_objext \ 25662 conftest$ac_exeext conftest.$ac_ext 25663LIBS=$ac_check_lib_save_LIBS 25664fi 25665{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname" >&5 25666echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname" >&6; } 25667if test $ac_cv_lib_resolv_gethostbyname = yes; then 25668 cat >>confdefs.h <<_ACEOF 25669#define HAVE_LIBRESOLV 1 25670_ACEOF 25671 25672 LIBS="-lresolv $LIBS" 25673 25674fi 25675 25676fi 25677 25678 25679fi 25680 25681 25682fi 25683 25684 25685fi 25686 25687 { echo "$as_me:$LINENO: checking for socket" >&5 25688echo $ECHO_N "checking for socket... $ECHO_C" >&6; } 25689if test "${ac_cv_func_socket+set}" = set; then 25690 echo $ECHO_N "(cached) $ECHO_C" >&6 25691else 25692 cat >conftest.$ac_ext <<_ACEOF 25693/* confdefs.h. */ 25694_ACEOF 25695cat confdefs.h >>conftest.$ac_ext 25696cat >>conftest.$ac_ext <<_ACEOF 25697/* end confdefs.h. */ 25698/* Define socket to an innocuous variant, in case <limits.h> declares socket. 25699 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 25700#define socket innocuous_socket 25701 25702/* System header to define __stub macros and hopefully few prototypes, 25703 which can conflict with char socket (); below. 25704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 25705 <limits.h> exists even on freestanding compilers. */ 25706 25707#ifdef __STDC__ 25708# include <limits.h> 25709#else 25710# include <assert.h> 25711#endif 25712 25713#undef socket 25714 25715/* Override any GCC internal prototype to avoid an error. 25716 Use char because int might match the return type of a GCC 25717 builtin and then its argument prototype would still apply. */ 25718#ifdef __cplusplus 25719extern "C" 25720#endif 25721char socket (); 25722/* The GNU C library defines this for functions which it implements 25723 to always fail with ENOSYS. Some functions are actually named 25724 something starting with __ and the normal name is an alias. */ 25725#if defined __stub_socket || defined __stub___socket 25726choke me 25727#endif 25728 25729int 25730main () 25731{ 25732return socket (); 25733 ; 25734 return 0; 25735} 25736_ACEOF 25737rm -f conftest.$ac_objext conftest$ac_exeext 25738if { (ac_try="$ac_link" 25739case "(($ac_try" in 25740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25741 *) ac_try_echo=$ac_try;; 25742esac 25743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25744 (eval "$ac_link") 2>conftest.er1 25745 ac_status=$? 25746 grep -v '^ *+' conftest.er1 >conftest.err 25747 rm -f conftest.er1 25748 cat conftest.err >&5 25749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25750 (exit $ac_status); } && 25751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 25752 { (case "(($ac_try" in 25753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25754 *) ac_try_echo=$ac_try;; 25755esac 25756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25757 (eval "$ac_try") 2>&5 25758 ac_status=$? 25759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25760 (exit $ac_status); }; } && 25761 { ac_try='test -s conftest$ac_exeext' 25762 { (case "(($ac_try" in 25763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25764 *) ac_try_echo=$ac_try;; 25765esac 25766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25767 (eval "$ac_try") 2>&5 25768 ac_status=$? 25769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25770 (exit $ac_status); }; }; then 25771 ac_cv_func_socket=yes 25772else 25773 echo "$as_me: failed program was:" >&5 25774sed 's/^/| /' conftest.$ac_ext >&5 25775 25776 ac_cv_func_socket=no 25777fi 25778 25779rm -f core conftest.err conftest.$ac_objext \ 25780 conftest$ac_exeext conftest.$ac_ext 25781fi 25782{ echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 25783echo "${ECHO_T}$ac_cv_func_socket" >&6; } 25784if test $ac_cv_func_socket = yes; then 25785 : 25786else 25787 25788{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 25789echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; } 25790if test "${ac_cv_lib_socket_socket+set}" = set; then 25791 echo $ECHO_N "(cached) $ECHO_C" >&6 25792else 25793 ac_check_lib_save_LIBS=$LIBS 25794LIBS="-lsocket $LIBS" 25795cat >conftest.$ac_ext <<_ACEOF 25796/* confdefs.h. */ 25797_ACEOF 25798cat confdefs.h >>conftest.$ac_ext 25799cat >>conftest.$ac_ext <<_ACEOF 25800/* end confdefs.h. */ 25801 25802/* Override any GCC internal prototype to avoid an error. 25803 Use char because int might match the return type of a GCC 25804 builtin and then its argument prototype would still apply. */ 25805#ifdef __cplusplus 25806extern "C" 25807#endif 25808char socket (); 25809int 25810main () 25811{ 25812return socket (); 25813 ; 25814 return 0; 25815} 25816_ACEOF 25817rm -f conftest.$ac_objext conftest$ac_exeext 25818if { (ac_try="$ac_link" 25819case "(($ac_try" in 25820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25821 *) ac_try_echo=$ac_try;; 25822esac 25823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25824 (eval "$ac_link") 2>conftest.er1 25825 ac_status=$? 25826 grep -v '^ *+' conftest.er1 >conftest.err 25827 rm -f conftest.er1 25828 cat conftest.err >&5 25829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25830 (exit $ac_status); } && 25831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 25832 { (case "(($ac_try" in 25833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25834 *) ac_try_echo=$ac_try;; 25835esac 25836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25837 (eval "$ac_try") 2>&5 25838 ac_status=$? 25839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25840 (exit $ac_status); }; } && 25841 { ac_try='test -s conftest$ac_exeext' 25842 { (case "(($ac_try" in 25843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25844 *) ac_try_echo=$ac_try;; 25845esac 25846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25847 (eval "$ac_try") 2>&5 25848 ac_status=$? 25849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25850 (exit $ac_status); }; }; then 25851 ac_cv_lib_socket_socket=yes 25852else 25853 echo "$as_me: failed program was:" >&5 25854sed 's/^/| /' conftest.$ac_ext >&5 25855 25856 ac_cv_lib_socket_socket=no 25857fi 25858 25859rm -f core conftest.err conftest.$ac_objext \ 25860 conftest$ac_exeext conftest.$ac_ext 25861LIBS=$ac_check_lib_save_LIBS 25862fi 25863{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 25864echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } 25865if test $ac_cv_lib_socket_socket = yes; then 25866 cat >>confdefs.h <<_ACEOF 25867#define HAVE_LIBSOCKET 1 25868_ACEOF 25869 25870 LIBS="-lsocket $LIBS" 25871 25872else 25873 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 25874echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; } 25875if test "${ac_cv_lib_socket_socket+set}" = set; then 25876 echo $ECHO_N "(cached) $ECHO_C" >&6 25877else 25878 ac_check_lib_save_LIBS=$LIBS 25879LIBS="-lsocket -lnsl $LIBS" 25880cat >conftest.$ac_ext <<_ACEOF 25881/* confdefs.h. */ 25882_ACEOF 25883cat confdefs.h >>conftest.$ac_ext 25884cat >>conftest.$ac_ext <<_ACEOF 25885/* end confdefs.h. */ 25886 25887/* Override any GCC internal prototype to avoid an error. 25888 Use char because int might match the return type of a GCC 25889 builtin and then its argument prototype would still apply. */ 25890#ifdef __cplusplus 25891extern "C" 25892#endif 25893char socket (); 25894int 25895main () 25896{ 25897return socket (); 25898 ; 25899 return 0; 25900} 25901_ACEOF 25902rm -f conftest.$ac_objext conftest$ac_exeext 25903if { (ac_try="$ac_link" 25904case "(($ac_try" in 25905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25906 *) ac_try_echo=$ac_try;; 25907esac 25908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25909 (eval "$ac_link") 2>conftest.er1 25910 ac_status=$? 25911 grep -v '^ *+' conftest.er1 >conftest.err 25912 rm -f conftest.er1 25913 cat conftest.err >&5 25914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25915 (exit $ac_status); } && 25916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 25917 { (case "(($ac_try" in 25918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25919 *) ac_try_echo=$ac_try;; 25920esac 25921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25922 (eval "$ac_try") 2>&5 25923 ac_status=$? 25924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25925 (exit $ac_status); }; } && 25926 { ac_try='test -s conftest$ac_exeext' 25927 { (case "(($ac_try" in 25928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25929 *) ac_try_echo=$ac_try;; 25930esac 25931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25932 (eval "$ac_try") 2>&5 25933 ac_status=$? 25934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25935 (exit $ac_status); }; }; then 25936 ac_cv_lib_socket_socket=yes 25937else 25938 echo "$as_me: failed program was:" >&5 25939sed 's/^/| /' conftest.$ac_ext >&5 25940 25941 ac_cv_lib_socket_socket=no 25942fi 25943 25944rm -f core conftest.err conftest.$ac_objext \ 25945 conftest$ac_exeext conftest.$ac_ext 25946LIBS=$ac_check_lib_save_LIBS 25947fi 25948{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 25949echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } 25950if test $ac_cv_lib_socket_socket = yes; then 25951 LIBS="-lsocket -lnsl $LIBS" 25952fi 25953 25954fi 25955 25956fi 25957 25958 25959 25960 25961 25962 25963for ac_func in gettimeofday memset strerror 25964do 25965as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 25966{ echo "$as_me:$LINENO: checking for $ac_func" >&5 25967echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 25968if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 25969 echo $ECHO_N "(cached) $ECHO_C" >&6 25970else 25971 cat >conftest.$ac_ext <<_ACEOF 25972/* confdefs.h. */ 25973_ACEOF 25974cat confdefs.h >>conftest.$ac_ext 25975cat >>conftest.$ac_ext <<_ACEOF 25976/* end confdefs.h. */ 25977/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 25978 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 25979#define $ac_func innocuous_$ac_func 25980 25981/* System header to define __stub macros and hopefully few prototypes, 25982 which can conflict with char $ac_func (); below. 25983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 25984 <limits.h> exists even on freestanding compilers. */ 25985 25986#ifdef __STDC__ 25987# include <limits.h> 25988#else 25989# include <assert.h> 25990#endif 25991 25992#undef $ac_func 25993 25994/* Override any GCC internal prototype to avoid an error. 25995 Use char because int might match the return type of a GCC 25996 builtin and then its argument prototype would still apply. */ 25997#ifdef __cplusplus 25998extern "C" 25999#endif 26000char $ac_func (); 26001/* The GNU C library defines this for functions which it implements 26002 to always fail with ENOSYS. Some functions are actually named 26003 something starting with __ and the normal name is an alias. */ 26004#if defined __stub_$ac_func || defined __stub___$ac_func 26005choke me 26006#endif 26007 26008int 26009main () 26010{ 26011return $ac_func (); 26012 ; 26013 return 0; 26014} 26015_ACEOF 26016rm -f conftest.$ac_objext conftest$ac_exeext 26017if { (ac_try="$ac_link" 26018case "(($ac_try" in 26019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26020 *) ac_try_echo=$ac_try;; 26021esac 26022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26023 (eval "$ac_link") 2>conftest.er1 26024 ac_status=$? 26025 grep -v '^ *+' conftest.er1 >conftest.err 26026 rm -f conftest.er1 26027 cat conftest.err >&5 26028 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26029 (exit $ac_status); } && 26030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 26031 { (case "(($ac_try" in 26032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26033 *) ac_try_echo=$ac_try;; 26034esac 26035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26036 (eval "$ac_try") 2>&5 26037 ac_status=$? 26038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26039 (exit $ac_status); }; } && 26040 { ac_try='test -s conftest$ac_exeext' 26041 { (case "(($ac_try" in 26042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26043 *) ac_try_echo=$ac_try;; 26044esac 26045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26046 (eval "$ac_try") 2>&5 26047 ac_status=$? 26048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26049 (exit $ac_status); }; }; then 26050 eval "$as_ac_var=yes" 26051else 26052 echo "$as_me: failed program was:" >&5 26053sed 's/^/| /' conftest.$ac_ext >&5 26054 26055 eval "$as_ac_var=no" 26056fi 26057 26058rm -f core conftest.err conftest.$ac_objext \ 26059 conftest$ac_exeext conftest.$ac_ext 26060fi 26061ac_res=`eval echo '${'$as_ac_var'}'` 26062 { echo "$as_me:$LINENO: result: $ac_res" >&5 26063echo "${ECHO_T}$ac_res" >&6; } 26064if test `eval echo '${'$as_ac_var'}'` = yes; then 26065 cat >>confdefs.h <<_ACEOF 26066#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 26067_ACEOF 26068 26069fi 26070done 26071 26072 26073 26074 26075 26076 26077for ac_func in getpagesize getsysinfo mpctl sysconf sysctl 26078do 26079as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 26080{ echo "$as_me:$LINENO: checking for $ac_func" >&5 26081echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 26082if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 26083 echo $ECHO_N "(cached) $ECHO_C" >&6 26084else 26085 cat >conftest.$ac_ext <<_ACEOF 26086/* confdefs.h. */ 26087_ACEOF 26088cat confdefs.h >>conftest.$ac_ext 26089cat >>conftest.$ac_ext <<_ACEOF 26090/* end confdefs.h. */ 26091/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 26092 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 26093#define $ac_func innocuous_$ac_func 26094 26095/* System header to define __stub macros and hopefully few prototypes, 26096 which can conflict with char $ac_func (); below. 26097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 26098 <limits.h> exists even on freestanding compilers. */ 26099 26100#ifdef __STDC__ 26101# include <limits.h> 26102#else 26103# include <assert.h> 26104#endif 26105 26106#undef $ac_func 26107 26108/* Override any GCC internal prototype to avoid an error. 26109 Use char because int might match the return type of a GCC 26110 builtin and then its argument prototype would still apply. */ 26111#ifdef __cplusplus 26112extern "C" 26113#endif 26114char $ac_func (); 26115/* The GNU C library defines this for functions which it implements 26116 to always fail with ENOSYS. Some functions are actually named 26117 something starting with __ and the normal name is an alias. */ 26118#if defined __stub_$ac_func || defined __stub___$ac_func 26119choke me 26120#endif 26121 26122int 26123main () 26124{ 26125return $ac_func (); 26126 ; 26127 return 0; 26128} 26129_ACEOF 26130rm -f conftest.$ac_objext conftest$ac_exeext 26131if { (ac_try="$ac_link" 26132case "(($ac_try" in 26133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26134 *) ac_try_echo=$ac_try;; 26135esac 26136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26137 (eval "$ac_link") 2>conftest.er1 26138 ac_status=$? 26139 grep -v '^ *+' conftest.er1 >conftest.err 26140 rm -f conftest.er1 26141 cat conftest.err >&5 26142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26143 (exit $ac_status); } && 26144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 26145 { (case "(($ac_try" in 26146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26147 *) ac_try_echo=$ac_try;; 26148esac 26149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26150 (eval "$ac_try") 2>&5 26151 ac_status=$? 26152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26153 (exit $ac_status); }; } && 26154 { ac_try='test -s conftest$ac_exeext' 26155 { (case "(($ac_try" in 26156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26157 *) ac_try_echo=$ac_try;; 26158esac 26159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26160 (eval "$ac_try") 2>&5 26161 ac_status=$? 26162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26163 (exit $ac_status); }; }; then 26164 eval "$as_ac_var=yes" 26165else 26166 echo "$as_me: failed program was:" >&5 26167sed 's/^/| /' conftest.$ac_ext >&5 26168 26169 eval "$as_ac_var=no" 26170fi 26171 26172rm -f core conftest.err conftest.$ac_objext \ 26173 conftest$ac_exeext conftest.$ac_ext 26174fi 26175ac_res=`eval echo '${'$as_ac_var'}'` 26176 { echo "$as_me:$LINENO: result: $ac_res" >&5 26177echo "${ECHO_T}$ac_res" >&6; } 26178if test `eval echo '${'$as_ac_var'}'` = yes; then 26179 cat >>confdefs.h <<_ACEOF 26180#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 26181_ACEOF 26182 26183fi 26184done 26185 26186 26187 26188 26189 26190 26191 26192for ac_func in epoll_create poll kqueue getrlimit getrusage setrlimit 26193do 26194as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 26195{ echo "$as_me:$LINENO: checking for $ac_func" >&5 26196echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 26197if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 26198 echo $ECHO_N "(cached) $ECHO_C" >&6 26199else 26200 cat >conftest.$ac_ext <<_ACEOF 26201/* confdefs.h. */ 26202_ACEOF 26203cat confdefs.h >>conftest.$ac_ext 26204cat >>conftest.$ac_ext <<_ACEOF 26205/* end confdefs.h. */ 26206/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 26207 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 26208#define $ac_func innocuous_$ac_func 26209 26210/* System header to define __stub macros and hopefully few prototypes, 26211 which can conflict with char $ac_func (); below. 26212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 26213 <limits.h> exists even on freestanding compilers. */ 26214 26215#ifdef __STDC__ 26216# include <limits.h> 26217#else 26218# include <assert.h> 26219#endif 26220 26221#undef $ac_func 26222 26223/* Override any GCC internal prototype to avoid an error. 26224 Use char because int might match the return type of a GCC 26225 builtin and then its argument prototype would still apply. */ 26226#ifdef __cplusplus 26227extern "C" 26228#endif 26229char $ac_func (); 26230/* The GNU C library defines this for functions which it implements 26231 to always fail with ENOSYS. Some functions are actually named 26232 something starting with __ and the normal name is an alias. */ 26233#if defined __stub_$ac_func || defined __stub___$ac_func 26234choke me 26235#endif 26236 26237int 26238main () 26239{ 26240return $ac_func (); 26241 ; 26242 return 0; 26243} 26244_ACEOF 26245rm -f conftest.$ac_objext conftest$ac_exeext 26246if { (ac_try="$ac_link" 26247case "(($ac_try" in 26248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26249 *) ac_try_echo=$ac_try;; 26250esac 26251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26252 (eval "$ac_link") 2>conftest.er1 26253 ac_status=$? 26254 grep -v '^ *+' conftest.er1 >conftest.err 26255 rm -f conftest.er1 26256 cat conftest.err >&5 26257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26258 (exit $ac_status); } && 26259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 26260 { (case "(($ac_try" in 26261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26262 *) ac_try_echo=$ac_try;; 26263esac 26264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26265 (eval "$ac_try") 2>&5 26266 ac_status=$? 26267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26268 (exit $ac_status); }; } && 26269 { ac_try='test -s conftest$ac_exeext' 26270 { (case "(($ac_try" in 26271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26272 *) ac_try_echo=$ac_try;; 26273esac 26274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26275 (eval "$ac_try") 2>&5 26276 ac_status=$? 26277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26278 (exit $ac_status); }; }; then 26279 eval "$as_ac_var=yes" 26280else 26281 echo "$as_me: failed program was:" >&5 26282sed 's/^/| /' conftest.$ac_ext >&5 26283 26284 eval "$as_ac_var=no" 26285fi 26286 26287rm -f core conftest.err conftest.$ac_objext \ 26288 conftest$ac_exeext conftest.$ac_ext 26289fi 26290ac_res=`eval echo '${'$as_ac_var'}'` 26291 { echo "$as_me:$LINENO: result: $ac_res" >&5 26292echo "${ECHO_T}$ac_res" >&6; } 26293if test `eval echo '${'$as_ac_var'}'` = yes; then 26294 cat >>confdefs.h <<_ACEOF 26295#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 26296_ACEOF 26297 26298fi 26299done 26300 26301 26302 26303for ac_func in semaphore_create semaphore_signal 26304do 26305as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 26306{ echo "$as_me:$LINENO: checking for $ac_func" >&5 26307echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 26308if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 26309 echo $ECHO_N "(cached) $ECHO_C" >&6 26310else 26311 cat >conftest.$ac_ext <<_ACEOF 26312/* confdefs.h. */ 26313_ACEOF 26314cat confdefs.h >>conftest.$ac_ext 26315cat >>conftest.$ac_ext <<_ACEOF 26316/* end confdefs.h. */ 26317/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 26318 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 26319#define $ac_func innocuous_$ac_func 26320 26321/* System header to define __stub macros and hopefully few prototypes, 26322 which can conflict with char $ac_func (); below. 26323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 26324 <limits.h> exists even on freestanding compilers. */ 26325 26326#ifdef __STDC__ 26327# include <limits.h> 26328#else 26329# include <assert.h> 26330#endif 26331 26332#undef $ac_func 26333 26334/* Override any GCC internal prototype to avoid an error. 26335 Use char because int might match the return type of a GCC 26336 builtin and then its argument prototype would still apply. */ 26337#ifdef __cplusplus 26338extern "C" 26339#endif 26340char $ac_func (); 26341/* The GNU C library defines this for functions which it implements 26342 to always fail with ENOSYS. Some functions are actually named 26343 something starting with __ and the normal name is an alias. */ 26344#if defined __stub_$ac_func || defined __stub___$ac_func 26345choke me 26346#endif 26347 26348int 26349main () 26350{ 26351return $ac_func (); 26352 ; 26353 return 0; 26354} 26355_ACEOF 26356rm -f conftest.$ac_objext conftest$ac_exeext 26357if { (ac_try="$ac_link" 26358case "(($ac_try" in 26359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26360 *) ac_try_echo=$ac_try;; 26361esac 26362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26363 (eval "$ac_link") 2>conftest.er1 26364 ac_status=$? 26365 grep -v '^ *+' conftest.er1 >conftest.err 26366 rm -f conftest.er1 26367 cat conftest.err >&5 26368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26369 (exit $ac_status); } && 26370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 26371 { (case "(($ac_try" in 26372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26373 *) ac_try_echo=$ac_try;; 26374esac 26375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26376 (eval "$ac_try") 2>&5 26377 ac_status=$? 26378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26379 (exit $ac_status); }; } && 26380 { ac_try='test -s conftest$ac_exeext' 26381 { (case "(($ac_try" in 26382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26383 *) ac_try_echo=$ac_try;; 26384esac 26385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26386 (eval "$ac_try") 2>&5 26387 ac_status=$? 26388 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26389 (exit $ac_status); }; }; then 26390 eval "$as_ac_var=yes" 26391else 26392 echo "$as_me: failed program was:" >&5 26393sed 's/^/| /' conftest.$ac_ext >&5 26394 26395 eval "$as_ac_var=no" 26396fi 26397 26398rm -f core conftest.err conftest.$ac_objext \ 26399 conftest$ac_exeext conftest.$ac_ext 26400fi 26401ac_res=`eval echo '${'$as_ac_var'}'` 26402 { echo "$as_me:$LINENO: result: $ac_res" >&5 26403echo "${ECHO_T}$ac_res" >&6; } 26404if test `eval echo '${'$as_ac_var'}'` = yes; then 26405 cat >>confdefs.h <<_ACEOF 26406#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 26407_ACEOF 26408 26409fi 26410done 26411 26412 26413 26414 26415for ac_func in _spin_lock _spin_lock_try _spin_unlock 26416do 26417as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 26418{ echo "$as_me:$LINENO: checking for $ac_func" >&5 26419echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 26420if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 26421 echo $ECHO_N "(cached) $ECHO_C" >&6 26422else 26423 cat >conftest.$ac_ext <<_ACEOF 26424/* confdefs.h. */ 26425_ACEOF 26426cat confdefs.h >>conftest.$ac_ext 26427cat >>conftest.$ac_ext <<_ACEOF 26428/* end confdefs.h. */ 26429/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 26430 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 26431#define $ac_func innocuous_$ac_func 26432 26433/* System header to define __stub macros and hopefully few prototypes, 26434 which can conflict with char $ac_func (); below. 26435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 26436 <limits.h> exists even on freestanding compilers. */ 26437 26438#ifdef __STDC__ 26439# include <limits.h> 26440#else 26441# include <assert.h> 26442#endif 26443 26444#undef $ac_func 26445 26446/* Override any GCC internal prototype to avoid an error. 26447 Use char because int might match the return type of a GCC 26448 builtin and then its argument prototype would still apply. */ 26449#ifdef __cplusplus 26450extern "C" 26451#endif 26452char $ac_func (); 26453/* The GNU C library defines this for functions which it implements 26454 to always fail with ENOSYS. Some functions are actually named 26455 something starting with __ and the normal name is an alias. */ 26456#if defined __stub_$ac_func || defined __stub___$ac_func 26457choke me 26458#endif 26459 26460int 26461main () 26462{ 26463return $ac_func (); 26464 ; 26465 return 0; 26466} 26467_ACEOF 26468rm -f conftest.$ac_objext conftest$ac_exeext 26469if { (ac_try="$ac_link" 26470case "(($ac_try" in 26471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26472 *) ac_try_echo=$ac_try;; 26473esac 26474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26475 (eval "$ac_link") 2>conftest.er1 26476 ac_status=$? 26477 grep -v '^ *+' conftest.er1 >conftest.err 26478 rm -f conftest.er1 26479 cat conftest.err >&5 26480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26481 (exit $ac_status); } && 26482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 26483 { (case "(($ac_try" in 26484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26485 *) ac_try_echo=$ac_try;; 26486esac 26487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26488 (eval "$ac_try") 2>&5 26489 ac_status=$? 26490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26491 (exit $ac_status); }; } && 26492 { ac_try='test -s conftest$ac_exeext' 26493 { (case "(($ac_try" in 26494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26495 *) ac_try_echo=$ac_try;; 26496esac 26497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26498 (eval "$ac_try") 2>&5 26499 ac_status=$? 26500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26501 (exit $ac_status); }; }; then 26502 eval "$as_ac_var=yes" 26503else 26504 echo "$as_me: failed program was:" >&5 26505sed 's/^/| /' conftest.$ac_ext >&5 26506 26507 eval "$as_ac_var=no" 26508fi 26509 26510rm -f core conftest.err conftest.$ac_objext \ 26511 conftest$ac_exeext conftest.$ac_ext 26512fi 26513ac_res=`eval echo '${'$as_ac_var'}'` 26514 { echo "$as_me:$LINENO: result: $ac_res" >&5 26515echo "${ECHO_T}$ac_res" >&6; } 26516if test `eval echo '${'$as_ac_var'}'` = yes; then 26517 cat >>confdefs.h <<_ACEOF 26518#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 26519_ACEOF 26520 26521fi 26522done 26523 26524{ echo "$as_me:$LINENO: checking for library containing sched_yield" >&5 26525echo $ECHO_N "checking for library containing sched_yield... $ECHO_C" >&6; } 26526if test "${ac_cv_search_sched_yield+set}" = set; then 26527 echo $ECHO_N "(cached) $ECHO_C" >&6 26528else 26529 ac_func_search_save_LIBS=$LIBS 26530cat >conftest.$ac_ext <<_ACEOF 26531/* confdefs.h. */ 26532_ACEOF 26533cat confdefs.h >>conftest.$ac_ext 26534cat >>conftest.$ac_ext <<_ACEOF 26535/* end confdefs.h. */ 26536 26537/* Override any GCC internal prototype to avoid an error. 26538 Use char because int might match the return type of a GCC 26539 builtin and then its argument prototype would still apply. */ 26540#ifdef __cplusplus 26541extern "C" 26542#endif 26543char sched_yield (); 26544int 26545main () 26546{ 26547return sched_yield (); 26548 ; 26549 return 0; 26550} 26551_ACEOF 26552for ac_lib in '' rt posix4; do 26553 if test -z "$ac_lib"; then 26554 ac_res="none required" 26555 else 26556 ac_res=-l$ac_lib 26557 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 26558 fi 26559 rm -f conftest.$ac_objext conftest$ac_exeext 26560if { (ac_try="$ac_link" 26561case "(($ac_try" in 26562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26563 *) ac_try_echo=$ac_try;; 26564esac 26565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26566 (eval "$ac_link") 2>conftest.er1 26567 ac_status=$? 26568 grep -v '^ *+' conftest.er1 >conftest.err 26569 rm -f conftest.er1 26570 cat conftest.err >&5 26571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26572 (exit $ac_status); } && 26573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 26574 { (case "(($ac_try" in 26575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26576 *) ac_try_echo=$ac_try;; 26577esac 26578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26579 (eval "$ac_try") 2>&5 26580 ac_status=$? 26581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26582 (exit $ac_status); }; } && 26583 { ac_try='test -s conftest$ac_exeext' 26584 { (case "(($ac_try" in 26585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26586 *) ac_try_echo=$ac_try;; 26587esac 26588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26589 (eval "$ac_try") 2>&5 26590 ac_status=$? 26591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26592 (exit $ac_status); }; }; then 26593 ac_cv_search_sched_yield=$ac_res 26594else 26595 echo "$as_me: failed program was:" >&5 26596sed 's/^/| /' conftest.$ac_ext >&5 26597 26598 26599fi 26600 26601rm -f core conftest.err conftest.$ac_objext \ 26602 conftest$ac_exeext 26603 if test "${ac_cv_search_sched_yield+set}" = set; then 26604 break 26605fi 26606done 26607if test "${ac_cv_search_sched_yield+set}" = set; then 26608 : 26609else 26610 ac_cv_search_sched_yield=no 26611fi 26612rm conftest.$ac_ext 26613LIBS=$ac_func_search_save_LIBS 26614fi 26615{ echo "$as_me:$LINENO: result: $ac_cv_search_sched_yield" >&5 26616echo "${ECHO_T}$ac_cv_search_sched_yield" >&6; } 26617ac_res=$ac_cv_search_sched_yield 26618if test "$ac_res" != no; then 26619 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 26620 26621fi 26622 26623 26624{ echo "$as_me:$LINENO: checking for event engine module type" >&5 26625echo $ECHO_N "checking for event engine module type... $ECHO_C" >&6; } 26626 26627# Check whether --with-engine was given. 26628if test "${with_engine+set}" = set; then 26629 withval=$with_engine; peak_engine=$with_engine 26630fi 26631 26632if test -z "$peak_engine" -o x"$peak_engine" = xno; then 26633 if test x"$ac_cv_header_sys_event_h" = xyes -a x"$ac_cv_func_kqueue" = xyes; then 26634 peak_engine=kqueue 26635 elif test x"$ac_cv_header_sys_epoll_h" = xyes; then 26636 peak_engine=epoll 26637 elif test x"$ac_cv_header_sys_devpoll_h" = xyes; then 26638 case "$host" in 26639 *-*-linux*) peak_engine=poll 26640 ;; 26641 *) 26642 peak_engine=devpoll 26643 ;; 26644 esac 26645 elif test x"$ac_cv_header_poll_h" = xyes; then 26646 peak_engine=poll 26647 else 26648 peak_engine=select 26649 fi 26650fi 26651case "$peak_engine" in 26652 devpoll) 26653 case " $LIBOBJS " in 26654 *" engine_mod_devpoll.$ac_objext "* ) ;; 26655 *) LIBOBJS="$LIBOBJS engine_mod_devpoll.$ac_objext" 26656 ;; 26657esac 26658 26659 26660cat >>confdefs.h <<_ACEOF 26661#define PEAK_ENGINE_DEVPOLL 1 26662_ACEOF 26663 26664 ;; 26665 epoll) 26666 case " $LIBOBJS " in 26667 *" engine_mod_epoll.$ac_objext "* ) ;; 26668 *) LIBOBJS="$LIBOBJS engine_mod_epoll.$ac_objext" 26669 ;; 26670esac 26671 26672 26673cat >>confdefs.h <<_ACEOF 26674#define PEAK_ENGINE_EPOLL 1 26675_ACEOF 26676 26677 ;; 26678 kqueue) 26679 case " $LIBOBJS " in 26680 *" engine_mod_kqueue.$ac_objext "* ) ;; 26681 *) LIBOBJS="$LIBOBJS engine_mod_kqueue.$ac_objext" 26682 ;; 26683esac 26684 26685 26686cat >>confdefs.h <<_ACEOF 26687#define PEAK_ENGINE_KQUEUE 1 26688_ACEOF 26689 26690 ;; 26691 poll) 26692 case " $LIBOBJS " in 26693 *" engine_mod_poll.$ac_objext "* ) ;; 26694 *) LIBOBJS="$LIBOBJS engine_mod_poll.$ac_objext" 26695 ;; 26696esac 26697 26698 26699cat >>confdefs.h <<_ACEOF 26700#define PEAK_ENGINE_POLL 1 26701_ACEOF 26702 26703 ;; 26704 select) 26705 26706cat >>confdefs.h <<_ACEOF 26707#define PEAK_ENGINE_SELECT 1 26708_ACEOF 26709 26710 case " $LIBOBJS " in 26711 *" engine_mod_select.$ac_objext "* ) ;; 26712 *) LIBOBJS="$LIBOBJS engine_mod_select.$ac_objext" 26713 ;; 26714esac 26715 26716 ;; 26717 *) 26718 { { echo "$as_me:$LINENO: error: Unable to find requested engine module type" >&5 26719echo "$as_me: error: Unable to find requested engine module type" >&2;} 26720 { (exit 1); exit 1; }; } 26721 ;; 26722esac 26723{ echo "$as_me:$LINENO: result: $peak_engine" >&5 26724echo "${ECHO_T}$peak_engine" >&6; } 26725 26726 26727{ echo "$as_me:$LINENO: checking whether to enable profiling support (gprof)" >&5 26728echo $ECHO_N "checking whether to enable profiling support (gprof)... $ECHO_C" >&6; } 26729# Check whether --enable-profile was given. 26730if test "${enable_profile+set}" = set; then 26731 enableval=$enable_profile; peak_cv_enable_profile=$enable_profile 26732else 26733 if test "${peak_cv_enable_profile+set}" = set; then 26734 echo $ECHO_N "(cached) $ECHO_C" >&6 26735else 26736 peak_cv_enable_profile=no 26737fi 26738 26739fi 26740 26741{ echo "$as_me:$LINENO: result: $peak_cv_enable_profile" >&5 26742echo "${ECHO_T}$peak_cv_enable_profile" >&6; } 26743 26744if test x"$peak_cv_enable_profile" = xyes; then 26745 CFLAGS="-pg $CFLAGS" 26746fi 26747 26748 26749{ echo "$as_me:$LINENO: checking whether to enable pedantic compiler warnings" >&5 26750echo $ECHO_N "checking whether to enable pedantic compiler warnings... $ECHO_C" >&6; } 26751# Check whether --enable-pedantic was given. 26752if test "${enable_pedantic+set}" = set; then 26753 enableval=$enable_pedantic; peak_cv_enable_pedantic=$enable_pedantic 26754else 26755 if test "${peak_cv_enable_pedantic+set}" = set; then 26756 echo $ECHO_N "(cached) $ECHO_C" >&6 26757else 26758 peak_cv_enable_pedantic=no 26759fi 26760 26761fi 26762 26763{ echo "$as_me:$LINENO: result: $peak_cv_enable_pedantic" >&5 26764echo "${ECHO_T}$peak_cv_enable_pedantic" >&6; } 26765 26766if test x"$peak_cv_enable_pedantic" = xyes; then 26767 CFLAGS="-pedantic $CFLAGS" 26768fi 26769 26770{ echo "$as_me:$LINENO: checking whether to enable uniprocessor-only code" >&5 26771echo $ECHO_N "checking whether to enable uniprocessor-only code... $ECHO_C" >&6; } 26772# Check whether --enable-uniprocessor-only was given. 26773if test "${enable_uniprocessor_only+set}" = set; then 26774 enableval=$enable_uniprocessor_only; peak_cv_enable_uniprocessor_only=$enable_uniprocessor_only 26775else 26776 if test "${peak_cv_enable_uniprocessor_only+set}" = set; then 26777 echo $ECHO_N "(cached) $ECHO_C" >&6 26778else 26779 peak_cv_enable_uniprocessor_only=no 26780fi 26781 26782fi 26783 26784{ echo "$as_me:$LINENO: result: $peak_cv_enable_uniprocessor_only" >&5 26785echo "${ECHO_T}$peak_cv_enable_uniprocessor_only" >&6; } 26786 26787if test x"$peak_cv_enable_uniprocessor_only" = xyes; then 26788 26789cat >>confdefs.h <<_ACEOF 26790#define PEAK_CONFIG_UNIPROCESSOR 1 26791_ACEOF 26792 26793fi 26794 26795 26796peak_default_maxfds=256 26797{ echo "$as_me:$LINENO: checking for default maxfds flavor" >&5 26798echo $ECHO_N "checking for default maxfds flavor... $ECHO_C" >&6; } 26799 26800# Check whether --with-default-maxfds was given. 26801if test "${with_default_maxfds+set}" = set; then 26802 withval=$with_default_maxfds; peak_cv_with_default_maxfds=$with_default_maxfds 26803else 26804 if test "${peak_cv_with_default_maxfds+set}" = set; then 26805 echo $ECHO_N "(cached) $ECHO_C" >&6 26806else 26807 peak_cv_with_default_maxfds=$peak_default_maxfds 26808fi 26809 26810fi 26811 26812 26813if test x"$peak_cv_with_default_maxfds" = xyes -o x"$peak_cv_with_default_maxfds" = xno; then 26814 peak_cv_with_default_maxfds=$peak_default_maxfds 26815fi 26816{ echo "$as_me:$LINENO: result: $peak_cv_with_default_maxfds" >&5 26817echo "${ECHO_T}$peak_cv_with_default_maxfds" >&6; } 26818 26819cat >>confdefs.h <<_ACEOF 26820#define PEAK_DEFAULT_FLAVOR_MAXFDS $peak_cv_with_default_maxfds 26821_ACEOF 26822 26823 26824 26825if test $peak_engine = "select"; then 26826 26827{ echo "$as_me:$LINENO: checking for max fds for select" >&5 26828echo $ECHO_N "checking for max fds for select... $ECHO_C" >&6; } 26829 26830# Check whether --with-select-maxfds was given. 26831if test "${with_select_maxfds+set}" = set; then 26832 withval=$with_select_maxfds; select_maxfds=$with_select_maxfds 26833fi 26834 26835 26836if test -n "$select_maxfds"; then 26837 { echo "$as_me:$LINENO: result: $select_maxfds" >&5 26838echo "${ECHO_T}$select_maxfds" >&6; } 26839 26840cat >>confdefs.h <<_ACEOF 26841#define PEAK_FD_SETSIZE $peak_cv_with_select_maxfds 26842_ACEOF 26843 26844else 26845 { echo "$as_me:$LINENO: result: n/a" >&5 26846echo "${ECHO_T}n/a" >&6; } 26847fi 26848 26849fi 26850 26851 26852ATOMIC_HEADERS= 26853case "$host" in 26854 *-*-aix*) 26855 if test x"$ac_cv_header_atomic_op_h" = xyes; then 26856 ATOMIC_HEADERS=#include <sys/atomic_op.h> /* AIX */ 26857 fi 26858 ;; 26859 i*86-* | x86-*) 26860 if test x"$peak_cv_enable_uniprocessor_only" = xyes; then 26861 ATOMIC_HEADERS=#define PEAK_CONFIG_UNIPROCESSOR 26862 fi 26863 ;; 26864 *) 26865 ;; 26866esac 26867 26868 26869 26870PEAK_CFLAGS= 26871PEAK_LIBS=-lpeak 26872PEAK_LIBDEPS=$LIBS 26873PEAK_VERSION=$PACKAGE_VERSION 26874 26875# create a custom library-config file (peak-config) 26876 26877 26878LIBCONFIG_FILE="peak-config.in" 26879 26880{ echo "$as_me:$LINENO: creating $LIBCONFIG_FILE" >&5 26881echo "$as_me: creating $LIBCONFIG_FILE" >&6;} 26882echo '#! /bin/sh' >$LIBCONFIG_FILE 26883echo "# peak-config library configuration script" >>$LIBCONFIG_FILE 26884echo '# generated by ac_config_libconfig_in.m4' >>$LIBCONFIG_FILE 26885echo ' ' >>$LIBCONFIG_FILE 26886echo 'template_version="1.0.0"' >>$LIBCONFIG_FILE 26887echo ' ' >>$LIBCONFIG_FILE 26888echo 'package="@PACKAGE@"' >>$LIBCONFIG_FILE 26889echo ' ' >>$LIBCONFIG_FILE 26890echo '# usage instructions if no options given' >>$LIBCONFIG_FILE 26891echo 'if test "'"\$""#"'" -eq 0; then' >>$LIBCONFIG_FILE 26892echo ' cat <<EOF' >>$LIBCONFIG_FILE 26893echo 'Usage: peak-config [OPTIONS]' >>$LIBCONFIG_FILE 26894echo 'Options:' >>$LIBCONFIG_FILE 26895echo ' [--prefix[=DIR]]' >>$LIBCONFIG_FILE 26896echo ' [--exec-prefix[=DIR]]' >>$LIBCONFIG_FILE 26897echo ' [--package]' >>$LIBCONFIG_FILE 26898echo ' [--version]' >>$LIBCONFIG_FILE 26899echo ' [--cflags]' >>$LIBCONFIG_FILE 26900echo ' [--libs]' >>$LIBCONFIG_FILE 26901echo ' [--help]' >>$LIBCONFIG_FILE 26902 26903echo 'EOF' >>$LIBCONFIG_FILE 26904echo 'fi' >>$LIBCONFIG_FILE 26905echo ' ' >>$LIBCONFIG_FILE 26906echo '# parse options' >>$LIBCONFIG_FILE 26907echo 'o=""' >>$LIBCONFIG_FILE 26908echo 'h=""' >>$LIBCONFIG_FILE 26909echo 'for i in $''*; do' >>$LIBCONFIG_FILE 26910echo ' case $i in' >>$LIBCONFIG_FILE 26911options="prefix exec-prefix eprefix package version cflags libs bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir infodir mandir target host build pkgdatadir pkglibdir pkgincludedir template-version help" 26912echo ' --prefix=*) prefix=`echo $i | sed -e "s/--prefix=//"` ;;' >>$LIBCONFIG_FILE 26913echo ' --exec-prefix=*) exec_prefix=`echo $i | sed -e "s/--exec-prefix=//"` ;;' >>$LIBCONFIG_FILE 26914echo ' --eprefix=*) exec_prefix=`echo $i | sed -e "s/--eprefix=//"` ;;' >>$LIBCONFIG_FILE 26915for option in $options ; do 26916 case $option in 26917 exec-prefix) echo " --$option) echo_exec_prefix=\"yes\" ;;" >>$LIBCONFIG_FILE ;; 26918 template-version) echo " --$option) echo_template_version=\"yes\" ;;" >>$LIBCONFIG_FILE ;; 26919 *) echo " --$option) echo_$option=\"yes\" ;;" >>$LIBCONFIG_FILE ;; 26920 esac 26921done 26922 26923echo ' //*|/*//*|./*//*) echo_extra="yes" ;;' >>$LIBCONFIG_FILE 26924echo ' *) eval "echo Unknown option: $i" ; exit 1 ;;' >>$LIBCONFIG_FILE 26925echo ' esac' >>$LIBCONFIG_FILE 26926echo 'done' >>$LIBCONFIG_FILE 26927echo ' ' >>$LIBCONFIG_FILE 26928# in the order of occurence a standard automake Makefile 26929echo '# defaults from configure; set only if not set previously' >>$LIBCONFIG_FILE 26930vars="prefix exec_prefix bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir infodir mandir includedir target host build" 26931for var in $vars ; do 26932 echo "if test -z \"\$$var\" ; then" >>$LIBCONFIG_FILE 26933 echo " $var=\"@$var@\"" >>$LIBCONFIG_FILE 26934 echo 'fi' >>$LIBCONFIG_FILE 26935done 26936echo ' ' >>$LIBCONFIG_FILE 26937echo '# generate output' >>$LIBCONFIG_FILE 26938echo 'if test x$echo_module != xyes ; then' >>$LIBCONFIG_FILE 26939echo ' echo_module_peak="yes"' >>$LIBCONFIG_FILE 26940echo 'fi' >>$LIBCONFIG_FILE 26941# create module definition for peak 26942if test -z "$peak_cflags" ; then 26943 if test -n "$PEAK_CFLAGS" ; then 26944 peak_cflags="$PEAK_CFLAGS" 26945 else 26946 peak_cflags='' 26947 fi 26948fi 26949if test -z "$peak_libs" ; then 26950 if test -n "$PEAK_LIBS" ; then 26951 peak_libs="$PEAK_LIBS" 26952 else 26953 { echo "$as_me:$LINENO: WARNING: variable \`peak_libs' and \`PEAK_LIBS' undefined" >&5 26954echo "$as_me: WARNING: variable \`peak_libs' and \`PEAK_LIBS' undefined" >&2;} 26955 peak_libs='-lpeak' 26956 fi 26957 if test -n "$PEAK_LIBDEPS" ; then 26958 peak_libs="$peak_libs $PEAK_LIBDEPS" 26959 fi 26960fi 26961if test -z "$PEAK_VERSION" ; then 26962 { echo "$as_me:$LINENO: WARNING: variable \`PEAK_VERSION' undefined" >&5 26963echo "$as_me: WARNING: variable \`PEAK_VERSION' undefined" >&2;} 26964 PEAK_VERSION="$VERSION" 26965fi 26966echo 'if test x$echo_module_peak = xyes ; then' >>$LIBCONFIG_FILE 26967echo ' cflags="$cflags @peak_cflags@"' >>$LIBCONFIG_FILE 26968 26969echo ' libs="$libs @peak_libs@"' >>$LIBCONFIG_FILE 26970 26971echo ' version="$version @PEAK_VERSION@"' >>$LIBCONFIG_FILE 26972 26973echo 'fi' >>$LIBCONFIG_FILE 26974for option in $options extra; do 26975 case $option in 26976 exec-prefix) echo "if test x\$echo_exec_prefix = xyes ; then" >>$LIBCONFIG_FILE ;; 26977 template-version) echo "if test x\$echo_template_version = xyes ; then" >>$LIBCONFIG_FILE ;; 26978 *) echo "if test x\$echo_$option = xyes ; then" >>$LIBCONFIG_FILE ;; 26979 esac 26980 case $option in 26981 exec-prefix | eprefix) echo ' o="$o $exec_prefix"' >>$LIBCONFIG_FILE ;; 26982 template-version) echo ' o="$o $template_version"' >>$LIBCONFIG_FILE ;; 26983 cflags) 26984 echo ' i=`eval echo "$includedir"`' >>$LIBCONFIG_FILE ; 26985 echo ' i=`eval echo "$i"`' >>$LIBCONFIG_FILE ; 26986 echo ' if test "_$i" != "_/usr/include" ; then' >>$LIBCONFIG_FILE ; 26987 echo ' o="$o -I$includedir"' >>$LIBCONFIG_FILE ; 26988 echo ' fi' >>$LIBCONFIG_FILE ; 26989 echo ' o="$o $cflags"' >>$LIBCONFIG_FILE ;; 26990 libs) echo ' o="$o -L$libdir $libs"' >>$LIBCONFIG_FILE ;; 26991 help) echo ' h="1"' >>$LIBCONFIG_FILE ;; 26992 pkgdatadir) echo " o=\"$o \${datadir}/\${package}\"" >>$LIBCONFIG_FILE ;; 26993 pkglibdir) echo " o=\"$o \${libdir}/\${package}\"" >>$LIBCONFIG_FILE ;; 26994 pkgincludedir) echo " o=\"$o \${includedir}/\${package}\"" >>$LIBCONFIG_FILE ;; 26995 extra) 26996 echo ' v=`echo $i | sed -e s://:\$:g`' >>$LIBCONFIG_FILE ; 26997 echo ' v=`eval "echo $v"`' >>$LIBCONFIG_FILE ; 26998 echo ' o="$o $v"' >>$LIBCONFIG_FILE ;; 26999 *) echo " o=\"$o \$$option\"" >>$LIBCONFIG_FILE 27000 esac 27001 echo 'fi' >>$LIBCONFIG_FILE 27002done 27003echo ' ' >>$LIBCONFIG_FILE 27004echo '# output data' >>$LIBCONFIG_FILE 27005echo 'o=`eval "echo $o"`' >>$LIBCONFIG_FILE 27006echo 'o=`eval "echo $o"`' >>$LIBCONFIG_FILE 27007echo 'if test -n "$o" ; then ' >>$LIBCONFIG_FILE 27008echo ' eval "echo $o"' >>$LIBCONFIG_FILE 27009echo 'fi' >>$LIBCONFIG_FILE 27010echo ' ' >>$LIBCONFIG_FILE 27011echo '# help text' >>$LIBCONFIG_FILE 27012echo 'if test ! -z "$h" ; then ' >>$LIBCONFIG_FILE 27013echo ' cat <<EOF' >>$LIBCONFIG_FILE 27014echo 'All available options:' >>$LIBCONFIG_FILE 27015echo ' --prefix=DIR and change \$prefix and \$exec-prefix' >>$LIBCONFIG_FILE 27016echo ' --exec-prefix=DIR (affects all other options)' >>$LIBCONFIG_FILE 27017echo ' --prefix \$prefix $prefix' >>$LIBCONFIG_FILE 27018echo ' --exec_prefix or... ' >>$LIBCONFIG_FILE 27019echo ' --eprefix \$exec_prefix $exec_prefix' >>$LIBCONFIG_FILE 27020echo ' --version \$version $version' >>$LIBCONFIG_FILE 27021echo ' --cflags -I\$includedir unless it is /usr/include' >>$LIBCONFIG_FILE 27022echo ' --libs -L\$libdir \$LIBS $libs' >>$LIBCONFIG_FILE 27023echo ' --package \$package $package' >>$LIBCONFIG_FILE 27024echo ' --bindir \$bindir $bindir' >>$LIBCONFIG_FILE 27025echo ' --sbindir \$sbindir $sbindir' >>$LIBCONFIG_FILE 27026echo ' --libexecdir \$libexecdir $libexecdir' >>$LIBCONFIG_FILE 27027echo ' --datadir \$datadir $datadir' >>$LIBCONFIG_FILE 27028echo ' --sysconfdir \$sysconfdir $sysconfdir' >>$LIBCONFIG_FILE 27029echo ' --sharedstatedir \$sharedstatedir$sharedstatedir' >>$LIBCONFIG_FILE 27030echo ' --localstatedir \$localstatedir $localstatedir' >>$LIBCONFIG_FILE 27031echo ' --libdir \$libdir $libdir' >>$LIBCONFIG_FILE 27032echo ' --infodir \$infodir $infodir' >>$LIBCONFIG_FILE 27033echo ' --mandir \$mandir $mandir' >>$LIBCONFIG_FILE 27034echo ' --target \$target $target' >>$LIBCONFIG_FILE 27035echo ' --host \$host $host' >>$LIBCONFIG_FILE 27036echo ' --build \$build $build' >>$LIBCONFIG_FILE 27037echo ' --pkgdatadir \$datadir/\$package ${datadir}/${package}' >>$LIBCONFIG_FILE 27038echo ' --pkglibdir \$libdir/\$package ${libdir}/${package}' >>$LIBCONFIG_FILE 27039echo ' --pkgincludedir \$includedir/\$package ${includedir}/${package}' >>$LIBCONFIG_FILE 27040echo ' --template-version \$template_version $template_version' >>$LIBCONFIG_FILE 27041echo ' --help' >>$LIBCONFIG_FILE 27042echo 'EOF' >>$LIBCONFIG_FILE 27043echo 'fi' >>$LIBCONFIG_FILE 27044PEAK_CONFIG="peak-config" 27045 27046 27047 27048 27049 27050ac_config_files="$ac_config_files Makefile peak-config peak/Makefile tests/Makefile peak/arch/ia64/atomic.h peak/arch/ia64/spinlock.h peak/arch/m68k/atomic.h peak/arch/m68k/spinlock.h peak/arch/powerpc/atomic.h peak/arch/powerpc/spinlock.h peak/arch/sparc/atomic.h peak/arch/sparc/spinlock.h peak/arch/x86/atomic.h peak/arch/x86/spinlock.h" 27051 27052 27053cat >confcache <<\_ACEOF 27054# This file is a shell script that caches the results of configure 27055# tests run on this system so they can be shared between configure 27056# scripts and configure runs, see configure's option --config-cache. 27057# It is not useful on other systems. If it contains results you don't 27058# want to keep, you may remove or edit it. 27059# 27060# config.status only pays attention to the cache file if you give it 27061# the --recheck option to rerun configure. 27062# 27063# `ac_cv_env_foo' variables (set or unset) will be overridden when 27064# loading this file, other *unset* `ac_cv_foo' will be assigned the 27065# following values. 27066 27067_ACEOF 27068 27069# The following way of writing the cache mishandles newlines in values, 27070# but we know of no workaround that is simple, portable, and efficient. 27071# So, we kill variables containing newlines. 27072# Ultrix sh set writes to stderr and can't be redirected directly, 27073# and sets the high bit in the cache file unless we assign to the vars. 27074( 27075 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 27076 eval ac_val=\$$ac_var 27077 case $ac_val in #( 27078 *${as_nl}*) 27079 case $ac_var in #( 27080 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 27081echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 27082 esac 27083 case $ac_var in #( 27084 _ | IFS | as_nl) ;; #( 27085 *) $as_unset $ac_var ;; 27086 esac ;; 27087 esac 27088 done 27089 27090 (set) 2>&1 | 27091 case $as_nl`(ac_space=' '; set) 2>&1` in #( 27092 *${as_nl}ac_space=\ *) 27093 # `set' does not quote correctly, so add quotes (double-quote 27094 # substitution turns \\\\ into \\, and sed turns \\ into \). 27095 sed -n \ 27096 "s/'/'\\\\''/g; 27097 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 27098 ;; #( 27099 *) 27100 # `set' quotes correctly as required by POSIX, so do not add quotes. 27101 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 27102 ;; 27103 esac | 27104 sort 27105) | 27106 sed ' 27107 /^ac_cv_env_/b end 27108 t clear 27109 :clear 27110 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 27111 t end 27112 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 27113 :end' >>confcache 27114if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 27115 if test -w "$cache_file"; then 27116 test "x$cache_file" != "x/dev/null" && 27117 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 27118echo "$as_me: updating cache $cache_file" >&6;} 27119 cat confcache >$cache_file 27120 else 27121 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 27122echo "$as_me: not updating unwritable cache $cache_file" >&6;} 27123 fi 27124fi 27125rm -f confcache 27126 27127test "x$prefix" = xNONE && prefix=$ac_default_prefix 27128# Let make expand exec_prefix. 27129test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 27130 27131DEFS=-DHAVE_CONFIG_H 27132 27133ac_libobjs= 27134ac_ltlibobjs= 27135for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 27136 # 1. Remove the extension, and $U if already installed. 27137 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 27138 ac_i=`echo "$ac_i" | sed "$ac_script"` 27139 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 27140 # will be set to the directory where LIBOBJS objects are built. 27141 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 27142 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 27143done 27144LIBOBJS=$ac_libobjs 27145 27146LTLIBOBJS=$ac_ltlibobjs 27147 27148 27149if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 27150 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 27151Usually this means the macro was only invoked conditionally." >&5 27152echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 27153Usually this means the macro was only invoked conditionally." >&2;} 27154 { (exit 1); exit 1; }; } 27155fi 27156if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 27157 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 27158Usually this means the macro was only invoked conditionally." >&5 27159echo "$as_me: error: conditional \"AMDEP\" was never defined. 27160Usually this means the macro was only invoked conditionally." >&2;} 27161 { (exit 1); exit 1; }; } 27162fi 27163if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 27164 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 27165Usually this means the macro was only invoked conditionally." >&5 27166echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 27167Usually this means the macro was only invoked conditionally." >&2;} 27168 { (exit 1); exit 1; }; } 27169fi 27170if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 27171 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 27172Usually this means the macro was only invoked conditionally." >&5 27173echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 27174Usually this means the macro was only invoked conditionally." >&2;} 27175 { (exit 1); exit 1; }; } 27176fi 27177if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 27178 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 27179Usually this means the macro was only invoked conditionally." >&5 27180echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 27181Usually this means the macro was only invoked conditionally." >&2;} 27182 { (exit 1); exit 1; }; } 27183fi 27184 27185: ${CONFIG_STATUS=./config.status} 27186ac_clean_files_save=$ac_clean_files 27187ac_clean_files="$ac_clean_files $CONFIG_STATUS" 27188{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 27189echo "$as_me: creating $CONFIG_STATUS" >&6;} 27190cat >$CONFIG_STATUS <<_ACEOF 27191#! $SHELL 27192# Generated by $as_me. 27193# Run this file to recreate the current configuration. 27194# Compiler output produced by configure, useful for debugging 27195# configure, is in config.log if it exists. 27196 27197debug=false 27198ac_cs_recheck=false 27199ac_cs_silent=false 27200SHELL=\${CONFIG_SHELL-$SHELL} 27201_ACEOF 27202 27203cat >>$CONFIG_STATUS <<\_ACEOF 27204## --------------------- ## 27205## M4sh Initialization. ## 27206## --------------------- ## 27207 27208# Be Bourne compatible 27209if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 27210 emulate sh 27211 NULLCMD=: 27212 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 27213 # is contrary to our usage. Disable this feature. 27214 alias -g '${1+"$@"}'='"$@"' 27215 setopt NO_GLOB_SUBST 27216else 27217 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 27218fi 27219BIN_SH=xpg4; export BIN_SH # for Tru64 27220DUALCASE=1; export DUALCASE # for MKS sh 27221 27222 27223# PATH needs CR 27224# Avoid depending upon Character Ranges. 27225as_cr_letters='abcdefghijklmnopqrstuvwxyz' 27226as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 27227as_cr_Letters=$as_cr_letters$as_cr_LETTERS 27228as_cr_digits='0123456789' 27229as_cr_alnum=$as_cr_Letters$as_cr_digits 27230 27231# The user is always right. 27232if test "${PATH_SEPARATOR+set}" != set; then 27233 echo "#! /bin/sh" >conf$$.sh 27234 echo "exit 0" >>conf$$.sh 27235 chmod +x conf$$.sh 27236 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 27237 PATH_SEPARATOR=';' 27238 else 27239 PATH_SEPARATOR=: 27240 fi 27241 rm -f conf$$.sh 27242fi 27243 27244# Support unset when possible. 27245if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 27246 as_unset=unset 27247else 27248 as_unset=false 27249fi 27250 27251 27252# IFS 27253# We need space, tab and new line, in precisely that order. Quoting is 27254# there to prevent editors from complaining about space-tab. 27255# (If _AS_PATH_WALK were called with IFS unset, it would disable word 27256# splitting by setting IFS to empty value.) 27257as_nl=' 27258' 27259IFS=" "" $as_nl" 27260 27261# Find who we are. Look in the path if we contain no directory separator. 27262case $0 in 27263 *[\\/]* ) as_myself=$0 ;; 27264 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27265for as_dir in $PATH 27266do 27267 IFS=$as_save_IFS 27268 test -z "$as_dir" && as_dir=. 27269 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 27270done 27271IFS=$as_save_IFS 27272 27273 ;; 27274esac 27275# We did not find ourselves, most probably we were run as `sh COMMAND' 27276# in which case we are not to be found in the path. 27277if test "x$as_myself" = x; then 27278 as_myself=$0 27279fi 27280if test ! -f "$as_myself"; then 27281 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 27282 { (exit 1); exit 1; } 27283fi 27284 27285# Work around bugs in pre-3.0 UWIN ksh. 27286for as_var in ENV MAIL MAILPATH 27287do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 27288done 27289PS1='$ ' 27290PS2='> ' 27291PS4='+ ' 27292 27293# NLS nuisances. 27294for as_var in \ 27295 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 27296 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 27297 LC_TELEPHONE LC_TIME 27298do 27299 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 27300 eval $as_var=C; export $as_var 27301 else 27302 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 27303 fi 27304done 27305 27306# Required to use basename. 27307if expr a : '\(a\)' >/dev/null 2>&1 && 27308 test "X`expr 00001 : '.*\(...\)'`" = X001; then 27309 as_expr=expr 27310else 27311 as_expr=false 27312fi 27313 27314if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 27315 as_basename=basename 27316else 27317 as_basename=false 27318fi 27319 27320 27321# Name of the executable. 27322as_me=`$as_basename -- "$0" || 27323$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 27324 X"$0" : 'X\(//\)$' \| \ 27325 X"$0" : 'X\(/\)' \| . 2>/dev/null || 27326echo X/"$0" | 27327 sed '/^.*\/\([^/][^/]*\)\/*$/{ 27328 s//\1/ 27329 q 27330 } 27331 /^X\/\(\/\/\)$/{ 27332 s//\1/ 27333 q 27334 } 27335 /^X\/\(\/\).*/{ 27336 s//\1/ 27337 q 27338 } 27339 s/.*/./; q'` 27340 27341# CDPATH. 27342$as_unset CDPATH 27343 27344 27345 27346 as_lineno_1=$LINENO 27347 as_lineno_2=$LINENO 27348 test "x$as_lineno_1" != "x$as_lineno_2" && 27349 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 27350 27351 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 27352 # uniformly replaced by the line number. The first 'sed' inserts a 27353 # line-number line after each line using $LINENO; the second 'sed' 27354 # does the real work. The second script uses 'N' to pair each 27355 # line-number line with the line containing $LINENO, and appends 27356 # trailing '-' during substitution so that $LINENO is not a special 27357 # case at line end. 27358 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 27359 # scripts with optimization help from Paolo Bonzini. Blame Lee 27360 # E. McMahon (1931-1989) for sed's syntax. :-) 27361 sed -n ' 27362 p 27363 /[$]LINENO/= 27364 ' <$as_myself | 27365 sed ' 27366 s/[$]LINENO.*/&-/ 27367 t lineno 27368 b 27369 :lineno 27370 N 27371 :loop 27372 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 27373 t loop 27374 s/-\n.*// 27375 ' >$as_me.lineno && 27376 chmod +x "$as_me.lineno" || 27377 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 27378 { (exit 1); exit 1; }; } 27379 27380 # Don't try to exec as it changes $[0], causing all sort of problems 27381 # (the dirname of $[0] is not the place where we might find the 27382 # original and so on. Autoconf is especially sensitive to this). 27383 . "./$as_me.lineno" 27384 # Exit status is that of the last command. 27385 exit 27386} 27387 27388 27389if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 27390 as_dirname=dirname 27391else 27392 as_dirname=false 27393fi 27394 27395ECHO_C= ECHO_N= ECHO_T= 27396case `echo -n x` in 27397-n*) 27398 case `echo 'x\c'` in 27399 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 27400 *) ECHO_C='\c';; 27401 esac;; 27402*) 27403 ECHO_N='-n';; 27404esac 27405 27406if expr a : '\(a\)' >/dev/null 2>&1 && 27407 test "X`expr 00001 : '.*\(...\)'`" = X001; then 27408 as_expr=expr 27409else 27410 as_expr=false 27411fi 27412 27413rm -f conf$$ conf$$.exe conf$$.file 27414if test -d conf$$.dir; then 27415 rm -f conf$$.dir/conf$$.file 27416else 27417 rm -f conf$$.dir 27418 mkdir conf$$.dir 27419fi 27420echo >conf$$.file 27421if ln -s conf$$.file conf$$ 2>/dev/null; then 27422 as_ln_s='ln -s' 27423 # ... but there are two gotchas: 27424 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 27425 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 27426 # In both cases, we have to default to `cp -p'. 27427 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 27428 as_ln_s='cp -p' 27429elif ln conf$$.file conf$$ 2>/dev/null; then 27430 as_ln_s=ln 27431else 27432 as_ln_s='cp -p' 27433fi 27434rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 27435rmdir conf$$.dir 2>/dev/null 27436 27437if mkdir -p . 2>/dev/null; then 27438 as_mkdir_p=: 27439else 27440 test -d ./-p && rmdir ./-p 27441 as_mkdir_p=false 27442fi 27443 27444# Find out whether ``test -x'' works. Don't use a zero-byte file, as 27445# systems may use methods other than mode bits to determine executability. 27446cat >conf$$.file <<_ASEOF 27447#! /bin/sh 27448exit 0 27449_ASEOF 27450chmod +x conf$$.file 27451if test -x conf$$.file >/dev/null 2>&1; then 27452 as_executable_p="test -x" 27453else 27454 as_executable_p=: 27455fi 27456rm -f conf$$.file 27457 27458# Sed expression to map a string onto a valid CPP name. 27459as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 27460 27461# Sed expression to map a string onto a valid variable name. 27462as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 27463 27464 27465exec 6>&1 27466 27467# Save the log message, to keep $[0] and so on meaningful, and to 27468# report actual input values of CONFIG_FILES etc. instead of their 27469# values after options handling. 27470ac_log=" 27471This file was extended by PEAK Library $as_me 0.1.2, which was 27472generated by GNU Autoconf 2.60. Invocation command line was 27473 27474 CONFIG_FILES = $CONFIG_FILES 27475 CONFIG_HEADERS = $CONFIG_HEADERS 27476 CONFIG_LINKS = $CONFIG_LINKS 27477 CONFIG_COMMANDS = $CONFIG_COMMANDS 27478 $ $0 $@ 27479 27480on `(hostname || uname -n) 2>/dev/null | sed 1q` 27481" 27482 27483_ACEOF 27484 27485cat >>$CONFIG_STATUS <<_ACEOF 27486# Files that config.status was made for. 27487config_files="$ac_config_files" 27488config_headers="$ac_config_headers" 27489config_links="$ac_config_links" 27490config_commands="$ac_config_commands" 27491 27492_ACEOF 27493 27494cat >>$CONFIG_STATUS <<\_ACEOF 27495ac_cs_usage="\ 27496\`$as_me' instantiates files from templates according to the 27497current configuration. 27498 27499Usage: $0 [OPTIONS] [FILE]... 27500 27501 -h, --help print this help, then exit 27502 -V, --version print version number, then exit 27503 -q, --quiet do not print progress messages 27504 -d, --debug don't remove temporary files 27505 --recheck update $as_me by reconfiguring in the same conditions 27506 --file=FILE[:TEMPLATE] 27507 instantiate the configuration file FILE 27508 --header=FILE[:TEMPLATE] 27509 instantiate the configuration header FILE 27510 27511Configuration files: 27512$config_files 27513 27514Configuration headers: 27515$config_headers 27516 27517Configuration links: 27518$config_links 27519 27520Configuration commands: 27521$config_commands 27522 27523Report bugs to <bug-autoconf@gnu.org>." 27524 27525_ACEOF 27526cat >>$CONFIG_STATUS <<_ACEOF 27527ac_cs_version="\\ 27528PEAK Library config.status 0.1.2 27529configured by $0, generated by GNU Autoconf 2.60, 27530 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 27531 27532Copyright (C) 2006 Free Software Foundation, Inc. 27533This config.status script is free software; the Free Software Foundation 27534gives unlimited permission to copy, distribute and modify it." 27535 27536ac_pwd='$ac_pwd' 27537srcdir='$srcdir' 27538INSTALL='$INSTALL' 27539_ACEOF 27540 27541cat >>$CONFIG_STATUS <<\_ACEOF 27542# If no file are specified by the user, then we need to provide default 27543# value. By we need to know if files were specified by the user. 27544ac_need_defaults=: 27545while test $# != 0 27546do 27547 case $1 in 27548 --*=*) 27549 ac_option=`expr "X$1" : 'X\([^=]*\)='` 27550 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 27551 ac_shift=: 27552 ;; 27553 *) 27554 ac_option=$1 27555 ac_optarg=$2 27556 ac_shift=shift 27557 ;; 27558 esac 27559 27560 case $ac_option in 27561 # Handling of the options. 27562 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 27563 ac_cs_recheck=: ;; 27564 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 27565 echo "$ac_cs_version"; exit ;; 27566 --debug | --debu | --deb | --de | --d | -d ) 27567 debug=: ;; 27568 --file | --fil | --fi | --f ) 27569 $ac_shift 27570 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 27571 ac_need_defaults=false;; 27572 --header | --heade | --head | --hea ) 27573 $ac_shift 27574 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 27575 ac_need_defaults=false;; 27576 --he | --h) 27577 # Conflict between --help and --header 27578 { echo "$as_me: error: ambiguous option: $1 27579Try \`$0 --help' for more information." >&2 27580 { (exit 1); exit 1; }; };; 27581 --help | --hel | -h ) 27582 echo "$ac_cs_usage"; exit ;; 27583 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 27584 | -silent | --silent | --silen | --sile | --sil | --si | --s) 27585 ac_cs_silent=: ;; 27586 27587 # This is an error. 27588 -*) { echo "$as_me: error: unrecognized option: $1 27589Try \`$0 --help' for more information." >&2 27590 { (exit 1); exit 1; }; } ;; 27591 27592 *) ac_config_targets="$ac_config_targets $1" 27593 ac_need_defaults=false ;; 27594 27595 esac 27596 shift 27597done 27598 27599ac_configure_extra_args= 27600 27601if $ac_cs_silent; then 27602 exec 6>/dev/null 27603 ac_configure_extra_args="$ac_configure_extra_args --silent" 27604fi 27605 27606_ACEOF 27607cat >>$CONFIG_STATUS <<_ACEOF 27608if \$ac_cs_recheck; then 27609 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 27610 CONFIG_SHELL=$SHELL 27611 export CONFIG_SHELL 27612 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 27613fi 27614 27615_ACEOF 27616cat >>$CONFIG_STATUS <<\_ACEOF 27617exec 5>>config.log 27618{ 27619 echo 27620 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 27621## Running $as_me. ## 27622_ASBOX 27623 echo "$ac_log" 27624} >&5 27625 27626_ACEOF 27627cat >>$CONFIG_STATUS <<_ACEOF 27628# 27629# INIT-COMMANDS 27630# 27631AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 27632 27633_ACEOF 27634 27635cat >>$CONFIG_STATUS <<\_ACEOF 27636 27637# Handling of arguments. 27638for ac_config_target in $ac_config_targets 27639do 27640 case $ac_config_target in 27641 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 27642 "peak/atomic.h") CONFIG_LINKS="$CONFIG_LINKS peak/atomic.h:peak/arch/${arch}/atomic.h" ;; 27643 "peak/spinlock.h") CONFIG_LINKS="$CONFIG_LINKS peak/spinlock.h:peak/arch/${arch}/spinlock.h" ;; 27644 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 27645 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 27646 "peak-config") CONFIG_FILES="$CONFIG_FILES peak-config" ;; 27647 "peak/Makefile") CONFIG_FILES="$CONFIG_FILES peak/Makefile" ;; 27648 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 27649 "peak/arch/ia64/atomic.h") CONFIG_FILES="$CONFIG_FILES peak/arch/ia64/atomic.h" ;; 27650 "peak/arch/ia64/spinlock.h") CONFIG_FILES="$CONFIG_FILES peak/arch/ia64/spinlock.h" ;; 27651 "peak/arch/m68k/atomic.h") CONFIG_FILES="$CONFIG_FILES peak/arch/m68k/atomic.h" ;; 27652 "peak/arch/m68k/spinlock.h") CONFIG_FILES="$CONFIG_FILES peak/arch/m68k/spinlock.h" ;; 27653 "peak/arch/powerpc/atomic.h") CONFIG_FILES="$CONFIG_FILES peak/arch/powerpc/atomic.h" ;; 27654 "peak/arch/powerpc/spinlock.h") CONFIG_FILES="$CONFIG_FILES peak/arch/powerpc/spinlock.h" ;; 27655 "peak/arch/sparc/atomic.h") CONFIG_FILES="$CONFIG_FILES peak/arch/sparc/atomic.h" ;; 27656 "peak/arch/sparc/spinlock.h") CONFIG_FILES="$CONFIG_FILES peak/arch/sparc/spinlock.h" ;; 27657 "peak/arch/x86/atomic.h") CONFIG_FILES="$CONFIG_FILES peak/arch/x86/atomic.h" ;; 27658 "peak/arch/x86/spinlock.h") CONFIG_FILES="$CONFIG_FILES peak/arch/x86/spinlock.h" ;; 27659 27660 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 27661echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 27662 { (exit 1); exit 1; }; };; 27663 esac 27664done 27665 27666 27667# If the user did not use the arguments to specify the items to instantiate, 27668# then the envvar interface is used. Set only those that are not. 27669# We use the long form for the default assignment because of an extremely 27670# bizarre bug on SunOS 4.1.3. 27671if $ac_need_defaults; then 27672 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 27673 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 27674 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links 27675 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 27676fi 27677 27678# Have a temporary directory for convenience. Make it in the build tree 27679# simply because there is no reason against having it here, and in addition, 27680# creating and moving files from /tmp can sometimes cause problems. 27681# Hook for its removal unless debugging. 27682# Note that there is a small window in which the directory will not be cleaned: 27683# after its creation but before its name has been assigned to `$tmp'. 27684$debug || 27685{ 27686 tmp= 27687 trap 'exit_status=$? 27688 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 27689' 0 27690 trap '{ (exit 1); exit 1; }' 1 2 13 15 27691} 27692# Create a (secure) tmp directory for tmp files. 27693 27694{ 27695 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 27696 test -n "$tmp" && test -d "$tmp" 27697} || 27698{ 27699 tmp=./conf$$-$RANDOM 27700 (umask 077 && mkdir "$tmp") 27701} || 27702{ 27703 echo "$me: cannot create a temporary directory in ." >&2 27704 { (exit 1); exit 1; } 27705} 27706 27707# 27708# Set up the sed scripts for CONFIG_FILES section. 27709# 27710 27711# No need to generate the scripts if there are no CONFIG_FILES. 27712# This happens for instance when ./config.status config.h 27713if test -n "$CONFIG_FILES"; then 27714 27715_ACEOF 27716 27717# Create sed commands to just substitute file output variables. 27718 27719# Remaining file output variables are in a fragment that also has non-file 27720# output varibles. 27721 27722 27723 27724ac_delim='%!_!# ' 27725for ac_last_try in false false false false false :; do 27726 cat >conf$$subs.sed <<_ACEOF 27727SHELL!$SHELL$ac_delim 27728PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 27729PACKAGE_NAME!$PACKAGE_NAME$ac_delim 27730PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 27731PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 27732PACKAGE_STRING!$PACKAGE_STRING$ac_delim 27733PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 27734exec_prefix!$exec_prefix$ac_delim 27735prefix!$prefix$ac_delim 27736program_transform_name!$program_transform_name$ac_delim 27737bindir!$bindir$ac_delim 27738sbindir!$sbindir$ac_delim 27739libexecdir!$libexecdir$ac_delim 27740datarootdir!$datarootdir$ac_delim 27741datadir!$datadir$ac_delim 27742sysconfdir!$sysconfdir$ac_delim 27743sharedstatedir!$sharedstatedir$ac_delim 27744localstatedir!$localstatedir$ac_delim 27745includedir!$includedir$ac_delim 27746oldincludedir!$oldincludedir$ac_delim 27747docdir!$docdir$ac_delim 27748infodir!$infodir$ac_delim 27749htmldir!$htmldir$ac_delim 27750dvidir!$dvidir$ac_delim 27751pdfdir!$pdfdir$ac_delim 27752psdir!$psdir$ac_delim 27753libdir!$libdir$ac_delim 27754localedir!$localedir$ac_delim 27755mandir!$mandir$ac_delim 27756DEFS!$DEFS$ac_delim 27757ECHO_C!$ECHO_C$ac_delim 27758ECHO_N!$ECHO_N$ac_delim 27759ECHO_T!$ECHO_T$ac_delim 27760LIBS!$LIBS$ac_delim 27761build_alias!$build_alias$ac_delim 27762host_alias!$host_alias$ac_delim 27763target_alias!$target_alias$ac_delim 27764build!$build$ac_delim 27765build_cpu!$build_cpu$ac_delim 27766build_vendor!$build_vendor$ac_delim 27767build_os!$build_os$ac_delim 27768host!$host$ac_delim 27769host_cpu!$host_cpu$ac_delim 27770host_vendor!$host_vendor$ac_delim 27771host_os!$host_os$ac_delim 27772INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 27773INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 27774INSTALL_DATA!$INSTALL_DATA$ac_delim 27775CYGPATH_W!$CYGPATH_W$ac_delim 27776PACKAGE!$PACKAGE$ac_delim 27777VERSION!$VERSION$ac_delim 27778ACLOCAL!$ACLOCAL$ac_delim 27779AUTOCONF!$AUTOCONF$ac_delim 27780AUTOMAKE!$AUTOMAKE$ac_delim 27781AUTOHEADER!$AUTOHEADER$ac_delim 27782MAKEINFO!$MAKEINFO$ac_delim 27783install_sh!$install_sh$ac_delim 27784STRIP!$STRIP$ac_delim 27785INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 27786mkdir_p!$mkdir_p$ac_delim 27787AWK!$AWK$ac_delim 27788SET_MAKE!$SET_MAKE$ac_delim 27789am__leading_dot!$am__leading_dot$ac_delim 27790AMTAR!$AMTAR$ac_delim 27791am__tar!$am__tar$ac_delim 27792am__untar!$am__untar$ac_delim 27793MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim 27794MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim 27795MAINT!$MAINT$ac_delim 27796CC!$CC$ac_delim 27797default_includes!$default_includes$ac_delim 27798includes!$includes$ac_delim 27799LN_S!$LN_S$ac_delim 27800CFLAGS!$CFLAGS$ac_delim 27801LDFLAGS!$LDFLAGS$ac_delim 27802CPPFLAGS!$CPPFLAGS$ac_delim 27803ac_ct_CC!$ac_ct_CC$ac_delim 27804EXEEXT!$EXEEXT$ac_delim 27805OBJEXT!$OBJEXT$ac_delim 27806DEPDIR!$DEPDIR$ac_delim 27807am__include!$am__include$ac_delim 27808am__quote!$am__quote$ac_delim 27809AMDEP_TRUE!$AMDEP_TRUE$ac_delim 27810AMDEP_FALSE!$AMDEP_FALSE$ac_delim 27811AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 27812CCDEPMODE!$CCDEPMODE$ac_delim 27813am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 27814am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 27815GREP!$GREP$ac_delim 27816EGREP!$EGREP$ac_delim 27817ECHO!$ECHO$ac_delim 27818AR!$AR$ac_delim 27819RANLIB!$RANLIB$ac_delim 27820CPP!$CPP$ac_delim 27821_ACEOF 27822 27823 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then 27824 break 27825 elif $ac_last_try; then 27826 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 27827echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 27828 { (exit 1); exit 1; }; } 27829 else 27830 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 27831 fi 27832done 27833 27834ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 27835if test -n "$ac_eof"; then 27836 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 27837 ac_eof=`expr $ac_eof + 1` 27838fi 27839 27840cat >>$CONFIG_STATUS <<_ACEOF 27841cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 27842/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 27843/^[ ]*@atomic_header@[ ]*$/{ 27844r $atomic_header 27845d 27846} 27847_ACEOF 27848sed ' 27849s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 27850s/^/s,@/; s/!/@,|#_!!_#|/ 27851:n 27852t n 27853s/'"$ac_delim"'$/,g/; t 27854s/$/\\/; p 27855N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 27856' >>$CONFIG_STATUS <conf$$subs.sed 27857rm -f conf$$subs.sed 27858cat >>$CONFIG_STATUS <<_ACEOF 27859CEOF$ac_eof 27860_ACEOF 27861 27862 27863ac_delim='%!_!# ' 27864for ac_last_try in false false false false false :; do 27865 cat >conf$$subs.sed <<_ACEOF 27866CXX!$CXX$ac_delim 27867CXXFLAGS!$CXXFLAGS$ac_delim 27868ac_ct_CXX!$ac_ct_CXX$ac_delim 27869CXXDEPMODE!$CXXDEPMODE$ac_delim 27870am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 27871am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 27872CXXCPP!$CXXCPP$ac_delim 27873F77!$F77$ac_delim 27874FFLAGS!$FFLAGS$ac_delim 27875ac_ct_F77!$ac_ct_F77$ac_delim 27876LIBTOOL!$LIBTOOL$ac_delim 27877PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim 27878PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim 27879PTHREAD_CC!$PTHREAD_CC$ac_delim 27880ALLOCA!$ALLOCA$ac_delim 27881LIBOBJS!$LIBOBJS$ac_delim 27882ATOMIC_HEADERS!$ATOMIC_HEADERS$ac_delim 27883target!$target$ac_delim 27884peak_cflags!$peak_cflags$ac_delim 27885peak_libs!$peak_libs$ac_delim 27886PEAK_VERSION!$PEAK_VERSION$ac_delim 27887PEAK_CONFIG!$PEAK_CONFIG$ac_delim 27888LTLIBOBJS!$LTLIBOBJS$ac_delim 27889_ACEOF 27890 27891 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 23; then 27892 break 27893 elif $ac_last_try; then 27894 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 27895echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 27896 { (exit 1); exit 1; }; } 27897 else 27898 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 27899 fi 27900done 27901 27902ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 27903if test -n "$ac_eof"; then 27904 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 27905 ac_eof=`expr $ac_eof + 1` 27906fi 27907 27908cat >>$CONFIG_STATUS <<_ACEOF 27909cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 27910/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 27911_ACEOF 27912sed ' 27913s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 27914s/^/s,@/; s/!/@,|#_!!_#|/ 27915:n 27916t n 27917s/'"$ac_delim"'$/,g/; t 27918s/$/\\/; p 27919N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 27920' >>$CONFIG_STATUS <conf$$subs.sed 27921rm -f conf$$subs.sed 27922cat >>$CONFIG_STATUS <<_ACEOF 27923:end 27924s/|#_!!_#|//g 27925CEOF$ac_eof 27926_ACEOF 27927 27928 27929# VPATH may cause trouble with some makes, so we remove $(srcdir), 27930# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 27931# trailing colons and then remove the whole line if VPATH becomes empty 27932# (actually we leave an empty line to preserve line numbers). 27933if test "x$srcdir" = x.; then 27934 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 27935s/:*\$(srcdir):*/:/ 27936s/:*\${srcdir}:*/:/ 27937s/:*@srcdir@:*/:/ 27938s/^\([^=]*=[ ]*\):*/\1/ 27939s/:*$// 27940s/^[^=]*=[ ]*$// 27941}' 27942fi 27943 27944cat >>$CONFIG_STATUS <<\_ACEOF 27945fi # test -n "$CONFIG_FILES" 27946 27947 27948for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS 27949do 27950 case $ac_tag in 27951 :[FHLC]) ac_mode=$ac_tag; continue;; 27952 esac 27953 case $ac_mode$ac_tag in 27954 :[FHL]*:*);; 27955 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 27956echo "$as_me: error: Invalid tag $ac_tag." >&2;} 27957 { (exit 1); exit 1; }; };; 27958 :[FH]-) ac_tag=-:-;; 27959 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 27960 esac 27961 ac_save_IFS=$IFS 27962 IFS=: 27963 set x $ac_tag 27964 IFS=$ac_save_IFS 27965 shift 27966 ac_file=$1 27967 shift 27968 27969 case $ac_mode in 27970 :L) ac_source=$1;; 27971 :[FH]) 27972 ac_file_inputs= 27973 for ac_f 27974 do 27975 case $ac_f in 27976 -) ac_f="$tmp/stdin";; 27977 *) # Look for the file first in the build tree, then in the source tree 27978 # (if the path is not absolute). The absolute path cannot be DOS-style, 27979 # because $ac_f cannot contain `:'. 27980 test -f "$ac_f" || 27981 case $ac_f in 27982 [\\/$]*) false;; 27983 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 27984 esac || 27985 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 27986echo "$as_me: error: cannot find input file: $ac_f" >&2;} 27987 { (exit 1); exit 1; }; };; 27988 esac 27989 ac_file_inputs="$ac_file_inputs $ac_f" 27990 done 27991 27992 # Let's still pretend it is `configure' which instantiates (i.e., don't 27993 # use $as_me), people would be surprised to read: 27994 # /* config.h. Generated by config.status. */ 27995 configure_input="Generated from "`IFS=: 27996 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 27997 if test x"$ac_file" != x-; then 27998 configure_input="$ac_file. $configure_input" 27999 { echo "$as_me:$LINENO: creating $ac_file" >&5 28000echo "$as_me: creating $ac_file" >&6;} 28001 fi 28002 28003 case $ac_tag in 28004 *:-:* | *:-) cat >"$tmp/stdin";; 28005 esac 28006 ;; 28007 esac 28008 28009 ac_dir=`$as_dirname -- "$ac_file" || 28010$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28011 X"$ac_file" : 'X\(//\)[^/]' \| \ 28012 X"$ac_file" : 'X\(//\)$' \| \ 28013 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 28014echo X"$ac_file" | 28015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 28016 s//\1/ 28017 q 28018 } 28019 /^X\(\/\/\)[^/].*/{ 28020 s//\1/ 28021 q 28022 } 28023 /^X\(\/\/\)$/{ 28024 s//\1/ 28025 q 28026 } 28027 /^X\(\/\).*/{ 28028 s//\1/ 28029 q 28030 } 28031 s/.*/./; q'` 28032 { as_dir="$ac_dir" 28033 case $as_dir in #( 28034 -*) as_dir=./$as_dir;; 28035 esac 28036 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 28037 as_dirs= 28038 while :; do 28039 case $as_dir in #( 28040 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 28041 *) as_qdir=$as_dir;; 28042 esac 28043 as_dirs="'$as_qdir' $as_dirs" 28044 as_dir=`$as_dirname -- "$as_dir" || 28045$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28046 X"$as_dir" : 'X\(//\)[^/]' \| \ 28047 X"$as_dir" : 'X\(//\)$' \| \ 28048 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 28049echo X"$as_dir" | 28050 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 28051 s//\1/ 28052 q 28053 } 28054 /^X\(\/\/\)[^/].*/{ 28055 s//\1/ 28056 q 28057 } 28058 /^X\(\/\/\)$/{ 28059 s//\1/ 28060 q 28061 } 28062 /^X\(\/\).*/{ 28063 s//\1/ 28064 q 28065 } 28066 s/.*/./; q'` 28067 test -d "$as_dir" && break 28068 done 28069 test -z "$as_dirs" || eval "mkdir $as_dirs" 28070 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 28071echo "$as_me: error: cannot create directory $as_dir" >&2;} 28072 { (exit 1); exit 1; }; }; } 28073 ac_builddir=. 28074 28075case "$ac_dir" in 28076.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 28077*) 28078 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 28079 # A ".." for each directory in $ac_dir_suffix. 28080 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 28081 case $ac_top_builddir_sub in 28082 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 28083 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 28084 esac ;; 28085esac 28086ac_abs_top_builddir=$ac_pwd 28087ac_abs_builddir=$ac_pwd$ac_dir_suffix 28088# for backward compatibility: 28089ac_top_builddir=$ac_top_build_prefix 28090 28091case $srcdir in 28092 .) # We are building in place. 28093 ac_srcdir=. 28094 ac_top_srcdir=$ac_top_builddir_sub 28095 ac_abs_top_srcdir=$ac_pwd ;; 28096 [\\/]* | ?:[\\/]* ) # Absolute name. 28097 ac_srcdir=$srcdir$ac_dir_suffix; 28098 ac_top_srcdir=$srcdir 28099 ac_abs_top_srcdir=$srcdir ;; 28100 *) # Relative name. 28101 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 28102 ac_top_srcdir=$ac_top_build_prefix$srcdir 28103 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 28104esac 28105ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 28106 28107 28108 case $ac_mode in 28109 :F) 28110 # 28111 # CONFIG_FILE 28112 # 28113 28114 case $INSTALL in 28115 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 28116 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 28117 esac 28118_ACEOF 28119 28120cat >>$CONFIG_STATUS <<\_ACEOF 28121# If the template does not know about datarootdir, expand it. 28122# FIXME: This hack should be removed a few years after 2.60. 28123ac_datarootdir_hack=; ac_datarootdir_seen= 28124 28125case `sed -n '/datarootdir/ { 28126 p 28127 q 28128} 28129/@datadir@/p 28130/@docdir@/p 28131/@infodir@/p 28132/@localedir@/p 28133/@mandir@/p 28134' $ac_file_inputs` in 28135*datarootdir*) ac_datarootdir_seen=yes;; 28136*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 28137 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 28138echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 28139_ACEOF 28140cat >>$CONFIG_STATUS <<_ACEOF 28141 ac_datarootdir_hack=' 28142 s&@datadir@&$datadir&g 28143 s&@docdir@&$docdir&g 28144 s&@infodir@&$infodir&g 28145 s&@localedir@&$localedir&g 28146 s&@mandir@&$mandir&g 28147 s&\\\${datarootdir}&$datarootdir&g' ;; 28148esac 28149_ACEOF 28150 28151# Neutralize VPATH when `$srcdir' = `.'. 28152# Shell code in configure.ac might set extrasub. 28153# FIXME: do we really want to maintain this feature? 28154cat >>$CONFIG_STATUS <<_ACEOF 28155 sed "$ac_vpsub 28156$extrasub 28157_ACEOF 28158cat >>$CONFIG_STATUS <<\_ACEOF 28159:t 28160/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 28161s&@configure_input@&$configure_input&;t t 28162s&@top_builddir@&$ac_top_builddir_sub&;t t 28163s&@srcdir@&$ac_srcdir&;t t 28164s&@abs_srcdir@&$ac_abs_srcdir&;t t 28165s&@top_srcdir@&$ac_top_srcdir&;t t 28166s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 28167s&@builddir@&$ac_builddir&;t t 28168s&@abs_builddir@&$ac_abs_builddir&;t t 28169s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 28170s&@INSTALL@&$ac_INSTALL&;t t 28171$ac_datarootdir_hack 28172" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 28173 28174test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 28175 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 28176 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 28177 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 28178which seems to be undefined. Please make sure it is defined." >&5 28179echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 28180which seems to be undefined. Please make sure it is defined." >&2;} 28181 28182 rm -f "$tmp/stdin" 28183 case $ac_file in 28184 -) cat "$tmp/out"; rm -f "$tmp/out";; 28185 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 28186 esac 28187 ;; 28188 :H) 28189 # 28190 # CONFIG_HEADER 28191 # 28192_ACEOF 28193 28194# Transform confdefs.h into a sed script `conftest.defines', that 28195# substitutes the proper values into config.h.in to produce config.h. 28196rm -f conftest.defines conftest.tail 28197# First, append a space to every undef/define line, to ease matching. 28198echo 's/$/ /' >conftest.defines 28199# Then, protect against being on the right side of a sed subst, or in 28200# an unquoted here document, in config.status. If some macros were 28201# called several times there might be several #defines for the same 28202# symbol, which is useless. But do not sort them, since the last 28203# AC_DEFINE must be honored. 28204ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 28205# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 28206# NAME is the cpp macro being defined, VALUE is the value it is being given. 28207# PARAMS is the parameter list in the macro definition--in most cases, it's 28208# just an empty string. 28209ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 28210ac_dB='\\)[ (].*,\\1define\\2' 28211ac_dC=' ' 28212ac_dD=' ,' 28213 28214uniq confdefs.h | 28215 sed -n ' 28216 t rset 28217 :rset 28218 s/^[ ]*#[ ]*define[ ][ ]*// 28219 t ok 28220 d 28221 :ok 28222 s/[\\&,]/\\&/g 28223 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 28224 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 28225 ' >>conftest.defines 28226 28227# Remove the space that was appended to ease matching. 28228# Then replace #undef with comments. This is necessary, for 28229# example, in the case of _POSIX_SOURCE, which is predefined and required 28230# on some systems where configure will not decide to define it. 28231# (The regexp can be short, since the line contains either #define or #undef.) 28232echo 's/ $// 28233s,^[ #]*u.*,/* & */,' >>conftest.defines 28234 28235# Break up conftest.defines: 28236ac_max_sed_lines=50 28237 28238# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 28239# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 28240# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 28241# et cetera. 28242ac_in='$ac_file_inputs' 28243ac_out='"$tmp/out1"' 28244ac_nxt='"$tmp/out2"' 28245 28246while : 28247do 28248 # Write a here document: 28249 cat >>$CONFIG_STATUS <<_ACEOF 28250 # First, check the format of the line: 28251 cat >"\$tmp/defines.sed" <<\\CEOF 28252/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 28253/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 28254b 28255:def 28256_ACEOF 28257 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 28258 echo 'CEOF 28259 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 28260 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 28261 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 28262 grep . conftest.tail >/dev/null || break 28263 rm -f conftest.defines 28264 mv conftest.tail conftest.defines 28265done 28266rm -f conftest.defines conftest.tail 28267 28268echo "ac_result=$ac_in" >>$CONFIG_STATUS 28269cat >>$CONFIG_STATUS <<\_ACEOF 28270 if test x"$ac_file" != x-; then 28271 echo "/* $configure_input */" >"$tmp/config.h" 28272 cat "$ac_result" >>"$tmp/config.h" 28273 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 28274 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 28275echo "$as_me: $ac_file is unchanged" >&6;} 28276 else 28277 rm -f $ac_file 28278 mv "$tmp/config.h" $ac_file 28279 fi 28280 else 28281 echo "/* $configure_input */" 28282 cat "$ac_result" 28283 fi 28284 rm -f "$tmp/out12" 28285# Compute $ac_file's index in $config_headers. 28286_am_stamp_count=1 28287for _am_header in $config_headers :; do 28288 case $_am_header in 28289 $ac_file | $ac_file:* ) 28290 break ;; 28291 * ) 28292 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 28293 esac 28294done 28295echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || 28296$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28297 X$ac_file : 'X\(//\)[^/]' \| \ 28298 X$ac_file : 'X\(//\)$' \| \ 28299 X$ac_file : 'X\(/\)' \| . 2>/dev/null || 28300echo X$ac_file | 28301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 28302 s//\1/ 28303 q 28304 } 28305 /^X\(\/\/\)[^/].*/{ 28306 s//\1/ 28307 q 28308 } 28309 /^X\(\/\/\)$/{ 28310 s//\1/ 28311 q 28312 } 28313 /^X\(\/\).*/{ 28314 s//\1/ 28315 q 28316 } 28317 s/.*/./; q'`/stamp-h$_am_stamp_count 28318 ;; 28319 :L) 28320 # 28321 # CONFIG_LINK 28322 # 28323 28324 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5 28325echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;} 28326 28327 if test ! -r "$srcdir/$ac_source"; then 28328 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5 28329echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;} 28330 { (exit 1); exit 1; }; } 28331 fi 28332 rm -f "$ac_file" 28333 28334 # Try a relative symlink, then a hard link, then a copy. 28335 case $srcdir in 28336 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;; 28337 *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;; 28338 esac 28339 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null || 28340 ln "$srcdir/$ac_source" "$ac_file" 2>/dev/null || 28341 cp -p "$srcdir/$ac_source" "$ac_file" || 28342 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5 28343echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;} 28344 { (exit 1); exit 1; }; } 28345 ;; 28346 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 28347echo "$as_me: executing $ac_file commands" >&6;} 28348 ;; 28349 esac 28350 28351 28352 case $ac_file$ac_mode in 28353 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 28354 # Strip MF so we end up with the name of the file. 28355 mf=`echo "$mf" | sed -e 's/:.*$//'` 28356 # Check whether this is an Automake generated Makefile or not. 28357 # We used to match only the files named `Makefile.in', but 28358 # some people rename them; so instead we look at the file content. 28359 # Grep'ing the first line is not enough: some people post-process 28360 # each Makefile.in and add a new line on top of each file to say so. 28361 # So let's grep whole file. 28362 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 28363 dirpart=`$as_dirname -- "$mf" || 28364$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28365 X"$mf" : 'X\(//\)[^/]' \| \ 28366 X"$mf" : 'X\(//\)$' \| \ 28367 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 28368echo X"$mf" | 28369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 28370 s//\1/ 28371 q 28372 } 28373 /^X\(\/\/\)[^/].*/{ 28374 s//\1/ 28375 q 28376 } 28377 /^X\(\/\/\)$/{ 28378 s//\1/ 28379 q 28380 } 28381 /^X\(\/\).*/{ 28382 s//\1/ 28383 q 28384 } 28385 s/.*/./; q'` 28386 else 28387 continue 28388 fi 28389 # Extract the definition of DEPDIR, am__include, and am__quote 28390 # from the Makefile without running `make'. 28391 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 28392 test -z "$DEPDIR" && continue 28393 am__include=`sed -n 's/^am__include = //p' < "$mf"` 28394 test -z "am__include" && continue 28395 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 28396 # When using ansi2knr, U may be empty or an underscore; expand it 28397 U=`sed -n 's/^U = //p' < "$mf"` 28398 # Find all dependency output files, they are included files with 28399 # $(DEPDIR) in their names. We invoke sed twice because it is the 28400 # simplest approach to changing $(DEPDIR) to its actual value in the 28401 # expansion. 28402 for file in `sed -n " 28403 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 28404 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 28405 # Make sure the directory exists. 28406 test -f "$dirpart/$file" && continue 28407 fdir=`$as_dirname -- "$file" || 28408$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28409 X"$file" : 'X\(//\)[^/]' \| \ 28410 X"$file" : 'X\(//\)$' \| \ 28411 X"$file" : 'X\(/\)' \| . 2>/dev/null || 28412echo X"$file" | 28413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 28414 s//\1/ 28415 q 28416 } 28417 /^X\(\/\/\)[^/].*/{ 28418 s//\1/ 28419 q 28420 } 28421 /^X\(\/\/\)$/{ 28422 s//\1/ 28423 q 28424 } 28425 /^X\(\/\).*/{ 28426 s//\1/ 28427 q 28428 } 28429 s/.*/./; q'` 28430 { as_dir=$dirpart/$fdir 28431 case $as_dir in #( 28432 -*) as_dir=./$as_dir;; 28433 esac 28434 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 28435 as_dirs= 28436 while :; do 28437 case $as_dir in #( 28438 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 28439 *) as_qdir=$as_dir;; 28440 esac 28441 as_dirs="'$as_qdir' $as_dirs" 28442 as_dir=`$as_dirname -- "$as_dir" || 28443$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28444 X"$as_dir" : 'X\(//\)[^/]' \| \ 28445 X"$as_dir" : 'X\(//\)$' \| \ 28446 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 28447echo X"$as_dir" | 28448 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 28449 s//\1/ 28450 q 28451 } 28452 /^X\(\/\/\)[^/].*/{ 28453 s//\1/ 28454 q 28455 } 28456 /^X\(\/\/\)$/{ 28457 s//\1/ 28458 q 28459 } 28460 /^X\(\/\).*/{ 28461 s//\1/ 28462 q 28463 } 28464 s/.*/./; q'` 28465 test -d "$as_dir" && break 28466 done 28467 test -z "$as_dirs" || eval "mkdir $as_dirs" 28468 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 28469echo "$as_me: error: cannot create directory $as_dir" >&2;} 28470 { (exit 1); exit 1; }; }; } 28471 # echo "creating $dirpart/$file" 28472 echo '# dummy' > "$dirpart/$file" 28473 done 28474done 28475 ;; 28476 28477 esac 28478done # for ac_tag 28479 28480 28481{ (exit 0); exit 0; } 28482_ACEOF 28483chmod +x $CONFIG_STATUS 28484ac_clean_files=$ac_clean_files_save 28485 28486 28487# configure is writing to config.log, and then calls config.status. 28488# config.status does its own redirection, appending to config.log. 28489# Unfortunately, on DOS this fails, as config.log is still kept open 28490# by configure, so config.status won't be able to write to it; its 28491# output is simply discarded. So we exec the FD to /dev/null, 28492# effectively closing config.log, so it can be properly (re)opened and 28493# appended to by config.status. When coming back to configure, we 28494# need to make the FD available again. 28495if test "$no_create" != yes; then 28496 ac_cs_success=: 28497 ac_config_status_args= 28498 test "$silent" = yes && 28499 ac_config_status_args="$ac_config_status_args --quiet" 28500 exec 5>/dev/null 28501 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 28502 exec 5>>config.log 28503 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 28504 # would make configure fail if this is the last instruction. 28505 $ac_cs_success || { (exit 1); exit 1; } 28506fi 28507 28508 28509eval e_bindir=${bindir}; eval e_bindir=${e_bindir} 28510eval e_includedir=${includedir}; eval e_includedir=${e_includedir} 28511eval e_libdir=${libdir}; eval e_libdir=${e_libdir} 28512{ echo "$as_me:$LINENO: result: 28513PEAK library compile-time configuration done. 28514 28515Installation base directory: ${prefix} 28516Installation binary directory: ${e_bindir} 28517Installation include directory: ${e_includedir} 28518Installation library directory: ${e_libdir} 28519Architecture: ${arch} 28520Engine module: ${peak_engine} 28521 28522Type 'make' to compile the library 28523then 'make check' to compile and run the test suite (optional) 28524then 'make install' to install libpeak." >&5 28525echo "${ECHO_T} 28526PEAK library compile-time configuration done. 28527 28528Installation base directory: ${prefix} 28529Installation binary directory: ${e_bindir} 28530Installation include directory: ${e_includedir} 28531Installation library directory: ${e_libdir} 28532Architecture: ${arch} 28533Engine module: ${peak_engine} 28534 28535Type 'make' to compile the library 28536then 'make check' to compile and run the test suite (optional) 28537then 'make install' to install libpeak." >&6; } 28538 28539