1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61 for bullet 2.78. 4# 5# Report bugs to <bullet@erwincoumans.com>. 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 more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 18 emulate sh 19 NULLCMD=: 20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in 26 *posix*) set -o posix ;; 27esac 28 29fi 30 31 32 33 34# PATH needs CR 35# Avoid depending upon Character Ranges. 36as_cr_letters='abcdefghijklmnopqrstuvwxyz' 37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 38as_cr_Letters=$as_cr_letters$as_cr_LETTERS 39as_cr_digits='0123456789' 40as_cr_alnum=$as_cr_Letters$as_cr_digits 41 42# The user is always right. 43if test "${PATH_SEPARATOR+set}" != set; then 44 echo "#! /bin/sh" >conf$$.sh 45 echo "exit 0" >>conf$$.sh 46 chmod +x conf$$.sh 47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 48 PATH_SEPARATOR=';' 49 else 50 PATH_SEPARATOR=: 51 fi 52 rm -f conf$$.sh 53fi 54 55# Support unset when possible. 56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 57 as_unset=unset 58else 59 as_unset=false 60fi 61 62 63# IFS 64# We need space, tab and new line, in precisely that order. Quoting is 65# there to prevent editors from complaining about space-tab. 66# (If _AS_PATH_WALK were called with IFS unset, it would disable word 67# splitting by setting IFS to empty value.) 68as_nl=' 69' 70IFS=" "" $as_nl" 71 72# Find who we are. Look in the path if we contain no directory separator. 73case $0 in 74 *[\\/]* ) as_myself=$0 ;; 75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 76for as_dir in $PATH 77do 78 IFS=$as_save_IFS 79 test -z "$as_dir" && as_dir=. 80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 81done 82IFS=$as_save_IFS 83 84 ;; 85esac 86# We did not find ourselves, most probably we were run as `sh COMMAND' 87# in which case we are not to be found in the path. 88if test "x$as_myself" = x; then 89 as_myself=$0 90fi 91if test ! -f "$as_myself"; then 92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 93 { (exit 1); exit 1; } 94fi 95 96# Work around bugs in pre-3.0 UWIN ksh. 97for as_var in ENV MAIL MAILPATH 98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 99done 100PS1='$ ' 101PS2='> ' 102PS4='+ ' 103 104# NLS nuisances. 105for as_var in \ 106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 108 LC_TELEPHONE LC_TIME 109do 110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 111 eval $as_var=C; export $as_var 112 else 113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 114 fi 115done 116 117# Required to use basename. 118if expr a : '\(a\)' >/dev/null 2>&1 && 119 test "X`expr 00001 : '.*\(...\)'`" = X001; then 120 as_expr=expr 121else 122 as_expr=false 123fi 124 125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 126 as_basename=basename 127else 128 as_basename=false 129fi 130 131 132# Name of the executable. 133as_me=`$as_basename -- "$0" || 134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 135 X"$0" : 'X\(//\)$' \| \ 136 X"$0" : 'X\(/\)' \| . 2>/dev/null || 137echo X/"$0" | 138 sed '/^.*\/\([^/][^/]*\)\/*$/{ 139 s//\1/ 140 q 141 } 142 /^X\/\(\/\/\)$/{ 143 s//\1/ 144 q 145 } 146 /^X\/\(\/\).*/{ 147 s//\1/ 148 q 149 } 150 s/.*/./; q'` 151 152# CDPATH. 153$as_unset CDPATH 154 155 156if test "x$CONFIG_SHELL" = x; then 157 if (eval ":") 2>/dev/null; then 158 as_have_required=yes 159else 160 as_have_required=no 161fi 162 163 if test $as_have_required = yes && (eval ": 164(as_func_return () { 165 (exit \$1) 166} 167as_func_success () { 168 as_func_return 0 169} 170as_func_failure () { 171 as_func_return 1 172} 173as_func_ret_success () { 174 return 0 175} 176as_func_ret_failure () { 177 return 1 178} 179 180exitcode=0 181if as_func_success; then 182 : 183else 184 exitcode=1 185 echo as_func_success failed. 186fi 187 188if as_func_failure; then 189 exitcode=1 190 echo as_func_failure succeeded. 191fi 192 193if as_func_ret_success; then 194 : 195else 196 exitcode=1 197 echo as_func_ret_success failed. 198fi 199 200if as_func_ret_failure; then 201 exitcode=1 202 echo as_func_ret_failure succeeded. 203fi 204 205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 206 : 207else 208 exitcode=1 209 echo positional parameters were not saved. 210fi 211 212test \$exitcode = 0) || { (exit 1); exit 1; } 213 214( 215 as_lineno_1=\$LINENO 216 as_lineno_2=\$LINENO 217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 219") 2> /dev/null; then 220 : 221else 222 as_candidate_shells= 223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 225do 226 IFS=$as_save_IFS 227 test -z "$as_dir" && as_dir=. 228 case $as_dir in 229 /*) 230 for as_base in sh bash ksh sh5; do 231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 232 done;; 233 esac 234done 235IFS=$as_save_IFS 236 237 238 for as_shell in $as_candidate_shells $SHELL; do 239 # Try only shells that exist, to save several forks. 240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 241 { ("$as_shell") 2> /dev/null <<\_ASEOF 242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 243 emulate sh 244 NULLCMD=: 245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 246 # is contrary to our usage. Disable this feature. 247 alias -g '${1+"$@"}'='"$@"' 248 setopt NO_GLOB_SUBST 249else 250 case `(set -o) 2>/dev/null` in 251 *posix*) set -o posix ;; 252esac 253 254fi 255 256 257: 258_ASEOF 259}; then 260 CONFIG_SHELL=$as_shell 261 as_have_required=yes 262 if { "$as_shell" 2> /dev/null <<\_ASEOF 263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 264 emulate sh 265 NULLCMD=: 266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 267 # is contrary to our usage. Disable this feature. 268 alias -g '${1+"$@"}'='"$@"' 269 setopt NO_GLOB_SUBST 270else 271 case `(set -o) 2>/dev/null` in 272 *posix*) set -o posix ;; 273esac 274 275fi 276 277 278: 279(as_func_return () { 280 (exit $1) 281} 282as_func_success () { 283 as_func_return 0 284} 285as_func_failure () { 286 as_func_return 1 287} 288as_func_ret_success () { 289 return 0 290} 291as_func_ret_failure () { 292 return 1 293} 294 295exitcode=0 296if as_func_success; then 297 : 298else 299 exitcode=1 300 echo as_func_success failed. 301fi 302 303if as_func_failure; then 304 exitcode=1 305 echo as_func_failure succeeded. 306fi 307 308if as_func_ret_success; then 309 : 310else 311 exitcode=1 312 echo as_func_ret_success failed. 313fi 314 315if as_func_ret_failure; then 316 exitcode=1 317 echo as_func_ret_failure succeeded. 318fi 319 320if ( set x; as_func_ret_success y && test x = "$1" ); then 321 : 322else 323 exitcode=1 324 echo positional parameters were not saved. 325fi 326 327test $exitcode = 0) || { (exit 1); exit 1; } 328 329( 330 as_lineno_1=$LINENO 331 as_lineno_2=$LINENO 332 test "x$as_lineno_1" != "x$as_lineno_2" && 333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 334 335_ASEOF 336}; then 337 break 338fi 339 340fi 341 342 done 343 344 if test "x$CONFIG_SHELL" != x; then 345 for as_var in BASH_ENV ENV 346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 347 done 348 export CONFIG_SHELL 349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 350fi 351 352 353 if test $as_have_required = no; then 354 echo This script requires a shell more modern than all the 355 echo shells that I found on your system. Please install a 356 echo modern shell, or manually run the script under such a 357 echo shell if you do have one. 358 { (exit 1); exit 1; } 359fi 360 361 362fi 363 364fi 365 366 367 368(eval "as_func_return () { 369 (exit \$1) 370} 371as_func_success () { 372 as_func_return 0 373} 374as_func_failure () { 375 as_func_return 1 376} 377as_func_ret_success () { 378 return 0 379} 380as_func_ret_failure () { 381 return 1 382} 383 384exitcode=0 385if as_func_success; then 386 : 387else 388 exitcode=1 389 echo as_func_success failed. 390fi 391 392if as_func_failure; then 393 exitcode=1 394 echo as_func_failure succeeded. 395fi 396 397if as_func_ret_success; then 398 : 399else 400 exitcode=1 401 echo as_func_ret_success failed. 402fi 403 404if as_func_ret_failure; then 405 exitcode=1 406 echo as_func_ret_failure succeeded. 407fi 408 409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 410 : 411else 412 exitcode=1 413 echo positional parameters were not saved. 414fi 415 416test \$exitcode = 0") || { 417 echo No shell found that supports shell functions. 418 echo Please tell autoconf@gnu.org about your system, 419 echo including any error possibly output before this 420 echo message 421} 422 423 424 425 as_lineno_1=$LINENO 426 as_lineno_2=$LINENO 427 test "x$as_lineno_1" != "x$as_lineno_2" && 428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 429 430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 431 # uniformly replaced by the line number. The first 'sed' inserts a 432 # line-number line after each line using $LINENO; the second 'sed' 433 # does the real work. The second script uses 'N' to pair each 434 # line-number line with the line containing $LINENO, and appends 435 # trailing '-' during substitution so that $LINENO is not a special 436 # case at line end. 437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 438 # scripts with optimization help from Paolo Bonzini. Blame Lee 439 # E. McMahon (1931-1989) for sed's syntax. :-) 440 sed -n ' 441 p 442 /[$]LINENO/= 443 ' <$as_myself | 444 sed ' 445 s/[$]LINENO.*/&-/ 446 t lineno 447 b 448 :lineno 449 N 450 :loop 451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 452 t loop 453 s/-\n.*// 454 ' >$as_me.lineno && 455 chmod +x "$as_me.lineno" || 456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 457 { (exit 1); exit 1; }; } 458 459 # Don't try to exec as it changes $[0], causing all sort of problems 460 # (the dirname of $[0] is not the place where we might find the 461 # original and so on. Autoconf is especially sensitive to this). 462 . "./$as_me.lineno" 463 # Exit status is that of the last command. 464 exit 465} 466 467 468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 469 as_dirname=dirname 470else 471 as_dirname=false 472fi 473 474ECHO_C= ECHO_N= ECHO_T= 475case `echo -n x` in 476-n*) 477 case `echo 'x\c'` in 478 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 479 *) ECHO_C='\c';; 480 esac;; 481*) 482 ECHO_N='-n';; 483esac 484 485if expr a : '\(a\)' >/dev/null 2>&1 && 486 test "X`expr 00001 : '.*\(...\)'`" = X001; then 487 as_expr=expr 488else 489 as_expr=false 490fi 491 492rm -f conf$$ conf$$.exe conf$$.file 493if test -d conf$$.dir; then 494 rm -f conf$$.dir/conf$$.file 495else 496 rm -f conf$$.dir 497 mkdir conf$$.dir 498fi 499echo >conf$$.file 500if ln -s conf$$.file conf$$ 2>/dev/null; then 501 as_ln_s='ln -s' 502 # ... but there are two gotchas: 503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 505 # In both cases, we have to default to `cp -p'. 506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 507 as_ln_s='cp -p' 508elif ln conf$$.file conf$$ 2>/dev/null; then 509 as_ln_s=ln 510else 511 as_ln_s='cp -p' 512fi 513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 514rmdir conf$$.dir 2>/dev/null 515 516if mkdir -p . 2>/dev/null; then 517 as_mkdir_p='mkdir -p' 518elif mkdirs . 2>/dev/null; then 519 as_mkdir_p='mkdirs' 520else 521 as_mkdir_p='' 522fi 523test -d ./-p && rmdir ./-p 524 525if test -x / >/dev/null 2>&1; then 526 as_test_x='test -x' 527else 528 if ls -dL / >/dev/null 2>&1; then 529 as_ls_L_option=L 530 else 531 as_ls_L_option= 532 fi 533 as_test_x=' 534 eval sh -c '\'' 535 if test -d "$1"; then 536 test -d "$1/."; 537 else 538 case $1 in 539 -*)set "./$1";; 540 esac; 541 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 542 ???[sx]*):;;*)false;;esac;fi 543 '\'' sh 544 ' 545fi 546as_executable_p=$as_test_x 547 548# Sed expression to map a string onto a valid CPP name. 549as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 550 551# Sed expression to map a string onto a valid variable name. 552as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 553 554 555 556 557# Check that we are running under the correct shell. 558SHELL=${CONFIG_SHELL-/bin/sh} 559 560case X$lt_ECHO in 561X*--fallback-echo) 562 # Remove one level of quotation (which was required for Make). 563 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 564 ;; 565esac 566 567ECHO=${lt_ECHO-echo} 568if test "X$1" = X--no-reexec; then 569 # Discard the --no-reexec flag, and continue. 570 shift 571elif test "X$1" = X--fallback-echo; then 572 # Avoid inline document here, it may be left over 573 : 574elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 575 # Yippee, $ECHO works! 576 : 577else 578 # Restart under the correct shell. 579 exec $SHELL "$0" --no-reexec ${1+"$@"} 580fi 581 582if test "X$1" = X--fallback-echo; then 583 # used as fallback echo 584 shift 585 cat <<_LT_EOF 586$* 587_LT_EOF 588 exit 0 589fi 590 591# The HP-UX ksh and POSIX shell print the target directory to stdout 592# if CDPATH is set. 593(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 594 595if test -z "$lt_ECHO"; then 596 if test "X${echo_test_string+set}" != Xset; then 597 # find a string as large as possible, as long as the shell can cope with it 598 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 599 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 600 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 601 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 602 then 603 break 604 fi 605 done 606 fi 607 608 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 609 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 610 test "X$echo_testing_string" = "X$echo_test_string"; then 611 : 612 else 613 # The Solaris, AIX, and Digital Unix default echo programs unquote 614 # backslashes. This makes it impossible to quote backslashes using 615 # echo "$something" | sed 's/\\/\\\\/g' 616 # 617 # So, first we look for a working echo in the user's PATH. 618 619 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 620 for dir in $PATH /usr/ucb; do 621 IFS="$lt_save_ifs" 622 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 623 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 624 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 625 test "X$echo_testing_string" = "X$echo_test_string"; then 626 ECHO="$dir/echo" 627 break 628 fi 629 done 630 IFS="$lt_save_ifs" 631 632 if test "X$ECHO" = Xecho; then 633 # We didn't find a better echo, so look for alternatives. 634 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 635 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 636 test "X$echo_testing_string" = "X$echo_test_string"; then 637 # This shell has a builtin print -r that does the trick. 638 ECHO='print -r' 639 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 640 test "X$CONFIG_SHELL" != X/bin/ksh; then 641 # If we have ksh, try running configure again with it. 642 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 643 export ORIGINAL_CONFIG_SHELL 644 CONFIG_SHELL=/bin/ksh 645 export CONFIG_SHELL 646 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 647 else 648 # Try using printf. 649 ECHO='printf %s\n' 650 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 651 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 652 test "X$echo_testing_string" = "X$echo_test_string"; then 653 # Cool, printf works 654 : 655 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 656 test "X$echo_testing_string" = 'X\t' && 657 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 658 test "X$echo_testing_string" = "X$echo_test_string"; then 659 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 660 export CONFIG_SHELL 661 SHELL="$CONFIG_SHELL" 662 export SHELL 663 ECHO="$CONFIG_SHELL $0 --fallback-echo" 664 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 665 test "X$echo_testing_string" = 'X\t' && 666 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 667 test "X$echo_testing_string" = "X$echo_test_string"; then 668 ECHO="$CONFIG_SHELL $0 --fallback-echo" 669 else 670 # maybe with a smaller string... 671 prev=: 672 673 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 674 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 675 then 676 break 677 fi 678 prev="$cmd" 679 done 680 681 if test "$prev" != 'sed 50q "$0"'; then 682 echo_test_string=`eval $prev` 683 export echo_test_string 684 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 685 else 686 # Oops. We lost completely, so just stick with echo. 687 ECHO=echo 688 fi 689 fi 690 fi 691 fi 692 fi 693fi 694 695# Copy echo and quote the copy suitably for passing to libtool from 696# the Makefile, instead of quoting the original, which is used later. 697lt_ECHO=$ECHO 698if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 699 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 700fi 701 702 703 704 705exec 7<&0 </dev/null 6>&1 706 707# Name of the host. 708# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 709# so uname gets run too. 710ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 711 712# 713# Initializations. 714# 715ac_default_prefix=/usr/local 716ac_clean_files= 717ac_config_libobj_dir=. 718LIBOBJS= 719cross_compiling=no 720subdirs= 721MFLAGS= 722MAKEFLAGS= 723SHELL=${CONFIG_SHELL-/bin/sh} 724 725# Identity of this package. 726PACKAGE_NAME='bullet' 727PACKAGE_TARNAME='bullet' 728PACKAGE_VERSION='2.78' 729PACKAGE_STRING='bullet 2.78' 730PACKAGE_BUGREPORT='bullet@erwincoumans.com' 731 732ac_unique_file="configure.ac" 733# Factoring default headers for most tests. 734ac_includes_default="\ 735#include <stdio.h> 736#ifdef HAVE_SYS_TYPES_H 737# include <sys/types.h> 738#endif 739#ifdef HAVE_SYS_STAT_H 740# include <sys/stat.h> 741#endif 742#ifdef STDC_HEADERS 743# include <stdlib.h> 744# include <stddef.h> 745#else 746# ifdef HAVE_STDLIB_H 747# include <stdlib.h> 748# endif 749#endif 750#ifdef HAVE_STRING_H 751# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 752# include <memory.h> 753# endif 754# include <string.h> 755#endif 756#ifdef HAVE_STRINGS_H 757# include <strings.h> 758#endif 759#ifdef HAVE_INTTYPES_H 760# include <inttypes.h> 761#endif 762#ifdef HAVE_STDINT_H 763# include <stdint.h> 764#endif 765#ifdef HAVE_UNISTD_H 766# include <unistd.h> 767#endif" 768 769ac_subst_vars='SHELL 770PATH_SEPARATOR 771PACKAGE_NAME 772PACKAGE_TARNAME 773PACKAGE_VERSION 774PACKAGE_STRING 775PACKAGE_BUGREPORT 776exec_prefix 777prefix 778program_transform_name 779bindir 780sbindir 781libexecdir 782datarootdir 783datadir 784sysconfdir 785sharedstatedir 786localstatedir 787includedir 788oldincludedir 789docdir 790infodir 791htmldir 792dvidir 793pdfdir 794psdir 795libdir 796localedir 797mandir 798DEFS 799ECHO_C 800ECHO_N 801ECHO_T 802LIBS 803build_alias 804host_alias 805target_alias 806build 807build_cpu 808build_vendor 809build_os 810host 811host_cpu 812host_vendor 813host_os 814INSTALL_PROGRAM 815INSTALL_SCRIPT 816INSTALL_DATA 817am__isrc 818CYGPATH_W 819PACKAGE 820VERSION 821ACLOCAL 822AUTOCONF 823AUTOMAKE 824AUTOHEADER 825MAKEINFO 826install_sh 827STRIP 828INSTALL_STRIP_PROGRAM 829mkdir_p 830AWK 831SET_MAKE 832am__leading_dot 833AMTAR 834am__tar 835am__untar 836CC 837CFLAGS 838LDFLAGS 839CPPFLAGS 840ac_ct_CC 841EXEEXT 842OBJEXT 843DEPDIR 844am__include 845am__quote 846AMDEP_TRUE 847AMDEP_FALSE 848AMDEPBACKSLASH 849CCDEPMODE 850am__fastdepCC_TRUE 851am__fastdepCC_FALSE 852CXX 853CXXFLAGS 854ac_ct_CXX 855CXXDEPMODE 856am__fastdepCXX_TRUE 857am__fastdepCXX_FALSE 858LIBTOOL 859SED 860GREP 861EGREP 862FGREP 863LD 864DUMPBIN 865ac_ct_DUMPBIN 866NM 867LN_S 868AR 869RANLIB 870lt_ECHO 871DSYMUTIL 872NMEDIT 873LIPO 874OTOOL 875OTOOL64 876CPP 877CXXCPP 878opengl_LIBS 879CONDITIONAL_BUILD_MULTITHREADED_TRUE 880CONDITIONAL_BUILD_MULTITHREADED_FALSE 881CONDITIONAL_BUILD_DEMOS_TRUE 882CONDITIONAL_BUILD_DEMOS_FALSE 883GL_LIBS 884LIBOBJS 885LTLIBOBJS' 886ac_subst_files='' 887 ac_precious_vars='build_alias 888host_alias 889target_alias 890CC 891CFLAGS 892LDFLAGS 893LIBS 894CPPFLAGS 895CXX 896CXXFLAGS 897CCC 898CPP 899CXXCPP' 900 901 902# Initialize some variables set by options. 903ac_init_help= 904ac_init_version=false 905# The variables have the same names as the options, with 906# dashes changed to underlines. 907cache_file=/dev/null 908exec_prefix=NONE 909no_create= 910no_recursion= 911prefix=NONE 912program_prefix=NONE 913program_suffix=NONE 914program_transform_name=s,x,x, 915silent= 916site= 917srcdir= 918verbose= 919x_includes=NONE 920x_libraries=NONE 921 922# Installation directory options. 923# These are left unexpanded so users can "make install exec_prefix=/foo" 924# and all the variables that are supposed to be based on exec_prefix 925# by default will actually change. 926# Use braces instead of parens because sh, perl, etc. also accept them. 927# (The list follows the same order as the GNU Coding Standards.) 928bindir='${exec_prefix}/bin' 929sbindir='${exec_prefix}/sbin' 930libexecdir='${exec_prefix}/libexec' 931datarootdir='${prefix}/share' 932datadir='${datarootdir}' 933sysconfdir='${prefix}/etc' 934sharedstatedir='${prefix}/com' 935localstatedir='${prefix}/var' 936includedir='${prefix}/include' 937oldincludedir='/usr/include' 938docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 939infodir='${datarootdir}/info' 940htmldir='${docdir}' 941dvidir='${docdir}' 942pdfdir='${docdir}' 943psdir='${docdir}' 944libdir='${exec_prefix}/lib' 945localedir='${datarootdir}/locale' 946mandir='${datarootdir}/man' 947 948ac_prev= 949ac_dashdash= 950for ac_option 951do 952 # If the previous option needs an argument, assign it. 953 if test -n "$ac_prev"; then 954 eval $ac_prev=\$ac_option 955 ac_prev= 956 continue 957 fi 958 959 case $ac_option in 960 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 961 *) ac_optarg=yes ;; 962 esac 963 964 # Accept the important Cygnus configure options, so we can diagnose typos. 965 966 case $ac_dashdash$ac_option in 967 --) 968 ac_dashdash=yes ;; 969 970 -bindir | --bindir | --bindi | --bind | --bin | --bi) 971 ac_prev=bindir ;; 972 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 973 bindir=$ac_optarg ;; 974 975 -build | --build | --buil | --bui | --bu) 976 ac_prev=build_alias ;; 977 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 978 build_alias=$ac_optarg ;; 979 980 -cache-file | --cache-file | --cache-fil | --cache-fi \ 981 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 982 ac_prev=cache_file ;; 983 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 984 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 985 cache_file=$ac_optarg ;; 986 987 --config-cache | -C) 988 cache_file=config.cache ;; 989 990 -datadir | --datadir | --datadi | --datad) 991 ac_prev=datadir ;; 992 -datadir=* | --datadir=* | --datadi=* | --datad=*) 993 datadir=$ac_optarg ;; 994 995 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 996 | --dataroo | --dataro | --datar) 997 ac_prev=datarootdir ;; 998 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 999 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1000 datarootdir=$ac_optarg ;; 1001 1002 -disable-* | --disable-*) 1003 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1004 # Reject names that are not valid shell variable names. 1005 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1006 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1007 { (exit 1); exit 1; }; } 1008 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1009 eval enable_$ac_feature=no ;; 1010 1011 -docdir | --docdir | --docdi | --doc | --do) 1012 ac_prev=docdir ;; 1013 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1014 docdir=$ac_optarg ;; 1015 1016 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1017 ac_prev=dvidir ;; 1018 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1019 dvidir=$ac_optarg ;; 1020 1021 -enable-* | --enable-*) 1022 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1023 # Reject names that are not valid shell variable names. 1024 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1025 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1026 { (exit 1); exit 1; }; } 1027 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1028 eval enable_$ac_feature=\$ac_optarg ;; 1029 1030 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1031 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1032 | --exec | --exe | --ex) 1033 ac_prev=exec_prefix ;; 1034 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1035 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1036 | --exec=* | --exe=* | --ex=*) 1037 exec_prefix=$ac_optarg ;; 1038 1039 -gas | --gas | --ga | --g) 1040 # Obsolete; use --with-gas. 1041 with_gas=yes ;; 1042 1043 -help | --help | --hel | --he | -h) 1044 ac_init_help=long ;; 1045 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1046 ac_init_help=recursive ;; 1047 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1048 ac_init_help=short ;; 1049 1050 -host | --host | --hos | --ho) 1051 ac_prev=host_alias ;; 1052 -host=* | --host=* | --hos=* | --ho=*) 1053 host_alias=$ac_optarg ;; 1054 1055 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1056 ac_prev=htmldir ;; 1057 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1058 | --ht=*) 1059 htmldir=$ac_optarg ;; 1060 1061 -includedir | --includedir | --includedi | --included | --include \ 1062 | --includ | --inclu | --incl | --inc) 1063 ac_prev=includedir ;; 1064 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1065 | --includ=* | --inclu=* | --incl=* | --inc=*) 1066 includedir=$ac_optarg ;; 1067 1068 -infodir | --infodir | --infodi | --infod | --info | --inf) 1069 ac_prev=infodir ;; 1070 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1071 infodir=$ac_optarg ;; 1072 1073 -libdir | --libdir | --libdi | --libd) 1074 ac_prev=libdir ;; 1075 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1076 libdir=$ac_optarg ;; 1077 1078 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1079 | --libexe | --libex | --libe) 1080 ac_prev=libexecdir ;; 1081 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1082 | --libexe=* | --libex=* | --libe=*) 1083 libexecdir=$ac_optarg ;; 1084 1085 -localedir | --localedir | --localedi | --localed | --locale) 1086 ac_prev=localedir ;; 1087 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1088 localedir=$ac_optarg ;; 1089 1090 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1091 | --localstate | --localstat | --localsta | --localst | --locals) 1092 ac_prev=localstatedir ;; 1093 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1094 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1095 localstatedir=$ac_optarg ;; 1096 1097 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1098 ac_prev=mandir ;; 1099 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1100 mandir=$ac_optarg ;; 1101 1102 -nfp | --nfp | --nf) 1103 # Obsolete; use --without-fp. 1104 with_fp=no ;; 1105 1106 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1107 | --no-cr | --no-c | -n) 1108 no_create=yes ;; 1109 1110 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1111 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1112 no_recursion=yes ;; 1113 1114 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1115 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1116 | --oldin | --oldi | --old | --ol | --o) 1117 ac_prev=oldincludedir ;; 1118 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1119 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1120 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1121 oldincludedir=$ac_optarg ;; 1122 1123 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1124 ac_prev=prefix ;; 1125 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1126 prefix=$ac_optarg ;; 1127 1128 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1129 | --program-pre | --program-pr | --program-p) 1130 ac_prev=program_prefix ;; 1131 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1132 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1133 program_prefix=$ac_optarg ;; 1134 1135 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1136 | --program-suf | --program-su | --program-s) 1137 ac_prev=program_suffix ;; 1138 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1139 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1140 program_suffix=$ac_optarg ;; 1141 1142 -program-transform-name | --program-transform-name \ 1143 | --program-transform-nam | --program-transform-na \ 1144 | --program-transform-n | --program-transform- \ 1145 | --program-transform | --program-transfor \ 1146 | --program-transfo | --program-transf \ 1147 | --program-trans | --program-tran \ 1148 | --progr-tra | --program-tr | --program-t) 1149 ac_prev=program_transform_name ;; 1150 -program-transform-name=* | --program-transform-name=* \ 1151 | --program-transform-nam=* | --program-transform-na=* \ 1152 | --program-transform-n=* | --program-transform-=* \ 1153 | --program-transform=* | --program-transfor=* \ 1154 | --program-transfo=* | --program-transf=* \ 1155 | --program-trans=* | --program-tran=* \ 1156 | --progr-tra=* | --program-tr=* | --program-t=*) 1157 program_transform_name=$ac_optarg ;; 1158 1159 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1160 ac_prev=pdfdir ;; 1161 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1162 pdfdir=$ac_optarg ;; 1163 1164 -psdir | --psdir | --psdi | --psd | --ps) 1165 ac_prev=psdir ;; 1166 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1167 psdir=$ac_optarg ;; 1168 1169 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1170 | -silent | --silent | --silen | --sile | --sil) 1171 silent=yes ;; 1172 1173 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1174 ac_prev=sbindir ;; 1175 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1176 | --sbi=* | --sb=*) 1177 sbindir=$ac_optarg ;; 1178 1179 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1180 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1181 | --sharedst | --shareds | --shared | --share | --shar \ 1182 | --sha | --sh) 1183 ac_prev=sharedstatedir ;; 1184 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1185 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1186 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1187 | --sha=* | --sh=*) 1188 sharedstatedir=$ac_optarg ;; 1189 1190 -site | --site | --sit) 1191 ac_prev=site ;; 1192 -site=* | --site=* | --sit=*) 1193 site=$ac_optarg ;; 1194 1195 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1196 ac_prev=srcdir ;; 1197 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1198 srcdir=$ac_optarg ;; 1199 1200 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1201 | --syscon | --sysco | --sysc | --sys | --sy) 1202 ac_prev=sysconfdir ;; 1203 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1204 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1205 sysconfdir=$ac_optarg ;; 1206 1207 -target | --target | --targe | --targ | --tar | --ta | --t) 1208 ac_prev=target_alias ;; 1209 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1210 target_alias=$ac_optarg ;; 1211 1212 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1213 verbose=yes ;; 1214 1215 -version | --version | --versio | --versi | --vers | -V) 1216 ac_init_version=: ;; 1217 1218 -with-* | --with-*) 1219 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1220 # Reject names that are not valid shell variable names. 1221 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1222 { echo "$as_me: error: invalid package name: $ac_package" >&2 1223 { (exit 1); exit 1; }; } 1224 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1225 eval with_$ac_package=\$ac_optarg ;; 1226 1227 -without-* | --without-*) 1228 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1229 # Reject names that are not valid shell variable names. 1230 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1231 { echo "$as_me: error: invalid package name: $ac_package" >&2 1232 { (exit 1); exit 1; }; } 1233 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1234 eval with_$ac_package=no ;; 1235 1236 --x) 1237 # Obsolete; use --with-x. 1238 with_x=yes ;; 1239 1240 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1241 | --x-incl | --x-inc | --x-in | --x-i) 1242 ac_prev=x_includes ;; 1243 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1244 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1245 x_includes=$ac_optarg ;; 1246 1247 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1248 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1249 ac_prev=x_libraries ;; 1250 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1251 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1252 x_libraries=$ac_optarg ;; 1253 1254 -*) { echo "$as_me: error: unrecognized option: $ac_option 1255Try \`$0 --help' for more information." >&2 1256 { (exit 1); exit 1; }; } 1257 ;; 1258 1259 *=*) 1260 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1261 # Reject names that are not valid shell variable names. 1262 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1263 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1264 { (exit 1); exit 1; }; } 1265 eval $ac_envvar=\$ac_optarg 1266 export $ac_envvar ;; 1267 1268 *) 1269 # FIXME: should be removed in autoconf 3.0. 1270 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1271 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1272 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1273 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1274 ;; 1275 1276 esac 1277done 1278 1279if test -n "$ac_prev"; then 1280 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1281 { echo "$as_me: error: missing argument to $ac_option" >&2 1282 { (exit 1); exit 1; }; } 1283fi 1284 1285# Be sure to have absolute directory names. 1286for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1287 datadir sysconfdir sharedstatedir localstatedir includedir \ 1288 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1289 libdir localedir mandir 1290do 1291 eval ac_val=\$$ac_var 1292 case $ac_val in 1293 [\\/$]* | ?:[\\/]* ) continue;; 1294 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1295 esac 1296 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1297 { (exit 1); exit 1; }; } 1298done 1299 1300# There might be people who depend on the old broken behavior: `$host' 1301# used to hold the argument of --host etc. 1302# FIXME: To remove some day. 1303build=$build_alias 1304host=$host_alias 1305target=$target_alias 1306 1307# FIXME: To remove some day. 1308if test "x$host_alias" != x; then 1309 if test "x$build_alias" = x; then 1310 cross_compiling=maybe 1311 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1312 If a cross compiler is detected then cross compile mode will be used." >&2 1313 elif test "x$build_alias" != "x$host_alias"; then 1314 cross_compiling=yes 1315 fi 1316fi 1317 1318ac_tool_prefix= 1319test -n "$host_alias" && ac_tool_prefix=$host_alias- 1320 1321test "$silent" = yes && exec 6>/dev/null 1322 1323 1324ac_pwd=`pwd` && test -n "$ac_pwd" && 1325ac_ls_di=`ls -di .` && 1326ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1327 { echo "$as_me: error: Working directory cannot be determined" >&2 1328 { (exit 1); exit 1; }; } 1329test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1330 { echo "$as_me: error: pwd does not report name of working directory" >&2 1331 { (exit 1); exit 1; }; } 1332 1333 1334# Find the source files, if location was not specified. 1335if test -z "$srcdir"; then 1336 ac_srcdir_defaulted=yes 1337 # Try the directory containing this script, then the parent directory. 1338 ac_confdir=`$as_dirname -- "$0" || 1339$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1340 X"$0" : 'X\(//\)[^/]' \| \ 1341 X"$0" : 'X\(//\)$' \| \ 1342 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1343echo X"$0" | 1344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1345 s//\1/ 1346 q 1347 } 1348 /^X\(\/\/\)[^/].*/{ 1349 s//\1/ 1350 q 1351 } 1352 /^X\(\/\/\)$/{ 1353 s//\1/ 1354 q 1355 } 1356 /^X\(\/\).*/{ 1357 s//\1/ 1358 q 1359 } 1360 s/.*/./; q'` 1361 srcdir=$ac_confdir 1362 if test ! -r "$srcdir/$ac_unique_file"; then 1363 srcdir=.. 1364 fi 1365else 1366 ac_srcdir_defaulted=no 1367fi 1368if test ! -r "$srcdir/$ac_unique_file"; then 1369 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1370 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1371 { (exit 1); exit 1; }; } 1372fi 1373ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1374ac_abs_confdir=`( 1375 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1376 { (exit 1); exit 1; }; } 1377 pwd)` 1378# When building in place, set srcdir=. 1379if test "$ac_abs_confdir" = "$ac_pwd"; then 1380 srcdir=. 1381fi 1382# Remove unnecessary trailing slashes from srcdir. 1383# Double slashes in file names in object file debugging info 1384# mess up M-x gdb in Emacs. 1385case $srcdir in 1386*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1387esac 1388for ac_var in $ac_precious_vars; do 1389 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1390 eval ac_env_${ac_var}_value=\$${ac_var} 1391 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1392 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1393done 1394 1395# 1396# Report the --help message. 1397# 1398if test "$ac_init_help" = "long"; then 1399 # Omit some internal or obsolete options to make the list less imposing. 1400 # This message is too long to be a string in the A/UX 3.1 sh. 1401 cat <<_ACEOF 1402\`configure' configures bullet 2.78 to adapt to many kinds of systems. 1403 1404Usage: $0 [OPTION]... [VAR=VALUE]... 1405 1406To assign environment variables (e.g., CC, CFLAGS...), specify them as 1407VAR=VALUE. See below for descriptions of some of the useful variables. 1408 1409Defaults for the options are specified in brackets. 1410 1411Configuration: 1412 -h, --help display this help and exit 1413 --help=short display options specific to this package 1414 --help=recursive display the short help of all the included packages 1415 -V, --version display version information and exit 1416 -q, --quiet, --silent do not print \`checking...' messages 1417 --cache-file=FILE cache test results in FILE [disabled] 1418 -C, --config-cache alias for \`--cache-file=config.cache' 1419 -n, --no-create do not create output files 1420 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1421 1422Installation directories: 1423 --prefix=PREFIX install architecture-independent files in PREFIX 1424 [$ac_default_prefix] 1425 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1426 [PREFIX] 1427 1428By default, \`make install' will install all the files in 1429\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1430an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1431for instance \`--prefix=\$HOME'. 1432 1433For better control, use the options below. 1434 1435Fine tuning of the installation directories: 1436 --bindir=DIR user executables [EPREFIX/bin] 1437 --sbindir=DIR system admin executables [EPREFIX/sbin] 1438 --libexecdir=DIR program executables [EPREFIX/libexec] 1439 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1440 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1441 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1442 --libdir=DIR object code libraries [EPREFIX/lib] 1443 --includedir=DIR C header files [PREFIX/include] 1444 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1445 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1446 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1447 --infodir=DIR info documentation [DATAROOTDIR/info] 1448 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1449 --mandir=DIR man documentation [DATAROOTDIR/man] 1450 --docdir=DIR documentation root [DATAROOTDIR/doc/bullet] 1451 --htmldir=DIR html documentation [DOCDIR] 1452 --dvidir=DIR dvi documentation [DOCDIR] 1453 --pdfdir=DIR pdf documentation [DOCDIR] 1454 --psdir=DIR ps documentation [DOCDIR] 1455_ACEOF 1456 1457 cat <<\_ACEOF 1458 1459Program names: 1460 --program-prefix=PREFIX prepend PREFIX to installed program names 1461 --program-suffix=SUFFIX append SUFFIX to installed program names 1462 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1463 1464System types: 1465 --build=BUILD configure for building on BUILD [guessed] 1466 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1467_ACEOF 1468fi 1469 1470if test -n "$ac_init_help"; then 1471 case $ac_init_help in 1472 short | recursive ) echo "Configuration of bullet 2.78:";; 1473 esac 1474 cat <<\_ACEOF 1475 1476Optional Features: 1477 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1478 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1479 --disable-dependency-tracking speeds up one-time build 1480 --enable-dependency-tracking do not reject slow dependency extractors 1481 --enable-shared[=PKGS] build shared libraries [default=yes] 1482 --enable-static[=PKGS] build static libraries [default=yes] 1483 --enable-fast-install[=PKGS] 1484 optimize for fast installation [default=yes] 1485 --disable-libtool-lock avoid locking (might break parallel builds) 1486 --enable-multithreaded build BulletMultiThreaded (default NO) 1487 --disable-demos disable Bullet demos 1488 --enable-debug build with debugging information (default NO) 1489 1490Optional Packages: 1491 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1492 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1493 --with-pic try to use only PIC/non-PIC objects [default=use 1494 both] 1495 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1496 1497Some influential environment variables: 1498 CC C compiler command 1499 CFLAGS C compiler flags 1500 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1501 nonstandard directory <lib dir> 1502 LIBS libraries to pass to the linker, e.g. -l<library> 1503 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1504 you have headers in a nonstandard directory <include dir> 1505 CXX C++ compiler command 1506 CXXFLAGS C++ compiler flags 1507 CPP C preprocessor 1508 CXXCPP C++ preprocessor 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 <bullet@erwincoumans.com>. 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 1574bullet configure 2.78 1575generated by GNU Autoconf 2.61 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 bullet $as_me 2.78, which was 1589generated by GNU Autoconf 2.61. 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 1941ac_aux_dir= 1942for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1943 if test -f "$ac_dir/install-sh"; then 1944 ac_aux_dir=$ac_dir 1945 ac_install_sh="$ac_aux_dir/install-sh -c" 1946 break 1947 elif test -f "$ac_dir/install.sh"; then 1948 ac_aux_dir=$ac_dir 1949 ac_install_sh="$ac_aux_dir/install.sh -c" 1950 break 1951 elif test -f "$ac_dir/shtool"; then 1952 ac_aux_dir=$ac_dir 1953 ac_install_sh="$ac_aux_dir/shtool install -c" 1954 break 1955 fi 1956done 1957if test -z "$ac_aux_dir"; then 1958 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1959echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 1960 { (exit 1); exit 1; }; } 1961fi 1962 1963# These three variables are undocumented and unsupported, 1964# and are intended to be withdrawn in a future Autoconf release. 1965# They can cause serious problems if a builder's source tree is in a directory 1966# whose full name contains unusual characters. 1967ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1968ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1969ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1970 1971 1972# Make sure we can run config.sub. 1973$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 1974 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 1975echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 1976 { (exit 1); exit 1; }; } 1977 1978{ echo "$as_me:$LINENO: checking build system type" >&5 1979echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 1980if test "${ac_cv_build+set}" = set; then 1981 echo $ECHO_N "(cached) $ECHO_C" >&6 1982else 1983 ac_build_alias=$build_alias 1984test "x$ac_build_alias" = x && 1985 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 1986test "x$ac_build_alias" = x && 1987 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1988echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1989 { (exit 1); exit 1; }; } 1990ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 1991 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 1992echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 1993 { (exit 1); exit 1; }; } 1994 1995fi 1996{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1997echo "${ECHO_T}$ac_cv_build" >&6; } 1998case $ac_cv_build in 1999*-*-*) ;; 2000*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2001echo "$as_me: error: invalid value of canonical build" >&2;} 2002 { (exit 1); exit 1; }; };; 2003esac 2004build=$ac_cv_build 2005ac_save_IFS=$IFS; IFS='-' 2006set x $ac_cv_build 2007shift 2008build_cpu=$1 2009build_vendor=$2 2010shift; shift 2011# Remember, the first character of IFS is used to create $*, 2012# except with old shells: 2013build_os=$* 2014IFS=$ac_save_IFS 2015case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2016 2017 2018{ echo "$as_me:$LINENO: checking host system type" >&5 2019echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 2020if test "${ac_cv_host+set}" = set; then 2021 echo $ECHO_N "(cached) $ECHO_C" >&6 2022else 2023 if test "x$host_alias" = x; then 2024 ac_cv_host=$ac_cv_build 2025else 2026 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2027 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2028echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2029 { (exit 1); exit 1; }; } 2030fi 2031 2032fi 2033{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2034echo "${ECHO_T}$ac_cv_host" >&6; } 2035case $ac_cv_host in 2036*-*-*) ;; 2037*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2038echo "$as_me: error: invalid value of canonical host" >&2;} 2039 { (exit 1); exit 1; }; };; 2040esac 2041host=$ac_cv_host 2042ac_save_IFS=$IFS; IFS='-' 2043set x $ac_cv_host 2044shift 2045host_cpu=$1 2046host_vendor=$2 2047shift; shift 2048# Remember, the first character of IFS is used to create $*, 2049# except with old shells: 2050host_os=$* 2051IFS=$ac_save_IFS 2052case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2053 2054 2055 2056am__api_version='1.10' 2057 2058# Find a good install program. We prefer a C program (faster), 2059# so one script is as good as another. But avoid the broken or 2060# incompatible versions: 2061# SysV /etc/install, /usr/sbin/install 2062# SunOS /usr/etc/install 2063# IRIX /sbin/install 2064# AIX /bin/install 2065# AmigaOS /C/install, which installs bootblocks on floppy discs 2066# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2067# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2068# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2069# OS/2's system install, which has a completely different semantic 2070# ./install, which can be erroneously created by make from ./install.sh. 2071{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2072echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 2073if test -z "$INSTALL"; then 2074if test "${ac_cv_path_install+set}" = set; then 2075 echo $ECHO_N "(cached) $ECHO_C" >&6 2076else 2077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2078for as_dir in $PATH 2079do 2080 IFS=$as_save_IFS 2081 test -z "$as_dir" && as_dir=. 2082 # Account for people who put trailing slashes in PATH elements. 2083case $as_dir/ in 2084 ./ | .// | /cC/* | \ 2085 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2086 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2087 /usr/ucb/* ) ;; 2088 *) 2089 # OSF1 and SCO ODT 3.0 have their own names for install. 2090 # Don't use installbsd from OSF since it installs stuff as root 2091 # by default. 2092 for ac_prog in ginstall scoinst install; do 2093 for ac_exec_ext in '' $ac_executable_extensions; do 2094 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2095 if test $ac_prog = install && 2096 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2097 # AIX install. It has an incompatible calling convention. 2098 : 2099 elif test $ac_prog = install && 2100 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2101 # program-specific install script used by HP pwplus--don't use. 2102 : 2103 else 2104 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2105 break 3 2106 fi 2107 fi 2108 done 2109 done 2110 ;; 2111esac 2112done 2113IFS=$as_save_IFS 2114 2115 2116fi 2117 if test "${ac_cv_path_install+set}" = set; then 2118 INSTALL=$ac_cv_path_install 2119 else 2120 # As a last resort, use the slow shell script. Don't cache a 2121 # value for INSTALL within a source directory, because that will 2122 # break other packages using the cache if that directory is 2123 # removed, or if the value is a relative name. 2124 INSTALL=$ac_install_sh 2125 fi 2126fi 2127{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2128echo "${ECHO_T}$INSTALL" >&6; } 2129 2130# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2131# It thinks the first close brace ends the variable substitution. 2132test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2133 2134test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2135 2136test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2137 2138{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2139echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2140# Just in case 2141sleep 1 2142echo timestamp > conftest.file 2143# Do `set' in a subshell so we don't clobber the current shell's 2144# arguments. Must try -L first in case configure is actually a 2145# symlink; some systems play weird games with the mod time of symlinks 2146# (eg FreeBSD returns the mod time of the symlink's containing 2147# directory). 2148if ( 2149 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2150 if test "$*" = "X"; then 2151 # -L didn't work. 2152 set X `ls -t $srcdir/configure conftest.file` 2153 fi 2154 rm -f conftest.file 2155 if test "$*" != "X $srcdir/configure conftest.file" \ 2156 && test "$*" != "X conftest.file $srcdir/configure"; then 2157 2158 # If neither matched, then we have a broken ls. This can happen 2159 # if, for instance, CONFIG_SHELL is bash and it inherits a 2160 # broken ls alias from the environment. This has actually 2161 # happened. Such a system could not be considered "sane". 2162 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2163alias in your environment" >&5 2164echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2165alias in your environment" >&2;} 2166 { (exit 1); exit 1; }; } 2167 fi 2168 2169 test "$2" = conftest.file 2170 ) 2171then 2172 # Ok. 2173 : 2174else 2175 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2176Check your system clock" >&5 2177echo "$as_me: error: newly created file is older than distributed files! 2178Check your system clock" >&2;} 2179 { (exit 1); exit 1; }; } 2180fi 2181{ echo "$as_me:$LINENO: result: yes" >&5 2182echo "${ECHO_T}yes" >&6; } 2183test "$program_prefix" != NONE && 2184 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2185# Use a double $ so make ignores it. 2186test "$program_suffix" != NONE && 2187 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2188# Double any \ or $. echo might interpret backslashes. 2189# By default was `s,x,x', remove it if useless. 2190cat <<\_ACEOF >conftest.sed 2191s/[\\$]/&&/g;s/;s,x,x,$// 2192_ACEOF 2193program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2194rm -f conftest.sed 2195 2196# expand $ac_aux_dir to an absolute path 2197am_aux_dir=`cd $ac_aux_dir && pwd` 2198 2199test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2200# Use eval to expand $SHELL 2201if eval "$MISSING --run true"; then 2202 am_missing_run="$MISSING --run " 2203else 2204 am_missing_run= 2205 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2206echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2207fi 2208 2209{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2210echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } 2211if test -z "$MKDIR_P"; then 2212 if test "${ac_cv_path_mkdir+set}" = set; then 2213 echo $ECHO_N "(cached) $ECHO_C" >&6 2214else 2215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2216for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2217do 2218 IFS=$as_save_IFS 2219 test -z "$as_dir" && as_dir=. 2220 for ac_prog in mkdir gmkdir; do 2221 for ac_exec_ext in '' $ac_executable_extensions; do 2222 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2223 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2224 'mkdir (GNU coreutils) '* | \ 2225 'mkdir (coreutils) '* | \ 2226 'mkdir (fileutils) '4.1*) 2227 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2228 break 3;; 2229 esac 2230 done 2231 done 2232done 2233IFS=$as_save_IFS 2234 2235fi 2236 2237 if test "${ac_cv_path_mkdir+set}" = set; then 2238 MKDIR_P="$ac_cv_path_mkdir -p" 2239 else 2240 # As a last resort, use the slow shell script. Don't cache a 2241 # value for MKDIR_P within a source directory, because that will 2242 # break other packages using the cache if that directory is 2243 # removed, or if the value is a relative name. 2244 test -d ./--version && rmdir ./--version 2245 MKDIR_P="$ac_install_sh -d" 2246 fi 2247fi 2248{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2249echo "${ECHO_T}$MKDIR_P" >&6; } 2250 2251mkdir_p="$MKDIR_P" 2252case $mkdir_p in 2253 [\\/$]* | ?:[\\/]*) ;; 2254 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2255esac 2256 2257for ac_prog in gawk mawk nawk awk 2258do 2259 # Extract the first word of "$ac_prog", so it can be a program name with args. 2260set dummy $ac_prog; ac_word=$2 2261{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2263if test "${ac_cv_prog_AWK+set}" = set; then 2264 echo $ECHO_N "(cached) $ECHO_C" >&6 2265else 2266 if test -n "$AWK"; then 2267 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2268else 2269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2270for as_dir in $PATH 2271do 2272 IFS=$as_save_IFS 2273 test -z "$as_dir" && as_dir=. 2274 for ac_exec_ext in '' $ac_executable_extensions; do 2275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2276 ac_cv_prog_AWK="$ac_prog" 2277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2278 break 2 2279 fi 2280done 2281done 2282IFS=$as_save_IFS 2283 2284fi 2285fi 2286AWK=$ac_cv_prog_AWK 2287if test -n "$AWK"; then 2288 { echo "$as_me:$LINENO: result: $AWK" >&5 2289echo "${ECHO_T}$AWK" >&6; } 2290else 2291 { echo "$as_me:$LINENO: result: no" >&5 2292echo "${ECHO_T}no" >&6; } 2293fi 2294 2295 2296 test -n "$AWK" && break 2297done 2298 2299{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2300echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2301set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2302if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2303 echo $ECHO_N "(cached) $ECHO_C" >&6 2304else 2305 cat >conftest.make <<\_ACEOF 2306SHELL = /bin/sh 2307all: 2308 @echo '@@@%%%=$(MAKE)=@@@%%%' 2309_ACEOF 2310# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2311case `${MAKE-make} -f conftest.make 2>/dev/null` in 2312 *@@@%%%=?*=@@@%%%*) 2313 eval ac_cv_prog_make_${ac_make}_set=yes;; 2314 *) 2315 eval ac_cv_prog_make_${ac_make}_set=no;; 2316esac 2317rm -f conftest.make 2318fi 2319if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2320 { echo "$as_me:$LINENO: result: yes" >&5 2321echo "${ECHO_T}yes" >&6; } 2322 SET_MAKE= 2323else 2324 { echo "$as_me:$LINENO: result: no" >&5 2325echo "${ECHO_T}no" >&6; } 2326 SET_MAKE="MAKE=${MAKE-make}" 2327fi 2328 2329rm -rf .tst 2>/dev/null 2330mkdir .tst 2>/dev/null 2331if test -d .tst; then 2332 am__leading_dot=. 2333else 2334 am__leading_dot=_ 2335fi 2336rmdir .tst 2>/dev/null 2337 2338if test "`cd $srcdir && pwd`" != "`pwd`"; then 2339 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2340 # is not polluted with repeated "-I." 2341 am__isrc=' -I$(srcdir)' 2342 # test to see if srcdir already configured 2343 if test -f $srcdir/config.status; then 2344 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2345echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2346 { (exit 1); exit 1; }; } 2347 fi 2348fi 2349 2350# test whether we have cygpath 2351if test -z "$CYGPATH_W"; then 2352 if (cygpath --version) >/dev/null 2>/dev/null; then 2353 CYGPATH_W='cygpath -w' 2354 else 2355 CYGPATH_W=echo 2356 fi 2357fi 2358 2359 2360# Define the identity of the package. 2361 PACKAGE='bullet' 2362 VERSION='2.78' 2363 2364 2365cat >>confdefs.h <<_ACEOF 2366#define PACKAGE "$PACKAGE" 2367_ACEOF 2368 2369 2370cat >>confdefs.h <<_ACEOF 2371#define VERSION "$VERSION" 2372_ACEOF 2373 2374# Some tools Automake needs. 2375 2376ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2377 2378 2379AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2380 2381 2382AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2383 2384 2385AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2386 2387 2388MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2389 2390install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2391 2392# Installed binaries are usually stripped using `strip' when the user 2393# run `make install-strip'. However `strip' might not be the right 2394# tool to use in cross-compilation environments, therefore Automake 2395# will honor the `STRIP' environment variable to overrule this program. 2396if test "$cross_compiling" != no; then 2397 if test -n "$ac_tool_prefix"; then 2398 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2399set dummy ${ac_tool_prefix}strip; ac_word=$2 2400{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2402if test "${ac_cv_prog_STRIP+set}" = set; then 2403 echo $ECHO_N "(cached) $ECHO_C" >&6 2404else 2405 if test -n "$STRIP"; then 2406 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2407else 2408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2409for as_dir in $PATH 2410do 2411 IFS=$as_save_IFS 2412 test -z "$as_dir" && as_dir=. 2413 for ac_exec_ext in '' $ac_executable_extensions; do 2414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2415 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2417 break 2 2418 fi 2419done 2420done 2421IFS=$as_save_IFS 2422 2423fi 2424fi 2425STRIP=$ac_cv_prog_STRIP 2426if test -n "$STRIP"; then 2427 { echo "$as_me:$LINENO: result: $STRIP" >&5 2428echo "${ECHO_T}$STRIP" >&6; } 2429else 2430 { echo "$as_me:$LINENO: result: no" >&5 2431echo "${ECHO_T}no" >&6; } 2432fi 2433 2434 2435fi 2436if test -z "$ac_cv_prog_STRIP"; then 2437 ac_ct_STRIP=$STRIP 2438 # Extract the first word of "strip", so it can be a program name with args. 2439set dummy strip; ac_word=$2 2440{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2442if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2443 echo $ECHO_N "(cached) $ECHO_C" >&6 2444else 2445 if test -n "$ac_ct_STRIP"; then 2446 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2447else 2448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2449for as_dir in $PATH 2450do 2451 IFS=$as_save_IFS 2452 test -z "$as_dir" && as_dir=. 2453 for ac_exec_ext in '' $ac_executable_extensions; do 2454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2455 ac_cv_prog_ac_ct_STRIP="strip" 2456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2457 break 2 2458 fi 2459done 2460done 2461IFS=$as_save_IFS 2462 2463fi 2464fi 2465ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2466if test -n "$ac_ct_STRIP"; then 2467 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2468echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2469else 2470 { echo "$as_me:$LINENO: result: no" >&5 2471echo "${ECHO_T}no" >&6; } 2472fi 2473 2474 if test "x$ac_ct_STRIP" = x; then 2475 STRIP=":" 2476 else 2477 case $cross_compiling:$ac_tool_warned in 2478yes:) 2479{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2480whose name does not start with the host triplet. If you think this 2481configuration is useful to you, please write to autoconf@gnu.org." >&5 2482echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2483whose name does not start with the host triplet. If you think this 2484configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2485ac_tool_warned=yes ;; 2486esac 2487 STRIP=$ac_ct_STRIP 2488 fi 2489else 2490 STRIP="$ac_cv_prog_STRIP" 2491fi 2492 2493fi 2494INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2495 2496# We need awk for the "check" target. The system "awk" is bad on 2497# some platforms. 2498# Always define AMTAR for backward compatibility. 2499 2500AMTAR=${AMTAR-"${am_missing_run}tar"} 2501 2502am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2503 2504 2505 2506 2507 2508DEPDIR="${am__leading_dot}deps" 2509 2510ac_config_commands="$ac_config_commands depfiles" 2511 2512 2513am_make=${MAKE-make} 2514cat > confinc << 'END' 2515am__doit: 2516 @echo done 2517.PHONY: am__doit 2518END 2519# If we don't find an include directive, just comment out the code. 2520{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2521echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 2522am__include="#" 2523am__quote= 2524_am_result=none 2525# First try GNU make style include. 2526echo "include confinc" > confmf 2527# We grep out `Entering directory' and `Leaving directory' 2528# messages which can occur if `w' ends up in MAKEFLAGS. 2529# In particular we don't look at `^make:' because GNU make might 2530# be invoked under some other name (usually "gmake"), in which 2531# case it prints its new name instead of `make'. 2532if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2533 am__include=include 2534 am__quote= 2535 _am_result=GNU 2536fi 2537# Now try BSD make style include. 2538if test "$am__include" = "#"; then 2539 echo '.include "confinc"' > confmf 2540 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2541 am__include=.include 2542 am__quote="\"" 2543 _am_result=BSD 2544 fi 2545fi 2546 2547 2548{ echo "$as_me:$LINENO: result: $_am_result" >&5 2549echo "${ECHO_T}$_am_result" >&6; } 2550rm -f confinc confmf 2551 2552# Check whether --enable-dependency-tracking was given. 2553if test "${enable_dependency_tracking+set}" = set; then 2554 enableval=$enable_dependency_tracking; 2555fi 2556 2557if test "x$enable_dependency_tracking" != xno; then 2558 am_depcomp="$ac_aux_dir/depcomp" 2559 AMDEPBACKSLASH='\' 2560fi 2561 if test "x$enable_dependency_tracking" != xno; then 2562 AMDEP_TRUE= 2563 AMDEP_FALSE='#' 2564else 2565 AMDEP_TRUE='#' 2566 AMDEP_FALSE= 2567fi 2568 2569 2570ac_ext=c 2571ac_cpp='$CPP $CPPFLAGS' 2572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2574ac_compiler_gnu=$ac_cv_c_compiler_gnu 2575if test -n "$ac_tool_prefix"; then 2576 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2577set dummy ${ac_tool_prefix}gcc; ac_word=$2 2578{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2579echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2580if test "${ac_cv_prog_CC+set}" = set; then 2581 echo $ECHO_N "(cached) $ECHO_C" >&6 2582else 2583 if test -n "$CC"; then 2584 ac_cv_prog_CC="$CC" # Let the user override the test. 2585else 2586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2587for as_dir in $PATH 2588do 2589 IFS=$as_save_IFS 2590 test -z "$as_dir" && as_dir=. 2591 for ac_exec_ext in '' $ac_executable_extensions; do 2592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2593 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2595 break 2 2596 fi 2597done 2598done 2599IFS=$as_save_IFS 2600 2601fi 2602fi 2603CC=$ac_cv_prog_CC 2604if test -n "$CC"; then 2605 { echo "$as_me:$LINENO: result: $CC" >&5 2606echo "${ECHO_T}$CC" >&6; } 2607else 2608 { echo "$as_me:$LINENO: result: no" >&5 2609echo "${ECHO_T}no" >&6; } 2610fi 2611 2612 2613fi 2614if test -z "$ac_cv_prog_CC"; then 2615 ac_ct_CC=$CC 2616 # Extract the first word of "gcc", so it can be a program name with args. 2617set dummy gcc; ac_word=$2 2618{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2619echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2620if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2621 echo $ECHO_N "(cached) $ECHO_C" >&6 2622else 2623 if test -n "$ac_ct_CC"; then 2624 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2625else 2626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2627for as_dir in $PATH 2628do 2629 IFS=$as_save_IFS 2630 test -z "$as_dir" && as_dir=. 2631 for ac_exec_ext in '' $ac_executable_extensions; do 2632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2633 ac_cv_prog_ac_ct_CC="gcc" 2634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2635 break 2 2636 fi 2637done 2638done 2639IFS=$as_save_IFS 2640 2641fi 2642fi 2643ac_ct_CC=$ac_cv_prog_ac_ct_CC 2644if test -n "$ac_ct_CC"; then 2645 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2646echo "${ECHO_T}$ac_ct_CC" >&6; } 2647else 2648 { echo "$as_me:$LINENO: result: no" >&5 2649echo "${ECHO_T}no" >&6; } 2650fi 2651 2652 if test "x$ac_ct_CC" = x; then 2653 CC="" 2654 else 2655 case $cross_compiling:$ac_tool_warned in 2656yes:) 2657{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2658whose name does not start with the host triplet. If you think this 2659configuration is useful to you, please write to autoconf@gnu.org." >&5 2660echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2661whose name does not start with the host triplet. If you think this 2662configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2663ac_tool_warned=yes ;; 2664esac 2665 CC=$ac_ct_CC 2666 fi 2667else 2668 CC="$ac_cv_prog_CC" 2669fi 2670 2671if test -z "$CC"; then 2672 if test -n "$ac_tool_prefix"; then 2673 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2674set dummy ${ac_tool_prefix}cc; ac_word=$2 2675{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2677if test "${ac_cv_prog_CC+set}" = set; then 2678 echo $ECHO_N "(cached) $ECHO_C" >&6 2679else 2680 if test -n "$CC"; then 2681 ac_cv_prog_CC="$CC" # Let the user override the test. 2682else 2683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2684for as_dir in $PATH 2685do 2686 IFS=$as_save_IFS 2687 test -z "$as_dir" && as_dir=. 2688 for ac_exec_ext in '' $ac_executable_extensions; do 2689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2690 ac_cv_prog_CC="${ac_tool_prefix}cc" 2691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2692 break 2 2693 fi 2694done 2695done 2696IFS=$as_save_IFS 2697 2698fi 2699fi 2700CC=$ac_cv_prog_CC 2701if test -n "$CC"; then 2702 { echo "$as_me:$LINENO: result: $CC" >&5 2703echo "${ECHO_T}$CC" >&6; } 2704else 2705 { echo "$as_me:$LINENO: result: no" >&5 2706echo "${ECHO_T}no" >&6; } 2707fi 2708 2709 2710 fi 2711fi 2712if test -z "$CC"; then 2713 # Extract the first word of "cc", so it can be a program name with args. 2714set dummy cc; ac_word=$2 2715{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2716echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2717if test "${ac_cv_prog_CC+set}" = set; then 2718 echo $ECHO_N "(cached) $ECHO_C" >&6 2719else 2720 if test -n "$CC"; then 2721 ac_cv_prog_CC="$CC" # Let the user override the test. 2722else 2723 ac_prog_rejected=no 2724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2725for as_dir in $PATH 2726do 2727 IFS=$as_save_IFS 2728 test -z "$as_dir" && as_dir=. 2729 for ac_exec_ext in '' $ac_executable_extensions; do 2730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2731 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2732 ac_prog_rejected=yes 2733 continue 2734 fi 2735 ac_cv_prog_CC="cc" 2736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2737 break 2 2738 fi 2739done 2740done 2741IFS=$as_save_IFS 2742 2743if test $ac_prog_rejected = yes; then 2744 # We found a bogon in the path, so make sure we never use it. 2745 set dummy $ac_cv_prog_CC 2746 shift 2747 if test $# != 0; then 2748 # We chose a different compiler from the bogus one. 2749 # However, it has the same basename, so the bogon will be chosen 2750 # first if we set CC to just the basename; use the full file name. 2751 shift 2752 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2753 fi 2754fi 2755fi 2756fi 2757CC=$ac_cv_prog_CC 2758if test -n "$CC"; then 2759 { echo "$as_me:$LINENO: result: $CC" >&5 2760echo "${ECHO_T}$CC" >&6; } 2761else 2762 { echo "$as_me:$LINENO: result: no" >&5 2763echo "${ECHO_T}no" >&6; } 2764fi 2765 2766 2767fi 2768if test -z "$CC"; then 2769 if test -n "$ac_tool_prefix"; then 2770 for ac_prog in cl.exe 2771 do 2772 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2773set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2774{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2776if test "${ac_cv_prog_CC+set}" = set; then 2777 echo $ECHO_N "(cached) $ECHO_C" >&6 2778else 2779 if test -n "$CC"; then 2780 ac_cv_prog_CC="$CC" # Let the user override the test. 2781else 2782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2783for as_dir in $PATH 2784do 2785 IFS=$as_save_IFS 2786 test -z "$as_dir" && as_dir=. 2787 for ac_exec_ext in '' $ac_executable_extensions; do 2788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2789 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2791 break 2 2792 fi 2793done 2794done 2795IFS=$as_save_IFS 2796 2797fi 2798fi 2799CC=$ac_cv_prog_CC 2800if test -n "$CC"; then 2801 { echo "$as_me:$LINENO: result: $CC" >&5 2802echo "${ECHO_T}$CC" >&6; } 2803else 2804 { echo "$as_me:$LINENO: result: no" >&5 2805echo "${ECHO_T}no" >&6; } 2806fi 2807 2808 2809 test -n "$CC" && break 2810 done 2811fi 2812if test -z "$CC"; then 2813 ac_ct_CC=$CC 2814 for ac_prog in cl.exe 2815do 2816 # Extract the first word of "$ac_prog", so it can be a program name with args. 2817set dummy $ac_prog; ac_word=$2 2818{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2819echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2820if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2821 echo $ECHO_N "(cached) $ECHO_C" >&6 2822else 2823 if test -n "$ac_ct_CC"; then 2824 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2825else 2826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2827for as_dir in $PATH 2828do 2829 IFS=$as_save_IFS 2830 test -z "$as_dir" && as_dir=. 2831 for ac_exec_ext in '' $ac_executable_extensions; do 2832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2833 ac_cv_prog_ac_ct_CC="$ac_prog" 2834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2835 break 2 2836 fi 2837done 2838done 2839IFS=$as_save_IFS 2840 2841fi 2842fi 2843ac_ct_CC=$ac_cv_prog_ac_ct_CC 2844if test -n "$ac_ct_CC"; then 2845 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2846echo "${ECHO_T}$ac_ct_CC" >&6; } 2847else 2848 { echo "$as_me:$LINENO: result: no" >&5 2849echo "${ECHO_T}no" >&6; } 2850fi 2851 2852 2853 test -n "$ac_ct_CC" && break 2854done 2855 2856 if test "x$ac_ct_CC" = x; then 2857 CC="" 2858 else 2859 case $cross_compiling:$ac_tool_warned in 2860yes:) 2861{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2862whose name does not start with the host triplet. If you think this 2863configuration is useful to you, please write to autoconf@gnu.org." >&5 2864echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2865whose name does not start with the host triplet. If you think this 2866configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2867ac_tool_warned=yes ;; 2868esac 2869 CC=$ac_ct_CC 2870 fi 2871fi 2872 2873fi 2874 2875 2876test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2877See \`config.log' for more details." >&5 2878echo "$as_me: error: no acceptable C compiler found in \$PATH 2879See \`config.log' for more details." >&2;} 2880 { (exit 1); exit 1; }; } 2881 2882# Provide some information about the compiler. 2883echo "$as_me:$LINENO: checking for C compiler version" >&5 2884ac_compiler=`set X $ac_compile; echo $2` 2885{ (ac_try="$ac_compiler --version >&5" 2886case "(($ac_try" in 2887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2888 *) ac_try_echo=$ac_try;; 2889esac 2890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2891 (eval "$ac_compiler --version >&5") 2>&5 2892 ac_status=$? 2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2894 (exit $ac_status); } 2895{ (ac_try="$ac_compiler -v >&5" 2896case "(($ac_try" in 2897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2898 *) ac_try_echo=$ac_try;; 2899esac 2900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2901 (eval "$ac_compiler -v >&5") 2>&5 2902 ac_status=$? 2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2904 (exit $ac_status); } 2905{ (ac_try="$ac_compiler -V >&5" 2906case "(($ac_try" in 2907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2908 *) ac_try_echo=$ac_try;; 2909esac 2910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2911 (eval "$ac_compiler -V >&5") 2>&5 2912 ac_status=$? 2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2914 (exit $ac_status); } 2915 2916cat >conftest.$ac_ext <<_ACEOF 2917/* confdefs.h. */ 2918_ACEOF 2919cat confdefs.h >>conftest.$ac_ext 2920cat >>conftest.$ac_ext <<_ACEOF 2921/* end confdefs.h. */ 2922 2923int 2924main () 2925{ 2926 2927 ; 2928 return 0; 2929} 2930_ACEOF 2931ac_clean_files_save=$ac_clean_files 2932ac_clean_files="$ac_clean_files a.out a.exe b.out" 2933# Try to create an executable without -o first, disregard a.out. 2934# It will help us diagnose broken compilers, and finding out an intuition 2935# of exeext. 2936{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2937echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2938ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2939# 2940# List of possible output files, starting from the most likely. 2941# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2942# only as a last resort. b.out is created by i960 compilers. 2943ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2944# 2945# The IRIX 6 linker writes into existing files which may not be 2946# executable, retaining their permissions. Remove them first so a 2947# subsequent execution test works. 2948ac_rmfiles= 2949for ac_file in $ac_files 2950do 2951 case $ac_file in 2952 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2953 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2954 esac 2955done 2956rm -f $ac_rmfiles 2957 2958if { (ac_try="$ac_link_default" 2959case "(($ac_try" in 2960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2961 *) ac_try_echo=$ac_try;; 2962esac 2963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2964 (eval "$ac_link_default") 2>&5 2965 ac_status=$? 2966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2967 (exit $ac_status); }; then 2968 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2969# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2970# in a Makefile. We should not override ac_cv_exeext if it was cached, 2971# so that the user can short-circuit this test for compilers unknown to 2972# Autoconf. 2973for ac_file in $ac_files '' 2974do 2975 test -f "$ac_file" || continue 2976 case $ac_file in 2977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2978 ;; 2979 [ab].out ) 2980 # We found the default executable, but exeext='' is most 2981 # certainly right. 2982 break;; 2983 *.* ) 2984 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2985 then :; else 2986 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2987 fi 2988 # We set ac_cv_exeext here because the later test for it is not 2989 # safe: cross compilers may not add the suffix if given an `-o' 2990 # argument, so we may need to know it at that point already. 2991 # Even if this section looks crufty: it has the advantage of 2992 # actually working. 2993 break;; 2994 * ) 2995 break;; 2996 esac 2997done 2998test "$ac_cv_exeext" = no && ac_cv_exeext= 2999 3000else 3001 ac_file='' 3002fi 3003 3004{ echo "$as_me:$LINENO: result: $ac_file" >&5 3005echo "${ECHO_T}$ac_file" >&6; } 3006if test -z "$ac_file"; then 3007 echo "$as_me: failed program was:" >&5 3008sed 's/^/| /' conftest.$ac_ext >&5 3009 3010{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 3011See \`config.log' for more details." >&5 3012echo "$as_me: error: C compiler cannot create executables 3013See \`config.log' for more details." >&2;} 3014 { (exit 77); exit 77; }; } 3015fi 3016 3017ac_exeext=$ac_cv_exeext 3018 3019# Check that the compiler produces executables we can run. If not, either 3020# the compiler is broken, or we cross compile. 3021{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3022echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 3023# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3024# If not cross compiling, check that we can run a simple program. 3025if test "$cross_compiling" != yes; then 3026 if { ac_try='./$ac_file' 3027 { (case "(($ac_try" in 3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3029 *) ac_try_echo=$ac_try;; 3030esac 3031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3032 (eval "$ac_try") 2>&5 3033 ac_status=$? 3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3035 (exit $ac_status); }; }; then 3036 cross_compiling=no 3037 else 3038 if test "$cross_compiling" = maybe; then 3039 cross_compiling=yes 3040 else 3041 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 3042If you meant to cross compile, use \`--host'. 3043See \`config.log' for more details." >&5 3044echo "$as_me: error: cannot run C compiled programs. 3045If you meant to cross compile, use \`--host'. 3046See \`config.log' for more details." >&2;} 3047 { (exit 1); exit 1; }; } 3048 fi 3049 fi 3050fi 3051{ echo "$as_me:$LINENO: result: yes" >&5 3052echo "${ECHO_T}yes" >&6; } 3053 3054rm -f a.out a.exe conftest$ac_cv_exeext b.out 3055ac_clean_files=$ac_clean_files_save 3056# Check that the compiler produces executables we can run. If not, either 3057# the compiler is broken, or we cross compile. 3058{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3059echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 3060{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 3061echo "${ECHO_T}$cross_compiling" >&6; } 3062 3063{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 3064echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 3065if { (ac_try="$ac_link" 3066case "(($ac_try" in 3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3068 *) ac_try_echo=$ac_try;; 3069esac 3070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3071 (eval "$ac_link") 2>&5 3072 ac_status=$? 3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3074 (exit $ac_status); }; then 3075 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3076# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3077# work properly (i.e., refer to `conftest.exe'), while it won't with 3078# `rm'. 3079for ac_file in conftest.exe conftest conftest.*; do 3080 test -f "$ac_file" || continue 3081 case $ac_file in 3082 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3083 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3084 break;; 3085 * ) break;; 3086 esac 3087done 3088else 3089 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3090See \`config.log' for more details." >&5 3091echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3092See \`config.log' for more details." >&2;} 3093 { (exit 1); exit 1; }; } 3094fi 3095 3096rm -f conftest$ac_cv_exeext 3097{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3098echo "${ECHO_T}$ac_cv_exeext" >&6; } 3099 3100rm -f conftest.$ac_ext 3101EXEEXT=$ac_cv_exeext 3102ac_exeext=$EXEEXT 3103{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 3104echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 3105if test "${ac_cv_objext+set}" = set; then 3106 echo $ECHO_N "(cached) $ECHO_C" >&6 3107else 3108 cat >conftest.$ac_ext <<_ACEOF 3109/* confdefs.h. */ 3110_ACEOF 3111cat confdefs.h >>conftest.$ac_ext 3112cat >>conftest.$ac_ext <<_ACEOF 3113/* end confdefs.h. */ 3114 3115int 3116main () 3117{ 3118 3119 ; 3120 return 0; 3121} 3122_ACEOF 3123rm -f conftest.o conftest.obj 3124if { (ac_try="$ac_compile" 3125case "(($ac_try" in 3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3127 *) ac_try_echo=$ac_try;; 3128esac 3129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3130 (eval "$ac_compile") 2>&5 3131 ac_status=$? 3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3133 (exit $ac_status); }; then 3134 for ac_file in conftest.o conftest.obj conftest.*; do 3135 test -f "$ac_file" || continue; 3136 case $ac_file in 3137 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3138 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3139 break;; 3140 esac 3141done 3142else 3143 echo "$as_me: failed program was:" >&5 3144sed 's/^/| /' conftest.$ac_ext >&5 3145 3146{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3147See \`config.log' for more details." >&5 3148echo "$as_me: error: cannot compute suffix of object files: cannot compile 3149See \`config.log' for more details." >&2;} 3150 { (exit 1); exit 1; }; } 3151fi 3152 3153rm -f conftest.$ac_cv_objext conftest.$ac_ext 3154fi 3155{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3156echo "${ECHO_T}$ac_cv_objext" >&6; } 3157OBJEXT=$ac_cv_objext 3158ac_objext=$OBJEXT 3159{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3160echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3161if test "${ac_cv_c_compiler_gnu+set}" = set; then 3162 echo $ECHO_N "(cached) $ECHO_C" >&6 3163else 3164 cat >conftest.$ac_ext <<_ACEOF 3165/* confdefs.h. */ 3166_ACEOF 3167cat confdefs.h >>conftest.$ac_ext 3168cat >>conftest.$ac_ext <<_ACEOF 3169/* end confdefs.h. */ 3170 3171int 3172main () 3173{ 3174#ifndef __GNUC__ 3175 choke me 3176#endif 3177 3178 ; 3179 return 0; 3180} 3181_ACEOF 3182rm -f conftest.$ac_objext 3183if { (ac_try="$ac_compile" 3184case "(($ac_try" in 3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3186 *) ac_try_echo=$ac_try;; 3187esac 3188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3189 (eval "$ac_compile") 2>conftest.er1 3190 ac_status=$? 3191 grep -v '^ *+' conftest.er1 >conftest.err 3192 rm -f conftest.er1 3193 cat conftest.err >&5 3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3195 (exit $ac_status); } && { 3196 test -z "$ac_c_werror_flag" || 3197 test ! -s conftest.err 3198 } && test -s conftest.$ac_objext; then 3199 ac_compiler_gnu=yes 3200else 3201 echo "$as_me: failed program was:" >&5 3202sed 's/^/| /' conftest.$ac_ext >&5 3203 3204 ac_compiler_gnu=no 3205fi 3206 3207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3208ac_cv_c_compiler_gnu=$ac_compiler_gnu 3209 3210fi 3211{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3212echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3213GCC=`test $ac_compiler_gnu = yes && echo yes` 3214ac_test_CFLAGS=${CFLAGS+set} 3215ac_save_CFLAGS=$CFLAGS 3216{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3217echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3218if test "${ac_cv_prog_cc_g+set}" = set; then 3219 echo $ECHO_N "(cached) $ECHO_C" >&6 3220else 3221 ac_save_c_werror_flag=$ac_c_werror_flag 3222 ac_c_werror_flag=yes 3223 ac_cv_prog_cc_g=no 3224 CFLAGS="-g" 3225 cat >conftest.$ac_ext <<_ACEOF 3226/* confdefs.h. */ 3227_ACEOF 3228cat confdefs.h >>conftest.$ac_ext 3229cat >>conftest.$ac_ext <<_ACEOF 3230/* end confdefs.h. */ 3231 3232int 3233main () 3234{ 3235 3236 ; 3237 return 0; 3238} 3239_ACEOF 3240rm -f conftest.$ac_objext 3241if { (ac_try="$ac_compile" 3242case "(($ac_try" in 3243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3244 *) ac_try_echo=$ac_try;; 3245esac 3246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3247 (eval "$ac_compile") 2>conftest.er1 3248 ac_status=$? 3249 grep -v '^ *+' conftest.er1 >conftest.err 3250 rm -f conftest.er1 3251 cat conftest.err >&5 3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3253 (exit $ac_status); } && { 3254 test -z "$ac_c_werror_flag" || 3255 test ! -s conftest.err 3256 } && test -s conftest.$ac_objext; then 3257 ac_cv_prog_cc_g=yes 3258else 3259 echo "$as_me: failed program was:" >&5 3260sed 's/^/| /' conftest.$ac_ext >&5 3261 3262 CFLAGS="" 3263 cat >conftest.$ac_ext <<_ACEOF 3264/* confdefs.h. */ 3265_ACEOF 3266cat confdefs.h >>conftest.$ac_ext 3267cat >>conftest.$ac_ext <<_ACEOF 3268/* end confdefs.h. */ 3269 3270int 3271main () 3272{ 3273 3274 ; 3275 return 0; 3276} 3277_ACEOF 3278rm -f conftest.$ac_objext 3279if { (ac_try="$ac_compile" 3280case "(($ac_try" in 3281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3282 *) ac_try_echo=$ac_try;; 3283esac 3284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3285 (eval "$ac_compile") 2>conftest.er1 3286 ac_status=$? 3287 grep -v '^ *+' conftest.er1 >conftest.err 3288 rm -f conftest.er1 3289 cat conftest.err >&5 3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3291 (exit $ac_status); } && { 3292 test -z "$ac_c_werror_flag" || 3293 test ! -s conftest.err 3294 } && test -s conftest.$ac_objext; then 3295 : 3296else 3297 echo "$as_me: failed program was:" >&5 3298sed 's/^/| /' conftest.$ac_ext >&5 3299 3300 ac_c_werror_flag=$ac_save_c_werror_flag 3301 CFLAGS="-g" 3302 cat >conftest.$ac_ext <<_ACEOF 3303/* confdefs.h. */ 3304_ACEOF 3305cat confdefs.h >>conftest.$ac_ext 3306cat >>conftest.$ac_ext <<_ACEOF 3307/* end confdefs.h. */ 3308 3309int 3310main () 3311{ 3312 3313 ; 3314 return 0; 3315} 3316_ACEOF 3317rm -f conftest.$ac_objext 3318if { (ac_try="$ac_compile" 3319case "(($ac_try" in 3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3321 *) ac_try_echo=$ac_try;; 3322esac 3323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3324 (eval "$ac_compile") 2>conftest.er1 3325 ac_status=$? 3326 grep -v '^ *+' conftest.er1 >conftest.err 3327 rm -f conftest.er1 3328 cat conftest.err >&5 3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3330 (exit $ac_status); } && { 3331 test -z "$ac_c_werror_flag" || 3332 test ! -s conftest.err 3333 } && test -s conftest.$ac_objext; then 3334 ac_cv_prog_cc_g=yes 3335else 3336 echo "$as_me: failed program was:" >&5 3337sed 's/^/| /' conftest.$ac_ext >&5 3338 3339 3340fi 3341 3342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3343fi 3344 3345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3346fi 3347 3348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3349 ac_c_werror_flag=$ac_save_c_werror_flag 3350fi 3351{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3352echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3353if test "$ac_test_CFLAGS" = set; then 3354 CFLAGS=$ac_save_CFLAGS 3355elif test $ac_cv_prog_cc_g = yes; then 3356 if test "$GCC" = yes; then 3357 CFLAGS="-g -O2" 3358 else 3359 CFLAGS="-g" 3360 fi 3361else 3362 if test "$GCC" = yes; then 3363 CFLAGS="-O2" 3364 else 3365 CFLAGS= 3366 fi 3367fi 3368{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3369echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3370if test "${ac_cv_prog_cc_c89+set}" = set; then 3371 echo $ECHO_N "(cached) $ECHO_C" >&6 3372else 3373 ac_cv_prog_cc_c89=no 3374ac_save_CC=$CC 3375cat >conftest.$ac_ext <<_ACEOF 3376/* confdefs.h. */ 3377_ACEOF 3378cat confdefs.h >>conftest.$ac_ext 3379cat >>conftest.$ac_ext <<_ACEOF 3380/* end confdefs.h. */ 3381#include <stdarg.h> 3382#include <stdio.h> 3383#include <sys/types.h> 3384#include <sys/stat.h> 3385/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3386struct buf { int x; }; 3387FILE * (*rcsopen) (struct buf *, struct stat *, int); 3388static char *e (p, i) 3389 char **p; 3390 int i; 3391{ 3392 return p[i]; 3393} 3394static char *f (char * (*g) (char **, int), char **p, ...) 3395{ 3396 char *s; 3397 va_list v; 3398 va_start (v,p); 3399 s = g (p, va_arg (v,int)); 3400 va_end (v); 3401 return s; 3402} 3403 3404/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3405 function prototypes and stuff, but not '\xHH' hex character constants. 3406 These don't provoke an error unfortunately, instead are silently treated 3407 as 'x'. The following induces an error, until -std is added to get 3408 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3409 array size at least. It's necessary to write '\x00'==0 to get something 3410 that's true only with -std. */ 3411int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3412 3413/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3414 inside strings and character constants. */ 3415#define FOO(x) 'x' 3416int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3417 3418int test (int i, double x); 3419struct s1 {int (*f) (int a);}; 3420struct s2 {int (*f) (double a);}; 3421int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3422int argc; 3423char **argv; 3424int 3425main () 3426{ 3427return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3428 ; 3429 return 0; 3430} 3431_ACEOF 3432for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3433 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3434do 3435 CC="$ac_save_CC $ac_arg" 3436 rm -f conftest.$ac_objext 3437if { (ac_try="$ac_compile" 3438case "(($ac_try" in 3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3440 *) ac_try_echo=$ac_try;; 3441esac 3442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3443 (eval "$ac_compile") 2>conftest.er1 3444 ac_status=$? 3445 grep -v '^ *+' conftest.er1 >conftest.err 3446 rm -f conftest.er1 3447 cat conftest.err >&5 3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3449 (exit $ac_status); } && { 3450 test -z "$ac_c_werror_flag" || 3451 test ! -s conftest.err 3452 } && test -s conftest.$ac_objext; then 3453 ac_cv_prog_cc_c89=$ac_arg 3454else 3455 echo "$as_me: failed program was:" >&5 3456sed 's/^/| /' conftest.$ac_ext >&5 3457 3458 3459fi 3460 3461rm -f core conftest.err conftest.$ac_objext 3462 test "x$ac_cv_prog_cc_c89" != "xno" && break 3463done 3464rm -f conftest.$ac_ext 3465CC=$ac_save_CC 3466 3467fi 3468# AC_CACHE_VAL 3469case "x$ac_cv_prog_cc_c89" in 3470 x) 3471 { echo "$as_me:$LINENO: result: none needed" >&5 3472echo "${ECHO_T}none needed" >&6; } ;; 3473 xno) 3474 { echo "$as_me:$LINENO: result: unsupported" >&5 3475echo "${ECHO_T}unsupported" >&6; } ;; 3476 *) 3477 CC="$CC $ac_cv_prog_cc_c89" 3478 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3479echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3480esac 3481 3482 3483ac_ext=c 3484ac_cpp='$CPP $CPPFLAGS' 3485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3487ac_compiler_gnu=$ac_cv_c_compiler_gnu 3488 3489depcc="$CC" am_compiler_list= 3490 3491{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3492echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3493if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3494 echo $ECHO_N "(cached) $ECHO_C" >&6 3495else 3496 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3497 # We make a subdir and do the tests there. Otherwise we can end up 3498 # making bogus files that we don't know about and never remove. For 3499 # instance it was reported that on HP-UX the gcc test will end up 3500 # making a dummy file named `D' -- because `-MD' means `put the output 3501 # in D'. 3502 mkdir conftest.dir 3503 # Copy depcomp to subdir because otherwise we won't find it if we're 3504 # using a relative directory. 3505 cp "$am_depcomp" conftest.dir 3506 cd conftest.dir 3507 # We will build objects and dependencies in a subdirectory because 3508 # it helps to detect inapplicable dependency modes. For instance 3509 # both Tru64's cc and ICC support -MD to output dependencies as a 3510 # side effect of compilation, but ICC will put the dependencies in 3511 # the current directory while Tru64 will put them in the object 3512 # directory. 3513 mkdir sub 3514 3515 am_cv_CC_dependencies_compiler_type=none 3516 if test "$am_compiler_list" = ""; then 3517 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3518 fi 3519 for depmode in $am_compiler_list; do 3520 # Setup a source with many dependencies, because some compilers 3521 # like to wrap large dependency lists on column 80 (with \), and 3522 # we should not choose a depcomp mode which is confused by this. 3523 # 3524 # We need to recreate these files for each test, as the compiler may 3525 # overwrite some of them when testing with obscure command lines. 3526 # This happens at least with the AIX C compiler. 3527 : > sub/conftest.c 3528 for i in 1 2 3 4 5 6; do 3529 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3530 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3531 # Solaris 8's {/usr,}/bin/sh. 3532 touch sub/conftst$i.h 3533 done 3534 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3535 3536 case $depmode in 3537 nosideeffect) 3538 # after this tag, mechanisms are not by side-effect, so they'll 3539 # only be used when explicitly requested 3540 if test "x$enable_dependency_tracking" = xyes; then 3541 continue 3542 else 3543 break 3544 fi 3545 ;; 3546 none) break ;; 3547 esac 3548 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3549 # mode. It turns out that the SunPro C++ compiler does not properly 3550 # handle `-M -o', and we need to detect this. 3551 if depmode=$depmode \ 3552 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3553 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3554 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3555 >/dev/null 2>conftest.err && 3556 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3557 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3558 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3559 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3560 # icc doesn't choke on unknown options, it will just issue warnings 3561 # or remarks (even with -Werror). So we grep stderr for any message 3562 # that says an option was ignored or not supported. 3563 # When given -MP, icc 7.0 and 7.1 complain thusly: 3564 # icc: Command line warning: ignoring option '-M'; no argument required 3565 # The diagnosis changed in icc 8.0: 3566 # icc: Command line remark: option '-MP' not supported 3567 if (grep 'ignoring option' conftest.err || 3568 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3569 am_cv_CC_dependencies_compiler_type=$depmode 3570 break 3571 fi 3572 fi 3573 done 3574 3575 cd .. 3576 rm -rf conftest.dir 3577else 3578 am_cv_CC_dependencies_compiler_type=none 3579fi 3580 3581fi 3582{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3583echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3584CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3585 3586 if 3587 test "x$enable_dependency_tracking" != xno \ 3588 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3589 am__fastdepCC_TRUE= 3590 am__fastdepCC_FALSE='#' 3591else 3592 am__fastdepCC_TRUE='#' 3593 am__fastdepCC_FALSE= 3594fi 3595 3596 3597if test "x$CC" != xcc; then 3598 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5 3599echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; } 3600else 3601 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5 3602echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; } 3603fi 3604set dummy $CC; ac_cc=`echo $2 | 3605 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 3606if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then 3607 echo $ECHO_N "(cached) $ECHO_C" >&6 3608else 3609 cat >conftest.$ac_ext <<_ACEOF 3610/* confdefs.h. */ 3611_ACEOF 3612cat confdefs.h >>conftest.$ac_ext 3613cat >>conftest.$ac_ext <<_ACEOF 3614/* end confdefs.h. */ 3615 3616int 3617main () 3618{ 3619 3620 ; 3621 return 0; 3622} 3623_ACEOF 3624# Make sure it works both with $CC and with simple cc. 3625# We do the test twice because some compilers refuse to overwrite an 3626# existing .o file with -o, though they will create one. 3627ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 3628rm -f conftest2.* 3629if { (case "(($ac_try" in 3630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3631 *) ac_try_echo=$ac_try;; 3632esac 3633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3634 (eval "$ac_try") 2>&5 3635 ac_status=$? 3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3637 (exit $ac_status); } && 3638 test -f conftest2.$ac_objext && { (case "(($ac_try" in 3639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3640 *) ac_try_echo=$ac_try;; 3641esac 3642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3643 (eval "$ac_try") 2>&5 3644 ac_status=$? 3645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3646 (exit $ac_status); }; 3647then 3648 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 3649 if test "x$CC" != xcc; then 3650 # Test first that cc exists at all. 3651 if { ac_try='cc -c conftest.$ac_ext >&5' 3652 { (case "(($ac_try" in 3653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3654 *) ac_try_echo=$ac_try;; 3655esac 3656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3657 (eval "$ac_try") 2>&5 3658 ac_status=$? 3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3660 (exit $ac_status); }; }; then 3661 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 3662 rm -f conftest2.* 3663 if { (case "(($ac_try" in 3664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3665 *) ac_try_echo=$ac_try;; 3666esac 3667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3668 (eval "$ac_try") 2>&5 3669 ac_status=$? 3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3671 (exit $ac_status); } && 3672 test -f conftest2.$ac_objext && { (case "(($ac_try" in 3673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3674 *) ac_try_echo=$ac_try;; 3675esac 3676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3677 (eval "$ac_try") 2>&5 3678 ac_status=$? 3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3680 (exit $ac_status); }; 3681 then 3682 # cc works too. 3683 : 3684 else 3685 # cc exists but doesn't like -o. 3686 eval ac_cv_prog_cc_${ac_cc}_c_o=no 3687 fi 3688 fi 3689 fi 3690else 3691 eval ac_cv_prog_cc_${ac_cc}_c_o=no 3692fi 3693rm -f -r core conftest* 3694 3695fi 3696if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 3697 { echo "$as_me:$LINENO: result: yes" >&5 3698echo "${ECHO_T}yes" >&6; } 3699else 3700 { echo "$as_me:$LINENO: result: no" >&5 3701echo "${ECHO_T}no" >&6; } 3702 3703cat >>confdefs.h <<\_ACEOF 3704#define NO_MINUS_C_MINUS_O 1 3705_ACEOF 3706 3707fi 3708 3709# FIXME: we rely on the cache variable name because 3710# there is no other way. 3711set dummy $CC 3712ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 3713if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then 3714 # Losing compiler, so override with the script. 3715 # FIXME: It is wrong to rewrite CC. 3716 # But if we don't then we get into trouble of one sort or another. 3717 # A longer-term fix would be to have automake use am__CC in this case, 3718 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3719 CC="$am_aux_dir/compile $CC" 3720fi 3721 3722 3723ac_ext=cpp 3724ac_cpp='$CXXCPP $CPPFLAGS' 3725ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3726ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3727ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3728if test -z "$CXX"; then 3729 if test -n "$CCC"; then 3730 CXX=$CCC 3731 else 3732 if test -n "$ac_tool_prefix"; then 3733 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3734 do 3735 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3736set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3737{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3739if test "${ac_cv_prog_CXX+set}" = set; then 3740 echo $ECHO_N "(cached) $ECHO_C" >&6 3741else 3742 if test -n "$CXX"; then 3743 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3744else 3745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3746for as_dir in $PATH 3747do 3748 IFS=$as_save_IFS 3749 test -z "$as_dir" && as_dir=. 3750 for ac_exec_ext in '' $ac_executable_extensions; do 3751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3752 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3754 break 2 3755 fi 3756done 3757done 3758IFS=$as_save_IFS 3759 3760fi 3761fi 3762CXX=$ac_cv_prog_CXX 3763if test -n "$CXX"; then 3764 { echo "$as_me:$LINENO: result: $CXX" >&5 3765echo "${ECHO_T}$CXX" >&6; } 3766else 3767 { echo "$as_me:$LINENO: result: no" >&5 3768echo "${ECHO_T}no" >&6; } 3769fi 3770 3771 3772 test -n "$CXX" && break 3773 done 3774fi 3775if test -z "$CXX"; then 3776 ac_ct_CXX=$CXX 3777 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3778do 3779 # Extract the first word of "$ac_prog", so it can be a program name with args. 3780set dummy $ac_prog; ac_word=$2 3781{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3782echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3783if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 3784 echo $ECHO_N "(cached) $ECHO_C" >&6 3785else 3786 if test -n "$ac_ct_CXX"; then 3787 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3788else 3789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3790for as_dir in $PATH 3791do 3792 IFS=$as_save_IFS 3793 test -z "$as_dir" && as_dir=. 3794 for ac_exec_ext in '' $ac_executable_extensions; do 3795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3796 ac_cv_prog_ac_ct_CXX="$ac_prog" 3797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3798 break 2 3799 fi 3800done 3801done 3802IFS=$as_save_IFS 3803 3804fi 3805fi 3806ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3807if test -n "$ac_ct_CXX"; then 3808 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 3809echo "${ECHO_T}$ac_ct_CXX" >&6; } 3810else 3811 { echo "$as_me:$LINENO: result: no" >&5 3812echo "${ECHO_T}no" >&6; } 3813fi 3814 3815 3816 test -n "$ac_ct_CXX" && break 3817done 3818 3819 if test "x$ac_ct_CXX" = x; then 3820 CXX="g++" 3821 else 3822 case $cross_compiling:$ac_tool_warned in 3823yes:) 3824{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3825whose name does not start with the host triplet. If you think this 3826configuration is useful to you, please write to autoconf@gnu.org." >&5 3827echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3828whose name does not start with the host triplet. If you think this 3829configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3830ac_tool_warned=yes ;; 3831esac 3832 CXX=$ac_ct_CXX 3833 fi 3834fi 3835 3836 fi 3837fi 3838# Provide some information about the compiler. 3839echo "$as_me:$LINENO: checking for C++ compiler version" >&5 3840ac_compiler=`set X $ac_compile; echo $2` 3841{ (ac_try="$ac_compiler --version >&5" 3842case "(($ac_try" in 3843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3844 *) ac_try_echo=$ac_try;; 3845esac 3846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3847 (eval "$ac_compiler --version >&5") 2>&5 3848 ac_status=$? 3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3850 (exit $ac_status); } 3851{ (ac_try="$ac_compiler -v >&5" 3852case "(($ac_try" in 3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3854 *) ac_try_echo=$ac_try;; 3855esac 3856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3857 (eval "$ac_compiler -v >&5") 2>&5 3858 ac_status=$? 3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3860 (exit $ac_status); } 3861{ (ac_try="$ac_compiler -V >&5" 3862case "(($ac_try" in 3863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3864 *) ac_try_echo=$ac_try;; 3865esac 3866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3867 (eval "$ac_compiler -V >&5") 2>&5 3868 ac_status=$? 3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3870 (exit $ac_status); } 3871 3872{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 3873echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 3874if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 3875 echo $ECHO_N "(cached) $ECHO_C" >&6 3876else 3877 cat >conftest.$ac_ext <<_ACEOF 3878/* confdefs.h. */ 3879_ACEOF 3880cat confdefs.h >>conftest.$ac_ext 3881cat >>conftest.$ac_ext <<_ACEOF 3882/* end confdefs.h. */ 3883 3884int 3885main () 3886{ 3887#ifndef __GNUC__ 3888 choke me 3889#endif 3890 3891 ; 3892 return 0; 3893} 3894_ACEOF 3895rm -f conftest.$ac_objext 3896if { (ac_try="$ac_compile" 3897case "(($ac_try" in 3898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3899 *) ac_try_echo=$ac_try;; 3900esac 3901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3902 (eval "$ac_compile") 2>conftest.er1 3903 ac_status=$? 3904 grep -v '^ *+' conftest.er1 >conftest.err 3905 rm -f conftest.er1 3906 cat conftest.err >&5 3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3908 (exit $ac_status); } && { 3909 test -z "$ac_cxx_werror_flag" || 3910 test ! -s conftest.err 3911 } && test -s conftest.$ac_objext; then 3912 ac_compiler_gnu=yes 3913else 3914 echo "$as_me: failed program was:" >&5 3915sed 's/^/| /' conftest.$ac_ext >&5 3916 3917 ac_compiler_gnu=no 3918fi 3919 3920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3921ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3922 3923fi 3924{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 3925echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 3926GXX=`test $ac_compiler_gnu = yes && echo yes` 3927ac_test_CXXFLAGS=${CXXFLAGS+set} 3928ac_save_CXXFLAGS=$CXXFLAGS 3929{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 3930echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 3931if test "${ac_cv_prog_cxx_g+set}" = set; then 3932 echo $ECHO_N "(cached) $ECHO_C" >&6 3933else 3934 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3935 ac_cxx_werror_flag=yes 3936 ac_cv_prog_cxx_g=no 3937 CXXFLAGS="-g" 3938 cat >conftest.$ac_ext <<_ACEOF 3939/* confdefs.h. */ 3940_ACEOF 3941cat confdefs.h >>conftest.$ac_ext 3942cat >>conftest.$ac_ext <<_ACEOF 3943/* end confdefs.h. */ 3944 3945int 3946main () 3947{ 3948 3949 ; 3950 return 0; 3951} 3952_ACEOF 3953rm -f conftest.$ac_objext 3954if { (ac_try="$ac_compile" 3955case "(($ac_try" in 3956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3957 *) ac_try_echo=$ac_try;; 3958esac 3959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3960 (eval "$ac_compile") 2>conftest.er1 3961 ac_status=$? 3962 grep -v '^ *+' conftest.er1 >conftest.err 3963 rm -f conftest.er1 3964 cat conftest.err >&5 3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3966 (exit $ac_status); } && { 3967 test -z "$ac_cxx_werror_flag" || 3968 test ! -s conftest.err 3969 } && test -s conftest.$ac_objext; then 3970 ac_cv_prog_cxx_g=yes 3971else 3972 echo "$as_me: failed program was:" >&5 3973sed 's/^/| /' conftest.$ac_ext >&5 3974 3975 CXXFLAGS="" 3976 cat >conftest.$ac_ext <<_ACEOF 3977/* confdefs.h. */ 3978_ACEOF 3979cat confdefs.h >>conftest.$ac_ext 3980cat >>conftest.$ac_ext <<_ACEOF 3981/* end confdefs.h. */ 3982 3983int 3984main () 3985{ 3986 3987 ; 3988 return 0; 3989} 3990_ACEOF 3991rm -f conftest.$ac_objext 3992if { (ac_try="$ac_compile" 3993case "(($ac_try" in 3994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3995 *) ac_try_echo=$ac_try;; 3996esac 3997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3998 (eval "$ac_compile") 2>conftest.er1 3999 ac_status=$? 4000 grep -v '^ *+' conftest.er1 >conftest.err 4001 rm -f conftest.er1 4002 cat conftest.err >&5 4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4004 (exit $ac_status); } && { 4005 test -z "$ac_cxx_werror_flag" || 4006 test ! -s conftest.err 4007 } && test -s conftest.$ac_objext; then 4008 : 4009else 4010 echo "$as_me: failed program was:" >&5 4011sed 's/^/| /' conftest.$ac_ext >&5 4012 4013 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4014 CXXFLAGS="-g" 4015 cat >conftest.$ac_ext <<_ACEOF 4016/* confdefs.h. */ 4017_ACEOF 4018cat confdefs.h >>conftest.$ac_ext 4019cat >>conftest.$ac_ext <<_ACEOF 4020/* end confdefs.h. */ 4021 4022int 4023main () 4024{ 4025 4026 ; 4027 return 0; 4028} 4029_ACEOF 4030rm -f conftest.$ac_objext 4031if { (ac_try="$ac_compile" 4032case "(($ac_try" in 4033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4034 *) ac_try_echo=$ac_try;; 4035esac 4036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4037 (eval "$ac_compile") 2>conftest.er1 4038 ac_status=$? 4039 grep -v '^ *+' conftest.er1 >conftest.err 4040 rm -f conftest.er1 4041 cat conftest.err >&5 4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4043 (exit $ac_status); } && { 4044 test -z "$ac_cxx_werror_flag" || 4045 test ! -s conftest.err 4046 } && test -s conftest.$ac_objext; then 4047 ac_cv_prog_cxx_g=yes 4048else 4049 echo "$as_me: failed program was:" >&5 4050sed 's/^/| /' conftest.$ac_ext >&5 4051 4052 4053fi 4054 4055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4056fi 4057 4058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4059fi 4060 4061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4062 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4063fi 4064{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 4065echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 4066if test "$ac_test_CXXFLAGS" = set; then 4067 CXXFLAGS=$ac_save_CXXFLAGS 4068elif test $ac_cv_prog_cxx_g = yes; then 4069 if test "$GXX" = yes; then 4070 CXXFLAGS="-g -O2" 4071 else 4072 CXXFLAGS="-g" 4073 fi 4074else 4075 if test "$GXX" = yes; then 4076 CXXFLAGS="-O2" 4077 else 4078 CXXFLAGS= 4079 fi 4080fi 4081ac_ext=c 4082ac_cpp='$CPP $CPPFLAGS' 4083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4085ac_compiler_gnu=$ac_cv_c_compiler_gnu 4086 4087depcc="$CXX" am_compiler_list= 4088 4089{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 4090echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 4091if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 4092 echo $ECHO_N "(cached) $ECHO_C" >&6 4093else 4094 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4095 # We make a subdir and do the tests there. Otherwise we can end up 4096 # making bogus files that we don't know about and never remove. For 4097 # instance it was reported that on HP-UX the gcc test will end up 4098 # making a dummy file named `D' -- because `-MD' means `put the output 4099 # in D'. 4100 mkdir conftest.dir 4101 # Copy depcomp to subdir because otherwise we won't find it if we're 4102 # using a relative directory. 4103 cp "$am_depcomp" conftest.dir 4104 cd conftest.dir 4105 # We will build objects and dependencies in a subdirectory because 4106 # it helps to detect inapplicable dependency modes. For instance 4107 # both Tru64's cc and ICC support -MD to output dependencies as a 4108 # side effect of compilation, but ICC will put the dependencies in 4109 # the current directory while Tru64 will put them in the object 4110 # directory. 4111 mkdir sub 4112 4113 am_cv_CXX_dependencies_compiler_type=none 4114 if test "$am_compiler_list" = ""; then 4115 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4116 fi 4117 for depmode in $am_compiler_list; do 4118 # Setup a source with many dependencies, because some compilers 4119 # like to wrap large dependency lists on column 80 (with \), and 4120 # we should not choose a depcomp mode which is confused by this. 4121 # 4122 # We need to recreate these files for each test, as the compiler may 4123 # overwrite some of them when testing with obscure command lines. 4124 # This happens at least with the AIX C compiler. 4125 : > sub/conftest.c 4126 for i in 1 2 3 4 5 6; do 4127 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4128 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4129 # Solaris 8's {/usr,}/bin/sh. 4130 touch sub/conftst$i.h 4131 done 4132 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4133 4134 case $depmode in 4135 nosideeffect) 4136 # after this tag, mechanisms are not by side-effect, so they'll 4137 # only be used when explicitly requested 4138 if test "x$enable_dependency_tracking" = xyes; then 4139 continue 4140 else 4141 break 4142 fi 4143 ;; 4144 none) break ;; 4145 esac 4146 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4147 # mode. It turns out that the SunPro C++ compiler does not properly 4148 # handle `-M -o', and we need to detect this. 4149 if depmode=$depmode \ 4150 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 4151 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4152 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 4153 >/dev/null 2>conftest.err && 4154 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4155 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4156 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 4157 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4158 # icc doesn't choke on unknown options, it will just issue warnings 4159 # or remarks (even with -Werror). So we grep stderr for any message 4160 # that says an option was ignored or not supported. 4161 # When given -MP, icc 7.0 and 7.1 complain thusly: 4162 # icc: Command line warning: ignoring option '-M'; no argument required 4163 # The diagnosis changed in icc 8.0: 4164 # icc: Command line remark: option '-MP' not supported 4165 if (grep 'ignoring option' conftest.err || 4166 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4167 am_cv_CXX_dependencies_compiler_type=$depmode 4168 break 4169 fi 4170 fi 4171 done 4172 4173 cd .. 4174 rm -rf conftest.dir 4175else 4176 am_cv_CXX_dependencies_compiler_type=none 4177fi 4178 4179fi 4180{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 4181echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 4182CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4183 4184 if 4185 test "x$enable_dependency_tracking" != xno \ 4186 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4187 am__fastdepCXX_TRUE= 4188 am__fastdepCXX_FALSE='#' 4189else 4190 am__fastdepCXX_TRUE='#' 4191 am__fastdepCXX_FALSE= 4192fi 4193 4194 4195case `pwd` in 4196 *\ * | *\ *) 4197 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4198echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4199esac 4200 4201 4202 4203macro_version='2.2.4' 4204macro_revision='1.2976' 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218ltmain="$ac_aux_dir/ltmain.sh" 4219 4220{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 4221echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 4222if test "${ac_cv_path_SED+set}" = set; then 4223 echo $ECHO_N "(cached) $ECHO_C" >&6 4224else 4225 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4226 for ac_i in 1 2 3 4 5 6 7; do 4227 ac_script="$ac_script$as_nl$ac_script" 4228 done 4229 echo "$ac_script" | sed 99q >conftest.sed 4230 $as_unset ac_script || ac_script= 4231 # Extract the first word of "sed gsed" to use in msg output 4232if test -z "$SED"; then 4233set dummy sed gsed; ac_prog_name=$2 4234if test "${ac_cv_path_SED+set}" = set; then 4235 echo $ECHO_N "(cached) $ECHO_C" >&6 4236else 4237 ac_path_SED_found=false 4238# Loop through the user's path and test for each of PROGNAME-LIST 4239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4240for as_dir in $PATH 4241do 4242 IFS=$as_save_IFS 4243 test -z "$as_dir" && as_dir=. 4244 for ac_prog in sed gsed; do 4245 for ac_exec_ext in '' $ac_executable_extensions; do 4246 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4247 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4248 # Check for GNU ac_path_SED and select it if it is found. 4249 # Check for GNU $ac_path_SED 4250case `"$ac_path_SED" --version 2>&1` in 4251*GNU*) 4252 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4253*) 4254 ac_count=0 4255 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4256 while : 4257 do 4258 cat "conftest.in" "conftest.in" >"conftest.tmp" 4259 mv "conftest.tmp" "conftest.in" 4260 cp "conftest.in" "conftest.nl" 4261 echo '' >> "conftest.nl" 4262 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4263 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4264 ac_count=`expr $ac_count + 1` 4265 if test $ac_count -gt ${ac_path_SED_max-0}; then 4266 # Best one so far, save it but keep looking for a better one 4267 ac_cv_path_SED="$ac_path_SED" 4268 ac_path_SED_max=$ac_count 4269 fi 4270 # 10*(2^10) chars as input seems more than enough 4271 test $ac_count -gt 10 && break 4272 done 4273 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4274esac 4275 4276 4277 $ac_path_SED_found && break 3 4278 done 4279done 4280 4281done 4282IFS=$as_save_IFS 4283 4284 4285fi 4286 4287SED="$ac_cv_path_SED" 4288if test -z "$SED"; then 4289 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5 4290echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;} 4291 { (exit 1); exit 1; }; } 4292fi 4293 4294else 4295 ac_cv_path_SED=$SED 4296fi 4297 4298fi 4299{ echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 4300echo "${ECHO_T}$ac_cv_path_SED" >&6; } 4301 SED="$ac_cv_path_SED" 4302 rm -f conftest.sed 4303 4304test -z "$SED" && SED=sed 4305Xsed="$SED -e 1s/^X//" 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4318echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 4319if test "${ac_cv_path_GREP+set}" = set; then 4320 echo $ECHO_N "(cached) $ECHO_C" >&6 4321else 4322 # Extract the first word of "grep ggrep" to use in msg output 4323if test -z "$GREP"; then 4324set dummy grep ggrep; ac_prog_name=$2 4325if test "${ac_cv_path_GREP+set}" = set; then 4326 echo $ECHO_N "(cached) $ECHO_C" >&6 4327else 4328 ac_path_GREP_found=false 4329# Loop through the user's path and test for each of PROGNAME-LIST 4330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4331for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4332do 4333 IFS=$as_save_IFS 4334 test -z "$as_dir" && as_dir=. 4335 for ac_prog in grep ggrep; do 4336 for ac_exec_ext in '' $ac_executable_extensions; do 4337 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4338 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4339 # Check for GNU ac_path_GREP and select it if it is found. 4340 # Check for GNU $ac_path_GREP 4341case `"$ac_path_GREP" --version 2>&1` in 4342*GNU*) 4343 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4344*) 4345 ac_count=0 4346 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4347 while : 4348 do 4349 cat "conftest.in" "conftest.in" >"conftest.tmp" 4350 mv "conftest.tmp" "conftest.in" 4351 cp "conftest.in" "conftest.nl" 4352 echo 'GREP' >> "conftest.nl" 4353 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4354 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4355 ac_count=`expr $ac_count + 1` 4356 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4357 # Best one so far, save it but keep looking for a better one 4358 ac_cv_path_GREP="$ac_path_GREP" 4359 ac_path_GREP_max=$ac_count 4360 fi 4361 # 10*(2^10) chars as input seems more than enough 4362 test $ac_count -gt 10 && break 4363 done 4364 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4365esac 4366 4367 4368 $ac_path_GREP_found && break 3 4369 done 4370done 4371 4372done 4373IFS=$as_save_IFS 4374 4375 4376fi 4377 4378GREP="$ac_cv_path_GREP" 4379if test -z "$GREP"; then 4380 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4381echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4382 { (exit 1); exit 1; }; } 4383fi 4384 4385else 4386 ac_cv_path_GREP=$GREP 4387fi 4388 4389 4390fi 4391{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4392echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 4393 GREP="$ac_cv_path_GREP" 4394 4395 4396{ echo "$as_me:$LINENO: checking for egrep" >&5 4397echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 4398if test "${ac_cv_path_EGREP+set}" = set; then 4399 echo $ECHO_N "(cached) $ECHO_C" >&6 4400else 4401 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4402 then ac_cv_path_EGREP="$GREP -E" 4403 else 4404 # Extract the first word of "egrep" to use in msg output 4405if test -z "$EGREP"; then 4406set dummy egrep; ac_prog_name=$2 4407if test "${ac_cv_path_EGREP+set}" = set; then 4408 echo $ECHO_N "(cached) $ECHO_C" >&6 4409else 4410 ac_path_EGREP_found=false 4411# Loop through the user's path and test for each of PROGNAME-LIST 4412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4413for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4414do 4415 IFS=$as_save_IFS 4416 test -z "$as_dir" && as_dir=. 4417 for ac_prog in egrep; do 4418 for ac_exec_ext in '' $ac_executable_extensions; do 4419 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4420 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4421 # Check for GNU ac_path_EGREP and select it if it is found. 4422 # Check for GNU $ac_path_EGREP 4423case `"$ac_path_EGREP" --version 2>&1` in 4424*GNU*) 4425 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4426*) 4427 ac_count=0 4428 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4429 while : 4430 do 4431 cat "conftest.in" "conftest.in" >"conftest.tmp" 4432 mv "conftest.tmp" "conftest.in" 4433 cp "conftest.in" "conftest.nl" 4434 echo 'EGREP' >> "conftest.nl" 4435 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4436 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4437 ac_count=`expr $ac_count + 1` 4438 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4439 # Best one so far, save it but keep looking for a better one 4440 ac_cv_path_EGREP="$ac_path_EGREP" 4441 ac_path_EGREP_max=$ac_count 4442 fi 4443 # 10*(2^10) chars as input seems more than enough 4444 test $ac_count -gt 10 && break 4445 done 4446 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4447esac 4448 4449 4450 $ac_path_EGREP_found && break 3 4451 done 4452done 4453 4454done 4455IFS=$as_save_IFS 4456 4457 4458fi 4459 4460EGREP="$ac_cv_path_EGREP" 4461if test -z "$EGREP"; then 4462 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4463echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4464 { (exit 1); exit 1; }; } 4465fi 4466 4467else 4468 ac_cv_path_EGREP=$EGREP 4469fi 4470 4471 4472 fi 4473fi 4474{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4475echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4476 EGREP="$ac_cv_path_EGREP" 4477 4478 4479{ echo "$as_me:$LINENO: checking for fgrep" >&5 4480echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; } 4481if test "${ac_cv_path_FGREP+set}" = set; then 4482 echo $ECHO_N "(cached) $ECHO_C" >&6 4483else 4484 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4485 then ac_cv_path_FGREP="$GREP -F" 4486 else 4487 # Extract the first word of "fgrep" to use in msg output 4488if test -z "$FGREP"; then 4489set dummy fgrep; ac_prog_name=$2 4490if test "${ac_cv_path_FGREP+set}" = set; then 4491 echo $ECHO_N "(cached) $ECHO_C" >&6 4492else 4493 ac_path_FGREP_found=false 4494# Loop through the user's path and test for each of PROGNAME-LIST 4495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4496for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4497do 4498 IFS=$as_save_IFS 4499 test -z "$as_dir" && as_dir=. 4500 for ac_prog in fgrep; do 4501 for ac_exec_ext in '' $ac_executable_extensions; do 4502 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4503 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4504 # Check for GNU ac_path_FGREP and select it if it is found. 4505 # Check for GNU $ac_path_FGREP 4506case `"$ac_path_FGREP" --version 2>&1` in 4507*GNU*) 4508 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4509*) 4510 ac_count=0 4511 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4512 while : 4513 do 4514 cat "conftest.in" "conftest.in" >"conftest.tmp" 4515 mv "conftest.tmp" "conftest.in" 4516 cp "conftest.in" "conftest.nl" 4517 echo 'FGREP' >> "conftest.nl" 4518 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4519 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4520 ac_count=`expr $ac_count + 1` 4521 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4522 # Best one so far, save it but keep looking for a better one 4523 ac_cv_path_FGREP="$ac_path_FGREP" 4524 ac_path_FGREP_max=$ac_count 4525 fi 4526 # 10*(2^10) chars as input seems more than enough 4527 test $ac_count -gt 10 && break 4528 done 4529 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4530esac 4531 4532 4533 $ac_path_FGREP_found && break 3 4534 done 4535done 4536 4537done 4538IFS=$as_save_IFS 4539 4540 4541fi 4542 4543FGREP="$ac_cv_path_FGREP" 4544if test -z "$FGREP"; then 4545 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4546echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4547 { (exit 1); exit 1; }; } 4548fi 4549 4550else 4551 ac_cv_path_FGREP=$FGREP 4552fi 4553 4554 4555 fi 4556fi 4557{ echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 4558echo "${ECHO_T}$ac_cv_path_FGREP" >&6; } 4559 FGREP="$ac_cv_path_FGREP" 4560 4561 4562test -z "$GREP" && GREP=grep 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582# Check whether --with-gnu-ld was given. 4583if test "${with_gnu_ld+set}" = set; then 4584 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4585else 4586 with_gnu_ld=no 4587fi 4588 4589ac_prog=ld 4590if test "$GCC" = yes; then 4591 # Check if gcc -print-prog-name=ld gives a path. 4592 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4593echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 4594 case $host in 4595 *-*-mingw*) 4596 # gcc leaves a trailing carriage return which upsets mingw 4597 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4598 *) 4599 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4600 esac 4601 case $ac_prog in 4602 # Accept absolute paths. 4603 [\\/]* | ?:[\\/]*) 4604 re_direlt='/[^/][^/]*/\.\./' 4605 # Canonicalize the pathname of ld 4606 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4607 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4608 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4609 done 4610 test -z "$LD" && LD="$ac_prog" 4611 ;; 4612 "") 4613 # If it fails, then pretend we aren't using GCC. 4614 ac_prog=ld 4615 ;; 4616 *) 4617 # If it is relative, then search for the first ld in PATH. 4618 with_gnu_ld=unknown 4619 ;; 4620 esac 4621elif test "$with_gnu_ld" = yes; then 4622 { echo "$as_me:$LINENO: checking for GNU ld" >&5 4623echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 4624else 4625 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4626echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 4627fi 4628if test "${lt_cv_path_LD+set}" = set; then 4629 echo $ECHO_N "(cached) $ECHO_C" >&6 4630else 4631 if test -z "$LD"; then 4632 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4633 for ac_dir in $PATH; do 4634 IFS="$lt_save_ifs" 4635 test -z "$ac_dir" && ac_dir=. 4636 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4637 lt_cv_path_LD="$ac_dir/$ac_prog" 4638 # Check to see if the program is GNU ld. I'd rather use --version, 4639 # but apparently some variants of GNU ld only accept -v. 4640 # Break only if it was the GNU/non-GNU ld that we prefer. 4641 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4642 *GNU* | *'with BFD'*) 4643 test "$with_gnu_ld" != no && break 4644 ;; 4645 *) 4646 test "$with_gnu_ld" != yes && break 4647 ;; 4648 esac 4649 fi 4650 done 4651 IFS="$lt_save_ifs" 4652else 4653 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4654fi 4655fi 4656 4657LD="$lt_cv_path_LD" 4658if test -n "$LD"; then 4659 { echo "$as_me:$LINENO: result: $LD" >&5 4660echo "${ECHO_T}$LD" >&6; } 4661else 4662 { echo "$as_me:$LINENO: result: no" >&5 4663echo "${ECHO_T}no" >&6; } 4664fi 4665test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4666echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4667 { (exit 1); exit 1; }; } 4668{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4669echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 4670if test "${lt_cv_prog_gnu_ld+set}" = set; then 4671 echo $ECHO_N "(cached) $ECHO_C" >&6 4672else 4673 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4674case `$LD -v 2>&1 </dev/null` in 4675*GNU* | *'with BFD'*) 4676 lt_cv_prog_gnu_ld=yes 4677 ;; 4678*) 4679 lt_cv_prog_gnu_ld=no 4680 ;; 4681esac 4682fi 4683{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4684echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 4685with_gnu_ld=$lt_cv_prog_gnu_ld 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695{ echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 4696echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; } 4697if test "${lt_cv_path_NM+set}" = set; then 4698 echo $ECHO_N "(cached) $ECHO_C" >&6 4699else 4700 if test -n "$NM"; then 4701 # Let the user override the test. 4702 lt_cv_path_NM="$NM" 4703else 4704 lt_nm_to_check="${ac_tool_prefix}nm" 4705 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4706 lt_nm_to_check="$lt_nm_to_check nm" 4707 fi 4708 for lt_tmp_nm in $lt_nm_to_check; do 4709 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4710 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4711 IFS="$lt_save_ifs" 4712 test -z "$ac_dir" && ac_dir=. 4713 tmp_nm="$ac_dir/$lt_tmp_nm" 4714 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4715 # Check to see if the nm accepts a BSD-compat flag. 4716 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4717 # nm: unknown option "B" ignored 4718 # Tru64's nm complains that /dev/null is an invalid object file 4719 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4720 */dev/null* | *'Invalid file or object type'*) 4721 lt_cv_path_NM="$tmp_nm -B" 4722 break 4723 ;; 4724 *) 4725 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4726 */dev/null*) 4727 lt_cv_path_NM="$tmp_nm -p" 4728 break 4729 ;; 4730 *) 4731 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4732 continue # so that we can try to find one that supports BSD flags 4733 ;; 4734 esac 4735 ;; 4736 esac 4737 fi 4738 done 4739 IFS="$lt_save_ifs" 4740 done 4741 : ${lt_cv_path_NM=no} 4742fi 4743fi 4744{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4745echo "${ECHO_T}$lt_cv_path_NM" >&6; } 4746if test "$lt_cv_path_NM" != "no"; then 4747 NM="$lt_cv_path_NM" 4748else 4749 # Didn't find any BSD compatible name lister, look for dumpbin. 4750 if test -n "$ac_tool_prefix"; then 4751 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4752 do 4753 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4754set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4755{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4757if test "${ac_cv_prog_DUMPBIN+set}" = set; then 4758 echo $ECHO_N "(cached) $ECHO_C" >&6 4759else 4760 if test -n "$DUMPBIN"; then 4761 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4762else 4763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4764for as_dir in $PATH 4765do 4766 IFS=$as_save_IFS 4767 test -z "$as_dir" && as_dir=. 4768 for ac_exec_ext in '' $ac_executable_extensions; do 4769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4770 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4772 break 2 4773 fi 4774done 4775done 4776IFS=$as_save_IFS 4777 4778fi 4779fi 4780DUMPBIN=$ac_cv_prog_DUMPBIN 4781if test -n "$DUMPBIN"; then 4782 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5 4783echo "${ECHO_T}$DUMPBIN" >&6; } 4784else 4785 { echo "$as_me:$LINENO: result: no" >&5 4786echo "${ECHO_T}no" >&6; } 4787fi 4788 4789 4790 test -n "$DUMPBIN" && break 4791 done 4792fi 4793if test -z "$DUMPBIN"; then 4794 ac_ct_DUMPBIN=$DUMPBIN 4795 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4796do 4797 # Extract the first word of "$ac_prog", so it can be a program name with args. 4798set dummy $ac_prog; ac_word=$2 4799{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4801if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then 4802 echo $ECHO_N "(cached) $ECHO_C" >&6 4803else 4804 if test -n "$ac_ct_DUMPBIN"; then 4805 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4806else 4807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4808for as_dir in $PATH 4809do 4810 IFS=$as_save_IFS 4811 test -z "$as_dir" && as_dir=. 4812 for ac_exec_ext in '' $ac_executable_extensions; do 4813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4814 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4816 break 2 4817 fi 4818done 4819done 4820IFS=$as_save_IFS 4821 4822fi 4823fi 4824ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4825if test -n "$ac_ct_DUMPBIN"; then 4826 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 4827echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; } 4828else 4829 { echo "$as_me:$LINENO: result: no" >&5 4830echo "${ECHO_T}no" >&6; } 4831fi 4832 4833 4834 test -n "$ac_ct_DUMPBIN" && break 4835done 4836 4837 if test "x$ac_ct_DUMPBIN" = x; then 4838 DUMPBIN=":" 4839 else 4840 case $cross_compiling:$ac_tool_warned in 4841yes:) 4842{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4843whose name does not start with the host triplet. If you think this 4844configuration is useful to you, please write to autoconf@gnu.org." >&5 4845echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4846whose name does not start with the host triplet. If you think this 4847configuration is useful to you, please write to autoconf@gnu.org." >&2;} 4848ac_tool_warned=yes ;; 4849esac 4850 DUMPBIN=$ac_ct_DUMPBIN 4851 fi 4852fi 4853 4854 4855 if test "$DUMPBIN" != ":"; then 4856 NM="$DUMPBIN" 4857 fi 4858fi 4859test -z "$NM" && NM=nm 4860 4861 4862 4863 4864 4865 4866{ echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 4867echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; } 4868if test "${lt_cv_nm_interface+set}" = set; then 4869 echo $ECHO_N "(cached) $ECHO_C" >&6 4870else 4871 lt_cv_nm_interface="BSD nm" 4872 echo "int some_variable = 0;" > conftest.$ac_ext 4873 (eval echo "\"\$as_me:4873: $ac_compile\"" >&5) 4874 (eval "$ac_compile" 2>conftest.err) 4875 cat conftest.err >&5 4876 (eval echo "\"\$as_me:4876: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4877 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4878 cat conftest.err >&5 4879 (eval echo "\"\$as_me:4879: output\"" >&5) 4880 cat conftest.out >&5 4881 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4882 lt_cv_nm_interface="MS dumpbin" 4883 fi 4884 rm -r -f conftest* 4885fi 4886{ echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 4887echo "${ECHO_T}$lt_cv_nm_interface" >&6; } 4888 4889{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 4890echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 4891LN_S=$as_ln_s 4892if test "$LN_S" = "ln -s"; then 4893 { echo "$as_me:$LINENO: result: yes" >&5 4894echo "${ECHO_T}yes" >&6; } 4895else 4896 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4897echo "${ECHO_T}no, using $LN_S" >&6; } 4898fi 4899 4900# find the maximum length of command line arguments 4901{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 4902echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 4903if test "${lt_cv_sys_max_cmd_len+set}" = set; then 4904 echo $ECHO_N "(cached) $ECHO_C" >&6 4905else 4906 i=0 4907 teststring="ABCD" 4908 4909 case $build_os in 4910 msdosdjgpp*) 4911 # On DJGPP, this test can blow up pretty badly due to problems in libc 4912 # (any single argument exceeding 2000 bytes causes a buffer overrun 4913 # during glob expansion). Even if it were fixed, the result of this 4914 # check would be larger than it should be. 4915 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4916 ;; 4917 4918 gnu*) 4919 # Under GNU Hurd, this test is not required because there is 4920 # no limit to the length of command line arguments. 4921 # Libtool will interpret -1 as no limit whatsoever 4922 lt_cv_sys_max_cmd_len=-1; 4923 ;; 4924 4925 cygwin* | mingw*) 4926 # On Win9x/ME, this test blows up -- it succeeds, but takes 4927 # about 5 minutes as the teststring grows exponentially. 4928 # Worse, since 9x/ME are not pre-emptively multitasking, 4929 # you end up with a "frozen" computer, even though with patience 4930 # the test eventually succeeds (with a max line length of 256k). 4931 # Instead, let's just punt: use the minimum linelength reported by 4932 # all of the supported platforms: 8192 (on NT/2K/XP). 4933 lt_cv_sys_max_cmd_len=8192; 4934 ;; 4935 4936 amigaos*) 4937 # On AmigaOS with pdksh, this test takes hours, literally. 4938 # So we just punt and use a minimum line length of 8192. 4939 lt_cv_sys_max_cmd_len=8192; 4940 ;; 4941 4942 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4943 # This has been around since 386BSD, at least. Likely further. 4944 if test -x /sbin/sysctl; then 4945 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4946 elif test -x /usr/sbin/sysctl; then 4947 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4948 else 4949 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4950 fi 4951 # And add a safety zone 4952 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4953 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4954 ;; 4955 4956 interix*) 4957 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4958 lt_cv_sys_max_cmd_len=196608 4959 ;; 4960 4961 osf*) 4962 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4963 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4964 # nice to cause kernel panics so lets avoid the loop below. 4965 # First set a reasonable default. 4966 lt_cv_sys_max_cmd_len=16384 4967 # 4968 if test -x /sbin/sysconfig; then 4969 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4970 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4971 esac 4972 fi 4973 ;; 4974 sco3.2v5*) 4975 lt_cv_sys_max_cmd_len=102400 4976 ;; 4977 sysv5* | sco5v6* | sysv4.2uw2*) 4978 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4979 if test -n "$kargmax"; then 4980 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4981 else 4982 lt_cv_sys_max_cmd_len=32768 4983 fi 4984 ;; 4985 *) 4986 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4987 if test -n "$lt_cv_sys_max_cmd_len"; then 4988 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4989 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4990 else 4991 # Make teststring a little bigger before we do anything with it. 4992 # a 1K string should be a reasonable start. 4993 for i in 1 2 3 4 5 6 7 8 ; do 4994 teststring=$teststring$teststring 4995 done 4996 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4997 # If test is not a shell built-in, we'll probably end up computing a 4998 # maximum length that is only half of the actual maximum length, but 4999 # we can't tell. 5000 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 5001 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 5002 test $i != 17 # 1/2 MB should be enough 5003 do 5004 i=`expr $i + 1` 5005 teststring=$teststring$teststring 5006 done 5007 # Only check the string length outside the loop. 5008 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5009 teststring= 5010 # Add a significant safety factor because C++ compilers can tack on 5011 # massive amounts of additional arguments before passing them to the 5012 # linker. It appears as though 1/2 is a usable value. 5013 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5014 fi 5015 ;; 5016 esac 5017 5018fi 5019 5020if test -n $lt_cv_sys_max_cmd_len ; then 5021 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 5022echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 5023else 5024 { echo "$as_me:$LINENO: result: none" >&5 5025echo "${ECHO_T}none" >&6; } 5026fi 5027max_cmd_len=$lt_cv_sys_max_cmd_len 5028 5029 5030 5031 5032 5033 5034: ${CP="cp -f"} 5035: ${MV="mv -f"} 5036: ${RM="rm -f"} 5037 5038{ echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 5039echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; } 5040# Try some XSI features 5041xsi_shell=no 5042( _lt_dummy="a/b/c" 5043 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5044 = c,a/b,, \ 5045 && eval 'test $(( 1 + 1 )) -eq 2 \ 5046 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5047 && xsi_shell=yes 5048{ echo "$as_me:$LINENO: result: $xsi_shell" >&5 5049echo "${ECHO_T}$xsi_shell" >&6; } 5050 5051 5052{ echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 5053echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; } 5054lt_shell_append=no 5055( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5056 >/dev/null 2>&1 \ 5057 && lt_shell_append=yes 5058{ echo "$as_me:$LINENO: result: $lt_shell_append" >&5 5059echo "${ECHO_T}$lt_shell_append" >&6; } 5060 5061 5062if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5063 lt_unset=unset 5064else 5065 lt_unset=false 5066fi 5067 5068 5069 5070 5071 5072# test EBCDIC or ASCII 5073case `echo X|tr X '\101'` in 5074 A) # ASCII based system 5075 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5076 lt_SP2NL='tr \040 \012' 5077 lt_NL2SP='tr \015\012 \040\040' 5078 ;; 5079 *) # EBCDIC based system 5080 lt_SP2NL='tr \100 \n' 5081 lt_NL2SP='tr \r\n \100\100' 5082 ;; 5083esac 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 5094echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 5095if test "${lt_cv_ld_reload_flag+set}" = set; then 5096 echo $ECHO_N "(cached) $ECHO_C" >&6 5097else 5098 lt_cv_ld_reload_flag='-r' 5099fi 5100{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 5101echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 5102reload_flag=$lt_cv_ld_reload_flag 5103case $reload_flag in 5104"" | " "*) ;; 5105*) reload_flag=" $reload_flag" ;; 5106esac 5107reload_cmds='$LD$reload_flag -o $output$reload_objs' 5108case $host_os in 5109 darwin*) 5110 if test "$GCC" = yes; then 5111 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5112 else 5113 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5114 fi 5115 ;; 5116esac 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 5128echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } 5129if test "${lt_cv_deplibs_check_method+set}" = set; then 5130 echo $ECHO_N "(cached) $ECHO_C" >&6 5131else 5132 lt_cv_file_magic_cmd='$MAGIC_CMD' 5133lt_cv_file_magic_test_file= 5134lt_cv_deplibs_check_method='unknown' 5135# Need to set the preceding variable on all platforms that support 5136# interlibrary dependencies. 5137# 'none' -- dependencies not supported. 5138# `unknown' -- same as none, but documents that we really don't know. 5139# 'pass_all' -- all dependencies passed with no checks. 5140# 'test_compile' -- check by making test program. 5141# 'file_magic [[regex]]' -- check by looking for files in library path 5142# which responds to the $file_magic_cmd with a given extended regex. 5143# If you have `file' or equivalent on your system and you're not sure 5144# whether `pass_all' will *always* work, you probably want this one. 5145 5146case $host_os in 5147aix[4-9]*) 5148 lt_cv_deplibs_check_method=pass_all 5149 ;; 5150 5151beos*) 5152 lt_cv_deplibs_check_method=pass_all 5153 ;; 5154 5155bsdi[45]*) 5156 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5157 lt_cv_file_magic_cmd='/usr/bin/file -L' 5158 lt_cv_file_magic_test_file=/shlib/libc.so 5159 ;; 5160 5161cygwin*) 5162 # func_win32_libid is a shell function defined in ltmain.sh 5163 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5164 lt_cv_file_magic_cmd='func_win32_libid' 5165 ;; 5166 5167mingw* | pw32*) 5168 # Base MSYS/MinGW do not provide the 'file' command needed by 5169 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5170 # unless we find 'file', for example because we are cross-compiling. 5171 if ( file / ) >/dev/null 2>&1; then 5172 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5173 lt_cv_file_magic_cmd='func_win32_libid' 5174 else 5175 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5176 lt_cv_file_magic_cmd='$OBJDUMP -f' 5177 fi 5178 ;; 5179 5180darwin* | rhapsody*) 5181 lt_cv_deplibs_check_method=pass_all 5182 ;; 5183 5184freebsd* | dragonfly*) 5185 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5186 case $host_cpu in 5187 i*86 ) 5188 # Not sure whether the presence of OpenBSD here was a mistake. 5189 # Let's accept both of them until this is cleared up. 5190 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5191 lt_cv_file_magic_cmd=/usr/bin/file 5192 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5193 ;; 5194 esac 5195 else 5196 lt_cv_deplibs_check_method=pass_all 5197 fi 5198 ;; 5199 5200gnu*) 5201 lt_cv_deplibs_check_method=pass_all 5202 ;; 5203 5204hpux10.20* | hpux11*) 5205 lt_cv_file_magic_cmd=/usr/bin/file 5206 case $host_cpu in 5207 ia64*) 5208 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5209 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5210 ;; 5211 hppa*64*) 5212 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]' 5213 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5214 ;; 5215 *) 5216 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 5217 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5218 ;; 5219 esac 5220 ;; 5221 5222interix[3-9]*) 5223 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5224 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5225 ;; 5226 5227irix5* | irix6* | nonstopux*) 5228 case $LD in 5229 *-32|*"-32 ") libmagic=32-bit;; 5230 *-n32|*"-n32 ") libmagic=N32;; 5231 *-64|*"-64 ") libmagic=64-bit;; 5232 *) libmagic=never-match;; 5233 esac 5234 lt_cv_deplibs_check_method=pass_all 5235 ;; 5236 5237# This must be Linux ELF. 5238linux* | k*bsd*-gnu) 5239 lt_cv_deplibs_check_method=pass_all 5240 ;; 5241 5242netbsd*) 5243 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5244 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5245 else 5246 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5247 fi 5248 ;; 5249 5250newos6*) 5251 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5252 lt_cv_file_magic_cmd=/usr/bin/file 5253 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5254 ;; 5255 5256*nto* | *qnx*) 5257 lt_cv_deplibs_check_method=pass_all 5258 ;; 5259 5260openbsd*) 5261 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5262 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5263 else 5264 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5265 fi 5266 ;; 5267 5268osf3* | osf4* | osf5*) 5269 lt_cv_deplibs_check_method=pass_all 5270 ;; 5271 5272rdos*) 5273 lt_cv_deplibs_check_method=pass_all 5274 ;; 5275 5276solaris*) 5277 lt_cv_deplibs_check_method=pass_all 5278 ;; 5279 5280sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5281 lt_cv_deplibs_check_method=pass_all 5282 ;; 5283 5284sysv4 | sysv4.3*) 5285 case $host_vendor in 5286 motorola) 5287 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]' 5288 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5289 ;; 5290 ncr) 5291 lt_cv_deplibs_check_method=pass_all 5292 ;; 5293 sequent) 5294 lt_cv_file_magic_cmd='/bin/file' 5295 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5296 ;; 5297 sni) 5298 lt_cv_file_magic_cmd='/bin/file' 5299 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5300 lt_cv_file_magic_test_file=/lib/libc.so 5301 ;; 5302 siemens) 5303 lt_cv_deplibs_check_method=pass_all 5304 ;; 5305 pc) 5306 lt_cv_deplibs_check_method=pass_all 5307 ;; 5308 esac 5309 ;; 5310 5311tpf*) 5312 lt_cv_deplibs_check_method=pass_all 5313 ;; 5314esac 5315 5316fi 5317{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 5318echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 5319file_magic_cmd=$lt_cv_file_magic_cmd 5320deplibs_check_method=$lt_cv_deplibs_check_method 5321test -z "$deplibs_check_method" && deplibs_check_method=unknown 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334if test -n "$ac_tool_prefix"; then 5335 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5336set dummy ${ac_tool_prefix}ar; ac_word=$2 5337{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5338echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5339if test "${ac_cv_prog_AR+set}" = set; then 5340 echo $ECHO_N "(cached) $ECHO_C" >&6 5341else 5342 if test -n "$AR"; then 5343 ac_cv_prog_AR="$AR" # Let the user override the test. 5344else 5345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5346for as_dir in $PATH 5347do 5348 IFS=$as_save_IFS 5349 test -z "$as_dir" && as_dir=. 5350 for ac_exec_ext in '' $ac_executable_extensions; do 5351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5352 ac_cv_prog_AR="${ac_tool_prefix}ar" 5353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5354 break 2 5355 fi 5356done 5357done 5358IFS=$as_save_IFS 5359 5360fi 5361fi 5362AR=$ac_cv_prog_AR 5363if test -n "$AR"; then 5364 { echo "$as_me:$LINENO: result: $AR" >&5 5365echo "${ECHO_T}$AR" >&6; } 5366else 5367 { echo "$as_me:$LINENO: result: no" >&5 5368echo "${ECHO_T}no" >&6; } 5369fi 5370 5371 5372fi 5373if test -z "$ac_cv_prog_AR"; then 5374 ac_ct_AR=$AR 5375 # Extract the first word of "ar", so it can be a program name with args. 5376set dummy ar; ac_word=$2 5377{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5378echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5379if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5380 echo $ECHO_N "(cached) $ECHO_C" >&6 5381else 5382 if test -n "$ac_ct_AR"; then 5383 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5384else 5385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5386for as_dir in $PATH 5387do 5388 IFS=$as_save_IFS 5389 test -z "$as_dir" && as_dir=. 5390 for ac_exec_ext in '' $ac_executable_extensions; do 5391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5392 ac_cv_prog_ac_ct_AR="ar" 5393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5394 break 2 5395 fi 5396done 5397done 5398IFS=$as_save_IFS 5399 5400fi 5401fi 5402ac_ct_AR=$ac_cv_prog_ac_ct_AR 5403if test -n "$ac_ct_AR"; then 5404 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 5405echo "${ECHO_T}$ac_ct_AR" >&6; } 5406else 5407 { echo "$as_me:$LINENO: result: no" >&5 5408echo "${ECHO_T}no" >&6; } 5409fi 5410 5411 if test "x$ac_ct_AR" = x; then 5412 AR="false" 5413 else 5414 case $cross_compiling:$ac_tool_warned in 5415yes:) 5416{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5417whose name does not start with the host triplet. If you think this 5418configuration is useful to you, please write to autoconf@gnu.org." >&5 5419echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5420whose name does not start with the host triplet. If you think this 5421configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5422ac_tool_warned=yes ;; 5423esac 5424 AR=$ac_ct_AR 5425 fi 5426else 5427 AR="$ac_cv_prog_AR" 5428fi 5429 5430test -z "$AR" && AR=ar 5431test -z "$AR_FLAGS" && AR_FLAGS=cru 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443if test -n "$ac_tool_prefix"; then 5444 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5445set dummy ${ac_tool_prefix}strip; ac_word=$2 5446{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5447echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5448if test "${ac_cv_prog_STRIP+set}" = set; then 5449 echo $ECHO_N "(cached) $ECHO_C" >&6 5450else 5451 if test -n "$STRIP"; then 5452 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5453else 5454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5455for as_dir in $PATH 5456do 5457 IFS=$as_save_IFS 5458 test -z "$as_dir" && as_dir=. 5459 for ac_exec_ext in '' $ac_executable_extensions; do 5460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5461 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5463 break 2 5464 fi 5465done 5466done 5467IFS=$as_save_IFS 5468 5469fi 5470fi 5471STRIP=$ac_cv_prog_STRIP 5472if test -n "$STRIP"; then 5473 { echo "$as_me:$LINENO: result: $STRIP" >&5 5474echo "${ECHO_T}$STRIP" >&6; } 5475else 5476 { echo "$as_me:$LINENO: result: no" >&5 5477echo "${ECHO_T}no" >&6; } 5478fi 5479 5480 5481fi 5482if test -z "$ac_cv_prog_STRIP"; then 5483 ac_ct_STRIP=$STRIP 5484 # Extract the first word of "strip", so it can be a program name with args. 5485set dummy strip; ac_word=$2 5486{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5487echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5488if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 5489 echo $ECHO_N "(cached) $ECHO_C" >&6 5490else 5491 if test -n "$ac_ct_STRIP"; then 5492 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5493else 5494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5495for as_dir in $PATH 5496do 5497 IFS=$as_save_IFS 5498 test -z "$as_dir" && as_dir=. 5499 for ac_exec_ext in '' $ac_executable_extensions; do 5500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5501 ac_cv_prog_ac_ct_STRIP="strip" 5502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5503 break 2 5504 fi 5505done 5506done 5507IFS=$as_save_IFS 5508 5509fi 5510fi 5511ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5512if test -n "$ac_ct_STRIP"; then 5513 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 5514echo "${ECHO_T}$ac_ct_STRIP" >&6; } 5515else 5516 { echo "$as_me:$LINENO: result: no" >&5 5517echo "${ECHO_T}no" >&6; } 5518fi 5519 5520 if test "x$ac_ct_STRIP" = x; then 5521 STRIP=":" 5522 else 5523 case $cross_compiling:$ac_tool_warned in 5524yes:) 5525{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5526whose name does not start with the host triplet. If you think this 5527configuration is useful to you, please write to autoconf@gnu.org." >&5 5528echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5529whose name does not start with the host triplet. If you think this 5530configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5531ac_tool_warned=yes ;; 5532esac 5533 STRIP=$ac_ct_STRIP 5534 fi 5535else 5536 STRIP="$ac_cv_prog_STRIP" 5537fi 5538 5539test -z "$STRIP" && STRIP=: 5540 5541 5542 5543 5544 5545 5546if test -n "$ac_tool_prefix"; then 5547 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5548set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5549{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5551if test "${ac_cv_prog_RANLIB+set}" = set; then 5552 echo $ECHO_N "(cached) $ECHO_C" >&6 5553else 5554 if test -n "$RANLIB"; then 5555 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5556else 5557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5558for as_dir in $PATH 5559do 5560 IFS=$as_save_IFS 5561 test -z "$as_dir" && as_dir=. 5562 for ac_exec_ext in '' $ac_executable_extensions; do 5563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5564 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5566 break 2 5567 fi 5568done 5569done 5570IFS=$as_save_IFS 5571 5572fi 5573fi 5574RANLIB=$ac_cv_prog_RANLIB 5575if test -n "$RANLIB"; then 5576 { echo "$as_me:$LINENO: result: $RANLIB" >&5 5577echo "${ECHO_T}$RANLIB" >&6; } 5578else 5579 { echo "$as_me:$LINENO: result: no" >&5 5580echo "${ECHO_T}no" >&6; } 5581fi 5582 5583 5584fi 5585if test -z "$ac_cv_prog_RANLIB"; then 5586 ac_ct_RANLIB=$RANLIB 5587 # Extract the first word of "ranlib", so it can be a program name with args. 5588set dummy ranlib; ac_word=$2 5589{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5590echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5591if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5592 echo $ECHO_N "(cached) $ECHO_C" >&6 5593else 5594 if test -n "$ac_ct_RANLIB"; then 5595 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5596else 5597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5598for as_dir in $PATH 5599do 5600 IFS=$as_save_IFS 5601 test -z "$as_dir" && as_dir=. 5602 for ac_exec_ext in '' $ac_executable_extensions; do 5603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5604 ac_cv_prog_ac_ct_RANLIB="ranlib" 5605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5606 break 2 5607 fi 5608done 5609done 5610IFS=$as_save_IFS 5611 5612fi 5613fi 5614ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5615if test -n "$ac_ct_RANLIB"; then 5616 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5617echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 5618else 5619 { echo "$as_me:$LINENO: result: no" >&5 5620echo "${ECHO_T}no" >&6; } 5621fi 5622 5623 if test "x$ac_ct_RANLIB" = x; then 5624 RANLIB=":" 5625 else 5626 case $cross_compiling:$ac_tool_warned in 5627yes:) 5628{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5629whose name does not start with the host triplet. If you think this 5630configuration is useful to you, please write to autoconf@gnu.org." >&5 5631echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5632whose name does not start with the host triplet. If you think this 5633configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5634ac_tool_warned=yes ;; 5635esac 5636 RANLIB=$ac_ct_RANLIB 5637 fi 5638else 5639 RANLIB="$ac_cv_prog_RANLIB" 5640fi 5641 5642test -z "$RANLIB" && RANLIB=: 5643 5644 5645 5646 5647 5648 5649# Determine commands to create old-style static archives. 5650old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5651old_postinstall_cmds='chmod 644 $oldlib' 5652old_postuninstall_cmds= 5653 5654if test -n "$RANLIB"; then 5655 case $host_os in 5656 openbsd*) 5657 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5658 ;; 5659 *) 5660 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5661 ;; 5662 esac 5663 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5664fi 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699# If no C compiler was specified, use CC. 5700LTCC=${LTCC-"$CC"} 5701 5702# If no C compiler flags were specified, use CFLAGS. 5703LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5704 5705# Allow CC to be a program name with arguments. 5706compiler=$CC 5707 5708 5709# Check for command to grab the raw symbol name followed by C symbol from nm. 5710{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5711echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 5712if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5713 echo $ECHO_N "(cached) $ECHO_C" >&6 5714else 5715 5716# These are sane defaults that work on at least a few old systems. 5717# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5718 5719# Character class describing NM global symbol codes. 5720symcode='[BCDEGRST]' 5721 5722# Regexp to match symbols that can be accessed directly from C. 5723sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5724 5725# Define system-specific variables. 5726case $host_os in 5727aix*) 5728 symcode='[BCDT]' 5729 ;; 5730cygwin* | mingw* | pw32*) 5731 symcode='[ABCDGISTW]' 5732 ;; 5733hpux*) 5734 if test "$host_cpu" = ia64; then 5735 symcode='[ABCDEGRST]' 5736 fi 5737 ;; 5738irix* | nonstopux*) 5739 symcode='[BCDEGRST]' 5740 ;; 5741osf*) 5742 symcode='[BCDEGQRST]' 5743 ;; 5744solaris*) 5745 symcode='[BDRT]' 5746 ;; 5747sco3.2v5*) 5748 symcode='[DT]' 5749 ;; 5750sysv4.2uw2*) 5751 symcode='[DT]' 5752 ;; 5753sysv5* | sco5v6* | unixware* | OpenUNIX*) 5754 symcode='[ABDT]' 5755 ;; 5756sysv4) 5757 symcode='[DFNSTU]' 5758 ;; 5759esac 5760 5761# If we're using GNU nm, then use its standard symbol codes. 5762case `$NM -V 2>&1` in 5763*GNU* | *'with BFD'*) 5764 symcode='[ABCDGIRSTW]' ;; 5765esac 5766 5767# Transform an extracted symbol line into a proper C declaration. 5768# Some systems (esp. on ia64) link data and code symbols differently, 5769# so use this general approach. 5770lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5771 5772# Transform an extracted symbol line into symbol name and symbol address 5773lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5774lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 5775 5776# Handle CRLF in mingw tool chain 5777opt_cr= 5778case $build_os in 5779mingw*) 5780 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5781 ;; 5782esac 5783 5784# Try without a prefix underscore, then with it. 5785for ac_symprfx in "" "_"; do 5786 5787 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5788 symxfrm="\\1 $ac_symprfx\\2 \\2" 5789 5790 # Write the raw and C identifiers. 5791 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5792 # Fake it for dumpbin and say T for any non-static function 5793 # and D for any global variable. 5794 # Also find C++ and __fastcall symbols from MSVC++, 5795 # which start with @ or ?. 5796 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5797" {last_section=section; section=\$ 3};"\ 5798" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5799" \$ 0!~/External *\|/{next};"\ 5800" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5801" {if(hide[section]) next};"\ 5802" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5803" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5804" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5805" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5806" ' prfx=^$ac_symprfx" 5807 else 5808 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5809 fi 5810 5811 # Check to see that the pipe works correctly. 5812 pipe_works=no 5813 5814 rm -r -f conftest* 5815 cat > conftest.$ac_ext <<_LT_EOF 5816#ifdef __cplusplus 5817extern "C" { 5818#endif 5819char nm_test_var; 5820void nm_test_func(void); 5821void nm_test_func(void){} 5822#ifdef __cplusplus 5823} 5824#endif 5825int main(){nm_test_var='a';nm_test_func();return(0);} 5826_LT_EOF 5827 5828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5829 (eval $ac_compile) 2>&5 5830 ac_status=$? 5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5832 (exit $ac_status); }; then 5833 # Now try to grab the symbols. 5834 nlist=conftest.nm 5835 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5836 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5837 ac_status=$? 5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5839 (exit $ac_status); } && test -s "$nlist"; then 5840 # Try sorting and uniquifying the output. 5841 if sort "$nlist" | uniq > "$nlist"T; then 5842 mv -f "$nlist"T "$nlist" 5843 else 5844 rm -f "$nlist"T 5845 fi 5846 5847 # Make sure that we snagged all the symbols we need. 5848 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5849 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5850 cat <<_LT_EOF > conftest.$ac_ext 5851#ifdef __cplusplus 5852extern "C" { 5853#endif 5854 5855_LT_EOF 5856 # Now generate the symbol file. 5857 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5858 5859 cat <<_LT_EOF >> conftest.$ac_ext 5860 5861/* The mapping between symbol names and symbols. */ 5862const struct { 5863 const char *name; 5864 void *address; 5865} 5866lt__PROGRAM__LTX_preloaded_symbols[] = 5867{ 5868 { "@PROGRAM@", (void *) 0 }, 5869_LT_EOF 5870 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5871 cat <<\_LT_EOF >> conftest.$ac_ext 5872 {0, (void *) 0} 5873}; 5874 5875/* This works around a problem in FreeBSD linker */ 5876#ifdef FREEBSD_WORKAROUND 5877static const void *lt_preloaded_setup() { 5878 return lt__PROGRAM__LTX_preloaded_symbols; 5879} 5880#endif 5881 5882#ifdef __cplusplus 5883} 5884#endif 5885_LT_EOF 5886 # Now try linking the two files. 5887 mv conftest.$ac_objext conftstm.$ac_objext 5888 lt_save_LIBS="$LIBS" 5889 lt_save_CFLAGS="$CFLAGS" 5890 LIBS="conftstm.$ac_objext" 5891 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5893 (eval $ac_link) 2>&5 5894 ac_status=$? 5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5896 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5897 pipe_works=yes 5898 fi 5899 LIBS="$lt_save_LIBS" 5900 CFLAGS="$lt_save_CFLAGS" 5901 else 5902 echo "cannot find nm_test_func in $nlist" >&5 5903 fi 5904 else 5905 echo "cannot find nm_test_var in $nlist" >&5 5906 fi 5907 else 5908 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5909 fi 5910 else 5911 echo "$progname: failed program was:" >&5 5912 cat conftest.$ac_ext >&5 5913 fi 5914 rm -rf conftest* conftst* 5915 5916 # Do not use the global_symbol_pipe unless it works. 5917 if test "$pipe_works" = yes; then 5918 break 5919 else 5920 lt_cv_sys_global_symbol_pipe= 5921 fi 5922done 5923 5924fi 5925 5926if test -z "$lt_cv_sys_global_symbol_pipe"; then 5927 lt_cv_sys_global_symbol_to_cdecl= 5928fi 5929if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5930 { echo "$as_me:$LINENO: result: failed" >&5 5931echo "${ECHO_T}failed" >&6; } 5932else 5933 { echo "$as_me:$LINENO: result: ok" >&5 5934echo "${ECHO_T}ok" >&6; } 5935fi 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959# Check whether --enable-libtool-lock was given. 5960if test "${enable_libtool_lock+set}" = set; then 5961 enableval=$enable_libtool_lock; 5962fi 5963 5964test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5965 5966# Some flags need to be propagated to the compiler or linker for good 5967# libtool support. 5968case $host in 5969ia64-*-hpux*) 5970 # Find out which ABI we are using. 5971 echo 'int i;' > conftest.$ac_ext 5972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5973 (eval $ac_compile) 2>&5 5974 ac_status=$? 5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5976 (exit $ac_status); }; then 5977 case `/usr/bin/file conftest.$ac_objext` in 5978 *ELF-32*) 5979 HPUX_IA64_MODE="32" 5980 ;; 5981 *ELF-64*) 5982 HPUX_IA64_MODE="64" 5983 ;; 5984 esac 5985 fi 5986 rm -rf conftest* 5987 ;; 5988*-*-irix6*) 5989 # Find out which ABI we are using. 5990 echo '#line 5990 "configure"' > conftest.$ac_ext 5991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5992 (eval $ac_compile) 2>&5 5993 ac_status=$? 5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5995 (exit $ac_status); }; then 5996 if test "$lt_cv_prog_gnu_ld" = yes; then 5997 case `/usr/bin/file conftest.$ac_objext` in 5998 *32-bit*) 5999 LD="${LD-ld} -melf32bsmip" 6000 ;; 6001 *N32*) 6002 LD="${LD-ld} -melf32bmipn32" 6003 ;; 6004 *64-bit*) 6005 LD="${LD-ld} -melf64bmip" 6006 ;; 6007 esac 6008 else 6009 case `/usr/bin/file conftest.$ac_objext` in 6010 *32-bit*) 6011 LD="${LD-ld} -32" 6012 ;; 6013 *N32*) 6014 LD="${LD-ld} -n32" 6015 ;; 6016 *64-bit*) 6017 LD="${LD-ld} -64" 6018 ;; 6019 esac 6020 fi 6021 fi 6022 rm -rf conftest* 6023 ;; 6024 6025x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6026s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6027 # Find out which ABI we are using. 6028 echo 'int i;' > conftest.$ac_ext 6029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6030 (eval $ac_compile) 2>&5 6031 ac_status=$? 6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6033 (exit $ac_status); }; then 6034 case `/usr/bin/file conftest.o` in 6035 *32-bit*) 6036 case $host in 6037 x86_64-*kfreebsd*-gnu) 6038 LD="${LD-ld} -m elf_i386_fbsd" 6039 ;; 6040 x86_64-*linux*) 6041 LD="${LD-ld} -m elf_i386" 6042 ;; 6043 ppc64-*linux*|powerpc64-*linux*) 6044 LD="${LD-ld} -m elf32ppclinux" 6045 ;; 6046 s390x-*linux*) 6047 LD="${LD-ld} -m elf_s390" 6048 ;; 6049 sparc64-*linux*) 6050 LD="${LD-ld} -m elf32_sparc" 6051 ;; 6052 esac 6053 ;; 6054 *64-bit*) 6055 case $host in 6056 x86_64-*kfreebsd*-gnu) 6057 LD="${LD-ld} -m elf_x86_64_fbsd" 6058 ;; 6059 x86_64-*linux*) 6060 LD="${LD-ld} -m elf_x86_64" 6061 ;; 6062 ppc*-*linux*|powerpc*-*linux*) 6063 LD="${LD-ld} -m elf64ppc" 6064 ;; 6065 s390*-*linux*|s390*-*tpf*) 6066 LD="${LD-ld} -m elf64_s390" 6067 ;; 6068 sparc*-*linux*) 6069 LD="${LD-ld} -m elf64_sparc" 6070 ;; 6071 esac 6072 ;; 6073 esac 6074 fi 6075 rm -rf conftest* 6076 ;; 6077 6078*-*-sco3.2v5*) 6079 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6080 SAVE_CFLAGS="$CFLAGS" 6081 CFLAGS="$CFLAGS -belf" 6082 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 6083echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 6084if test "${lt_cv_cc_needs_belf+set}" = set; then 6085 echo $ECHO_N "(cached) $ECHO_C" >&6 6086else 6087 ac_ext=c 6088ac_cpp='$CPP $CPPFLAGS' 6089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6091ac_compiler_gnu=$ac_cv_c_compiler_gnu 6092 6093 cat >conftest.$ac_ext <<_ACEOF 6094/* confdefs.h. */ 6095_ACEOF 6096cat confdefs.h >>conftest.$ac_ext 6097cat >>conftest.$ac_ext <<_ACEOF 6098/* end confdefs.h. */ 6099 6100int 6101main () 6102{ 6103 6104 ; 6105 return 0; 6106} 6107_ACEOF 6108rm -f conftest.$ac_objext conftest$ac_exeext 6109if { (ac_try="$ac_link" 6110case "(($ac_try" in 6111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6112 *) ac_try_echo=$ac_try;; 6113esac 6114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6115 (eval "$ac_link") 2>conftest.er1 6116 ac_status=$? 6117 grep -v '^ *+' conftest.er1 >conftest.err 6118 rm -f conftest.er1 6119 cat conftest.err >&5 6120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6121 (exit $ac_status); } && { 6122 test -z "$ac_c_werror_flag" || 6123 test ! -s conftest.err 6124 } && test -s conftest$ac_exeext && 6125 $as_test_x conftest$ac_exeext; then 6126 lt_cv_cc_needs_belf=yes 6127else 6128 echo "$as_me: failed program was:" >&5 6129sed 's/^/| /' conftest.$ac_ext >&5 6130 6131 lt_cv_cc_needs_belf=no 6132fi 6133 6134rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6135 conftest$ac_exeext conftest.$ac_ext 6136 ac_ext=c 6137ac_cpp='$CPP $CPPFLAGS' 6138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6140ac_compiler_gnu=$ac_cv_c_compiler_gnu 6141 6142fi 6143{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 6144echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 6145 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6146 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6147 CFLAGS="$SAVE_CFLAGS" 6148 fi 6149 ;; 6150sparc*-*solaris*) 6151 # Find out which ABI we are using. 6152 echo 'int i;' > conftest.$ac_ext 6153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6154 (eval $ac_compile) 2>&5 6155 ac_status=$? 6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6157 (exit $ac_status); }; then 6158 case `/usr/bin/file conftest.o` in 6159 *64-bit*) 6160 case $lt_cv_prog_gnu_ld in 6161 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6162 *) 6163 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6164 LD="${LD-ld} -64" 6165 fi 6166 ;; 6167 esac 6168 ;; 6169 esac 6170 fi 6171 rm -rf conftest* 6172 ;; 6173esac 6174 6175need_locks="$enable_libtool_lock" 6176 6177 6178 case $host_os in 6179 rhapsody* | darwin*) 6180 if test -n "$ac_tool_prefix"; then 6181 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6182set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6183{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6185if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 6186 echo $ECHO_N "(cached) $ECHO_C" >&6 6187else 6188 if test -n "$DSYMUTIL"; then 6189 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6190else 6191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6192for as_dir in $PATH 6193do 6194 IFS=$as_save_IFS 6195 test -z "$as_dir" && as_dir=. 6196 for ac_exec_ext in '' $ac_executable_extensions; do 6197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6198 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6200 break 2 6201 fi 6202done 6203done 6204IFS=$as_save_IFS 6205 6206fi 6207fi 6208DSYMUTIL=$ac_cv_prog_DSYMUTIL 6209if test -n "$DSYMUTIL"; then 6210 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 6211echo "${ECHO_T}$DSYMUTIL" >&6; } 6212else 6213 { echo "$as_me:$LINENO: result: no" >&5 6214echo "${ECHO_T}no" >&6; } 6215fi 6216 6217 6218fi 6219if test -z "$ac_cv_prog_DSYMUTIL"; then 6220 ac_ct_DSYMUTIL=$DSYMUTIL 6221 # Extract the first word of "dsymutil", so it can be a program name with args. 6222set dummy dsymutil; ac_word=$2 6223{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6225if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 6226 echo $ECHO_N "(cached) $ECHO_C" >&6 6227else 6228 if test -n "$ac_ct_DSYMUTIL"; then 6229 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6230else 6231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6232for as_dir in $PATH 6233do 6234 IFS=$as_save_IFS 6235 test -z "$as_dir" && as_dir=. 6236 for ac_exec_ext in '' $ac_executable_extensions; do 6237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6238 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6240 break 2 6241 fi 6242done 6243done 6244IFS=$as_save_IFS 6245 6246fi 6247fi 6248ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6249if test -n "$ac_ct_DSYMUTIL"; then 6250 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 6251echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; } 6252else 6253 { echo "$as_me:$LINENO: result: no" >&5 6254echo "${ECHO_T}no" >&6; } 6255fi 6256 6257 if test "x$ac_ct_DSYMUTIL" = x; then 6258 DSYMUTIL=":" 6259 else 6260 case $cross_compiling:$ac_tool_warned in 6261yes:) 6262{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6263whose name does not start with the host triplet. If you think this 6264configuration is useful to you, please write to autoconf@gnu.org." >&5 6265echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6266whose name does not start with the host triplet. If you think this 6267configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6268ac_tool_warned=yes ;; 6269esac 6270 DSYMUTIL=$ac_ct_DSYMUTIL 6271 fi 6272else 6273 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6274fi 6275 6276 if test -n "$ac_tool_prefix"; then 6277 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6278set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6279{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6281if test "${ac_cv_prog_NMEDIT+set}" = set; then 6282 echo $ECHO_N "(cached) $ECHO_C" >&6 6283else 6284 if test -n "$NMEDIT"; then 6285 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6286else 6287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6288for as_dir in $PATH 6289do 6290 IFS=$as_save_IFS 6291 test -z "$as_dir" && as_dir=. 6292 for ac_exec_ext in '' $ac_executable_extensions; do 6293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6294 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6296 break 2 6297 fi 6298done 6299done 6300IFS=$as_save_IFS 6301 6302fi 6303fi 6304NMEDIT=$ac_cv_prog_NMEDIT 6305if test -n "$NMEDIT"; then 6306 { echo "$as_me:$LINENO: result: $NMEDIT" >&5 6307echo "${ECHO_T}$NMEDIT" >&6; } 6308else 6309 { echo "$as_me:$LINENO: result: no" >&5 6310echo "${ECHO_T}no" >&6; } 6311fi 6312 6313 6314fi 6315if test -z "$ac_cv_prog_NMEDIT"; then 6316 ac_ct_NMEDIT=$NMEDIT 6317 # Extract the first word of "nmedit", so it can be a program name with args. 6318set dummy nmedit; ac_word=$2 6319{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6320echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6321if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 6322 echo $ECHO_N "(cached) $ECHO_C" >&6 6323else 6324 if test -n "$ac_ct_NMEDIT"; then 6325 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6326else 6327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6328for as_dir in $PATH 6329do 6330 IFS=$as_save_IFS 6331 test -z "$as_dir" && as_dir=. 6332 for ac_exec_ext in '' $ac_executable_extensions; do 6333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6334 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6336 break 2 6337 fi 6338done 6339done 6340IFS=$as_save_IFS 6341 6342fi 6343fi 6344ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6345if test -n "$ac_ct_NMEDIT"; then 6346 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 6347echo "${ECHO_T}$ac_ct_NMEDIT" >&6; } 6348else 6349 { echo "$as_me:$LINENO: result: no" >&5 6350echo "${ECHO_T}no" >&6; } 6351fi 6352 6353 if test "x$ac_ct_NMEDIT" = x; then 6354 NMEDIT=":" 6355 else 6356 case $cross_compiling:$ac_tool_warned in 6357yes:) 6358{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6359whose name does not start with the host triplet. If you think this 6360configuration is useful to you, please write to autoconf@gnu.org." >&5 6361echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6362whose name does not start with the host triplet. If you think this 6363configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6364ac_tool_warned=yes ;; 6365esac 6366 NMEDIT=$ac_ct_NMEDIT 6367 fi 6368else 6369 NMEDIT="$ac_cv_prog_NMEDIT" 6370fi 6371 6372 if test -n "$ac_tool_prefix"; then 6373 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6374set dummy ${ac_tool_prefix}lipo; ac_word=$2 6375{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6376echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6377if test "${ac_cv_prog_LIPO+set}" = set; then 6378 echo $ECHO_N "(cached) $ECHO_C" >&6 6379else 6380 if test -n "$LIPO"; then 6381 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6382else 6383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6384for as_dir in $PATH 6385do 6386 IFS=$as_save_IFS 6387 test -z "$as_dir" && as_dir=. 6388 for ac_exec_ext in '' $ac_executable_extensions; do 6389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6390 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6392 break 2 6393 fi 6394done 6395done 6396IFS=$as_save_IFS 6397 6398fi 6399fi 6400LIPO=$ac_cv_prog_LIPO 6401if test -n "$LIPO"; then 6402 { echo "$as_me:$LINENO: result: $LIPO" >&5 6403echo "${ECHO_T}$LIPO" >&6; } 6404else 6405 { echo "$as_me:$LINENO: result: no" >&5 6406echo "${ECHO_T}no" >&6; } 6407fi 6408 6409 6410fi 6411if test -z "$ac_cv_prog_LIPO"; then 6412 ac_ct_LIPO=$LIPO 6413 # Extract the first word of "lipo", so it can be a program name with args. 6414set dummy lipo; ac_word=$2 6415{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6416echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6417if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then 6418 echo $ECHO_N "(cached) $ECHO_C" >&6 6419else 6420 if test -n "$ac_ct_LIPO"; then 6421 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6422else 6423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6424for as_dir in $PATH 6425do 6426 IFS=$as_save_IFS 6427 test -z "$as_dir" && as_dir=. 6428 for ac_exec_ext in '' $ac_executable_extensions; do 6429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6430 ac_cv_prog_ac_ct_LIPO="lipo" 6431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6432 break 2 6433 fi 6434done 6435done 6436IFS=$as_save_IFS 6437 6438fi 6439fi 6440ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6441if test -n "$ac_ct_LIPO"; then 6442 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 6443echo "${ECHO_T}$ac_ct_LIPO" >&6; } 6444else 6445 { echo "$as_me:$LINENO: result: no" >&5 6446echo "${ECHO_T}no" >&6; } 6447fi 6448 6449 if test "x$ac_ct_LIPO" = x; then 6450 LIPO=":" 6451 else 6452 case $cross_compiling:$ac_tool_warned in 6453yes:) 6454{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6455whose name does not start with the host triplet. If you think this 6456configuration is useful to you, please write to autoconf@gnu.org." >&5 6457echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6458whose name does not start with the host triplet. If you think this 6459configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6460ac_tool_warned=yes ;; 6461esac 6462 LIPO=$ac_ct_LIPO 6463 fi 6464else 6465 LIPO="$ac_cv_prog_LIPO" 6466fi 6467 6468 if test -n "$ac_tool_prefix"; then 6469 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6470set dummy ${ac_tool_prefix}otool; ac_word=$2 6471{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6473if test "${ac_cv_prog_OTOOL+set}" = set; then 6474 echo $ECHO_N "(cached) $ECHO_C" >&6 6475else 6476 if test -n "$OTOOL"; then 6477 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6478else 6479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6480for as_dir in $PATH 6481do 6482 IFS=$as_save_IFS 6483 test -z "$as_dir" && as_dir=. 6484 for ac_exec_ext in '' $ac_executable_extensions; do 6485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6486 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6488 break 2 6489 fi 6490done 6491done 6492IFS=$as_save_IFS 6493 6494fi 6495fi 6496OTOOL=$ac_cv_prog_OTOOL 6497if test -n "$OTOOL"; then 6498 { echo "$as_me:$LINENO: result: $OTOOL" >&5 6499echo "${ECHO_T}$OTOOL" >&6; } 6500else 6501 { echo "$as_me:$LINENO: result: no" >&5 6502echo "${ECHO_T}no" >&6; } 6503fi 6504 6505 6506fi 6507if test -z "$ac_cv_prog_OTOOL"; then 6508 ac_ct_OTOOL=$OTOOL 6509 # Extract the first word of "otool", so it can be a program name with args. 6510set dummy otool; ac_word=$2 6511{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6512echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6513if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then 6514 echo $ECHO_N "(cached) $ECHO_C" >&6 6515else 6516 if test -n "$ac_ct_OTOOL"; then 6517 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6518else 6519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6520for as_dir in $PATH 6521do 6522 IFS=$as_save_IFS 6523 test -z "$as_dir" && as_dir=. 6524 for ac_exec_ext in '' $ac_executable_extensions; do 6525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6526 ac_cv_prog_ac_ct_OTOOL="otool" 6527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6528 break 2 6529 fi 6530done 6531done 6532IFS=$as_save_IFS 6533 6534fi 6535fi 6536ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6537if test -n "$ac_ct_OTOOL"; then 6538 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 6539echo "${ECHO_T}$ac_ct_OTOOL" >&6; } 6540else 6541 { echo "$as_me:$LINENO: result: no" >&5 6542echo "${ECHO_T}no" >&6; } 6543fi 6544 6545 if test "x$ac_ct_OTOOL" = x; then 6546 OTOOL=":" 6547 else 6548 case $cross_compiling:$ac_tool_warned in 6549yes:) 6550{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6551whose name does not start with the host triplet. If you think this 6552configuration is useful to you, please write to autoconf@gnu.org." >&5 6553echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6554whose name does not start with the host triplet. If you think this 6555configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6556ac_tool_warned=yes ;; 6557esac 6558 OTOOL=$ac_ct_OTOOL 6559 fi 6560else 6561 OTOOL="$ac_cv_prog_OTOOL" 6562fi 6563 6564 if test -n "$ac_tool_prefix"; then 6565 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6566set dummy ${ac_tool_prefix}otool64; ac_word=$2 6567{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6569if test "${ac_cv_prog_OTOOL64+set}" = set; then 6570 echo $ECHO_N "(cached) $ECHO_C" >&6 6571else 6572 if test -n "$OTOOL64"; then 6573 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6574else 6575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6576for as_dir in $PATH 6577do 6578 IFS=$as_save_IFS 6579 test -z "$as_dir" && as_dir=. 6580 for ac_exec_ext in '' $ac_executable_extensions; do 6581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6582 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6584 break 2 6585 fi 6586done 6587done 6588IFS=$as_save_IFS 6589 6590fi 6591fi 6592OTOOL64=$ac_cv_prog_OTOOL64 6593if test -n "$OTOOL64"; then 6594 { echo "$as_me:$LINENO: result: $OTOOL64" >&5 6595echo "${ECHO_T}$OTOOL64" >&6; } 6596else 6597 { echo "$as_me:$LINENO: result: no" >&5 6598echo "${ECHO_T}no" >&6; } 6599fi 6600 6601 6602fi 6603if test -z "$ac_cv_prog_OTOOL64"; then 6604 ac_ct_OTOOL64=$OTOOL64 6605 # Extract the first word of "otool64", so it can be a program name with args. 6606set dummy otool64; ac_word=$2 6607{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6609if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then 6610 echo $ECHO_N "(cached) $ECHO_C" >&6 6611else 6612 if test -n "$ac_ct_OTOOL64"; then 6613 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6614else 6615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6616for as_dir in $PATH 6617do 6618 IFS=$as_save_IFS 6619 test -z "$as_dir" && as_dir=. 6620 for ac_exec_ext in '' $ac_executable_extensions; do 6621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6622 ac_cv_prog_ac_ct_OTOOL64="otool64" 6623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6624 break 2 6625 fi 6626done 6627done 6628IFS=$as_save_IFS 6629 6630fi 6631fi 6632ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6633if test -n "$ac_ct_OTOOL64"; then 6634 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 6635echo "${ECHO_T}$ac_ct_OTOOL64" >&6; } 6636else 6637 { echo "$as_me:$LINENO: result: no" >&5 6638echo "${ECHO_T}no" >&6; } 6639fi 6640 6641 if test "x$ac_ct_OTOOL64" = x; then 6642 OTOOL64=":" 6643 else 6644 case $cross_compiling:$ac_tool_warned in 6645yes:) 6646{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6647whose name does not start with the host triplet. If you think this 6648configuration is useful to you, please write to autoconf@gnu.org." >&5 6649echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6650whose name does not start with the host triplet. If you think this 6651configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6652ac_tool_warned=yes ;; 6653esac 6654 OTOOL64=$ac_ct_OTOOL64 6655 fi 6656else 6657 OTOOL64="$ac_cv_prog_OTOOL64" 6658fi 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 6687echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; } 6688if test "${lt_cv_apple_cc_single_mod+set}" = set; then 6689 echo $ECHO_N "(cached) $ECHO_C" >&6 6690else 6691 lt_cv_apple_cc_single_mod=no 6692 if test -z "${LT_MULTI_MODULE}"; then 6693 # By default we will add the -single_module flag. You can override 6694 # by either setting the environment variable LT_MULTI_MODULE 6695 # non-empty at configure time, or by adding -multi_module to the 6696 # link flags. 6697 rm -rf libconftest.dylib* 6698 echo "int foo(void){return 1;}" > conftest.c 6699 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6700-dynamiclib -Wl,-single_module conftest.c" >&5 6701 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6702 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6703 _lt_result=$? 6704 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 6705 lt_cv_apple_cc_single_mod=yes 6706 else 6707 cat conftest.err >&5 6708 fi 6709 rm -rf libconftest.dylib* 6710 rm -f conftest.* 6711 fi 6712fi 6713{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 6714echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; } 6715 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 6716echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; } 6717if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 6718 echo $ECHO_N "(cached) $ECHO_C" >&6 6719else 6720 lt_cv_ld_exported_symbols_list=no 6721 save_LDFLAGS=$LDFLAGS 6722 echo "_main" > conftest.sym 6723 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6724 cat >conftest.$ac_ext <<_ACEOF 6725/* confdefs.h. */ 6726_ACEOF 6727cat confdefs.h >>conftest.$ac_ext 6728cat >>conftest.$ac_ext <<_ACEOF 6729/* end confdefs.h. */ 6730 6731int 6732main () 6733{ 6734 6735 ; 6736 return 0; 6737} 6738_ACEOF 6739rm -f conftest.$ac_objext conftest$ac_exeext 6740if { (ac_try="$ac_link" 6741case "(($ac_try" in 6742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6743 *) ac_try_echo=$ac_try;; 6744esac 6745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6746 (eval "$ac_link") 2>conftest.er1 6747 ac_status=$? 6748 grep -v '^ *+' conftest.er1 >conftest.err 6749 rm -f conftest.er1 6750 cat conftest.err >&5 6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6752 (exit $ac_status); } && { 6753 test -z "$ac_c_werror_flag" || 6754 test ! -s conftest.err 6755 } && test -s conftest$ac_exeext && 6756 $as_test_x conftest$ac_exeext; then 6757 lt_cv_ld_exported_symbols_list=yes 6758else 6759 echo "$as_me: failed program was:" >&5 6760sed 's/^/| /' conftest.$ac_ext >&5 6761 6762 lt_cv_ld_exported_symbols_list=no 6763fi 6764 6765rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6766 conftest$ac_exeext conftest.$ac_ext 6767 LDFLAGS="$save_LDFLAGS" 6768 6769fi 6770{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 6771echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; } 6772 case $host_os in 6773 rhapsody* | darwin1.[012]) 6774 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6775 darwin1.*) 6776 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6777 darwin*) # darwin 5.x on 6778 # if running on 10.5 or later, the deployment target defaults 6779 # to the OS version, if on x86, and 10.4, the deployment 6780 # target defaults to 10.4. Don't you love it? 6781 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6782 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6783 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6784 10.[012]*) 6785 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6786 10.*) 6787 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6788 esac 6789 ;; 6790 esac 6791 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6792 _lt_dar_single_mod='$single_module' 6793 fi 6794 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6795 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6796 else 6797 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 6798 fi 6799 if test "$DSYMUTIL" != ":"; then 6800 _lt_dsymutil='~$DSYMUTIL $lib || :' 6801 else 6802 _lt_dsymutil= 6803 fi 6804 ;; 6805 esac 6806 6807ac_ext=c 6808ac_cpp='$CPP $CPPFLAGS' 6809ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6810ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6811ac_compiler_gnu=$ac_cv_c_compiler_gnu 6812{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 6813echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 6814# On Suns, sometimes $CPP names a directory. 6815if test -n "$CPP" && test -d "$CPP"; then 6816 CPP= 6817fi 6818if test -z "$CPP"; then 6819 if test "${ac_cv_prog_CPP+set}" = set; then 6820 echo $ECHO_N "(cached) $ECHO_C" >&6 6821else 6822 # Double quotes because CPP needs to be expanded 6823 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6824 do 6825 ac_preproc_ok=false 6826for ac_c_preproc_warn_flag in '' yes 6827do 6828 # Use a header file that comes with gcc, so configuring glibc 6829 # with a fresh cross-compiler works. 6830 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6831 # <limits.h> exists even on freestanding compilers. 6832 # On the NeXT, cc -E runs the code through the compiler's parser, 6833 # not just through cpp. "Syntax error" is here to catch this case. 6834 cat >conftest.$ac_ext <<_ACEOF 6835/* confdefs.h. */ 6836_ACEOF 6837cat confdefs.h >>conftest.$ac_ext 6838cat >>conftest.$ac_ext <<_ACEOF 6839/* end confdefs.h. */ 6840#ifdef __STDC__ 6841# include <limits.h> 6842#else 6843# include <assert.h> 6844#endif 6845 Syntax error 6846_ACEOF 6847if { (ac_try="$ac_cpp conftest.$ac_ext" 6848case "(($ac_try" in 6849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6850 *) ac_try_echo=$ac_try;; 6851esac 6852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6854 ac_status=$? 6855 grep -v '^ *+' conftest.er1 >conftest.err 6856 rm -f conftest.er1 6857 cat conftest.err >&5 6858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6859 (exit $ac_status); } >/dev/null && { 6860 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6861 test ! -s conftest.err 6862 }; then 6863 : 6864else 6865 echo "$as_me: failed program was:" >&5 6866sed 's/^/| /' conftest.$ac_ext >&5 6867 6868 # Broken: fails on valid input. 6869continue 6870fi 6871 6872rm -f conftest.err conftest.$ac_ext 6873 6874 # OK, works on sane cases. Now check whether nonexistent headers 6875 # can be detected and how. 6876 cat >conftest.$ac_ext <<_ACEOF 6877/* confdefs.h. */ 6878_ACEOF 6879cat confdefs.h >>conftest.$ac_ext 6880cat >>conftest.$ac_ext <<_ACEOF 6881/* end confdefs.h. */ 6882#include <ac_nonexistent.h> 6883_ACEOF 6884if { (ac_try="$ac_cpp conftest.$ac_ext" 6885case "(($ac_try" in 6886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6887 *) ac_try_echo=$ac_try;; 6888esac 6889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6891 ac_status=$? 6892 grep -v '^ *+' conftest.er1 >conftest.err 6893 rm -f conftest.er1 6894 cat conftest.err >&5 6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6896 (exit $ac_status); } >/dev/null && { 6897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6898 test ! -s conftest.err 6899 }; then 6900 # Broken: success on invalid input. 6901continue 6902else 6903 echo "$as_me: failed program was:" >&5 6904sed 's/^/| /' conftest.$ac_ext >&5 6905 6906 # Passes both tests. 6907ac_preproc_ok=: 6908break 6909fi 6910 6911rm -f conftest.err conftest.$ac_ext 6912 6913done 6914# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6915rm -f conftest.err conftest.$ac_ext 6916if $ac_preproc_ok; then 6917 break 6918fi 6919 6920 done 6921 ac_cv_prog_CPP=$CPP 6922 6923fi 6924 CPP=$ac_cv_prog_CPP 6925else 6926 ac_cv_prog_CPP=$CPP 6927fi 6928{ echo "$as_me:$LINENO: result: $CPP" >&5 6929echo "${ECHO_T}$CPP" >&6; } 6930ac_preproc_ok=false 6931for ac_c_preproc_warn_flag in '' yes 6932do 6933 # Use a header file that comes with gcc, so configuring glibc 6934 # with a fresh cross-compiler works. 6935 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6936 # <limits.h> exists even on freestanding compilers. 6937 # On the NeXT, cc -E runs the code through the compiler's parser, 6938 # not just through cpp. "Syntax error" is here to catch this case. 6939 cat >conftest.$ac_ext <<_ACEOF 6940/* confdefs.h. */ 6941_ACEOF 6942cat confdefs.h >>conftest.$ac_ext 6943cat >>conftest.$ac_ext <<_ACEOF 6944/* end confdefs.h. */ 6945#ifdef __STDC__ 6946# include <limits.h> 6947#else 6948# include <assert.h> 6949#endif 6950 Syntax error 6951_ACEOF 6952if { (ac_try="$ac_cpp conftest.$ac_ext" 6953case "(($ac_try" in 6954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6955 *) ac_try_echo=$ac_try;; 6956esac 6957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6958 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6959 ac_status=$? 6960 grep -v '^ *+' conftest.er1 >conftest.err 6961 rm -f conftest.er1 6962 cat conftest.err >&5 6963 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6964 (exit $ac_status); } >/dev/null && { 6965 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6966 test ! -s conftest.err 6967 }; then 6968 : 6969else 6970 echo "$as_me: failed program was:" >&5 6971sed 's/^/| /' conftest.$ac_ext >&5 6972 6973 # Broken: fails on valid input. 6974continue 6975fi 6976 6977rm -f conftest.err conftest.$ac_ext 6978 6979 # OK, works on sane cases. Now check whether nonexistent headers 6980 # can be detected and how. 6981 cat >conftest.$ac_ext <<_ACEOF 6982/* confdefs.h. */ 6983_ACEOF 6984cat confdefs.h >>conftest.$ac_ext 6985cat >>conftest.$ac_ext <<_ACEOF 6986/* end confdefs.h. */ 6987#include <ac_nonexistent.h> 6988_ACEOF 6989if { (ac_try="$ac_cpp conftest.$ac_ext" 6990case "(($ac_try" in 6991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6992 *) ac_try_echo=$ac_try;; 6993esac 6994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6996 ac_status=$? 6997 grep -v '^ *+' conftest.er1 >conftest.err 6998 rm -f conftest.er1 6999 cat conftest.err >&5 7000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7001 (exit $ac_status); } >/dev/null && { 7002 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 7003 test ! -s conftest.err 7004 }; then 7005 # Broken: success on invalid input. 7006continue 7007else 7008 echo "$as_me: failed program was:" >&5 7009sed 's/^/| /' conftest.$ac_ext >&5 7010 7011 # Passes both tests. 7012ac_preproc_ok=: 7013break 7014fi 7015 7016rm -f conftest.err conftest.$ac_ext 7017 7018done 7019# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7020rm -f conftest.err conftest.$ac_ext 7021if $ac_preproc_ok; then 7022 : 7023else 7024 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 7025See \`config.log' for more details." >&5 7026echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 7027See \`config.log' for more details." >&2;} 7028 { (exit 1); exit 1; }; } 7029fi 7030 7031ac_ext=c 7032ac_cpp='$CPP $CPPFLAGS' 7033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7035ac_compiler_gnu=$ac_cv_c_compiler_gnu 7036 7037 7038{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 7039echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 7040if test "${ac_cv_header_stdc+set}" = set; then 7041 echo $ECHO_N "(cached) $ECHO_C" >&6 7042else 7043 cat >conftest.$ac_ext <<_ACEOF 7044/* confdefs.h. */ 7045_ACEOF 7046cat confdefs.h >>conftest.$ac_ext 7047cat >>conftest.$ac_ext <<_ACEOF 7048/* end confdefs.h. */ 7049#include <stdlib.h> 7050#include <stdarg.h> 7051#include <string.h> 7052#include <float.h> 7053 7054int 7055main () 7056{ 7057 7058 ; 7059 return 0; 7060} 7061_ACEOF 7062rm -f conftest.$ac_objext 7063if { (ac_try="$ac_compile" 7064case "(($ac_try" in 7065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7066 *) ac_try_echo=$ac_try;; 7067esac 7068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7069 (eval "$ac_compile") 2>conftest.er1 7070 ac_status=$? 7071 grep -v '^ *+' conftest.er1 >conftest.err 7072 rm -f conftest.er1 7073 cat conftest.err >&5 7074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7075 (exit $ac_status); } && { 7076 test -z "$ac_c_werror_flag" || 7077 test ! -s conftest.err 7078 } && test -s conftest.$ac_objext; then 7079 ac_cv_header_stdc=yes 7080else 7081 echo "$as_me: failed program was:" >&5 7082sed 's/^/| /' conftest.$ac_ext >&5 7083 7084 ac_cv_header_stdc=no 7085fi 7086 7087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7088 7089if test $ac_cv_header_stdc = yes; then 7090 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7091 cat >conftest.$ac_ext <<_ACEOF 7092/* confdefs.h. */ 7093_ACEOF 7094cat confdefs.h >>conftest.$ac_ext 7095cat >>conftest.$ac_ext <<_ACEOF 7096/* end confdefs.h. */ 7097#include <string.h> 7098 7099_ACEOF 7100if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7101 $EGREP "memchr" >/dev/null 2>&1; then 7102 : 7103else 7104 ac_cv_header_stdc=no 7105fi 7106rm -f -r conftest* 7107 7108fi 7109 7110if test $ac_cv_header_stdc = yes; then 7111 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7112 cat >conftest.$ac_ext <<_ACEOF 7113/* confdefs.h. */ 7114_ACEOF 7115cat confdefs.h >>conftest.$ac_ext 7116cat >>conftest.$ac_ext <<_ACEOF 7117/* end confdefs.h. */ 7118#include <stdlib.h> 7119 7120_ACEOF 7121if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7122 $EGREP "free" >/dev/null 2>&1; then 7123 : 7124else 7125 ac_cv_header_stdc=no 7126fi 7127rm -f -r conftest* 7128 7129fi 7130 7131if test $ac_cv_header_stdc = yes; then 7132 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7133 if test "$cross_compiling" = yes; then 7134 : 7135else 7136 cat >conftest.$ac_ext <<_ACEOF 7137/* confdefs.h. */ 7138_ACEOF 7139cat confdefs.h >>conftest.$ac_ext 7140cat >>conftest.$ac_ext <<_ACEOF 7141/* end confdefs.h. */ 7142#include <ctype.h> 7143#include <stdlib.h> 7144#if ((' ' & 0x0FF) == 0x020) 7145# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7146# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7147#else 7148# define ISLOWER(c) \ 7149 (('a' <= (c) && (c) <= 'i') \ 7150 || ('j' <= (c) && (c) <= 'r') \ 7151 || ('s' <= (c) && (c) <= 'z')) 7152# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7153#endif 7154 7155#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7156int 7157main () 7158{ 7159 int i; 7160 for (i = 0; i < 256; i++) 7161 if (XOR (islower (i), ISLOWER (i)) 7162 || toupper (i) != TOUPPER (i)) 7163 return 2; 7164 return 0; 7165} 7166_ACEOF 7167rm -f conftest$ac_exeext 7168if { (ac_try="$ac_link" 7169case "(($ac_try" in 7170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7171 *) ac_try_echo=$ac_try;; 7172esac 7173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7174 (eval "$ac_link") 2>&5 7175 ac_status=$? 7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7177 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7178 { (case "(($ac_try" in 7179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7180 *) ac_try_echo=$ac_try;; 7181esac 7182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7183 (eval "$ac_try") 2>&5 7184 ac_status=$? 7185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7186 (exit $ac_status); }; }; then 7187 : 7188else 7189 echo "$as_me: program exited with status $ac_status" >&5 7190echo "$as_me: failed program was:" >&5 7191sed 's/^/| /' conftest.$ac_ext >&5 7192 7193( exit $ac_status ) 7194ac_cv_header_stdc=no 7195fi 7196rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7197fi 7198 7199 7200fi 7201fi 7202{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 7203echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 7204if test $ac_cv_header_stdc = yes; then 7205 7206cat >>confdefs.h <<\_ACEOF 7207#define STDC_HEADERS 1 7208_ACEOF 7209 7210fi 7211 7212# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7223 inttypes.h stdint.h unistd.h 7224do 7225as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7226{ echo "$as_me:$LINENO: checking for $ac_header" >&5 7227echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 7228if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7229 echo $ECHO_N "(cached) $ECHO_C" >&6 7230else 7231 cat >conftest.$ac_ext <<_ACEOF 7232/* confdefs.h. */ 7233_ACEOF 7234cat confdefs.h >>conftest.$ac_ext 7235cat >>conftest.$ac_ext <<_ACEOF 7236/* end confdefs.h. */ 7237$ac_includes_default 7238 7239#include <$ac_header> 7240_ACEOF 7241rm -f conftest.$ac_objext 7242if { (ac_try="$ac_compile" 7243case "(($ac_try" in 7244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7245 *) ac_try_echo=$ac_try;; 7246esac 7247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7248 (eval "$ac_compile") 2>conftest.er1 7249 ac_status=$? 7250 grep -v '^ *+' conftest.er1 >conftest.err 7251 rm -f conftest.er1 7252 cat conftest.err >&5 7253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7254 (exit $ac_status); } && { 7255 test -z "$ac_c_werror_flag" || 7256 test ! -s conftest.err 7257 } && test -s conftest.$ac_objext; then 7258 eval "$as_ac_Header=yes" 7259else 7260 echo "$as_me: failed program was:" >&5 7261sed 's/^/| /' conftest.$ac_ext >&5 7262 7263 eval "$as_ac_Header=no" 7264fi 7265 7266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7267fi 7268ac_res=`eval echo '${'$as_ac_Header'}'` 7269 { echo "$as_me:$LINENO: result: $ac_res" >&5 7270echo "${ECHO_T}$ac_res" >&6; } 7271if test `eval echo '${'$as_ac_Header'}'` = yes; then 7272 cat >>confdefs.h <<_ACEOF 7273#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7274_ACEOF 7275 7276fi 7277 7278done 7279 7280 7281 7282for ac_header in dlfcn.h 7283do 7284as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7285{ echo "$as_me:$LINENO: checking for $ac_header" >&5 7286echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 7287if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7288 echo $ECHO_N "(cached) $ECHO_C" >&6 7289else 7290 cat >conftest.$ac_ext <<_ACEOF 7291/* confdefs.h. */ 7292_ACEOF 7293cat confdefs.h >>conftest.$ac_ext 7294cat >>conftest.$ac_ext <<_ACEOF 7295/* end confdefs.h. */ 7296$ac_includes_default 7297 7298#include <$ac_header> 7299_ACEOF 7300rm -f conftest.$ac_objext 7301if { (ac_try="$ac_compile" 7302case "(($ac_try" in 7303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7304 *) ac_try_echo=$ac_try;; 7305esac 7306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7307 (eval "$ac_compile") 2>conftest.er1 7308 ac_status=$? 7309 grep -v '^ *+' conftest.er1 >conftest.err 7310 rm -f conftest.er1 7311 cat conftest.err >&5 7312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7313 (exit $ac_status); } && { 7314 test -z "$ac_c_werror_flag" || 7315 test ! -s conftest.err 7316 } && test -s conftest.$ac_objext; then 7317 eval "$as_ac_Header=yes" 7318else 7319 echo "$as_me: failed program was:" >&5 7320sed 's/^/| /' conftest.$ac_ext >&5 7321 7322 eval "$as_ac_Header=no" 7323fi 7324 7325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7326fi 7327ac_res=`eval echo '${'$as_ac_Header'}'` 7328 { echo "$as_me:$LINENO: result: $ac_res" >&5 7329echo "${ECHO_T}$ac_res" >&6; } 7330if test `eval echo '${'$as_ac_Header'}'` = yes; then 7331 cat >>confdefs.h <<_ACEOF 7332#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7333_ACEOF 7334 7335fi 7336 7337done 7338 7339 7340 7341ac_ext=cpp 7342ac_cpp='$CXXCPP $CPPFLAGS' 7343ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7344ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7345ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7346if test -z "$CXX"; then 7347 if test -n "$CCC"; then 7348 CXX=$CCC 7349 else 7350 if test -n "$ac_tool_prefix"; then 7351 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 7352 do 7353 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7354set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7355{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7357if test "${ac_cv_prog_CXX+set}" = set; then 7358 echo $ECHO_N "(cached) $ECHO_C" >&6 7359else 7360 if test -n "$CXX"; then 7361 ac_cv_prog_CXX="$CXX" # Let the user override the test. 7362else 7363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7364for as_dir in $PATH 7365do 7366 IFS=$as_save_IFS 7367 test -z "$as_dir" && as_dir=. 7368 for ac_exec_ext in '' $ac_executable_extensions; do 7369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7370 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 7371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7372 break 2 7373 fi 7374done 7375done 7376IFS=$as_save_IFS 7377 7378fi 7379fi 7380CXX=$ac_cv_prog_CXX 7381if test -n "$CXX"; then 7382 { echo "$as_me:$LINENO: result: $CXX" >&5 7383echo "${ECHO_T}$CXX" >&6; } 7384else 7385 { echo "$as_me:$LINENO: result: no" >&5 7386echo "${ECHO_T}no" >&6; } 7387fi 7388 7389 7390 test -n "$CXX" && break 7391 done 7392fi 7393if test -z "$CXX"; then 7394 ac_ct_CXX=$CXX 7395 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 7396do 7397 # Extract the first word of "$ac_prog", so it can be a program name with args. 7398set dummy $ac_prog; ac_word=$2 7399{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7401if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 7402 echo $ECHO_N "(cached) $ECHO_C" >&6 7403else 7404 if test -n "$ac_ct_CXX"; then 7405 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 7406else 7407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7408for as_dir in $PATH 7409do 7410 IFS=$as_save_IFS 7411 test -z "$as_dir" && as_dir=. 7412 for ac_exec_ext in '' $ac_executable_extensions; do 7413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7414 ac_cv_prog_ac_ct_CXX="$ac_prog" 7415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7416 break 2 7417 fi 7418done 7419done 7420IFS=$as_save_IFS 7421 7422fi 7423fi 7424ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 7425if test -n "$ac_ct_CXX"; then 7426 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 7427echo "${ECHO_T}$ac_ct_CXX" >&6; } 7428else 7429 { echo "$as_me:$LINENO: result: no" >&5 7430echo "${ECHO_T}no" >&6; } 7431fi 7432 7433 7434 test -n "$ac_ct_CXX" && break 7435done 7436 7437 if test "x$ac_ct_CXX" = x; then 7438 CXX="g++" 7439 else 7440 case $cross_compiling:$ac_tool_warned in 7441yes:) 7442{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7443whose name does not start with the host triplet. If you think this 7444configuration is useful to you, please write to autoconf@gnu.org." >&5 7445echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7446whose name does not start with the host triplet. If you think this 7447configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7448ac_tool_warned=yes ;; 7449esac 7450 CXX=$ac_ct_CXX 7451 fi 7452fi 7453 7454 fi 7455fi 7456# Provide some information about the compiler. 7457echo "$as_me:$LINENO: checking for C++ compiler version" >&5 7458ac_compiler=`set X $ac_compile; echo $2` 7459{ (ac_try="$ac_compiler --version >&5" 7460case "(($ac_try" in 7461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7462 *) ac_try_echo=$ac_try;; 7463esac 7464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7465 (eval "$ac_compiler --version >&5") 2>&5 7466 ac_status=$? 7467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7468 (exit $ac_status); } 7469{ (ac_try="$ac_compiler -v >&5" 7470case "(($ac_try" in 7471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7472 *) ac_try_echo=$ac_try;; 7473esac 7474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7475 (eval "$ac_compiler -v >&5") 2>&5 7476 ac_status=$? 7477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7478 (exit $ac_status); } 7479{ (ac_try="$ac_compiler -V >&5" 7480case "(($ac_try" in 7481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7482 *) ac_try_echo=$ac_try;; 7483esac 7484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7485 (eval "$ac_compiler -V >&5") 2>&5 7486 ac_status=$? 7487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7488 (exit $ac_status); } 7489 7490{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 7491echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 7492if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 7493 echo $ECHO_N "(cached) $ECHO_C" >&6 7494else 7495 cat >conftest.$ac_ext <<_ACEOF 7496/* confdefs.h. */ 7497_ACEOF 7498cat confdefs.h >>conftest.$ac_ext 7499cat >>conftest.$ac_ext <<_ACEOF 7500/* end confdefs.h. */ 7501 7502int 7503main () 7504{ 7505#ifndef __GNUC__ 7506 choke me 7507#endif 7508 7509 ; 7510 return 0; 7511} 7512_ACEOF 7513rm -f conftest.$ac_objext 7514if { (ac_try="$ac_compile" 7515case "(($ac_try" in 7516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7517 *) ac_try_echo=$ac_try;; 7518esac 7519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7520 (eval "$ac_compile") 2>conftest.er1 7521 ac_status=$? 7522 grep -v '^ *+' conftest.er1 >conftest.err 7523 rm -f conftest.er1 7524 cat conftest.err >&5 7525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7526 (exit $ac_status); } && { 7527 test -z "$ac_cxx_werror_flag" || 7528 test ! -s conftest.err 7529 } && test -s conftest.$ac_objext; then 7530 ac_compiler_gnu=yes 7531else 7532 echo "$as_me: failed program was:" >&5 7533sed 's/^/| /' conftest.$ac_ext >&5 7534 7535 ac_compiler_gnu=no 7536fi 7537 7538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7539ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 7540 7541fi 7542{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 7543echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 7544GXX=`test $ac_compiler_gnu = yes && echo yes` 7545ac_test_CXXFLAGS=${CXXFLAGS+set} 7546ac_save_CXXFLAGS=$CXXFLAGS 7547{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 7548echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 7549if test "${ac_cv_prog_cxx_g+set}" = set; then 7550 echo $ECHO_N "(cached) $ECHO_C" >&6 7551else 7552 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 7553 ac_cxx_werror_flag=yes 7554 ac_cv_prog_cxx_g=no 7555 CXXFLAGS="-g" 7556 cat >conftest.$ac_ext <<_ACEOF 7557/* confdefs.h. */ 7558_ACEOF 7559cat confdefs.h >>conftest.$ac_ext 7560cat >>conftest.$ac_ext <<_ACEOF 7561/* end confdefs.h. */ 7562 7563int 7564main () 7565{ 7566 7567 ; 7568 return 0; 7569} 7570_ACEOF 7571rm -f conftest.$ac_objext 7572if { (ac_try="$ac_compile" 7573case "(($ac_try" in 7574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7575 *) ac_try_echo=$ac_try;; 7576esac 7577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7578 (eval "$ac_compile") 2>conftest.er1 7579 ac_status=$? 7580 grep -v '^ *+' conftest.er1 >conftest.err 7581 rm -f conftest.er1 7582 cat conftest.err >&5 7583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7584 (exit $ac_status); } && { 7585 test -z "$ac_cxx_werror_flag" || 7586 test ! -s conftest.err 7587 } && test -s conftest.$ac_objext; then 7588 ac_cv_prog_cxx_g=yes 7589else 7590 echo "$as_me: failed program was:" >&5 7591sed 's/^/| /' conftest.$ac_ext >&5 7592 7593 CXXFLAGS="" 7594 cat >conftest.$ac_ext <<_ACEOF 7595/* confdefs.h. */ 7596_ACEOF 7597cat confdefs.h >>conftest.$ac_ext 7598cat >>conftest.$ac_ext <<_ACEOF 7599/* end confdefs.h. */ 7600 7601int 7602main () 7603{ 7604 7605 ; 7606 return 0; 7607} 7608_ACEOF 7609rm -f conftest.$ac_objext 7610if { (ac_try="$ac_compile" 7611case "(($ac_try" in 7612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7613 *) ac_try_echo=$ac_try;; 7614esac 7615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7616 (eval "$ac_compile") 2>conftest.er1 7617 ac_status=$? 7618 grep -v '^ *+' conftest.er1 >conftest.err 7619 rm -f conftest.er1 7620 cat conftest.err >&5 7621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7622 (exit $ac_status); } && { 7623 test -z "$ac_cxx_werror_flag" || 7624 test ! -s conftest.err 7625 } && test -s conftest.$ac_objext; then 7626 : 7627else 7628 echo "$as_me: failed program was:" >&5 7629sed 's/^/| /' conftest.$ac_ext >&5 7630 7631 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 7632 CXXFLAGS="-g" 7633 cat >conftest.$ac_ext <<_ACEOF 7634/* confdefs.h. */ 7635_ACEOF 7636cat confdefs.h >>conftest.$ac_ext 7637cat >>conftest.$ac_ext <<_ACEOF 7638/* end confdefs.h. */ 7639 7640int 7641main () 7642{ 7643 7644 ; 7645 return 0; 7646} 7647_ACEOF 7648rm -f conftest.$ac_objext 7649if { (ac_try="$ac_compile" 7650case "(($ac_try" in 7651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7652 *) ac_try_echo=$ac_try;; 7653esac 7654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7655 (eval "$ac_compile") 2>conftest.er1 7656 ac_status=$? 7657 grep -v '^ *+' conftest.er1 >conftest.err 7658 rm -f conftest.er1 7659 cat conftest.err >&5 7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7661 (exit $ac_status); } && { 7662 test -z "$ac_cxx_werror_flag" || 7663 test ! -s conftest.err 7664 } && test -s conftest.$ac_objext; then 7665 ac_cv_prog_cxx_g=yes 7666else 7667 echo "$as_me: failed program was:" >&5 7668sed 's/^/| /' conftest.$ac_ext >&5 7669 7670 7671fi 7672 7673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7674fi 7675 7676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7677fi 7678 7679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7680 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 7681fi 7682{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 7683echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 7684if test "$ac_test_CXXFLAGS" = set; then 7685 CXXFLAGS=$ac_save_CXXFLAGS 7686elif test $ac_cv_prog_cxx_g = yes; then 7687 if test "$GXX" = yes; then 7688 CXXFLAGS="-g -O2" 7689 else 7690 CXXFLAGS="-g" 7691 fi 7692else 7693 if test "$GXX" = yes; then 7694 CXXFLAGS="-O2" 7695 else 7696 CXXFLAGS= 7697 fi 7698fi 7699ac_ext=c 7700ac_cpp='$CPP $CPPFLAGS' 7701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7703ac_compiler_gnu=$ac_cv_c_compiler_gnu 7704 7705depcc="$CXX" am_compiler_list= 7706 7707{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 7708echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 7709if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 7710 echo $ECHO_N "(cached) $ECHO_C" >&6 7711else 7712 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 7713 # We make a subdir and do the tests there. Otherwise we can end up 7714 # making bogus files that we don't know about and never remove. For 7715 # instance it was reported that on HP-UX the gcc test will end up 7716 # making a dummy file named `D' -- because `-MD' means `put the output 7717 # in D'. 7718 mkdir conftest.dir 7719 # Copy depcomp to subdir because otherwise we won't find it if we're 7720 # using a relative directory. 7721 cp "$am_depcomp" conftest.dir 7722 cd conftest.dir 7723 # We will build objects and dependencies in a subdirectory because 7724 # it helps to detect inapplicable dependency modes. For instance 7725 # both Tru64's cc and ICC support -MD to output dependencies as a 7726 # side effect of compilation, but ICC will put the dependencies in 7727 # the current directory while Tru64 will put them in the object 7728 # directory. 7729 mkdir sub 7730 7731 am_cv_CXX_dependencies_compiler_type=none 7732 if test "$am_compiler_list" = ""; then 7733 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 7734 fi 7735 for depmode in $am_compiler_list; do 7736 # Setup a source with many dependencies, because some compilers 7737 # like to wrap large dependency lists on column 80 (with \), and 7738 # we should not choose a depcomp mode which is confused by this. 7739 # 7740 # We need to recreate these files for each test, as the compiler may 7741 # overwrite some of them when testing with obscure command lines. 7742 # This happens at least with the AIX C compiler. 7743 : > sub/conftest.c 7744 for i in 1 2 3 4 5 6; do 7745 echo '#include "conftst'$i'.h"' >> sub/conftest.c 7746 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 7747 # Solaris 8's {/usr,}/bin/sh. 7748 touch sub/conftst$i.h 7749 done 7750 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 7751 7752 case $depmode in 7753 nosideeffect) 7754 # after this tag, mechanisms are not by side-effect, so they'll 7755 # only be used when explicitly requested 7756 if test "x$enable_dependency_tracking" = xyes; then 7757 continue 7758 else 7759 break 7760 fi 7761 ;; 7762 none) break ;; 7763 esac 7764 # We check with `-c' and `-o' for the sake of the "dashmstdout" 7765 # mode. It turns out that the SunPro C++ compiler does not properly 7766 # handle `-M -o', and we need to detect this. 7767 if depmode=$depmode \ 7768 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 7769 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 7770 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 7771 >/dev/null 2>conftest.err && 7772 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 7773 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 7774 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 7775 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 7776 # icc doesn't choke on unknown options, it will just issue warnings 7777 # or remarks (even with -Werror). So we grep stderr for any message 7778 # that says an option was ignored or not supported. 7779 # When given -MP, icc 7.0 and 7.1 complain thusly: 7780 # icc: Command line warning: ignoring option '-M'; no argument required 7781 # The diagnosis changed in icc 8.0: 7782 # icc: Command line remark: option '-MP' not supported 7783 if (grep 'ignoring option' conftest.err || 7784 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 7785 am_cv_CXX_dependencies_compiler_type=$depmode 7786 break 7787 fi 7788 fi 7789 done 7790 7791 cd .. 7792 rm -rf conftest.dir 7793else 7794 am_cv_CXX_dependencies_compiler_type=none 7795fi 7796 7797fi 7798{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 7799echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 7800CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 7801 7802 if 7803 test "x$enable_dependency_tracking" != xno \ 7804 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 7805 am__fastdepCXX_TRUE= 7806 am__fastdepCXX_FALSE='#' 7807else 7808 am__fastdepCXX_TRUE='#' 7809 am__fastdepCXX_FALSE= 7810fi 7811 7812 7813if test -n "$CXX" && ( test "X$CXX" != "Xno" && 7814 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 7815 (test "X$CXX" != "Xg++"))) ; then 7816 ac_ext=cpp 7817ac_cpp='$CXXCPP $CPPFLAGS' 7818ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7819ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7820ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7821{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 7822echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 7823if test -z "$CXXCPP"; then 7824 if test "${ac_cv_prog_CXXCPP+set}" = set; then 7825 echo $ECHO_N "(cached) $ECHO_C" >&6 7826else 7827 # Double quotes because CXXCPP needs to be expanded 7828 for CXXCPP in "$CXX -E" "/lib/cpp" 7829 do 7830 ac_preproc_ok=false 7831for ac_cxx_preproc_warn_flag in '' yes 7832do 7833 # Use a header file that comes with gcc, so configuring glibc 7834 # with a fresh cross-compiler works. 7835 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7836 # <limits.h> exists even on freestanding compilers. 7837 # On the NeXT, cc -E runs the code through the compiler's parser, 7838 # not just through cpp. "Syntax error" is here to catch this case. 7839 cat >conftest.$ac_ext <<_ACEOF 7840/* confdefs.h. */ 7841_ACEOF 7842cat confdefs.h >>conftest.$ac_ext 7843cat >>conftest.$ac_ext <<_ACEOF 7844/* end confdefs.h. */ 7845#ifdef __STDC__ 7846# include <limits.h> 7847#else 7848# include <assert.h> 7849#endif 7850 Syntax error 7851_ACEOF 7852if { (ac_try="$ac_cpp conftest.$ac_ext" 7853case "(($ac_try" in 7854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7855 *) ac_try_echo=$ac_try;; 7856esac 7857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7859 ac_status=$? 7860 grep -v '^ *+' conftest.er1 >conftest.err 7861 rm -f conftest.er1 7862 cat conftest.err >&5 7863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7864 (exit $ac_status); } >/dev/null && { 7865 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 7866 test ! -s conftest.err 7867 }; then 7868 : 7869else 7870 echo "$as_me: failed program was:" >&5 7871sed 's/^/| /' conftest.$ac_ext >&5 7872 7873 # Broken: fails on valid input. 7874continue 7875fi 7876 7877rm -f conftest.err conftest.$ac_ext 7878 7879 # OK, works on sane cases. Now check whether nonexistent headers 7880 # can be detected and how. 7881 cat >conftest.$ac_ext <<_ACEOF 7882/* confdefs.h. */ 7883_ACEOF 7884cat confdefs.h >>conftest.$ac_ext 7885cat >>conftest.$ac_ext <<_ACEOF 7886/* end confdefs.h. */ 7887#include <ac_nonexistent.h> 7888_ACEOF 7889if { (ac_try="$ac_cpp conftest.$ac_ext" 7890case "(($ac_try" in 7891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7892 *) ac_try_echo=$ac_try;; 7893esac 7894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7896 ac_status=$? 7897 grep -v '^ *+' conftest.er1 >conftest.err 7898 rm -f conftest.er1 7899 cat conftest.err >&5 7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7901 (exit $ac_status); } >/dev/null && { 7902 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 7903 test ! -s conftest.err 7904 }; then 7905 # Broken: success on invalid input. 7906continue 7907else 7908 echo "$as_me: failed program was:" >&5 7909sed 's/^/| /' conftest.$ac_ext >&5 7910 7911 # Passes both tests. 7912ac_preproc_ok=: 7913break 7914fi 7915 7916rm -f conftest.err conftest.$ac_ext 7917 7918done 7919# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7920rm -f conftest.err conftest.$ac_ext 7921if $ac_preproc_ok; then 7922 break 7923fi 7924 7925 done 7926 ac_cv_prog_CXXCPP=$CXXCPP 7927 7928fi 7929 CXXCPP=$ac_cv_prog_CXXCPP 7930else 7931 ac_cv_prog_CXXCPP=$CXXCPP 7932fi 7933{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 7934echo "${ECHO_T}$CXXCPP" >&6; } 7935ac_preproc_ok=false 7936for ac_cxx_preproc_warn_flag in '' yes 7937do 7938 # Use a header file that comes with gcc, so configuring glibc 7939 # with a fresh cross-compiler works. 7940 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7941 # <limits.h> exists even on freestanding compilers. 7942 # On the NeXT, cc -E runs the code through the compiler's parser, 7943 # not just through cpp. "Syntax error" is here to catch this case. 7944 cat >conftest.$ac_ext <<_ACEOF 7945/* confdefs.h. */ 7946_ACEOF 7947cat confdefs.h >>conftest.$ac_ext 7948cat >>conftest.$ac_ext <<_ACEOF 7949/* end confdefs.h. */ 7950#ifdef __STDC__ 7951# include <limits.h> 7952#else 7953# include <assert.h> 7954#endif 7955 Syntax error 7956_ACEOF 7957if { (ac_try="$ac_cpp conftest.$ac_ext" 7958case "(($ac_try" in 7959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7960 *) ac_try_echo=$ac_try;; 7961esac 7962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7963 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7964 ac_status=$? 7965 grep -v '^ *+' conftest.er1 >conftest.err 7966 rm -f conftest.er1 7967 cat conftest.err >&5 7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7969 (exit $ac_status); } >/dev/null && { 7970 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 7971 test ! -s conftest.err 7972 }; then 7973 : 7974else 7975 echo "$as_me: failed program was:" >&5 7976sed 's/^/| /' conftest.$ac_ext >&5 7977 7978 # Broken: fails on valid input. 7979continue 7980fi 7981 7982rm -f conftest.err conftest.$ac_ext 7983 7984 # OK, works on sane cases. Now check whether nonexistent headers 7985 # can be detected and how. 7986 cat >conftest.$ac_ext <<_ACEOF 7987/* confdefs.h. */ 7988_ACEOF 7989cat confdefs.h >>conftest.$ac_ext 7990cat >>conftest.$ac_ext <<_ACEOF 7991/* end confdefs.h. */ 7992#include <ac_nonexistent.h> 7993_ACEOF 7994if { (ac_try="$ac_cpp conftest.$ac_ext" 7995case "(($ac_try" in 7996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7997 *) ac_try_echo=$ac_try;; 7998esac 7999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8001 ac_status=$? 8002 grep -v '^ *+' conftest.er1 >conftest.err 8003 rm -f conftest.er1 8004 cat conftest.err >&5 8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8006 (exit $ac_status); } >/dev/null && { 8007 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 8008 test ! -s conftest.err 8009 }; then 8010 # Broken: success on invalid input. 8011continue 8012else 8013 echo "$as_me: failed program was:" >&5 8014sed 's/^/| /' conftest.$ac_ext >&5 8015 8016 # Passes both tests. 8017ac_preproc_ok=: 8018break 8019fi 8020 8021rm -f conftest.err conftest.$ac_ext 8022 8023done 8024# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8025rm -f conftest.err conftest.$ac_ext 8026if $ac_preproc_ok; then 8027 : 8028else 8029 _lt_caught_CXX_error=yes 8030fi 8031 8032ac_ext=c 8033ac_cpp='$CPP $CPPFLAGS' 8034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8036ac_compiler_gnu=$ac_cv_c_compiler_gnu 8037 8038else 8039 _lt_caught_CXX_error=yes 8040fi 8041 8042 8043 8044 8045 8046# Set options 8047 8048 8049 8050 enable_dlopen=no 8051 8052 8053 enable_win32_dll=no 8054 8055 8056 # Check whether --enable-shared was given. 8057if test "${enable_shared+set}" = set; then 8058 enableval=$enable_shared; p=${PACKAGE-default} 8059 case $enableval in 8060 yes) enable_shared=yes ;; 8061 no) enable_shared=no ;; 8062 *) 8063 enable_shared=no 8064 # Look at the argument we got. We use all the common list separators. 8065 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8066 for pkg in $enableval; do 8067 IFS="$lt_save_ifs" 8068 if test "X$pkg" = "X$p"; then 8069 enable_shared=yes 8070 fi 8071 done 8072 IFS="$lt_save_ifs" 8073 ;; 8074 esac 8075else 8076 enable_shared=yes 8077fi 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 # Check whether --enable-static was given. 8088if test "${enable_static+set}" = set; then 8089 enableval=$enable_static; p=${PACKAGE-default} 8090 case $enableval in 8091 yes) enable_static=yes ;; 8092 no) enable_static=no ;; 8093 *) 8094 enable_static=no 8095 # Look at the argument we got. We use all the common list separators. 8096 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8097 for pkg in $enableval; do 8098 IFS="$lt_save_ifs" 8099 if test "X$pkg" = "X$p"; then 8100 enable_static=yes 8101 fi 8102 done 8103 IFS="$lt_save_ifs" 8104 ;; 8105 esac 8106else 8107 enable_static=yes 8108fi 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119# Check whether --with-pic was given. 8120if test "${with_pic+set}" = set; then 8121 withval=$with_pic; pic_mode="$withval" 8122else 8123 pic_mode=default 8124fi 8125 8126 8127test -z "$pic_mode" && pic_mode=default 8128 8129 8130 8131 8132 8133 8134 8135 # Check whether --enable-fast-install was given. 8136if test "${enable_fast_install+set}" = set; then 8137 enableval=$enable_fast_install; p=${PACKAGE-default} 8138 case $enableval in 8139 yes) enable_fast_install=yes ;; 8140 no) enable_fast_install=no ;; 8141 *) 8142 enable_fast_install=no 8143 # Look at the argument we got. We use all the common list separators. 8144 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8145 for pkg in $enableval; do 8146 IFS="$lt_save_ifs" 8147 if test "X$pkg" = "X$p"; then 8148 enable_fast_install=yes 8149 fi 8150 done 8151 IFS="$lt_save_ifs" 8152 ;; 8153 esac 8154else 8155 enable_fast_install=yes 8156fi 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168# This can be used to rebuild libtool when needed 8169LIBTOOL_DEPS="$ltmain" 8170 8171# Always use our own libtool. 8172LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198test -z "$LN_S" && LN_S="ln -s" 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213if test -n "${ZSH_VERSION+set}" ; then 8214 setopt NO_GLOB_SUBST 8215fi 8216 8217{ echo "$as_me:$LINENO: checking for objdir" >&5 8218echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 8219if test "${lt_cv_objdir+set}" = set; then 8220 echo $ECHO_N "(cached) $ECHO_C" >&6 8221else 8222 rm -f .libs 2>/dev/null 8223mkdir .libs 2>/dev/null 8224if test -d .libs; then 8225 lt_cv_objdir=.libs 8226else 8227 # MS-DOS does not allow filenames that begin with a dot. 8228 lt_cv_objdir=_libs 8229fi 8230rmdir .libs 2>/dev/null 8231fi 8232{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 8233echo "${ECHO_T}$lt_cv_objdir" >&6; } 8234objdir=$lt_cv_objdir 8235 8236 8237 8238 8239 8240cat >>confdefs.h <<_ACEOF 8241#define LT_OBJDIR "$lt_cv_objdir/" 8242_ACEOF 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260case $host_os in 8261aix3*) 8262 # AIX sometimes has problems with the GCC collect2 program. For some 8263 # reason, if we set the COLLECT_NAMES environment variable, the problems 8264 # vanish in a puff of smoke. 8265 if test "X${COLLECT_NAMES+set}" != Xset; then 8266 COLLECT_NAMES= 8267 export COLLECT_NAMES 8268 fi 8269 ;; 8270esac 8271 8272# Sed substitution that helps us do robust quoting. It backslashifies 8273# metacharacters that are still active within double-quoted strings. 8274sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 8275 8276# Same as above, but do not quote variable references. 8277double_quote_subst='s/\(["`\\]\)/\\\1/g' 8278 8279# Sed substitution to delay expansion of an escaped shell variable in a 8280# double_quote_subst'ed string. 8281delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 8282 8283# Sed substitution to delay expansion of an escaped single quote. 8284delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 8285 8286# Sed substitution to avoid accidental globbing in evaled expressions 8287no_glob_subst='s/\*/\\\*/g' 8288 8289# Global variables: 8290ofile=libtool 8291can_build_shared=yes 8292 8293# All known linkers require a `.a' archive for static linking (except MSVC, 8294# which needs '.lib'). 8295libext=a 8296 8297with_gnu_ld="$lt_cv_prog_gnu_ld" 8298 8299old_CC="$CC" 8300old_CFLAGS="$CFLAGS" 8301 8302# Set sane defaults for various variables 8303test -z "$CC" && CC=cc 8304test -z "$LTCC" && LTCC=$CC 8305test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8306test -z "$LD" && LD=ld 8307test -z "$ac_objext" && ac_objext=o 8308 8309for cc_temp in $compiler""; do 8310 case $cc_temp in 8311 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8312 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8313 \-*) ;; 8314 *) break;; 8315 esac 8316done 8317cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8318 8319 8320# Only perform the check for file, if the check method requires it 8321test -z "$MAGIC_CMD" && MAGIC_CMD=file 8322case $deplibs_check_method in 8323file_magic*) 8324 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8325 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 8326echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 8327if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8328 echo $ECHO_N "(cached) $ECHO_C" >&6 8329else 8330 case $MAGIC_CMD in 8331[\\/*] | ?:[\\/]*) 8332 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8333 ;; 8334*) 8335 lt_save_MAGIC_CMD="$MAGIC_CMD" 8336 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8337 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8338 for ac_dir in $ac_dummy; do 8339 IFS="$lt_save_ifs" 8340 test -z "$ac_dir" && ac_dir=. 8341 if test -f $ac_dir/${ac_tool_prefix}file; then 8342 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8343 if test -n "$file_magic_test_file"; then 8344 case $deplibs_check_method in 8345 "file_magic "*) 8346 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8347 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8348 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8349 $EGREP "$file_magic_regex" > /dev/null; then 8350 : 8351 else 8352 cat <<_LT_EOF 1>&2 8353 8354*** Warning: the command libtool uses to detect shared libraries, 8355*** $file_magic_cmd, produces output that libtool cannot recognize. 8356*** The result is that libtool may fail to recognize shared libraries 8357*** as such. This will affect the creation of libtool libraries that 8358*** depend on shared libraries, but programs linked with such libtool 8359*** libraries will work regardless of this problem. Nevertheless, you 8360*** may want to report the problem to your system manager and/or to 8361*** bug-libtool@gnu.org 8362 8363_LT_EOF 8364 fi ;; 8365 esac 8366 fi 8367 break 8368 fi 8369 done 8370 IFS="$lt_save_ifs" 8371 MAGIC_CMD="$lt_save_MAGIC_CMD" 8372 ;; 8373esac 8374fi 8375 8376MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8377if test -n "$MAGIC_CMD"; then 8378 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8379echo "${ECHO_T}$MAGIC_CMD" >&6; } 8380else 8381 { echo "$as_me:$LINENO: result: no" >&5 8382echo "${ECHO_T}no" >&6; } 8383fi 8384 8385 8386 8387 8388 8389if test -z "$lt_cv_path_MAGIC_CMD"; then 8390 if test -n "$ac_tool_prefix"; then 8391 { echo "$as_me:$LINENO: checking for file" >&5 8392echo $ECHO_N "checking for file... $ECHO_C" >&6; } 8393if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8394 echo $ECHO_N "(cached) $ECHO_C" >&6 8395else 8396 case $MAGIC_CMD in 8397[\\/*] | ?:[\\/]*) 8398 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8399 ;; 8400*) 8401 lt_save_MAGIC_CMD="$MAGIC_CMD" 8402 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8403 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8404 for ac_dir in $ac_dummy; do 8405 IFS="$lt_save_ifs" 8406 test -z "$ac_dir" && ac_dir=. 8407 if test -f $ac_dir/file; then 8408 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8409 if test -n "$file_magic_test_file"; then 8410 case $deplibs_check_method in 8411 "file_magic "*) 8412 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8413 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8414 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8415 $EGREP "$file_magic_regex" > /dev/null; then 8416 : 8417 else 8418 cat <<_LT_EOF 1>&2 8419 8420*** Warning: the command libtool uses to detect shared libraries, 8421*** $file_magic_cmd, produces output that libtool cannot recognize. 8422*** The result is that libtool may fail to recognize shared libraries 8423*** as such. This will affect the creation of libtool libraries that 8424*** depend on shared libraries, but programs linked with such libtool 8425*** libraries will work regardless of this problem. Nevertheless, you 8426*** may want to report the problem to your system manager and/or to 8427*** bug-libtool@gnu.org 8428 8429_LT_EOF 8430 fi ;; 8431 esac 8432 fi 8433 break 8434 fi 8435 done 8436 IFS="$lt_save_ifs" 8437 MAGIC_CMD="$lt_save_MAGIC_CMD" 8438 ;; 8439esac 8440fi 8441 8442MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8443if test -n "$MAGIC_CMD"; then 8444 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8445echo "${ECHO_T}$MAGIC_CMD" >&6; } 8446else 8447 { echo "$as_me:$LINENO: result: no" >&5 8448echo "${ECHO_T}no" >&6; } 8449fi 8450 8451 8452 else 8453 MAGIC_CMD=: 8454 fi 8455fi 8456 8457 fi 8458 ;; 8459esac 8460 8461# Use C for the default configuration in the libtool script 8462 8463lt_save_CC="$CC" 8464ac_ext=c 8465ac_cpp='$CPP $CPPFLAGS' 8466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8468ac_compiler_gnu=$ac_cv_c_compiler_gnu 8469 8470 8471# Source file extension for C test sources. 8472ac_ext=c 8473 8474# Object file extension for compiled C test sources. 8475objext=o 8476objext=$objext 8477 8478# Code to be used in simple compile tests 8479lt_simple_compile_test_code="int some_variable = 0;" 8480 8481# Code to be used in simple link tests 8482lt_simple_link_test_code='int main(){return(0);}' 8483 8484 8485 8486 8487 8488 8489 8490# If no C compiler was specified, use CC. 8491LTCC=${LTCC-"$CC"} 8492 8493# If no C compiler flags were specified, use CFLAGS. 8494LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8495 8496# Allow CC to be a program name with arguments. 8497compiler=$CC 8498 8499# Save the default compiler, since it gets overwritten when the other 8500# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8501compiler_DEFAULT=$CC 8502 8503# save warnings/boilerplate of simple test code 8504ac_outfile=conftest.$ac_objext 8505echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8506eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8507_lt_compiler_boilerplate=`cat conftest.err` 8508$RM -r conftest* 8509 8510ac_outfile=conftest.$ac_objext 8511echo "$lt_simple_link_test_code" >conftest.$ac_ext 8512eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8513_lt_linker_boilerplate=`cat conftest.err` 8514$RM -r conftest* 8515 8516 8517if test -n "$compiler"; then 8518 8519lt_prog_compiler_no_builtin_flag= 8520 8521if test "$GCC" = yes; then 8522 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 8523 8524 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8525echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 8526if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 8527 echo $ECHO_N "(cached) $ECHO_C" >&6 8528else 8529 lt_cv_prog_compiler_rtti_exceptions=no 8530 ac_outfile=conftest.$ac_objext 8531 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8532 lt_compiler_flag="-fno-rtti -fno-exceptions" 8533 # Insert the option either (1) after the last *FLAGS variable, or 8534 # (2) before a word containing "conftest.", or (3) at the end. 8535 # Note that $ac_compile itself does not contain backslashes and begins 8536 # with a dollar sign (not a hyphen), so the echo should work correctly. 8537 # The option is referenced via a variable to avoid confusing sed. 8538 lt_compile=`echo "$ac_compile" | $SED \ 8539 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8540 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8541 -e 's:$: $lt_compiler_flag:'` 8542 (eval echo "\"\$as_me:8542: $lt_compile\"" >&5) 8543 (eval "$lt_compile" 2>conftest.err) 8544 ac_status=$? 8545 cat conftest.err >&5 8546 echo "$as_me:8546: \$? = $ac_status" >&5 8547 if (exit $ac_status) && test -s "$ac_outfile"; then 8548 # The compiler can only warn and ignore the option if not recognized 8549 # So say no if there are warnings other than the usual output. 8550 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8551 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8552 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8553 lt_cv_prog_compiler_rtti_exceptions=yes 8554 fi 8555 fi 8556 $RM -r conftest* 8557 8558fi 8559{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8560echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8561 8562if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8563 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8564else 8565 : 8566fi 8567 8568fi 8569 8570 8571 8572 8573 8574 8575 lt_prog_compiler_wl= 8576lt_prog_compiler_pic= 8577lt_prog_compiler_static= 8578 8579{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 8580echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 8581 8582 if test "$GCC" = yes; then 8583 lt_prog_compiler_wl='-Wl,' 8584 lt_prog_compiler_static='-static' 8585 8586 case $host_os in 8587 aix*) 8588 # All AIX code is PIC. 8589 if test "$host_cpu" = ia64; then 8590 # AIX 5 now supports IA64 processor 8591 lt_prog_compiler_static='-Bstatic' 8592 fi 8593 ;; 8594 8595 amigaos*) 8596 case $host_cpu in 8597 powerpc) 8598 # see comment about AmigaOS4 .so support 8599 lt_prog_compiler_pic='-fPIC' 8600 ;; 8601 m68k) 8602 # FIXME: we need at least 68020 code to build shared libraries, but 8603 # adding the `-m68020' flag to GCC prevents building anything better, 8604 # like `-m68040'. 8605 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8606 ;; 8607 esac 8608 ;; 8609 8610 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8611 # PIC is the default for these OSes. 8612 ;; 8613 8614 mingw* | cygwin* | pw32* | os2*) 8615 # This hack is so that the source file can tell whether it is being 8616 # built for inclusion in a dll (and should export symbols for example). 8617 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8618 # (--disable-auto-import) libraries 8619 lt_prog_compiler_pic='-DDLL_EXPORT' 8620 ;; 8621 8622 darwin* | rhapsody*) 8623 # PIC is the default on this platform 8624 # Common symbols not allowed in MH_DYLIB files 8625 lt_prog_compiler_pic='-fno-common' 8626 ;; 8627 8628 hpux*) 8629 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8630 # not for PA HP-UX. 8631 case $host_cpu in 8632 hppa*64*|ia64*) 8633 # +Z the default 8634 ;; 8635 *) 8636 lt_prog_compiler_pic='-fPIC' 8637 ;; 8638 esac 8639 ;; 8640 8641 interix[3-9]*) 8642 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8643 # Instead, we relocate shared libraries at runtime. 8644 ;; 8645 8646 msdosdjgpp*) 8647 # Just because we use GCC doesn't mean we suddenly get shared libraries 8648 # on systems that don't support them. 8649 lt_prog_compiler_can_build_shared=no 8650 enable_shared=no 8651 ;; 8652 8653 *nto* | *qnx*) 8654 # QNX uses GNU C++, but need to define -shared option too, otherwise 8655 # it will coredump. 8656 lt_prog_compiler_pic='-fPIC -shared' 8657 ;; 8658 8659 sysv4*MP*) 8660 if test -d /usr/nec; then 8661 lt_prog_compiler_pic=-Kconform_pic 8662 fi 8663 ;; 8664 8665 *) 8666 lt_prog_compiler_pic='-fPIC' 8667 ;; 8668 esac 8669 else 8670 # PORTME Check for flag to pass linker flags through the system compiler. 8671 case $host_os in 8672 aix*) 8673 lt_prog_compiler_wl='-Wl,' 8674 if test "$host_cpu" = ia64; then 8675 # AIX 5 now supports IA64 processor 8676 lt_prog_compiler_static='-Bstatic' 8677 else 8678 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8679 fi 8680 ;; 8681 8682 mingw* | cygwin* | pw32* | os2*) 8683 # This hack is so that the source file can tell whether it is being 8684 # built for inclusion in a dll (and should export symbols for example). 8685 lt_prog_compiler_pic='-DDLL_EXPORT' 8686 ;; 8687 8688 hpux9* | hpux10* | hpux11*) 8689 lt_prog_compiler_wl='-Wl,' 8690 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8691 # not for PA HP-UX. 8692 case $host_cpu in 8693 hppa*64*|ia64*) 8694 # +Z the default 8695 ;; 8696 *) 8697 lt_prog_compiler_pic='+Z' 8698 ;; 8699 esac 8700 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8701 lt_prog_compiler_static='${wl}-a ${wl}archive' 8702 ;; 8703 8704 irix5* | irix6* | nonstopux*) 8705 lt_prog_compiler_wl='-Wl,' 8706 # PIC (with -KPIC) is the default. 8707 lt_prog_compiler_static='-non_shared' 8708 ;; 8709 8710 linux* | k*bsd*-gnu) 8711 case $cc_basename in 8712 icc* | ecc* | ifort*) 8713 lt_prog_compiler_wl='-Wl,' 8714 lt_prog_compiler_pic='-KPIC' 8715 lt_prog_compiler_static='-static' 8716 ;; 8717 pgcc* | pgf77* | pgf90* | pgf95*) 8718 # Portland Group compilers (*not* the Pentium gcc compiler, 8719 # which looks to be a dead project) 8720 lt_prog_compiler_wl='-Wl,' 8721 lt_prog_compiler_pic='-fpic' 8722 lt_prog_compiler_static='-Bstatic' 8723 ;; 8724 ccc*) 8725 lt_prog_compiler_wl='-Wl,' 8726 # All Alpha code is PIC. 8727 lt_prog_compiler_static='-non_shared' 8728 ;; 8729 xl*) 8730 # IBM XL C 8.0/Fortran 10.1 on PPC 8731 lt_prog_compiler_wl='-Wl,' 8732 lt_prog_compiler_pic='-qpic' 8733 lt_prog_compiler_static='-qstaticlink' 8734 ;; 8735 *) 8736 case `$CC -V 2>&1 | sed 5q` in 8737 *Sun\ C*) 8738 # Sun C 5.9 8739 lt_prog_compiler_pic='-KPIC' 8740 lt_prog_compiler_static='-Bstatic' 8741 lt_prog_compiler_wl='-Wl,' 8742 ;; 8743 *Sun\ F*) 8744 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8745 lt_prog_compiler_pic='-KPIC' 8746 lt_prog_compiler_static='-Bstatic' 8747 lt_prog_compiler_wl='' 8748 ;; 8749 esac 8750 ;; 8751 esac 8752 ;; 8753 8754 newsos6) 8755 lt_prog_compiler_pic='-KPIC' 8756 lt_prog_compiler_static='-Bstatic' 8757 ;; 8758 8759 *nto* | *qnx*) 8760 # QNX uses GNU C++, but need to define -shared option too, otherwise 8761 # it will coredump. 8762 lt_prog_compiler_pic='-fPIC -shared' 8763 ;; 8764 8765 osf3* | osf4* | osf5*) 8766 lt_prog_compiler_wl='-Wl,' 8767 # All OSF/1 code is PIC. 8768 lt_prog_compiler_static='-non_shared' 8769 ;; 8770 8771 rdos*) 8772 lt_prog_compiler_static='-non_shared' 8773 ;; 8774 8775 solaris*) 8776 lt_prog_compiler_pic='-KPIC' 8777 lt_prog_compiler_static='-Bstatic' 8778 case $cc_basename in 8779 f77* | f90* | f95*) 8780 lt_prog_compiler_wl='-Qoption ld ';; 8781 *) 8782 lt_prog_compiler_wl='-Wl,';; 8783 esac 8784 ;; 8785 8786 sunos4*) 8787 lt_prog_compiler_wl='-Qoption ld ' 8788 lt_prog_compiler_pic='-PIC' 8789 lt_prog_compiler_static='-Bstatic' 8790 ;; 8791 8792 sysv4 | sysv4.2uw2* | sysv4.3*) 8793 lt_prog_compiler_wl='-Wl,' 8794 lt_prog_compiler_pic='-KPIC' 8795 lt_prog_compiler_static='-Bstatic' 8796 ;; 8797 8798 sysv4*MP*) 8799 if test -d /usr/nec ;then 8800 lt_prog_compiler_pic='-Kconform_pic' 8801 lt_prog_compiler_static='-Bstatic' 8802 fi 8803 ;; 8804 8805 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8806 lt_prog_compiler_wl='-Wl,' 8807 lt_prog_compiler_pic='-KPIC' 8808 lt_prog_compiler_static='-Bstatic' 8809 ;; 8810 8811 unicos*) 8812 lt_prog_compiler_wl='-Wl,' 8813 lt_prog_compiler_can_build_shared=no 8814 ;; 8815 8816 uts4*) 8817 lt_prog_compiler_pic='-pic' 8818 lt_prog_compiler_static='-Bstatic' 8819 ;; 8820 8821 *) 8822 lt_prog_compiler_can_build_shared=no 8823 ;; 8824 esac 8825 fi 8826 8827case $host_os in 8828 # For platforms which do not support PIC, -DPIC is meaningless: 8829 *djgpp*) 8830 lt_prog_compiler_pic= 8831 ;; 8832 *) 8833 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8834 ;; 8835esac 8836{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 8837echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 8838 8839 8840 8841 8842 8843 8844# 8845# Check to make sure the PIC flag actually works. 8846# 8847if test -n "$lt_prog_compiler_pic"; then 8848 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8849echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 8850if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 8851 echo $ECHO_N "(cached) $ECHO_C" >&6 8852else 8853 lt_cv_prog_compiler_pic_works=no 8854 ac_outfile=conftest.$ac_objext 8855 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8856 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8857 # Insert the option either (1) after the last *FLAGS variable, or 8858 # (2) before a word containing "conftest.", or (3) at the end. 8859 # Note that $ac_compile itself does not contain backslashes and begins 8860 # with a dollar sign (not a hyphen), so the echo should work correctly. 8861 # The option is referenced via a variable to avoid confusing sed. 8862 lt_compile=`echo "$ac_compile" | $SED \ 8863 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8864 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8865 -e 's:$: $lt_compiler_flag:'` 8866 (eval echo "\"\$as_me:8866: $lt_compile\"" >&5) 8867 (eval "$lt_compile" 2>conftest.err) 8868 ac_status=$? 8869 cat conftest.err >&5 8870 echo "$as_me:8870: \$? = $ac_status" >&5 8871 if (exit $ac_status) && test -s "$ac_outfile"; then 8872 # The compiler can only warn and ignore the option if not recognized 8873 # So say no if there are warnings other than the usual output. 8874 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8875 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8876 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8877 lt_cv_prog_compiler_pic_works=yes 8878 fi 8879 fi 8880 $RM -r conftest* 8881 8882fi 8883{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 8884echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; } 8885 8886if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8887 case $lt_prog_compiler_pic in 8888 "" | " "*) ;; 8889 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8890 esac 8891else 8892 lt_prog_compiler_pic= 8893 lt_prog_compiler_can_build_shared=no 8894fi 8895 8896fi 8897 8898 8899 8900 8901 8902 8903# 8904# Check to make sure the static flag actually works. 8905# 8906wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8907{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8908echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 8909if test "${lt_cv_prog_compiler_static_works+set}" = set; then 8910 echo $ECHO_N "(cached) $ECHO_C" >&6 8911else 8912 lt_cv_prog_compiler_static_works=no 8913 save_LDFLAGS="$LDFLAGS" 8914 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8915 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8916 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8917 # The linker can only warn and ignore the option if not recognized 8918 # So say no if there are warnings 8919 if test -s conftest.err; then 8920 # Append any errors to the config.log. 8921 cat conftest.err 1>&5 8922 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 8923 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8924 if diff conftest.exp conftest.er2 >/dev/null; then 8925 lt_cv_prog_compiler_static_works=yes 8926 fi 8927 else 8928 lt_cv_prog_compiler_static_works=yes 8929 fi 8930 fi 8931 $RM -r conftest* 8932 LDFLAGS="$save_LDFLAGS" 8933 8934fi 8935{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 8936echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; } 8937 8938if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8939 : 8940else 8941 lt_prog_compiler_static= 8942fi 8943 8944 8945 8946 8947 8948 8949 8950 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8951echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 8952if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8953 echo $ECHO_N "(cached) $ECHO_C" >&6 8954else 8955 lt_cv_prog_compiler_c_o=no 8956 $RM -r conftest 2>/dev/null 8957 mkdir conftest 8958 cd conftest 8959 mkdir out 8960 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8961 8962 lt_compiler_flag="-o out/conftest2.$ac_objext" 8963 # Insert the option either (1) after the last *FLAGS variable, or 8964 # (2) before a word containing "conftest.", or (3) at the end. 8965 # Note that $ac_compile itself does not contain backslashes and begins 8966 # with a dollar sign (not a hyphen), so the echo should work correctly. 8967 lt_compile=`echo "$ac_compile" | $SED \ 8968 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8969 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8970 -e 's:$: $lt_compiler_flag:'` 8971 (eval echo "\"\$as_me:8971: $lt_compile\"" >&5) 8972 (eval "$lt_compile" 2>out/conftest.err) 8973 ac_status=$? 8974 cat out/conftest.err >&5 8975 echo "$as_me:8975: \$? = $ac_status" >&5 8976 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8977 then 8978 # The compiler can only warn and ignore the option if not recognized 8979 # So say no if there are warnings 8980 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8981 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8982 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8983 lt_cv_prog_compiler_c_o=yes 8984 fi 8985 fi 8986 chmod u+w . 2>&5 8987 $RM -r conftest* 8988 # SGI C++ compiler will create directory out/ii_files/ for 8989 # template instantiation 8990 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8991 $RM out/* && rmdir out 8992 cd .. 8993 $RM -r conftest 8994 $RM -r conftest* 8995 8996fi 8997{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8998echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 8999 9000 9001 9002 9003 9004 9005 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 9006echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 9007if test "${lt_cv_prog_compiler_c_o+set}" = set; then 9008 echo $ECHO_N "(cached) $ECHO_C" >&6 9009else 9010 lt_cv_prog_compiler_c_o=no 9011 $RM -r conftest 2>/dev/null 9012 mkdir conftest 9013 cd conftest 9014 mkdir out 9015 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9016 9017 lt_compiler_flag="-o out/conftest2.$ac_objext" 9018 # Insert the option either (1) after the last *FLAGS variable, or 9019 # (2) before a word containing "conftest.", or (3) at the end. 9020 # Note that $ac_compile itself does not contain backslashes and begins 9021 # with a dollar sign (not a hyphen), so the echo should work correctly. 9022 lt_compile=`echo "$ac_compile" | $SED \ 9023 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9024 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9025 -e 's:$: $lt_compiler_flag:'` 9026 (eval echo "\"\$as_me:9026: $lt_compile\"" >&5) 9027 (eval "$lt_compile" 2>out/conftest.err) 9028 ac_status=$? 9029 cat out/conftest.err >&5 9030 echo "$as_me:9030: \$? = $ac_status" >&5 9031 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9032 then 9033 # The compiler can only warn and ignore the option if not recognized 9034 # So say no if there are warnings 9035 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 9036 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9037 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9038 lt_cv_prog_compiler_c_o=yes 9039 fi 9040 fi 9041 chmod u+w . 2>&5 9042 $RM -r conftest* 9043 # SGI C++ compiler will create directory out/ii_files/ for 9044 # template instantiation 9045 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9046 $RM out/* && rmdir out 9047 cd .. 9048 $RM -r conftest 9049 $RM -r conftest* 9050 9051fi 9052{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 9053echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 9054 9055 9056 9057 9058hard_links="nottested" 9059if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9060 # do not overwrite the value of need_locks provided by the user 9061 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 9062echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 9063 hard_links=yes 9064 $RM -r conftest* 9065 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9066 touch conftest.a 9067 ln conftest.a conftest.b 2>&5 || hard_links=no 9068 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9069 { echo "$as_me:$LINENO: result: $hard_links" >&5 9070echo "${ECHO_T}$hard_links" >&6; } 9071 if test "$hard_links" = no; then 9072 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9073echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9074 need_locks=warn 9075 fi 9076else 9077 need_locks=no 9078fi 9079 9080 9081 9082 9083 9084 9085 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9086echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 9087 9088 runpath_var= 9089 allow_undefined_flag= 9090 always_export_symbols=no 9091 archive_cmds= 9092 archive_expsym_cmds= 9093 compiler_needs_object=no 9094 enable_shared_with_static_runtimes=no 9095 export_dynamic_flag_spec= 9096 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9097 hardcode_automatic=no 9098 hardcode_direct=no 9099 hardcode_direct_absolute=no 9100 hardcode_libdir_flag_spec= 9101 hardcode_libdir_flag_spec_ld= 9102 hardcode_libdir_separator= 9103 hardcode_minus_L=no 9104 hardcode_shlibpath_var=unsupported 9105 inherit_rpath=no 9106 link_all_deplibs=unknown 9107 module_cmds= 9108 module_expsym_cmds= 9109 old_archive_from_new_cmds= 9110 old_archive_from_expsyms_cmds= 9111 thread_safe_flag_spec= 9112 whole_archive_flag_spec= 9113 # include_expsyms should be a list of space-separated symbols to be *always* 9114 # included in the symbol list 9115 include_expsyms= 9116 # exclude_expsyms can be an extended regexp of symbols to exclude 9117 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9118 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9119 # as well as any symbol that contains `d'. 9120 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9121 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9122 # platforms (ab)use it in PIC code, but their linkers get confused if 9123 # the symbol is explicitly referenced. Since portable code cannot 9124 # rely on this symbol name, it's probably fine to never include it in 9125 # preloaded symbol tables. 9126 # Exclude shared library initialization/finalization symbols. 9127 extract_expsyms_cmds= 9128 9129 case $host_os in 9130 cygwin* | mingw* | pw32*) 9131 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9132 # When not using gcc, we currently assume that we are using 9133 # Microsoft Visual C++. 9134 if test "$GCC" != yes; then 9135 with_gnu_ld=no 9136 fi 9137 ;; 9138 interix*) 9139 # we just hope/assume this is gcc and not c89 (= MSVC++) 9140 with_gnu_ld=yes 9141 ;; 9142 openbsd*) 9143 with_gnu_ld=no 9144 ;; 9145 esac 9146 9147 ld_shlibs=yes 9148 if test "$with_gnu_ld" = yes; then 9149 # If archive_cmds runs LD, not CC, wlarc should be empty 9150 wlarc='${wl}' 9151 9152 # Set some defaults for GNU ld with shared library support. These 9153 # are reset later if shared libraries are not supported. Putting them 9154 # here allows them to be overridden if necessary. 9155 runpath_var=LD_RUN_PATH 9156 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9157 export_dynamic_flag_spec='${wl}--export-dynamic' 9158 # ancient GNU ld didn't support --whole-archive et. al. 9159 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9160 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9161 else 9162 whole_archive_flag_spec= 9163 fi 9164 supports_anon_versioning=no 9165 case `$LD -v 2>&1` in 9166 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9167 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9168 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9169 *\ 2.11.*) ;; # other 2.11 versions 9170 *) supports_anon_versioning=yes ;; 9171 esac 9172 9173 # See if GNU ld supports shared libraries. 9174 case $host_os in 9175 aix[3-9]*) 9176 # On AIX/PPC, the GNU linker is very broken 9177 if test "$host_cpu" != ia64; then 9178 ld_shlibs=no 9179 cat <<_LT_EOF 1>&2 9180 9181*** Warning: the GNU linker, at least up to release 2.9.1, is reported 9182*** to be unable to reliably create shared libraries on AIX. 9183*** Therefore, libtool is disabling shared libraries support. If you 9184*** really care for shared libraries, you may want to modify your PATH 9185*** so that a non-GNU linker is found, and then restart. 9186 9187_LT_EOF 9188 fi 9189 ;; 9190 9191 amigaos*) 9192 case $host_cpu in 9193 powerpc) 9194 # see comment about AmigaOS4 .so support 9195 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9196 archive_expsym_cmds='' 9197 ;; 9198 m68k) 9199 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)' 9200 hardcode_libdir_flag_spec='-L$libdir' 9201 hardcode_minus_L=yes 9202 ;; 9203 esac 9204 ;; 9205 9206 beos*) 9207 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9208 allow_undefined_flag=unsupported 9209 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9210 # support --undefined. This deserves some investigation. FIXME 9211 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9212 else 9213 ld_shlibs=no 9214 fi 9215 ;; 9216 9217 cygwin* | mingw* | pw32*) 9218 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9219 # as there is no search path for DLLs. 9220 hardcode_libdir_flag_spec='-L$libdir' 9221 allow_undefined_flag=unsupported 9222 always_export_symbols=no 9223 enable_shared_with_static_runtimes=yes 9224 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9225 9226 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9227 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9228 # If the export-symbols file already is a .def file (1st line 9229 # is EXPORTS), use it as is; otherwise, prepend... 9230 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9231 cp $export_symbols $output_objdir/$soname.def; 9232 else 9233 echo EXPORTS > $output_objdir/$soname.def; 9234 cat $export_symbols >> $output_objdir/$soname.def; 9235 fi~ 9236 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9237 else 9238 ld_shlibs=no 9239 fi 9240 ;; 9241 9242 interix[3-9]*) 9243 hardcode_direct=no 9244 hardcode_shlibpath_var=no 9245 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9246 export_dynamic_flag_spec='${wl}-E' 9247 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9248 # Instead, shared libraries are loaded at an image base (0x10000000 by 9249 # default) and relocated if they conflict, which is a slow very memory 9250 # consuming and fragmenting process. To avoid this, we pick a random, 9251 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9252 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9253 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9254 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' 9255 ;; 9256 9257 gnu* | linux* | tpf* | k*bsd*-gnu) 9258 tmp_diet=no 9259 if test "$host_os" = linux-dietlibc; then 9260 case $cc_basename in 9261 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9262 esac 9263 fi 9264 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9265 && test "$tmp_diet" = no 9266 then 9267 tmp_addflag= 9268 tmp_sharedflag='-shared' 9269 case $cc_basename,$host_cpu in 9270 pgcc*) # Portland Group C compiler 9271 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' 9272 tmp_addflag=' $pic_flag' 9273 ;; 9274 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 9275 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' 9276 tmp_addflag=' $pic_flag -Mnomain' ;; 9277 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9278 tmp_addflag=' -i_dynamic' ;; 9279 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9280 tmp_addflag=' -i_dynamic -nofor_main' ;; 9281 ifc* | ifort*) # Intel Fortran compiler 9282 tmp_addflag=' -nofor_main' ;; 9283 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9284 tmp_sharedflag='-qmkshrobj' 9285 tmp_addflag= ;; 9286 esac 9287 case `$CC -V 2>&1 | sed 5q` in 9288 *Sun\ C*) # Sun C 5.9 9289 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 9290 compiler_needs_object=yes 9291 tmp_sharedflag='-G' ;; 9292 *Sun\ F*) # Sun Fortran 8.3 9293 tmp_sharedflag='-G' ;; 9294 esac 9295 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9296 9297 if test "x$supports_anon_versioning" = xyes; then 9298 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9299 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9300 echo "local: *; };" >> $output_objdir/$libname.ver~ 9301 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9302 fi 9303 9304 case $cc_basename in 9305 xlf*) 9306 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9307 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9308 hardcode_libdir_flag_spec= 9309 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9310 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 9311 if test "x$supports_anon_versioning" = xyes; then 9312 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9313 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9314 echo "local: *; };" >> $output_objdir/$libname.ver~ 9315 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9316 fi 9317 ;; 9318 esac 9319 else 9320 ld_shlibs=no 9321 fi 9322 ;; 9323 9324 netbsd*) 9325 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9326 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9327 wlarc= 9328 else 9329 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9330 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9331 fi 9332 ;; 9333 9334 solaris*) 9335 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9336 ld_shlibs=no 9337 cat <<_LT_EOF 1>&2 9338 9339*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9340*** create shared libraries on Solaris systems. Therefore, libtool 9341*** is disabling shared libraries support. We urge you to upgrade GNU 9342*** binutils to release 2.9.1 or newer. Another option is to modify 9343*** your PATH or compiler configuration so that the native linker is 9344*** used, and then restart. 9345 9346_LT_EOF 9347 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9348 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9349 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9350 else 9351 ld_shlibs=no 9352 fi 9353 ;; 9354 9355 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9356 case `$LD -v 2>&1` in 9357 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9358 ld_shlibs=no 9359 cat <<_LT_EOF 1>&2 9360 9361*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9362*** reliably create shared libraries on SCO systems. Therefore, libtool 9363*** is disabling shared libraries support. We urge you to upgrade GNU 9364*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9365*** your PATH or compiler configuration so that the native linker is 9366*** used, and then restart. 9367 9368_LT_EOF 9369 ;; 9370 *) 9371 # For security reasons, it is highly recommended that you always 9372 # use absolute paths for naming shared libraries, and exclude the 9373 # DT_RUNPATH tag from executables and libraries. But doing so 9374 # requires that you compile everything twice, which is a pain. 9375 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9376 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9377 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9378 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9379 else 9380 ld_shlibs=no 9381 fi 9382 ;; 9383 esac 9384 ;; 9385 9386 sunos4*) 9387 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9388 wlarc= 9389 hardcode_direct=yes 9390 hardcode_shlibpath_var=no 9391 ;; 9392 9393 *) 9394 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9395 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9396 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9397 else 9398 ld_shlibs=no 9399 fi 9400 ;; 9401 esac 9402 9403 if test "$ld_shlibs" = no; then 9404 runpath_var= 9405 hardcode_libdir_flag_spec= 9406 export_dynamic_flag_spec= 9407 whole_archive_flag_spec= 9408 fi 9409 else 9410 # PORTME fill in a description of your system's linker (not GNU ld) 9411 case $host_os in 9412 aix3*) 9413 allow_undefined_flag=unsupported 9414 always_export_symbols=yes 9415 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' 9416 # Note: this linker hardcodes the directories in LIBPATH if there 9417 # are no directories specified by -L. 9418 hardcode_minus_L=yes 9419 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9420 # Neither direct hardcoding nor static linking is supported with a 9421 # broken collect2. 9422 hardcode_direct=unsupported 9423 fi 9424 ;; 9425 9426 aix[4-9]*) 9427 if test "$host_cpu" = ia64; then 9428 # On IA64, the linker does run time linking by default, so we don't 9429 # have to do anything special. 9430 aix_use_runtimelinking=no 9431 exp_sym_flag='-Bexport' 9432 no_entry_flag="" 9433 else 9434 # If we're using GNU nm, then we don't want the "-C" option. 9435 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9436 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9437 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' 9438 else 9439 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' 9440 fi 9441 aix_use_runtimelinking=no 9442 9443 # Test if we are trying to use run time linking or normal 9444 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9445 # need to do runtime linking. 9446 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9447 for ld_flag in $LDFLAGS; do 9448 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9449 aix_use_runtimelinking=yes 9450 break 9451 fi 9452 done 9453 ;; 9454 esac 9455 9456 exp_sym_flag='-bexport' 9457 no_entry_flag='-bnoentry' 9458 fi 9459 9460 # When large executables or shared objects are built, AIX ld can 9461 # have problems creating the table of contents. If linking a library 9462 # or program results in "error TOC overflow" add -mminimal-toc to 9463 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9464 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9465 9466 archive_cmds='' 9467 hardcode_direct=yes 9468 hardcode_direct_absolute=yes 9469 hardcode_libdir_separator=':' 9470 link_all_deplibs=yes 9471 file_list_spec='${wl}-f,' 9472 9473 if test "$GCC" = yes; then 9474 case $host_os in aix4.[012]|aix4.[012].*) 9475 # We only want to do this on AIX 4.2 and lower, the check 9476 # below for broken collect2 doesn't work under 4.3+ 9477 collect2name=`${CC} -print-prog-name=collect2` 9478 if test -f "$collect2name" && 9479 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9480 then 9481 # We have reworked collect2 9482 : 9483 else 9484 # We have old collect2 9485 hardcode_direct=unsupported 9486 # It fails to find uninstalled libraries when the uninstalled 9487 # path is not listed in the libpath. Setting hardcode_minus_L 9488 # to unsupported forces relinking 9489 hardcode_minus_L=yes 9490 hardcode_libdir_flag_spec='-L$libdir' 9491 hardcode_libdir_separator= 9492 fi 9493 ;; 9494 esac 9495 shared_flag='-shared' 9496 if test "$aix_use_runtimelinking" = yes; then 9497 shared_flag="$shared_flag "'${wl}-G' 9498 fi 9499 else 9500 # not using gcc 9501 if test "$host_cpu" = ia64; then 9502 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9503 # chokes on -Wl,-G. The following line is correct: 9504 shared_flag='-G' 9505 else 9506 if test "$aix_use_runtimelinking" = yes; then 9507 shared_flag='${wl}-G' 9508 else 9509 shared_flag='${wl}-bM:SRE' 9510 fi 9511 fi 9512 fi 9513 9514 # It seems that -bexpall does not export symbols beginning with 9515 # underscore (_), so it is better to generate a list of symbols to export. 9516 always_export_symbols=yes 9517 if test "$aix_use_runtimelinking" = yes; then 9518 # Warning - without using the other runtime loading flags (-brtl), 9519 # -berok will link without error, but may produce a broken library. 9520 allow_undefined_flag='-berok' 9521 # Determine the default libpath from the value encoded in an 9522 # empty executable. 9523 cat >conftest.$ac_ext <<_ACEOF 9524/* confdefs.h. */ 9525_ACEOF 9526cat confdefs.h >>conftest.$ac_ext 9527cat >>conftest.$ac_ext <<_ACEOF 9528/* end confdefs.h. */ 9529 9530int 9531main () 9532{ 9533 9534 ; 9535 return 0; 9536} 9537_ACEOF 9538rm -f conftest.$ac_objext conftest$ac_exeext 9539if { (ac_try="$ac_link" 9540case "(($ac_try" in 9541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9542 *) ac_try_echo=$ac_try;; 9543esac 9544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9545 (eval "$ac_link") 2>conftest.er1 9546 ac_status=$? 9547 grep -v '^ *+' conftest.er1 >conftest.err 9548 rm -f conftest.er1 9549 cat conftest.err >&5 9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9551 (exit $ac_status); } && { 9552 test -z "$ac_c_werror_flag" || 9553 test ! -s conftest.err 9554 } && test -s conftest$ac_exeext && 9555 $as_test_x conftest$ac_exeext; then 9556 9557lt_aix_libpath_sed=' 9558 /Import File Strings/,/^$/ { 9559 /^0/ { 9560 s/^0 *\(.*\)$/\1/ 9561 p 9562 } 9563 }' 9564aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9565# Check for a 64-bit object if we didn't find anything. 9566if test -z "$aix_libpath"; then 9567 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9568fi 9569else 9570 echo "$as_me: failed program was:" >&5 9571sed 's/^/| /' conftest.$ac_ext >&5 9572 9573 9574fi 9575 9576rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9577 conftest$ac_exeext conftest.$ac_ext 9578if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9579 9580 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9581 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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9582 else 9583 if test "$host_cpu" = ia64; then 9584 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9585 allow_undefined_flag="-z nodefs" 9586 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" 9587 else 9588 # Determine the default libpath from the value encoded in an 9589 # empty executable. 9590 cat >conftest.$ac_ext <<_ACEOF 9591/* confdefs.h. */ 9592_ACEOF 9593cat confdefs.h >>conftest.$ac_ext 9594cat >>conftest.$ac_ext <<_ACEOF 9595/* end confdefs.h. */ 9596 9597int 9598main () 9599{ 9600 9601 ; 9602 return 0; 9603} 9604_ACEOF 9605rm -f conftest.$ac_objext conftest$ac_exeext 9606if { (ac_try="$ac_link" 9607case "(($ac_try" in 9608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9609 *) ac_try_echo=$ac_try;; 9610esac 9611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9612 (eval "$ac_link") 2>conftest.er1 9613 ac_status=$? 9614 grep -v '^ *+' conftest.er1 >conftest.err 9615 rm -f conftest.er1 9616 cat conftest.err >&5 9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9618 (exit $ac_status); } && { 9619 test -z "$ac_c_werror_flag" || 9620 test ! -s conftest.err 9621 } && test -s conftest$ac_exeext && 9622 $as_test_x conftest$ac_exeext; then 9623 9624lt_aix_libpath_sed=' 9625 /Import File Strings/,/^$/ { 9626 /^0/ { 9627 s/^0 *\(.*\)$/\1/ 9628 p 9629 } 9630 }' 9631aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9632# Check for a 64-bit object if we didn't find anything. 9633if test -z "$aix_libpath"; then 9634 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9635fi 9636else 9637 echo "$as_me: failed program was:" >&5 9638sed 's/^/| /' conftest.$ac_ext >&5 9639 9640 9641fi 9642 9643rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9644 conftest$ac_exeext conftest.$ac_ext 9645if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9646 9647 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9648 # Warning - without using the other run time loading flags, 9649 # -berok will link without error, but may produce a broken library. 9650 no_undefined_flag=' ${wl}-bernotok' 9651 allow_undefined_flag=' ${wl}-berok' 9652 # Exported symbols can be pulled into shared objects from archives 9653 whole_archive_flag_spec='$convenience' 9654 archive_cmds_need_lc=yes 9655 # This is similar to how AIX traditionally builds its shared libraries. 9656 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' 9657 fi 9658 fi 9659 ;; 9660 9661 amigaos*) 9662 case $host_cpu in 9663 powerpc) 9664 # see comment about AmigaOS4 .so support 9665 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9666 archive_expsym_cmds='' 9667 ;; 9668 m68k) 9669 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)' 9670 hardcode_libdir_flag_spec='-L$libdir' 9671 hardcode_minus_L=yes 9672 ;; 9673 esac 9674 ;; 9675 9676 bsdi[45]*) 9677 export_dynamic_flag_spec=-rdynamic 9678 ;; 9679 9680 cygwin* | mingw* | pw32*) 9681 # When not using gcc, we currently assume that we are using 9682 # Microsoft Visual C++. 9683 # hardcode_libdir_flag_spec is actually meaningless, as there is 9684 # no search path for DLLs. 9685 hardcode_libdir_flag_spec=' ' 9686 allow_undefined_flag=unsupported 9687 # Tell ltmain to make .lib files, not .a files. 9688 libext=lib 9689 # Tell ltmain to make .dll files, not .so files. 9690 shrext_cmds=".dll" 9691 # FIXME: Setting linknames here is a bad hack. 9692 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 9693 # The linker will automatically build a .lib file if we build a DLL. 9694 old_archive_from_new_cmds='true' 9695 # FIXME: Should let the user specify the lib program. 9696 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9697 fix_srcfile_path='`cygpath -w "$srcfile"`' 9698 enable_shared_with_static_runtimes=yes 9699 ;; 9700 9701 darwin* | rhapsody*) 9702 9703 9704 archive_cmds_need_lc=no 9705 hardcode_direct=no 9706 hardcode_automatic=yes 9707 hardcode_shlibpath_var=unsupported 9708 whole_archive_flag_spec='' 9709 link_all_deplibs=yes 9710 allow_undefined_flag="$_lt_dar_allow_undefined" 9711 if test "$GCC" = "yes"; then 9712 output_verbose_link_cmd=echo 9713 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9714 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9715 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 9716 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 9717 9718 else 9719 ld_shlibs=no 9720 fi 9721 9722 ;; 9723 9724 dgux*) 9725 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9726 hardcode_libdir_flag_spec='-L$libdir' 9727 hardcode_shlibpath_var=no 9728 ;; 9729 9730 freebsd1*) 9731 ld_shlibs=no 9732 ;; 9733 9734 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9735 # support. Future versions do this automatically, but an explicit c++rt0.o 9736 # does not break anything, and helps significantly (at the cost of a little 9737 # extra space). 9738 freebsd2.2*) 9739 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9740 hardcode_libdir_flag_spec='-R$libdir' 9741 hardcode_direct=yes 9742 hardcode_shlibpath_var=no 9743 ;; 9744 9745 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9746 freebsd2*) 9747 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9748 hardcode_direct=yes 9749 hardcode_minus_L=yes 9750 hardcode_shlibpath_var=no 9751 ;; 9752 9753 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9754 freebsd* | dragonfly*) 9755 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9756 hardcode_libdir_flag_spec='-R$libdir' 9757 hardcode_direct=yes 9758 hardcode_shlibpath_var=no 9759 ;; 9760 9761 hpux9*) 9762 if test "$GCC" = yes; then 9763 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' 9764 else 9765 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' 9766 fi 9767 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9768 hardcode_libdir_separator=: 9769 hardcode_direct=yes 9770 9771 # hardcode_minus_L: Not really in the search PATH, 9772 # but as the default location of the library. 9773 hardcode_minus_L=yes 9774 export_dynamic_flag_spec='${wl}-E' 9775 ;; 9776 9777 hpux10*) 9778 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9779 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9780 else 9781 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9782 fi 9783 if test "$with_gnu_ld" = no; then 9784 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9785 hardcode_libdir_flag_spec_ld='+b $libdir' 9786 hardcode_libdir_separator=: 9787 hardcode_direct=yes 9788 hardcode_direct_absolute=yes 9789 export_dynamic_flag_spec='${wl}-E' 9790 # hardcode_minus_L: Not really in the search PATH, 9791 # but as the default location of the library. 9792 hardcode_minus_L=yes 9793 fi 9794 ;; 9795 9796 hpux11*) 9797 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9798 case $host_cpu in 9799 hppa*64*) 9800 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9801 ;; 9802 ia64*) 9803 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9804 ;; 9805 *) 9806 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9807 ;; 9808 esac 9809 else 9810 case $host_cpu in 9811 hppa*64*) 9812 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9813 ;; 9814 ia64*) 9815 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9816 ;; 9817 *) 9818 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9819 ;; 9820 esac 9821 fi 9822 if test "$with_gnu_ld" = no; then 9823 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9824 hardcode_libdir_separator=: 9825 9826 case $host_cpu in 9827 hppa*64*|ia64*) 9828 hardcode_direct=no 9829 hardcode_shlibpath_var=no 9830 ;; 9831 *) 9832 hardcode_direct=yes 9833 hardcode_direct_absolute=yes 9834 export_dynamic_flag_spec='${wl}-E' 9835 9836 # hardcode_minus_L: Not really in the search PATH, 9837 # but as the default location of the library. 9838 hardcode_minus_L=yes 9839 ;; 9840 esac 9841 fi 9842 ;; 9843 9844 irix5* | irix6* | nonstopux*) 9845 if test "$GCC" = yes; then 9846 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9847 # Try to use the -exported_symbol ld option, if it does not 9848 # work, assume that -exports_file does not work either and 9849 # implicitly export all symbols. 9850 save_LDFLAGS="$LDFLAGS" 9851 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9852 cat >conftest.$ac_ext <<_ACEOF 9853int foo(void) {} 9854_ACEOF 9855rm -f conftest.$ac_objext conftest$ac_exeext 9856if { (ac_try="$ac_link" 9857case "(($ac_try" in 9858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9859 *) ac_try_echo=$ac_try;; 9860esac 9861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9862 (eval "$ac_link") 2>conftest.er1 9863 ac_status=$? 9864 grep -v '^ *+' conftest.er1 >conftest.err 9865 rm -f conftest.er1 9866 cat conftest.err >&5 9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9868 (exit $ac_status); } && { 9869 test -z "$ac_c_werror_flag" || 9870 test ! -s conftest.err 9871 } && test -s conftest$ac_exeext && 9872 $as_test_x conftest$ac_exeext; then 9873 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 9874 9875else 9876 echo "$as_me: failed program was:" >&5 9877sed 's/^/| /' conftest.$ac_ext >&5 9878 9879 9880fi 9881 9882rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9883 conftest$ac_exeext conftest.$ac_ext 9884 LDFLAGS="$save_LDFLAGS" 9885 else 9886 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 9887 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 9888 fi 9889 archive_cmds_need_lc='no' 9890 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9891 hardcode_libdir_separator=: 9892 inherit_rpath=yes 9893 link_all_deplibs=yes 9894 ;; 9895 9896 netbsd*) 9897 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9898 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9899 else 9900 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9901 fi 9902 hardcode_libdir_flag_spec='-R$libdir' 9903 hardcode_direct=yes 9904 hardcode_shlibpath_var=no 9905 ;; 9906 9907 newsos6) 9908 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9909 hardcode_direct=yes 9910 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9911 hardcode_libdir_separator=: 9912 hardcode_shlibpath_var=no 9913 ;; 9914 9915 *nto* | *qnx*) 9916 ;; 9917 9918 openbsd*) 9919 if test -f /usr/libexec/ld.so; then 9920 hardcode_direct=yes 9921 hardcode_shlibpath_var=no 9922 hardcode_direct_absolute=yes 9923 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9924 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9925 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9926 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9927 export_dynamic_flag_spec='${wl}-E' 9928 else 9929 case $host_os in 9930 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9931 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9932 hardcode_libdir_flag_spec='-R$libdir' 9933 ;; 9934 *) 9935 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9936 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9937 ;; 9938 esac 9939 fi 9940 else 9941 ld_shlibs=no 9942 fi 9943 ;; 9944 9945 os2*) 9946 hardcode_libdir_flag_spec='-L$libdir' 9947 hardcode_minus_L=yes 9948 allow_undefined_flag=unsupported 9949 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' 9950 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9951 ;; 9952 9953 osf3*) 9954 if test "$GCC" = yes; then 9955 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9956 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9957 else 9958 allow_undefined_flag=' -expect_unresolved \*' 9959 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 9960 fi 9961 archive_cmds_need_lc='no' 9962 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9963 hardcode_libdir_separator=: 9964 ;; 9965 9966 osf4* | osf5*) # as osf3* with the addition of -msym flag 9967 if test "$GCC" = yes; then 9968 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9969 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9970 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9971 else 9972 allow_undefined_flag=' -expect_unresolved \*' 9973 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 9974 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 9975 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 9976 9977 # Both c and cxx compiler support -rpath directly 9978 hardcode_libdir_flag_spec='-rpath $libdir' 9979 fi 9980 archive_cmds_need_lc='no' 9981 hardcode_libdir_separator=: 9982 ;; 9983 9984 solaris*) 9985 no_undefined_flag=' -z defs' 9986 if test "$GCC" = yes; then 9987 wlarc='${wl}' 9988 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9989 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9990 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9991 else 9992 case `$CC -V 2>&1` in 9993 *"Compilers 5.0"*) 9994 wlarc='' 9995 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9996 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9997 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9998 ;; 9999 *) 10000 wlarc='${wl}' 10001 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10002 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10003 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10004 ;; 10005 esac 10006 fi 10007 hardcode_libdir_flag_spec='-R$libdir' 10008 hardcode_shlibpath_var=no 10009 case $host_os in 10010 solaris2.[0-5] | solaris2.[0-5].*) ;; 10011 *) 10012 # The compiler driver will combine and reorder linker options, 10013 # but understands `-z linker_flag'. GCC discards it without `$wl', 10014 # but is careful enough not to reorder. 10015 # Supported since Solaris 2.6 (maybe 2.5.1?) 10016 if test "$GCC" = yes; then 10017 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10018 else 10019 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10020 fi 10021 ;; 10022 esac 10023 link_all_deplibs=yes 10024 ;; 10025 10026 sunos4*) 10027 if test "x$host_vendor" = xsequent; then 10028 # Use $CC to link under sequent, because it throws in some extra .o 10029 # files that make .init and .fini sections work. 10030 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10031 else 10032 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10033 fi 10034 hardcode_libdir_flag_spec='-L$libdir' 10035 hardcode_direct=yes 10036 hardcode_minus_L=yes 10037 hardcode_shlibpath_var=no 10038 ;; 10039 10040 sysv4) 10041 case $host_vendor in 10042 sni) 10043 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10044 hardcode_direct=yes # is this really true??? 10045 ;; 10046 siemens) 10047 ## LD is ld it makes a PLAMLIB 10048 ## CC just makes a GrossModule. 10049 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10050 reload_cmds='$CC -r -o $output$reload_objs' 10051 hardcode_direct=no 10052 ;; 10053 motorola) 10054 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10055 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10056 ;; 10057 esac 10058 runpath_var='LD_RUN_PATH' 10059 hardcode_shlibpath_var=no 10060 ;; 10061 10062 sysv4.3*) 10063 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10064 hardcode_shlibpath_var=no 10065 export_dynamic_flag_spec='-Bexport' 10066 ;; 10067 10068 sysv4*MP*) 10069 if test -d /usr/nec; then 10070 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10071 hardcode_shlibpath_var=no 10072 runpath_var=LD_RUN_PATH 10073 hardcode_runpath_var=yes 10074 ld_shlibs=yes 10075 fi 10076 ;; 10077 10078 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10079 no_undefined_flag='${wl}-z,text' 10080 archive_cmds_need_lc=no 10081 hardcode_shlibpath_var=no 10082 runpath_var='LD_RUN_PATH' 10083 10084 if test "$GCC" = yes; then 10085 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10086 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10087 else 10088 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10089 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10090 fi 10091 ;; 10092 10093 sysv5* | sco3.2v5* | sco5v6*) 10094 # Note: We can NOT use -z defs as we might desire, because we do not 10095 # link with -lc, and that would cause any symbols used from libc to 10096 # always be unresolved, which means just about no library would 10097 # ever link correctly. If we're not using GNU ld we use -z text 10098 # though, which does catch some bad symbols but isn't as heavy-handed 10099 # as -z defs. 10100 no_undefined_flag='${wl}-z,text' 10101 allow_undefined_flag='${wl}-z,nodefs' 10102 archive_cmds_need_lc=no 10103 hardcode_shlibpath_var=no 10104 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10105 hardcode_libdir_separator=':' 10106 link_all_deplibs=yes 10107 export_dynamic_flag_spec='${wl}-Bexport' 10108 runpath_var='LD_RUN_PATH' 10109 10110 if test "$GCC" = yes; then 10111 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10112 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10113 else 10114 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10115 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10116 fi 10117 ;; 10118 10119 uts4*) 10120 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10121 hardcode_libdir_flag_spec='-L$libdir' 10122 hardcode_shlibpath_var=no 10123 ;; 10124 10125 *) 10126 ld_shlibs=no 10127 ;; 10128 esac 10129 10130 if test x$host_vendor = xsni; then 10131 case $host in 10132 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10133 export_dynamic_flag_spec='${wl}-Blargedynsym' 10134 ;; 10135 esac 10136 fi 10137 fi 10138 10139{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 10140echo "${ECHO_T}$ld_shlibs" >&6; } 10141test "$ld_shlibs" = no && can_build_shared=no 10142 10143with_gnu_ld=$with_gnu_ld 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159# 10160# Do we need to explicitly link libc? 10161# 10162case "x$archive_cmds_need_lc" in 10163x|xyes) 10164 # Assume -lc should be added 10165 archive_cmds_need_lc=yes 10166 10167 if test "$enable_shared" = yes && test "$GCC" = yes; then 10168 case $archive_cmds in 10169 *'~'*) 10170 # FIXME: we may have to deal with multi-command sequences. 10171 ;; 10172 '$CC '*) 10173 # Test whether the compiler implicitly links with -lc since on some 10174 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10175 # to ld, don't add -lc before -lgcc. 10176 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 10177echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 10178 $RM -r conftest* 10179 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10180 10181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10182 (eval $ac_compile) 2>&5 10183 ac_status=$? 10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10185 (exit $ac_status); } 2>conftest.err; then 10186 soname=conftest 10187 lib=conftest 10188 libobjs=conftest.$ac_objext 10189 deplibs= 10190 wl=$lt_prog_compiler_wl 10191 pic_flag=$lt_prog_compiler_pic 10192 compiler_flags=-v 10193 linker_flags=-v 10194 verstring= 10195 output_objdir=. 10196 libname=conftest 10197 lt_save_allow_undefined_flag=$allow_undefined_flag 10198 allow_undefined_flag= 10199 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 10200 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10201 ac_status=$? 10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10203 (exit $ac_status); } 10204 then 10205 archive_cmds_need_lc=no 10206 else 10207 archive_cmds_need_lc=yes 10208 fi 10209 allow_undefined_flag=$lt_save_allow_undefined_flag 10210 else 10211 cat conftest.err 1>&5 10212 fi 10213 $RM -r conftest* 10214 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 10215echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 10216 ;; 10217 esac 10218 fi 10219 ;; 10220esac 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 10379echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 10380 10381if test "$GCC" = yes; then 10382 case $host_os in 10383 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10384 *) lt_awk_arg="/^libraries:/" ;; 10385 esac 10386 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10387 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 10388 # if the path contains ";" then we assume it to be the separator 10389 # otherwise default to the standard path separator (i.e. ":") - it is 10390 # assumed that no part of a normal pathname contains ";" but that should 10391 # okay in the real world where ";" in dirpaths is itself problematic. 10392 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 10393 else 10394 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10395 fi 10396 # Ok, now we have the path, separated by spaces, we can step through it 10397 # and add multilib dir if necessary. 10398 lt_tmp_lt_search_path_spec= 10399 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10400 for lt_sys_path in $lt_search_path_spec; do 10401 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10402 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10403 else 10404 test -d "$lt_sys_path" && \ 10405 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10406 fi 10407 done 10408 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 10409BEGIN {RS=" "; FS="/|\n";} { 10410 lt_foo=""; 10411 lt_count=0; 10412 for (lt_i = NF; lt_i > 0; lt_i--) { 10413 if ($lt_i != "" && $lt_i != ".") { 10414 if ($lt_i == "..") { 10415 lt_count++; 10416 } else { 10417 if (lt_count == 0) { 10418 lt_foo="/" $lt_i lt_foo; 10419 } else { 10420 lt_count--; 10421 } 10422 } 10423 } 10424 } 10425 if (lt_foo != "") { lt_freq[lt_foo]++; } 10426 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10427}'` 10428 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 10429else 10430 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10431fi 10432library_names_spec= 10433libname_spec='lib$name' 10434soname_spec= 10435shrext_cmds=".so" 10436postinstall_cmds= 10437postuninstall_cmds= 10438finish_cmds= 10439finish_eval= 10440shlibpath_var= 10441shlibpath_overrides_runpath=unknown 10442version_type=none 10443dynamic_linker="$host_os ld.so" 10444sys_lib_dlsearch_path_spec="/lib /usr/lib" 10445need_lib_prefix=unknown 10446hardcode_into_libs=no 10447 10448# when you set need_version to no, make sure it does not cause -set_version 10449# flags to be left without arguments 10450need_version=unknown 10451 10452case $host_os in 10453aix3*) 10454 version_type=linux 10455 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10456 shlibpath_var=LIBPATH 10457 10458 # AIX 3 has no versioning support, so we append a major version to the name. 10459 soname_spec='${libname}${release}${shared_ext}$major' 10460 ;; 10461 10462aix[4-9]*) 10463 version_type=linux 10464 need_lib_prefix=no 10465 need_version=no 10466 hardcode_into_libs=yes 10467 if test "$host_cpu" = ia64; then 10468 # AIX 5 supports IA64 10469 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10470 shlibpath_var=LD_LIBRARY_PATH 10471 else 10472 # With GCC up to 2.95.x, collect2 would create an import file 10473 # for dependence libraries. The import file would start with 10474 # the line `#! .'. This would cause the generated library to 10475 # depend on `.', always an invalid library. This was fixed in 10476 # development snapshots of GCC prior to 3.0. 10477 case $host_os in 10478 aix4 | aix4.[01] | aix4.[01].*) 10479 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10480 echo ' yes ' 10481 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10482 : 10483 else 10484 can_build_shared=no 10485 fi 10486 ;; 10487 esac 10488 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10489 # soname into executable. Probably we can add versioning support to 10490 # collect2, so additional links can be useful in future. 10491 if test "$aix_use_runtimelinking" = yes; then 10492 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10493 # instead of lib<name>.a to let people know that these are not 10494 # typical AIX shared libraries. 10495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10496 else 10497 # We preserve .a as extension for shared libraries through AIX4.2 10498 # and later when we are not doing run time linking. 10499 library_names_spec='${libname}${release}.a $libname.a' 10500 soname_spec='${libname}${release}${shared_ext}$major' 10501 fi 10502 shlibpath_var=LIBPATH 10503 fi 10504 ;; 10505 10506amigaos*) 10507 case $host_cpu in 10508 powerpc) 10509 # Since July 2007 AmigaOS4 officially supports .so libraries. 10510 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10512 ;; 10513 m68k) 10514 library_names_spec='$libname.ixlibrary $libname.a' 10515 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10516 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' 10517 ;; 10518 esac 10519 ;; 10520 10521beos*) 10522 library_names_spec='${libname}${shared_ext}' 10523 dynamic_linker="$host_os ld.so" 10524 shlibpath_var=LIBRARY_PATH 10525 ;; 10526 10527bsdi[45]*) 10528 version_type=linux 10529 need_version=no 10530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10531 soname_spec='${libname}${release}${shared_ext}$major' 10532 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10533 shlibpath_var=LD_LIBRARY_PATH 10534 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10535 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10536 # the default ld.so.conf also contains /usr/contrib/lib and 10537 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10538 # libtool to hard-code these into programs 10539 ;; 10540 10541cygwin* | mingw* | pw32*) 10542 version_type=windows 10543 shrext_cmds=".dll" 10544 need_version=no 10545 need_lib_prefix=no 10546 10547 case $GCC,$host_os in 10548 yes,cygwin* | yes,mingw* | yes,pw32*) 10549 library_names_spec='$libname.dll.a' 10550 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10551 postinstall_cmds='base_file=`basename \${file}`~ 10552 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10553 dldir=$destdir/`dirname \$dlpath`~ 10554 test -d \$dldir || mkdir -p \$dldir~ 10555 $install_prog $dir/$dlname \$dldir/$dlname~ 10556 chmod a+x \$dldir/$dlname~ 10557 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10558 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10559 fi' 10560 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10561 dlpath=$dir/\$dldll~ 10562 $RM \$dlpath' 10563 shlibpath_overrides_runpath=yes 10564 10565 case $host_os in 10566 cygwin*) 10567 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10568 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10569 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 10570 ;; 10571 mingw*) 10572 # MinGW DLLs use traditional 'lib' prefix 10573 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10574 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10575 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10576 # It is most probably a Windows format PATH printed by 10577 # mingw gcc, but we are running on Cygwin. Gcc prints its search 10578 # path with ; separators, and with drive letters. We can handle the 10579 # drive letters (cygwin fileutils understands them), so leave them, 10580 # especially as we might pass files found there to a mingw objdump, 10581 # which wouldn't understand a cygwinified path. Ahh. 10582 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10583 else 10584 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10585 fi 10586 ;; 10587 pw32*) 10588 # pw32 DLLs use 'pw' prefix rather than 'lib' 10589 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10590 ;; 10591 esac 10592 ;; 10593 10594 *) 10595 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10596 ;; 10597 esac 10598 dynamic_linker='Win32 ld.exe' 10599 # FIXME: first we should search . and the directory the executable is in 10600 shlibpath_var=PATH 10601 ;; 10602 10603darwin* | rhapsody*) 10604 dynamic_linker="$host_os dyld" 10605 version_type=darwin 10606 need_lib_prefix=no 10607 need_version=no 10608 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext' 10609 soname_spec='${libname}${release}${major}$shared_ext' 10610 shlibpath_overrides_runpath=yes 10611 shlibpath_var=DYLD_LIBRARY_PATH 10612 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10613 10614 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10615 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10616 ;; 10617 10618dgux*) 10619 version_type=linux 10620 need_lib_prefix=no 10621 need_version=no 10622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10623 soname_spec='${libname}${release}${shared_ext}$major' 10624 shlibpath_var=LD_LIBRARY_PATH 10625 ;; 10626 10627freebsd1*) 10628 dynamic_linker=no 10629 ;; 10630 10631freebsd* | dragonfly*) 10632 # DragonFly does not have aout. When/if they implement a new 10633 # versioning mechanism, adjust this. 10634 if test -x /usr/bin/objformat; then 10635 objformat=`/usr/bin/objformat` 10636 else 10637 case $host_os in 10638 freebsd[123]*) objformat=aout ;; 10639 *) objformat=elf ;; 10640 esac 10641 fi 10642 version_type=freebsd-$objformat 10643 case $version_type in 10644 freebsd-elf*) 10645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10646 need_version=no 10647 need_lib_prefix=no 10648 ;; 10649 freebsd-*) 10650 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10651 need_version=yes 10652 ;; 10653 esac 10654 shlibpath_var=LD_LIBRARY_PATH 10655 case $host_os in 10656 freebsd2*) 10657 shlibpath_overrides_runpath=yes 10658 ;; 10659 freebsd3.[01]* | freebsdelf3.[01]*) 10660 shlibpath_overrides_runpath=yes 10661 hardcode_into_libs=yes 10662 ;; 10663 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10664 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10665 shlibpath_overrides_runpath=no 10666 hardcode_into_libs=yes 10667 ;; 10668 *) # from 4.6 on, and DragonFly 10669 shlibpath_overrides_runpath=yes 10670 hardcode_into_libs=yes 10671 ;; 10672 esac 10673 ;; 10674 10675gnu*) 10676 version_type=linux 10677 need_lib_prefix=no 10678 need_version=no 10679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10680 soname_spec='${libname}${release}${shared_ext}$major' 10681 shlibpath_var=LD_LIBRARY_PATH 10682 hardcode_into_libs=yes 10683 ;; 10684 10685hpux9* | hpux10* | hpux11*) 10686 # Give a soname corresponding to the major version so that dld.sl refuses to 10687 # link against other versions. 10688 version_type=sunos 10689 need_lib_prefix=no 10690 need_version=no 10691 case $host_cpu in 10692 ia64*) 10693 shrext_cmds='.so' 10694 hardcode_into_libs=yes 10695 dynamic_linker="$host_os dld.so" 10696 shlibpath_var=LD_LIBRARY_PATH 10697 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10699 soname_spec='${libname}${release}${shared_ext}$major' 10700 if test "X$HPUX_IA64_MODE" = X32; then 10701 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10702 else 10703 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10704 fi 10705 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10706 ;; 10707 hppa*64*) 10708 shrext_cmds='.sl' 10709 hardcode_into_libs=yes 10710 dynamic_linker="$host_os dld.sl" 10711 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10712 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10714 soname_spec='${libname}${release}${shared_ext}$major' 10715 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10716 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10717 ;; 10718 *) 10719 shrext_cmds='.sl' 10720 dynamic_linker="$host_os dld.sl" 10721 shlibpath_var=SHLIB_PATH 10722 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10724 soname_spec='${libname}${release}${shared_ext}$major' 10725 ;; 10726 esac 10727 # HP-UX runs *really* slowly unless shared libraries are mode 555. 10728 postinstall_cmds='chmod 555 $lib' 10729 ;; 10730 10731interix[3-9]*) 10732 version_type=linux 10733 need_lib_prefix=no 10734 need_version=no 10735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10736 soname_spec='${libname}${release}${shared_ext}$major' 10737 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10738 shlibpath_var=LD_LIBRARY_PATH 10739 shlibpath_overrides_runpath=no 10740 hardcode_into_libs=yes 10741 ;; 10742 10743irix5* | irix6* | nonstopux*) 10744 case $host_os in 10745 nonstopux*) version_type=nonstopux ;; 10746 *) 10747 if test "$lt_cv_prog_gnu_ld" = yes; then 10748 version_type=linux 10749 else 10750 version_type=irix 10751 fi ;; 10752 esac 10753 need_lib_prefix=no 10754 need_version=no 10755 soname_spec='${libname}${release}${shared_ext}$major' 10756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10757 case $host_os in 10758 irix5* | nonstopux*) 10759 libsuff= shlibsuff= 10760 ;; 10761 *) 10762 case $LD in # libtool.m4 will add one of these switches to LD 10763 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10764 libsuff= shlibsuff= libmagic=32-bit;; 10765 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10766 libsuff=32 shlibsuff=N32 libmagic=N32;; 10767 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10768 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10769 *) libsuff= shlibsuff= libmagic=never-match;; 10770 esac 10771 ;; 10772 esac 10773 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10774 shlibpath_overrides_runpath=no 10775 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10776 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10777 hardcode_into_libs=yes 10778 ;; 10779 10780# No shared lib support for Linux oldld, aout, or coff. 10781linux*oldld* | linux*aout* | linux*coff*) 10782 dynamic_linker=no 10783 ;; 10784 10785# This must be Linux ELF. 10786linux* | k*bsd*-gnu) 10787 version_type=linux 10788 need_lib_prefix=no 10789 need_version=no 10790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10791 soname_spec='${libname}${release}${shared_ext}$major' 10792 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10793 shlibpath_var=LD_LIBRARY_PATH 10794 shlibpath_overrides_runpath=no 10795 # Some binutils ld are patched to set DT_RUNPATH 10796 save_LDFLAGS=$LDFLAGS 10797 save_libdir=$libdir 10798 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10799 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10800 cat >conftest.$ac_ext <<_ACEOF 10801/* confdefs.h. */ 10802_ACEOF 10803cat confdefs.h >>conftest.$ac_ext 10804cat >>conftest.$ac_ext <<_ACEOF 10805/* end confdefs.h. */ 10806 10807int 10808main () 10809{ 10810 10811 ; 10812 return 0; 10813} 10814_ACEOF 10815rm -f conftest.$ac_objext conftest$ac_exeext 10816if { (ac_try="$ac_link" 10817case "(($ac_try" in 10818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10819 *) ac_try_echo=$ac_try;; 10820esac 10821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10822 (eval "$ac_link") 2>conftest.er1 10823 ac_status=$? 10824 grep -v '^ *+' conftest.er1 >conftest.err 10825 rm -f conftest.er1 10826 cat conftest.err >&5 10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10828 (exit $ac_status); } && { 10829 test -z "$ac_c_werror_flag" || 10830 test ! -s conftest.err 10831 } && test -s conftest$ac_exeext && 10832 $as_test_x conftest$ac_exeext; then 10833 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then 10834 shlibpath_overrides_runpath=yes 10835fi 10836 10837else 10838 echo "$as_me: failed program was:" >&5 10839sed 's/^/| /' conftest.$ac_ext >&5 10840 10841 10842fi 10843 10844rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10845 conftest$ac_exeext conftest.$ac_ext 10846 LDFLAGS=$save_LDFLAGS 10847 libdir=$save_libdir 10848 10849 # This implies no fast_install, which is unacceptable. 10850 # Some rework will be needed to allow for fast_install 10851 # before this can be enabled. 10852 hardcode_into_libs=yes 10853 10854 # Append ld.so.conf contents to the search path 10855 if test -f /etc/ld.so.conf; then 10856 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 10857 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10858 fi 10859 10860 # We used to test for /lib/ld.so.1 and disable shared libraries on 10861 # powerpc, because MkLinux only supported shared libraries with the 10862 # GNU dynamic linker. Since this was broken with cross compilers, 10863 # most powerpc-linux boxes support dynamic linking these days and 10864 # people can always --disable-shared, the test was removed, and we 10865 # assume the GNU/Linux dynamic linker is in use. 10866 dynamic_linker='GNU/Linux ld.so' 10867 ;; 10868 10869netbsd*) 10870 version_type=sunos 10871 need_lib_prefix=no 10872 need_version=no 10873 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10875 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10876 dynamic_linker='NetBSD (a.out) ld.so' 10877 else 10878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10879 soname_spec='${libname}${release}${shared_ext}$major' 10880 dynamic_linker='NetBSD ld.elf_so' 10881 fi 10882 shlibpath_var=LD_LIBRARY_PATH 10883 shlibpath_overrides_runpath=yes 10884 hardcode_into_libs=yes 10885 ;; 10886 10887newsos6) 10888 version_type=linux 10889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10890 shlibpath_var=LD_LIBRARY_PATH 10891 shlibpath_overrides_runpath=yes 10892 ;; 10893 10894*nto* | *qnx*) 10895 version_type=qnx 10896 need_lib_prefix=no 10897 need_version=no 10898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10899 soname_spec='${libname}${release}${shared_ext}$major' 10900 shlibpath_var=LD_LIBRARY_PATH 10901 shlibpath_overrides_runpath=no 10902 hardcode_into_libs=yes 10903 dynamic_linker='ldqnx.so' 10904 ;; 10905 10906openbsd*) 10907 version_type=sunos 10908 sys_lib_dlsearch_path_spec="/usr/lib" 10909 need_lib_prefix=no 10910 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10911 case $host_os in 10912 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10913 *) need_version=no ;; 10914 esac 10915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10916 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10917 shlibpath_var=LD_LIBRARY_PATH 10918 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10919 case $host_os in 10920 openbsd2.[89] | openbsd2.[89].*) 10921 shlibpath_overrides_runpath=no 10922 ;; 10923 *) 10924 shlibpath_overrides_runpath=yes 10925 ;; 10926 esac 10927 else 10928 shlibpath_overrides_runpath=yes 10929 fi 10930 ;; 10931 10932os2*) 10933 libname_spec='$name' 10934 shrext_cmds=".dll" 10935 need_lib_prefix=no 10936 library_names_spec='$libname${shared_ext} $libname.a' 10937 dynamic_linker='OS/2 ld.exe' 10938 shlibpath_var=LIBPATH 10939 ;; 10940 10941osf3* | osf4* | osf5*) 10942 version_type=osf 10943 need_lib_prefix=no 10944 need_version=no 10945 soname_spec='${libname}${release}${shared_ext}$major' 10946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10947 shlibpath_var=LD_LIBRARY_PATH 10948 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10949 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10950 ;; 10951 10952rdos*) 10953 dynamic_linker=no 10954 ;; 10955 10956solaris*) 10957 version_type=linux 10958 need_lib_prefix=no 10959 need_version=no 10960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10961 soname_spec='${libname}${release}${shared_ext}$major' 10962 shlibpath_var=LD_LIBRARY_PATH 10963 shlibpath_overrides_runpath=yes 10964 hardcode_into_libs=yes 10965 # ldd complains unless libraries are executable 10966 postinstall_cmds='chmod +x $lib' 10967 ;; 10968 10969sunos4*) 10970 version_type=sunos 10971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10972 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10973 shlibpath_var=LD_LIBRARY_PATH 10974 shlibpath_overrides_runpath=yes 10975 if test "$with_gnu_ld" = yes; then 10976 need_lib_prefix=no 10977 fi 10978 need_version=yes 10979 ;; 10980 10981sysv4 | sysv4.3*) 10982 version_type=linux 10983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10984 soname_spec='${libname}${release}${shared_ext}$major' 10985 shlibpath_var=LD_LIBRARY_PATH 10986 case $host_vendor in 10987 sni) 10988 shlibpath_overrides_runpath=no 10989 need_lib_prefix=no 10990 runpath_var=LD_RUN_PATH 10991 ;; 10992 siemens) 10993 need_lib_prefix=no 10994 ;; 10995 motorola) 10996 need_lib_prefix=no 10997 need_version=no 10998 shlibpath_overrides_runpath=no 10999 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11000 ;; 11001 esac 11002 ;; 11003 11004sysv4*MP*) 11005 if test -d /usr/nec ;then 11006 version_type=linux 11007 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11008 soname_spec='$libname${shared_ext}.$major' 11009 shlibpath_var=LD_LIBRARY_PATH 11010 fi 11011 ;; 11012 11013sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11014 version_type=freebsd-elf 11015 need_lib_prefix=no 11016 need_version=no 11017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11018 soname_spec='${libname}${release}${shared_ext}$major' 11019 shlibpath_var=LD_LIBRARY_PATH 11020 shlibpath_overrides_runpath=yes 11021 hardcode_into_libs=yes 11022 if test "$with_gnu_ld" = yes; then 11023 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11024 else 11025 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11026 case $host_os in 11027 sco3.2v5*) 11028 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11029 ;; 11030 esac 11031 fi 11032 sys_lib_dlsearch_path_spec='/usr/lib' 11033 ;; 11034 11035tpf*) 11036 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11037 version_type=linux 11038 need_lib_prefix=no 11039 need_version=no 11040 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11041 shlibpath_var=LD_LIBRARY_PATH 11042 shlibpath_overrides_runpath=no 11043 hardcode_into_libs=yes 11044 ;; 11045 11046uts4*) 11047 version_type=linux 11048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11049 soname_spec='${libname}${release}${shared_ext}$major' 11050 shlibpath_var=LD_LIBRARY_PATH 11051 ;; 11052 11053*) 11054 dynamic_linker=no 11055 ;; 11056esac 11057{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 11058echo "${ECHO_T}$dynamic_linker" >&6; } 11059test "$dynamic_linker" = no && can_build_shared=no 11060 11061variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11062if test "$GCC" = yes; then 11063 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11064fi 11065 11066if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11067 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11068fi 11069if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11070 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11071fi 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 11160echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 11161hardcode_action= 11162if test -n "$hardcode_libdir_flag_spec" || 11163 test -n "$runpath_var" || 11164 test "X$hardcode_automatic" = "Xyes" ; then 11165 11166 # We can hardcode non-existent directories. 11167 if test "$hardcode_direct" != no && 11168 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11169 # have to relink, otherwise we might link with an installed library 11170 # when we should be linking with a yet-to-be-installed one 11171 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11172 test "$hardcode_minus_L" != no; then 11173 # Linking always hardcodes the temporary library directory. 11174 hardcode_action=relink 11175 else 11176 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11177 hardcode_action=immediate 11178 fi 11179else 11180 # We cannot hardcode anything, or else we can only hardcode existing 11181 # directories. 11182 hardcode_action=unsupported 11183fi 11184{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 11185echo "${ECHO_T}$hardcode_action" >&6; } 11186 11187if test "$hardcode_action" = relink || 11188 test "$inherit_rpath" = yes; then 11189 # Fast installation is not supported 11190 enable_fast_install=no 11191elif test "$shlibpath_overrides_runpath" = yes || 11192 test "$enable_shared" = no; then 11193 # Fast installation is not necessary 11194 enable_fast_install=needless 11195fi 11196 11197 11198 11199 11200 11201 11202 if test "x$enable_dlopen" != xyes; then 11203 enable_dlopen=unknown 11204 enable_dlopen_self=unknown 11205 enable_dlopen_self_static=unknown 11206else 11207 lt_cv_dlopen=no 11208 lt_cv_dlopen_libs= 11209 11210 case $host_os in 11211 beos*) 11212 lt_cv_dlopen="load_add_on" 11213 lt_cv_dlopen_libs= 11214 lt_cv_dlopen_self=yes 11215 ;; 11216 11217 mingw* | pw32*) 11218 lt_cv_dlopen="LoadLibrary" 11219 lt_cv_dlopen_libs= 11220 ;; 11221 11222 cygwin*) 11223 lt_cv_dlopen="dlopen" 11224 lt_cv_dlopen_libs= 11225 ;; 11226 11227 darwin*) 11228 # if libdl is installed we need to link against it 11229 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 11230echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 11231if test "${ac_cv_lib_dl_dlopen+set}" = set; then 11232 echo $ECHO_N "(cached) $ECHO_C" >&6 11233else 11234 ac_check_lib_save_LIBS=$LIBS 11235LIBS="-ldl $LIBS" 11236cat >conftest.$ac_ext <<_ACEOF 11237/* confdefs.h. */ 11238_ACEOF 11239cat confdefs.h >>conftest.$ac_ext 11240cat >>conftest.$ac_ext <<_ACEOF 11241/* end confdefs.h. */ 11242 11243/* Override any GCC internal prototype to avoid an error. 11244 Use char because int might match the return type of a GCC 11245 builtin and then its argument prototype would still apply. */ 11246#ifdef __cplusplus 11247extern "C" 11248#endif 11249char dlopen (); 11250int 11251main () 11252{ 11253return dlopen (); 11254 ; 11255 return 0; 11256} 11257_ACEOF 11258rm -f conftest.$ac_objext conftest$ac_exeext 11259if { (ac_try="$ac_link" 11260case "(($ac_try" in 11261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11262 *) ac_try_echo=$ac_try;; 11263esac 11264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11265 (eval "$ac_link") 2>conftest.er1 11266 ac_status=$? 11267 grep -v '^ *+' conftest.er1 >conftest.err 11268 rm -f conftest.er1 11269 cat conftest.err >&5 11270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11271 (exit $ac_status); } && { 11272 test -z "$ac_c_werror_flag" || 11273 test ! -s conftest.err 11274 } && test -s conftest$ac_exeext && 11275 $as_test_x conftest$ac_exeext; then 11276 ac_cv_lib_dl_dlopen=yes 11277else 11278 echo "$as_me: failed program was:" >&5 11279sed 's/^/| /' conftest.$ac_ext >&5 11280 11281 ac_cv_lib_dl_dlopen=no 11282fi 11283 11284rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11285 conftest$ac_exeext conftest.$ac_ext 11286LIBS=$ac_check_lib_save_LIBS 11287fi 11288{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 11289echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 11290if test $ac_cv_lib_dl_dlopen = yes; then 11291 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11292else 11293 11294 lt_cv_dlopen="dyld" 11295 lt_cv_dlopen_libs= 11296 lt_cv_dlopen_self=yes 11297 11298fi 11299 11300 ;; 11301 11302 *) 11303 { echo "$as_me:$LINENO: checking for shl_load" >&5 11304echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 11305if test "${ac_cv_func_shl_load+set}" = set; then 11306 echo $ECHO_N "(cached) $ECHO_C" >&6 11307else 11308 cat >conftest.$ac_ext <<_ACEOF 11309/* confdefs.h. */ 11310_ACEOF 11311cat confdefs.h >>conftest.$ac_ext 11312cat >>conftest.$ac_ext <<_ACEOF 11313/* end confdefs.h. */ 11314/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 11315 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11316#define shl_load innocuous_shl_load 11317 11318/* System header to define __stub macros and hopefully few prototypes, 11319 which can conflict with char shl_load (); below. 11320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11321 <limits.h> exists even on freestanding compilers. */ 11322 11323#ifdef __STDC__ 11324# include <limits.h> 11325#else 11326# include <assert.h> 11327#endif 11328 11329#undef shl_load 11330 11331/* Override any GCC internal prototype to avoid an error. 11332 Use char because int might match the return type of a GCC 11333 builtin and then its argument prototype would still apply. */ 11334#ifdef __cplusplus 11335extern "C" 11336#endif 11337char shl_load (); 11338/* The GNU C library defines this for functions which it implements 11339 to always fail with ENOSYS. Some functions are actually named 11340 something starting with __ and the normal name is an alias. */ 11341#if defined __stub_shl_load || defined __stub___shl_load 11342choke me 11343#endif 11344 11345int 11346main () 11347{ 11348return shl_load (); 11349 ; 11350 return 0; 11351} 11352_ACEOF 11353rm -f conftest.$ac_objext conftest$ac_exeext 11354if { (ac_try="$ac_link" 11355case "(($ac_try" in 11356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11357 *) ac_try_echo=$ac_try;; 11358esac 11359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11360 (eval "$ac_link") 2>conftest.er1 11361 ac_status=$? 11362 grep -v '^ *+' conftest.er1 >conftest.err 11363 rm -f conftest.er1 11364 cat conftest.err >&5 11365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11366 (exit $ac_status); } && { 11367 test -z "$ac_c_werror_flag" || 11368 test ! -s conftest.err 11369 } && test -s conftest$ac_exeext && 11370 $as_test_x conftest$ac_exeext; then 11371 ac_cv_func_shl_load=yes 11372else 11373 echo "$as_me: failed program was:" >&5 11374sed 's/^/| /' conftest.$ac_ext >&5 11375 11376 ac_cv_func_shl_load=no 11377fi 11378 11379rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11380 conftest$ac_exeext conftest.$ac_ext 11381fi 11382{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 11383echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 11384if test $ac_cv_func_shl_load = yes; then 11385 lt_cv_dlopen="shl_load" 11386else 11387 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 11388echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 11389if test "${ac_cv_lib_dld_shl_load+set}" = set; then 11390 echo $ECHO_N "(cached) $ECHO_C" >&6 11391else 11392 ac_check_lib_save_LIBS=$LIBS 11393LIBS="-ldld $LIBS" 11394cat >conftest.$ac_ext <<_ACEOF 11395/* confdefs.h. */ 11396_ACEOF 11397cat confdefs.h >>conftest.$ac_ext 11398cat >>conftest.$ac_ext <<_ACEOF 11399/* end confdefs.h. */ 11400 11401/* Override any GCC internal prototype to avoid an error. 11402 Use char because int might match the return type of a GCC 11403 builtin and then its argument prototype would still apply. */ 11404#ifdef __cplusplus 11405extern "C" 11406#endif 11407char shl_load (); 11408int 11409main () 11410{ 11411return shl_load (); 11412 ; 11413 return 0; 11414} 11415_ACEOF 11416rm -f conftest.$ac_objext conftest$ac_exeext 11417if { (ac_try="$ac_link" 11418case "(($ac_try" in 11419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11420 *) ac_try_echo=$ac_try;; 11421esac 11422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11423 (eval "$ac_link") 2>conftest.er1 11424 ac_status=$? 11425 grep -v '^ *+' conftest.er1 >conftest.err 11426 rm -f conftest.er1 11427 cat conftest.err >&5 11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11429 (exit $ac_status); } && { 11430 test -z "$ac_c_werror_flag" || 11431 test ! -s conftest.err 11432 } && test -s conftest$ac_exeext && 11433 $as_test_x conftest$ac_exeext; then 11434 ac_cv_lib_dld_shl_load=yes 11435else 11436 echo "$as_me: failed program was:" >&5 11437sed 's/^/| /' conftest.$ac_ext >&5 11438 11439 ac_cv_lib_dld_shl_load=no 11440fi 11441 11442rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11443 conftest$ac_exeext conftest.$ac_ext 11444LIBS=$ac_check_lib_save_LIBS 11445fi 11446{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 11447echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 11448if test $ac_cv_lib_dld_shl_load = yes; then 11449 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11450else 11451 { echo "$as_me:$LINENO: checking for dlopen" >&5 11452echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 11453if test "${ac_cv_func_dlopen+set}" = set; then 11454 echo $ECHO_N "(cached) $ECHO_C" >&6 11455else 11456 cat >conftest.$ac_ext <<_ACEOF 11457/* confdefs.h. */ 11458_ACEOF 11459cat confdefs.h >>conftest.$ac_ext 11460cat >>conftest.$ac_ext <<_ACEOF 11461/* end confdefs.h. */ 11462/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 11463 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11464#define dlopen innocuous_dlopen 11465 11466/* System header to define __stub macros and hopefully few prototypes, 11467 which can conflict with char dlopen (); below. 11468 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11469 <limits.h> exists even on freestanding compilers. */ 11470 11471#ifdef __STDC__ 11472# include <limits.h> 11473#else 11474# include <assert.h> 11475#endif 11476 11477#undef dlopen 11478 11479/* Override any GCC internal prototype to avoid an error. 11480 Use char because int might match the return type of a GCC 11481 builtin and then its argument prototype would still apply. */ 11482#ifdef __cplusplus 11483extern "C" 11484#endif 11485char dlopen (); 11486/* The GNU C library defines this for functions which it implements 11487 to always fail with ENOSYS. Some functions are actually named 11488 something starting with __ and the normal name is an alias. */ 11489#if defined __stub_dlopen || defined __stub___dlopen 11490choke me 11491#endif 11492 11493int 11494main () 11495{ 11496return dlopen (); 11497 ; 11498 return 0; 11499} 11500_ACEOF 11501rm -f conftest.$ac_objext conftest$ac_exeext 11502if { (ac_try="$ac_link" 11503case "(($ac_try" in 11504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11505 *) ac_try_echo=$ac_try;; 11506esac 11507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11508 (eval "$ac_link") 2>conftest.er1 11509 ac_status=$? 11510 grep -v '^ *+' conftest.er1 >conftest.err 11511 rm -f conftest.er1 11512 cat conftest.err >&5 11513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11514 (exit $ac_status); } && { 11515 test -z "$ac_c_werror_flag" || 11516 test ! -s conftest.err 11517 } && test -s conftest$ac_exeext && 11518 $as_test_x conftest$ac_exeext; then 11519 ac_cv_func_dlopen=yes 11520else 11521 echo "$as_me: failed program was:" >&5 11522sed 's/^/| /' conftest.$ac_ext >&5 11523 11524 ac_cv_func_dlopen=no 11525fi 11526 11527rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11528 conftest$ac_exeext conftest.$ac_ext 11529fi 11530{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 11531echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 11532if test $ac_cv_func_dlopen = yes; then 11533 lt_cv_dlopen="dlopen" 11534else 11535 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 11536echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 11537if test "${ac_cv_lib_dl_dlopen+set}" = set; then 11538 echo $ECHO_N "(cached) $ECHO_C" >&6 11539else 11540 ac_check_lib_save_LIBS=$LIBS 11541LIBS="-ldl $LIBS" 11542cat >conftest.$ac_ext <<_ACEOF 11543/* confdefs.h. */ 11544_ACEOF 11545cat confdefs.h >>conftest.$ac_ext 11546cat >>conftest.$ac_ext <<_ACEOF 11547/* end confdefs.h. */ 11548 11549/* Override any GCC internal prototype to avoid an error. 11550 Use char because int might match the return type of a GCC 11551 builtin and then its argument prototype would still apply. */ 11552#ifdef __cplusplus 11553extern "C" 11554#endif 11555char dlopen (); 11556int 11557main () 11558{ 11559return dlopen (); 11560 ; 11561 return 0; 11562} 11563_ACEOF 11564rm -f conftest.$ac_objext conftest$ac_exeext 11565if { (ac_try="$ac_link" 11566case "(($ac_try" in 11567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11568 *) ac_try_echo=$ac_try;; 11569esac 11570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11571 (eval "$ac_link") 2>conftest.er1 11572 ac_status=$? 11573 grep -v '^ *+' conftest.er1 >conftest.err 11574 rm -f conftest.er1 11575 cat conftest.err >&5 11576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11577 (exit $ac_status); } && { 11578 test -z "$ac_c_werror_flag" || 11579 test ! -s conftest.err 11580 } && test -s conftest$ac_exeext && 11581 $as_test_x conftest$ac_exeext; then 11582 ac_cv_lib_dl_dlopen=yes 11583else 11584 echo "$as_me: failed program was:" >&5 11585sed 's/^/| /' conftest.$ac_ext >&5 11586 11587 ac_cv_lib_dl_dlopen=no 11588fi 11589 11590rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11591 conftest$ac_exeext conftest.$ac_ext 11592LIBS=$ac_check_lib_save_LIBS 11593fi 11594{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 11595echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 11596if test $ac_cv_lib_dl_dlopen = yes; then 11597 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11598else 11599 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 11600echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 11601if test "${ac_cv_lib_svld_dlopen+set}" = set; then 11602 echo $ECHO_N "(cached) $ECHO_C" >&6 11603else 11604 ac_check_lib_save_LIBS=$LIBS 11605LIBS="-lsvld $LIBS" 11606cat >conftest.$ac_ext <<_ACEOF 11607/* confdefs.h. */ 11608_ACEOF 11609cat confdefs.h >>conftest.$ac_ext 11610cat >>conftest.$ac_ext <<_ACEOF 11611/* end confdefs.h. */ 11612 11613/* Override any GCC internal prototype to avoid an error. 11614 Use char because int might match the return type of a GCC 11615 builtin and then its argument prototype would still apply. */ 11616#ifdef __cplusplus 11617extern "C" 11618#endif 11619char dlopen (); 11620int 11621main () 11622{ 11623return dlopen (); 11624 ; 11625 return 0; 11626} 11627_ACEOF 11628rm -f conftest.$ac_objext conftest$ac_exeext 11629if { (ac_try="$ac_link" 11630case "(($ac_try" in 11631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11632 *) ac_try_echo=$ac_try;; 11633esac 11634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11635 (eval "$ac_link") 2>conftest.er1 11636 ac_status=$? 11637 grep -v '^ *+' conftest.er1 >conftest.err 11638 rm -f conftest.er1 11639 cat conftest.err >&5 11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11641 (exit $ac_status); } && { 11642 test -z "$ac_c_werror_flag" || 11643 test ! -s conftest.err 11644 } && test -s conftest$ac_exeext && 11645 $as_test_x conftest$ac_exeext; then 11646 ac_cv_lib_svld_dlopen=yes 11647else 11648 echo "$as_me: failed program was:" >&5 11649sed 's/^/| /' conftest.$ac_ext >&5 11650 11651 ac_cv_lib_svld_dlopen=no 11652fi 11653 11654rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11655 conftest$ac_exeext conftest.$ac_ext 11656LIBS=$ac_check_lib_save_LIBS 11657fi 11658{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 11659echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 11660if test $ac_cv_lib_svld_dlopen = yes; then 11661 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11662else 11663 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 11664echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 11665if test "${ac_cv_lib_dld_dld_link+set}" = set; then 11666 echo $ECHO_N "(cached) $ECHO_C" >&6 11667else 11668 ac_check_lib_save_LIBS=$LIBS 11669LIBS="-ldld $LIBS" 11670cat >conftest.$ac_ext <<_ACEOF 11671/* confdefs.h. */ 11672_ACEOF 11673cat confdefs.h >>conftest.$ac_ext 11674cat >>conftest.$ac_ext <<_ACEOF 11675/* end confdefs.h. */ 11676 11677/* Override any GCC internal prototype to avoid an error. 11678 Use char because int might match the return type of a GCC 11679 builtin and then its argument prototype would still apply. */ 11680#ifdef __cplusplus 11681extern "C" 11682#endif 11683char dld_link (); 11684int 11685main () 11686{ 11687return dld_link (); 11688 ; 11689 return 0; 11690} 11691_ACEOF 11692rm -f conftest.$ac_objext conftest$ac_exeext 11693if { (ac_try="$ac_link" 11694case "(($ac_try" in 11695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11696 *) ac_try_echo=$ac_try;; 11697esac 11698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11699 (eval "$ac_link") 2>conftest.er1 11700 ac_status=$? 11701 grep -v '^ *+' conftest.er1 >conftest.err 11702 rm -f conftest.er1 11703 cat conftest.err >&5 11704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11705 (exit $ac_status); } && { 11706 test -z "$ac_c_werror_flag" || 11707 test ! -s conftest.err 11708 } && test -s conftest$ac_exeext && 11709 $as_test_x conftest$ac_exeext; then 11710 ac_cv_lib_dld_dld_link=yes 11711else 11712 echo "$as_me: failed program was:" >&5 11713sed 's/^/| /' conftest.$ac_ext >&5 11714 11715 ac_cv_lib_dld_dld_link=no 11716fi 11717 11718rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11719 conftest$ac_exeext conftest.$ac_ext 11720LIBS=$ac_check_lib_save_LIBS 11721fi 11722{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 11723echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 11724if test $ac_cv_lib_dld_dld_link = yes; then 11725 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11726fi 11727 11728 11729fi 11730 11731 11732fi 11733 11734 11735fi 11736 11737 11738fi 11739 11740 11741fi 11742 11743 ;; 11744 esac 11745 11746 if test "x$lt_cv_dlopen" != xno; then 11747 enable_dlopen=yes 11748 else 11749 enable_dlopen=no 11750 fi 11751 11752 case $lt_cv_dlopen in 11753 dlopen) 11754 save_CPPFLAGS="$CPPFLAGS" 11755 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11756 11757 save_LDFLAGS="$LDFLAGS" 11758 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11759 11760 save_LIBS="$LIBS" 11761 LIBS="$lt_cv_dlopen_libs $LIBS" 11762 11763 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 11764echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 11765if test "${lt_cv_dlopen_self+set}" = set; then 11766 echo $ECHO_N "(cached) $ECHO_C" >&6 11767else 11768 if test "$cross_compiling" = yes; then : 11769 lt_cv_dlopen_self=cross 11770else 11771 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11772 lt_status=$lt_dlunknown 11773 cat > conftest.$ac_ext <<_LT_EOF 11774#line 11774 "configure" 11775#include "confdefs.h" 11776 11777#if HAVE_DLFCN_H 11778#include <dlfcn.h> 11779#endif 11780 11781#include <stdio.h> 11782 11783#ifdef RTLD_GLOBAL 11784# define LT_DLGLOBAL RTLD_GLOBAL 11785#else 11786# ifdef DL_GLOBAL 11787# define LT_DLGLOBAL DL_GLOBAL 11788# else 11789# define LT_DLGLOBAL 0 11790# endif 11791#endif 11792 11793/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11794 find out it does not work in some platform. */ 11795#ifndef LT_DLLAZY_OR_NOW 11796# ifdef RTLD_LAZY 11797# define LT_DLLAZY_OR_NOW RTLD_LAZY 11798# else 11799# ifdef DL_LAZY 11800# define LT_DLLAZY_OR_NOW DL_LAZY 11801# else 11802# ifdef RTLD_NOW 11803# define LT_DLLAZY_OR_NOW RTLD_NOW 11804# else 11805# ifdef DL_NOW 11806# define LT_DLLAZY_OR_NOW DL_NOW 11807# else 11808# define LT_DLLAZY_OR_NOW 0 11809# endif 11810# endif 11811# endif 11812# endif 11813#endif 11814 11815#ifdef __cplusplus 11816extern "C" void exit (int); 11817#endif 11818 11819void fnord() { int i=42;} 11820int main () 11821{ 11822 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11823 int status = $lt_dlunknown; 11824 11825 if (self) 11826 { 11827 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11828 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11829 /* dlclose (self); */ 11830 } 11831 else 11832 puts (dlerror ()); 11833 11834 exit (status); 11835} 11836_LT_EOF 11837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11838 (eval $ac_link) 2>&5 11839 ac_status=$? 11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11841 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11842 (./conftest; exit; ) >&5 2>/dev/null 11843 lt_status=$? 11844 case x$lt_status in 11845 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11846 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11847 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11848 esac 11849 else : 11850 # compilation failed 11851 lt_cv_dlopen_self=no 11852 fi 11853fi 11854rm -fr conftest* 11855 11856 11857fi 11858{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 11859echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 11860 11861 if test "x$lt_cv_dlopen_self" = xyes; then 11862 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11863 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 11864echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 11865if test "${lt_cv_dlopen_self_static+set}" = set; then 11866 echo $ECHO_N "(cached) $ECHO_C" >&6 11867else 11868 if test "$cross_compiling" = yes; then : 11869 lt_cv_dlopen_self_static=cross 11870else 11871 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11872 lt_status=$lt_dlunknown 11873 cat > conftest.$ac_ext <<_LT_EOF 11874#line 11874 "configure" 11875#include "confdefs.h" 11876 11877#if HAVE_DLFCN_H 11878#include <dlfcn.h> 11879#endif 11880 11881#include <stdio.h> 11882 11883#ifdef RTLD_GLOBAL 11884# define LT_DLGLOBAL RTLD_GLOBAL 11885#else 11886# ifdef DL_GLOBAL 11887# define LT_DLGLOBAL DL_GLOBAL 11888# else 11889# define LT_DLGLOBAL 0 11890# endif 11891#endif 11892 11893/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11894 find out it does not work in some platform. */ 11895#ifndef LT_DLLAZY_OR_NOW 11896# ifdef RTLD_LAZY 11897# define LT_DLLAZY_OR_NOW RTLD_LAZY 11898# else 11899# ifdef DL_LAZY 11900# define LT_DLLAZY_OR_NOW DL_LAZY 11901# else 11902# ifdef RTLD_NOW 11903# define LT_DLLAZY_OR_NOW RTLD_NOW 11904# else 11905# ifdef DL_NOW 11906# define LT_DLLAZY_OR_NOW DL_NOW 11907# else 11908# define LT_DLLAZY_OR_NOW 0 11909# endif 11910# endif 11911# endif 11912# endif 11913#endif 11914 11915#ifdef __cplusplus 11916extern "C" void exit (int); 11917#endif 11918 11919void fnord() { int i=42;} 11920int main () 11921{ 11922 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11923 int status = $lt_dlunknown; 11924 11925 if (self) 11926 { 11927 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11928 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11929 /* dlclose (self); */ 11930 } 11931 else 11932 puts (dlerror ()); 11933 11934 exit (status); 11935} 11936_LT_EOF 11937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11938 (eval $ac_link) 2>&5 11939 ac_status=$? 11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11941 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11942 (./conftest; exit; ) >&5 2>/dev/null 11943 lt_status=$? 11944 case x$lt_status in 11945 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11946 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11947 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11948 esac 11949 else : 11950 # compilation failed 11951 lt_cv_dlopen_self_static=no 11952 fi 11953fi 11954rm -fr conftest* 11955 11956 11957fi 11958{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 11959echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 11960 fi 11961 11962 CPPFLAGS="$save_CPPFLAGS" 11963 LDFLAGS="$save_LDFLAGS" 11964 LIBS="$save_LIBS" 11965 ;; 11966 esac 11967 11968 case $lt_cv_dlopen_self in 11969 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11970 *) enable_dlopen_self=unknown ;; 11971 esac 11972 11973 case $lt_cv_dlopen_self_static in 11974 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11975 *) enable_dlopen_self_static=unknown ;; 11976 esac 11977fi 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995striplib= 11996old_striplib= 11997{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 11998echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 11999if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12000 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12001 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12002 { echo "$as_me:$LINENO: result: yes" >&5 12003echo "${ECHO_T}yes" >&6; } 12004else 12005# FIXME - insert some real tests, host_os isn't really good enough 12006 case $host_os in 12007 darwin*) 12008 if test -n "$STRIP" ; then 12009 striplib="$STRIP -x" 12010 old_striplib="$STRIP -S" 12011 { echo "$as_me:$LINENO: result: yes" >&5 12012echo "${ECHO_T}yes" >&6; } 12013 else 12014 { echo "$as_me:$LINENO: result: no" >&5 12015echo "${ECHO_T}no" >&6; } 12016 fi 12017 ;; 12018 *) 12019 { echo "$as_me:$LINENO: result: no" >&5 12020echo "${ECHO_T}no" >&6; } 12021 ;; 12022 esac 12023fi 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 # Report which library types will actually be built 12037 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 12038echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 12039 { echo "$as_me:$LINENO: result: $can_build_shared" >&5 12040echo "${ECHO_T}$can_build_shared" >&6; } 12041 12042 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 12043echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 12044 test "$can_build_shared" = "no" && enable_shared=no 12045 12046 # On AIX, shared libraries and static libraries use the same namespace, and 12047 # are all built from PIC. 12048 case $host_os in 12049 aix3*) 12050 test "$enable_shared" = yes && enable_static=no 12051 if test -n "$RANLIB"; then 12052 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12053 postinstall_cmds='$RANLIB $lib' 12054 fi 12055 ;; 12056 12057 aix[4-9]*) 12058 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12059 test "$enable_shared" = yes && enable_static=no 12060 fi 12061 ;; 12062 esac 12063 { echo "$as_me:$LINENO: result: $enable_shared" >&5 12064echo "${ECHO_T}$enable_shared" >&6; } 12065 12066 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 12067echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 12068 # Make sure either enable_shared or enable_static is yes. 12069 test "$enable_shared" = yes || enable_static=yes 12070 { echo "$as_me:$LINENO: result: $enable_static" >&5 12071echo "${ECHO_T}$enable_static" >&6; } 12072 12073 12074 12075 12076fi 12077ac_ext=c 12078ac_cpp='$CPP $CPPFLAGS' 12079ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12080ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12081ac_compiler_gnu=$ac_cv_c_compiler_gnu 12082 12083CC="$lt_save_CC" 12084 12085 12086ac_ext=cpp 12087ac_cpp='$CXXCPP $CPPFLAGS' 12088ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12089ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12090ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12091 12092archive_cmds_need_lc_CXX=no 12093allow_undefined_flag_CXX= 12094always_export_symbols_CXX=no 12095archive_expsym_cmds_CXX= 12096compiler_needs_object_CXX=no 12097export_dynamic_flag_spec_CXX= 12098hardcode_direct_CXX=no 12099hardcode_direct_absolute_CXX=no 12100hardcode_libdir_flag_spec_CXX= 12101hardcode_libdir_flag_spec_ld_CXX= 12102hardcode_libdir_separator_CXX= 12103hardcode_minus_L_CXX=no 12104hardcode_shlibpath_var_CXX=unsupported 12105hardcode_automatic_CXX=no 12106inherit_rpath_CXX=no 12107module_cmds_CXX= 12108module_expsym_cmds_CXX= 12109link_all_deplibs_CXX=unknown 12110old_archive_cmds_CXX=$old_archive_cmds 12111no_undefined_flag_CXX= 12112whole_archive_flag_spec_CXX= 12113enable_shared_with_static_runtimes_CXX=no 12114 12115# Source file extension for C++ test sources. 12116ac_ext=cpp 12117 12118# Object file extension for compiled C++ test sources. 12119objext=o 12120objext_CXX=$objext 12121 12122# No sense in running all these tests if we already determined that 12123# the CXX compiler isn't working. Some variables (like enable_shared) 12124# are currently assumed to apply to all compilers on this platform, 12125# and will be corrupted by setting them based on a non-working compiler. 12126if test "$_lt_caught_CXX_error" != yes; then 12127 # Code to be used in simple compile tests 12128 lt_simple_compile_test_code="int some_variable = 0;" 12129 12130 # Code to be used in simple link tests 12131 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 12132 12133 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 12134 12135 12136 12137 12138 12139 12140# If no C compiler was specified, use CC. 12141LTCC=${LTCC-"$CC"} 12142 12143# If no C compiler flags were specified, use CFLAGS. 12144LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12145 12146# Allow CC to be a program name with arguments. 12147compiler=$CC 12148 12149 12150 # save warnings/boilerplate of simple test code 12151 ac_outfile=conftest.$ac_objext 12152echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12153eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12154_lt_compiler_boilerplate=`cat conftest.err` 12155$RM -r conftest* 12156 12157 ac_outfile=conftest.$ac_objext 12158echo "$lt_simple_link_test_code" >conftest.$ac_ext 12159eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12160_lt_linker_boilerplate=`cat conftest.err` 12161$RM -r conftest* 12162 12163 12164 # Allow CC to be a program name with arguments. 12165 lt_save_CC=$CC 12166 lt_save_LD=$LD 12167 lt_save_GCC=$GCC 12168 GCC=$GXX 12169 lt_save_with_gnu_ld=$with_gnu_ld 12170 lt_save_path_LD=$lt_cv_path_LD 12171 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 12172 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 12173 else 12174 $as_unset lt_cv_prog_gnu_ld 12175 fi 12176 if test -n "${lt_cv_path_LDCXX+set}"; then 12177 lt_cv_path_LD=$lt_cv_path_LDCXX 12178 else 12179 $as_unset lt_cv_path_LD 12180 fi 12181 test -z "${LDCXX+set}" || LD=$LDCXX 12182 CC=${CXX-"c++"} 12183 compiler=$CC 12184 compiler_CXX=$CC 12185 for cc_temp in $compiler""; do 12186 case $cc_temp in 12187 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12188 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12189 \-*) ;; 12190 *) break;; 12191 esac 12192done 12193cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 12194 12195 12196 if test -n "$compiler"; then 12197 # We don't want -fno-exception when compiling C++ code, so set the 12198 # no_builtin_flag separately 12199 if test "$GXX" = yes; then 12200 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 12201 else 12202 lt_prog_compiler_no_builtin_flag_CXX= 12203 fi 12204 12205 if test "$GXX" = yes; then 12206 # Set up default GNU C++ configuration 12207 12208 12209 12210# Check whether --with-gnu-ld was given. 12211if test "${with_gnu_ld+set}" = set; then 12212 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 12213else 12214 with_gnu_ld=no 12215fi 12216 12217ac_prog=ld 12218if test "$GCC" = yes; then 12219 # Check if gcc -print-prog-name=ld gives a path. 12220 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 12221echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 12222 case $host in 12223 *-*-mingw*) 12224 # gcc leaves a trailing carriage return which upsets mingw 12225 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12226 *) 12227 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12228 esac 12229 case $ac_prog in 12230 # Accept absolute paths. 12231 [\\/]* | ?:[\\/]*) 12232 re_direlt='/[^/][^/]*/\.\./' 12233 # Canonicalize the pathname of ld 12234 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12235 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12236 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12237 done 12238 test -z "$LD" && LD="$ac_prog" 12239 ;; 12240 "") 12241 # If it fails, then pretend we aren't using GCC. 12242 ac_prog=ld 12243 ;; 12244 *) 12245 # If it is relative, then search for the first ld in PATH. 12246 with_gnu_ld=unknown 12247 ;; 12248 esac 12249elif test "$with_gnu_ld" = yes; then 12250 { echo "$as_me:$LINENO: checking for GNU ld" >&5 12251echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 12252else 12253 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 12254echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 12255fi 12256if test "${lt_cv_path_LD+set}" = set; then 12257 echo $ECHO_N "(cached) $ECHO_C" >&6 12258else 12259 if test -z "$LD"; then 12260 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12261 for ac_dir in $PATH; do 12262 IFS="$lt_save_ifs" 12263 test -z "$ac_dir" && ac_dir=. 12264 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12265 lt_cv_path_LD="$ac_dir/$ac_prog" 12266 # Check to see if the program is GNU ld. I'd rather use --version, 12267 # but apparently some variants of GNU ld only accept -v. 12268 # Break only if it was the GNU/non-GNU ld that we prefer. 12269 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12270 *GNU* | *'with BFD'*) 12271 test "$with_gnu_ld" != no && break 12272 ;; 12273 *) 12274 test "$with_gnu_ld" != yes && break 12275 ;; 12276 esac 12277 fi 12278 done 12279 IFS="$lt_save_ifs" 12280else 12281 lt_cv_path_LD="$LD" # Let the user override the test with a path. 12282fi 12283fi 12284 12285LD="$lt_cv_path_LD" 12286if test -n "$LD"; then 12287 { echo "$as_me:$LINENO: result: $LD" >&5 12288echo "${ECHO_T}$LD" >&6; } 12289else 12290 { echo "$as_me:$LINENO: result: no" >&5 12291echo "${ECHO_T}no" >&6; } 12292fi 12293test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 12294echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 12295 { (exit 1); exit 1; }; } 12296{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 12297echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 12298if test "${lt_cv_prog_gnu_ld+set}" = set; then 12299 echo $ECHO_N "(cached) $ECHO_C" >&6 12300else 12301 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12302case `$LD -v 2>&1 </dev/null` in 12303*GNU* | *'with BFD'*) 12304 lt_cv_prog_gnu_ld=yes 12305 ;; 12306*) 12307 lt_cv_prog_gnu_ld=no 12308 ;; 12309esac 12310fi 12311{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 12312echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 12313with_gnu_ld=$lt_cv_prog_gnu_ld 12314 12315 12316 12317 12318 12319 12320 12321 # Check if GNU C++ uses GNU ld as the underlying linker, since the 12322 # archiving commands below assume that GNU ld is being used. 12323 if test "$with_gnu_ld" = yes; then 12324 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12325 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' 12326 12327 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12328 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12329 12330 # If archive_cmds runs LD, not CC, wlarc should be empty 12331 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 12332 # investigate it a little bit more. (MM) 12333 wlarc='${wl}' 12334 12335 # ancient GNU ld didn't support --whole-archive et. al. 12336 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 12337 $GREP 'no-whole-archive' > /dev/null; then 12338 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12339 else 12340 whole_archive_flag_spec_CXX= 12341 fi 12342 else 12343 with_gnu_ld=no 12344 wlarc= 12345 12346 # A generic and very simple default shared library creation 12347 # command for GNU C++ for the case where it uses the native 12348 # linker, instead of GNU ld. If possible, this setting should 12349 # overridden to take advantage of the native linker features on 12350 # the platform it is being used on. 12351 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12352 fi 12353 12354 # Commands to make compiler produce verbose output that lists 12355 # what "hidden" libraries, object files and flags are used when 12356 # linking a shared library. 12357 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 12358 12359 else 12360 GXX=no 12361 with_gnu_ld=no 12362 wlarc= 12363 fi 12364 12365 # PORTME: fill in a description of your system's C++ link characteristics 12366 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12367echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 12368 ld_shlibs_CXX=yes 12369 case $host_os in 12370 aix3*) 12371 # FIXME: insert proper C++ library support 12372 ld_shlibs_CXX=no 12373 ;; 12374 aix[4-9]*) 12375 if test "$host_cpu" = ia64; then 12376 # On IA64, the linker does run time linking by default, so we don't 12377 # have to do anything special. 12378 aix_use_runtimelinking=no 12379 exp_sym_flag='-Bexport' 12380 no_entry_flag="" 12381 else 12382 aix_use_runtimelinking=no 12383 12384 # Test if we are trying to use run time linking or normal 12385 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12386 # need to do runtime linking. 12387 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12388 for ld_flag in $LDFLAGS; do 12389 case $ld_flag in 12390 *-brtl*) 12391 aix_use_runtimelinking=yes 12392 break 12393 ;; 12394 esac 12395 done 12396 ;; 12397 esac 12398 12399 exp_sym_flag='-bexport' 12400 no_entry_flag='-bnoentry' 12401 fi 12402 12403 # When large executables or shared objects are built, AIX ld can 12404 # have problems creating the table of contents. If linking a library 12405 # or program results in "error TOC overflow" add -mminimal-toc to 12406 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12407 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12408 12409 archive_cmds_CXX='' 12410 hardcode_direct_CXX=yes 12411 hardcode_direct_absolute_CXX=yes 12412 hardcode_libdir_separator_CXX=':' 12413 link_all_deplibs_CXX=yes 12414 file_list_spec_CXX='${wl}-f,' 12415 12416 if test "$GXX" = yes; then 12417 case $host_os in aix4.[012]|aix4.[012].*) 12418 # We only want to do this on AIX 4.2 and lower, the check 12419 # below for broken collect2 doesn't work under 4.3+ 12420 collect2name=`${CC} -print-prog-name=collect2` 12421 if test -f "$collect2name" && 12422 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12423 then 12424 # We have reworked collect2 12425 : 12426 else 12427 # We have old collect2 12428 hardcode_direct_CXX=unsupported 12429 # It fails to find uninstalled libraries when the uninstalled 12430 # path is not listed in the libpath. Setting hardcode_minus_L 12431 # to unsupported forces relinking 12432 hardcode_minus_L_CXX=yes 12433 hardcode_libdir_flag_spec_CXX='-L$libdir' 12434 hardcode_libdir_separator_CXX= 12435 fi 12436 esac 12437 shared_flag='-shared' 12438 if test "$aix_use_runtimelinking" = yes; then 12439 shared_flag="$shared_flag "'${wl}-G' 12440 fi 12441 else 12442 # not using gcc 12443 if test "$host_cpu" = ia64; then 12444 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12445 # chokes on -Wl,-G. The following line is correct: 12446 shared_flag='-G' 12447 else 12448 if test "$aix_use_runtimelinking" = yes; then 12449 shared_flag='${wl}-G' 12450 else 12451 shared_flag='${wl}-bM:SRE' 12452 fi 12453 fi 12454 fi 12455 12456 # It seems that -bexpall does not export symbols beginning with 12457 # underscore (_), so it is better to generate a list of symbols to 12458 # export. 12459 always_export_symbols_CXX=yes 12460 if test "$aix_use_runtimelinking" = yes; then 12461 # Warning - without using the other runtime loading flags (-brtl), 12462 # -berok will link without error, but may produce a broken library. 12463 allow_undefined_flag_CXX='-berok' 12464 # Determine the default libpath from the value encoded in an empty 12465 # executable. 12466 cat >conftest.$ac_ext <<_ACEOF 12467/* confdefs.h. */ 12468_ACEOF 12469cat confdefs.h >>conftest.$ac_ext 12470cat >>conftest.$ac_ext <<_ACEOF 12471/* end confdefs.h. */ 12472 12473int 12474main () 12475{ 12476 12477 ; 12478 return 0; 12479} 12480_ACEOF 12481rm -f conftest.$ac_objext conftest$ac_exeext 12482if { (ac_try="$ac_link" 12483case "(($ac_try" in 12484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12485 *) ac_try_echo=$ac_try;; 12486esac 12487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12488 (eval "$ac_link") 2>conftest.er1 12489 ac_status=$? 12490 grep -v '^ *+' conftest.er1 >conftest.err 12491 rm -f conftest.er1 12492 cat conftest.err >&5 12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12494 (exit $ac_status); } && { 12495 test -z "$ac_cxx_werror_flag" || 12496 test ! -s conftest.err 12497 } && test -s conftest$ac_exeext && 12498 $as_test_x conftest$ac_exeext; then 12499 12500lt_aix_libpath_sed=' 12501 /Import File Strings/,/^$/ { 12502 /^0/ { 12503 s/^0 *\(.*\)$/\1/ 12504 p 12505 } 12506 }' 12507aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12508# Check for a 64-bit object if we didn't find anything. 12509if test -z "$aix_libpath"; then 12510 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12511fi 12512else 12513 echo "$as_me: failed program was:" >&5 12514sed 's/^/| /' conftest.$ac_ext >&5 12515 12516 12517fi 12518 12519rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12520 conftest$ac_exeext conftest.$ac_ext 12521if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12522 12523 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12524 12525 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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 12526 else 12527 if test "$host_cpu" = ia64; then 12528 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 12529 allow_undefined_flag_CXX="-z nodefs" 12530 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" 12531 else 12532 # Determine the default libpath from the value encoded in an 12533 # empty executable. 12534 cat >conftest.$ac_ext <<_ACEOF 12535/* confdefs.h. */ 12536_ACEOF 12537cat confdefs.h >>conftest.$ac_ext 12538cat >>conftest.$ac_ext <<_ACEOF 12539/* end confdefs.h. */ 12540 12541int 12542main () 12543{ 12544 12545 ; 12546 return 0; 12547} 12548_ACEOF 12549rm -f conftest.$ac_objext conftest$ac_exeext 12550if { (ac_try="$ac_link" 12551case "(($ac_try" in 12552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12553 *) ac_try_echo=$ac_try;; 12554esac 12555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12556 (eval "$ac_link") 2>conftest.er1 12557 ac_status=$? 12558 grep -v '^ *+' conftest.er1 >conftest.err 12559 rm -f conftest.er1 12560 cat conftest.err >&5 12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12562 (exit $ac_status); } && { 12563 test -z "$ac_cxx_werror_flag" || 12564 test ! -s conftest.err 12565 } && test -s conftest$ac_exeext && 12566 $as_test_x conftest$ac_exeext; then 12567 12568lt_aix_libpath_sed=' 12569 /Import File Strings/,/^$/ { 12570 /^0/ { 12571 s/^0 *\(.*\)$/\1/ 12572 p 12573 } 12574 }' 12575aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12576# Check for a 64-bit object if we didn't find anything. 12577if test -z "$aix_libpath"; then 12578 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12579fi 12580else 12581 echo "$as_me: failed program was:" >&5 12582sed 's/^/| /' conftest.$ac_ext >&5 12583 12584 12585fi 12586 12587rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12588 conftest$ac_exeext conftest.$ac_ext 12589if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12590 12591 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12592 # Warning - without using the other run time loading flags, 12593 # -berok will link without error, but may produce a broken library. 12594 no_undefined_flag_CXX=' ${wl}-bernotok' 12595 allow_undefined_flag_CXX=' ${wl}-berok' 12596 # Exported symbols can be pulled into shared objects from archives 12597 whole_archive_flag_spec_CXX='$convenience' 12598 archive_cmds_need_lc_CXX=yes 12599 # This is similar to how AIX traditionally builds its shared 12600 # libraries. 12601 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' 12602 fi 12603 fi 12604 ;; 12605 12606 beos*) 12607 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12608 allow_undefined_flag_CXX=unsupported 12609 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12610 # support --undefined. This deserves some investigation. FIXME 12611 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12612 else 12613 ld_shlibs_CXX=no 12614 fi 12615 ;; 12616 12617 chorus*) 12618 case $cc_basename in 12619 *) 12620 # FIXME: insert proper C++ library support 12621 ld_shlibs_CXX=no 12622 ;; 12623 esac 12624 ;; 12625 12626 cygwin* | mingw* | pw32*) 12627 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 12628 # as there is no search path for DLLs. 12629 hardcode_libdir_flag_spec_CXX='-L$libdir' 12630 allow_undefined_flag_CXX=unsupported 12631 always_export_symbols_CXX=no 12632 enable_shared_with_static_runtimes_CXX=yes 12633 12634 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 12635 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' 12636 # If the export-symbols file already is a .def file (1st line 12637 # is EXPORTS), use it as is; otherwise, prepend... 12638 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12639 cp $export_symbols $output_objdir/$soname.def; 12640 else 12641 echo EXPORTS > $output_objdir/$soname.def; 12642 cat $export_symbols >> $output_objdir/$soname.def; 12643 fi~ 12644 $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' 12645 else 12646 ld_shlibs_CXX=no 12647 fi 12648 ;; 12649 darwin* | rhapsody*) 12650 12651 12652 archive_cmds_need_lc_CXX=no 12653 hardcode_direct_CXX=no 12654 hardcode_automatic_CXX=yes 12655 hardcode_shlibpath_var_CXX=unsupported 12656 whole_archive_flag_spec_CXX='' 12657 link_all_deplibs_CXX=yes 12658 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 12659 if test "$GCC" = "yes"; then 12660 output_verbose_link_cmd=echo 12661 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 12662 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 12663 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 12664 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 12665 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 12666 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" 12667 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" 12668 fi 12669 12670 else 12671 ld_shlibs_CXX=no 12672 fi 12673 12674 ;; 12675 12676 dgux*) 12677 case $cc_basename in 12678 ec++*) 12679 # FIXME: insert proper C++ library support 12680 ld_shlibs_CXX=no 12681 ;; 12682 ghcx*) 12683 # Green Hills C++ Compiler 12684 # FIXME: insert proper C++ library support 12685 ld_shlibs_CXX=no 12686 ;; 12687 *) 12688 # FIXME: insert proper C++ library support 12689 ld_shlibs_CXX=no 12690 ;; 12691 esac 12692 ;; 12693 12694 freebsd[12]*) 12695 # C++ shared libraries reported to be fairly broken before 12696 # switch to ELF 12697 ld_shlibs_CXX=no 12698 ;; 12699 12700 freebsd-elf*) 12701 archive_cmds_need_lc_CXX=no 12702 ;; 12703 12704 freebsd* | dragonfly*) 12705 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 12706 # conventions 12707 ld_shlibs_CXX=yes 12708 ;; 12709 12710 gnu*) 12711 ;; 12712 12713 hpux9*) 12714 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12715 hardcode_libdir_separator_CXX=: 12716 export_dynamic_flag_spec_CXX='${wl}-E' 12717 hardcode_direct_CXX=yes 12718 hardcode_minus_L_CXX=yes # Not in the search PATH, 12719 # but as the default 12720 # location of the library. 12721 12722 case $cc_basename in 12723 CC*) 12724 # FIXME: insert proper C++ library support 12725 ld_shlibs_CXX=no 12726 ;; 12727 aCC*) 12728 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' 12729 # Commands to make compiler produce verbose output that lists 12730 # what "hidden" libraries, object files and flags are used when 12731 # linking a shared library. 12732 # 12733 # There doesn't appear to be a way to prevent this compiler from 12734 # explicitly linking system object files so we need to strip them 12735 # from the output so that they don't get included in the library 12736 # dependencies. 12737 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 12738 ;; 12739 *) 12740 if test "$GXX" = yes; then 12741 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' 12742 else 12743 # FIXME: insert proper C++ library support 12744 ld_shlibs_CXX=no 12745 fi 12746 ;; 12747 esac 12748 ;; 12749 12750 hpux10*|hpux11*) 12751 if test $with_gnu_ld = no; then 12752 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12753 hardcode_libdir_separator_CXX=: 12754 12755 case $host_cpu in 12756 hppa*64*|ia64*) 12757 ;; 12758 *) 12759 export_dynamic_flag_spec_CXX='${wl}-E' 12760 ;; 12761 esac 12762 fi 12763 case $host_cpu in 12764 hppa*64*|ia64*) 12765 hardcode_direct_CXX=no 12766 hardcode_shlibpath_var_CXX=no 12767 ;; 12768 *) 12769 hardcode_direct_CXX=yes 12770 hardcode_direct_absolute_CXX=yes 12771 hardcode_minus_L_CXX=yes # Not in the search PATH, 12772 # but as the default 12773 # location of the library. 12774 ;; 12775 esac 12776 12777 case $cc_basename in 12778 CC*) 12779 # FIXME: insert proper C++ library support 12780 ld_shlibs_CXX=no 12781 ;; 12782 aCC*) 12783 case $host_cpu in 12784 hppa*64*) 12785 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12786 ;; 12787 ia64*) 12788 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12789 ;; 12790 *) 12791 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12792 ;; 12793 esac 12794 # Commands to make compiler produce verbose output that lists 12795 # what "hidden" libraries, object files and flags are used when 12796 # linking a shared library. 12797 # 12798 # There doesn't appear to be a way to prevent this compiler from 12799 # explicitly linking system object files so we need to strip them 12800 # from the output so that they don't get included in the library 12801 # dependencies. 12802 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 "X$list" | $Xsed' 12803 ;; 12804 *) 12805 if test "$GXX" = yes; then 12806 if test $with_gnu_ld = no; then 12807 case $host_cpu in 12808 hppa*64*) 12809 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12810 ;; 12811 ia64*) 12812 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12813 ;; 12814 *) 12815 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' 12816 ;; 12817 esac 12818 fi 12819 else 12820 # FIXME: insert proper C++ library support 12821 ld_shlibs_CXX=no 12822 fi 12823 ;; 12824 esac 12825 ;; 12826 12827 interix[3-9]*) 12828 hardcode_direct_CXX=no 12829 hardcode_shlibpath_var_CXX=no 12830 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12831 export_dynamic_flag_spec_CXX='${wl}-E' 12832 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12833 # Instead, shared libraries are loaded at an image base (0x10000000 by 12834 # default) and relocated if they conflict, which is a slow very memory 12835 # consuming and fragmenting process. To avoid this, we pick a random, 12836 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12837 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12838 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' 12839 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' 12840 ;; 12841 irix5* | irix6*) 12842 case $cc_basename in 12843 CC*) 12844 # SGI C++ 12845 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 12846 12847 # Archives containing C++ object files must be created using 12848 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 12849 # necessary to make sure instantiated templates are included 12850 # in the archive. 12851 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 12852 ;; 12853 *) 12854 if test "$GXX" = yes; then 12855 if test "$with_gnu_ld" = no; then 12856 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 12857 else 12858 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' 12859 fi 12860 fi 12861 link_all_deplibs_CXX=yes 12862 ;; 12863 esac 12864 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12865 hardcode_libdir_separator_CXX=: 12866 inherit_rpath_CXX=yes 12867 ;; 12868 12869 linux* | k*bsd*-gnu) 12870 case $cc_basename in 12871 KCC*) 12872 # Kuck and Associates, Inc. (KAI) C++ Compiler 12873 12874 # KCC will only create a shared library if the output file 12875 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12876 # to its proper name (with version) after linking. 12877 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' 12878 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' 12879 # Commands to make compiler produce verbose output that lists 12880 # what "hidden" libraries, object files and flags are used when 12881 # linking a shared library. 12882 # 12883 # There doesn't appear to be a way to prevent this compiler from 12884 # explicitly linking system object files so we need to strip them 12885 # from the output so that they don't get included in the library 12886 # dependencies. 12887 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 "X$list" | $Xsed' 12888 12889 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12890 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12891 12892 # Archives containing C++ object files must be created using 12893 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12894 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12895 ;; 12896 icpc* | ecpc* ) 12897 # Intel C++ 12898 with_gnu_ld=yes 12899 # version 8.0 and above of icpc choke on multiply defined symbols 12900 # if we add $predep_objects and $postdep_objects, however 7.1 and 12901 # earlier do not add the objects themselves. 12902 case `$CC -V 2>&1` in 12903 *"Version 7."*) 12904 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12905 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' 12906 ;; 12907 *) # Version 8.0 or newer 12908 tmp_idyn= 12909 case $host_cpu in 12910 ia64*) tmp_idyn=' -i_dynamic';; 12911 esac 12912 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12913 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' 12914 ;; 12915 esac 12916 archive_cmds_need_lc_CXX=no 12917 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12918 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12919 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12920 ;; 12921 pgCC* | pgcpp*) 12922 # Portland Group C++ compiler 12923 case `$CC -V` in 12924 *pgCC\ [1-5]* | *pgcpp\ [1-5]*) 12925 prelink_cmds_CXX='tpldir=Template.dir~ 12926 rm -rf $tpldir~ 12927 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 12928 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' 12929 old_archive_cmds_CXX='tpldir=Template.dir~ 12930 rm -rf $tpldir~ 12931 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 12932 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ 12933 $RANLIB $oldlib' 12934 archive_cmds_CXX='tpldir=Template.dir~ 12935 rm -rf $tpldir~ 12936 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 12937 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12938 archive_expsym_cmds_CXX='tpldir=Template.dir~ 12939 rm -rf $tpldir~ 12940 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 12941 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 12942 ;; 12943 *) # Version 6 will use weak symbols 12944 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12945 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' 12946 ;; 12947 esac 12948 12949 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12950 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12951 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' 12952 ;; 12953 cxx*) 12954 # Compaq C++ 12955 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12956 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' 12957 12958 runpath_var=LD_RUN_PATH 12959 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12960 hardcode_libdir_separator_CXX=: 12961 12962 # Commands to make compiler produce verbose output that lists 12963 # what "hidden" libraries, object files and flags are used when 12964 # linking a shared library. 12965 # 12966 # There doesn't appear to be a way to prevent this compiler from 12967 # explicitly linking system object files so we need to strip them 12968 # from the output so that they don't get included in the library 12969 # dependencies. 12970 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed' 12971 ;; 12972 xl*) 12973 # IBM XL 8.0 on PPC, with GNU ld 12974 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12975 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12976 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12977 if test "x$supports_anon_versioning" = xyes; then 12978 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 12979 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12980 echo "local: *; };" >> $output_objdir/$libname.ver~ 12981 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 12982 fi 12983 ;; 12984 *) 12985 case `$CC -V 2>&1 | sed 5q` in 12986 *Sun\ C*) 12987 # Sun C++ 5.9 12988 no_undefined_flag_CXX=' -zdefs' 12989 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12990 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 12991 hardcode_libdir_flag_spec_CXX='-R$libdir' 12992 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 12993 compiler_needs_object_CXX=yes 12994 12995 # Not sure whether something based on 12996 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 12997 # would be better. 12998 output_verbose_link_cmd='echo' 12999 13000 # Archives containing C++ object files must be created using 13001 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13002 # necessary to make sure instantiated templates are included 13003 # in the archive. 13004 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13005 ;; 13006 esac 13007 ;; 13008 esac 13009 ;; 13010 13011 lynxos*) 13012 # FIXME: insert proper C++ library support 13013 ld_shlibs_CXX=no 13014 ;; 13015 13016 m88k*) 13017 # FIXME: insert proper C++ library support 13018 ld_shlibs_CXX=no 13019 ;; 13020 13021 mvs*) 13022 case $cc_basename in 13023 cxx*) 13024 # FIXME: insert proper C++ library support 13025 ld_shlibs_CXX=no 13026 ;; 13027 *) 13028 # FIXME: insert proper C++ library support 13029 ld_shlibs_CXX=no 13030 ;; 13031 esac 13032 ;; 13033 13034 netbsd*) 13035 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13036 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 13037 wlarc= 13038 hardcode_libdir_flag_spec_CXX='-R$libdir' 13039 hardcode_direct_CXX=yes 13040 hardcode_shlibpath_var_CXX=no 13041 fi 13042 # Workaround some broken pre-1.5 toolchains 13043 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 13044 ;; 13045 13046 *nto* | *qnx*) 13047 ld_shlibs_CXX=yes 13048 ;; 13049 13050 openbsd2*) 13051 # C++ shared libraries are fairly broken 13052 ld_shlibs_CXX=no 13053 ;; 13054 13055 openbsd*) 13056 if test -f /usr/libexec/ld.so; then 13057 hardcode_direct_CXX=yes 13058 hardcode_shlibpath_var_CXX=no 13059 hardcode_direct_absolute_CXX=yes 13060 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13061 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13062 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13063 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 13064 export_dynamic_flag_spec_CXX='${wl}-E' 13065 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13066 fi 13067 output_verbose_link_cmd=echo 13068 else 13069 ld_shlibs_CXX=no 13070 fi 13071 ;; 13072 13073 osf3* | osf4* | osf5*) 13074 case $cc_basename in 13075 KCC*) 13076 # Kuck and Associates, Inc. (KAI) C++ Compiler 13077 13078 # KCC will only create a shared library if the output file 13079 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13080 # to its proper name (with version) after linking. 13081 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' 13082 13083 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13084 hardcode_libdir_separator_CXX=: 13085 13086 # Archives containing C++ object files must be created using 13087 # the KAI C++ compiler. 13088 case $host in 13089 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 13090 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 13091 esac 13092 ;; 13093 RCC*) 13094 # Rational C++ 2.4.1 13095 # FIXME: insert proper C++ library support 13096 ld_shlibs_CXX=no 13097 ;; 13098 cxx*) 13099 case $host in 13100 osf3*) 13101 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13102 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 13103 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13104 ;; 13105 *) 13106 allow_undefined_flag_CXX=' -expect_unresolved \*' 13107 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 13108 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 13109 echo "-hidden">> $lib.exp~ 13110 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ 13111 $RM $lib.exp' 13112 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13113 ;; 13114 esac 13115 13116 hardcode_libdir_separator_CXX=: 13117 13118 # Commands to make compiler produce verbose output that lists 13119 # what "hidden" libraries, object files and flags are used when 13120 # linking a shared library. 13121 # 13122 # There doesn't appear to be a way to prevent this compiler from 13123 # explicitly linking system object files so we need to strip them 13124 # from the output so that they don't get included in the library 13125 # dependencies. 13126 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed' 13127 ;; 13128 *) 13129 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13130 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13131 case $host in 13132 osf3*) 13133 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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 13134 ;; 13135 *) 13136 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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 13137 ;; 13138 esac 13139 13140 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13141 hardcode_libdir_separator_CXX=: 13142 13143 # Commands to make compiler produce verbose output that lists 13144 # what "hidden" libraries, object files and flags are used when 13145 # linking a shared library. 13146 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 13147 13148 else 13149 # FIXME: insert proper C++ library support 13150 ld_shlibs_CXX=no 13151 fi 13152 ;; 13153 esac 13154 ;; 13155 13156 psos*) 13157 # FIXME: insert proper C++ library support 13158 ld_shlibs_CXX=no 13159 ;; 13160 13161 sunos4*) 13162 case $cc_basename in 13163 CC*) 13164 # Sun C++ 4.x 13165 # FIXME: insert proper C++ library support 13166 ld_shlibs_CXX=no 13167 ;; 13168 lcc*) 13169 # Lucid 13170 # FIXME: insert proper C++ library support 13171 ld_shlibs_CXX=no 13172 ;; 13173 *) 13174 # FIXME: insert proper C++ library support 13175 ld_shlibs_CXX=no 13176 ;; 13177 esac 13178 ;; 13179 13180 solaris*) 13181 case $cc_basename in 13182 CC*) 13183 # Sun C++ 4.2, 5.x and Centerline C++ 13184 archive_cmds_need_lc_CXX=yes 13185 no_undefined_flag_CXX=' -zdefs' 13186 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13187 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13188 $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' 13189 13190 hardcode_libdir_flag_spec_CXX='-R$libdir' 13191 hardcode_shlibpath_var_CXX=no 13192 case $host_os in 13193 solaris2.[0-5] | solaris2.[0-5].*) ;; 13194 *) 13195 # The compiler driver will combine and reorder linker options, 13196 # but understands `-z linker_flag'. 13197 # Supported since Solaris 2.6 (maybe 2.5.1?) 13198 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 13199 ;; 13200 esac 13201 link_all_deplibs_CXX=yes 13202 13203 output_verbose_link_cmd='echo' 13204 13205 # Archives containing C++ object files must be created using 13206 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13207 # necessary to make sure instantiated templates are included 13208 # in the archive. 13209 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13210 ;; 13211 gcx*) 13212 # Green Hills C++ Compiler 13213 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13214 13215 # The C++ compiler must be used to create the archive. 13216 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 13217 ;; 13218 *) 13219 # GNU C++ compiler with Solaris linker 13220 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13221 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 13222 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 13223 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13224 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13225 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13226 13227 # Commands to make compiler produce verbose output that lists 13228 # what "hidden" libraries, object files and flags are used when 13229 # linking a shared library. 13230 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 13231 else 13232 # g++ 2.7 appears to require `-G' NOT `-shared' on this 13233 # platform. 13234 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13235 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13236 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13237 13238 # Commands to make compiler produce verbose output that lists 13239 # what "hidden" libraries, object files and flags are used when 13240 # linking a shared library. 13241 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 13242 fi 13243 13244 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 13245 case $host_os in 13246 solaris2.[0-5] | solaris2.[0-5].*) ;; 13247 *) 13248 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 13249 ;; 13250 esac 13251 fi 13252 ;; 13253 esac 13254 ;; 13255 13256 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13257 no_undefined_flag_CXX='${wl}-z,text' 13258 archive_cmds_need_lc_CXX=no 13259 hardcode_shlibpath_var_CXX=no 13260 runpath_var='LD_RUN_PATH' 13261 13262 case $cc_basename in 13263 CC*) 13264 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13265 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13266 ;; 13267 *) 13268 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13269 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13270 ;; 13271 esac 13272 ;; 13273 13274 sysv5* | sco3.2v5* | sco5v6*) 13275 # Note: We can NOT use -z defs as we might desire, because we do not 13276 # link with -lc, and that would cause any symbols used from libc to 13277 # always be unresolved, which means just about no library would 13278 # ever link correctly. If we're not using GNU ld we use -z text 13279 # though, which does catch some bad symbols but isn't as heavy-handed 13280 # as -z defs. 13281 no_undefined_flag_CXX='${wl}-z,text' 13282 allow_undefined_flag_CXX='${wl}-z,nodefs' 13283 archive_cmds_need_lc_CXX=no 13284 hardcode_shlibpath_var_CXX=no 13285 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 13286 hardcode_libdir_separator_CXX=':' 13287 link_all_deplibs_CXX=yes 13288 export_dynamic_flag_spec_CXX='${wl}-Bexport' 13289 runpath_var='LD_RUN_PATH' 13290 13291 case $cc_basename in 13292 CC*) 13293 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13294 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13295 ;; 13296 *) 13297 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13298 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13299 ;; 13300 esac 13301 ;; 13302 13303 tandem*) 13304 case $cc_basename in 13305 NCC*) 13306 # NonStop-UX NCC 3.20 13307 # FIXME: insert proper C++ library support 13308 ld_shlibs_CXX=no 13309 ;; 13310 *) 13311 # FIXME: insert proper C++ library support 13312 ld_shlibs_CXX=no 13313 ;; 13314 esac 13315 ;; 13316 13317 vxworks*) 13318 # FIXME: insert proper C++ library support 13319 ld_shlibs_CXX=no 13320 ;; 13321 13322 *) 13323 # FIXME: insert proper C++ library support 13324 ld_shlibs_CXX=no 13325 ;; 13326 esac 13327 13328 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 13329echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 13330 test "$ld_shlibs_CXX" = no && can_build_shared=no 13331 13332 GCC_CXX="$GXX" 13333 LD_CXX="$LD" 13334 13335 ## CAVEAT EMPTOR: 13336 ## There is no encapsulation within the following macros, do not change 13337 ## the running order or otherwise move them around unless you know exactly 13338 ## what you are doing... 13339 # Dependencies to place before and after the object being linked: 13340predep_objects_CXX= 13341postdep_objects_CXX= 13342predeps_CXX= 13343postdeps_CXX= 13344compiler_lib_search_path_CXX= 13345 13346cat > conftest.$ac_ext <<_LT_EOF 13347class Foo 13348{ 13349public: 13350 Foo (void) { a = 0; } 13351private: 13352 int a; 13353}; 13354_LT_EOF 13355 13356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13357 (eval $ac_compile) 2>&5 13358 ac_status=$? 13359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13360 (exit $ac_status); }; then 13361 # Parse the compiler output and extract the necessary 13362 # objects, libraries and library flags. 13363 13364 # Sentinel used to keep track of whether or not we are before 13365 # the conftest object file. 13366 pre_test_object_deps_done=no 13367 13368 for p in `eval "$output_verbose_link_cmd"`; do 13369 case $p in 13370 13371 -L* | -R* | -l*) 13372 # Some compilers place space between "-{L,R}" and the path. 13373 # Remove the space. 13374 if test $p = "-L" || 13375 test $p = "-R"; then 13376 prev=$p 13377 continue 13378 else 13379 prev= 13380 fi 13381 13382 if test "$pre_test_object_deps_done" = no; then 13383 case $p in 13384 -L* | -R*) 13385 # Internal compiler library paths should come after those 13386 # provided the user. The postdeps already come after the 13387 # user supplied libs so there is no need to process them. 13388 if test -z "$compiler_lib_search_path_CXX"; then 13389 compiler_lib_search_path_CXX="${prev}${p}" 13390 else 13391 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 13392 fi 13393 ;; 13394 # The "-l" case would never come before the object being 13395 # linked, so don't bother handling this case. 13396 esac 13397 else 13398 if test -z "$postdeps_CXX"; then 13399 postdeps_CXX="${prev}${p}" 13400 else 13401 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 13402 fi 13403 fi 13404 ;; 13405 13406 *.$objext) 13407 # This assumes that the test object file only shows up 13408 # once in the compiler output. 13409 if test "$p" = "conftest.$objext"; then 13410 pre_test_object_deps_done=yes 13411 continue 13412 fi 13413 13414 if test "$pre_test_object_deps_done" = no; then 13415 if test -z "$predep_objects_CXX"; then 13416 predep_objects_CXX="$p" 13417 else 13418 predep_objects_CXX="$predep_objects_CXX $p" 13419 fi 13420 else 13421 if test -z "$postdep_objects_CXX"; then 13422 postdep_objects_CXX="$p" 13423 else 13424 postdep_objects_CXX="$postdep_objects_CXX $p" 13425 fi 13426 fi 13427 ;; 13428 13429 *) ;; # Ignore the rest. 13430 13431 esac 13432 done 13433 13434 # Clean up. 13435 rm -f a.out a.exe 13436else 13437 echo "libtool.m4: error: problem compiling CXX test program" 13438fi 13439 13440$RM -f confest.$objext 13441 13442# PORTME: override above test on systems where it is broken 13443case $host_os in 13444interix[3-9]*) 13445 # Interix 3.5 installs completely hosed .la files for C++, so rather than 13446 # hack all around it, let's just trust "g++" to DTRT. 13447 predep_objects_CXX= 13448 postdep_objects_CXX= 13449 postdeps_CXX= 13450 ;; 13451 13452linux*) 13453 case `$CC -V 2>&1 | sed 5q` in 13454 *Sun\ C*) 13455 # Sun C++ 5.9 13456 13457 # The more standards-conforming stlport4 library is 13458 # incompatible with the Cstd library. Avoid specifying 13459 # it if it's in CXXFLAGS. Ignore libCrun as 13460 # -library=stlport4 depends on it. 13461 case " $CXX $CXXFLAGS " in 13462 *" -library=stlport4 "*) 13463 solaris_use_stlport4=yes 13464 ;; 13465 esac 13466 13467 if test "$solaris_use_stlport4" != yes; then 13468 postdeps_CXX='-library=Cstd -library=Crun' 13469 fi 13470 ;; 13471 esac 13472 ;; 13473 13474solaris*) 13475 case $cc_basename in 13476 CC*) 13477 # The more standards-conforming stlport4 library is 13478 # incompatible with the Cstd library. Avoid specifying 13479 # it if it's in CXXFLAGS. Ignore libCrun as 13480 # -library=stlport4 depends on it. 13481 case " $CXX $CXXFLAGS " in 13482 *" -library=stlport4 "*) 13483 solaris_use_stlport4=yes 13484 ;; 13485 esac 13486 13487 # Adding this requires a known-good setup of shared libraries for 13488 # Sun compiler versions before 5.6, else PIC objects from an old 13489 # archive will be linked into the output, leading to subtle bugs. 13490 if test "$solaris_use_stlport4" != yes; then 13491 postdeps_CXX='-library=Cstd -library=Crun' 13492 fi 13493 ;; 13494 esac 13495 ;; 13496esac 13497 13498 13499case " $postdeps_CXX " in 13500*" -lc "*) archive_cmds_need_lc_CXX=no ;; 13501esac 13502 compiler_lib_search_dirs_CXX= 13503if test -n "${compiler_lib_search_path_CXX}"; then 13504 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 13505fi 13506 13507 13508 13509 13510 13511 13512 13513 13514 13515 13516 13517 13518 13519 13520 13521 13522 13523 13524 13525 13526 13527 13528 13529 13530 13531 13532 13533 13534 13535 13536 13537 lt_prog_compiler_wl_CXX= 13538lt_prog_compiler_pic_CXX= 13539lt_prog_compiler_static_CXX= 13540 13541{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13542echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 13543 13544 # C++ specific cases for pic, static, wl, etc. 13545 if test "$GXX" = yes; then 13546 lt_prog_compiler_wl_CXX='-Wl,' 13547 lt_prog_compiler_static_CXX='-static' 13548 13549 case $host_os in 13550 aix*) 13551 # All AIX code is PIC. 13552 if test "$host_cpu" = ia64; then 13553 # AIX 5 now supports IA64 processor 13554 lt_prog_compiler_static_CXX='-Bstatic' 13555 fi 13556 ;; 13557 13558 amigaos*) 13559 case $host_cpu in 13560 powerpc) 13561 # see comment about AmigaOS4 .so support 13562 lt_prog_compiler_pic_CXX='-fPIC' 13563 ;; 13564 m68k) 13565 # FIXME: we need at least 68020 code to build shared libraries, but 13566 # adding the `-m68020' flag to GCC prevents building anything better, 13567 # like `-m68040'. 13568 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 13569 ;; 13570 esac 13571 ;; 13572 13573 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13574 # PIC is the default for these OSes. 13575 ;; 13576 mingw* | cygwin* | os2* | pw32*) 13577 # This hack is so that the source file can tell whether it is being 13578 # built for inclusion in a dll (and should export symbols for example). 13579 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13580 # (--disable-auto-import) libraries 13581 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 13582 ;; 13583 darwin* | rhapsody*) 13584 # PIC is the default on this platform 13585 # Common symbols not allowed in MH_DYLIB files 13586 lt_prog_compiler_pic_CXX='-fno-common' 13587 ;; 13588 *djgpp*) 13589 # DJGPP does not support shared libraries at all 13590 lt_prog_compiler_pic_CXX= 13591 ;; 13592 interix[3-9]*) 13593 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13594 # Instead, we relocate shared libraries at runtime. 13595 ;; 13596 sysv4*MP*) 13597 if test -d /usr/nec; then 13598 lt_prog_compiler_pic_CXX=-Kconform_pic 13599 fi 13600 ;; 13601 hpux*) 13602 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13603 # not for PA HP-UX. 13604 case $host_cpu in 13605 hppa*64*|ia64*) 13606 ;; 13607 *) 13608 lt_prog_compiler_pic_CXX='-fPIC' 13609 ;; 13610 esac 13611 ;; 13612 *qnx* | *nto*) 13613 # QNX uses GNU C++, but need to define -shared option too, otherwise 13614 # it will coredump. 13615 lt_prog_compiler_pic_CXX='-fPIC -shared' 13616 ;; 13617 *) 13618 lt_prog_compiler_pic_CXX='-fPIC' 13619 ;; 13620 esac 13621 else 13622 case $host_os in 13623 aix[4-9]*) 13624 # All AIX code is PIC. 13625 if test "$host_cpu" = ia64; then 13626 # AIX 5 now supports IA64 processor 13627 lt_prog_compiler_static_CXX='-Bstatic' 13628 else 13629 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 13630 fi 13631 ;; 13632 chorus*) 13633 case $cc_basename in 13634 cxch68*) 13635 # Green Hills C++ Compiler 13636 # _LT_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" 13637 ;; 13638 esac 13639 ;; 13640 dgux*) 13641 case $cc_basename in 13642 ec++*) 13643 lt_prog_compiler_pic_CXX='-KPIC' 13644 ;; 13645 ghcx*) 13646 # Green Hills C++ Compiler 13647 lt_prog_compiler_pic_CXX='-pic' 13648 ;; 13649 *) 13650 ;; 13651 esac 13652 ;; 13653 freebsd* | dragonfly*) 13654 # FreeBSD uses GNU C++ 13655 ;; 13656 hpux9* | hpux10* | hpux11*) 13657 case $cc_basename in 13658 CC*) 13659 lt_prog_compiler_wl_CXX='-Wl,' 13660 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13661 if test "$host_cpu" != ia64; then 13662 lt_prog_compiler_pic_CXX='+Z' 13663 fi 13664 ;; 13665 aCC*) 13666 lt_prog_compiler_wl_CXX='-Wl,' 13667 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13668 case $host_cpu in 13669 hppa*64*|ia64*) 13670 # +Z the default 13671 ;; 13672 *) 13673 lt_prog_compiler_pic_CXX='+Z' 13674 ;; 13675 esac 13676 ;; 13677 *) 13678 ;; 13679 esac 13680 ;; 13681 interix*) 13682 # This is c89, which is MS Visual C++ (no shared libs) 13683 # Anyone wants to do a port? 13684 ;; 13685 irix5* | irix6* | nonstopux*) 13686 case $cc_basename in 13687 CC*) 13688 lt_prog_compiler_wl_CXX='-Wl,' 13689 lt_prog_compiler_static_CXX='-non_shared' 13690 # CC pic flag -KPIC is the default. 13691 ;; 13692 *) 13693 ;; 13694 esac 13695 ;; 13696 linux* | k*bsd*-gnu) 13697 case $cc_basename in 13698 KCC*) 13699 # KAI C++ Compiler 13700 lt_prog_compiler_wl_CXX='--backend -Wl,' 13701 lt_prog_compiler_pic_CXX='-fPIC' 13702 ;; 13703 icpc* | ecpc* ) 13704 # Intel C++ 13705 lt_prog_compiler_wl_CXX='-Wl,' 13706 lt_prog_compiler_pic_CXX='-KPIC' 13707 lt_prog_compiler_static_CXX='-static' 13708 ;; 13709 pgCC* | pgcpp*) 13710 # Portland Group C++ compiler 13711 lt_prog_compiler_wl_CXX='-Wl,' 13712 lt_prog_compiler_pic_CXX='-fpic' 13713 lt_prog_compiler_static_CXX='-Bstatic' 13714 ;; 13715 cxx*) 13716 # Compaq C++ 13717 # Make sure the PIC flag is empty. It appears that all Alpha 13718 # Linux and Compaq Tru64 Unix objects are PIC. 13719 lt_prog_compiler_pic_CXX= 13720 lt_prog_compiler_static_CXX='-non_shared' 13721 ;; 13722 xlc* | xlC*) 13723 # IBM XL 8.0 on PPC 13724 lt_prog_compiler_wl_CXX='-Wl,' 13725 lt_prog_compiler_pic_CXX='-qpic' 13726 lt_prog_compiler_static_CXX='-qstaticlink' 13727 ;; 13728 *) 13729 case `$CC -V 2>&1 | sed 5q` in 13730 *Sun\ C*) 13731 # Sun C++ 5.9 13732 lt_prog_compiler_pic_CXX='-KPIC' 13733 lt_prog_compiler_static_CXX='-Bstatic' 13734 lt_prog_compiler_wl_CXX='-Qoption ld ' 13735 ;; 13736 esac 13737 ;; 13738 esac 13739 ;; 13740 lynxos*) 13741 ;; 13742 m88k*) 13743 ;; 13744 mvs*) 13745 case $cc_basename in 13746 cxx*) 13747 lt_prog_compiler_pic_CXX='-W c,exportall' 13748 ;; 13749 *) 13750 ;; 13751 esac 13752 ;; 13753 netbsd*) 13754 ;; 13755 *qnx* | *nto*) 13756 # QNX uses GNU C++, but need to define -shared option too, otherwise 13757 # it will coredump. 13758 lt_prog_compiler_pic_CXX='-fPIC -shared' 13759 ;; 13760 osf3* | osf4* | osf5*) 13761 case $cc_basename in 13762 KCC*) 13763 lt_prog_compiler_wl_CXX='--backend -Wl,' 13764 ;; 13765 RCC*) 13766 # Rational C++ 2.4.1 13767 lt_prog_compiler_pic_CXX='-pic' 13768 ;; 13769 cxx*) 13770 # Digital/Compaq C++ 13771 lt_prog_compiler_wl_CXX='-Wl,' 13772 # Make sure the PIC flag is empty. It appears that all Alpha 13773 # Linux and Compaq Tru64 Unix objects are PIC. 13774 lt_prog_compiler_pic_CXX= 13775 lt_prog_compiler_static_CXX='-non_shared' 13776 ;; 13777 *) 13778 ;; 13779 esac 13780 ;; 13781 psos*) 13782 ;; 13783 solaris*) 13784 case $cc_basename in 13785 CC*) 13786 # Sun C++ 4.2, 5.x and Centerline C++ 13787 lt_prog_compiler_pic_CXX='-KPIC' 13788 lt_prog_compiler_static_CXX='-Bstatic' 13789 lt_prog_compiler_wl_CXX='-Qoption ld ' 13790 ;; 13791 gcx*) 13792 # Green Hills C++ Compiler 13793 lt_prog_compiler_pic_CXX='-PIC' 13794 ;; 13795 *) 13796 ;; 13797 esac 13798 ;; 13799 sunos4*) 13800 case $cc_basename in 13801 CC*) 13802 # Sun C++ 4.x 13803 lt_prog_compiler_pic_CXX='-pic' 13804 lt_prog_compiler_static_CXX='-Bstatic' 13805 ;; 13806 lcc*) 13807 # Lucid 13808 lt_prog_compiler_pic_CXX='-pic' 13809 ;; 13810 *) 13811 ;; 13812 esac 13813 ;; 13814 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13815 case $cc_basename in 13816 CC*) 13817 lt_prog_compiler_wl_CXX='-Wl,' 13818 lt_prog_compiler_pic_CXX='-KPIC' 13819 lt_prog_compiler_static_CXX='-Bstatic' 13820 ;; 13821 esac 13822 ;; 13823 tandem*) 13824 case $cc_basename in 13825 NCC*) 13826 # NonStop-UX NCC 3.20 13827 lt_prog_compiler_pic_CXX='-KPIC' 13828 ;; 13829 *) 13830 ;; 13831 esac 13832 ;; 13833 vxworks*) 13834 ;; 13835 *) 13836 lt_prog_compiler_can_build_shared_CXX=no 13837 ;; 13838 esac 13839 fi 13840 13841case $host_os in 13842 # For platforms which do not support PIC, -DPIC is meaningless: 13843 *djgpp*) 13844 lt_prog_compiler_pic_CXX= 13845 ;; 13846 *) 13847 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 13848 ;; 13849esac 13850{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 13851echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 13852 13853 13854 13855# 13856# Check to make sure the PIC flag actually works. 13857# 13858if test -n "$lt_prog_compiler_pic_CXX"; then 13859 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 13860echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 13861if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then 13862 echo $ECHO_N "(cached) $ECHO_C" >&6 13863else 13864 lt_cv_prog_compiler_pic_works_CXX=no 13865 ac_outfile=conftest.$ac_objext 13866 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13867 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 13868 # Insert the option either (1) after the last *FLAGS variable, or 13869 # (2) before a word containing "conftest.", or (3) at the end. 13870 # Note that $ac_compile itself does not contain backslashes and begins 13871 # with a dollar sign (not a hyphen), so the echo should work correctly. 13872 # The option is referenced via a variable to avoid confusing sed. 13873 lt_compile=`echo "$ac_compile" | $SED \ 13874 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13875 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13876 -e 's:$: $lt_compiler_flag:'` 13877 (eval echo "\"\$as_me:13877: $lt_compile\"" >&5) 13878 (eval "$lt_compile" 2>conftest.err) 13879 ac_status=$? 13880 cat conftest.err >&5 13881 echo "$as_me:13881: \$? = $ac_status" >&5 13882 if (exit $ac_status) && test -s "$ac_outfile"; then 13883 # The compiler can only warn and ignore the option if not recognized 13884 # So say no if there are warnings other than the usual output. 13885 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 13886 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13887 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13888 lt_cv_prog_compiler_pic_works_CXX=yes 13889 fi 13890 fi 13891 $RM -r conftest* 13892 13893fi 13894{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 13895echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; } 13896 13897if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 13898 case $lt_prog_compiler_pic_CXX in 13899 "" | " "*) ;; 13900 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 13901 esac 13902else 13903 lt_prog_compiler_pic_CXX= 13904 lt_prog_compiler_can_build_shared_CXX=no 13905fi 13906 13907fi 13908 13909 13910 13911# 13912# Check to make sure the static flag actually works. 13913# 13914wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 13915{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13916echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 13917if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then 13918 echo $ECHO_N "(cached) $ECHO_C" >&6 13919else 13920 lt_cv_prog_compiler_static_works_CXX=no 13921 save_LDFLAGS="$LDFLAGS" 13922 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13923 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13924 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13925 # The linker can only warn and ignore the option if not recognized 13926 # So say no if there are warnings 13927 if test -s conftest.err; then 13928 # Append any errors to the config.log. 13929 cat conftest.err 1>&5 13930 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13931 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13932 if diff conftest.exp conftest.er2 >/dev/null; then 13933 lt_cv_prog_compiler_static_works_CXX=yes 13934 fi 13935 else 13936 lt_cv_prog_compiler_static_works_CXX=yes 13937 fi 13938 fi 13939 $RM -r conftest* 13940 LDFLAGS="$save_LDFLAGS" 13941 13942fi 13943{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5 13944echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; } 13945 13946if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 13947 : 13948else 13949 lt_prog_compiler_static_CXX= 13950fi 13951 13952 13953 13954 13955 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13956echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 13957if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 13958 echo $ECHO_N "(cached) $ECHO_C" >&6 13959else 13960 lt_cv_prog_compiler_c_o_CXX=no 13961 $RM -r conftest 2>/dev/null 13962 mkdir conftest 13963 cd conftest 13964 mkdir out 13965 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13966 13967 lt_compiler_flag="-o out/conftest2.$ac_objext" 13968 # Insert the option either (1) after the last *FLAGS variable, or 13969 # (2) before a word containing "conftest.", or (3) at the end. 13970 # Note that $ac_compile itself does not contain backslashes and begins 13971 # with a dollar sign (not a hyphen), so the echo should work correctly. 13972 lt_compile=`echo "$ac_compile" | $SED \ 13973 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13974 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13975 -e 's:$: $lt_compiler_flag:'` 13976 (eval echo "\"\$as_me:13976: $lt_compile\"" >&5) 13977 (eval "$lt_compile" 2>out/conftest.err) 13978 ac_status=$? 13979 cat out/conftest.err >&5 13980 echo "$as_me:13980: \$? = $ac_status" >&5 13981 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13982 then 13983 # The compiler can only warn and ignore the option if not recognized 13984 # So say no if there are warnings 13985 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13986 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13987 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13988 lt_cv_prog_compiler_c_o_CXX=yes 13989 fi 13990 fi 13991 chmod u+w . 2>&5 13992 $RM -r conftest* 13993 # SGI C++ compiler will create directory out/ii_files/ for 13994 # template instantiation 13995 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 13996 $RM out/* && rmdir out 13997 cd .. 13998 $RM -r conftest 13999 $RM -r conftest* 14000 14001fi 14002{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14003echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 14004 14005 14006 14007 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14008echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 14009if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 14010 echo $ECHO_N "(cached) $ECHO_C" >&6 14011else 14012 lt_cv_prog_compiler_c_o_CXX=no 14013 $RM -r conftest 2>/dev/null 14014 mkdir conftest 14015 cd conftest 14016 mkdir out 14017 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14018 14019 lt_compiler_flag="-o out/conftest2.$ac_objext" 14020 # Insert the option either (1) after the last *FLAGS variable, or 14021 # (2) before a word containing "conftest.", or (3) at the end. 14022 # Note that $ac_compile itself does not contain backslashes and begins 14023 # with a dollar sign (not a hyphen), so the echo should work correctly. 14024 lt_compile=`echo "$ac_compile" | $SED \ 14025 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14026 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14027 -e 's:$: $lt_compiler_flag:'` 14028 (eval echo "\"\$as_me:14028: $lt_compile\"" >&5) 14029 (eval "$lt_compile" 2>out/conftest.err) 14030 ac_status=$? 14031 cat out/conftest.err >&5 14032 echo "$as_me:14032: \$? = $ac_status" >&5 14033 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14034 then 14035 # The compiler can only warn and ignore the option if not recognized 14036 # So say no if there are warnings 14037 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14038 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14039 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14040 lt_cv_prog_compiler_c_o_CXX=yes 14041 fi 14042 fi 14043 chmod u+w . 2>&5 14044 $RM -r conftest* 14045 # SGI C++ compiler will create directory out/ii_files/ for 14046 # template instantiation 14047 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14048 $RM out/* && rmdir out 14049 cd .. 14050 $RM -r conftest 14051 $RM -r conftest* 14052 14053fi 14054{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14055echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 14056 14057 14058 14059 14060hard_links="nottested" 14061if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 14062 # do not overwrite the value of need_locks provided by the user 14063 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14064echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 14065 hard_links=yes 14066 $RM -r conftest* 14067 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14068 touch conftest.a 14069 ln conftest.a conftest.b 2>&5 || hard_links=no 14070 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14071 { echo "$as_me:$LINENO: result: $hard_links" >&5 14072echo "${ECHO_T}$hard_links" >&6; } 14073 if test "$hard_links" = no; then 14074 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14075echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14076 need_locks=warn 14077 fi 14078else 14079 need_locks=no 14080fi 14081 14082 14083 14084 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14085echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 14086 14087 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14088 case $host_os in 14089 aix[4-9]*) 14090 # If we're using GNU nm, then we don't want the "-C" option. 14091 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14092 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 14093 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' 14094 else 14095 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' 14096 fi 14097 ;; 14098 pw32*) 14099 export_symbols_cmds_CXX="$ltdll_cmds" 14100 ;; 14101 cygwin* | mingw*) 14102 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' 14103 ;; 14104 *) 14105 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14106 ;; 14107 esac 14108 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14109 14110{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 14111echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 14112test "$ld_shlibs_CXX" = no && can_build_shared=no 14113 14114with_gnu_ld_CXX=$with_gnu_ld 14115 14116 14117 14118 14119 14120 14121# 14122# Do we need to explicitly link libc? 14123# 14124case "x$archive_cmds_need_lc_CXX" in 14125x|xyes) 14126 # Assume -lc should be added 14127 archive_cmds_need_lc_CXX=yes 14128 14129 if test "$enable_shared" = yes && test "$GCC" = yes; then 14130 case $archive_cmds_CXX in 14131 *'~'*) 14132 # FIXME: we may have to deal with multi-command sequences. 14133 ;; 14134 '$CC '*) 14135 # Test whether the compiler implicitly links with -lc since on some 14136 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14137 # to ld, don't add -lc before -lgcc. 14138 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 14139echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 14140 $RM -r conftest* 14141 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14142 14143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14144 (eval $ac_compile) 2>&5 14145 ac_status=$? 14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14147 (exit $ac_status); } 2>conftest.err; then 14148 soname=conftest 14149 lib=conftest 14150 libobjs=conftest.$ac_objext 14151 deplibs= 14152 wl=$lt_prog_compiler_wl_CXX 14153 pic_flag=$lt_prog_compiler_pic_CXX 14154 compiler_flags=-v 14155 linker_flags=-v 14156 verstring= 14157 output_objdir=. 14158 libname=conftest 14159 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 14160 allow_undefined_flag_CXX= 14161 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 14162 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 14163 ac_status=$? 14164 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14165 (exit $ac_status); } 14166 then 14167 archive_cmds_need_lc_CXX=no 14168 else 14169 archive_cmds_need_lc_CXX=yes 14170 fi 14171 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 14172 else 14173 cat conftest.err 1>&5 14174 fi 14175 $RM -r conftest* 14176 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 14177echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 14178 ;; 14179 esac 14180 fi 14181 ;; 14182esac 14183 14184 14185 14186 14187 14188 14189 14190 14191 14192 14193 14194 14195 14196 14197 14198 14199 14200 14201 14202 14203 14204 14205 14206 14207 14208 14209 14210 14211 14212 14213 14214 14215 14216 14217 14218 14219 14220 14221 14222 14223 14224 14225 14226 14227 14228 14229 14230 14231 14232 14233 14234 14235 14236 14237 14238 14239 14240 14241 14242 14243 14244 14245 14246 14247 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 14248echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 14249 14250library_names_spec= 14251libname_spec='lib$name' 14252soname_spec= 14253shrext_cmds=".so" 14254postinstall_cmds= 14255postuninstall_cmds= 14256finish_cmds= 14257finish_eval= 14258shlibpath_var= 14259shlibpath_overrides_runpath=unknown 14260version_type=none 14261dynamic_linker="$host_os ld.so" 14262sys_lib_dlsearch_path_spec="/lib /usr/lib" 14263need_lib_prefix=unknown 14264hardcode_into_libs=no 14265 14266# when you set need_version to no, make sure it does not cause -set_version 14267# flags to be left without arguments 14268need_version=unknown 14269 14270case $host_os in 14271aix3*) 14272 version_type=linux 14273 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14274 shlibpath_var=LIBPATH 14275 14276 # AIX 3 has no versioning support, so we append a major version to the name. 14277 soname_spec='${libname}${release}${shared_ext}$major' 14278 ;; 14279 14280aix[4-9]*) 14281 version_type=linux 14282 need_lib_prefix=no 14283 need_version=no 14284 hardcode_into_libs=yes 14285 if test "$host_cpu" = ia64; then 14286 # AIX 5 supports IA64 14287 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14288 shlibpath_var=LD_LIBRARY_PATH 14289 else 14290 # With GCC up to 2.95.x, collect2 would create an import file 14291 # for dependence libraries. The import file would start with 14292 # the line `#! .'. This would cause the generated library to 14293 # depend on `.', always an invalid library. This was fixed in 14294 # development snapshots of GCC prior to 3.0. 14295 case $host_os in 14296 aix4 | aix4.[01] | aix4.[01].*) 14297 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14298 echo ' yes ' 14299 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 14300 : 14301 else 14302 can_build_shared=no 14303 fi 14304 ;; 14305 esac 14306 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14307 # soname into executable. Probably we can add versioning support to 14308 # collect2, so additional links can be useful in future. 14309 if test "$aix_use_runtimelinking" = yes; then 14310 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14311 # instead of lib<name>.a to let people know that these are not 14312 # typical AIX shared libraries. 14313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14314 else 14315 # We preserve .a as extension for shared libraries through AIX4.2 14316 # and later when we are not doing run time linking. 14317 library_names_spec='${libname}${release}.a $libname.a' 14318 soname_spec='${libname}${release}${shared_ext}$major' 14319 fi 14320 shlibpath_var=LIBPATH 14321 fi 14322 ;; 14323 14324amigaos*) 14325 case $host_cpu in 14326 powerpc) 14327 # Since July 2007 AmigaOS4 officially supports .so libraries. 14328 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 14329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14330 ;; 14331 m68k) 14332 library_names_spec='$libname.ixlibrary $libname.a' 14333 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14334 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' 14335 ;; 14336 esac 14337 ;; 14338 14339beos*) 14340 library_names_spec='${libname}${shared_ext}' 14341 dynamic_linker="$host_os ld.so" 14342 shlibpath_var=LIBRARY_PATH 14343 ;; 14344 14345bsdi[45]*) 14346 version_type=linux 14347 need_version=no 14348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14349 soname_spec='${libname}${release}${shared_ext}$major' 14350 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14351 shlibpath_var=LD_LIBRARY_PATH 14352 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14353 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14354 # the default ld.so.conf also contains /usr/contrib/lib and 14355 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14356 # libtool to hard-code these into programs 14357 ;; 14358 14359cygwin* | mingw* | pw32*) 14360 version_type=windows 14361 shrext_cmds=".dll" 14362 need_version=no 14363 need_lib_prefix=no 14364 14365 case $GCC,$host_os in 14366 yes,cygwin* | yes,mingw* | yes,pw32*) 14367 library_names_spec='$libname.dll.a' 14368 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14369 postinstall_cmds='base_file=`basename \${file}`~ 14370 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 14371 dldir=$destdir/`dirname \$dlpath`~ 14372 test -d \$dldir || mkdir -p \$dldir~ 14373 $install_prog $dir/$dlname \$dldir/$dlname~ 14374 chmod a+x \$dldir/$dlname~ 14375 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14376 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14377 fi' 14378 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14379 dlpath=$dir/\$dldll~ 14380 $RM \$dlpath' 14381 shlibpath_overrides_runpath=yes 14382 14383 case $host_os in 14384 cygwin*) 14385 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14386 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14387 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 14388 ;; 14389 mingw*) 14390 # MinGW DLLs use traditional 'lib' prefix 14391 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14392 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14393 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 14394 # It is most probably a Windows format PATH printed by 14395 # mingw gcc, but we are running on Cygwin. Gcc prints its search 14396 # path with ; separators, and with drive letters. We can handle the 14397 # drive letters (cygwin fileutils understands them), so leave them, 14398 # especially as we might pass files found there to a mingw objdump, 14399 # which wouldn't understand a cygwinified path. Ahh. 14400 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14401 else 14402 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14403 fi 14404 ;; 14405 pw32*) 14406 # pw32 DLLs use 'pw' prefix rather than 'lib' 14407 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14408 ;; 14409 esac 14410 ;; 14411 14412 *) 14413 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14414 ;; 14415 esac 14416 dynamic_linker='Win32 ld.exe' 14417 # FIXME: first we should search . and the directory the executable is in 14418 shlibpath_var=PATH 14419 ;; 14420 14421darwin* | rhapsody*) 14422 dynamic_linker="$host_os dyld" 14423 version_type=darwin 14424 need_lib_prefix=no 14425 need_version=no 14426 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext' 14427 soname_spec='${libname}${release}${major}$shared_ext' 14428 shlibpath_overrides_runpath=yes 14429 shlibpath_var=DYLD_LIBRARY_PATH 14430 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14431 14432 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14433 ;; 14434 14435dgux*) 14436 version_type=linux 14437 need_lib_prefix=no 14438 need_version=no 14439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14440 soname_spec='${libname}${release}${shared_ext}$major' 14441 shlibpath_var=LD_LIBRARY_PATH 14442 ;; 14443 14444freebsd1*) 14445 dynamic_linker=no 14446 ;; 14447 14448freebsd* | dragonfly*) 14449 # DragonFly does not have aout. When/if they implement a new 14450 # versioning mechanism, adjust this. 14451 if test -x /usr/bin/objformat; then 14452 objformat=`/usr/bin/objformat` 14453 else 14454 case $host_os in 14455 freebsd[123]*) objformat=aout ;; 14456 *) objformat=elf ;; 14457 esac 14458 fi 14459 version_type=freebsd-$objformat 14460 case $version_type in 14461 freebsd-elf*) 14462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14463 need_version=no 14464 need_lib_prefix=no 14465 ;; 14466 freebsd-*) 14467 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14468 need_version=yes 14469 ;; 14470 esac 14471 shlibpath_var=LD_LIBRARY_PATH 14472 case $host_os in 14473 freebsd2*) 14474 shlibpath_overrides_runpath=yes 14475 ;; 14476 freebsd3.[01]* | freebsdelf3.[01]*) 14477 shlibpath_overrides_runpath=yes 14478 hardcode_into_libs=yes 14479 ;; 14480 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14481 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14482 shlibpath_overrides_runpath=no 14483 hardcode_into_libs=yes 14484 ;; 14485 *) # from 4.6 on, and DragonFly 14486 shlibpath_overrides_runpath=yes 14487 hardcode_into_libs=yes 14488 ;; 14489 esac 14490 ;; 14491 14492gnu*) 14493 version_type=linux 14494 need_lib_prefix=no 14495 need_version=no 14496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14497 soname_spec='${libname}${release}${shared_ext}$major' 14498 shlibpath_var=LD_LIBRARY_PATH 14499 hardcode_into_libs=yes 14500 ;; 14501 14502hpux9* | hpux10* | hpux11*) 14503 # Give a soname corresponding to the major version so that dld.sl refuses to 14504 # link against other versions. 14505 version_type=sunos 14506 need_lib_prefix=no 14507 need_version=no 14508 case $host_cpu in 14509 ia64*) 14510 shrext_cmds='.so' 14511 hardcode_into_libs=yes 14512 dynamic_linker="$host_os dld.so" 14513 shlibpath_var=LD_LIBRARY_PATH 14514 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14516 soname_spec='${libname}${release}${shared_ext}$major' 14517 if test "X$HPUX_IA64_MODE" = X32; then 14518 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14519 else 14520 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14521 fi 14522 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14523 ;; 14524 hppa*64*) 14525 shrext_cmds='.sl' 14526 hardcode_into_libs=yes 14527 dynamic_linker="$host_os dld.sl" 14528 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14529 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14531 soname_spec='${libname}${release}${shared_ext}$major' 14532 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14533 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14534 ;; 14535 *) 14536 shrext_cmds='.sl' 14537 dynamic_linker="$host_os dld.sl" 14538 shlibpath_var=SHLIB_PATH 14539 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14541 soname_spec='${libname}${release}${shared_ext}$major' 14542 ;; 14543 esac 14544 # HP-UX runs *really* slowly unless shared libraries are mode 555. 14545 postinstall_cmds='chmod 555 $lib' 14546 ;; 14547 14548interix[3-9]*) 14549 version_type=linux 14550 need_lib_prefix=no 14551 need_version=no 14552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14553 soname_spec='${libname}${release}${shared_ext}$major' 14554 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14555 shlibpath_var=LD_LIBRARY_PATH 14556 shlibpath_overrides_runpath=no 14557 hardcode_into_libs=yes 14558 ;; 14559 14560irix5* | irix6* | nonstopux*) 14561 case $host_os in 14562 nonstopux*) version_type=nonstopux ;; 14563 *) 14564 if test "$lt_cv_prog_gnu_ld" = yes; then 14565 version_type=linux 14566 else 14567 version_type=irix 14568 fi ;; 14569 esac 14570 need_lib_prefix=no 14571 need_version=no 14572 soname_spec='${libname}${release}${shared_ext}$major' 14573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14574 case $host_os in 14575 irix5* | nonstopux*) 14576 libsuff= shlibsuff= 14577 ;; 14578 *) 14579 case $LD in # libtool.m4 will add one of these switches to LD 14580 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14581 libsuff= shlibsuff= libmagic=32-bit;; 14582 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14583 libsuff=32 shlibsuff=N32 libmagic=N32;; 14584 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14585 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14586 *) libsuff= shlibsuff= libmagic=never-match;; 14587 esac 14588 ;; 14589 esac 14590 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14591 shlibpath_overrides_runpath=no 14592 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14593 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14594 hardcode_into_libs=yes 14595 ;; 14596 14597# No shared lib support for Linux oldld, aout, or coff. 14598linux*oldld* | linux*aout* | linux*coff*) 14599 dynamic_linker=no 14600 ;; 14601 14602# This must be Linux ELF. 14603linux* | k*bsd*-gnu) 14604 version_type=linux 14605 need_lib_prefix=no 14606 need_version=no 14607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14608 soname_spec='${libname}${release}${shared_ext}$major' 14609 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14610 shlibpath_var=LD_LIBRARY_PATH 14611 shlibpath_overrides_runpath=no 14612 # Some binutils ld are patched to set DT_RUNPATH 14613 save_LDFLAGS=$LDFLAGS 14614 save_libdir=$libdir 14615 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 14616 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 14617 cat >conftest.$ac_ext <<_ACEOF 14618/* confdefs.h. */ 14619_ACEOF 14620cat confdefs.h >>conftest.$ac_ext 14621cat >>conftest.$ac_ext <<_ACEOF 14622/* end confdefs.h. */ 14623 14624int 14625main () 14626{ 14627 14628 ; 14629 return 0; 14630} 14631_ACEOF 14632rm -f conftest.$ac_objext conftest$ac_exeext 14633if { (ac_try="$ac_link" 14634case "(($ac_try" in 14635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14636 *) ac_try_echo=$ac_try;; 14637esac 14638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14639 (eval "$ac_link") 2>conftest.er1 14640 ac_status=$? 14641 grep -v '^ *+' conftest.er1 >conftest.err 14642 rm -f conftest.er1 14643 cat conftest.err >&5 14644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14645 (exit $ac_status); } && { 14646 test -z "$ac_cxx_werror_flag" || 14647 test ! -s conftest.err 14648 } && test -s conftest$ac_exeext && 14649 $as_test_x conftest$ac_exeext; then 14650 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then 14651 shlibpath_overrides_runpath=yes 14652fi 14653 14654else 14655 echo "$as_me: failed program was:" >&5 14656sed 's/^/| /' conftest.$ac_ext >&5 14657 14658 14659fi 14660 14661rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14662 conftest$ac_exeext conftest.$ac_ext 14663 LDFLAGS=$save_LDFLAGS 14664 libdir=$save_libdir 14665 14666 # This implies no fast_install, which is unacceptable. 14667 # Some rework will be needed to allow for fast_install 14668 # before this can be enabled. 14669 hardcode_into_libs=yes 14670 14671 # Append ld.so.conf contents to the search path 14672 if test -f /etc/ld.so.conf; then 14673 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 14674 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14675 fi 14676 14677 # We used to test for /lib/ld.so.1 and disable shared libraries on 14678 # powerpc, because MkLinux only supported shared libraries with the 14679 # GNU dynamic linker. Since this was broken with cross compilers, 14680 # most powerpc-linux boxes support dynamic linking these days and 14681 # people can always --disable-shared, the test was removed, and we 14682 # assume the GNU/Linux dynamic linker is in use. 14683 dynamic_linker='GNU/Linux ld.so' 14684 ;; 14685 14686netbsd*) 14687 version_type=sunos 14688 need_lib_prefix=no 14689 need_version=no 14690 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14692 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14693 dynamic_linker='NetBSD (a.out) ld.so' 14694 else 14695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14696 soname_spec='${libname}${release}${shared_ext}$major' 14697 dynamic_linker='NetBSD ld.elf_so' 14698 fi 14699 shlibpath_var=LD_LIBRARY_PATH 14700 shlibpath_overrides_runpath=yes 14701 hardcode_into_libs=yes 14702 ;; 14703 14704newsos6) 14705 version_type=linux 14706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14707 shlibpath_var=LD_LIBRARY_PATH 14708 shlibpath_overrides_runpath=yes 14709 ;; 14710 14711*nto* | *qnx*) 14712 version_type=qnx 14713 need_lib_prefix=no 14714 need_version=no 14715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14716 soname_spec='${libname}${release}${shared_ext}$major' 14717 shlibpath_var=LD_LIBRARY_PATH 14718 shlibpath_overrides_runpath=no 14719 hardcode_into_libs=yes 14720 dynamic_linker='ldqnx.so' 14721 ;; 14722 14723openbsd*) 14724 version_type=sunos 14725 sys_lib_dlsearch_path_spec="/usr/lib" 14726 need_lib_prefix=no 14727 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 14728 case $host_os in 14729 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 14730 *) need_version=no ;; 14731 esac 14732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14733 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14734 shlibpath_var=LD_LIBRARY_PATH 14735 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14736 case $host_os in 14737 openbsd2.[89] | openbsd2.[89].*) 14738 shlibpath_overrides_runpath=no 14739 ;; 14740 *) 14741 shlibpath_overrides_runpath=yes 14742 ;; 14743 esac 14744 else 14745 shlibpath_overrides_runpath=yes 14746 fi 14747 ;; 14748 14749os2*) 14750 libname_spec='$name' 14751 shrext_cmds=".dll" 14752 need_lib_prefix=no 14753 library_names_spec='$libname${shared_ext} $libname.a' 14754 dynamic_linker='OS/2 ld.exe' 14755 shlibpath_var=LIBPATH 14756 ;; 14757 14758osf3* | osf4* | osf5*) 14759 version_type=osf 14760 need_lib_prefix=no 14761 need_version=no 14762 soname_spec='${libname}${release}${shared_ext}$major' 14763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14764 shlibpath_var=LD_LIBRARY_PATH 14765 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14766 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14767 ;; 14768 14769rdos*) 14770 dynamic_linker=no 14771 ;; 14772 14773solaris*) 14774 version_type=linux 14775 need_lib_prefix=no 14776 need_version=no 14777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14778 soname_spec='${libname}${release}${shared_ext}$major' 14779 shlibpath_var=LD_LIBRARY_PATH 14780 shlibpath_overrides_runpath=yes 14781 hardcode_into_libs=yes 14782 # ldd complains unless libraries are executable 14783 postinstall_cmds='chmod +x $lib' 14784 ;; 14785 14786sunos4*) 14787 version_type=sunos 14788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14789 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14790 shlibpath_var=LD_LIBRARY_PATH 14791 shlibpath_overrides_runpath=yes 14792 if test "$with_gnu_ld" = yes; then 14793 need_lib_prefix=no 14794 fi 14795 need_version=yes 14796 ;; 14797 14798sysv4 | sysv4.3*) 14799 version_type=linux 14800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14801 soname_spec='${libname}${release}${shared_ext}$major' 14802 shlibpath_var=LD_LIBRARY_PATH 14803 case $host_vendor in 14804 sni) 14805 shlibpath_overrides_runpath=no 14806 need_lib_prefix=no 14807 runpath_var=LD_RUN_PATH 14808 ;; 14809 siemens) 14810 need_lib_prefix=no 14811 ;; 14812 motorola) 14813 need_lib_prefix=no 14814 need_version=no 14815 shlibpath_overrides_runpath=no 14816 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14817 ;; 14818 esac 14819 ;; 14820 14821sysv4*MP*) 14822 if test -d /usr/nec ;then 14823 version_type=linux 14824 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14825 soname_spec='$libname${shared_ext}.$major' 14826 shlibpath_var=LD_LIBRARY_PATH 14827 fi 14828 ;; 14829 14830sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14831 version_type=freebsd-elf 14832 need_lib_prefix=no 14833 need_version=no 14834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14835 soname_spec='${libname}${release}${shared_ext}$major' 14836 shlibpath_var=LD_LIBRARY_PATH 14837 shlibpath_overrides_runpath=yes 14838 hardcode_into_libs=yes 14839 if test "$with_gnu_ld" = yes; then 14840 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14841 else 14842 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14843 case $host_os in 14844 sco3.2v5*) 14845 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14846 ;; 14847 esac 14848 fi 14849 sys_lib_dlsearch_path_spec='/usr/lib' 14850 ;; 14851 14852tpf*) 14853 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 14854 version_type=linux 14855 need_lib_prefix=no 14856 need_version=no 14857 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14858 shlibpath_var=LD_LIBRARY_PATH 14859 shlibpath_overrides_runpath=no 14860 hardcode_into_libs=yes 14861 ;; 14862 14863uts4*) 14864 version_type=linux 14865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14866 soname_spec='${libname}${release}${shared_ext}$major' 14867 shlibpath_var=LD_LIBRARY_PATH 14868 ;; 14869 14870*) 14871 dynamic_linker=no 14872 ;; 14873esac 14874{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 14875echo "${ECHO_T}$dynamic_linker" >&6; } 14876test "$dynamic_linker" = no && can_build_shared=no 14877 14878variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14879if test "$GCC" = yes; then 14880 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14881fi 14882 14883if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 14884 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 14885fi 14886if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 14887 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 14888fi 14889 14890 14891 14892 14893 14894 14895 14896 14897 14898 14899 14900 14901 14902 14903 14904 14905 14906 14907 14908 14909 14910 14911 14912 14913 14914 14915 14916 14917 14918 14919 14920 14921 14922 14923 14924 14925 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 14926echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 14927hardcode_action_CXX= 14928if test -n "$hardcode_libdir_flag_spec_CXX" || 14929 test -n "$runpath_var_CXX" || 14930 test "X$hardcode_automatic_CXX" = "Xyes" ; then 14931 14932 # We can hardcode non-existent directories. 14933 if test "$hardcode_direct_CXX" != no && 14934 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14935 # have to relink, otherwise we might link with an installed library 14936 # when we should be linking with a yet-to-be-installed one 14937 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 14938 test "$hardcode_minus_L_CXX" != no; then 14939 # Linking always hardcodes the temporary library directory. 14940 hardcode_action_CXX=relink 14941 else 14942 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14943 hardcode_action_CXX=immediate 14944 fi 14945else 14946 # We cannot hardcode anything, or else we can only hardcode existing 14947 # directories. 14948 hardcode_action_CXX=unsupported 14949fi 14950{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 14951echo "${ECHO_T}$hardcode_action_CXX" >&6; } 14952 14953if test "$hardcode_action_CXX" = relink || 14954 test "$inherit_rpath_CXX" = yes; then 14955 # Fast installation is not supported 14956 enable_fast_install=no 14957elif test "$shlibpath_overrides_runpath" = yes || 14958 test "$enable_shared" = no; then 14959 # Fast installation is not necessary 14960 enable_fast_install=needless 14961fi 14962 14963 14964 14965 14966 14967 14968 14969 fi # test -n "$compiler" 14970 14971 CC=$lt_save_CC 14972 LDCXX=$LD 14973 LD=$lt_save_LD 14974 GCC=$lt_save_GCC 14975 with_gnu_ld=$lt_save_with_gnu_ld 14976 lt_cv_path_LDCXX=$lt_cv_path_LD 14977 lt_cv_path_LD=$lt_save_path_LD 14978 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14979 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14980fi # test "$_lt_caught_CXX_error" != yes 14981 14982ac_ext=c 14983ac_cpp='$CPP $CPPFLAGS' 14984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14986ac_compiler_gnu=$ac_cv_c_compiler_gnu 14987 14988 14989 14990 14991 14992 14993 14994 14995 14996 14997 14998 14999 15000 ac_config_commands="$ac_config_commands libtool" 15001 15002 15003 15004 15005# Only expand once: 15006 15007 15008 15009case "$host" in 15010 *-*-mingw*|*-*-cygwin*) 15011 15012cat >>confdefs.h <<\_ACEOF 15013#define PLATFORM_WIN32 1 15014_ACEOF 15015 15016 opengl_LIBS="-lunsupported_platform" 15017 PLATFORM_STRING="Win32" 15018 ;; 15019 *-*-linux*) 15020 15021cat >>confdefs.h <<\_ACEOF 15022#define PLATFORM_LINUX 1 15023_ACEOF 15024 15025 opengl_LIBS="-lGL -lGLU -lglut" 15026 PLATFORM_STRING="Linux" 15027 ;; 15028 *-*-darwin*) 15029 15030cat >>confdefs.h <<\_ACEOF 15031#define PLATFORM_APPLE 1 15032_ACEOF 15033 15034 opengl_LIBS="-framework AGL -framework OpenGL -framework GLUT" 15035 PLATFORM_STRING="Apple" 15036 ;; 15037 *) 15038 { echo "$as_me:$LINENO: WARNING: *** Please add $host to configure.ac checks!" >&5 15039echo "$as_me: WARNING: *** Please add $host to configure.ac checks!" >&2;} 15040 ;; 15041esac 15042 15043 15044case "$host" in 15045 i?86-* | k?-* | athlon-* | pentium*-) 15046 15047cat >>confdefs.h <<\_ACEOF 15048#define ARCH_X86 1 15049_ACEOF 15050 15051 ARCH_SPECIFIC_CFLAGS="" 15052 ARCH_STRING="X86" 15053 ;; 15054 x86_64-*) 15055 15056cat >>confdefs.h <<\_ACEOF 15057#define ARCH_X86_64 1 15058_ACEOF 15059 15060 ARCH_SPECIFIC_CFLAGS="-DUSE_ADDR64" 15061 ARCH_STRING="X86-64" 15062 ;; 15063 ppc-* | powerpc-*) 15064 15065cat >>confdefs.h <<\_ACEOF 15066#define ARCH_PPC 1 15067_ACEOF 15068 15069 ARCH_SPECIFIC_CFLAGS="" 15070 ARCH_STRING="PowerPC" 15071 ;; 15072 *) 15073 { { echo "$as_me:$LINENO: error: Unknown Architecture" >&5 15074echo "$as_me: error: Unknown Architecture" >&2;} 15075 { (exit 1); exit 1; }; } 15076 ;; 15077esac 15078{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 15079echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 15080if test "${ac_cv_c_bigendian+set}" = set; then 15081 echo $ECHO_N "(cached) $ECHO_C" >&6 15082else 15083 # See if sys/param.h defines the BYTE_ORDER macro. 15084cat >conftest.$ac_ext <<_ACEOF 15085/* confdefs.h. */ 15086_ACEOF 15087cat confdefs.h >>conftest.$ac_ext 15088cat >>conftest.$ac_ext <<_ACEOF 15089/* end confdefs.h. */ 15090#include <sys/types.h> 15091#include <sys/param.h> 15092 15093int 15094main () 15095{ 15096#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ 15097 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) 15098 bogus endian macros 15099#endif 15100 15101 ; 15102 return 0; 15103} 15104_ACEOF 15105rm -f conftest.$ac_objext 15106if { (ac_try="$ac_compile" 15107case "(($ac_try" in 15108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15109 *) ac_try_echo=$ac_try;; 15110esac 15111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15112 (eval "$ac_compile") 2>conftest.er1 15113 ac_status=$? 15114 grep -v '^ *+' conftest.er1 >conftest.err 15115 rm -f conftest.er1 15116 cat conftest.err >&5 15117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15118 (exit $ac_status); } && { 15119 test -z "$ac_c_werror_flag" || 15120 test ! -s conftest.err 15121 } && test -s conftest.$ac_objext; then 15122 # It does; now see whether it defined to BIG_ENDIAN or not. 15123cat >conftest.$ac_ext <<_ACEOF 15124/* confdefs.h. */ 15125_ACEOF 15126cat confdefs.h >>conftest.$ac_ext 15127cat >>conftest.$ac_ext <<_ACEOF 15128/* end confdefs.h. */ 15129#include <sys/types.h> 15130#include <sys/param.h> 15131 15132int 15133main () 15134{ 15135#if BYTE_ORDER != BIG_ENDIAN 15136 not big endian 15137#endif 15138 15139 ; 15140 return 0; 15141} 15142_ACEOF 15143rm -f conftest.$ac_objext 15144if { (ac_try="$ac_compile" 15145case "(($ac_try" in 15146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15147 *) ac_try_echo=$ac_try;; 15148esac 15149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15150 (eval "$ac_compile") 2>conftest.er1 15151 ac_status=$? 15152 grep -v '^ *+' conftest.er1 >conftest.err 15153 rm -f conftest.er1 15154 cat conftest.err >&5 15155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15156 (exit $ac_status); } && { 15157 test -z "$ac_c_werror_flag" || 15158 test ! -s conftest.err 15159 } && test -s conftest.$ac_objext; then 15160 ac_cv_c_bigendian=yes 15161else 15162 echo "$as_me: failed program was:" >&5 15163sed 's/^/| /' conftest.$ac_ext >&5 15164 15165 ac_cv_c_bigendian=no 15166fi 15167 15168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15169else 15170 echo "$as_me: failed program was:" >&5 15171sed 's/^/| /' conftest.$ac_ext >&5 15172 15173 # It does not; compile a test program. 15174if test "$cross_compiling" = yes; then 15175 # try to guess the endianness by grepping values into an object file 15176 ac_cv_c_bigendian=unknown 15177 cat >conftest.$ac_ext <<_ACEOF 15178/* confdefs.h. */ 15179_ACEOF 15180cat confdefs.h >>conftest.$ac_ext 15181cat >>conftest.$ac_ext <<_ACEOF 15182/* end confdefs.h. */ 15183short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 15184short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 15185void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 15186short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 15187short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 15188void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 15189int 15190main () 15191{ 15192 _ascii (); _ebcdic (); 15193 ; 15194 return 0; 15195} 15196_ACEOF 15197rm -f conftest.$ac_objext 15198if { (ac_try="$ac_compile" 15199case "(($ac_try" in 15200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15201 *) ac_try_echo=$ac_try;; 15202esac 15203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15204 (eval "$ac_compile") 2>conftest.er1 15205 ac_status=$? 15206 grep -v '^ *+' conftest.er1 >conftest.err 15207 rm -f conftest.er1 15208 cat conftest.err >&5 15209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15210 (exit $ac_status); } && { 15211 test -z "$ac_c_werror_flag" || 15212 test ! -s conftest.err 15213 } && test -s conftest.$ac_objext; then 15214 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 15215 ac_cv_c_bigendian=yes 15216fi 15217if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 15218 if test "$ac_cv_c_bigendian" = unknown; then 15219 ac_cv_c_bigendian=no 15220 else 15221 # finding both strings is unlikely to happen, but who knows? 15222 ac_cv_c_bigendian=unknown 15223 fi 15224fi 15225else 15226 echo "$as_me: failed program was:" >&5 15227sed 's/^/| /' conftest.$ac_ext >&5 15228 15229 15230fi 15231 15232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15233else 15234 cat >conftest.$ac_ext <<_ACEOF 15235/* confdefs.h. */ 15236_ACEOF 15237cat confdefs.h >>conftest.$ac_ext 15238cat >>conftest.$ac_ext <<_ACEOF 15239/* end confdefs.h. */ 15240$ac_includes_default 15241int 15242main () 15243{ 15244 15245 /* Are we little or big endian? From Harbison&Steele. */ 15246 union 15247 { 15248 long int l; 15249 char c[sizeof (long int)]; 15250 } u; 15251 u.l = 1; 15252 return u.c[sizeof (long int) - 1] == 1; 15253 15254 ; 15255 return 0; 15256} 15257_ACEOF 15258rm -f conftest$ac_exeext 15259if { (ac_try="$ac_link" 15260case "(($ac_try" in 15261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15262 *) ac_try_echo=$ac_try;; 15263esac 15264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15265 (eval "$ac_link") 2>&5 15266 ac_status=$? 15267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15268 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 15269 { (case "(($ac_try" in 15270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15271 *) ac_try_echo=$ac_try;; 15272esac 15273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15274 (eval "$ac_try") 2>&5 15275 ac_status=$? 15276 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15277 (exit $ac_status); }; }; then 15278 ac_cv_c_bigendian=no 15279else 15280 echo "$as_me: program exited with status $ac_status" >&5 15281echo "$as_me: failed program was:" >&5 15282sed 's/^/| /' conftest.$ac_ext >&5 15283 15284( exit $ac_status ) 15285ac_cv_c_bigendian=yes 15286fi 15287rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 15288fi 15289 15290 15291fi 15292 15293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15294fi 15295{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 15296echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 15297case $ac_cv_c_bigendian in 15298 yes) 15299 15300cat >>confdefs.h <<\_ACEOF 15301#define WORDS_BIGENDIAN 1 15302_ACEOF 15303 ;; 15304 no) 15305 ;; 15306 *) 15307 { { echo "$as_me:$LINENO: error: unknown endianness 15308presetting ac_cv_c_bigendian=no (or yes) will help" >&5 15309echo "$as_me: error: unknown endianness 15310presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 15311 { (exit 1); exit 1; }; } ;; 15312esac 15313 15314 15315 15316#---------------------------------------------------------------------------- 15317# Setup for the configuration header. 15318#---------------------------------------------------------------------------- 15319ac_config_headers="$ac_config_headers config.h" 15320 15321#---------------------------------------------------------------------------- 15322# Package configuration switches. 15323#---------------------------------------------------------------------------- 15324# Check whether --enable-multithreaded was given. 15325if test "${enable_multithreaded+set}" = set; then 15326 enableval=$enable_multithreaded; disable_multithreaded=no 15327else 15328 disable_multithreaded=yes 15329fi 15330 15331{ echo "$as_me:$LINENO: checking BulletMultiThreaded" >&5 15332echo $ECHO_N "checking BulletMultiThreaded... $ECHO_C" >&6; } 15333if test "$disable_multithreaded" = yes; then 15334 build_multithreaded=no 15335else 15336 build_multithreaded=yes 15337fi 15338 15339{ echo "$as_me:$LINENO: result: $build_multithreaded" >&5 15340echo "${ECHO_T}$build_multithreaded" >&6; } 15341 if test "$build_multithreaded" = yes; then 15342 CONDITIONAL_BUILD_MULTITHREADED_TRUE= 15343 CONDITIONAL_BUILD_MULTITHREADED_FALSE='#' 15344else 15345 CONDITIONAL_BUILD_MULTITHREADED_TRUE='#' 15346 CONDITIONAL_BUILD_MULTITHREADED_FALSE= 15347fi 15348 15349 15350# Check whether --enable-demos was given. 15351if test "${enable_demos+set}" = set; then 15352 enableval=$enable_demos; 15353else 15354 enable_demos=yes 15355fi 15356 15357 if false; then 15358 CONDITIONAL_BUILD_DEMOS_TRUE= 15359 CONDITIONAL_BUILD_DEMOS_FALSE='#' 15360else 15361 CONDITIONAL_BUILD_DEMOS_TRUE='#' 15362 CONDITIONAL_BUILD_DEMOS_FALSE= 15363fi 15364 15365 15366if test "x$drawstuff" = "xOSX"; then 15367 15368cat >>confdefs.h <<\_ACEOF 15369#define HAVE_APPLE_OPENGL_FRAMEWORK 1 15370_ACEOF 15371 15372 GL_LIBS="-framework GLUT -framework OpenGL -framework Carbon -framework AGL" 15373 have_glut=yes 15374else 15375 have_gl_headers=yes 15376 15377 15378 15379 15380for ac_header in GL/gl.h GL/glu.h GL/glext.h GL/glut.h 15381do 15382as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15383{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15384echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15385if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15386 echo $ECHO_N "(cached) $ECHO_C" >&6 15387else 15388 cat >conftest.$ac_ext <<_ACEOF 15389/* confdefs.h. */ 15390_ACEOF 15391cat confdefs.h >>conftest.$ac_ext 15392cat >>conftest.$ac_ext <<_ACEOF 15393/* end confdefs.h. */ 15394#ifdef WIN32 15395 #include <windows.h> 15396 #endif 15397 #if HAVE_GL_GL_H 15398 #include <GL/gl.h> 15399 #endif 15400 #if HAVE_GL_GLU_H 15401 #include <GL/glu.h> 15402 #endif 15403 15404 15405#include <$ac_header> 15406_ACEOF 15407rm -f conftest.$ac_objext 15408if { (ac_try="$ac_compile" 15409case "(($ac_try" in 15410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15411 *) ac_try_echo=$ac_try;; 15412esac 15413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15414 (eval "$ac_compile") 2>conftest.er1 15415 ac_status=$? 15416 grep -v '^ *+' conftest.er1 >conftest.err 15417 rm -f conftest.er1 15418 cat conftest.err >&5 15419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15420 (exit $ac_status); } && { 15421 test -z "$ac_c_werror_flag" || 15422 test ! -s conftest.err 15423 } && test -s conftest.$ac_objext; then 15424 eval "$as_ac_Header=yes" 15425else 15426 echo "$as_me: failed program was:" >&5 15427sed 's/^/| /' conftest.$ac_ext >&5 15428 15429 eval "$as_ac_Header=no" 15430fi 15431 15432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15433fi 15434ac_res=`eval echo '${'$as_ac_Header'}'` 15435 { echo "$as_me:$LINENO: result: $ac_res" >&5 15436echo "${ECHO_T}$ac_res" >&6; } 15437if test `eval echo '${'$as_ac_Header'}'` = yes; then 15438 cat >>confdefs.h <<_ACEOF 15439#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15440_ACEOF 15441 15442else 15443 have_gl_headers=no 15444fi 15445 15446done 15447 15448 have_gl=no 15449 have_glu=no 15450 have_glut=no 15451 TEMP_LDFLAGS="$LDFLAGS" 15452 { echo "$as_me:$LINENO: checking for main in -lGL" >&5 15453echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6; } 15454if test "${ac_cv_lib_GL_main+set}" = set; then 15455 echo $ECHO_N "(cached) $ECHO_C" >&6 15456else 15457 ac_check_lib_save_LIBS=$LIBS 15458LIBS="-lGL $LIBS" 15459cat >conftest.$ac_ext <<_ACEOF 15460/* confdefs.h. */ 15461_ACEOF 15462cat confdefs.h >>conftest.$ac_ext 15463cat >>conftest.$ac_ext <<_ACEOF 15464/* end confdefs.h. */ 15465 15466 15467int 15468main () 15469{ 15470return main (); 15471 ; 15472 return 0; 15473} 15474_ACEOF 15475rm -f conftest.$ac_objext conftest$ac_exeext 15476if { (ac_try="$ac_link" 15477case "(($ac_try" in 15478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15479 *) ac_try_echo=$ac_try;; 15480esac 15481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15482 (eval "$ac_link") 2>conftest.er1 15483 ac_status=$? 15484 grep -v '^ *+' conftest.er1 >conftest.err 15485 rm -f conftest.er1 15486 cat conftest.err >&5 15487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15488 (exit $ac_status); } && { 15489 test -z "$ac_c_werror_flag" || 15490 test ! -s conftest.err 15491 } && test -s conftest$ac_exeext && 15492 $as_test_x conftest$ac_exeext; then 15493 ac_cv_lib_GL_main=yes 15494else 15495 echo "$as_me: failed program was:" >&5 15496sed 's/^/| /' conftest.$ac_ext >&5 15497 15498 ac_cv_lib_GL_main=no 15499fi 15500 15501rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15502 conftest$ac_exeext conftest.$ac_ext 15503LIBS=$ac_check_lib_save_LIBS 15504fi 15505{ echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5 15506echo "${ECHO_T}$ac_cv_lib_GL_main" >&6; } 15507if test $ac_cv_lib_GL_main = yes; then 15508 GL_LIBS="-lGL"; have_gl=yes 15509fi 15510 15511 { echo "$as_me:$LINENO: checking for main in -lGLU" >&5 15512echo $ECHO_N "checking for main in -lGLU... $ECHO_C" >&6; } 15513if test "${ac_cv_lib_GLU_main+set}" = set; then 15514 echo $ECHO_N "(cached) $ECHO_C" >&6 15515else 15516 ac_check_lib_save_LIBS=$LIBS 15517LIBS="-lGLU -lGL $LIBS" 15518cat >conftest.$ac_ext <<_ACEOF 15519/* confdefs.h. */ 15520_ACEOF 15521cat confdefs.h >>conftest.$ac_ext 15522cat >>conftest.$ac_ext <<_ACEOF 15523/* end confdefs.h. */ 15524 15525 15526int 15527main () 15528{ 15529return main (); 15530 ; 15531 return 0; 15532} 15533_ACEOF 15534rm -f conftest.$ac_objext conftest$ac_exeext 15535if { (ac_try="$ac_link" 15536case "(($ac_try" in 15537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15538 *) ac_try_echo=$ac_try;; 15539esac 15540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15541 (eval "$ac_link") 2>conftest.er1 15542 ac_status=$? 15543 grep -v '^ *+' conftest.er1 >conftest.err 15544 rm -f conftest.er1 15545 cat conftest.err >&5 15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15547 (exit $ac_status); } && { 15548 test -z "$ac_c_werror_flag" || 15549 test ! -s conftest.err 15550 } && test -s conftest$ac_exeext && 15551 $as_test_x conftest$ac_exeext; then 15552 ac_cv_lib_GLU_main=yes 15553else 15554 echo "$as_me: failed program was:" >&5 15555sed 's/^/| /' conftest.$ac_ext >&5 15556 15557 ac_cv_lib_GLU_main=no 15558fi 15559 15560rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15561 conftest$ac_exeext conftest.$ac_ext 15562LIBS=$ac_check_lib_save_LIBS 15563fi 15564{ echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_main" >&5 15565echo "${ECHO_T}$ac_cv_lib_GLU_main" >&6; } 15566if test $ac_cv_lib_GLU_main = yes; then 15567 GL_LIBS="-lGLU $GL_LIBS"; have_glu=yes 15568fi 15569 15570 { echo "$as_me:$LINENO: checking for main in -lGLUT" >&5 15571echo $ECHO_N "checking for main in -lGLUT... $ECHO_C" >&6; } 15572if test "${ac_cv_lib_GLUT_main+set}" = set; then 15573 echo $ECHO_N "(cached) $ECHO_C" >&6 15574else 15575 ac_check_lib_save_LIBS=$LIBS 15576LIBS="-lGLUT -lGLUT $LIBS" 15577cat >conftest.$ac_ext <<_ACEOF 15578/* confdefs.h. */ 15579_ACEOF 15580cat confdefs.h >>conftest.$ac_ext 15581cat >>conftest.$ac_ext <<_ACEOF 15582/* end confdefs.h. */ 15583 15584 15585int 15586main () 15587{ 15588return main (); 15589 ; 15590 return 0; 15591} 15592_ACEOF 15593rm -f conftest.$ac_objext conftest$ac_exeext 15594if { (ac_try="$ac_link" 15595case "(($ac_try" in 15596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15597 *) ac_try_echo=$ac_try;; 15598esac 15599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15600 (eval "$ac_link") 2>conftest.er1 15601 ac_status=$? 15602 grep -v '^ *+' conftest.er1 >conftest.err 15603 rm -f conftest.er1 15604 cat conftest.err >&5 15605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15606 (exit $ac_status); } && { 15607 test -z "$ac_c_werror_flag" || 15608 test ! -s conftest.err 15609 } && test -s conftest$ac_exeext && 15610 $as_test_x conftest$ac_exeext; then 15611 ac_cv_lib_GLUT_main=yes 15612else 15613 echo "$as_me: failed program was:" >&5 15614sed 's/^/| /' conftest.$ac_ext >&5 15615 15616 ac_cv_lib_GLUT_main=no 15617fi 15618 15619rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15620 conftest$ac_exeext conftest.$ac_ext 15621LIBS=$ac_check_lib_save_LIBS 15622fi 15623{ echo "$as_me:$LINENO: result: $ac_cv_lib_GLUT_main" >&5 15624echo "${ECHO_T}$ac_cv_lib_GLUT_main" >&6; } 15625if test $ac_cv_lib_GLUT_main = yes; then 15626 GL_LIBS="-lGLUT -LGLU $GL_LIBS"; have_glut=yes 15627fi 15628 15629 { echo "$as_me:$LINENO: checking for main in -lopengl32" >&5 15630echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6; } 15631if test "${ac_cv_lib_opengl32_main+set}" = set; then 15632 echo $ECHO_N "(cached) $ECHO_C" >&6 15633else 15634 ac_check_lib_save_LIBS=$LIBS 15635LIBS="-lopengl32 $LIBS" 15636cat >conftest.$ac_ext <<_ACEOF 15637/* confdefs.h. */ 15638_ACEOF 15639cat confdefs.h >>conftest.$ac_ext 15640cat >>conftest.$ac_ext <<_ACEOF 15641/* end confdefs.h. */ 15642 15643 15644int 15645main () 15646{ 15647return main (); 15648 ; 15649 return 0; 15650} 15651_ACEOF 15652rm -f conftest.$ac_objext conftest$ac_exeext 15653if { (ac_try="$ac_link" 15654case "(($ac_try" in 15655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15656 *) ac_try_echo=$ac_try;; 15657esac 15658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15659 (eval "$ac_link") 2>conftest.er1 15660 ac_status=$? 15661 grep -v '^ *+' conftest.er1 >conftest.err 15662 rm -f conftest.er1 15663 cat conftest.err >&5 15664 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15665 (exit $ac_status); } && { 15666 test -z "$ac_c_werror_flag" || 15667 test ! -s conftest.err 15668 } && test -s conftest$ac_exeext && 15669 $as_test_x conftest$ac_exeext; then 15670 ac_cv_lib_opengl32_main=yes 15671else 15672 echo "$as_me: failed program was:" >&5 15673sed 's/^/| /' conftest.$ac_ext >&5 15674 15675 ac_cv_lib_opengl32_main=no 15676fi 15677 15678rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15679 conftest$ac_exeext conftest.$ac_ext 15680LIBS=$ac_check_lib_save_LIBS 15681fi 15682{ echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5 15683echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6; } 15684if test $ac_cv_lib_opengl32_main = yes; then 15685 GL_LIBS="-lopengl32"; have_gl=yes 15686fi 15687 15688 { echo "$as_me:$LINENO: checking for main in -lglu32" >&5 15689echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6; } 15690if test "${ac_cv_lib_glu32_main+set}" = set; then 15691 echo $ECHO_N "(cached) $ECHO_C" >&6 15692else 15693 ac_check_lib_save_LIBS=$LIBS 15694LIBS="-lglu32 -lopengl32 $LIBS" 15695cat >conftest.$ac_ext <<_ACEOF 15696/* confdefs.h. */ 15697_ACEOF 15698cat confdefs.h >>conftest.$ac_ext 15699cat >>conftest.$ac_ext <<_ACEOF 15700/* end confdefs.h. */ 15701 15702 15703int 15704main () 15705{ 15706return main (); 15707 ; 15708 return 0; 15709} 15710_ACEOF 15711rm -f conftest.$ac_objext conftest$ac_exeext 15712if { (ac_try="$ac_link" 15713case "(($ac_try" in 15714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15715 *) ac_try_echo=$ac_try;; 15716esac 15717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15718 (eval "$ac_link") 2>conftest.er1 15719 ac_status=$? 15720 grep -v '^ *+' conftest.er1 >conftest.err 15721 rm -f conftest.er1 15722 cat conftest.err >&5 15723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15724 (exit $ac_status); } && { 15725 test -z "$ac_c_werror_flag" || 15726 test ! -s conftest.err 15727 } && test -s conftest$ac_exeext && 15728 $as_test_x conftest$ac_exeext; then 15729 ac_cv_lib_glu32_main=yes 15730else 15731 echo "$as_me: failed program was:" >&5 15732sed 's/^/| /' conftest.$ac_ext >&5 15733 15734 ac_cv_lib_glu32_main=no 15735fi 15736 15737rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15738 conftest$ac_exeext conftest.$ac_ext 15739LIBS=$ac_check_lib_save_LIBS 15740fi 15741{ echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5 15742echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6; } 15743if test $ac_cv_lib_glu32_main = yes; then 15744 GL_LIBS="-lglu32 $GL_LIBS"; have_glu=yes 15745fi 15746 15747 LDFLAGS="$TEMP_LDFLAGS" 15748 if test $have_gl = no -o $have_glu = no -o $have_gl_headers = no; then 15749 if test x$enable_demos = xyes; then 15750 { echo "$as_me:$LINENO: WARNING: Demos and Extras will not be built because OpenGL and GLUT doesn't seem to work. See \`config.log' for details." >&5 15751echo "$as_me: WARNING: Demos and Extras will not be built because OpenGL and GLUT doesn't seem to work. See \`config.log' for details." >&2;} 15752 fi 15753 enable_demos=no 15754 else 15755 { echo "$as_me:$LINENO: Found OpenGL" >&5 15756echo "$as_me: Found OpenGL" >&6;} 15757 fi 15758fi 15759 15760 15761 15762if test "x$enable_demos" != xno; then 15763 { echo "$as_me:$LINENO: Building Bullet demos" >&5 15764echo "$as_me: Building Bullet demos" >&6;} 15765 if true; then 15766 CONDITIONAL_BUILD_DEMOS_TRUE= 15767 CONDITIONAL_BUILD_DEMOS_FALSE='#' 15768else 15769 CONDITIONAL_BUILD_DEMOS_TRUE='#' 15770 CONDITIONAL_BUILD_DEMOS_FALSE= 15771fi 15772 15773fi 15774 15775 15776 15777# Check whether --enable-debug was given. 15778if test "${enable_debug+set}" = set; then 15779 enableval=$enable_debug; 15780else 15781 enable_debug=no 15782fi 15783 15784 15785{ echo "$as_me:$LINENO: checking build mode" >&5 15786echo $ECHO_N "checking build mode... $ECHO_C" >&6; } 15787if test $enable_debug = yes; then 15788 build_mode=debug 15789else 15790 build_mode=optimize 15791fi 15792 15793{ echo "$as_me:$LINENO: result: $build_mode" >&5 15794echo "${ECHO_T}$build_mode" >&6; } 15795 15796 15797 15798CFLAGS="$ARCH_SPECIFIC_CFLAGS $CFLAGS" 15799CXXFLAGS="$ARCH_SPECIFIC_CFLAGS $CXXFLAGS $CFLAGS" 15800#---------------------------------------------------------------------------- 15801# Emit generated files. 15802#---------------------------------------------------------------------------- 15803ac_config_files="$ac_config_files bullet.pc Makefile src/Makefile Extras/Makefile" 15804 15805cat >confcache <<\_ACEOF 15806# This file is a shell script that caches the results of configure 15807# tests run on this system so they can be shared between configure 15808# scripts and configure runs, see configure's option --config-cache. 15809# It is not useful on other systems. If it contains results you don't 15810# want to keep, you may remove or edit it. 15811# 15812# config.status only pays attention to the cache file if you give it 15813# the --recheck option to rerun configure. 15814# 15815# `ac_cv_env_foo' variables (set or unset) will be overridden when 15816# loading this file, other *unset* `ac_cv_foo' will be assigned the 15817# following values. 15818 15819_ACEOF 15820 15821# The following way of writing the cache mishandles newlines in values, 15822# but we know of no workaround that is simple, portable, and efficient. 15823# So, we kill variables containing newlines. 15824# Ultrix sh set writes to stderr and can't be redirected directly, 15825# and sets the high bit in the cache file unless we assign to the vars. 15826( 15827 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 15828 eval ac_val=\$$ac_var 15829 case $ac_val in #( 15830 *${as_nl}*) 15831 case $ac_var in #( 15832 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 15833echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 15834 esac 15835 case $ac_var in #( 15836 _ | IFS | as_nl) ;; #( 15837 *) $as_unset $ac_var ;; 15838 esac ;; 15839 esac 15840 done 15841 15842 (set) 2>&1 | 15843 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15844 *${as_nl}ac_space=\ *) 15845 # `set' does not quote correctly, so add quotes (double-quote 15846 # substitution turns \\\\ into \\, and sed turns \\ into \). 15847 sed -n \ 15848 "s/'/'\\\\''/g; 15849 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15850 ;; #( 15851 *) 15852 # `set' quotes correctly as required by POSIX, so do not add quotes. 15853 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15854 ;; 15855 esac | 15856 sort 15857) | 15858 sed ' 15859 /^ac_cv_env_/b end 15860 t clear 15861 :clear 15862 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 15863 t end 15864 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15865 :end' >>confcache 15866if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15867 if test -w "$cache_file"; then 15868 test "x$cache_file" != "x/dev/null" && 15869 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 15870echo "$as_me: updating cache $cache_file" >&6;} 15871 cat confcache >$cache_file 15872 else 15873 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 15874echo "$as_me: not updating unwritable cache $cache_file" >&6;} 15875 fi 15876fi 15877rm -f confcache 15878 15879test "x$prefix" = xNONE && prefix=$ac_default_prefix 15880# Let make expand exec_prefix. 15881test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15882 15883DEFS=-DHAVE_CONFIG_H 15884 15885ac_libobjs= 15886ac_ltlibobjs= 15887for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 15888 # 1. Remove the extension, and $U if already installed. 15889 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 15890 ac_i=`echo "$ac_i" | sed "$ac_script"` 15891 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 15892 # will be set to the directory where LIBOBJS objects are built. 15893 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 15894 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 15895done 15896LIBOBJS=$ac_libobjs 15897 15898LTLIBOBJS=$ac_ltlibobjs 15899 15900 15901if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 15902 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 15903Usually this means the macro was only invoked conditionally." >&5 15904echo "$as_me: error: conditional \"AMDEP\" was never defined. 15905Usually this means the macro was only invoked conditionally." >&2;} 15906 { (exit 1); exit 1; }; } 15907fi 15908if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 15909 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 15910Usually this means the macro was only invoked conditionally." >&5 15911echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 15912Usually this means the macro was only invoked conditionally." >&2;} 15913 { (exit 1); exit 1; }; } 15914fi 15915if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 15916 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 15917Usually this means the macro was only invoked conditionally." >&5 15918echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 15919Usually this means the macro was only invoked conditionally." >&2;} 15920 { (exit 1); exit 1; }; } 15921fi 15922if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 15923 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 15924Usually this means the macro was only invoked conditionally." >&5 15925echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 15926Usually this means the macro was only invoked conditionally." >&2;} 15927 { (exit 1); exit 1; }; } 15928fi 15929if test -z "${CONDITIONAL_BUILD_MULTITHREADED_TRUE}" && test -z "${CONDITIONAL_BUILD_MULTITHREADED_FALSE}"; then 15930 { { echo "$as_me:$LINENO: error: conditional \"CONDITIONAL_BUILD_MULTITHREADED\" was never defined. 15931Usually this means the macro was only invoked conditionally." >&5 15932echo "$as_me: error: conditional \"CONDITIONAL_BUILD_MULTITHREADED\" was never defined. 15933Usually this means the macro was only invoked conditionally." >&2;} 15934 { (exit 1); exit 1; }; } 15935fi 15936if test -z "${CONDITIONAL_BUILD_DEMOS_TRUE}" && test -z "${CONDITIONAL_BUILD_DEMOS_FALSE}"; then 15937 { { echo "$as_me:$LINENO: error: conditional \"CONDITIONAL_BUILD_DEMOS\" was never defined. 15938Usually this means the macro was only invoked conditionally." >&5 15939echo "$as_me: error: conditional \"CONDITIONAL_BUILD_DEMOS\" was never defined. 15940Usually this means the macro was only invoked conditionally." >&2;} 15941 { (exit 1); exit 1; }; } 15942fi 15943if test -z "${CONDITIONAL_BUILD_DEMOS_TRUE}" && test -z "${CONDITIONAL_BUILD_DEMOS_FALSE}"; then 15944 { { echo "$as_me:$LINENO: error: conditional \"CONDITIONAL_BUILD_DEMOS\" was never defined. 15945Usually this means the macro was only invoked conditionally." >&5 15946echo "$as_me: error: conditional \"CONDITIONAL_BUILD_DEMOS\" was never defined. 15947Usually this means the macro was only invoked conditionally." >&2;} 15948 { (exit 1); exit 1; }; } 15949fi 15950 15951: ${CONFIG_STATUS=./config.status} 15952ac_clean_files_save=$ac_clean_files 15953ac_clean_files="$ac_clean_files $CONFIG_STATUS" 15954{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 15955echo "$as_me: creating $CONFIG_STATUS" >&6;} 15956cat >$CONFIG_STATUS <<_ACEOF 15957#! $SHELL 15958# Generated by $as_me. 15959# Run this file to recreate the current configuration. 15960# Compiler output produced by configure, useful for debugging 15961# configure, is in config.log if it exists. 15962 15963debug=false 15964ac_cs_recheck=false 15965ac_cs_silent=false 15966SHELL=\${CONFIG_SHELL-$SHELL} 15967_ACEOF 15968 15969cat >>$CONFIG_STATUS <<\_ACEOF 15970## --------------------- ## 15971## M4sh Initialization. ## 15972## --------------------- ## 15973 15974# Be more Bourne compatible 15975DUALCASE=1; export DUALCASE # for MKS sh 15976if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 15977 emulate sh 15978 NULLCMD=: 15979 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 15980 # is contrary to our usage. Disable this feature. 15981 alias -g '${1+"$@"}'='"$@"' 15982 setopt NO_GLOB_SUBST 15983else 15984 case `(set -o) 2>/dev/null` in 15985 *posix*) set -o posix ;; 15986esac 15987 15988fi 15989 15990 15991 15992 15993# PATH needs CR 15994# Avoid depending upon Character Ranges. 15995as_cr_letters='abcdefghijklmnopqrstuvwxyz' 15996as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 15997as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15998as_cr_digits='0123456789' 15999as_cr_alnum=$as_cr_Letters$as_cr_digits 16000 16001# The user is always right. 16002if test "${PATH_SEPARATOR+set}" != set; then 16003 echo "#! /bin/sh" >conf$$.sh 16004 echo "exit 0" >>conf$$.sh 16005 chmod +x conf$$.sh 16006 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 16007 PATH_SEPARATOR=';' 16008 else 16009 PATH_SEPARATOR=: 16010 fi 16011 rm -f conf$$.sh 16012fi 16013 16014# Support unset when possible. 16015if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 16016 as_unset=unset 16017else 16018 as_unset=false 16019fi 16020 16021 16022# IFS 16023# We need space, tab and new line, in precisely that order. Quoting is 16024# there to prevent editors from complaining about space-tab. 16025# (If _AS_PATH_WALK were called with IFS unset, it would disable word 16026# splitting by setting IFS to empty value.) 16027as_nl=' 16028' 16029IFS=" "" $as_nl" 16030 16031# Find who we are. Look in the path if we contain no directory separator. 16032case $0 in 16033 *[\\/]* ) as_myself=$0 ;; 16034 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16035for as_dir in $PATH 16036do 16037 IFS=$as_save_IFS 16038 test -z "$as_dir" && as_dir=. 16039 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 16040done 16041IFS=$as_save_IFS 16042 16043 ;; 16044esac 16045# We did not find ourselves, most probably we were run as `sh COMMAND' 16046# in which case we are not to be found in the path. 16047if test "x$as_myself" = x; then 16048 as_myself=$0 16049fi 16050if test ! -f "$as_myself"; then 16051 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 16052 { (exit 1); exit 1; } 16053fi 16054 16055# Work around bugs in pre-3.0 UWIN ksh. 16056for as_var in ENV MAIL MAILPATH 16057do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 16058done 16059PS1='$ ' 16060PS2='> ' 16061PS4='+ ' 16062 16063# NLS nuisances. 16064for as_var in \ 16065 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 16066 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 16067 LC_TELEPHONE LC_TIME 16068do 16069 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 16070 eval $as_var=C; export $as_var 16071 else 16072 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 16073 fi 16074done 16075 16076# Required to use basename. 16077if expr a : '\(a\)' >/dev/null 2>&1 && 16078 test "X`expr 00001 : '.*\(...\)'`" = X001; then 16079 as_expr=expr 16080else 16081 as_expr=false 16082fi 16083 16084if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 16085 as_basename=basename 16086else 16087 as_basename=false 16088fi 16089 16090 16091# Name of the executable. 16092as_me=`$as_basename -- "$0" || 16093$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 16094 X"$0" : 'X\(//\)$' \| \ 16095 X"$0" : 'X\(/\)' \| . 2>/dev/null || 16096echo X/"$0" | 16097 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16098 s//\1/ 16099 q 16100 } 16101 /^X\/\(\/\/\)$/{ 16102 s//\1/ 16103 q 16104 } 16105 /^X\/\(\/\).*/{ 16106 s//\1/ 16107 q 16108 } 16109 s/.*/./; q'` 16110 16111# CDPATH. 16112$as_unset CDPATH 16113 16114 16115 16116 as_lineno_1=$LINENO 16117 as_lineno_2=$LINENO 16118 test "x$as_lineno_1" != "x$as_lineno_2" && 16119 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 16120 16121 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 16122 # uniformly replaced by the line number. The first 'sed' inserts a 16123 # line-number line after each line using $LINENO; the second 'sed' 16124 # does the real work. The second script uses 'N' to pair each 16125 # line-number line with the line containing $LINENO, and appends 16126 # trailing '-' during substitution so that $LINENO is not a special 16127 # case at line end. 16128 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 16129 # scripts with optimization help from Paolo Bonzini. Blame Lee 16130 # E. McMahon (1931-1989) for sed's syntax. :-) 16131 sed -n ' 16132 p 16133 /[$]LINENO/= 16134 ' <$as_myself | 16135 sed ' 16136 s/[$]LINENO.*/&-/ 16137 t lineno 16138 b 16139 :lineno 16140 N 16141 :loop 16142 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 16143 t loop 16144 s/-\n.*// 16145 ' >$as_me.lineno && 16146 chmod +x "$as_me.lineno" || 16147 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 16148 { (exit 1); exit 1; }; } 16149 16150 # Don't try to exec as it changes $[0], causing all sort of problems 16151 # (the dirname of $[0] is not the place where we might find the 16152 # original and so on. Autoconf is especially sensitive to this). 16153 . "./$as_me.lineno" 16154 # Exit status is that of the last command. 16155 exit 16156} 16157 16158 16159if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 16160 as_dirname=dirname 16161else 16162 as_dirname=false 16163fi 16164 16165ECHO_C= ECHO_N= ECHO_T= 16166case `echo -n x` in 16167-n*) 16168 case `echo 'x\c'` in 16169 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 16170 *) ECHO_C='\c';; 16171 esac;; 16172*) 16173 ECHO_N='-n';; 16174esac 16175 16176if expr a : '\(a\)' >/dev/null 2>&1 && 16177 test "X`expr 00001 : '.*\(...\)'`" = X001; then 16178 as_expr=expr 16179else 16180 as_expr=false 16181fi 16182 16183rm -f conf$$ conf$$.exe conf$$.file 16184if test -d conf$$.dir; then 16185 rm -f conf$$.dir/conf$$.file 16186else 16187 rm -f conf$$.dir 16188 mkdir conf$$.dir 16189fi 16190echo >conf$$.file 16191if ln -s conf$$.file conf$$ 2>/dev/null; then 16192 as_ln_s='ln -s' 16193 # ... but there are two gotchas: 16194 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 16195 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 16196 # In both cases, we have to default to `cp -p'. 16197 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 16198 as_ln_s='cp -p' 16199elif ln conf$$.file conf$$ 2>/dev/null; then 16200 as_ln_s=ln 16201else 16202 as_ln_s='cp -p' 16203fi 16204rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 16205rmdir conf$$.dir 2>/dev/null 16206 16207if mkdir -p . 2>/dev/null; then 16208 as_mkdir_p='mkdir -p' 16209elif mkdirs . 2>/dev/null; then 16210 as_mkdir_p='mkdirs' 16211else 16212 as_mkdir_p='' 16213fi 16214test -d ./-p && rmdir ./-p 16215 16216if test -x / >/dev/null 2>&1; then 16217 as_test_x='test -x' 16218else 16219 if ls -dL / >/dev/null 2>&1; then 16220 as_ls_L_option=L 16221 else 16222 as_ls_L_option= 16223 fi 16224 as_test_x=' 16225 eval sh -c '\'' 16226 if test -d "$1"; then 16227 test -d "$1/."; 16228 else 16229 case $1 in 16230 -*)set "./$1";; 16231 esac; 16232 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 16233 ???[sx]*):;;*)false;;esac;fi 16234 '\'' sh 16235 ' 16236fi 16237as_executable_p=$as_test_x 16238 16239# Sed expression to map a string onto a valid CPP name. 16240as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 16241 16242# Sed expression to map a string onto a valid variable name. 16243as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 16244 16245 16246exec 6>&1 16247 16248# Save the log message, to keep $[0] and so on meaningful, and to 16249# report actual input values of CONFIG_FILES etc. instead of their 16250# values after options handling. 16251ac_log=" 16252This file was extended by bullet $as_me 2.78, which was 16253generated by GNU Autoconf 2.61. Invocation command line was 16254 16255 CONFIG_FILES = $CONFIG_FILES 16256 CONFIG_HEADERS = $CONFIG_HEADERS 16257 CONFIG_LINKS = $CONFIG_LINKS 16258 CONFIG_COMMANDS = $CONFIG_COMMANDS 16259 $ $0 $@ 16260 16261on `(hostname || uname -n) 2>/dev/null | sed 1q` 16262" 16263 16264_ACEOF 16265 16266cat >>$CONFIG_STATUS <<_ACEOF 16267# Files that config.status was made for. 16268config_files="$ac_config_files" 16269config_headers="$ac_config_headers" 16270config_commands="$ac_config_commands" 16271 16272_ACEOF 16273 16274cat >>$CONFIG_STATUS <<\_ACEOF 16275ac_cs_usage="\ 16276\`$as_me' instantiates files from templates according to the 16277current configuration. 16278 16279Usage: $0 [OPTIONS] [FILE]... 16280 16281 -h, --help print this help, then exit 16282 -V, --version print version number and configuration settings, then exit 16283 -q, --quiet do not print progress messages 16284 -d, --debug don't remove temporary files 16285 --recheck update $as_me by reconfiguring in the same conditions 16286 --file=FILE[:TEMPLATE] 16287 instantiate the configuration file FILE 16288 --header=FILE[:TEMPLATE] 16289 instantiate the configuration header FILE 16290 16291Configuration files: 16292$config_files 16293 16294Configuration headers: 16295$config_headers 16296 16297Configuration commands: 16298$config_commands 16299 16300Report bugs to <bug-autoconf@gnu.org>." 16301 16302_ACEOF 16303cat >>$CONFIG_STATUS <<_ACEOF 16304ac_cs_version="\\ 16305bullet config.status 2.78 16306configured by $0, generated by GNU Autoconf 2.61, 16307 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 16308 16309Copyright (C) 2006 Free Software Foundation, Inc. 16310This config.status script is free software; the Free Software Foundation 16311gives unlimited permission to copy, distribute and modify it." 16312 16313ac_pwd='$ac_pwd' 16314srcdir='$srcdir' 16315INSTALL='$INSTALL' 16316MKDIR_P='$MKDIR_P' 16317_ACEOF 16318 16319cat >>$CONFIG_STATUS <<\_ACEOF 16320# If no file are specified by the user, then we need to provide default 16321# value. By we need to know if files were specified by the user. 16322ac_need_defaults=: 16323while test $# != 0 16324do 16325 case $1 in 16326 --*=*) 16327 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16328 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 16329 ac_shift=: 16330 ;; 16331 *) 16332 ac_option=$1 16333 ac_optarg=$2 16334 ac_shift=shift 16335 ;; 16336 esac 16337 16338 case $ac_option in 16339 # Handling of the options. 16340 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 16341 ac_cs_recheck=: ;; 16342 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 16343 echo "$ac_cs_version"; exit ;; 16344 --debug | --debu | --deb | --de | --d | -d ) 16345 debug=: ;; 16346 --file | --fil | --fi | --f ) 16347 $ac_shift 16348 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 16349 ac_need_defaults=false;; 16350 --header | --heade | --head | --hea ) 16351 $ac_shift 16352 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 16353 ac_need_defaults=false;; 16354 --he | --h) 16355 # Conflict between --help and --header 16356 { echo "$as_me: error: ambiguous option: $1 16357Try \`$0 --help' for more information." >&2 16358 { (exit 1); exit 1; }; };; 16359 --help | --hel | -h ) 16360 echo "$ac_cs_usage"; exit ;; 16361 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 16362 | -silent | --silent | --silen | --sile | --sil | --si | --s) 16363 ac_cs_silent=: ;; 16364 16365 # This is an error. 16366 -*) { echo "$as_me: error: unrecognized option: $1 16367Try \`$0 --help' for more information." >&2 16368 { (exit 1); exit 1; }; } ;; 16369 16370 *) ac_config_targets="$ac_config_targets $1" 16371 ac_need_defaults=false ;; 16372 16373 esac 16374 shift 16375done 16376 16377ac_configure_extra_args= 16378 16379if $ac_cs_silent; then 16380 exec 6>/dev/null 16381 ac_configure_extra_args="$ac_configure_extra_args --silent" 16382fi 16383 16384_ACEOF 16385cat >>$CONFIG_STATUS <<_ACEOF 16386if \$ac_cs_recheck; then 16387 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 16388 CONFIG_SHELL=$SHELL 16389 export CONFIG_SHELL 16390 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 16391fi 16392 16393_ACEOF 16394cat >>$CONFIG_STATUS <<\_ACEOF 16395exec 5>>config.log 16396{ 16397 echo 16398 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 16399## Running $as_me. ## 16400_ASBOX 16401 echo "$ac_log" 16402} >&5 16403 16404_ACEOF 16405cat >>$CONFIG_STATUS <<_ACEOF 16406# 16407# INIT-COMMANDS 16408# 16409AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 16410 16411 16412# The HP-UX ksh and POSIX shell print the target directory to stdout 16413# if CDPATH is set. 16414(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16415 16416sed_quote_subst='$sed_quote_subst' 16417double_quote_subst='$double_quote_subst' 16418delay_variable_subst='$delay_variable_subst' 16419macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 16420macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 16421enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 16422enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 16423pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 16424enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 16425host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 16426host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 16427host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 16428build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 16429build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 16430build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 16431SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 16432Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 16433GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 16434EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 16435FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 16436LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 16437NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 16438LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 16439max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 16440ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 16441exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 16442lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 16443lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 16444lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 16445reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 16446reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16447deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 16448file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 16449AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 16450AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 16451STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 16452RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 16453old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16454old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16455old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16456CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 16457CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 16458compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 16459GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 16460lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 16461lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 16462lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' 16463lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 16464objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 16465SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 16466ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 16467MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 16468lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 16469lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 16470lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 16471lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 16472lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 16473need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 16474DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 16475NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 16476LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 16477OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 16478OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 16479libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 16480shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16481extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16482archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 16483enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 16484export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 16485whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 16486compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 16487old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16488old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16489archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16490archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16491module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16492module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16493with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 16494allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 16495no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 16496hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 16497hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 16498hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 16499hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 16500hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 16501hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 16502hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 16503hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 16504inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 16505link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 16506fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 16507always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 16508export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16509exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 16510include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 16511prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16512file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 16513variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 16514need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 16515need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 16516version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 16517runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 16518shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 16519shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 16520libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 16521library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 16522soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 16523postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16524postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16525finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16526finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 16527hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 16528sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 16529sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 16530hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 16531enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 16532enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 16533enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 16534old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 16535striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 16536compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`' 16537predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' 16538postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' 16539predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' 16540postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' 16541compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' 16542LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16543old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16544compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16545GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16546lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16547lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16548lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16549lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16550lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16551archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16552enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16553export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16554whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16555compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16556old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16557old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16558archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16559archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16560module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16561module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16562with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16563allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16564no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16565hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16566hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16567hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16568hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16569hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16570hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16571hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16572hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16573inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16574link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16575fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16576always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16577export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16578exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16579include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16580prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16581file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16582hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16583compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16584predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16585postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16586predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16587postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16588compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16589 16590LTCC='$LTCC' 16591LTCFLAGS='$LTCFLAGS' 16592compiler='$compiler_DEFAULT' 16593 16594# Quote evaled strings. 16595for var in SED \ 16596GREP \ 16597EGREP \ 16598FGREP \ 16599LD \ 16600NM \ 16601LN_S \ 16602lt_SP2NL \ 16603lt_NL2SP \ 16604reload_flag \ 16605deplibs_check_method \ 16606file_magic_cmd \ 16607AR \ 16608AR_FLAGS \ 16609STRIP \ 16610RANLIB \ 16611CC \ 16612CFLAGS \ 16613compiler \ 16614lt_cv_sys_global_symbol_pipe \ 16615lt_cv_sys_global_symbol_to_cdecl \ 16616lt_cv_sys_global_symbol_to_c_name_address \ 16617lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 16618SHELL \ 16619ECHO \ 16620lt_prog_compiler_no_builtin_flag \ 16621lt_prog_compiler_wl \ 16622lt_prog_compiler_pic \ 16623lt_prog_compiler_static \ 16624lt_cv_prog_compiler_c_o \ 16625need_locks \ 16626DSYMUTIL \ 16627NMEDIT \ 16628LIPO \ 16629OTOOL \ 16630OTOOL64 \ 16631shrext_cmds \ 16632export_dynamic_flag_spec \ 16633whole_archive_flag_spec \ 16634compiler_needs_object \ 16635with_gnu_ld \ 16636allow_undefined_flag \ 16637no_undefined_flag \ 16638hardcode_libdir_flag_spec \ 16639hardcode_libdir_flag_spec_ld \ 16640hardcode_libdir_separator \ 16641fix_srcfile_path \ 16642exclude_expsyms \ 16643include_expsyms \ 16644file_list_spec \ 16645variables_saved_for_relink \ 16646libname_spec \ 16647library_names_spec \ 16648soname_spec \ 16649finish_eval \ 16650old_striplib \ 16651striplib \ 16652compiler_lib_search_dirs \ 16653predep_objects \ 16654postdep_objects \ 16655predeps \ 16656postdeps \ 16657compiler_lib_search_path \ 16658LD_CXX \ 16659compiler_CXX \ 16660lt_prog_compiler_no_builtin_flag_CXX \ 16661lt_prog_compiler_wl_CXX \ 16662lt_prog_compiler_pic_CXX \ 16663lt_prog_compiler_static_CXX \ 16664lt_cv_prog_compiler_c_o_CXX \ 16665export_dynamic_flag_spec_CXX \ 16666whole_archive_flag_spec_CXX \ 16667compiler_needs_object_CXX \ 16668with_gnu_ld_CXX \ 16669allow_undefined_flag_CXX \ 16670no_undefined_flag_CXX \ 16671hardcode_libdir_flag_spec_CXX \ 16672hardcode_libdir_flag_spec_ld_CXX \ 16673hardcode_libdir_separator_CXX \ 16674fix_srcfile_path_CXX \ 16675exclude_expsyms_CXX \ 16676include_expsyms_CXX \ 16677file_list_spec_CXX \ 16678compiler_lib_search_dirs_CXX \ 16679predep_objects_CXX \ 16680postdep_objects_CXX \ 16681predeps_CXX \ 16682postdeps_CXX \ 16683compiler_lib_search_path_CXX; do 16684 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 16685 *[\\\\\\\`\\"\\\$]*) 16686 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 16687 ;; 16688 *) 16689 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16690 ;; 16691 esac 16692done 16693 16694# Double-quote double-evaled strings. 16695for var in reload_cmds \ 16696old_postinstall_cmds \ 16697old_postuninstall_cmds \ 16698old_archive_cmds \ 16699extract_expsyms_cmds \ 16700old_archive_from_new_cmds \ 16701old_archive_from_expsyms_cmds \ 16702archive_cmds \ 16703archive_expsym_cmds \ 16704module_cmds \ 16705module_expsym_cmds \ 16706export_symbols_cmds \ 16707prelink_cmds \ 16708postinstall_cmds \ 16709postuninstall_cmds \ 16710finish_cmds \ 16711sys_lib_search_path_spec \ 16712sys_lib_dlsearch_path_spec \ 16713old_archive_cmds_CXX \ 16714old_archive_from_new_cmds_CXX \ 16715old_archive_from_expsyms_cmds_CXX \ 16716archive_cmds_CXX \ 16717archive_expsym_cmds_CXX \ 16718module_cmds_CXX \ 16719module_expsym_cmds_CXX \ 16720export_symbols_cmds_CXX \ 16721prelink_cmds_CXX; do 16722 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 16723 *[\\\\\\\`\\"\\\$]*) 16724 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 16725 ;; 16726 *) 16727 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16728 ;; 16729 esac 16730done 16731 16732# Fix-up fallback echo if it was mangled by the above quoting rules. 16733case \$lt_ECHO in 16734*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 16735 ;; 16736esac 16737 16738ac_aux_dir='$ac_aux_dir' 16739xsi_shell='$xsi_shell' 16740lt_shell_append='$lt_shell_append' 16741 16742# See if we are running on zsh, and set the options which allow our 16743# commands through without removal of \ escapes INIT. 16744if test -n "\${ZSH_VERSION+set}" ; then 16745 setopt NO_GLOB_SUBST 16746fi 16747 16748 16749 PACKAGE='$PACKAGE' 16750 VERSION='$VERSION' 16751 TIMESTAMP='$TIMESTAMP' 16752 RM='$RM' 16753 ofile='$ofile' 16754 16755 16756 16757 16758 16759 16760_ACEOF 16761 16762cat >>$CONFIG_STATUS <<\_ACEOF 16763 16764# Handling of arguments. 16765for ac_config_target in $ac_config_targets 16766do 16767 case $ac_config_target in 16768 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 16769 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 16770 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 16771 "bullet.pc") CONFIG_FILES="$CONFIG_FILES bullet.pc" ;; 16772 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 16773 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 16774 "Extras/Makefile") CONFIG_FILES="$CONFIG_FILES Extras/Makefile" ;; 16775 16776 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 16777echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 16778 { (exit 1); exit 1; }; };; 16779 esac 16780done 16781 16782 16783# If the user did not use the arguments to specify the items to instantiate, 16784# then the envvar interface is used. Set only those that are not. 16785# We use the long form for the default assignment because of an extremely 16786# bizarre bug on SunOS 4.1.3. 16787if $ac_need_defaults; then 16788 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 16789 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 16790 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 16791fi 16792 16793# Have a temporary directory for convenience. Make it in the build tree 16794# simply because there is no reason against having it here, and in addition, 16795# creating and moving files from /tmp can sometimes cause problems. 16796# Hook for its removal unless debugging. 16797# Note that there is a small window in which the directory will not be cleaned: 16798# after its creation but before its name has been assigned to `$tmp'. 16799$debug || 16800{ 16801 tmp= 16802 trap 'exit_status=$? 16803 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 16804' 0 16805 trap '{ (exit 1); exit 1; }' 1 2 13 15 16806} 16807# Create a (secure) tmp directory for tmp files. 16808 16809{ 16810 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 16811 test -n "$tmp" && test -d "$tmp" 16812} || 16813{ 16814 tmp=./conf$$-$RANDOM 16815 (umask 077 && mkdir "$tmp") 16816} || 16817{ 16818 echo "$me: cannot create a temporary directory in ." >&2 16819 { (exit 1); exit 1; } 16820} 16821 16822# 16823# Set up the sed scripts for CONFIG_FILES section. 16824# 16825 16826# No need to generate the scripts if there are no CONFIG_FILES. 16827# This happens for instance when ./config.status config.h 16828if test -n "$CONFIG_FILES"; then 16829 16830_ACEOF 16831 16832 16833 16834ac_delim='%!_!# ' 16835for ac_last_try in false false false false false :; do 16836 cat >conf$$subs.sed <<_ACEOF 16837SHELL!$SHELL$ac_delim 16838PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 16839PACKAGE_NAME!$PACKAGE_NAME$ac_delim 16840PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 16841PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 16842PACKAGE_STRING!$PACKAGE_STRING$ac_delim 16843PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 16844exec_prefix!$exec_prefix$ac_delim 16845prefix!$prefix$ac_delim 16846program_transform_name!$program_transform_name$ac_delim 16847bindir!$bindir$ac_delim 16848sbindir!$sbindir$ac_delim 16849libexecdir!$libexecdir$ac_delim 16850datarootdir!$datarootdir$ac_delim 16851datadir!$datadir$ac_delim 16852sysconfdir!$sysconfdir$ac_delim 16853sharedstatedir!$sharedstatedir$ac_delim 16854localstatedir!$localstatedir$ac_delim 16855includedir!$includedir$ac_delim 16856oldincludedir!$oldincludedir$ac_delim 16857docdir!$docdir$ac_delim 16858infodir!$infodir$ac_delim 16859htmldir!$htmldir$ac_delim 16860dvidir!$dvidir$ac_delim 16861pdfdir!$pdfdir$ac_delim 16862psdir!$psdir$ac_delim 16863libdir!$libdir$ac_delim 16864localedir!$localedir$ac_delim 16865mandir!$mandir$ac_delim 16866DEFS!$DEFS$ac_delim 16867ECHO_C!$ECHO_C$ac_delim 16868ECHO_N!$ECHO_N$ac_delim 16869ECHO_T!$ECHO_T$ac_delim 16870LIBS!$LIBS$ac_delim 16871build_alias!$build_alias$ac_delim 16872host_alias!$host_alias$ac_delim 16873target_alias!$target_alias$ac_delim 16874build!$build$ac_delim 16875build_cpu!$build_cpu$ac_delim 16876build_vendor!$build_vendor$ac_delim 16877build_os!$build_os$ac_delim 16878host!$host$ac_delim 16879host_cpu!$host_cpu$ac_delim 16880host_vendor!$host_vendor$ac_delim 16881host_os!$host_os$ac_delim 16882INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 16883INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 16884INSTALL_DATA!$INSTALL_DATA$ac_delim 16885am__isrc!$am__isrc$ac_delim 16886CYGPATH_W!$CYGPATH_W$ac_delim 16887PACKAGE!$PACKAGE$ac_delim 16888VERSION!$VERSION$ac_delim 16889ACLOCAL!$ACLOCAL$ac_delim 16890AUTOCONF!$AUTOCONF$ac_delim 16891AUTOMAKE!$AUTOMAKE$ac_delim 16892AUTOHEADER!$AUTOHEADER$ac_delim 16893MAKEINFO!$MAKEINFO$ac_delim 16894install_sh!$install_sh$ac_delim 16895STRIP!$STRIP$ac_delim 16896INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 16897mkdir_p!$mkdir_p$ac_delim 16898AWK!$AWK$ac_delim 16899SET_MAKE!$SET_MAKE$ac_delim 16900am__leading_dot!$am__leading_dot$ac_delim 16901AMTAR!$AMTAR$ac_delim 16902am__tar!$am__tar$ac_delim 16903am__untar!$am__untar$ac_delim 16904CC!$CC$ac_delim 16905CFLAGS!$CFLAGS$ac_delim 16906LDFLAGS!$LDFLAGS$ac_delim 16907CPPFLAGS!$CPPFLAGS$ac_delim 16908ac_ct_CC!$ac_ct_CC$ac_delim 16909EXEEXT!$EXEEXT$ac_delim 16910OBJEXT!$OBJEXT$ac_delim 16911DEPDIR!$DEPDIR$ac_delim 16912am__include!$am__include$ac_delim 16913am__quote!$am__quote$ac_delim 16914AMDEP_TRUE!$AMDEP_TRUE$ac_delim 16915AMDEP_FALSE!$AMDEP_FALSE$ac_delim 16916AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 16917CCDEPMODE!$CCDEPMODE$ac_delim 16918am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 16919am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 16920CXX!$CXX$ac_delim 16921CXXFLAGS!$CXXFLAGS$ac_delim 16922ac_ct_CXX!$ac_ct_CXX$ac_delim 16923CXXDEPMODE!$CXXDEPMODE$ac_delim 16924am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 16925am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 16926LIBTOOL!$LIBTOOL$ac_delim 16927SED!$SED$ac_delim 16928GREP!$GREP$ac_delim 16929EGREP!$EGREP$ac_delim 16930FGREP!$FGREP$ac_delim 16931LD!$LD$ac_delim 16932DUMPBIN!$DUMPBIN$ac_delim 16933ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim 16934_ACEOF 16935 16936 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 16937 break 16938 elif $ac_last_try; then 16939 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 16940echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 16941 { (exit 1); exit 1; }; } 16942 else 16943 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16944 fi 16945done 16946 16947ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 16948if test -n "$ac_eof"; then 16949 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 16950 ac_eof=`expr $ac_eof + 1` 16951fi 16952 16953cat >>$CONFIG_STATUS <<_ACEOF 16954cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 16955/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 16956_ACEOF 16957sed ' 16958s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 16959s/^/s,@/; s/!/@,|#_!!_#|/ 16960:n 16961t n 16962s/'"$ac_delim"'$/,g/; t 16963s/$/\\/; p 16964N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 16965' >>$CONFIG_STATUS <conf$$subs.sed 16966rm -f conf$$subs.sed 16967cat >>$CONFIG_STATUS <<_ACEOF 16968CEOF$ac_eof 16969_ACEOF 16970 16971 16972ac_delim='%!_!# ' 16973for ac_last_try in false false false false false :; do 16974 cat >conf$$subs.sed <<_ACEOF 16975NM!$NM$ac_delim 16976LN_S!$LN_S$ac_delim 16977AR!$AR$ac_delim 16978RANLIB!$RANLIB$ac_delim 16979lt_ECHO!$lt_ECHO$ac_delim 16980DSYMUTIL!$DSYMUTIL$ac_delim 16981NMEDIT!$NMEDIT$ac_delim 16982LIPO!$LIPO$ac_delim 16983OTOOL!$OTOOL$ac_delim 16984OTOOL64!$OTOOL64$ac_delim 16985CPP!$CPP$ac_delim 16986CXXCPP!$CXXCPP$ac_delim 16987opengl_LIBS!$opengl_LIBS$ac_delim 16988CONDITIONAL_BUILD_MULTITHREADED_TRUE!$CONDITIONAL_BUILD_MULTITHREADED_TRUE$ac_delim 16989CONDITIONAL_BUILD_MULTITHREADED_FALSE!$CONDITIONAL_BUILD_MULTITHREADED_FALSE$ac_delim 16990CONDITIONAL_BUILD_DEMOS_TRUE!$CONDITIONAL_BUILD_DEMOS_TRUE$ac_delim 16991CONDITIONAL_BUILD_DEMOS_FALSE!$CONDITIONAL_BUILD_DEMOS_FALSE$ac_delim 16992GL_LIBS!$GL_LIBS$ac_delim 16993LIBOBJS!$LIBOBJS$ac_delim 16994LTLIBOBJS!$LTLIBOBJS$ac_delim 16995_ACEOF 16996 16997 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 20; then 16998 break 16999 elif $ac_last_try; then 17000 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 17001echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 17002 { (exit 1); exit 1; }; } 17003 else 17004 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17005 fi 17006done 17007 17008ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 17009if test -n "$ac_eof"; then 17010 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 17011 ac_eof=`expr $ac_eof + 1` 17012fi 17013 17014cat >>$CONFIG_STATUS <<_ACEOF 17015cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 17016/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 17017_ACEOF 17018sed ' 17019s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 17020s/^/s,@/; s/!/@,|#_!!_#|/ 17021:n 17022t n 17023s/'"$ac_delim"'$/,g/; t 17024s/$/\\/; p 17025N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 17026' >>$CONFIG_STATUS <conf$$subs.sed 17027rm -f conf$$subs.sed 17028cat >>$CONFIG_STATUS <<_ACEOF 17029:end 17030s/|#_!!_#|//g 17031CEOF$ac_eof 17032_ACEOF 17033 17034 17035# VPATH may cause trouble with some makes, so we remove $(srcdir), 17036# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 17037# trailing colons and then remove the whole line if VPATH becomes empty 17038# (actually we leave an empty line to preserve line numbers). 17039if test "x$srcdir" = x.; then 17040 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 17041s/:*\$(srcdir):*/:/ 17042s/:*\${srcdir}:*/:/ 17043s/:*@srcdir@:*/:/ 17044s/^\([^=]*=[ ]*\):*/\1/ 17045s/:*$// 17046s/^[^=]*=[ ]*$// 17047}' 17048fi 17049 17050cat >>$CONFIG_STATUS <<\_ACEOF 17051fi # test -n "$CONFIG_FILES" 17052 17053 17054for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 17055do 17056 case $ac_tag in 17057 :[FHLC]) ac_mode=$ac_tag; continue;; 17058 esac 17059 case $ac_mode$ac_tag in 17060 :[FHL]*:*);; 17061 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 17062echo "$as_me: error: Invalid tag $ac_tag." >&2;} 17063 { (exit 1); exit 1; }; };; 17064 :[FH]-) ac_tag=-:-;; 17065 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 17066 esac 17067 ac_save_IFS=$IFS 17068 IFS=: 17069 set x $ac_tag 17070 IFS=$ac_save_IFS 17071 shift 17072 ac_file=$1 17073 shift 17074 17075 case $ac_mode in 17076 :L) ac_source=$1;; 17077 :[FH]) 17078 ac_file_inputs= 17079 for ac_f 17080 do 17081 case $ac_f in 17082 -) ac_f="$tmp/stdin";; 17083 *) # Look for the file first in the build tree, then in the source tree 17084 # (if the path is not absolute). The absolute path cannot be DOS-style, 17085 # because $ac_f cannot contain `:'. 17086 test -f "$ac_f" || 17087 case $ac_f in 17088 [\\/$]*) false;; 17089 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 17090 esac || 17091 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 17092echo "$as_me: error: cannot find input file: $ac_f" >&2;} 17093 { (exit 1); exit 1; }; };; 17094 esac 17095 ac_file_inputs="$ac_file_inputs $ac_f" 17096 done 17097 17098 # Let's still pretend it is `configure' which instantiates (i.e., don't 17099 # use $as_me), people would be surprised to read: 17100 # /* config.h. Generated by config.status. */ 17101 configure_input="Generated from "`IFS=: 17102 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 17103 if test x"$ac_file" != x-; then 17104 configure_input="$ac_file. $configure_input" 17105 { echo "$as_me:$LINENO: creating $ac_file" >&5 17106echo "$as_me: creating $ac_file" >&6;} 17107 fi 17108 17109 case $ac_tag in 17110 *:-:* | *:-) cat >"$tmp/stdin";; 17111 esac 17112 ;; 17113 esac 17114 17115 ac_dir=`$as_dirname -- "$ac_file" || 17116$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17117 X"$ac_file" : 'X\(//\)[^/]' \| \ 17118 X"$ac_file" : 'X\(//\)$' \| \ 17119 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 17120echo X"$ac_file" | 17121 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17122 s//\1/ 17123 q 17124 } 17125 /^X\(\/\/\)[^/].*/{ 17126 s//\1/ 17127 q 17128 } 17129 /^X\(\/\/\)$/{ 17130 s//\1/ 17131 q 17132 } 17133 /^X\(\/\).*/{ 17134 s//\1/ 17135 q 17136 } 17137 s/.*/./; q'` 17138 { if test -n "$as_mkdir_p"; then 17139 $as_mkdir_p "$ac_dir" 17140 else 17141 as_dir="$ac_dir" 17142 as_dirs= 17143 while test ! -d "$as_dir"; do 17144 as_dirs="$as_dir $as_dirs" 17145 as_dir=`$as_dirname -- "$as_dir" || 17146$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17147 X"$as_dir" : 'X\(//\)[^/]' \| \ 17148 X"$as_dir" : 'X\(//\)$' \| \ 17149 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 17150echo X"$as_dir" | 17151 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17152 s//\1/ 17153 q 17154 } 17155 /^X\(\/\/\)[^/].*/{ 17156 s//\1/ 17157 q 17158 } 17159 /^X\(\/\/\)$/{ 17160 s//\1/ 17161 q 17162 } 17163 /^X\(\/\).*/{ 17164 s//\1/ 17165 q 17166 } 17167 s/.*/./; q'` 17168 done 17169 test ! -n "$as_dirs" || mkdir $as_dirs 17170 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 17171echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 17172 { (exit 1); exit 1; }; }; } 17173 17174 ac_builddir=. 17175 17176case "$ac_dir" in 17177.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 17178*) 17179 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 17180 # A ".." for each directory in $ac_dir_suffix. 17181 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 17182 case $ac_top_builddir_sub in 17183 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 17184 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 17185 esac ;; 17186esac 17187ac_abs_top_builddir=$ac_pwd 17188ac_abs_builddir=$ac_pwd$ac_dir_suffix 17189# for backward compatibility: 17190ac_top_builddir=$ac_top_build_prefix 17191 17192case $srcdir in 17193 .) # We are building in place. 17194 ac_srcdir=. 17195 ac_top_srcdir=$ac_top_builddir_sub 17196 ac_abs_top_srcdir=$ac_pwd ;; 17197 [\\/]* | ?:[\\/]* ) # Absolute name. 17198 ac_srcdir=$srcdir$ac_dir_suffix; 17199 ac_top_srcdir=$srcdir 17200 ac_abs_top_srcdir=$srcdir ;; 17201 *) # Relative name. 17202 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 17203 ac_top_srcdir=$ac_top_build_prefix$srcdir 17204 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 17205esac 17206ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 17207 17208 17209 case $ac_mode in 17210 :F) 17211 # 17212 # CONFIG_FILE 17213 # 17214 17215 case $INSTALL in 17216 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 17217 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 17218 esac 17219 ac_MKDIR_P=$MKDIR_P 17220 case $MKDIR_P in 17221 [\\/$]* | ?:[\\/]* ) ;; 17222 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 17223 esac 17224_ACEOF 17225 17226cat >>$CONFIG_STATUS <<\_ACEOF 17227# If the template does not know about datarootdir, expand it. 17228# FIXME: This hack should be removed a few years after 2.60. 17229ac_datarootdir_hack=; ac_datarootdir_seen= 17230 17231case `sed -n '/datarootdir/ { 17232 p 17233 q 17234} 17235/@datadir@/p 17236/@docdir@/p 17237/@infodir@/p 17238/@localedir@/p 17239/@mandir@/p 17240' $ac_file_inputs` in 17241*datarootdir*) ac_datarootdir_seen=yes;; 17242*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 17243 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 17244echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 17245_ACEOF 17246cat >>$CONFIG_STATUS <<_ACEOF 17247 ac_datarootdir_hack=' 17248 s&@datadir@&$datadir&g 17249 s&@docdir@&$docdir&g 17250 s&@infodir@&$infodir&g 17251 s&@localedir@&$localedir&g 17252 s&@mandir@&$mandir&g 17253 s&\\\${datarootdir}&$datarootdir&g' ;; 17254esac 17255_ACEOF 17256 17257# Neutralize VPATH when `$srcdir' = `.'. 17258# Shell code in configure.ac might set extrasub. 17259# FIXME: do we really want to maintain this feature? 17260cat >>$CONFIG_STATUS <<_ACEOF 17261 sed "$ac_vpsub 17262$extrasub 17263_ACEOF 17264cat >>$CONFIG_STATUS <<\_ACEOF 17265:t 17266/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 17267s&@configure_input@&$configure_input&;t t 17268s&@top_builddir@&$ac_top_builddir_sub&;t t 17269s&@srcdir@&$ac_srcdir&;t t 17270s&@abs_srcdir@&$ac_abs_srcdir&;t t 17271s&@top_srcdir@&$ac_top_srcdir&;t t 17272s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 17273s&@builddir@&$ac_builddir&;t t 17274s&@abs_builddir@&$ac_abs_builddir&;t t 17275s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 17276s&@INSTALL@&$ac_INSTALL&;t t 17277s&@MKDIR_P@&$ac_MKDIR_P&;t t 17278$ac_datarootdir_hack 17279" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 17280 17281test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 17282 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 17283 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 17284 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17285which seems to be undefined. Please make sure it is defined." >&5 17286echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17287which seems to be undefined. Please make sure it is defined." >&2;} 17288 17289 rm -f "$tmp/stdin" 17290 case $ac_file in 17291 -) cat "$tmp/out"; rm -f "$tmp/out";; 17292 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 17293 esac 17294 ;; 17295 :H) 17296 # 17297 # CONFIG_HEADER 17298 # 17299_ACEOF 17300 17301# Transform confdefs.h into a sed script `conftest.defines', that 17302# substitutes the proper values into config.h.in to produce config.h. 17303rm -f conftest.defines conftest.tail 17304# First, append a space to every undef/define line, to ease matching. 17305echo 's/$/ /' >conftest.defines 17306# Then, protect against being on the right side of a sed subst, or in 17307# an unquoted here document, in config.status. If some macros were 17308# called several times there might be several #defines for the same 17309# symbol, which is useless. But do not sort them, since the last 17310# AC_DEFINE must be honored. 17311ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 17312# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 17313# NAME is the cpp macro being defined, VALUE is the value it is being given. 17314# PARAMS is the parameter list in the macro definition--in most cases, it's 17315# just an empty string. 17316ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 17317ac_dB='\\)[ (].*,\\1define\\2' 17318ac_dC=' ' 17319ac_dD=' ,' 17320 17321uniq confdefs.h | 17322 sed -n ' 17323 t rset 17324 :rset 17325 s/^[ ]*#[ ]*define[ ][ ]*// 17326 t ok 17327 d 17328 :ok 17329 s/[\\&,]/\\&/g 17330 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 17331 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 17332 ' >>conftest.defines 17333 17334# Remove the space that was appended to ease matching. 17335# Then replace #undef with comments. This is necessary, for 17336# example, in the case of _POSIX_SOURCE, which is predefined and required 17337# on some systems where configure will not decide to define it. 17338# (The regexp can be short, since the line contains either #define or #undef.) 17339echo 's/ $// 17340s,^[ #]*u.*,/* & */,' >>conftest.defines 17341 17342# Break up conftest.defines: 17343ac_max_sed_lines=50 17344 17345# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 17346# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 17347# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 17348# et cetera. 17349ac_in='$ac_file_inputs' 17350ac_out='"$tmp/out1"' 17351ac_nxt='"$tmp/out2"' 17352 17353while : 17354do 17355 # Write a here document: 17356 cat >>$CONFIG_STATUS <<_ACEOF 17357 # First, check the format of the line: 17358 cat >"\$tmp/defines.sed" <<\\CEOF 17359/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 17360/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 17361b 17362:def 17363_ACEOF 17364 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 17365 echo 'CEOF 17366 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 17367 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 17368 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 17369 grep . conftest.tail >/dev/null || break 17370 rm -f conftest.defines 17371 mv conftest.tail conftest.defines 17372done 17373rm -f conftest.defines conftest.tail 17374 17375echo "ac_result=$ac_in" >>$CONFIG_STATUS 17376cat >>$CONFIG_STATUS <<\_ACEOF 17377 if test x"$ac_file" != x-; then 17378 echo "/* $configure_input */" >"$tmp/config.h" 17379 cat "$ac_result" >>"$tmp/config.h" 17380 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 17381 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 17382echo "$as_me: $ac_file is unchanged" >&6;} 17383 else 17384 rm -f $ac_file 17385 mv "$tmp/config.h" $ac_file 17386 fi 17387 else 17388 echo "/* $configure_input */" 17389 cat "$ac_result" 17390 fi 17391 rm -f "$tmp/out12" 17392# Compute $ac_file's index in $config_headers. 17393_am_stamp_count=1 17394for _am_header in $config_headers :; do 17395 case $_am_header in 17396 $ac_file | $ac_file:* ) 17397 break ;; 17398 * ) 17399 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 17400 esac 17401done 17402echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || 17403$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17404 X$ac_file : 'X\(//\)[^/]' \| \ 17405 X$ac_file : 'X\(//\)$' \| \ 17406 X$ac_file : 'X\(/\)' \| . 2>/dev/null || 17407echo X$ac_file | 17408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17409 s//\1/ 17410 q 17411 } 17412 /^X\(\/\/\)[^/].*/{ 17413 s//\1/ 17414 q 17415 } 17416 /^X\(\/\/\)$/{ 17417 s//\1/ 17418 q 17419 } 17420 /^X\(\/\).*/{ 17421 s//\1/ 17422 q 17423 } 17424 s/.*/./; q'`/stamp-h$_am_stamp_count 17425 ;; 17426 17427 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 17428echo "$as_me: executing $ac_file commands" >&6;} 17429 ;; 17430 esac 17431 17432 17433 case $ac_file$ac_mode in 17434 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 17435 # Strip MF so we end up with the name of the file. 17436 mf=`echo "$mf" | sed -e 's/:.*$//'` 17437 # Check whether this is an Automake generated Makefile or not. 17438 # We used to match only the files named `Makefile.in', but 17439 # some people rename them; so instead we look at the file content. 17440 # Grep'ing the first line is not enough: some people post-process 17441 # each Makefile.in and add a new line on top of each file to say so. 17442 # Grep'ing the whole file is not good either: AIX grep has a line 17443 # limit of 2048, but all sed's we know have understand at least 4000. 17444 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then 17445 dirpart=`$as_dirname -- "$mf" || 17446$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17447 X"$mf" : 'X\(//\)[^/]' \| \ 17448 X"$mf" : 'X\(//\)$' \| \ 17449 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 17450echo X"$mf" | 17451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17452 s//\1/ 17453 q 17454 } 17455 /^X\(\/\/\)[^/].*/{ 17456 s//\1/ 17457 q 17458 } 17459 /^X\(\/\/\)$/{ 17460 s//\1/ 17461 q 17462 } 17463 /^X\(\/\).*/{ 17464 s//\1/ 17465 q 17466 } 17467 s/.*/./; q'` 17468 else 17469 continue 17470 fi 17471 # Extract the definition of DEPDIR, am__include, and am__quote 17472 # from the Makefile without running `make'. 17473 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 17474 test -z "$DEPDIR" && continue 17475 am__include=`sed -n 's/^am__include = //p' < "$mf"` 17476 test -z "am__include" && continue 17477 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 17478 # When using ansi2knr, U may be empty or an underscore; expand it 17479 U=`sed -n 's/^U = //p' < "$mf"` 17480 # Find all dependency output files, they are included files with 17481 # $(DEPDIR) in their names. We invoke sed twice because it is the 17482 # simplest approach to changing $(DEPDIR) to its actual value in the 17483 # expansion. 17484 for file in `sed -n " 17485 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 17486 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 17487 # Make sure the directory exists. 17488 test -f "$dirpart/$file" && continue 17489 fdir=`$as_dirname -- "$file" || 17490$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17491 X"$file" : 'X\(//\)[^/]' \| \ 17492 X"$file" : 'X\(//\)$' \| \ 17493 X"$file" : 'X\(/\)' \| . 2>/dev/null || 17494echo X"$file" | 17495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17496 s//\1/ 17497 q 17498 } 17499 /^X\(\/\/\)[^/].*/{ 17500 s//\1/ 17501 q 17502 } 17503 /^X\(\/\/\)$/{ 17504 s//\1/ 17505 q 17506 } 17507 /^X\(\/\).*/{ 17508 s//\1/ 17509 q 17510 } 17511 s/.*/./; q'` 17512 { if test -n "$as_mkdir_p"; then 17513 $as_mkdir_p $dirpart/$fdir 17514 else 17515 as_dir=$dirpart/$fdir 17516 as_dirs= 17517 while test ! -d "$as_dir"; do 17518 as_dirs="$as_dir $as_dirs" 17519 as_dir=`$as_dirname -- "$as_dir" || 17520$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17521 X"$as_dir" : 'X\(//\)[^/]' \| \ 17522 X"$as_dir" : 'X\(//\)$' \| \ 17523 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 17524echo X"$as_dir" | 17525 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17526 s//\1/ 17527 q 17528 } 17529 /^X\(\/\/\)[^/].*/{ 17530 s//\1/ 17531 q 17532 } 17533 /^X\(\/\/\)$/{ 17534 s//\1/ 17535 q 17536 } 17537 /^X\(\/\).*/{ 17538 s//\1/ 17539 q 17540 } 17541 s/.*/./; q'` 17542 done 17543 test ! -n "$as_dirs" || mkdir $as_dirs 17544 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 17545echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 17546 { (exit 1); exit 1; }; }; } 17547 17548 # echo "creating $dirpart/$file" 17549 echo '# dummy' > "$dirpart/$file" 17550 done 17551done 17552 ;; 17553 "libtool":C) 17554 17555 # See if we are running on zsh, and set the options which allow our 17556 # commands through without removal of \ escapes. 17557 if test -n "${ZSH_VERSION+set}" ; then 17558 setopt NO_GLOB_SUBST 17559 fi 17560 17561 cfgfile="${ofile}T" 17562 trap "$RM -f \"$cfgfile\"; exit 1" 1 2 15 17563 $RM -f "$cfgfile" 17564 17565 cat <<_LT_EOF >> "$cfgfile" 17566#! $SHELL 17567 17568# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 17569# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 17570# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17571# NOTE: Changes made to this file will be lost: look at ltmain.sh. 17572# 17573# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 17574# 2006, 2007, 2008 Free Software Foundation, Inc. 17575# Written by Gordon Matzigkeit, 1996 17576# 17577# This file is part of GNU Libtool. 17578# 17579# GNU Libtool is free software; you can redistribute it and/or 17580# modify it under the terms of the GNU General Public License as 17581# published by the Free Software Foundation; either version 2 of 17582# the License, or (at your option) any later version. 17583# 17584# As a special exception to the GNU General Public License, 17585# if you distribute this file as part of a program or library that 17586# is built using GNU Libtool, you may include this file under the 17587# same distribution terms that you use for the rest of that program. 17588# 17589# GNU Libtool is distributed in the hope that it will be useful, 17590# but WITHOUT ANY WARRANTY; without even the implied warranty of 17591# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17592# GNU General Public License for more details. 17593# 17594# You should have received a copy of the GNU General Public License 17595# along with GNU Libtool; see the file COPYING. If not, a copy 17596# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 17597# obtained by writing to the Free Software Foundation, Inc., 17598# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17599 17600 17601# The names of the tagged configurations supported by this script. 17602available_tags="CXX " 17603 17604# ### BEGIN LIBTOOL CONFIG 17605 17606# Which release of libtool.m4 was used? 17607macro_version=$macro_version 17608macro_revision=$macro_revision 17609 17610# Whether or not to build shared libraries. 17611build_libtool_libs=$enable_shared 17612 17613# Whether or not to build static libraries. 17614build_old_libs=$enable_static 17615 17616# What type of objects to build. 17617pic_mode=$pic_mode 17618 17619# Whether or not to optimize for fast installation. 17620fast_install=$enable_fast_install 17621 17622# The host system. 17623host_alias=$host_alias 17624host=$host 17625host_os=$host_os 17626 17627# The build system. 17628build_alias=$build_alias 17629build=$build 17630build_os=$build_os 17631 17632# A sed program that does not truncate output. 17633SED=$lt_SED 17634 17635# Sed that helps us avoid accidentally triggering echo(1) options like -n. 17636Xsed="\$SED -e 1s/^X//" 17637 17638# A grep program that handles long lines. 17639GREP=$lt_GREP 17640 17641# An ERE matcher. 17642EGREP=$lt_EGREP 17643 17644# A literal string matcher. 17645FGREP=$lt_FGREP 17646 17647# A BSD- or MS-compatible name lister. 17648NM=$lt_NM 17649 17650# Whether we need soft or hard links. 17651LN_S=$lt_LN_S 17652 17653# What is the maximum length of a command? 17654max_cmd_len=$max_cmd_len 17655 17656# Object file suffix (normally "o"). 17657objext=$ac_objext 17658 17659# Executable file suffix (normally ""). 17660exeext=$exeext 17661 17662# whether the shell understands "unset". 17663lt_unset=$lt_unset 17664 17665# turn spaces into newlines. 17666SP2NL=$lt_lt_SP2NL 17667 17668# turn newlines into spaces. 17669NL2SP=$lt_lt_NL2SP 17670 17671# How to create reloadable object files. 17672reload_flag=$lt_reload_flag 17673reload_cmds=$lt_reload_cmds 17674 17675# Method to check whether dependent libraries are shared objects. 17676deplibs_check_method=$lt_deplibs_check_method 17677 17678# Command to use when deplibs_check_method == "file_magic". 17679file_magic_cmd=$lt_file_magic_cmd 17680 17681# The archiver. 17682AR=$lt_AR 17683AR_FLAGS=$lt_AR_FLAGS 17684 17685# A symbol stripping program. 17686STRIP=$lt_STRIP 17687 17688# Commands used to install an old-style archive. 17689RANLIB=$lt_RANLIB 17690old_postinstall_cmds=$lt_old_postinstall_cmds 17691old_postuninstall_cmds=$lt_old_postuninstall_cmds 17692 17693# A C compiler. 17694LTCC=$lt_CC 17695 17696# LTCC compiler flags. 17697LTCFLAGS=$lt_CFLAGS 17698 17699# Take the output of nm and produce a listing of raw symbols and C names. 17700global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17701 17702# Transform the output of nm in a proper C declaration. 17703global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17704 17705# Transform the output of nm in a C name address pair. 17706global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17707 17708# Transform the output of nm in a C name address pair when lib prefix is needed. 17709global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 17710 17711# The name of the directory that contains temporary libtool files. 17712objdir=$objdir 17713 17714# Shell to use when invoking shell scripts. 17715SHELL=$lt_SHELL 17716 17717# An echo program that does not interpret backslashes. 17718ECHO=$lt_ECHO 17719 17720# Used to examine libraries when file_magic_cmd begins with "file". 17721MAGIC_CMD=$MAGIC_CMD 17722 17723# Must we lock files when doing compilation? 17724need_locks=$lt_need_locks 17725 17726# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 17727DSYMUTIL=$lt_DSYMUTIL 17728 17729# Tool to change global to local symbols on Mac OS X. 17730NMEDIT=$lt_NMEDIT 17731 17732# Tool to manipulate fat objects and archives on Mac OS X. 17733LIPO=$lt_LIPO 17734 17735# ldd/readelf like tool for Mach-O binaries on Mac OS X. 17736OTOOL=$lt_OTOOL 17737 17738# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 17739OTOOL64=$lt_OTOOL64 17740 17741# Old archive suffix (normally "a"). 17742libext=$libext 17743 17744# Shared library suffix (normally ".so"). 17745shrext_cmds=$lt_shrext_cmds 17746 17747# The commands to extract the exported symbol list from a shared archive. 17748extract_expsyms_cmds=$lt_extract_expsyms_cmds 17749 17750# Variables whose values should be saved in libtool wrapper scripts and 17751# restored at link time. 17752variables_saved_for_relink=$lt_variables_saved_for_relink 17753 17754# Do we need the "lib" prefix for modules? 17755need_lib_prefix=$need_lib_prefix 17756 17757# Do we need a version for libraries? 17758need_version=$need_version 17759 17760# Library versioning type. 17761version_type=$version_type 17762 17763# Shared library runtime path variable. 17764runpath_var=$runpath_var 17765 17766# Shared library path variable. 17767shlibpath_var=$shlibpath_var 17768 17769# Is shlibpath searched before the hard-coded library search path? 17770shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17771 17772# Format of library name prefix. 17773libname_spec=$lt_libname_spec 17774 17775# List of archive names. First name is the real one, the rest are links. 17776# The last name is the one that the linker finds with -lNAME 17777library_names_spec=$lt_library_names_spec 17778 17779# The coded name of the library, if different from the real name. 17780soname_spec=$lt_soname_spec 17781 17782# Command to use after installation of a shared archive. 17783postinstall_cmds=$lt_postinstall_cmds 17784 17785# Command to use after uninstallation of a shared archive. 17786postuninstall_cmds=$lt_postuninstall_cmds 17787 17788# Commands used to finish a libtool library installation in a directory. 17789finish_cmds=$lt_finish_cmds 17790 17791# As "finish_cmds", except a single script fragment to be evaled but 17792# not shown. 17793finish_eval=$lt_finish_eval 17794 17795# Whether we should hardcode library paths into libraries. 17796hardcode_into_libs=$hardcode_into_libs 17797 17798# Compile-time system search path for libraries. 17799sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17800 17801# Run-time system search path for libraries. 17802sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17803 17804# Whether dlopen is supported. 17805dlopen_support=$enable_dlopen 17806 17807# Whether dlopen of programs is supported. 17808dlopen_self=$enable_dlopen_self 17809 17810# Whether dlopen of statically linked programs is supported. 17811dlopen_self_static=$enable_dlopen_self_static 17812 17813# Commands to strip libraries. 17814old_striplib=$lt_old_striplib 17815striplib=$lt_striplib 17816 17817 17818# The linker used to build libraries. 17819LD=$lt_LD 17820 17821# Commands used to build an old-style archive. 17822old_archive_cmds=$lt_old_archive_cmds 17823 17824# A language specific compiler. 17825CC=$lt_compiler 17826 17827# Is the compiler the GNU compiler? 17828with_gcc=$GCC 17829 17830# Compiler flag to turn off builtin functions. 17831no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 17832 17833# How to pass a linker flag through the compiler. 17834wl=$lt_lt_prog_compiler_wl 17835 17836# Additional compiler flags for building library objects. 17837pic_flag=$lt_lt_prog_compiler_pic 17838 17839# Compiler flag to prevent dynamic linking. 17840link_static_flag=$lt_lt_prog_compiler_static 17841 17842# Does compiler simultaneously support -c and -o options? 17843compiler_c_o=$lt_lt_cv_prog_compiler_c_o 17844 17845# Whether or not to add -lc for building shared libraries. 17846build_libtool_need_lc=$archive_cmds_need_lc 17847 17848# Whether or not to disallow shared libs when runtime libs are static. 17849allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 17850 17851# Compiler flag to allow reflexive dlopens. 17852export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 17853 17854# Compiler flag to generate shared objects directly from archives. 17855whole_archive_flag_spec=$lt_whole_archive_flag_spec 17856 17857# Whether the compiler copes with passing no objects directly. 17858compiler_needs_object=$lt_compiler_needs_object 17859 17860# Create an old-style archive from a shared archive. 17861old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 17862 17863# Create a temporary old-style archive to link instead of a shared archive. 17864old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 17865 17866# Commands used to build a shared archive. 17867archive_cmds=$lt_archive_cmds 17868archive_expsym_cmds=$lt_archive_expsym_cmds 17869 17870# Commands used to build a loadable module if different from building 17871# a shared archive. 17872module_cmds=$lt_module_cmds 17873module_expsym_cmds=$lt_module_expsym_cmds 17874 17875# Whether we are building with GNU ld or not. 17876with_gnu_ld=$lt_with_gnu_ld 17877 17878# Flag that allows shared libraries with undefined symbols to be built. 17879allow_undefined_flag=$lt_allow_undefined_flag 17880 17881# Flag that enforces no undefined symbols. 17882no_undefined_flag=$lt_no_undefined_flag 17883 17884# Flag to hardcode \$libdir into a binary during linking. 17885# This must work even if \$libdir does not exist 17886hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 17887 17888# If ld is used when linking, flag to hardcode \$libdir into a binary 17889# during linking. This must work even if \$libdir does not exist. 17890hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 17891 17892# Whether we need a single "-rpath" flag with a separated argument. 17893hardcode_libdir_separator=$lt_hardcode_libdir_separator 17894 17895# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17896# DIR into the resulting binary. 17897hardcode_direct=$hardcode_direct 17898 17899# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17900# DIR into the resulting binary and the resulting library dependency is 17901# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 17902# library is relocated. 17903hardcode_direct_absolute=$hardcode_direct_absolute 17904 17905# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 17906# into the resulting binary. 17907hardcode_minus_L=$hardcode_minus_L 17908 17909# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 17910# into the resulting binary. 17911hardcode_shlibpath_var=$hardcode_shlibpath_var 17912 17913# Set to "yes" if building a shared library automatically hardcodes DIR 17914# into the library and all subsequent libraries and executables linked 17915# against it. 17916hardcode_automatic=$hardcode_automatic 17917 17918# Set to yes if linker adds runtime paths of dependent libraries 17919# to runtime path list. 17920inherit_rpath=$inherit_rpath 17921 17922# Whether libtool must link a program against all its dependency libraries. 17923link_all_deplibs=$link_all_deplibs 17924 17925# Fix the shell variable \$srcfile for the compiler. 17926fix_srcfile_path=$lt_fix_srcfile_path 17927 17928# Set to "yes" if exported symbols are required. 17929always_export_symbols=$always_export_symbols 17930 17931# The commands to list exported symbols. 17932export_symbols_cmds=$lt_export_symbols_cmds 17933 17934# Symbols that should not be listed in the preloaded symbols. 17935exclude_expsyms=$lt_exclude_expsyms 17936 17937# Symbols that must always be exported. 17938include_expsyms=$lt_include_expsyms 17939 17940# Commands necessary for linking programs (against libraries) with templates. 17941prelink_cmds=$lt_prelink_cmds 17942 17943# Specify filename containing input files. 17944file_list_spec=$lt_file_list_spec 17945 17946# How to hardcode a shared library path into an executable. 17947hardcode_action=$hardcode_action 17948 17949# The directories searched by this compiler when creating a shared library. 17950compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 17951 17952# Dependencies to place before and after the objects being linked to 17953# create a shared library. 17954predep_objects=$lt_predep_objects 17955postdep_objects=$lt_postdep_objects 17956predeps=$lt_predeps 17957postdeps=$lt_postdeps 17958 17959# The library search path used internally by the compiler when linking 17960# a shared library. 17961compiler_lib_search_path=$lt_compiler_lib_search_path 17962 17963# ### END LIBTOOL CONFIG 17964 17965_LT_EOF 17966 17967 case $host_os in 17968 aix3*) 17969 cat <<\_LT_EOF >> "$cfgfile" 17970# AIX sometimes has problems with the GCC collect2 program. For some 17971# reason, if we set the COLLECT_NAMES environment variable, the problems 17972# vanish in a puff of smoke. 17973if test "X${COLLECT_NAMES+set}" != Xset; then 17974 COLLECT_NAMES= 17975 export COLLECT_NAMES 17976fi 17977_LT_EOF 17978 ;; 17979 esac 17980 17981 17982ltmain="$ac_aux_dir/ltmain.sh" 17983 17984 17985 # We use sed instead of cat because bash on DJGPP gets confused if 17986 # if finds mixed CR/LF and LF-only lines. Since sed operates in 17987 # text mode, it properly converts lines to CR/LF. This bash problem 17988 # is reportedly fixed, but why not run on old versions too? 17989 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 17990 || (rm -f "$cfgfile"; exit 1) 17991 17992 case $xsi_shell in 17993 yes) 17994 cat << \_LT_EOF >> "$cfgfile" 17995 17996# func_dirname file append nondir_replacement 17997# Compute the dirname of FILE. If nonempty, add APPEND to the result, 17998# otherwise set result to NONDIR_REPLACEMENT. 17999func_dirname () 18000{ 18001 case ${1} in 18002 */*) func_dirname_result="${1%/*}${2}" ;; 18003 * ) func_dirname_result="${3}" ;; 18004 esac 18005} 18006 18007# func_basename file 18008func_basename () 18009{ 18010 func_basename_result="${1##*/}" 18011} 18012 18013# func_dirname_and_basename file append nondir_replacement 18014# perform func_basename and func_dirname in a single function 18015# call: 18016# dirname: Compute the dirname of FILE. If nonempty, 18017# add APPEND to the result, otherwise set result 18018# to NONDIR_REPLACEMENT. 18019# value returned in "$func_dirname_result" 18020# basename: Compute filename of FILE. 18021# value retuned in "$func_basename_result" 18022# Implementation must be kept synchronized with func_dirname 18023# and func_basename. For efficiency, we do not delegate to 18024# those functions but instead duplicate the functionality here. 18025func_dirname_and_basename () 18026{ 18027 case ${1} in 18028 */*) func_dirname_result="${1%/*}${2}" ;; 18029 * ) func_dirname_result="${3}" ;; 18030 esac 18031 func_basename_result="${1##*/}" 18032} 18033 18034# func_stripname prefix suffix name 18035# strip PREFIX and SUFFIX off of NAME. 18036# PREFIX and SUFFIX must not contain globbing or regex special 18037# characters, hashes, percent signs, but SUFFIX may contain a leading 18038# dot (in which case that matches only a dot). 18039func_stripname () 18040{ 18041 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 18042 # positional parameters, so assign one to ordinary parameter first. 18043 func_stripname_result=${3} 18044 func_stripname_result=${func_stripname_result#"${1}"} 18045 func_stripname_result=${func_stripname_result%"${2}"} 18046} 18047 18048# func_opt_split 18049func_opt_split () 18050{ 18051 func_opt_split_opt=${1%%=*} 18052 func_opt_split_arg=${1#*=} 18053} 18054 18055# func_lo2o object 18056func_lo2o () 18057{ 18058 case ${1} in 18059 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 18060 *) func_lo2o_result=${1} ;; 18061 esac 18062} 18063 18064# func_xform libobj-or-source 18065func_xform () 18066{ 18067 func_xform_result=${1%.*}.lo 18068} 18069 18070# func_arith arithmetic-term... 18071func_arith () 18072{ 18073 func_arith_result=$(( $* )) 18074} 18075 18076# func_len string 18077# STRING may not start with a hyphen. 18078func_len () 18079{ 18080 func_len_result=${#1} 18081} 18082 18083_LT_EOF 18084 ;; 18085 *) # Bourne compatible functions. 18086 cat << \_LT_EOF >> "$cfgfile" 18087 18088# func_dirname file append nondir_replacement 18089# Compute the dirname of FILE. If nonempty, add APPEND to the result, 18090# otherwise set result to NONDIR_REPLACEMENT. 18091func_dirname () 18092{ 18093 # Extract subdirectory from the argument. 18094 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 18095 if test "X$func_dirname_result" = "X${1}"; then 18096 func_dirname_result="${3}" 18097 else 18098 func_dirname_result="$func_dirname_result${2}" 18099 fi 18100} 18101 18102# func_basename file 18103func_basename () 18104{ 18105 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 18106} 18107 18108 18109# func_stripname prefix suffix name 18110# strip PREFIX and SUFFIX off of NAME. 18111# PREFIX and SUFFIX must not contain globbing or regex special 18112# characters, hashes, percent signs, but SUFFIX may contain a leading 18113# dot (in which case that matches only a dot). 18114# func_strip_suffix prefix name 18115func_stripname () 18116{ 18117 case ${2} in 18118 .*) func_stripname_result=`$ECHO "X${3}" \ 18119 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 18120 *) func_stripname_result=`$ECHO "X${3}" \ 18121 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 18122 esac 18123} 18124 18125# sed scripts: 18126my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 18127my_sed_long_arg='1s/^-[^=]*=//' 18128 18129# func_opt_split 18130func_opt_split () 18131{ 18132 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 18133 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 18134} 18135 18136# func_lo2o object 18137func_lo2o () 18138{ 18139 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 18140} 18141 18142# func_xform libobj-or-source 18143func_xform () 18144{ 18145 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 18146} 18147 18148# func_arith arithmetic-term... 18149func_arith () 18150{ 18151 func_arith_result=`expr "$@"` 18152} 18153 18154# func_len string 18155# STRING may not start with a hyphen. 18156func_len () 18157{ 18158 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 18159} 18160 18161_LT_EOF 18162esac 18163 18164case $lt_shell_append in 18165 yes) 18166 cat << \_LT_EOF >> "$cfgfile" 18167 18168# func_append var value 18169# Append VALUE to the end of shell variable VAR. 18170func_append () 18171{ 18172 eval "$1+=\$2" 18173} 18174_LT_EOF 18175 ;; 18176 *) 18177 cat << \_LT_EOF >> "$cfgfile" 18178 18179# func_append var value 18180# Append VALUE to the end of shell variable VAR. 18181func_append () 18182{ 18183 eval "$1=\$$1\$2" 18184} 18185 18186_LT_EOF 18187 ;; 18188 esac 18189 18190 18191 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 18192 || (rm -f "$cfgfile"; exit 1) 18193 18194 mv -f "$cfgfile" "$ofile" || 18195 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 18196 chmod +x "$ofile" 18197 18198 18199 cat <<_LT_EOF >> "$ofile" 18200 18201# ### BEGIN LIBTOOL TAG CONFIG: CXX 18202 18203# The linker used to build libraries. 18204LD=$lt_LD_CXX 18205 18206# Commands used to build an old-style archive. 18207old_archive_cmds=$lt_old_archive_cmds_CXX 18208 18209# A language specific compiler. 18210CC=$lt_compiler_CXX 18211 18212# Is the compiler the GNU compiler? 18213with_gcc=$GCC_CXX 18214 18215# Compiler flag to turn off builtin functions. 18216no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 18217 18218# How to pass a linker flag through the compiler. 18219wl=$lt_lt_prog_compiler_wl_CXX 18220 18221# Additional compiler flags for building library objects. 18222pic_flag=$lt_lt_prog_compiler_pic_CXX 18223 18224# Compiler flag to prevent dynamic linking. 18225link_static_flag=$lt_lt_prog_compiler_static_CXX 18226 18227# Does compiler simultaneously support -c and -o options? 18228compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 18229 18230# Whether or not to add -lc for building shared libraries. 18231build_libtool_need_lc=$archive_cmds_need_lc_CXX 18232 18233# Whether or not to disallow shared libs when runtime libs are static. 18234allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 18235 18236# Compiler flag to allow reflexive dlopens. 18237export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 18238 18239# Compiler flag to generate shared objects directly from archives. 18240whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 18241 18242# Whether the compiler copes with passing no objects directly. 18243compiler_needs_object=$lt_compiler_needs_object_CXX 18244 18245# Create an old-style archive from a shared archive. 18246old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 18247 18248# Create a temporary old-style archive to link instead of a shared archive. 18249old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 18250 18251# Commands used to build a shared archive. 18252archive_cmds=$lt_archive_cmds_CXX 18253archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 18254 18255# Commands used to build a loadable module if different from building 18256# a shared archive. 18257module_cmds=$lt_module_cmds_CXX 18258module_expsym_cmds=$lt_module_expsym_cmds_CXX 18259 18260# Whether we are building with GNU ld or not. 18261with_gnu_ld=$lt_with_gnu_ld_CXX 18262 18263# Flag that allows shared libraries with undefined symbols to be built. 18264allow_undefined_flag=$lt_allow_undefined_flag_CXX 18265 18266# Flag that enforces no undefined symbols. 18267no_undefined_flag=$lt_no_undefined_flag_CXX 18268 18269# Flag to hardcode \$libdir into a binary during linking. 18270# This must work even if \$libdir does not exist 18271hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 18272 18273# If ld is used when linking, flag to hardcode \$libdir into a binary 18274# during linking. This must work even if \$libdir does not exist. 18275hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 18276 18277# Whether we need a single "-rpath" flag with a separated argument. 18278hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 18279 18280# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18281# DIR into the resulting binary. 18282hardcode_direct=$hardcode_direct_CXX 18283 18284# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18285# DIR into the resulting binary and the resulting library dependency is 18286# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 18287# library is relocated. 18288hardcode_direct_absolute=$hardcode_direct_absolute_CXX 18289 18290# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18291# into the resulting binary. 18292hardcode_minus_L=$hardcode_minus_L_CXX 18293 18294# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18295# into the resulting binary. 18296hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 18297 18298# Set to "yes" if building a shared library automatically hardcodes DIR 18299# into the library and all subsequent libraries and executables linked 18300# against it. 18301hardcode_automatic=$hardcode_automatic_CXX 18302 18303# Set to yes if linker adds runtime paths of dependent libraries 18304# to runtime path list. 18305inherit_rpath=$inherit_rpath_CXX 18306 18307# Whether libtool must link a program against all its dependency libraries. 18308link_all_deplibs=$link_all_deplibs_CXX 18309 18310# Fix the shell variable \$srcfile for the compiler. 18311fix_srcfile_path=$lt_fix_srcfile_path_CXX 18312 18313# Set to "yes" if exported symbols are required. 18314always_export_symbols=$always_export_symbols_CXX 18315 18316# The commands to list exported symbols. 18317export_symbols_cmds=$lt_export_symbols_cmds_CXX 18318 18319# Symbols that should not be listed in the preloaded symbols. 18320exclude_expsyms=$lt_exclude_expsyms_CXX 18321 18322# Symbols that must always be exported. 18323include_expsyms=$lt_include_expsyms_CXX 18324 18325# Commands necessary for linking programs (against libraries) with templates. 18326prelink_cmds=$lt_prelink_cmds_CXX 18327 18328# Specify filename containing input files. 18329file_list_spec=$lt_file_list_spec_CXX 18330 18331# How to hardcode a shared library path into an executable. 18332hardcode_action=$hardcode_action_CXX 18333 18334# The directories searched by this compiler when creating a shared library. 18335compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 18336 18337# Dependencies to place before and after the objects being linked to 18338# create a shared library. 18339predep_objects=$lt_predep_objects_CXX 18340postdep_objects=$lt_postdep_objects_CXX 18341predeps=$lt_predeps_CXX 18342postdeps=$lt_postdeps_CXX 18343 18344# The library search path used internally by the compiler when linking 18345# a shared library. 18346compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 18347 18348# ### END LIBTOOL TAG CONFIG: CXX 18349_LT_EOF 18350 18351 ;; 18352 18353 esac 18354done # for ac_tag 18355 18356 18357{ (exit 0); exit 0; } 18358_ACEOF 18359chmod +x $CONFIG_STATUS 18360ac_clean_files=$ac_clean_files_save 18361 18362 18363# configure is writing to config.log, and then calls config.status. 18364# config.status does its own redirection, appending to config.log. 18365# Unfortunately, on DOS this fails, as config.log is still kept open 18366# by configure, so config.status won't be able to write to it; its 18367# output is simply discarded. So we exec the FD to /dev/null, 18368# effectively closing config.log, so it can be properly (re)opened and 18369# appended to by config.status. When coming back to configure, we 18370# need to make the FD available again. 18371if test "$no_create" != yes; then 18372 ac_cs_success=: 18373 ac_config_status_args= 18374 test "$silent" = yes && 18375 ac_config_status_args="$ac_config_status_args --quiet" 18376 exec 5>/dev/null 18377 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 18378 exec 5>>config.log 18379 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18380 # would make configure fail if this is the last instruction. 18381 $ac_cs_success || { (exit 1); exit 1; } 18382fi 18383 18384 18385{ echo "$as_me:$LINENO: 18386 18387Please type 'make' to build Bullet 18388" >&5 18389echo "$as_me: 18390 18391Please type 'make' to build Bullet 18392" >&6;} 18393