1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.63 for libg19draw 1.0.0. 4# 5# Report bugs to <jgeboski@users.sourceforge.net>. 6# 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 # Pre-4.2 versions of Zsh do 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 42as_nl=' 43' 44export as_nl 45# Printing a long string crashes Solaris 7 /usr/bin/printf. 46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83# Support unset when possible. 84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 85 as_unset=unset 86else 87 as_unset=false 88fi 89 90 91# IFS 92# We need space, tab and new line, in precisely that order. Quoting is 93# there to prevent editors from complaining about space-tab. 94# (If _AS_PATH_WALK were called with IFS unset, it would disable word 95# splitting by setting IFS to empty value.) 96IFS=" "" $as_nl" 97 98# Find who we are. Look in the path if we contain no directory separator. 99case $0 in 100 *[\\/]* ) as_myself=$0 ;; 101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 102for as_dir in $PATH 103do 104 IFS=$as_save_IFS 105 test -z "$as_dir" && as_dir=. 106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 107done 108IFS=$as_save_IFS 109 110 ;; 111esac 112# We did not find ourselves, most probably we were run as `sh COMMAND' 113# in which case we are not to be found in the path. 114if test "x$as_myself" = x; then 115 as_myself=$0 116fi 117if test ! -f "$as_myself"; then 118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 119 { (exit 1); exit 1; } 120fi 121 122# Work around bugs in pre-3.0 UWIN ksh. 123for as_var in ENV MAIL MAILPATH 124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# Required to use basename. 137if expr a : '\(a\)' >/dev/null 2>&1 && 138 test "X`expr 00001 : '.*\(...\)'`" = X001; then 139 as_expr=expr 140else 141 as_expr=false 142fi 143 144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 145 as_basename=basename 146else 147 as_basename=false 148fi 149 150 151# Name of the executable. 152as_me=`$as_basename -- "$0" || 153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 154 X"$0" : 'X\(//\)$' \| \ 155 X"$0" : 'X\(/\)' \| . 2>/dev/null || 156$as_echo X/"$0" | 157 sed '/^.*\/\([^/][^/]*\)\/*$/{ 158 s//\1/ 159 q 160 } 161 /^X\/\(\/\/\)$/{ 162 s//\1/ 163 q 164 } 165 /^X\/\(\/\).*/{ 166 s//\1/ 167 q 168 } 169 s/.*/./; q'` 170 171# CDPATH. 172$as_unset CDPATH 173 174 175if test "x$CONFIG_SHELL" = x; then 176 if (eval ":") 2>/dev/null; then 177 as_have_required=yes 178else 179 as_have_required=no 180fi 181 182 if test $as_have_required = yes && (eval ": 183(as_func_return () { 184 (exit \$1) 185} 186as_func_success () { 187 as_func_return 0 188} 189as_func_failure () { 190 as_func_return 1 191} 192as_func_ret_success () { 193 return 0 194} 195as_func_ret_failure () { 196 return 1 197} 198 199exitcode=0 200if as_func_success; then 201 : 202else 203 exitcode=1 204 echo as_func_success failed. 205fi 206 207if as_func_failure; then 208 exitcode=1 209 echo as_func_failure succeeded. 210fi 211 212if as_func_ret_success; then 213 : 214else 215 exitcode=1 216 echo as_func_ret_success failed. 217fi 218 219if as_func_ret_failure; then 220 exitcode=1 221 echo as_func_ret_failure succeeded. 222fi 223 224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 225 : 226else 227 exitcode=1 228 echo positional parameters were not saved. 229fi 230 231test \$exitcode = 0) || { (exit 1); exit 1; } 232 233( 234 as_lineno_1=\$LINENO 235 as_lineno_2=\$LINENO 236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 238") 2> /dev/null; then 239 : 240else 241 as_candidate_shells= 242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 244do 245 IFS=$as_save_IFS 246 test -z "$as_dir" && as_dir=. 247 case $as_dir in 248 /*) 249 for as_base in sh bash ksh sh5; do 250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 251 done;; 252 esac 253done 254IFS=$as_save_IFS 255 256 257 for as_shell in $as_candidate_shells $SHELL; do 258 # Try only shells that exist, to save several forks. 259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 260 { ("$as_shell") 2> /dev/null <<\_ASEOF 261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268else 269 case `(set -o) 2>/dev/null` in 270 *posix*) set -o posix ;; 271esac 272 273fi 274 275 276: 277_ASEOF 278}; then 279 CONFIG_SHELL=$as_shell 280 as_have_required=yes 281 if { "$as_shell" 2> /dev/null <<\_ASEOF 282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 283 emulate sh 284 NULLCMD=: 285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 286 # is contrary to our usage. Disable this feature. 287 alias -g '${1+"$@"}'='"$@"' 288 setopt NO_GLOB_SUBST 289else 290 case `(set -o) 2>/dev/null` in 291 *posix*) set -o posix ;; 292esac 293 294fi 295 296 297: 298(as_func_return () { 299 (exit $1) 300} 301as_func_success () { 302 as_func_return 0 303} 304as_func_failure () { 305 as_func_return 1 306} 307as_func_ret_success () { 308 return 0 309} 310as_func_ret_failure () { 311 return 1 312} 313 314exitcode=0 315if as_func_success; then 316 : 317else 318 exitcode=1 319 echo as_func_success failed. 320fi 321 322if as_func_failure; then 323 exitcode=1 324 echo as_func_failure succeeded. 325fi 326 327if as_func_ret_success; then 328 : 329else 330 exitcode=1 331 echo as_func_ret_success failed. 332fi 333 334if as_func_ret_failure; then 335 exitcode=1 336 echo as_func_ret_failure succeeded. 337fi 338 339if ( set x; as_func_ret_success y && test x = "$1" ); then 340 : 341else 342 exitcode=1 343 echo positional parameters were not saved. 344fi 345 346test $exitcode = 0) || { (exit 1); exit 1; } 347 348( 349 as_lineno_1=$LINENO 350 as_lineno_2=$LINENO 351 test "x$as_lineno_1" != "x$as_lineno_2" && 352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 353 354_ASEOF 355}; then 356 break 357fi 358 359fi 360 361 done 362 363 if test "x$CONFIG_SHELL" != x; then 364 for as_var in BASH_ENV ENV 365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 366 done 367 export CONFIG_SHELL 368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 369fi 370 371 372 if test $as_have_required = no; then 373 echo This script requires a shell more modern than all the 374 echo shells that I found on your system. Please install a 375 echo modern shell, or manually run the script under such a 376 echo shell if you do have one. 377 { (exit 1); exit 1; } 378fi 379 380 381fi 382 383fi 384 385 386 387(eval "as_func_return () { 388 (exit \$1) 389} 390as_func_success () { 391 as_func_return 0 392} 393as_func_failure () { 394 as_func_return 1 395} 396as_func_ret_success () { 397 return 0 398} 399as_func_ret_failure () { 400 return 1 401} 402 403exitcode=0 404if as_func_success; then 405 : 406else 407 exitcode=1 408 echo as_func_success failed. 409fi 410 411if as_func_failure; then 412 exitcode=1 413 echo as_func_failure succeeded. 414fi 415 416if as_func_ret_success; then 417 : 418else 419 exitcode=1 420 echo as_func_ret_success failed. 421fi 422 423if as_func_ret_failure; then 424 exitcode=1 425 echo as_func_ret_failure succeeded. 426fi 427 428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 429 : 430else 431 exitcode=1 432 echo positional parameters were not saved. 433fi 434 435test \$exitcode = 0") || { 436 echo No shell found that supports shell functions. 437 echo Please tell bug-autoconf@gnu.org about your system, 438 echo including any error possibly output before this message. 439 echo This can help us improve future autoconf versions. 440 echo Configuration will now proceed without shell functions. 441} 442 443 444 445 as_lineno_1=$LINENO 446 as_lineno_2=$LINENO 447 test "x$as_lineno_1" != "x$as_lineno_2" && 448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 449 450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 451 # uniformly replaced by the line number. The first 'sed' inserts a 452 # line-number line after each line using $LINENO; the second 'sed' 453 # does the real work. The second script uses 'N' to pair each 454 # line-number line with the line containing $LINENO, and appends 455 # trailing '-' during substitution so that $LINENO is not a special 456 # case at line end. 457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 458 # scripts with optimization help from Paolo Bonzini. Blame Lee 459 # E. McMahon (1931-1989) for sed's syntax. :-) 460 sed -n ' 461 p 462 /[$]LINENO/= 463 ' <$as_myself | 464 sed ' 465 s/[$]LINENO.*/&-/ 466 t lineno 467 b 468 :lineno 469 N 470 :loop 471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 472 t loop 473 s/-\n.*// 474 ' >$as_me.lineno && 475 chmod +x "$as_me.lineno" || 476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 477 { (exit 1); exit 1; }; } 478 479 # Don't try to exec as it changes $[0], causing all sort of problems 480 # (the dirname of $[0] is not the place where we might find the 481 # original and so on. Autoconf is especially sensitive to this). 482 . "./$as_me.lineno" 483 # Exit status is that of the last command. 484 exit 485} 486 487 488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 489 as_dirname=dirname 490else 491 as_dirname=false 492fi 493 494ECHO_C= ECHO_N= ECHO_T= 495case `echo -n x` in 496-n*) 497 case `echo 'x\c'` in 498 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 499 *) ECHO_C='\c';; 500 esac;; 501*) 502 ECHO_N='-n';; 503esac 504if expr a : '\(a\)' >/dev/null 2>&1 && 505 test "X`expr 00001 : '.*\(...\)'`" = X001; then 506 as_expr=expr 507else 508 as_expr=false 509fi 510 511rm -f conf$$ conf$$.exe conf$$.file 512if test -d conf$$.dir; then 513 rm -f conf$$.dir/conf$$.file 514else 515 rm -f conf$$.dir 516 mkdir conf$$.dir 2>/dev/null 517fi 518if (echo >conf$$.file) 2>/dev/null; then 519 if ln -s conf$$.file conf$$ 2>/dev/null; then 520 as_ln_s='ln -s' 521 # ... but there are two gotchas: 522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 524 # In both cases, we have to default to `cp -p'. 525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 526 as_ln_s='cp -p' 527 elif ln conf$$.file conf$$ 2>/dev/null; then 528 as_ln_s=ln 529 else 530 as_ln_s='cp -p' 531 fi 532else 533 as_ln_s='cp -p' 534fi 535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 536rmdir conf$$.dir 2>/dev/null 537 538if mkdir -p . 2>/dev/null; then 539 as_mkdir_p=: 540else 541 test -d ./-p && rmdir ./-p 542 as_mkdir_p=false 543fi 544 545if test -x / >/dev/null 2>&1; then 546 as_test_x='test -x' 547else 548 if ls -dL / >/dev/null 2>&1; then 549 as_ls_L_option=L 550 else 551 as_ls_L_option= 552 fi 553 as_test_x=' 554 eval sh -c '\'' 555 if test -d "$1"; then 556 test -d "$1/."; 557 else 558 case $1 in 559 -*)set "./$1";; 560 esac; 561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 562 ???[sx]*):;;*)false;;esac;fi 563 '\'' sh 564 ' 565fi 566as_executable_p=$as_test_x 567 568# Sed expression to map a string onto a valid CPP name. 569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 570 571# Sed expression to map a string onto a valid variable name. 572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 573 574 575 576 577# Check that we are running under the correct shell. 578SHELL=${CONFIG_SHELL-/bin/sh} 579 580case X$ECHO in 581X*--fallback-echo) 582 # Remove one level of quotation (which was required for Make). 583 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 584 ;; 585esac 586 587echo=${ECHO-echo} 588if test "X$1" = X--no-reexec; then 589 # Discard the --no-reexec flag, and continue. 590 shift 591elif test "X$1" = X--fallback-echo; then 592 # Avoid inline document here, it may be left over 593 : 594elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 595 # Yippee, $echo works! 596 : 597else 598 # Restart under the correct shell. 599 exec $SHELL "$0" --no-reexec ${1+"$@"} 600fi 601 602if test "X$1" = X--fallback-echo; then 603 # used as fallback echo 604 shift 605 cat <<EOF 606$* 607EOF 608 exit 0 609fi 610 611# The HP-UX ksh and POSIX shell print the target directory to stdout 612# if CDPATH is set. 613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 614 615if test -z "$ECHO"; then 616if test "X${echo_test_string+set}" != Xset; then 617# find a string as large as possible, as long as the shell can cope with it 618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 620 if (echo_test_string=`eval $cmd`) 2>/dev/null && 621 echo_test_string=`eval $cmd` && 622 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 623 then 624 break 625 fi 626 done 627fi 628 629if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 630 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 631 test "X$echo_testing_string" = "X$echo_test_string"; then 632 : 633else 634 # The Solaris, AIX, and Digital Unix default echo programs unquote 635 # backslashes. This makes it impossible to quote backslashes using 636 # echo "$something" | sed 's/\\/\\\\/g' 637 # 638 # So, first we look for a working echo in the user's PATH. 639 640 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 641 for dir in $PATH /usr/ucb; do 642 IFS="$lt_save_ifs" 643 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 644 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 645 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 646 test "X$echo_testing_string" = "X$echo_test_string"; then 647 echo="$dir/echo" 648 break 649 fi 650 done 651 IFS="$lt_save_ifs" 652 653 if test "X$echo" = Xecho; then 654 # We didn't find a better echo, so look for alternatives. 655 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 656 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 657 test "X$echo_testing_string" = "X$echo_test_string"; then 658 # This shell has a builtin print -r that does the trick. 659 echo='print -r' 660 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 661 test "X$CONFIG_SHELL" != X/bin/ksh; then 662 # If we have ksh, try running configure again with it. 663 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 664 export ORIGINAL_CONFIG_SHELL 665 CONFIG_SHELL=/bin/ksh 666 export CONFIG_SHELL 667 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 668 else 669 # Try using printf. 670 echo='printf %s\n' 671 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 672 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 673 test "X$echo_testing_string" = "X$echo_test_string"; then 674 # Cool, printf works 675 : 676 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 677 test "X$echo_testing_string" = 'X\t' && 678 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 679 test "X$echo_testing_string" = "X$echo_test_string"; then 680 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 681 export CONFIG_SHELL 682 SHELL="$CONFIG_SHELL" 683 export SHELL 684 echo="$CONFIG_SHELL $0 --fallback-echo" 685 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 686 test "X$echo_testing_string" = 'X\t' && 687 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 688 test "X$echo_testing_string" = "X$echo_test_string"; then 689 echo="$CONFIG_SHELL $0 --fallback-echo" 690 else 691 # maybe with a smaller string... 692 prev=: 693 694 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 695 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 696 then 697 break 698 fi 699 prev="$cmd" 700 done 701 702 if test "$prev" != 'sed 50q "$0"'; then 703 echo_test_string=`eval $prev` 704 export echo_test_string 705 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 706 else 707 # Oops. We lost completely, so just stick with echo. 708 echo=echo 709 fi 710 fi 711 fi 712 fi 713fi 714fi 715 716# Copy echo and quote the copy suitably for passing to libtool from 717# the Makefile, instead of quoting the original, which is used later. 718ECHO=$echo 719if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 720 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 721fi 722 723 724 725 726tagnames=${tagnames+${tagnames},}CXX 727 728tagnames=${tagnames+${tagnames},}F77 729 730exec 7<&0 </dev/null 6>&1 731 732# Name of the host. 733# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 734# so uname gets run too. 735ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 736 737# 738# Initializations. 739# 740ac_default_prefix=/usr/local 741ac_clean_files= 742ac_config_libobj_dir=. 743LIBOBJS= 744cross_compiling=no 745subdirs= 746MFLAGS= 747MAKEFLAGS= 748SHELL=${CONFIG_SHELL-/bin/sh} 749 750# Identity of this package. 751PACKAGE_NAME='libg19draw' 752PACKAGE_TARNAME='libg19draw' 753PACKAGE_VERSION='1.0.0' 754PACKAGE_STRING='libg19draw 1.0.0' 755PACKAGE_BUGREPORT='jgeboski@users.sourceforge.net' 756 757ac_default_prefix=/usr 758ac_unique_file="libg19draw.c" 759# Factoring default headers for most tests. 760ac_includes_default="\ 761#include <stdio.h> 762#ifdef HAVE_SYS_TYPES_H 763# include <sys/types.h> 764#endif 765#ifdef HAVE_SYS_STAT_H 766# include <sys/stat.h> 767#endif 768#ifdef STDC_HEADERS 769# include <stdlib.h> 770# include <stddef.h> 771#else 772# ifdef HAVE_STDLIB_H 773# include <stdlib.h> 774# endif 775#endif 776#ifdef HAVE_STRING_H 777# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 778# include <memory.h> 779# endif 780# include <string.h> 781#endif 782#ifdef HAVE_STRINGS_H 783# include <strings.h> 784#endif 785#ifdef HAVE_INTTYPES_H 786# include <inttypes.h> 787#endif 788#ifdef HAVE_STDINT_H 789# include <stdint.h> 790#endif 791#ifdef HAVE_UNISTD_H 792# include <unistd.h> 793#endif" 794 795ac_subst_vars='LTLIBOBJS 796LIBOBJS 797FreeType2_LIBS 798FreeType2_CFLAGS 799PKG_CONFIG 800LIBTOOL 801ac_ct_F77 802FFLAGS 803F77 804CXXCPP 805am__fastdepCXX_FALSE 806am__fastdepCXX_TRUE 807CXXDEPMODE 808ac_ct_CXX 809CXXFLAGS 810CXX 811CPP 812NMEDIT 813DSYMUTIL 814RANLIB 815AR 816ECHO 817LN_S 818EGREP 819GREP 820SED 821am__fastdepCC_FALSE 822am__fastdepCC_TRUE 823CCDEPMODE 824AMDEPBACKSLASH 825AMDEP_FALSE 826AMDEP_TRUE 827am__quote 828am__include 829DEPDIR 830OBJEXT 831EXEEXT 832ac_ct_CC 833CPPFLAGS 834LDFLAGS 835CFLAGS 836CC 837am__untar 838am__tar 839AMTAR 840am__leading_dot 841SET_MAKE 842AWK 843mkdir_p 844MKDIR_P 845INSTALL_STRIP_PROGRAM 846STRIP 847install_sh 848MAKEINFO 849AUTOHEADER 850AUTOMAKE 851AUTOCONF 852ACLOCAL 853VERSION 854PACKAGE 855CYGPATH_W 856am__isrc 857INSTALL_DATA 858INSTALL_SCRIPT 859INSTALL_PROGRAM 860target_os 861target_vendor 862target_cpu 863target 864host_os 865host_vendor 866host_cpu 867host 868build_os 869build_vendor 870build_cpu 871build 872target_alias 873host_alias 874build_alias 875LIBS 876ECHO_T 877ECHO_N 878ECHO_C 879DEFS 880mandir 881localedir 882libdir 883psdir 884pdfdir 885dvidir 886htmldir 887infodir 888docdir 889oldincludedir 890includedir 891localstatedir 892sharedstatedir 893sysconfdir 894datadir 895datarootdir 896libexecdir 897sbindir 898bindir 899program_transform_name 900prefix 901exec_prefix 902PACKAGE_BUGREPORT 903PACKAGE_STRING 904PACKAGE_VERSION 905PACKAGE_TARNAME 906PACKAGE_NAME 907PATH_SEPARATOR 908SHELL' 909ac_subst_files='' 910ac_user_opts=' 911enable_option_checking 912enable_dependency_tracking 913enable_shared 914enable_static 915enable_fast_install 916with_gnu_ld 917enable_libtool_lock 918with_pic 919with_tags 920enable_ft2 921' 922 ac_precious_vars='build_alias 923host_alias 924target_alias 925CC 926CFLAGS 927LDFLAGS 928LIBS 929CPPFLAGS 930CPP 931CXX 932CXXFLAGS 933CCC 934CXXCPP 935F77 936FFLAGS 937PKG_CONFIG 938FreeType2_CFLAGS 939FreeType2_LIBS' 940 941 942# Initialize some variables set by options. 943ac_init_help= 944ac_init_version=false 945ac_unrecognized_opts= 946ac_unrecognized_sep= 947# The variables have the same names as the options, with 948# dashes changed to underlines. 949cache_file=/dev/null 950exec_prefix=NONE 951no_create= 952no_recursion= 953prefix=NONE 954program_prefix=NONE 955program_suffix=NONE 956program_transform_name=s,x,x, 957silent= 958site= 959srcdir= 960verbose= 961x_includes=NONE 962x_libraries=NONE 963 964# Installation directory options. 965# These are left unexpanded so users can "make install exec_prefix=/foo" 966# and all the variables that are supposed to be based on exec_prefix 967# by default will actually change. 968# Use braces instead of parens because sh, perl, etc. also accept them. 969# (The list follows the same order as the GNU Coding Standards.) 970bindir='${exec_prefix}/bin' 971sbindir='${exec_prefix}/sbin' 972libexecdir='${exec_prefix}/libexec' 973datarootdir='${prefix}/share' 974datadir='${datarootdir}' 975sysconfdir='${prefix}/etc' 976sharedstatedir='${prefix}/com' 977localstatedir='${prefix}/var' 978includedir='${prefix}/include' 979oldincludedir='/usr/include' 980docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 981infodir='${datarootdir}/info' 982htmldir='${docdir}' 983dvidir='${docdir}' 984pdfdir='${docdir}' 985psdir='${docdir}' 986libdir='${exec_prefix}/lib' 987localedir='${datarootdir}/locale' 988mandir='${datarootdir}/man' 989 990ac_prev= 991ac_dashdash= 992for ac_option 993do 994 # If the previous option needs an argument, assign it. 995 if test -n "$ac_prev"; then 996 eval $ac_prev=\$ac_option 997 ac_prev= 998 continue 999 fi 1000 1001 case $ac_option in 1002 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1003 *) ac_optarg=yes ;; 1004 esac 1005 1006 # Accept the important Cygnus configure options, so we can diagnose typos. 1007 1008 case $ac_dashdash$ac_option in 1009 --) 1010 ac_dashdash=yes ;; 1011 1012 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1013 ac_prev=bindir ;; 1014 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1015 bindir=$ac_optarg ;; 1016 1017 -build | --build | --buil | --bui | --bu) 1018 ac_prev=build_alias ;; 1019 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1020 build_alias=$ac_optarg ;; 1021 1022 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1023 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1024 ac_prev=cache_file ;; 1025 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1026 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1027 cache_file=$ac_optarg ;; 1028 1029 --config-cache | -C) 1030 cache_file=config.cache ;; 1031 1032 -datadir | --datadir | --datadi | --datad) 1033 ac_prev=datadir ;; 1034 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1035 datadir=$ac_optarg ;; 1036 1037 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1038 | --dataroo | --dataro | --datar) 1039 ac_prev=datarootdir ;; 1040 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1041 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1042 datarootdir=$ac_optarg ;; 1043 1044 -disable-* | --disable-*) 1045 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1046 # Reject names that are not valid shell variable names. 1047 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1048 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1049 { (exit 1); exit 1; }; } 1050 ac_useropt_orig=$ac_useropt 1051 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1052 case $ac_user_opts in 1053 *" 1054"enable_$ac_useropt" 1055"*) ;; 1056 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1057 ac_unrecognized_sep=', ';; 1058 esac 1059 eval enable_$ac_useropt=no ;; 1060 1061 -docdir | --docdir | --docdi | --doc | --do) 1062 ac_prev=docdir ;; 1063 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1064 docdir=$ac_optarg ;; 1065 1066 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1067 ac_prev=dvidir ;; 1068 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1069 dvidir=$ac_optarg ;; 1070 1071 -enable-* | --enable-*) 1072 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1073 # Reject names that are not valid shell variable names. 1074 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1075 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1076 { (exit 1); exit 1; }; } 1077 ac_useropt_orig=$ac_useropt 1078 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1079 case $ac_user_opts in 1080 *" 1081"enable_$ac_useropt" 1082"*) ;; 1083 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1084 ac_unrecognized_sep=', ';; 1085 esac 1086 eval enable_$ac_useropt=\$ac_optarg ;; 1087 1088 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1089 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1090 | --exec | --exe | --ex) 1091 ac_prev=exec_prefix ;; 1092 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1093 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1094 | --exec=* | --exe=* | --ex=*) 1095 exec_prefix=$ac_optarg ;; 1096 1097 -gas | --gas | --ga | --g) 1098 # Obsolete; use --with-gas. 1099 with_gas=yes ;; 1100 1101 -help | --help | --hel | --he | -h) 1102 ac_init_help=long ;; 1103 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1104 ac_init_help=recursive ;; 1105 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1106 ac_init_help=short ;; 1107 1108 -host | --host | --hos | --ho) 1109 ac_prev=host_alias ;; 1110 -host=* | --host=* | --hos=* | --ho=*) 1111 host_alias=$ac_optarg ;; 1112 1113 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1114 ac_prev=htmldir ;; 1115 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1116 | --ht=*) 1117 htmldir=$ac_optarg ;; 1118 1119 -includedir | --includedir | --includedi | --included | --include \ 1120 | --includ | --inclu | --incl | --inc) 1121 ac_prev=includedir ;; 1122 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1123 | --includ=* | --inclu=* | --incl=* | --inc=*) 1124 includedir=$ac_optarg ;; 1125 1126 -infodir | --infodir | --infodi | --infod | --info | --inf) 1127 ac_prev=infodir ;; 1128 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1129 infodir=$ac_optarg ;; 1130 1131 -libdir | --libdir | --libdi | --libd) 1132 ac_prev=libdir ;; 1133 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1134 libdir=$ac_optarg ;; 1135 1136 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1137 | --libexe | --libex | --libe) 1138 ac_prev=libexecdir ;; 1139 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1140 | --libexe=* | --libex=* | --libe=*) 1141 libexecdir=$ac_optarg ;; 1142 1143 -localedir | --localedir | --localedi | --localed | --locale) 1144 ac_prev=localedir ;; 1145 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1146 localedir=$ac_optarg ;; 1147 1148 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1149 | --localstate | --localstat | --localsta | --localst | --locals) 1150 ac_prev=localstatedir ;; 1151 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1152 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1153 localstatedir=$ac_optarg ;; 1154 1155 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1156 ac_prev=mandir ;; 1157 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1158 mandir=$ac_optarg ;; 1159 1160 -nfp | --nfp | --nf) 1161 # Obsolete; use --without-fp. 1162 with_fp=no ;; 1163 1164 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1165 | --no-cr | --no-c | -n) 1166 no_create=yes ;; 1167 1168 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1169 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1170 no_recursion=yes ;; 1171 1172 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1173 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1174 | --oldin | --oldi | --old | --ol | --o) 1175 ac_prev=oldincludedir ;; 1176 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1177 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1178 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1179 oldincludedir=$ac_optarg ;; 1180 1181 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1182 ac_prev=prefix ;; 1183 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1184 prefix=$ac_optarg ;; 1185 1186 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1187 | --program-pre | --program-pr | --program-p) 1188 ac_prev=program_prefix ;; 1189 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1190 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1191 program_prefix=$ac_optarg ;; 1192 1193 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1194 | --program-suf | --program-su | --program-s) 1195 ac_prev=program_suffix ;; 1196 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1197 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1198 program_suffix=$ac_optarg ;; 1199 1200 -program-transform-name | --program-transform-name \ 1201 | --program-transform-nam | --program-transform-na \ 1202 | --program-transform-n | --program-transform- \ 1203 | --program-transform | --program-transfor \ 1204 | --program-transfo | --program-transf \ 1205 | --program-trans | --program-tran \ 1206 | --progr-tra | --program-tr | --program-t) 1207 ac_prev=program_transform_name ;; 1208 -program-transform-name=* | --program-transform-name=* \ 1209 | --program-transform-nam=* | --program-transform-na=* \ 1210 | --program-transform-n=* | --program-transform-=* \ 1211 | --program-transform=* | --program-transfor=* \ 1212 | --program-transfo=* | --program-transf=* \ 1213 | --program-trans=* | --program-tran=* \ 1214 | --progr-tra=* | --program-tr=* | --program-t=*) 1215 program_transform_name=$ac_optarg ;; 1216 1217 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1218 ac_prev=pdfdir ;; 1219 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1220 pdfdir=$ac_optarg ;; 1221 1222 -psdir | --psdir | --psdi | --psd | --ps) 1223 ac_prev=psdir ;; 1224 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1225 psdir=$ac_optarg ;; 1226 1227 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1228 | -silent | --silent | --silen | --sile | --sil) 1229 silent=yes ;; 1230 1231 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1232 ac_prev=sbindir ;; 1233 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1234 | --sbi=* | --sb=*) 1235 sbindir=$ac_optarg ;; 1236 1237 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1238 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1239 | --sharedst | --shareds | --shared | --share | --shar \ 1240 | --sha | --sh) 1241 ac_prev=sharedstatedir ;; 1242 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1243 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1244 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1245 | --sha=* | --sh=*) 1246 sharedstatedir=$ac_optarg ;; 1247 1248 -site | --site | --sit) 1249 ac_prev=site ;; 1250 -site=* | --site=* | --sit=*) 1251 site=$ac_optarg ;; 1252 1253 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1254 ac_prev=srcdir ;; 1255 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1256 srcdir=$ac_optarg ;; 1257 1258 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1259 | --syscon | --sysco | --sysc | --sys | --sy) 1260 ac_prev=sysconfdir ;; 1261 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1262 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1263 sysconfdir=$ac_optarg ;; 1264 1265 -target | --target | --targe | --targ | --tar | --ta | --t) 1266 ac_prev=target_alias ;; 1267 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1268 target_alias=$ac_optarg ;; 1269 1270 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1271 verbose=yes ;; 1272 1273 -version | --version | --versio | --versi | --vers | -V) 1274 ac_init_version=: ;; 1275 1276 -with-* | --with-*) 1277 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1278 # Reject names that are not valid shell variable names. 1279 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1280 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1281 { (exit 1); exit 1; }; } 1282 ac_useropt_orig=$ac_useropt 1283 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1284 case $ac_user_opts in 1285 *" 1286"with_$ac_useropt" 1287"*) ;; 1288 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1289 ac_unrecognized_sep=', ';; 1290 esac 1291 eval with_$ac_useropt=\$ac_optarg ;; 1292 1293 -without-* | --without-*) 1294 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1295 # Reject names that are not valid shell variable names. 1296 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1297 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1298 { (exit 1); exit 1; }; } 1299 ac_useropt_orig=$ac_useropt 1300 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1301 case $ac_user_opts in 1302 *" 1303"with_$ac_useropt" 1304"*) ;; 1305 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1306 ac_unrecognized_sep=', ';; 1307 esac 1308 eval with_$ac_useropt=no ;; 1309 1310 --x) 1311 # Obsolete; use --with-x. 1312 with_x=yes ;; 1313 1314 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1315 | --x-incl | --x-inc | --x-in | --x-i) 1316 ac_prev=x_includes ;; 1317 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1318 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1319 x_includes=$ac_optarg ;; 1320 1321 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1322 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1323 ac_prev=x_libraries ;; 1324 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1325 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1326 x_libraries=$ac_optarg ;; 1327 1328 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1329Try \`$0 --help' for more information." >&2 1330 { (exit 1); exit 1; }; } 1331 ;; 1332 1333 *=*) 1334 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1335 # Reject names that are not valid shell variable names. 1336 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1337 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1338 { (exit 1); exit 1; }; } 1339 eval $ac_envvar=\$ac_optarg 1340 export $ac_envvar ;; 1341 1342 *) 1343 # FIXME: should be removed in autoconf 3.0. 1344 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1345 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1346 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1347 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1348 ;; 1349 1350 esac 1351done 1352 1353if test -n "$ac_prev"; then 1354 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1355 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1356 { (exit 1); exit 1; }; } 1357fi 1358 1359if test -n "$ac_unrecognized_opts"; then 1360 case $enable_option_checking in 1361 no) ;; 1362 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1363 { (exit 1); exit 1; }; } ;; 1364 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1365 esac 1366fi 1367 1368# Check all directory arguments for consistency. 1369for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1370 datadir sysconfdir sharedstatedir localstatedir includedir \ 1371 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1372 libdir localedir mandir 1373do 1374 eval ac_val=\$$ac_var 1375 # Remove trailing slashes. 1376 case $ac_val in 1377 */ ) 1378 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1379 eval $ac_var=\$ac_val;; 1380 esac 1381 # Be sure to have absolute directory names. 1382 case $ac_val in 1383 [\\/$]* | ?:[\\/]* ) continue;; 1384 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1385 esac 1386 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1387 { (exit 1); exit 1; }; } 1388done 1389 1390# There might be people who depend on the old broken behavior: `$host' 1391# used to hold the argument of --host etc. 1392# FIXME: To remove some day. 1393build=$build_alias 1394host=$host_alias 1395target=$target_alias 1396 1397# FIXME: To remove some day. 1398if test "x$host_alias" != x; then 1399 if test "x$build_alias" = x; then 1400 cross_compiling=maybe 1401 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1402 If a cross compiler is detected then cross compile mode will be used." >&2 1403 elif test "x$build_alias" != "x$host_alias"; then 1404 cross_compiling=yes 1405 fi 1406fi 1407 1408ac_tool_prefix= 1409test -n "$host_alias" && ac_tool_prefix=$host_alias- 1410 1411test "$silent" = yes && exec 6>/dev/null 1412 1413 1414ac_pwd=`pwd` && test -n "$ac_pwd" && 1415ac_ls_di=`ls -di .` && 1416ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1417 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1418 { (exit 1); exit 1; }; } 1419test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1420 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1421 { (exit 1); exit 1; }; } 1422 1423 1424# Find the source files, if location was not specified. 1425if test -z "$srcdir"; then 1426 ac_srcdir_defaulted=yes 1427 # Try the directory containing this script, then the parent directory. 1428 ac_confdir=`$as_dirname -- "$as_myself" || 1429$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1430 X"$as_myself" : 'X\(//\)[^/]' \| \ 1431 X"$as_myself" : 'X\(//\)$' \| \ 1432 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1433$as_echo X"$as_myself" | 1434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1435 s//\1/ 1436 q 1437 } 1438 /^X\(\/\/\)[^/].*/{ 1439 s//\1/ 1440 q 1441 } 1442 /^X\(\/\/\)$/{ 1443 s//\1/ 1444 q 1445 } 1446 /^X\(\/\).*/{ 1447 s//\1/ 1448 q 1449 } 1450 s/.*/./; q'` 1451 srcdir=$ac_confdir 1452 if test ! -r "$srcdir/$ac_unique_file"; then 1453 srcdir=.. 1454 fi 1455else 1456 ac_srcdir_defaulted=no 1457fi 1458if test ! -r "$srcdir/$ac_unique_file"; then 1459 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1460 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1461 { (exit 1); exit 1; }; } 1462fi 1463ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1464ac_abs_confdir=`( 1465 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1466 { (exit 1); exit 1; }; } 1467 pwd)` 1468# When building in place, set srcdir=. 1469if test "$ac_abs_confdir" = "$ac_pwd"; then 1470 srcdir=. 1471fi 1472# Remove unnecessary trailing slashes from srcdir. 1473# Double slashes in file names in object file debugging info 1474# mess up M-x gdb in Emacs. 1475case $srcdir in 1476*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1477esac 1478for ac_var in $ac_precious_vars; do 1479 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1480 eval ac_env_${ac_var}_value=\$${ac_var} 1481 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1482 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1483done 1484 1485# 1486# Report the --help message. 1487# 1488if test "$ac_init_help" = "long"; then 1489 # Omit some internal or obsolete options to make the list less imposing. 1490 # This message is too long to be a string in the A/UX 3.1 sh. 1491 cat <<_ACEOF 1492\`configure' configures libg19draw 1.0.0 to adapt to many kinds of systems. 1493 1494Usage: $0 [OPTION]... [VAR=VALUE]... 1495 1496To assign environment variables (e.g., CC, CFLAGS...), specify them as 1497VAR=VALUE. See below for descriptions of some of the useful variables. 1498 1499Defaults for the options are specified in brackets. 1500 1501Configuration: 1502 -h, --help display this help and exit 1503 --help=short display options specific to this package 1504 --help=recursive display the short help of all the included packages 1505 -V, --version display version information and exit 1506 -q, --quiet, --silent do not print \`checking...' messages 1507 --cache-file=FILE cache test results in FILE [disabled] 1508 -C, --config-cache alias for \`--cache-file=config.cache' 1509 -n, --no-create do not create output files 1510 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1511 1512Installation directories: 1513 --prefix=PREFIX install architecture-independent files in PREFIX 1514 [$ac_default_prefix] 1515 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1516 [PREFIX] 1517 1518By default, \`make install' will install all the files in 1519\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1520an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1521for instance \`--prefix=\$HOME'. 1522 1523For better control, use the options below. 1524 1525Fine tuning of the installation directories: 1526 --bindir=DIR user executables [EPREFIX/bin] 1527 --sbindir=DIR system admin executables [EPREFIX/sbin] 1528 --libexecdir=DIR program executables [EPREFIX/libexec] 1529 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1530 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1531 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1532 --libdir=DIR object code libraries [EPREFIX/lib] 1533 --includedir=DIR C header files [PREFIX/include] 1534 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1535 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1536 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1537 --infodir=DIR info documentation [DATAROOTDIR/info] 1538 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1539 --mandir=DIR man documentation [DATAROOTDIR/man] 1540 --docdir=DIR documentation root [DATAROOTDIR/doc/libg19draw] 1541 --htmldir=DIR html documentation [DOCDIR] 1542 --dvidir=DIR dvi documentation [DOCDIR] 1543 --pdfdir=DIR pdf documentation [DOCDIR] 1544 --psdir=DIR ps documentation [DOCDIR] 1545_ACEOF 1546 1547 cat <<\_ACEOF 1548 1549Program names: 1550 --program-prefix=PREFIX prepend PREFIX to installed program names 1551 --program-suffix=SUFFIX append SUFFIX to installed program names 1552 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1553 1554System types: 1555 --build=BUILD configure for building on BUILD [guessed] 1556 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1557 --target=TARGET configure for building compilers for TARGET [HOST] 1558_ACEOF 1559fi 1560 1561if test -n "$ac_init_help"; then 1562 case $ac_init_help in 1563 short | recursive ) echo "Configuration of libg19draw 1.0.0:";; 1564 esac 1565 cat <<\_ACEOF 1566 1567Optional Features: 1568 --disable-option-checking ignore unrecognized --enable/--with options 1569 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1570 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1571 --disable-dependency-tracking speeds up one-time build 1572 --enable-dependency-tracking do not reject slow dependency extractors 1573 --enable-shared[=PKGS] build shared libraries [default=yes] 1574 --enable-static[=PKGS] build static libraries [default=yes] 1575 --enable-fast-install[=PKGS] 1576 optimize for fast installation [default=yes] 1577 --disable-libtool-lock avoid locking (might break parallel builds) 1578--enable-ft2 enable FreeType2 support 1579 1580Optional Packages: 1581 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1582 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1583 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1584 --with-pic try to use only PIC/non-PIC objects [default=use 1585 both] 1586 --with-tags[=TAGS] include additional configurations [automatic] 1587 1588Some influential environment variables: 1589 CC C compiler command 1590 CFLAGS C compiler flags 1591 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1592 nonstandard directory <lib dir> 1593 LIBS libraries to pass to the linker, e.g. -l<library> 1594 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1595 you have headers in a nonstandard directory <include dir> 1596 CPP C preprocessor 1597 CXX C++ compiler command 1598 CXXFLAGS C++ compiler flags 1599 CXXCPP C++ preprocessor 1600 F77 Fortran 77 compiler command 1601 FFLAGS Fortran 77 compiler flags 1602 PKG_CONFIG path to pkg-config utility 1603 FreeType2_CFLAGS 1604 C compiler flags for FreeType2, overriding pkg-config 1605 FreeType2_LIBS 1606 linker flags for FreeType2, overriding pkg-config 1607 1608Use these variables to override the choices made by `configure' or to help 1609it to find libraries and programs with nonstandard names/locations. 1610 1611Report bugs to <jgeboski@users.sourceforge.net>. 1612_ACEOF 1613ac_status=$? 1614fi 1615 1616if test "$ac_init_help" = "recursive"; then 1617 # If there are subdirs, report their specific --help. 1618 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1619 test -d "$ac_dir" || 1620 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1621 continue 1622 ac_builddir=. 1623 1624case "$ac_dir" in 1625.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1626*) 1627 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1628 # A ".." for each directory in $ac_dir_suffix. 1629 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1630 case $ac_top_builddir_sub in 1631 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1632 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1633 esac ;; 1634esac 1635ac_abs_top_builddir=$ac_pwd 1636ac_abs_builddir=$ac_pwd$ac_dir_suffix 1637# for backward compatibility: 1638ac_top_builddir=$ac_top_build_prefix 1639 1640case $srcdir in 1641 .) # We are building in place. 1642 ac_srcdir=. 1643 ac_top_srcdir=$ac_top_builddir_sub 1644 ac_abs_top_srcdir=$ac_pwd ;; 1645 [\\/]* | ?:[\\/]* ) # Absolute name. 1646 ac_srcdir=$srcdir$ac_dir_suffix; 1647 ac_top_srcdir=$srcdir 1648 ac_abs_top_srcdir=$srcdir ;; 1649 *) # Relative name. 1650 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1651 ac_top_srcdir=$ac_top_build_prefix$srcdir 1652 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1653esac 1654ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1655 1656 cd "$ac_dir" || { ac_status=$?; continue; } 1657 # Check for guested configure. 1658 if test -f "$ac_srcdir/configure.gnu"; then 1659 echo && 1660 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1661 elif test -f "$ac_srcdir/configure"; then 1662 echo && 1663 $SHELL "$ac_srcdir/configure" --help=recursive 1664 else 1665 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1666 fi || ac_status=$? 1667 cd "$ac_pwd" || { ac_status=$?; break; } 1668 done 1669fi 1670 1671test -n "$ac_init_help" && exit $ac_status 1672if $ac_init_version; then 1673 cat <<\_ACEOF 1674libg19draw configure 1.0.0 1675generated by GNU Autoconf 2.63 1676 1677Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 16782002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1679This configure script is free software; the Free Software Foundation 1680gives unlimited permission to copy, distribute and modify it. 1681_ACEOF 1682 exit 1683fi 1684cat >config.log <<_ACEOF 1685This file contains any messages produced by compilers while 1686running configure, to aid debugging if configure makes a mistake. 1687 1688It was created by libg19draw $as_me 1.0.0, which was 1689generated by GNU Autoconf 2.63. Invocation command line was 1690 1691 $ $0 $@ 1692 1693_ACEOF 1694exec 5>>config.log 1695{ 1696cat <<_ASUNAME 1697## --------- ## 1698## Platform. ## 1699## --------- ## 1700 1701hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1702uname -m = `(uname -m) 2>/dev/null || echo unknown` 1703uname -r = `(uname -r) 2>/dev/null || echo unknown` 1704uname -s = `(uname -s) 2>/dev/null || echo unknown` 1705uname -v = `(uname -v) 2>/dev/null || echo unknown` 1706 1707/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1708/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1709 1710/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1711/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1712/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1713/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1714/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1715/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1716/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1717 1718_ASUNAME 1719 1720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1721for as_dir in $PATH 1722do 1723 IFS=$as_save_IFS 1724 test -z "$as_dir" && as_dir=. 1725 $as_echo "PATH: $as_dir" 1726done 1727IFS=$as_save_IFS 1728 1729} >&5 1730 1731cat >&5 <<_ACEOF 1732 1733 1734## ----------- ## 1735## Core tests. ## 1736## ----------- ## 1737 1738_ACEOF 1739 1740 1741# Keep a trace of the command line. 1742# Strip out --no-create and --no-recursion so they do not pile up. 1743# Strip out --silent because we don't want to record it for future runs. 1744# Also quote any args containing shell meta-characters. 1745# Make two passes to allow for proper duplicate-argument suppression. 1746ac_configure_args= 1747ac_configure_args0= 1748ac_configure_args1= 1749ac_must_keep_next=false 1750for ac_pass in 1 2 1751do 1752 for ac_arg 1753 do 1754 case $ac_arg in 1755 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1756 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1757 | -silent | --silent | --silen | --sile | --sil) 1758 continue ;; 1759 *\'*) 1760 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1761 esac 1762 case $ac_pass in 1763 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1764 2) 1765 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1766 if test $ac_must_keep_next = true; then 1767 ac_must_keep_next=false # Got value, back to normal. 1768 else 1769 case $ac_arg in 1770 *=* | --config-cache | -C | -disable-* | --disable-* \ 1771 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1772 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1773 | -with-* | --with-* | -without-* | --without-* | --x) 1774 case "$ac_configure_args0 " in 1775 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1776 esac 1777 ;; 1778 -* ) ac_must_keep_next=true ;; 1779 esac 1780 fi 1781 ac_configure_args="$ac_configure_args '$ac_arg'" 1782 ;; 1783 esac 1784 done 1785done 1786$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1787$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1788 1789# When interrupted or exit'd, cleanup temporary files, and complete 1790# config.log. We remove comments because anyway the quotes in there 1791# would cause problems or look ugly. 1792# WARNING: Use '\'' to represent an apostrophe within the trap. 1793# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1794trap 'exit_status=$? 1795 # Save into config.log some information that might help in debugging. 1796 { 1797 echo 1798 1799 cat <<\_ASBOX 1800## ---------------- ## 1801## Cache variables. ## 1802## ---------------- ## 1803_ASBOX 1804 echo 1805 # The following way of writing the cache mishandles newlines in values, 1806( 1807 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1808 eval ac_val=\$$ac_var 1809 case $ac_val in #( 1810 *${as_nl}*) 1811 case $ac_var in #( 1812 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1813$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1814 esac 1815 case $ac_var in #( 1816 _ | IFS | as_nl) ;; #( 1817 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1818 *) $as_unset $ac_var ;; 1819 esac ;; 1820 esac 1821 done 1822 (set) 2>&1 | 1823 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1824 *${as_nl}ac_space=\ *) 1825 sed -n \ 1826 "s/'\''/'\''\\\\'\'''\''/g; 1827 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1828 ;; #( 1829 *) 1830 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1831 ;; 1832 esac | 1833 sort 1834) 1835 echo 1836 1837 cat <<\_ASBOX 1838## ----------------- ## 1839## Output variables. ## 1840## ----------------- ## 1841_ASBOX 1842 echo 1843 for ac_var in $ac_subst_vars 1844 do 1845 eval ac_val=\$$ac_var 1846 case $ac_val in 1847 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1848 esac 1849 $as_echo "$ac_var='\''$ac_val'\''" 1850 done | sort 1851 echo 1852 1853 if test -n "$ac_subst_files"; then 1854 cat <<\_ASBOX 1855## ------------------- ## 1856## File substitutions. ## 1857## ------------------- ## 1858_ASBOX 1859 echo 1860 for ac_var in $ac_subst_files 1861 do 1862 eval ac_val=\$$ac_var 1863 case $ac_val in 1864 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1865 esac 1866 $as_echo "$ac_var='\''$ac_val'\''" 1867 done | sort 1868 echo 1869 fi 1870 1871 if test -s confdefs.h; then 1872 cat <<\_ASBOX 1873## ----------- ## 1874## confdefs.h. ## 1875## ----------- ## 1876_ASBOX 1877 echo 1878 cat confdefs.h 1879 echo 1880 fi 1881 test "$ac_signal" != 0 && 1882 $as_echo "$as_me: caught signal $ac_signal" 1883 $as_echo "$as_me: exit $exit_status" 1884 } >&5 1885 rm -f core *.core core.conftest.* && 1886 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1887 exit $exit_status 1888' 0 1889for ac_signal in 1 2 13 15; do 1890 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1891done 1892ac_signal=0 1893 1894# confdefs.h avoids OS command line length limits that DEFS can exceed. 1895rm -f -r conftest* confdefs.h 1896 1897# Predefined preprocessor variables. 1898 1899cat >>confdefs.h <<_ACEOF 1900#define PACKAGE_NAME "$PACKAGE_NAME" 1901_ACEOF 1902 1903 1904cat >>confdefs.h <<_ACEOF 1905#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1906_ACEOF 1907 1908 1909cat >>confdefs.h <<_ACEOF 1910#define PACKAGE_VERSION "$PACKAGE_VERSION" 1911_ACEOF 1912 1913 1914cat >>confdefs.h <<_ACEOF 1915#define PACKAGE_STRING "$PACKAGE_STRING" 1916_ACEOF 1917 1918 1919cat >>confdefs.h <<_ACEOF 1920#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1921_ACEOF 1922 1923 1924# Let the site file select an alternate cache file if it wants to. 1925# Prefer an explicitly selected file to automatically selected ones. 1926ac_site_file1=NONE 1927ac_site_file2=NONE 1928if test -n "$CONFIG_SITE"; then 1929 ac_site_file1=$CONFIG_SITE 1930elif test "x$prefix" != xNONE; then 1931 ac_site_file1=$prefix/share/config.site 1932 ac_site_file2=$prefix/etc/config.site 1933else 1934 ac_site_file1=$ac_default_prefix/share/config.site 1935 ac_site_file2=$ac_default_prefix/etc/config.site 1936fi 1937for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1938do 1939 test "x$ac_site_file" = xNONE && continue 1940 if test -r "$ac_site_file"; then 1941 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1942$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1943 sed 's/^/| /' "$ac_site_file" >&5 1944 . "$ac_site_file" 1945 fi 1946done 1947 1948if test -r "$cache_file"; then 1949 # Some versions of bash will fail to source /dev/null (special 1950 # files actually), so we avoid doing that. 1951 if test -f "$cache_file"; then 1952 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1953$as_echo "$as_me: loading cache $cache_file" >&6;} 1954 case $cache_file in 1955 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1956 *) . "./$cache_file";; 1957 esac 1958 fi 1959else 1960 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1961$as_echo "$as_me: creating cache $cache_file" >&6;} 1962 >$cache_file 1963fi 1964 1965# Check that the precious variables saved in the cache have kept the same 1966# value. 1967ac_cache_corrupted=false 1968for ac_var in $ac_precious_vars; do 1969 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1970 eval ac_new_set=\$ac_env_${ac_var}_set 1971 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1972 eval ac_new_val=\$ac_env_${ac_var}_value 1973 case $ac_old_set,$ac_new_set in 1974 set,) 1975 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1976$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1977 ac_cache_corrupted=: ;; 1978 ,set) 1979 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1980$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1981 ac_cache_corrupted=: ;; 1982 ,);; 1983 *) 1984 if test "x$ac_old_val" != "x$ac_new_val"; then 1985 # differences in whitespace do not lead to failure. 1986 ac_old_val_w=`echo x $ac_old_val` 1987 ac_new_val_w=`echo x $ac_new_val` 1988 if test "$ac_old_val_w" != "$ac_new_val_w"; then 1989 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1990$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1991 ac_cache_corrupted=: 1992 else 1993 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 1994$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 1995 eval $ac_var=\$ac_old_val 1996 fi 1997 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 1998$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 1999 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 2000$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2001 fi;; 2002 esac 2003 # Pass precious variables to config.status. 2004 if test "$ac_new_set" = set; then 2005 case $ac_new_val in 2006 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2007 *) ac_arg=$ac_var=$ac_new_val ;; 2008 esac 2009 case " $ac_configure_args " in 2010 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2011 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2012 esac 2013 fi 2014done 2015if $ac_cache_corrupted; then 2016 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2017$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2018 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2019$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2020 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2021$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2022 { (exit 1); exit 1; }; } 2023fi 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049ac_ext=c 2050ac_cpp='$CPP $CPPFLAGS' 2051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2053ac_compiler_gnu=$ac_cv_c_compiler_gnu 2054 2055 2056 2057ac_aux_dir= 2058for ac_dir in config "$srcdir"/config; do 2059 if test -f "$ac_dir/install-sh"; then 2060 ac_aux_dir=$ac_dir 2061 ac_install_sh="$ac_aux_dir/install-sh -c" 2062 break 2063 elif test -f "$ac_dir/install.sh"; then 2064 ac_aux_dir=$ac_dir 2065 ac_install_sh="$ac_aux_dir/install.sh -c" 2066 break 2067 elif test -f "$ac_dir/shtool"; then 2068 ac_aux_dir=$ac_dir 2069 ac_install_sh="$ac_aux_dir/shtool install -c" 2070 break 2071 fi 2072done 2073if test -z "$ac_aux_dir"; then 2074 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5 2075$as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;} 2076 { (exit 1); exit 1; }; } 2077fi 2078 2079# These three variables are undocumented and unsupported, 2080# and are intended to be withdrawn in a future Autoconf release. 2081# They can cause serious problems if a builder's source tree is in a directory 2082# whose full name contains unusual characters. 2083ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2084ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2085ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2086 2087 2088# Make sure we can run config.sub. 2089$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2090 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2091$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2092 { (exit 1); exit 1; }; } 2093 2094{ $as_echo "$as_me:$LINENO: checking build system type" >&5 2095$as_echo_n "checking build system type... " >&6; } 2096if test "${ac_cv_build+set}" = set; then 2097 $as_echo_n "(cached) " >&6 2098else 2099 ac_build_alias=$build_alias 2100test "x$ac_build_alias" = x && 2101 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2102test "x$ac_build_alias" = x && 2103 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2104$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2105 { (exit 1); exit 1; }; } 2106ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2107 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2108$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2109 { (exit 1); exit 1; }; } 2110 2111fi 2112{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2113$as_echo "$ac_cv_build" >&6; } 2114case $ac_cv_build in 2115*-*-*) ;; 2116*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2117$as_echo "$as_me: error: invalid value of canonical build" >&2;} 2118 { (exit 1); exit 1; }; };; 2119esac 2120build=$ac_cv_build 2121ac_save_IFS=$IFS; IFS='-' 2122set x $ac_cv_build 2123shift 2124build_cpu=$1 2125build_vendor=$2 2126shift; shift 2127# Remember, the first character of IFS is used to create $*, 2128# except with old shells: 2129build_os=$* 2130IFS=$ac_save_IFS 2131case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2132 2133 2134{ $as_echo "$as_me:$LINENO: checking host system type" >&5 2135$as_echo_n "checking host system type... " >&6; } 2136if test "${ac_cv_host+set}" = set; then 2137 $as_echo_n "(cached) " >&6 2138else 2139 if test "x$host_alias" = x; then 2140 ac_cv_host=$ac_cv_build 2141else 2142 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2143 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2144$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2145 { (exit 1); exit 1; }; } 2146fi 2147 2148fi 2149{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2150$as_echo "$ac_cv_host" >&6; } 2151case $ac_cv_host in 2152*-*-*) ;; 2153*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2154$as_echo "$as_me: error: invalid value of canonical host" >&2;} 2155 { (exit 1); exit 1; }; };; 2156esac 2157host=$ac_cv_host 2158ac_save_IFS=$IFS; IFS='-' 2159set x $ac_cv_host 2160shift 2161host_cpu=$1 2162host_vendor=$2 2163shift; shift 2164# Remember, the first character of IFS is used to create $*, 2165# except with old shells: 2166host_os=$* 2167IFS=$ac_save_IFS 2168case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2169 2170 2171{ $as_echo "$as_me:$LINENO: checking target system type" >&5 2172$as_echo_n "checking target system type... " >&6; } 2173if test "${ac_cv_target+set}" = set; then 2174 $as_echo_n "(cached) " >&6 2175else 2176 if test "x$target_alias" = x; then 2177 ac_cv_target=$ac_cv_host 2178else 2179 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2180 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 2181$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} 2182 { (exit 1); exit 1; }; } 2183fi 2184 2185fi 2186{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5 2187$as_echo "$ac_cv_target" >&6; } 2188case $ac_cv_target in 2189*-*-*) ;; 2190*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 2191$as_echo "$as_me: error: invalid value of canonical target" >&2;} 2192 { (exit 1); exit 1; }; };; 2193esac 2194target=$ac_cv_target 2195ac_save_IFS=$IFS; IFS='-' 2196set x $ac_cv_target 2197shift 2198target_cpu=$1 2199target_vendor=$2 2200shift; shift 2201# Remember, the first character of IFS is used to create $*, 2202# except with old shells: 2203target_os=$* 2204IFS=$ac_save_IFS 2205case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2206 2207 2208# The aliases save the names the user supplied, while $host etc. 2209# will get canonicalized. 2210test -n "$target_alias" && 2211 test "$program_prefix$program_suffix$program_transform_name" = \ 2212 NONENONEs,x,x, && 2213 program_prefix=${target_alias}- 2214 2215am__api_version='1.10' 2216 2217# Find a good install program. We prefer a C program (faster), 2218# so one script is as good as another. But avoid the broken or 2219# incompatible versions: 2220# SysV /etc/install, /usr/sbin/install 2221# SunOS /usr/etc/install 2222# IRIX /sbin/install 2223# AIX /bin/install 2224# AmigaOS /C/install, which installs bootblocks on floppy discs 2225# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2226# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2227# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2228# OS/2's system install, which has a completely different semantic 2229# ./install, which can be erroneously created by make from ./install.sh. 2230# Reject install programs that cannot install multiple files. 2231{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2232$as_echo_n "checking for a BSD-compatible install... " >&6; } 2233if test -z "$INSTALL"; then 2234if test "${ac_cv_path_install+set}" = set; then 2235 $as_echo_n "(cached) " >&6 2236else 2237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2238for as_dir in $PATH 2239do 2240 IFS=$as_save_IFS 2241 test -z "$as_dir" && as_dir=. 2242 # Account for people who put trailing slashes in PATH elements. 2243case $as_dir/ in 2244 ./ | .// | /cC/* | \ 2245 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2246 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2247 /usr/ucb/* ) ;; 2248 *) 2249 # OSF1 and SCO ODT 3.0 have their own names for install. 2250 # Don't use installbsd from OSF since it installs stuff as root 2251 # by default. 2252 for ac_prog in ginstall scoinst install; do 2253 for ac_exec_ext in '' $ac_executable_extensions; do 2254 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2255 if test $ac_prog = install && 2256 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2257 # AIX install. It has an incompatible calling convention. 2258 : 2259 elif test $ac_prog = install && 2260 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2261 # program-specific install script used by HP pwplus--don't use. 2262 : 2263 else 2264 rm -rf conftest.one conftest.two conftest.dir 2265 echo one > conftest.one 2266 echo two > conftest.two 2267 mkdir conftest.dir 2268 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2269 test -s conftest.one && test -s conftest.two && 2270 test -s conftest.dir/conftest.one && 2271 test -s conftest.dir/conftest.two 2272 then 2273 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2274 break 3 2275 fi 2276 fi 2277 fi 2278 done 2279 done 2280 ;; 2281esac 2282 2283done 2284IFS=$as_save_IFS 2285 2286rm -rf conftest.one conftest.two conftest.dir 2287 2288fi 2289 if test "${ac_cv_path_install+set}" = set; then 2290 INSTALL=$ac_cv_path_install 2291 else 2292 # As a last resort, use the slow shell script. Don't cache a 2293 # value for INSTALL within a source directory, because that will 2294 # break other packages using the cache if that directory is 2295 # removed, or if the value is a relative name. 2296 INSTALL=$ac_install_sh 2297 fi 2298fi 2299{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2300$as_echo "$INSTALL" >&6; } 2301 2302# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2303# It thinks the first close brace ends the variable substitution. 2304test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2305 2306test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2307 2308test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2309 2310{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2311$as_echo_n "checking whether build environment is sane... " >&6; } 2312# Just in case 2313sleep 1 2314echo timestamp > conftest.file 2315# Do `set' in a subshell so we don't clobber the current shell's 2316# arguments. Must try -L first in case configure is actually a 2317# symlink; some systems play weird games with the mod time of symlinks 2318# (eg FreeBSD returns the mod time of the symlink's containing 2319# directory). 2320if ( 2321 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2322 if test "$*" = "X"; then 2323 # -L didn't work. 2324 set X `ls -t $srcdir/configure conftest.file` 2325 fi 2326 rm -f conftest.file 2327 if test "$*" != "X $srcdir/configure conftest.file" \ 2328 && test "$*" != "X conftest.file $srcdir/configure"; then 2329 2330 # If neither matched, then we have a broken ls. This can happen 2331 # if, for instance, CONFIG_SHELL is bash and it inherits a 2332 # broken ls alias from the environment. This has actually 2333 # happened. Such a system could not be considered "sane". 2334 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2335alias in your environment" >&5 2336$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2337alias in your environment" >&2;} 2338 { (exit 1); exit 1; }; } 2339 fi 2340 2341 test "$2" = conftest.file 2342 ) 2343then 2344 # Ok. 2345 : 2346else 2347 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2348Check your system clock" >&5 2349$as_echo "$as_me: error: newly created file is older than distributed files! 2350Check your system clock" >&2;} 2351 { (exit 1); exit 1; }; } 2352fi 2353{ $as_echo "$as_me:$LINENO: result: yes" >&5 2354$as_echo "yes" >&6; } 2355test "$program_prefix" != NONE && 2356 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2357# Use a double $ so make ignores it. 2358test "$program_suffix" != NONE && 2359 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2360# Double any \ or $. 2361# By default was `s,x,x', remove it if useless. 2362ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2363program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2364 2365# expand $ac_aux_dir to an absolute path 2366am_aux_dir=`cd $ac_aux_dir && pwd` 2367 2368test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2369# Use eval to expand $SHELL 2370if eval "$MISSING --run true"; then 2371 am_missing_run="$MISSING --run " 2372else 2373 am_missing_run= 2374 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2375$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2376fi 2377 2378{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2379$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2380if test -z "$MKDIR_P"; then 2381 if test "${ac_cv_path_mkdir+set}" = set; then 2382 $as_echo_n "(cached) " >&6 2383else 2384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2385for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2386do 2387 IFS=$as_save_IFS 2388 test -z "$as_dir" && as_dir=. 2389 for ac_prog in mkdir gmkdir; do 2390 for ac_exec_ext in '' $ac_executable_extensions; do 2391 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2392 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2393 'mkdir (GNU coreutils) '* | \ 2394 'mkdir (coreutils) '* | \ 2395 'mkdir (fileutils) '4.1*) 2396 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2397 break 3;; 2398 esac 2399 done 2400 done 2401done 2402IFS=$as_save_IFS 2403 2404fi 2405 2406 if test "${ac_cv_path_mkdir+set}" = set; then 2407 MKDIR_P="$ac_cv_path_mkdir -p" 2408 else 2409 # As a last resort, use the slow shell script. Don't cache a 2410 # value for MKDIR_P within a source directory, because that will 2411 # break other packages using the cache if that directory is 2412 # removed, or if the value is a relative name. 2413 test -d ./--version && rmdir ./--version 2414 MKDIR_P="$ac_install_sh -d" 2415 fi 2416fi 2417{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2418$as_echo "$MKDIR_P" >&6; } 2419 2420mkdir_p="$MKDIR_P" 2421case $mkdir_p in 2422 [\\/$]* | ?:[\\/]*) ;; 2423 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2424esac 2425 2426for ac_prog in gawk mawk nawk awk 2427do 2428 # Extract the first word of "$ac_prog", so it can be a program name with args. 2429set dummy $ac_prog; ac_word=$2 2430{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2431$as_echo_n "checking for $ac_word... " >&6; } 2432if test "${ac_cv_prog_AWK+set}" = set; then 2433 $as_echo_n "(cached) " >&6 2434else 2435 if test -n "$AWK"; then 2436 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2437else 2438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2439for as_dir in $PATH 2440do 2441 IFS=$as_save_IFS 2442 test -z "$as_dir" && as_dir=. 2443 for ac_exec_ext in '' $ac_executable_extensions; do 2444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2445 ac_cv_prog_AWK="$ac_prog" 2446 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2447 break 2 2448 fi 2449done 2450done 2451IFS=$as_save_IFS 2452 2453fi 2454fi 2455AWK=$ac_cv_prog_AWK 2456if test -n "$AWK"; then 2457 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2458$as_echo "$AWK" >&6; } 2459else 2460 { $as_echo "$as_me:$LINENO: result: no" >&5 2461$as_echo "no" >&6; } 2462fi 2463 2464 2465 test -n "$AWK" && break 2466done 2467 2468{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2469$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2470set x ${MAKE-make} 2471ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2472if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2473 $as_echo_n "(cached) " >&6 2474else 2475 cat >conftest.make <<\_ACEOF 2476SHELL = /bin/sh 2477all: 2478 @echo '@@@%%%=$(MAKE)=@@@%%%' 2479_ACEOF 2480# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2481case `${MAKE-make} -f conftest.make 2>/dev/null` in 2482 *@@@%%%=?*=@@@%%%*) 2483 eval ac_cv_prog_make_${ac_make}_set=yes;; 2484 *) 2485 eval ac_cv_prog_make_${ac_make}_set=no;; 2486esac 2487rm -f conftest.make 2488fi 2489if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2490 { $as_echo "$as_me:$LINENO: result: yes" >&5 2491$as_echo "yes" >&6; } 2492 SET_MAKE= 2493else 2494 { $as_echo "$as_me:$LINENO: result: no" >&5 2495$as_echo "no" >&6; } 2496 SET_MAKE="MAKE=${MAKE-make}" 2497fi 2498 2499rm -rf .tst 2>/dev/null 2500mkdir .tst 2>/dev/null 2501if test -d .tst; then 2502 am__leading_dot=. 2503else 2504 am__leading_dot=_ 2505fi 2506rmdir .tst 2>/dev/null 2507 2508if test "`cd $srcdir && pwd`" != "`pwd`"; then 2509 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2510 # is not polluted with repeated "-I." 2511 am__isrc=' -I$(srcdir)' 2512 # test to see if srcdir already configured 2513 if test -f $srcdir/config.status; then 2514 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2515$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2516 { (exit 1); exit 1; }; } 2517 fi 2518fi 2519 2520# test whether we have cygpath 2521if test -z "$CYGPATH_W"; then 2522 if (cygpath --version) >/dev/null 2>/dev/null; then 2523 CYGPATH_W='cygpath -w' 2524 else 2525 CYGPATH_W=echo 2526 fi 2527fi 2528 2529 2530# Define the identity of the package. 2531 PACKAGE='libg19draw' 2532 VERSION='1.0.0' 2533 2534 2535cat >>confdefs.h <<_ACEOF 2536#define PACKAGE "$PACKAGE" 2537_ACEOF 2538 2539 2540cat >>confdefs.h <<_ACEOF 2541#define VERSION "$VERSION" 2542_ACEOF 2543 2544# Some tools Automake needs. 2545 2546ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2547 2548 2549AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2550 2551 2552AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2553 2554 2555AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2556 2557 2558MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2559 2560install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2561 2562# Installed binaries are usually stripped using `strip' when the user 2563# run `make install-strip'. However `strip' might not be the right 2564# tool to use in cross-compilation environments, therefore Automake 2565# will honor the `STRIP' environment variable to overrule this program. 2566if test "$cross_compiling" != no; then 2567 if test -n "$ac_tool_prefix"; then 2568 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2569set dummy ${ac_tool_prefix}strip; ac_word=$2 2570{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2571$as_echo_n "checking for $ac_word... " >&6; } 2572if test "${ac_cv_prog_STRIP+set}" = set; then 2573 $as_echo_n "(cached) " >&6 2574else 2575 if test -n "$STRIP"; then 2576 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2577else 2578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2579for as_dir in $PATH 2580do 2581 IFS=$as_save_IFS 2582 test -z "$as_dir" && as_dir=. 2583 for ac_exec_ext in '' $ac_executable_extensions; do 2584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2585 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2586 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2587 break 2 2588 fi 2589done 2590done 2591IFS=$as_save_IFS 2592 2593fi 2594fi 2595STRIP=$ac_cv_prog_STRIP 2596if test -n "$STRIP"; then 2597 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2598$as_echo "$STRIP" >&6; } 2599else 2600 { $as_echo "$as_me:$LINENO: result: no" >&5 2601$as_echo "no" >&6; } 2602fi 2603 2604 2605fi 2606if test -z "$ac_cv_prog_STRIP"; then 2607 ac_ct_STRIP=$STRIP 2608 # Extract the first word of "strip", so it can be a program name with args. 2609set dummy strip; ac_word=$2 2610{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2611$as_echo_n "checking for $ac_word... " >&6; } 2612if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2613 $as_echo_n "(cached) " >&6 2614else 2615 if test -n "$ac_ct_STRIP"; then 2616 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2617else 2618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2619for as_dir in $PATH 2620do 2621 IFS=$as_save_IFS 2622 test -z "$as_dir" && as_dir=. 2623 for ac_exec_ext in '' $ac_executable_extensions; do 2624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2625 ac_cv_prog_ac_ct_STRIP="strip" 2626 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2627 break 2 2628 fi 2629done 2630done 2631IFS=$as_save_IFS 2632 2633fi 2634fi 2635ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2636if test -n "$ac_ct_STRIP"; then 2637 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2638$as_echo "$ac_ct_STRIP" >&6; } 2639else 2640 { $as_echo "$as_me:$LINENO: result: no" >&5 2641$as_echo "no" >&6; } 2642fi 2643 2644 if test "x$ac_ct_STRIP" = x; then 2645 STRIP=":" 2646 else 2647 case $cross_compiling:$ac_tool_warned in 2648yes:) 2649{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2650$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2651ac_tool_warned=yes ;; 2652esac 2653 STRIP=$ac_ct_STRIP 2654 fi 2655else 2656 STRIP="$ac_cv_prog_STRIP" 2657fi 2658 2659fi 2660INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2661 2662# We need awk for the "check" target. The system "awk" is bad on 2663# some platforms. 2664# Always define AMTAR for backward compatibility. 2665 2666AMTAR=${AMTAR-"${am_missing_run}tar"} 2667 2668am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2669 2670 2671 2672 2673 2674 2675ac_config_headers="$ac_config_headers config.h" 2676 2677 2678ac_ext=c 2679ac_cpp='$CPP $CPPFLAGS' 2680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2682ac_compiler_gnu=$ac_cv_c_compiler_gnu 2683if test -n "$ac_tool_prefix"; then 2684 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2685set dummy ${ac_tool_prefix}gcc; ac_word=$2 2686{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2687$as_echo_n "checking for $ac_word... " >&6; } 2688if test "${ac_cv_prog_CC+set}" = set; then 2689 $as_echo_n "(cached) " >&6 2690else 2691 if test -n "$CC"; then 2692 ac_cv_prog_CC="$CC" # Let the user override the test. 2693else 2694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2695for as_dir in $PATH 2696do 2697 IFS=$as_save_IFS 2698 test -z "$as_dir" && as_dir=. 2699 for ac_exec_ext in '' $ac_executable_extensions; do 2700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2701 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2702 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2703 break 2 2704 fi 2705done 2706done 2707IFS=$as_save_IFS 2708 2709fi 2710fi 2711CC=$ac_cv_prog_CC 2712if test -n "$CC"; then 2713 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2714$as_echo "$CC" >&6; } 2715else 2716 { $as_echo "$as_me:$LINENO: result: no" >&5 2717$as_echo "no" >&6; } 2718fi 2719 2720 2721fi 2722if test -z "$ac_cv_prog_CC"; then 2723 ac_ct_CC=$CC 2724 # Extract the first word of "gcc", so it can be a program name with args. 2725set dummy gcc; ac_word=$2 2726{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2727$as_echo_n "checking for $ac_word... " >&6; } 2728if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2729 $as_echo_n "(cached) " >&6 2730else 2731 if test -n "$ac_ct_CC"; then 2732 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2733else 2734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2735for as_dir in $PATH 2736do 2737 IFS=$as_save_IFS 2738 test -z "$as_dir" && as_dir=. 2739 for ac_exec_ext in '' $ac_executable_extensions; do 2740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2741 ac_cv_prog_ac_ct_CC="gcc" 2742 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2743 break 2 2744 fi 2745done 2746done 2747IFS=$as_save_IFS 2748 2749fi 2750fi 2751ac_ct_CC=$ac_cv_prog_ac_ct_CC 2752if test -n "$ac_ct_CC"; then 2753 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2754$as_echo "$ac_ct_CC" >&6; } 2755else 2756 { $as_echo "$as_me:$LINENO: result: no" >&5 2757$as_echo "no" >&6; } 2758fi 2759 2760 if test "x$ac_ct_CC" = x; then 2761 CC="" 2762 else 2763 case $cross_compiling:$ac_tool_warned in 2764yes:) 2765{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2766$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2767ac_tool_warned=yes ;; 2768esac 2769 CC=$ac_ct_CC 2770 fi 2771else 2772 CC="$ac_cv_prog_CC" 2773fi 2774 2775if test -z "$CC"; then 2776 if test -n "$ac_tool_prefix"; then 2777 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2778set dummy ${ac_tool_prefix}cc; ac_word=$2 2779{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2780$as_echo_n "checking for $ac_word... " >&6; } 2781if test "${ac_cv_prog_CC+set}" = set; then 2782 $as_echo_n "(cached) " >&6 2783else 2784 if test -n "$CC"; then 2785 ac_cv_prog_CC="$CC" # Let the user override the test. 2786else 2787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2788for as_dir in $PATH 2789do 2790 IFS=$as_save_IFS 2791 test -z "$as_dir" && as_dir=. 2792 for ac_exec_ext in '' $ac_executable_extensions; do 2793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2794 ac_cv_prog_CC="${ac_tool_prefix}cc" 2795 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2796 break 2 2797 fi 2798done 2799done 2800IFS=$as_save_IFS 2801 2802fi 2803fi 2804CC=$ac_cv_prog_CC 2805if test -n "$CC"; then 2806 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2807$as_echo "$CC" >&6; } 2808else 2809 { $as_echo "$as_me:$LINENO: result: no" >&5 2810$as_echo "no" >&6; } 2811fi 2812 2813 2814 fi 2815fi 2816if test -z "$CC"; then 2817 # Extract the first word of "cc", so it can be a program name with args. 2818set dummy cc; ac_word=$2 2819{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2820$as_echo_n "checking for $ac_word... " >&6; } 2821if test "${ac_cv_prog_CC+set}" = set; then 2822 $as_echo_n "(cached) " >&6 2823else 2824 if test -n "$CC"; then 2825 ac_cv_prog_CC="$CC" # Let the user override the test. 2826else 2827 ac_prog_rejected=no 2828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2829for as_dir in $PATH 2830do 2831 IFS=$as_save_IFS 2832 test -z "$as_dir" && as_dir=. 2833 for ac_exec_ext in '' $ac_executable_extensions; do 2834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2835 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2836 ac_prog_rejected=yes 2837 continue 2838 fi 2839 ac_cv_prog_CC="cc" 2840 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2841 break 2 2842 fi 2843done 2844done 2845IFS=$as_save_IFS 2846 2847if test $ac_prog_rejected = yes; then 2848 # We found a bogon in the path, so make sure we never use it. 2849 set dummy $ac_cv_prog_CC 2850 shift 2851 if test $# != 0; then 2852 # We chose a different compiler from the bogus one. 2853 # However, it has the same basename, so the bogon will be chosen 2854 # first if we set CC to just the basename; use the full file name. 2855 shift 2856 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2857 fi 2858fi 2859fi 2860fi 2861CC=$ac_cv_prog_CC 2862if test -n "$CC"; then 2863 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2864$as_echo "$CC" >&6; } 2865else 2866 { $as_echo "$as_me:$LINENO: result: no" >&5 2867$as_echo "no" >&6; } 2868fi 2869 2870 2871fi 2872if test -z "$CC"; then 2873 if test -n "$ac_tool_prefix"; then 2874 for ac_prog in cl.exe 2875 do 2876 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2877set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2878{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2879$as_echo_n "checking for $ac_word... " >&6; } 2880if test "${ac_cv_prog_CC+set}" = set; then 2881 $as_echo_n "(cached) " >&6 2882else 2883 if test -n "$CC"; then 2884 ac_cv_prog_CC="$CC" # Let the user override the test. 2885else 2886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2887for as_dir in $PATH 2888do 2889 IFS=$as_save_IFS 2890 test -z "$as_dir" && as_dir=. 2891 for ac_exec_ext in '' $ac_executable_extensions; do 2892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2893 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2894 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2895 break 2 2896 fi 2897done 2898done 2899IFS=$as_save_IFS 2900 2901fi 2902fi 2903CC=$ac_cv_prog_CC 2904if test -n "$CC"; then 2905 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2906$as_echo "$CC" >&6; } 2907else 2908 { $as_echo "$as_me:$LINENO: result: no" >&5 2909$as_echo "no" >&6; } 2910fi 2911 2912 2913 test -n "$CC" && break 2914 done 2915fi 2916if test -z "$CC"; then 2917 ac_ct_CC=$CC 2918 for ac_prog in cl.exe 2919do 2920 # Extract the first word of "$ac_prog", so it can be a program name with args. 2921set dummy $ac_prog; ac_word=$2 2922{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2923$as_echo_n "checking for $ac_word... " >&6; } 2924if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2925 $as_echo_n "(cached) " >&6 2926else 2927 if test -n "$ac_ct_CC"; then 2928 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2929else 2930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2931for as_dir in $PATH 2932do 2933 IFS=$as_save_IFS 2934 test -z "$as_dir" && as_dir=. 2935 for ac_exec_ext in '' $ac_executable_extensions; do 2936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2937 ac_cv_prog_ac_ct_CC="$ac_prog" 2938 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2939 break 2 2940 fi 2941done 2942done 2943IFS=$as_save_IFS 2944 2945fi 2946fi 2947ac_ct_CC=$ac_cv_prog_ac_ct_CC 2948if test -n "$ac_ct_CC"; then 2949 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2950$as_echo "$ac_ct_CC" >&6; } 2951else 2952 { $as_echo "$as_me:$LINENO: result: no" >&5 2953$as_echo "no" >&6; } 2954fi 2955 2956 2957 test -n "$ac_ct_CC" && break 2958done 2959 2960 if test "x$ac_ct_CC" = x; then 2961 CC="" 2962 else 2963 case $cross_compiling:$ac_tool_warned in 2964yes:) 2965{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2966$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2967ac_tool_warned=yes ;; 2968esac 2969 CC=$ac_ct_CC 2970 fi 2971fi 2972 2973fi 2974 2975 2976test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2977$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2978{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2979See \`config.log' for more details." >&5 2980$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 2981See \`config.log' for more details." >&2;} 2982 { (exit 1); exit 1; }; }; } 2983 2984# Provide some information about the compiler. 2985$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 2986set X $ac_compile 2987ac_compiler=$2 2988{ (ac_try="$ac_compiler --version >&5" 2989case "(($ac_try" in 2990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2991 *) ac_try_echo=$ac_try;; 2992esac 2993eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2994$as_echo "$ac_try_echo") >&5 2995 (eval "$ac_compiler --version >&5") 2>&5 2996 ac_status=$? 2997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2998 (exit $ac_status); } 2999{ (ac_try="$ac_compiler -v >&5" 3000case "(($ac_try" in 3001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3002 *) ac_try_echo=$ac_try;; 3003esac 3004eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3005$as_echo "$ac_try_echo") >&5 3006 (eval "$ac_compiler -v >&5") 2>&5 3007 ac_status=$? 3008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3009 (exit $ac_status); } 3010{ (ac_try="$ac_compiler -V >&5" 3011case "(($ac_try" in 3012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3013 *) ac_try_echo=$ac_try;; 3014esac 3015eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3016$as_echo "$ac_try_echo") >&5 3017 (eval "$ac_compiler -V >&5") 2>&5 3018 ac_status=$? 3019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3020 (exit $ac_status); } 3021 3022cat >conftest.$ac_ext <<_ACEOF 3023/* confdefs.h. */ 3024_ACEOF 3025cat confdefs.h >>conftest.$ac_ext 3026cat >>conftest.$ac_ext <<_ACEOF 3027/* end confdefs.h. */ 3028 3029int 3030main () 3031{ 3032 3033 ; 3034 return 0; 3035} 3036_ACEOF 3037ac_clean_files_save=$ac_clean_files 3038ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3039# Try to create an executable without -o first, disregard a.out. 3040# It will help us diagnose broken compilers, and finding out an intuition 3041# of exeext. 3042{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3043$as_echo_n "checking for C compiler default output file name... " >&6; } 3044ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3045 3046# The possible output files: 3047ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3048 3049ac_rmfiles= 3050for ac_file in $ac_files 3051do 3052 case $ac_file in 3053 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3054 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3055 esac 3056done 3057rm -f $ac_rmfiles 3058 3059if { (ac_try="$ac_link_default" 3060case "(($ac_try" in 3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3062 *) ac_try_echo=$ac_try;; 3063esac 3064eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3065$as_echo "$ac_try_echo") >&5 3066 (eval "$ac_link_default") 2>&5 3067 ac_status=$? 3068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3069 (exit $ac_status); }; then 3070 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3071# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3072# in a Makefile. We should not override ac_cv_exeext if it was cached, 3073# so that the user can short-circuit this test for compilers unknown to 3074# Autoconf. 3075for ac_file in $ac_files '' 3076do 3077 test -f "$ac_file" || continue 3078 case $ac_file in 3079 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3080 ;; 3081 [ab].out ) 3082 # We found the default executable, but exeext='' is most 3083 # certainly right. 3084 break;; 3085 *.* ) 3086 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3087 then :; else 3088 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3089 fi 3090 # We set ac_cv_exeext here because the later test for it is not 3091 # safe: cross compilers may not add the suffix if given an `-o' 3092 # argument, so we may need to know it at that point already. 3093 # Even if this section looks crufty: it has the advantage of 3094 # actually working. 3095 break;; 3096 * ) 3097 break;; 3098 esac 3099done 3100test "$ac_cv_exeext" = no && ac_cv_exeext= 3101 3102else 3103 ac_file='' 3104fi 3105 3106{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 3107$as_echo "$ac_file" >&6; } 3108if test -z "$ac_file"; then 3109 $as_echo "$as_me: failed program was:" >&5 3110sed 's/^/| /' conftest.$ac_ext >&5 3111 3112{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3113$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3114{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 3115See \`config.log' for more details." >&5 3116$as_echo "$as_me: error: C compiler cannot create executables 3117See \`config.log' for more details." >&2;} 3118 { (exit 77); exit 77; }; }; } 3119fi 3120 3121ac_exeext=$ac_cv_exeext 3122 3123# Check that the compiler produces executables we can run. If not, either 3124# the compiler is broken, or we cross compile. 3125{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3126$as_echo_n "checking whether the C compiler works... " >&6; } 3127# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3128# If not cross compiling, check that we can run a simple program. 3129if test "$cross_compiling" != yes; then 3130 if { ac_try='./$ac_file' 3131 { (case "(($ac_try" in 3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3133 *) ac_try_echo=$ac_try;; 3134esac 3135eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3136$as_echo "$ac_try_echo") >&5 3137 (eval "$ac_try") 2>&5 3138 ac_status=$? 3139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3140 (exit $ac_status); }; }; then 3141 cross_compiling=no 3142 else 3143 if test "$cross_compiling" = maybe; then 3144 cross_compiling=yes 3145 else 3146 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3147$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3148{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 3149If you meant to cross compile, use \`--host'. 3150See \`config.log' for more details." >&5 3151$as_echo "$as_me: error: cannot run C compiled programs. 3152If you meant to cross compile, use \`--host'. 3153See \`config.log' for more details." >&2;} 3154 { (exit 1); exit 1; }; }; } 3155 fi 3156 fi 3157fi 3158{ $as_echo "$as_me:$LINENO: result: yes" >&5 3159$as_echo "yes" >&6; } 3160 3161rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3162ac_clean_files=$ac_clean_files_save 3163# Check that the compiler produces executables we can run. If not, either 3164# the compiler is broken, or we cross compile. 3165{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3166$as_echo_n "checking whether we are cross compiling... " >&6; } 3167{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 3168$as_echo "$cross_compiling" >&6; } 3169 3170{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 3171$as_echo_n "checking for suffix of executables... " >&6; } 3172if { (ac_try="$ac_link" 3173case "(($ac_try" in 3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3175 *) ac_try_echo=$ac_try;; 3176esac 3177eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3178$as_echo "$ac_try_echo") >&5 3179 (eval "$ac_link") 2>&5 3180 ac_status=$? 3181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3182 (exit $ac_status); }; then 3183 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3184# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3185# work properly (i.e., refer to `conftest.exe'), while it won't with 3186# `rm'. 3187for ac_file in conftest.exe conftest conftest.*; do 3188 test -f "$ac_file" || continue 3189 case $ac_file in 3190 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3191 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3192 break;; 3193 * ) break;; 3194 esac 3195done 3196else 3197 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3198$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3199{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3200See \`config.log' for more details." >&5 3201$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3202See \`config.log' for more details." >&2;} 3203 { (exit 1); exit 1; }; }; } 3204fi 3205 3206rm -f conftest$ac_cv_exeext 3207{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3208$as_echo "$ac_cv_exeext" >&6; } 3209 3210rm -f conftest.$ac_ext 3211EXEEXT=$ac_cv_exeext 3212ac_exeext=$EXEEXT 3213{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 3214$as_echo_n "checking for suffix of object files... " >&6; } 3215if test "${ac_cv_objext+set}" = set; then 3216 $as_echo_n "(cached) " >&6 3217else 3218 cat >conftest.$ac_ext <<_ACEOF 3219/* confdefs.h. */ 3220_ACEOF 3221cat confdefs.h >>conftest.$ac_ext 3222cat >>conftest.$ac_ext <<_ACEOF 3223/* end confdefs.h. */ 3224 3225int 3226main () 3227{ 3228 3229 ; 3230 return 0; 3231} 3232_ACEOF 3233rm -f conftest.o conftest.obj 3234if { (ac_try="$ac_compile" 3235case "(($ac_try" in 3236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3237 *) ac_try_echo=$ac_try;; 3238esac 3239eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3240$as_echo "$ac_try_echo") >&5 3241 (eval "$ac_compile") 2>&5 3242 ac_status=$? 3243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3244 (exit $ac_status); }; then 3245 for ac_file in conftest.o conftest.obj conftest.*; do 3246 test -f "$ac_file" || continue; 3247 case $ac_file in 3248 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3249 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3250 break;; 3251 esac 3252done 3253else 3254 $as_echo "$as_me: failed program was:" >&5 3255sed 's/^/| /' conftest.$ac_ext >&5 3256 3257{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3258$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3259{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3260See \`config.log' for more details." >&5 3261$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3262See \`config.log' for more details." >&2;} 3263 { (exit 1); exit 1; }; }; } 3264fi 3265 3266rm -f conftest.$ac_cv_objext conftest.$ac_ext 3267fi 3268{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3269$as_echo "$ac_cv_objext" >&6; } 3270OBJEXT=$ac_cv_objext 3271ac_objext=$OBJEXT 3272{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3273$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3274if test "${ac_cv_c_compiler_gnu+set}" = set; then 3275 $as_echo_n "(cached) " >&6 3276else 3277 cat >conftest.$ac_ext <<_ACEOF 3278/* confdefs.h. */ 3279_ACEOF 3280cat confdefs.h >>conftest.$ac_ext 3281cat >>conftest.$ac_ext <<_ACEOF 3282/* end confdefs.h. */ 3283 3284int 3285main () 3286{ 3287#ifndef __GNUC__ 3288 choke me 3289#endif 3290 3291 ; 3292 return 0; 3293} 3294_ACEOF 3295rm -f conftest.$ac_objext 3296if { (ac_try="$ac_compile" 3297case "(($ac_try" in 3298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3299 *) ac_try_echo=$ac_try;; 3300esac 3301eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3302$as_echo "$ac_try_echo") >&5 3303 (eval "$ac_compile") 2>conftest.er1 3304 ac_status=$? 3305 grep -v '^ *+' conftest.er1 >conftest.err 3306 rm -f conftest.er1 3307 cat conftest.err >&5 3308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3309 (exit $ac_status); } && { 3310 test -z "$ac_c_werror_flag" || 3311 test ! -s conftest.err 3312 } && test -s conftest.$ac_objext; then 3313 ac_compiler_gnu=yes 3314else 3315 $as_echo "$as_me: failed program was:" >&5 3316sed 's/^/| /' conftest.$ac_ext >&5 3317 3318 ac_compiler_gnu=no 3319fi 3320 3321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3322ac_cv_c_compiler_gnu=$ac_compiler_gnu 3323 3324fi 3325{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3326$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3327if test $ac_compiler_gnu = yes; then 3328 GCC=yes 3329else 3330 GCC= 3331fi 3332ac_test_CFLAGS=${CFLAGS+set} 3333ac_save_CFLAGS=$CFLAGS 3334{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3335$as_echo_n "checking whether $CC accepts -g... " >&6; } 3336if test "${ac_cv_prog_cc_g+set}" = set; then 3337 $as_echo_n "(cached) " >&6 3338else 3339 ac_save_c_werror_flag=$ac_c_werror_flag 3340 ac_c_werror_flag=yes 3341 ac_cv_prog_cc_g=no 3342 CFLAGS="-g" 3343 cat >conftest.$ac_ext <<_ACEOF 3344/* confdefs.h. */ 3345_ACEOF 3346cat confdefs.h >>conftest.$ac_ext 3347cat >>conftest.$ac_ext <<_ACEOF 3348/* end confdefs.h. */ 3349 3350int 3351main () 3352{ 3353 3354 ; 3355 return 0; 3356} 3357_ACEOF 3358rm -f conftest.$ac_objext 3359if { (ac_try="$ac_compile" 3360case "(($ac_try" in 3361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3362 *) ac_try_echo=$ac_try;; 3363esac 3364eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3365$as_echo "$ac_try_echo") >&5 3366 (eval "$ac_compile") 2>conftest.er1 3367 ac_status=$? 3368 grep -v '^ *+' conftest.er1 >conftest.err 3369 rm -f conftest.er1 3370 cat conftest.err >&5 3371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3372 (exit $ac_status); } && { 3373 test -z "$ac_c_werror_flag" || 3374 test ! -s conftest.err 3375 } && test -s conftest.$ac_objext; then 3376 ac_cv_prog_cc_g=yes 3377else 3378 $as_echo "$as_me: failed program was:" >&5 3379sed 's/^/| /' conftest.$ac_ext >&5 3380 3381 CFLAGS="" 3382 cat >conftest.$ac_ext <<_ACEOF 3383/* confdefs.h. */ 3384_ACEOF 3385cat confdefs.h >>conftest.$ac_ext 3386cat >>conftest.$ac_ext <<_ACEOF 3387/* end confdefs.h. */ 3388 3389int 3390main () 3391{ 3392 3393 ; 3394 return 0; 3395} 3396_ACEOF 3397rm -f conftest.$ac_objext 3398if { (ac_try="$ac_compile" 3399case "(($ac_try" in 3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3401 *) ac_try_echo=$ac_try;; 3402esac 3403eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3404$as_echo "$ac_try_echo") >&5 3405 (eval "$ac_compile") 2>conftest.er1 3406 ac_status=$? 3407 grep -v '^ *+' conftest.er1 >conftest.err 3408 rm -f conftest.er1 3409 cat conftest.err >&5 3410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3411 (exit $ac_status); } && { 3412 test -z "$ac_c_werror_flag" || 3413 test ! -s conftest.err 3414 } && test -s conftest.$ac_objext; then 3415 : 3416else 3417 $as_echo "$as_me: failed program was:" >&5 3418sed 's/^/| /' conftest.$ac_ext >&5 3419 3420 ac_c_werror_flag=$ac_save_c_werror_flag 3421 CFLAGS="-g" 3422 cat >conftest.$ac_ext <<_ACEOF 3423/* confdefs.h. */ 3424_ACEOF 3425cat confdefs.h >>conftest.$ac_ext 3426cat >>conftest.$ac_ext <<_ACEOF 3427/* end confdefs.h. */ 3428 3429int 3430main () 3431{ 3432 3433 ; 3434 return 0; 3435} 3436_ACEOF 3437rm -f conftest.$ac_objext 3438if { (ac_try="$ac_compile" 3439case "(($ac_try" in 3440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3441 *) ac_try_echo=$ac_try;; 3442esac 3443eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3444$as_echo "$ac_try_echo") >&5 3445 (eval "$ac_compile") 2>conftest.er1 3446 ac_status=$? 3447 grep -v '^ *+' conftest.er1 >conftest.err 3448 rm -f conftest.er1 3449 cat conftest.err >&5 3450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3451 (exit $ac_status); } && { 3452 test -z "$ac_c_werror_flag" || 3453 test ! -s conftest.err 3454 } && test -s conftest.$ac_objext; then 3455 ac_cv_prog_cc_g=yes 3456else 3457 $as_echo "$as_me: failed program was:" >&5 3458sed 's/^/| /' conftest.$ac_ext >&5 3459 3460 3461fi 3462 3463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3464fi 3465 3466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3467fi 3468 3469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3470 ac_c_werror_flag=$ac_save_c_werror_flag 3471fi 3472{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3473$as_echo "$ac_cv_prog_cc_g" >&6; } 3474if test "$ac_test_CFLAGS" = set; then 3475 CFLAGS=$ac_save_CFLAGS 3476elif test $ac_cv_prog_cc_g = yes; then 3477 if test "$GCC" = yes; then 3478 CFLAGS="-g -O2" 3479 else 3480 CFLAGS="-g" 3481 fi 3482else 3483 if test "$GCC" = yes; then 3484 CFLAGS="-O2" 3485 else 3486 CFLAGS= 3487 fi 3488fi 3489{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3490$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3491if test "${ac_cv_prog_cc_c89+set}" = set; then 3492 $as_echo_n "(cached) " >&6 3493else 3494 ac_cv_prog_cc_c89=no 3495ac_save_CC=$CC 3496cat >conftest.$ac_ext <<_ACEOF 3497/* confdefs.h. */ 3498_ACEOF 3499cat confdefs.h >>conftest.$ac_ext 3500cat >>conftest.$ac_ext <<_ACEOF 3501/* end confdefs.h. */ 3502#include <stdarg.h> 3503#include <stdio.h> 3504#include <sys/types.h> 3505#include <sys/stat.h> 3506/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3507struct buf { int x; }; 3508FILE * (*rcsopen) (struct buf *, struct stat *, int); 3509static char *e (p, i) 3510 char **p; 3511 int i; 3512{ 3513 return p[i]; 3514} 3515static char *f (char * (*g) (char **, int), char **p, ...) 3516{ 3517 char *s; 3518 va_list v; 3519 va_start (v,p); 3520 s = g (p, va_arg (v,int)); 3521 va_end (v); 3522 return s; 3523} 3524 3525/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3526 function prototypes and stuff, but not '\xHH' hex character constants. 3527 These don't provoke an error unfortunately, instead are silently treated 3528 as 'x'. The following induces an error, until -std is added to get 3529 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3530 array size at least. It's necessary to write '\x00'==0 to get something 3531 that's true only with -std. */ 3532int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3533 3534/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3535 inside strings and character constants. */ 3536#define FOO(x) 'x' 3537int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3538 3539int test (int i, double x); 3540struct s1 {int (*f) (int a);}; 3541struct s2 {int (*f) (double a);}; 3542int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3543int argc; 3544char **argv; 3545int 3546main () 3547{ 3548return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3549 ; 3550 return 0; 3551} 3552_ACEOF 3553for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3554 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3555do 3556 CC="$ac_save_CC $ac_arg" 3557 rm -f conftest.$ac_objext 3558if { (ac_try="$ac_compile" 3559case "(($ac_try" in 3560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3561 *) ac_try_echo=$ac_try;; 3562esac 3563eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3564$as_echo "$ac_try_echo") >&5 3565 (eval "$ac_compile") 2>conftest.er1 3566 ac_status=$? 3567 grep -v '^ *+' conftest.er1 >conftest.err 3568 rm -f conftest.er1 3569 cat conftest.err >&5 3570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3571 (exit $ac_status); } && { 3572 test -z "$ac_c_werror_flag" || 3573 test ! -s conftest.err 3574 } && test -s conftest.$ac_objext; then 3575 ac_cv_prog_cc_c89=$ac_arg 3576else 3577 $as_echo "$as_me: failed program was:" >&5 3578sed 's/^/| /' conftest.$ac_ext >&5 3579 3580 3581fi 3582 3583rm -f core conftest.err conftest.$ac_objext 3584 test "x$ac_cv_prog_cc_c89" != "xno" && break 3585done 3586rm -f conftest.$ac_ext 3587CC=$ac_save_CC 3588 3589fi 3590# AC_CACHE_VAL 3591case "x$ac_cv_prog_cc_c89" in 3592 x) 3593 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3594$as_echo "none needed" >&6; } ;; 3595 xno) 3596 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3597$as_echo "unsupported" >&6; } ;; 3598 *) 3599 CC="$CC $ac_cv_prog_cc_c89" 3600 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3601$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3602esac 3603 3604 3605ac_ext=c 3606ac_cpp='$CPP $CPPFLAGS' 3607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3609ac_compiler_gnu=$ac_cv_c_compiler_gnu 3610DEPDIR="${am__leading_dot}deps" 3611 3612ac_config_commands="$ac_config_commands depfiles" 3613 3614 3615am_make=${MAKE-make} 3616cat > confinc << 'END' 3617am__doit: 3618 @echo done 3619.PHONY: am__doit 3620END 3621# If we don't find an include directive, just comment out the code. 3622{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3623$as_echo_n "checking for style of include used by $am_make... " >&6; } 3624am__include="#" 3625am__quote= 3626_am_result=none 3627# First try GNU make style include. 3628echo "include confinc" > confmf 3629# We grep out `Entering directory' and `Leaving directory' 3630# messages which can occur if `w' ends up in MAKEFLAGS. 3631# In particular we don't look at `^make:' because GNU make might 3632# be invoked under some other name (usually "gmake"), in which 3633# case it prints its new name instead of `make'. 3634if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3635 am__include=include 3636 am__quote= 3637 _am_result=GNU 3638fi 3639# Now try BSD make style include. 3640if test "$am__include" = "#"; then 3641 echo '.include "confinc"' > confmf 3642 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3643 am__include=.include 3644 am__quote="\"" 3645 _am_result=BSD 3646 fi 3647fi 3648 3649 3650{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 3651$as_echo "$_am_result" >&6; } 3652rm -f confinc confmf 3653 3654# Check whether --enable-dependency-tracking was given. 3655if test "${enable_dependency_tracking+set}" = set; then 3656 enableval=$enable_dependency_tracking; 3657fi 3658 3659if test "x$enable_dependency_tracking" != xno; then 3660 am_depcomp="$ac_aux_dir/depcomp" 3661 AMDEPBACKSLASH='\' 3662fi 3663 if test "x$enable_dependency_tracking" != xno; then 3664 AMDEP_TRUE= 3665 AMDEP_FALSE='#' 3666else 3667 AMDEP_TRUE='#' 3668 AMDEP_FALSE= 3669fi 3670 3671 3672 3673depcc="$CC" am_compiler_list= 3674 3675{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3676$as_echo_n "checking dependency style of $depcc... " >&6; } 3677if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3678 $as_echo_n "(cached) " >&6 3679else 3680 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3681 # We make a subdir and do the tests there. Otherwise we can end up 3682 # making bogus files that we don't know about and never remove. For 3683 # instance it was reported that on HP-UX the gcc test will end up 3684 # making a dummy file named `D' -- because `-MD' means `put the output 3685 # in D'. 3686 mkdir conftest.dir 3687 # Copy depcomp to subdir because otherwise we won't find it if we're 3688 # using a relative directory. 3689 cp "$am_depcomp" conftest.dir 3690 cd conftest.dir 3691 # We will build objects and dependencies in a subdirectory because 3692 # it helps to detect inapplicable dependency modes. For instance 3693 # both Tru64's cc and ICC support -MD to output dependencies as a 3694 # side effect of compilation, but ICC will put the dependencies in 3695 # the current directory while Tru64 will put them in the object 3696 # directory. 3697 mkdir sub 3698 3699 am_cv_CC_dependencies_compiler_type=none 3700 if test "$am_compiler_list" = ""; then 3701 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3702 fi 3703 for depmode in $am_compiler_list; do 3704 # Setup a source with many dependencies, because some compilers 3705 # like to wrap large dependency lists on column 80 (with \), and 3706 # we should not choose a depcomp mode which is confused by this. 3707 # 3708 # We need to recreate these files for each test, as the compiler may 3709 # overwrite some of them when testing with obscure command lines. 3710 # This happens at least with the AIX C compiler. 3711 : > sub/conftest.c 3712 for i in 1 2 3 4 5 6; do 3713 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3714 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3715 # Solaris 8's {/usr,}/bin/sh. 3716 touch sub/conftst$i.h 3717 done 3718 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3719 3720 case $depmode in 3721 nosideeffect) 3722 # after this tag, mechanisms are not by side-effect, so they'll 3723 # only be used when explicitly requested 3724 if test "x$enable_dependency_tracking" = xyes; then 3725 continue 3726 else 3727 break 3728 fi 3729 ;; 3730 none) break ;; 3731 esac 3732 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3733 # mode. It turns out that the SunPro C++ compiler does not properly 3734 # handle `-M -o', and we need to detect this. 3735 if depmode=$depmode \ 3736 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3737 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3738 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3739 >/dev/null 2>conftest.err && 3740 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3741 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3742 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3743 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3744 # icc doesn't choke on unknown options, it will just issue warnings 3745 # or remarks (even with -Werror). So we grep stderr for any message 3746 # that says an option was ignored or not supported. 3747 # When given -MP, icc 7.0 and 7.1 complain thusly: 3748 # icc: Command line warning: ignoring option '-M'; no argument required 3749 # The diagnosis changed in icc 8.0: 3750 # icc: Command line remark: option '-MP' not supported 3751 if (grep 'ignoring option' conftest.err || 3752 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3753 am_cv_CC_dependencies_compiler_type=$depmode 3754 break 3755 fi 3756 fi 3757 done 3758 3759 cd .. 3760 rm -rf conftest.dir 3761else 3762 am_cv_CC_dependencies_compiler_type=none 3763fi 3764 3765fi 3766{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3767$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3768CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3769 3770 if 3771 test "x$enable_dependency_tracking" != xno \ 3772 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3773 am__fastdepCC_TRUE= 3774 am__fastdepCC_FALSE='#' 3775else 3776 am__fastdepCC_TRUE='#' 3777 am__fastdepCC_FALSE= 3778fi 3779 3780 3781# Check whether --enable-shared was given. 3782if test "${enable_shared+set}" = set; then 3783 enableval=$enable_shared; p=${PACKAGE-default} 3784 case $enableval in 3785 yes) enable_shared=yes ;; 3786 no) enable_shared=no ;; 3787 *) 3788 enable_shared=no 3789 # Look at the argument we got. We use all the common list separators. 3790 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3791 for pkg in $enableval; do 3792 IFS="$lt_save_ifs" 3793 if test "X$pkg" = "X$p"; then 3794 enable_shared=yes 3795 fi 3796 done 3797 IFS="$lt_save_ifs" 3798 ;; 3799 esac 3800else 3801 enable_shared=yes 3802fi 3803 3804 3805# Check whether --enable-static was given. 3806if test "${enable_static+set}" = set; then 3807 enableval=$enable_static; p=${PACKAGE-default} 3808 case $enableval in 3809 yes) enable_static=yes ;; 3810 no) enable_static=no ;; 3811 *) 3812 enable_static=no 3813 # Look at the argument we got. We use all the common list separators. 3814 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3815 for pkg in $enableval; do 3816 IFS="$lt_save_ifs" 3817 if test "X$pkg" = "X$p"; then 3818 enable_static=yes 3819 fi 3820 done 3821 IFS="$lt_save_ifs" 3822 ;; 3823 esac 3824else 3825 enable_static=yes 3826fi 3827 3828 3829# Check whether --enable-fast-install was given. 3830if test "${enable_fast_install+set}" = set; then 3831 enableval=$enable_fast_install; p=${PACKAGE-default} 3832 case $enableval in 3833 yes) enable_fast_install=yes ;; 3834 no) enable_fast_install=no ;; 3835 *) 3836 enable_fast_install=no 3837 # Look at the argument we got. We use all the common list separators. 3838 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3839 for pkg in $enableval; do 3840 IFS="$lt_save_ifs" 3841 if test "X$pkg" = "X$p"; then 3842 enable_fast_install=yes 3843 fi 3844 done 3845 IFS="$lt_save_ifs" 3846 ;; 3847 esac 3848else 3849 enable_fast_install=yes 3850fi 3851 3852 3853{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3854$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3855if test "${lt_cv_path_SED+set}" = set; then 3856 $as_echo_n "(cached) " >&6 3857else 3858 # Loop through the user's path and test for sed and gsed. 3859# Then use that list of sed's as ones to test for truncation. 3860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3861for as_dir in $PATH 3862do 3863 IFS=$as_save_IFS 3864 test -z "$as_dir" && as_dir=. 3865 for lt_ac_prog in sed gsed; do 3866 for ac_exec_ext in '' $ac_executable_extensions; do 3867 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then 3868 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3869 fi 3870 done 3871 done 3872done 3873IFS=$as_save_IFS 3874lt_ac_max=0 3875lt_ac_count=0 3876# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3877# along with /bin/sed that truncates output. 3878for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3879 test ! -f $lt_ac_sed && continue 3880 cat /dev/null > conftest.in 3881 lt_ac_count=0 3882 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3883 # Check for GNU sed and select it if it is found. 3884 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3885 lt_cv_path_SED=$lt_ac_sed 3886 break 3887 fi 3888 while true; do 3889 cat conftest.in conftest.in >conftest.tmp 3890 mv conftest.tmp conftest.in 3891 cp conftest.in conftest.nl 3892 echo >>conftest.nl 3893 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3894 cmp -s conftest.out conftest.nl || break 3895 # 10000 chars as input seems more than enough 3896 test $lt_ac_count -gt 10 && break 3897 lt_ac_count=`expr $lt_ac_count + 1` 3898 if test $lt_ac_count -gt $lt_ac_max; then 3899 lt_ac_max=$lt_ac_count 3900 lt_cv_path_SED=$lt_ac_sed 3901 fi 3902 done 3903done 3904 3905fi 3906 3907SED=$lt_cv_path_SED 3908 3909{ $as_echo "$as_me:$LINENO: result: $SED" >&5 3910$as_echo "$SED" >&6; } 3911 3912{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3913$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3914if test "${ac_cv_path_GREP+set}" = set; then 3915 $as_echo_n "(cached) " >&6 3916else 3917 if test -z "$GREP"; then 3918 ac_path_GREP_found=false 3919 # Loop through the user's path and test for each of PROGNAME-LIST 3920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3921for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3922do 3923 IFS=$as_save_IFS 3924 test -z "$as_dir" && as_dir=. 3925 for ac_prog in grep ggrep; do 3926 for ac_exec_ext in '' $ac_executable_extensions; do 3927 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3928 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3929# Check for GNU ac_path_GREP and select it if it is found. 3930 # Check for GNU $ac_path_GREP 3931case `"$ac_path_GREP" --version 2>&1` in 3932*GNU*) 3933 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3934*) 3935 ac_count=0 3936 $as_echo_n 0123456789 >"conftest.in" 3937 while : 3938 do 3939 cat "conftest.in" "conftest.in" >"conftest.tmp" 3940 mv "conftest.tmp" "conftest.in" 3941 cp "conftest.in" "conftest.nl" 3942 $as_echo 'GREP' >> "conftest.nl" 3943 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3944 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3945 ac_count=`expr $ac_count + 1` 3946 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3947 # Best one so far, save it but keep looking for a better one 3948 ac_cv_path_GREP="$ac_path_GREP" 3949 ac_path_GREP_max=$ac_count 3950 fi 3951 # 10*(2^10) chars as input seems more than enough 3952 test $ac_count -gt 10 && break 3953 done 3954 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3955esac 3956 3957 $ac_path_GREP_found && break 3 3958 done 3959 done 3960done 3961IFS=$as_save_IFS 3962 if test -z "$ac_cv_path_GREP"; then 3963 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3964$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3965 { (exit 1); exit 1; }; } 3966 fi 3967else 3968 ac_cv_path_GREP=$GREP 3969fi 3970 3971fi 3972{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3973$as_echo "$ac_cv_path_GREP" >&6; } 3974 GREP="$ac_cv_path_GREP" 3975 3976 3977{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 3978$as_echo_n "checking for egrep... " >&6; } 3979if test "${ac_cv_path_EGREP+set}" = set; then 3980 $as_echo_n "(cached) " >&6 3981else 3982 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3983 then ac_cv_path_EGREP="$GREP -E" 3984 else 3985 if test -z "$EGREP"; then 3986 ac_path_EGREP_found=false 3987 # Loop through the user's path and test for each of PROGNAME-LIST 3988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3989for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3990do 3991 IFS=$as_save_IFS 3992 test -z "$as_dir" && as_dir=. 3993 for ac_prog in egrep; do 3994 for ac_exec_ext in '' $ac_executable_extensions; do 3995 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3996 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3997# Check for GNU ac_path_EGREP and select it if it is found. 3998 # Check for GNU $ac_path_EGREP 3999case `"$ac_path_EGREP" --version 2>&1` in 4000*GNU*) 4001 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4002*) 4003 ac_count=0 4004 $as_echo_n 0123456789 >"conftest.in" 4005 while : 4006 do 4007 cat "conftest.in" "conftest.in" >"conftest.tmp" 4008 mv "conftest.tmp" "conftest.in" 4009 cp "conftest.in" "conftest.nl" 4010 $as_echo 'EGREP' >> "conftest.nl" 4011 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4012 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4013 ac_count=`expr $ac_count + 1` 4014 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4015 # Best one so far, save it but keep looking for a better one 4016 ac_cv_path_EGREP="$ac_path_EGREP" 4017 ac_path_EGREP_max=$ac_count 4018 fi 4019 # 10*(2^10) chars as input seems more than enough 4020 test $ac_count -gt 10 && break 4021 done 4022 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4023esac 4024 4025 $ac_path_EGREP_found && break 3 4026 done 4027 done 4028done 4029IFS=$as_save_IFS 4030 if test -z "$ac_cv_path_EGREP"; then 4031 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4032$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4033 { (exit 1); exit 1; }; } 4034 fi 4035else 4036 ac_cv_path_EGREP=$EGREP 4037fi 4038 4039 fi 4040fi 4041{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4042$as_echo "$ac_cv_path_EGREP" >&6; } 4043 EGREP="$ac_cv_path_EGREP" 4044 4045 4046 4047# Check whether --with-gnu-ld was given. 4048if test "${with_gnu_ld+set}" = set; then 4049 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4050else 4051 with_gnu_ld=no 4052fi 4053 4054ac_prog=ld 4055if test "$GCC" = yes; then 4056 # Check if gcc -print-prog-name=ld gives a path. 4057 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4058$as_echo_n "checking for ld used by $CC... " >&6; } 4059 case $host in 4060 *-*-mingw*) 4061 # gcc leaves a trailing carriage return which upsets mingw 4062 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4063 *) 4064 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4065 esac 4066 case $ac_prog in 4067 # Accept absolute paths. 4068 [\\/]* | ?:[\\/]*) 4069 re_direlt='/[^/][^/]*/\.\./' 4070 # Canonicalize the pathname of ld 4071 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 4072 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4073 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 4074 done 4075 test -z "$LD" && LD="$ac_prog" 4076 ;; 4077 "") 4078 # If it fails, then pretend we aren't using GCC. 4079 ac_prog=ld 4080 ;; 4081 *) 4082 # If it is relative, then search for the first ld in PATH. 4083 with_gnu_ld=unknown 4084 ;; 4085 esac 4086elif test "$with_gnu_ld" = yes; then 4087 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 4088$as_echo_n "checking for GNU ld... " >&6; } 4089else 4090 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4091$as_echo_n "checking for non-GNU ld... " >&6; } 4092fi 4093if test "${lt_cv_path_LD+set}" = set; then 4094 $as_echo_n "(cached) " >&6 4095else 4096 if test -z "$LD"; then 4097 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4098 for ac_dir in $PATH; do 4099 IFS="$lt_save_ifs" 4100 test -z "$ac_dir" && ac_dir=. 4101 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4102 lt_cv_path_LD="$ac_dir/$ac_prog" 4103 # Check to see if the program is GNU ld. I'd rather use --version, 4104 # but apparently some variants of GNU ld only accept -v. 4105 # Break only if it was the GNU/non-GNU ld that we prefer. 4106 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4107 *GNU* | *'with BFD'*) 4108 test "$with_gnu_ld" != no && break 4109 ;; 4110 *) 4111 test "$with_gnu_ld" != yes && break 4112 ;; 4113 esac 4114 fi 4115 done 4116 IFS="$lt_save_ifs" 4117else 4118 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4119fi 4120fi 4121 4122LD="$lt_cv_path_LD" 4123if test -n "$LD"; then 4124 { $as_echo "$as_me:$LINENO: result: $LD" >&5 4125$as_echo "$LD" >&6; } 4126else 4127 { $as_echo "$as_me:$LINENO: result: no" >&5 4128$as_echo "no" >&6; } 4129fi 4130test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4131$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4132 { (exit 1); exit 1; }; } 4133{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4134$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4135if test "${lt_cv_prog_gnu_ld+set}" = set; then 4136 $as_echo_n "(cached) " >&6 4137else 4138 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4139case `$LD -v 2>&1 </dev/null` in 4140*GNU* | *'with BFD'*) 4141 lt_cv_prog_gnu_ld=yes 4142 ;; 4143*) 4144 lt_cv_prog_gnu_ld=no 4145 ;; 4146esac 4147fi 4148{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4149$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4150with_gnu_ld=$lt_cv_prog_gnu_ld 4151 4152 4153{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4154$as_echo_n "checking for $LD option to reload object files... " >&6; } 4155if test "${lt_cv_ld_reload_flag+set}" = set; then 4156 $as_echo_n "(cached) " >&6 4157else 4158 lt_cv_ld_reload_flag='-r' 4159fi 4160{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4161$as_echo "$lt_cv_ld_reload_flag" >&6; } 4162reload_flag=$lt_cv_ld_reload_flag 4163case $reload_flag in 4164"" | " "*) ;; 4165*) reload_flag=" $reload_flag" ;; 4166esac 4167reload_cmds='$LD$reload_flag -o $output$reload_objs' 4168case $host_os in 4169 darwin*) 4170 if test "$GCC" = yes; then 4171 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4172 else 4173 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4174 fi 4175 ;; 4176esac 4177 4178{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4179$as_echo_n "checking for BSD-compatible nm... " >&6; } 4180if test "${lt_cv_path_NM+set}" = set; then 4181 $as_echo_n "(cached) " >&6 4182else 4183 if test -n "$NM"; then 4184 # Let the user override the test. 4185 lt_cv_path_NM="$NM" 4186else 4187 lt_nm_to_check="${ac_tool_prefix}nm" 4188 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4189 lt_nm_to_check="$lt_nm_to_check nm" 4190 fi 4191 for lt_tmp_nm in $lt_nm_to_check; do 4192 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4193 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4194 IFS="$lt_save_ifs" 4195 test -z "$ac_dir" && ac_dir=. 4196 tmp_nm="$ac_dir/$lt_tmp_nm" 4197 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4198 # Check to see if the nm accepts a BSD-compat flag. 4199 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4200 # nm: unknown option "B" ignored 4201 # Tru64's nm complains that /dev/null is an invalid object file 4202 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4203 */dev/null* | *'Invalid file or object type'*) 4204 lt_cv_path_NM="$tmp_nm -B" 4205 break 4206 ;; 4207 *) 4208 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4209 */dev/null*) 4210 lt_cv_path_NM="$tmp_nm -p" 4211 break 4212 ;; 4213 *) 4214 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4215 continue # so that we can try to find one that supports BSD flags 4216 ;; 4217 esac 4218 ;; 4219 esac 4220 fi 4221 done 4222 IFS="$lt_save_ifs" 4223 done 4224 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4225fi 4226fi 4227{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4228$as_echo "$lt_cv_path_NM" >&6; } 4229NM="$lt_cv_path_NM" 4230 4231{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 4232$as_echo_n "checking whether ln -s works... " >&6; } 4233LN_S=$as_ln_s 4234if test "$LN_S" = "ln -s"; then 4235 { $as_echo "$as_me:$LINENO: result: yes" >&5 4236$as_echo "yes" >&6; } 4237else 4238 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4239$as_echo "no, using $LN_S" >&6; } 4240fi 4241 4242{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 4243$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4244if test "${lt_cv_deplibs_check_method+set}" = set; then 4245 $as_echo_n "(cached) " >&6 4246else 4247 lt_cv_file_magic_cmd='$MAGIC_CMD' 4248lt_cv_file_magic_test_file= 4249lt_cv_deplibs_check_method='unknown' 4250# Need to set the preceding variable on all platforms that support 4251# interlibrary dependencies. 4252# 'none' -- dependencies not supported. 4253# `unknown' -- same as none, but documents that we really don't know. 4254# 'pass_all' -- all dependencies passed with no checks. 4255# 'test_compile' -- check by making test program. 4256# 'file_magic [[regex]]' -- check by looking for files in library path 4257# which responds to the $file_magic_cmd with a given extended regex. 4258# If you have `file' or equivalent on your system and you're not sure 4259# whether `pass_all' will *always* work, you probably want this one. 4260 4261case $host_os in 4262aix[4-9]*) 4263 lt_cv_deplibs_check_method=pass_all 4264 ;; 4265 4266beos*) 4267 lt_cv_deplibs_check_method=pass_all 4268 ;; 4269 4270bsdi[45]*) 4271 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4272 lt_cv_file_magic_cmd='/usr/bin/file -L' 4273 lt_cv_file_magic_test_file=/shlib/libc.so 4274 ;; 4275 4276cygwin*) 4277 # func_win32_libid is a shell function defined in ltmain.sh 4278 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4279 lt_cv_file_magic_cmd='func_win32_libid' 4280 ;; 4281 4282mingw* | pw32*) 4283 # Base MSYS/MinGW do not provide the 'file' command needed by 4284 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4285 # unless we find 'file', for example because we are cross-compiling. 4286 if ( file / ) >/dev/null 2>&1; then 4287 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4288 lt_cv_file_magic_cmd='func_win32_libid' 4289 else 4290 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4291 lt_cv_file_magic_cmd='$OBJDUMP -f' 4292 fi 4293 ;; 4294 4295darwin* | rhapsody*) 4296 lt_cv_deplibs_check_method=pass_all 4297 ;; 4298 4299freebsd* | dragonfly*) 4300 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4301 case $host_cpu in 4302 i*86 ) 4303 # Not sure whether the presence of OpenBSD here was a mistake. 4304 # Let's accept both of them until this is cleared up. 4305 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4306 lt_cv_file_magic_cmd=/usr/bin/file 4307 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4308 ;; 4309 esac 4310 else 4311 lt_cv_deplibs_check_method=pass_all 4312 fi 4313 ;; 4314 4315gnu*) 4316 lt_cv_deplibs_check_method=pass_all 4317 ;; 4318 4319hpux10.20* | hpux11*) 4320 lt_cv_file_magic_cmd=/usr/bin/file 4321 case $host_cpu in 4322 ia64*) 4323 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4324 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4325 ;; 4326 hppa*64*) 4327 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]' 4328 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4329 ;; 4330 *) 4331 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4332 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4333 ;; 4334 esac 4335 ;; 4336 4337interix[3-9]*) 4338 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4339 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4340 ;; 4341 4342irix5* | irix6* | nonstopux*) 4343 case $LD in 4344 *-32|*"-32 ") libmagic=32-bit;; 4345 *-n32|*"-n32 ") libmagic=N32;; 4346 *-64|*"-64 ") libmagic=64-bit;; 4347 *) libmagic=never-match;; 4348 esac 4349 lt_cv_deplibs_check_method=pass_all 4350 ;; 4351 4352# This must be Linux ELF. 4353linux* | k*bsd*-gnu) 4354 lt_cv_deplibs_check_method=pass_all 4355 ;; 4356 4357netbsd*) 4358 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4359 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4360 else 4361 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4362 fi 4363 ;; 4364 4365newos6*) 4366 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4367 lt_cv_file_magic_cmd=/usr/bin/file 4368 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4369 ;; 4370 4371nto-qnx*) 4372 lt_cv_deplibs_check_method=unknown 4373 ;; 4374 4375openbsd*) 4376 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4377 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4378 else 4379 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4380 fi 4381 ;; 4382 4383osf3* | osf4* | osf5*) 4384 lt_cv_deplibs_check_method=pass_all 4385 ;; 4386 4387rdos*) 4388 lt_cv_deplibs_check_method=pass_all 4389 ;; 4390 4391solaris*) 4392 lt_cv_deplibs_check_method=pass_all 4393 ;; 4394 4395sysv4 | sysv4.3*) 4396 case $host_vendor in 4397 motorola) 4398 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]' 4399 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4400 ;; 4401 ncr) 4402 lt_cv_deplibs_check_method=pass_all 4403 ;; 4404 sequent) 4405 lt_cv_file_magic_cmd='/bin/file' 4406 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4407 ;; 4408 sni) 4409 lt_cv_file_magic_cmd='/bin/file' 4410 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4411 lt_cv_file_magic_test_file=/lib/libc.so 4412 ;; 4413 siemens) 4414 lt_cv_deplibs_check_method=pass_all 4415 ;; 4416 pc) 4417 lt_cv_deplibs_check_method=pass_all 4418 ;; 4419 esac 4420 ;; 4421 4422sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4423 lt_cv_deplibs_check_method=pass_all 4424 ;; 4425esac 4426 4427fi 4428{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4429$as_echo "$lt_cv_deplibs_check_method" >&6; } 4430file_magic_cmd=$lt_cv_file_magic_cmd 4431deplibs_check_method=$lt_cv_deplibs_check_method 4432test -z "$deplibs_check_method" && deplibs_check_method=unknown 4433 4434 4435 4436 4437# If no C compiler was specified, use CC. 4438LTCC=${LTCC-"$CC"} 4439 4440# If no C compiler flags were specified, use CFLAGS. 4441LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4442 4443# Allow CC to be a program name with arguments. 4444compiler=$CC 4445 4446 4447# Check whether --enable-libtool-lock was given. 4448if test "${enable_libtool_lock+set}" = set; then 4449 enableval=$enable_libtool_lock; 4450fi 4451 4452test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4453 4454# Some flags need to be propagated to the compiler or linker for good 4455# libtool support. 4456case $host in 4457ia64-*-hpux*) 4458 # Find out which ABI we are using. 4459 echo 'int i;' > conftest.$ac_ext 4460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4461 (eval $ac_compile) 2>&5 4462 ac_status=$? 4463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4464 (exit $ac_status); }; then 4465 case `/usr/bin/file conftest.$ac_objext` in 4466 *ELF-32*) 4467 HPUX_IA64_MODE="32" 4468 ;; 4469 *ELF-64*) 4470 HPUX_IA64_MODE="64" 4471 ;; 4472 esac 4473 fi 4474 rm -rf conftest* 4475 ;; 4476*-*-irix6*) 4477 # Find out which ABI we are using. 4478 echo '#line 4478 "configure"' > conftest.$ac_ext 4479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4480 (eval $ac_compile) 2>&5 4481 ac_status=$? 4482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4483 (exit $ac_status); }; then 4484 if test "$lt_cv_prog_gnu_ld" = yes; then 4485 case `/usr/bin/file conftest.$ac_objext` in 4486 *32-bit*) 4487 LD="${LD-ld} -melf32bsmip" 4488 ;; 4489 *N32*) 4490 LD="${LD-ld} -melf32bmipn32" 4491 ;; 4492 *64-bit*) 4493 LD="${LD-ld} -melf64bmip" 4494 ;; 4495 esac 4496 else 4497 case `/usr/bin/file conftest.$ac_objext` in 4498 *32-bit*) 4499 LD="${LD-ld} -32" 4500 ;; 4501 *N32*) 4502 LD="${LD-ld} -n32" 4503 ;; 4504 *64-bit*) 4505 LD="${LD-ld} -64" 4506 ;; 4507 esac 4508 fi 4509 fi 4510 rm -rf conftest* 4511 ;; 4512 4513x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 4514s390*-*linux*|sparc*-*linux*) 4515 # Find out which ABI we are using. 4516 echo 'int i;' > conftest.$ac_ext 4517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4518 (eval $ac_compile) 2>&5 4519 ac_status=$? 4520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4521 (exit $ac_status); }; then 4522 case `/usr/bin/file conftest.o` in 4523 *32-bit*) 4524 case $host in 4525 x86_64-*kfreebsd*-gnu) 4526 LD="${LD-ld} -m elf_i386_fbsd" 4527 ;; 4528 x86_64-*linux*) 4529 LD="${LD-ld} -m elf_i386" 4530 ;; 4531 ppc64-*linux*|powerpc64-*linux*) 4532 LD="${LD-ld} -m elf32ppclinux" 4533 ;; 4534 s390x-*linux*) 4535 LD="${LD-ld} -m elf_s390" 4536 ;; 4537 sparc64-*linux*) 4538 LD="${LD-ld} -m elf32_sparc" 4539 ;; 4540 esac 4541 ;; 4542 *64-bit*) 4543 case $host in 4544 x86_64-*kfreebsd*-gnu) 4545 LD="${LD-ld} -m elf_x86_64_fbsd" 4546 ;; 4547 x86_64-*linux*) 4548 LD="${LD-ld} -m elf_x86_64" 4549 ;; 4550 ppc*-*linux*|powerpc*-*linux*) 4551 LD="${LD-ld} -m elf64ppc" 4552 ;; 4553 s390*-*linux*) 4554 LD="${LD-ld} -m elf64_s390" 4555 ;; 4556 sparc*-*linux*) 4557 LD="${LD-ld} -m elf64_sparc" 4558 ;; 4559 esac 4560 ;; 4561 esac 4562 fi 4563 rm -rf conftest* 4564 ;; 4565 4566*-*-sco3.2v5*) 4567 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4568 SAVE_CFLAGS="$CFLAGS" 4569 CFLAGS="$CFLAGS -belf" 4570 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4571$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 4572if test "${lt_cv_cc_needs_belf+set}" = set; then 4573 $as_echo_n "(cached) " >&6 4574else 4575 ac_ext=c 4576ac_cpp='$CPP $CPPFLAGS' 4577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4579ac_compiler_gnu=$ac_cv_c_compiler_gnu 4580 4581 cat >conftest.$ac_ext <<_ACEOF 4582/* confdefs.h. */ 4583_ACEOF 4584cat confdefs.h >>conftest.$ac_ext 4585cat >>conftest.$ac_ext <<_ACEOF 4586/* end confdefs.h. */ 4587 4588int 4589main () 4590{ 4591 4592 ; 4593 return 0; 4594} 4595_ACEOF 4596rm -f conftest.$ac_objext conftest$ac_exeext 4597if { (ac_try="$ac_link" 4598case "(($ac_try" in 4599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4600 *) ac_try_echo=$ac_try;; 4601esac 4602eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4603$as_echo "$ac_try_echo") >&5 4604 (eval "$ac_link") 2>conftest.er1 4605 ac_status=$? 4606 grep -v '^ *+' conftest.er1 >conftest.err 4607 rm -f conftest.er1 4608 cat conftest.err >&5 4609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4610 (exit $ac_status); } && { 4611 test -z "$ac_c_werror_flag" || 4612 test ! -s conftest.err 4613 } && test -s conftest$ac_exeext && { 4614 test "$cross_compiling" = yes || 4615 $as_test_x conftest$ac_exeext 4616 }; then 4617 lt_cv_cc_needs_belf=yes 4618else 4619 $as_echo "$as_me: failed program was:" >&5 4620sed 's/^/| /' conftest.$ac_ext >&5 4621 4622 lt_cv_cc_needs_belf=no 4623fi 4624 4625rm -rf conftest.dSYM 4626rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4627 conftest$ac_exeext conftest.$ac_ext 4628 ac_ext=c 4629ac_cpp='$CPP $CPPFLAGS' 4630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4632ac_compiler_gnu=$ac_cv_c_compiler_gnu 4633 4634fi 4635{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4636$as_echo "$lt_cv_cc_needs_belf" >&6; } 4637 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4638 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4639 CFLAGS="$SAVE_CFLAGS" 4640 fi 4641 ;; 4642sparc*-*solaris*) 4643 # Find out which ABI we are using. 4644 echo 'int i;' > conftest.$ac_ext 4645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4646 (eval $ac_compile) 2>&5 4647 ac_status=$? 4648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4649 (exit $ac_status); }; then 4650 case `/usr/bin/file conftest.o` in 4651 *64-bit*) 4652 case $lt_cv_prog_gnu_ld in 4653 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4654 *) 4655 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 4656 LD="${LD-ld} -64" 4657 fi 4658 ;; 4659 esac 4660 ;; 4661 esac 4662 fi 4663 rm -rf conftest* 4664 ;; 4665 4666 4667esac 4668 4669need_locks="$enable_libtool_lock" 4670 4671 4672ac_ext=c 4673ac_cpp='$CPP $CPPFLAGS' 4674ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4675ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4676ac_compiler_gnu=$ac_cv_c_compiler_gnu 4677{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4678$as_echo_n "checking how to run the C preprocessor... " >&6; } 4679# On Suns, sometimes $CPP names a directory. 4680if test -n "$CPP" && test -d "$CPP"; then 4681 CPP= 4682fi 4683if test -z "$CPP"; then 4684 if test "${ac_cv_prog_CPP+set}" = set; then 4685 $as_echo_n "(cached) " >&6 4686else 4687 # Double quotes because CPP needs to be expanded 4688 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4689 do 4690 ac_preproc_ok=false 4691for ac_c_preproc_warn_flag in '' yes 4692do 4693 # Use a header file that comes with gcc, so configuring glibc 4694 # with a fresh cross-compiler works. 4695 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4696 # <limits.h> exists even on freestanding compilers. 4697 # On the NeXT, cc -E runs the code through the compiler's parser, 4698 # not just through cpp. "Syntax error" is here to catch this case. 4699 cat >conftest.$ac_ext <<_ACEOF 4700/* confdefs.h. */ 4701_ACEOF 4702cat confdefs.h >>conftest.$ac_ext 4703cat >>conftest.$ac_ext <<_ACEOF 4704/* end confdefs.h. */ 4705#ifdef __STDC__ 4706# include <limits.h> 4707#else 4708# include <assert.h> 4709#endif 4710 Syntax error 4711_ACEOF 4712if { (ac_try="$ac_cpp conftest.$ac_ext" 4713case "(($ac_try" in 4714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4715 *) ac_try_echo=$ac_try;; 4716esac 4717eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4718$as_echo "$ac_try_echo") >&5 4719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4720 ac_status=$? 4721 grep -v '^ *+' conftest.er1 >conftest.err 4722 rm -f conftest.er1 4723 cat conftest.err >&5 4724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4725 (exit $ac_status); } >/dev/null && { 4726 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4727 test ! -s conftest.err 4728 }; then 4729 : 4730else 4731 $as_echo "$as_me: failed program was:" >&5 4732sed 's/^/| /' conftest.$ac_ext >&5 4733 4734 # Broken: fails on valid input. 4735continue 4736fi 4737 4738rm -f conftest.err conftest.$ac_ext 4739 4740 # OK, works on sane cases. Now check whether nonexistent headers 4741 # can be detected and how. 4742 cat >conftest.$ac_ext <<_ACEOF 4743/* confdefs.h. */ 4744_ACEOF 4745cat confdefs.h >>conftest.$ac_ext 4746cat >>conftest.$ac_ext <<_ACEOF 4747/* end confdefs.h. */ 4748#include <ac_nonexistent.h> 4749_ACEOF 4750if { (ac_try="$ac_cpp conftest.$ac_ext" 4751case "(($ac_try" in 4752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4753 *) ac_try_echo=$ac_try;; 4754esac 4755eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4756$as_echo "$ac_try_echo") >&5 4757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4758 ac_status=$? 4759 grep -v '^ *+' conftest.er1 >conftest.err 4760 rm -f conftest.er1 4761 cat conftest.err >&5 4762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4763 (exit $ac_status); } >/dev/null && { 4764 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4765 test ! -s conftest.err 4766 }; then 4767 # Broken: success on invalid input. 4768continue 4769else 4770 $as_echo "$as_me: failed program was:" >&5 4771sed 's/^/| /' conftest.$ac_ext >&5 4772 4773 # Passes both tests. 4774ac_preproc_ok=: 4775break 4776fi 4777 4778rm -f conftest.err conftest.$ac_ext 4779 4780done 4781# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4782rm -f conftest.err conftest.$ac_ext 4783if $ac_preproc_ok; then 4784 break 4785fi 4786 4787 done 4788 ac_cv_prog_CPP=$CPP 4789 4790fi 4791 CPP=$ac_cv_prog_CPP 4792else 4793 ac_cv_prog_CPP=$CPP 4794fi 4795{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 4796$as_echo "$CPP" >&6; } 4797ac_preproc_ok=false 4798for ac_c_preproc_warn_flag in '' yes 4799do 4800 # Use a header file that comes with gcc, so configuring glibc 4801 # with a fresh cross-compiler works. 4802 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4803 # <limits.h> exists even on freestanding compilers. 4804 # On the NeXT, cc -E runs the code through the compiler's parser, 4805 # not just through cpp. "Syntax error" is here to catch this case. 4806 cat >conftest.$ac_ext <<_ACEOF 4807/* confdefs.h. */ 4808_ACEOF 4809cat confdefs.h >>conftest.$ac_ext 4810cat >>conftest.$ac_ext <<_ACEOF 4811/* end confdefs.h. */ 4812#ifdef __STDC__ 4813# include <limits.h> 4814#else 4815# include <assert.h> 4816#endif 4817 Syntax error 4818_ACEOF 4819if { (ac_try="$ac_cpp conftest.$ac_ext" 4820case "(($ac_try" in 4821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4822 *) ac_try_echo=$ac_try;; 4823esac 4824eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4825$as_echo "$ac_try_echo") >&5 4826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4827 ac_status=$? 4828 grep -v '^ *+' conftest.er1 >conftest.err 4829 rm -f conftest.er1 4830 cat conftest.err >&5 4831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4832 (exit $ac_status); } >/dev/null && { 4833 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4834 test ! -s conftest.err 4835 }; then 4836 : 4837else 4838 $as_echo "$as_me: failed program was:" >&5 4839sed 's/^/| /' conftest.$ac_ext >&5 4840 4841 # Broken: fails on valid input. 4842continue 4843fi 4844 4845rm -f conftest.err conftest.$ac_ext 4846 4847 # OK, works on sane cases. Now check whether nonexistent headers 4848 # can be detected and how. 4849 cat >conftest.$ac_ext <<_ACEOF 4850/* confdefs.h. */ 4851_ACEOF 4852cat confdefs.h >>conftest.$ac_ext 4853cat >>conftest.$ac_ext <<_ACEOF 4854/* end confdefs.h. */ 4855#include <ac_nonexistent.h> 4856_ACEOF 4857if { (ac_try="$ac_cpp conftest.$ac_ext" 4858case "(($ac_try" in 4859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4860 *) ac_try_echo=$ac_try;; 4861esac 4862eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4863$as_echo "$ac_try_echo") >&5 4864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4865 ac_status=$? 4866 grep -v '^ *+' conftest.er1 >conftest.err 4867 rm -f conftest.er1 4868 cat conftest.err >&5 4869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4870 (exit $ac_status); } >/dev/null && { 4871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4872 test ! -s conftest.err 4873 }; then 4874 # Broken: success on invalid input. 4875continue 4876else 4877 $as_echo "$as_me: failed program was:" >&5 4878sed 's/^/| /' conftest.$ac_ext >&5 4879 4880 # Passes both tests. 4881ac_preproc_ok=: 4882break 4883fi 4884 4885rm -f conftest.err conftest.$ac_ext 4886 4887done 4888# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4889rm -f conftest.err conftest.$ac_ext 4890if $ac_preproc_ok; then 4891 : 4892else 4893 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 4894$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4895{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4896See \`config.log' for more details." >&5 4897$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4898See \`config.log' for more details." >&2;} 4899 { (exit 1); exit 1; }; }; } 4900fi 4901 4902ac_ext=c 4903ac_cpp='$CPP $CPPFLAGS' 4904ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4905ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4906ac_compiler_gnu=$ac_cv_c_compiler_gnu 4907 4908 4909{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4910$as_echo_n "checking for ANSI C header files... " >&6; } 4911if test "${ac_cv_header_stdc+set}" = set; then 4912 $as_echo_n "(cached) " >&6 4913else 4914 cat >conftest.$ac_ext <<_ACEOF 4915/* confdefs.h. */ 4916_ACEOF 4917cat confdefs.h >>conftest.$ac_ext 4918cat >>conftest.$ac_ext <<_ACEOF 4919/* end confdefs.h. */ 4920#include <stdlib.h> 4921#include <stdarg.h> 4922#include <string.h> 4923#include <float.h> 4924 4925int 4926main () 4927{ 4928 4929 ; 4930 return 0; 4931} 4932_ACEOF 4933rm -f conftest.$ac_objext 4934if { (ac_try="$ac_compile" 4935case "(($ac_try" in 4936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4937 *) ac_try_echo=$ac_try;; 4938esac 4939eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4940$as_echo "$ac_try_echo") >&5 4941 (eval "$ac_compile") 2>conftest.er1 4942 ac_status=$? 4943 grep -v '^ *+' conftest.er1 >conftest.err 4944 rm -f conftest.er1 4945 cat conftest.err >&5 4946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4947 (exit $ac_status); } && { 4948 test -z "$ac_c_werror_flag" || 4949 test ! -s conftest.err 4950 } && test -s conftest.$ac_objext; then 4951 ac_cv_header_stdc=yes 4952else 4953 $as_echo "$as_me: failed program was:" >&5 4954sed 's/^/| /' conftest.$ac_ext >&5 4955 4956 ac_cv_header_stdc=no 4957fi 4958 4959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4960 4961if test $ac_cv_header_stdc = yes; then 4962 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4963 cat >conftest.$ac_ext <<_ACEOF 4964/* confdefs.h. */ 4965_ACEOF 4966cat confdefs.h >>conftest.$ac_ext 4967cat >>conftest.$ac_ext <<_ACEOF 4968/* end confdefs.h. */ 4969#include <string.h> 4970 4971_ACEOF 4972if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4973 $EGREP "memchr" >/dev/null 2>&1; then 4974 : 4975else 4976 ac_cv_header_stdc=no 4977fi 4978rm -f conftest* 4979 4980fi 4981 4982if test $ac_cv_header_stdc = yes; then 4983 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4984 cat >conftest.$ac_ext <<_ACEOF 4985/* confdefs.h. */ 4986_ACEOF 4987cat confdefs.h >>conftest.$ac_ext 4988cat >>conftest.$ac_ext <<_ACEOF 4989/* end confdefs.h. */ 4990#include <stdlib.h> 4991 4992_ACEOF 4993if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4994 $EGREP "free" >/dev/null 2>&1; then 4995 : 4996else 4997 ac_cv_header_stdc=no 4998fi 4999rm -f conftest* 5000 5001fi 5002 5003if test $ac_cv_header_stdc = yes; then 5004 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5005 if test "$cross_compiling" = yes; then 5006 : 5007else 5008 cat >conftest.$ac_ext <<_ACEOF 5009/* confdefs.h. */ 5010_ACEOF 5011cat confdefs.h >>conftest.$ac_ext 5012cat >>conftest.$ac_ext <<_ACEOF 5013/* end confdefs.h. */ 5014#include <ctype.h> 5015#include <stdlib.h> 5016#if ((' ' & 0x0FF) == 0x020) 5017# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5018# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5019#else 5020# define ISLOWER(c) \ 5021 (('a' <= (c) && (c) <= 'i') \ 5022 || ('j' <= (c) && (c) <= 'r') \ 5023 || ('s' <= (c) && (c) <= 'z')) 5024# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5025#endif 5026 5027#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5028int 5029main () 5030{ 5031 int i; 5032 for (i = 0; i < 256; i++) 5033 if (XOR (islower (i), ISLOWER (i)) 5034 || toupper (i) != TOUPPER (i)) 5035 return 2; 5036 return 0; 5037} 5038_ACEOF 5039rm -f conftest$ac_exeext 5040if { (ac_try="$ac_link" 5041case "(($ac_try" in 5042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5043 *) ac_try_echo=$ac_try;; 5044esac 5045eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5046$as_echo "$ac_try_echo") >&5 5047 (eval "$ac_link") 2>&5 5048 ac_status=$? 5049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5050 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5051 { (case "(($ac_try" in 5052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5053 *) ac_try_echo=$ac_try;; 5054esac 5055eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5056$as_echo "$ac_try_echo") >&5 5057 (eval "$ac_try") 2>&5 5058 ac_status=$? 5059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5060 (exit $ac_status); }; }; then 5061 : 5062else 5063 $as_echo "$as_me: program exited with status $ac_status" >&5 5064$as_echo "$as_me: failed program was:" >&5 5065sed 's/^/| /' conftest.$ac_ext >&5 5066 5067( exit $ac_status ) 5068ac_cv_header_stdc=no 5069fi 5070rm -rf conftest.dSYM 5071rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5072fi 5073 5074 5075fi 5076fi 5077{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5078$as_echo "$ac_cv_header_stdc" >&6; } 5079if test $ac_cv_header_stdc = yes; then 5080 5081cat >>confdefs.h <<\_ACEOF 5082#define STDC_HEADERS 1 5083_ACEOF 5084 5085fi 5086 5087# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5098 inttypes.h stdint.h unistd.h 5099do 5100as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5101{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5102$as_echo_n "checking for $ac_header... " >&6; } 5103if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5104 $as_echo_n "(cached) " >&6 5105else 5106 cat >conftest.$ac_ext <<_ACEOF 5107/* confdefs.h. */ 5108_ACEOF 5109cat confdefs.h >>conftest.$ac_ext 5110cat >>conftest.$ac_ext <<_ACEOF 5111/* end confdefs.h. */ 5112$ac_includes_default 5113 5114#include <$ac_header> 5115_ACEOF 5116rm -f conftest.$ac_objext 5117if { (ac_try="$ac_compile" 5118case "(($ac_try" in 5119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5120 *) ac_try_echo=$ac_try;; 5121esac 5122eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5123$as_echo "$ac_try_echo") >&5 5124 (eval "$ac_compile") 2>conftest.er1 5125 ac_status=$? 5126 grep -v '^ *+' conftest.er1 >conftest.err 5127 rm -f conftest.er1 5128 cat conftest.err >&5 5129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5130 (exit $ac_status); } && { 5131 test -z "$ac_c_werror_flag" || 5132 test ! -s conftest.err 5133 } && test -s conftest.$ac_objext; then 5134 eval "$as_ac_Header=yes" 5135else 5136 $as_echo "$as_me: failed program was:" >&5 5137sed 's/^/| /' conftest.$ac_ext >&5 5138 5139 eval "$as_ac_Header=no" 5140fi 5141 5142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5143fi 5144ac_res=`eval 'as_val=${'$as_ac_Header'} 5145 $as_echo "$as_val"'` 5146 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5147$as_echo "$ac_res" >&6; } 5148as_val=`eval 'as_val=${'$as_ac_Header'} 5149 $as_echo "$as_val"'` 5150 if test "x$as_val" = x""yes; then 5151 cat >>confdefs.h <<_ACEOF 5152#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5153_ACEOF 5154 5155fi 5156 5157done 5158 5159 5160 5161for ac_header in dlfcn.h 5162do 5163as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5164if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5165 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5166$as_echo_n "checking for $ac_header... " >&6; } 5167if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5168 $as_echo_n "(cached) " >&6 5169fi 5170ac_res=`eval 'as_val=${'$as_ac_Header'} 5171 $as_echo "$as_val"'` 5172 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5173$as_echo "$ac_res" >&6; } 5174else 5175 # Is the header compilable? 5176{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 5177$as_echo_n "checking $ac_header usability... " >&6; } 5178cat >conftest.$ac_ext <<_ACEOF 5179/* confdefs.h. */ 5180_ACEOF 5181cat confdefs.h >>conftest.$ac_ext 5182cat >>conftest.$ac_ext <<_ACEOF 5183/* end confdefs.h. */ 5184$ac_includes_default 5185#include <$ac_header> 5186_ACEOF 5187rm -f conftest.$ac_objext 5188if { (ac_try="$ac_compile" 5189case "(($ac_try" in 5190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5191 *) ac_try_echo=$ac_try;; 5192esac 5193eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5194$as_echo "$ac_try_echo") >&5 5195 (eval "$ac_compile") 2>conftest.er1 5196 ac_status=$? 5197 grep -v '^ *+' conftest.er1 >conftest.err 5198 rm -f conftest.er1 5199 cat conftest.err >&5 5200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5201 (exit $ac_status); } && { 5202 test -z "$ac_c_werror_flag" || 5203 test ! -s conftest.err 5204 } && test -s conftest.$ac_objext; then 5205 ac_header_compiler=yes 5206else 5207 $as_echo "$as_me: failed program was:" >&5 5208sed 's/^/| /' conftest.$ac_ext >&5 5209 5210 ac_header_compiler=no 5211fi 5212 5213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5214{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5215$as_echo "$ac_header_compiler" >&6; } 5216 5217# Is the header present? 5218{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 5219$as_echo_n "checking $ac_header presence... " >&6; } 5220cat >conftest.$ac_ext <<_ACEOF 5221/* confdefs.h. */ 5222_ACEOF 5223cat confdefs.h >>conftest.$ac_ext 5224cat >>conftest.$ac_ext <<_ACEOF 5225/* end confdefs.h. */ 5226#include <$ac_header> 5227_ACEOF 5228if { (ac_try="$ac_cpp conftest.$ac_ext" 5229case "(($ac_try" in 5230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5231 *) ac_try_echo=$ac_try;; 5232esac 5233eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5234$as_echo "$ac_try_echo") >&5 5235 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5236 ac_status=$? 5237 grep -v '^ *+' conftest.er1 >conftest.err 5238 rm -f conftest.er1 5239 cat conftest.err >&5 5240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5241 (exit $ac_status); } >/dev/null && { 5242 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5243 test ! -s conftest.err 5244 }; then 5245 ac_header_preproc=yes 5246else 5247 $as_echo "$as_me: failed program was:" >&5 5248sed 's/^/| /' conftest.$ac_ext >&5 5249 5250 ac_header_preproc=no 5251fi 5252 5253rm -f conftest.err conftest.$ac_ext 5254{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5255$as_echo "$ac_header_preproc" >&6; } 5256 5257# So? What about this header? 5258case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5259 yes:no: ) 5260 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5261$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5262 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5263$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5264 ac_header_preproc=yes 5265 ;; 5266 no:yes:* ) 5267 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5268$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5269 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5270$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5271 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5272$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5273 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5274$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5275 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5276$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5277 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5278$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5279 ( cat <<\_ASBOX 5280## --------------------------------------------- ## 5281## Report this to jgeboski@users.sourceforge.net ## 5282## --------------------------------------------- ## 5283_ASBOX 5284 ) | sed "s/^/$as_me: WARNING: /" >&2 5285 ;; 5286esac 5287{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5288$as_echo_n "checking for $ac_header... " >&6; } 5289if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5290 $as_echo_n "(cached) " >&6 5291else 5292 eval "$as_ac_Header=\$ac_header_preproc" 5293fi 5294ac_res=`eval 'as_val=${'$as_ac_Header'} 5295 $as_echo "$as_val"'` 5296 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5297$as_echo "$ac_res" >&6; } 5298 5299fi 5300as_val=`eval 'as_val=${'$as_ac_Header'} 5301 $as_echo "$as_val"'` 5302 if test "x$as_val" = x""yes; then 5303 cat >>confdefs.h <<_ACEOF 5304#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5305_ACEOF 5306 5307fi 5308 5309done 5310 5311ac_ext=cpp 5312ac_cpp='$CXXCPP $CPPFLAGS' 5313ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5314ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5315ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5316if test -z "$CXX"; then 5317 if test -n "$CCC"; then 5318 CXX=$CCC 5319 else 5320 if test -n "$ac_tool_prefix"; then 5321 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5322 do 5323 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5324set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5325{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5326$as_echo_n "checking for $ac_word... " >&6; } 5327if test "${ac_cv_prog_CXX+set}" = set; then 5328 $as_echo_n "(cached) " >&6 5329else 5330 if test -n "$CXX"; then 5331 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5332else 5333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5334for as_dir in $PATH 5335do 5336 IFS=$as_save_IFS 5337 test -z "$as_dir" && as_dir=. 5338 for ac_exec_ext in '' $ac_executable_extensions; do 5339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5340 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5341 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5342 break 2 5343 fi 5344done 5345done 5346IFS=$as_save_IFS 5347 5348fi 5349fi 5350CXX=$ac_cv_prog_CXX 5351if test -n "$CXX"; then 5352 { $as_echo "$as_me:$LINENO: result: $CXX" >&5 5353$as_echo "$CXX" >&6; } 5354else 5355 { $as_echo "$as_me:$LINENO: result: no" >&5 5356$as_echo "no" >&6; } 5357fi 5358 5359 5360 test -n "$CXX" && break 5361 done 5362fi 5363if test -z "$CXX"; then 5364 ac_ct_CXX=$CXX 5365 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5366do 5367 # Extract the first word of "$ac_prog", so it can be a program name with args. 5368set dummy $ac_prog; ac_word=$2 5369{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5370$as_echo_n "checking for $ac_word... " >&6; } 5371if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5372 $as_echo_n "(cached) " >&6 5373else 5374 if test -n "$ac_ct_CXX"; then 5375 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5376else 5377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5378for as_dir in $PATH 5379do 5380 IFS=$as_save_IFS 5381 test -z "$as_dir" && as_dir=. 5382 for ac_exec_ext in '' $ac_executable_extensions; do 5383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5384 ac_cv_prog_ac_ct_CXX="$ac_prog" 5385 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5386 break 2 5387 fi 5388done 5389done 5390IFS=$as_save_IFS 5391 5392fi 5393fi 5394ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5395if test -n "$ac_ct_CXX"; then 5396 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5397$as_echo "$ac_ct_CXX" >&6; } 5398else 5399 { $as_echo "$as_me:$LINENO: result: no" >&5 5400$as_echo "no" >&6; } 5401fi 5402 5403 5404 test -n "$ac_ct_CXX" && break 5405done 5406 5407 if test "x$ac_ct_CXX" = x; then 5408 CXX="g++" 5409 else 5410 case $cross_compiling:$ac_tool_warned in 5411yes:) 5412{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5413$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5414ac_tool_warned=yes ;; 5415esac 5416 CXX=$ac_ct_CXX 5417 fi 5418fi 5419 5420 fi 5421fi 5422# Provide some information about the compiler. 5423$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5424set X $ac_compile 5425ac_compiler=$2 5426{ (ac_try="$ac_compiler --version >&5" 5427case "(($ac_try" in 5428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5429 *) ac_try_echo=$ac_try;; 5430esac 5431eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5432$as_echo "$ac_try_echo") >&5 5433 (eval "$ac_compiler --version >&5") 2>&5 5434 ac_status=$? 5435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5436 (exit $ac_status); } 5437{ (ac_try="$ac_compiler -v >&5" 5438case "(($ac_try" in 5439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5440 *) ac_try_echo=$ac_try;; 5441esac 5442eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5443$as_echo "$ac_try_echo") >&5 5444 (eval "$ac_compiler -v >&5") 2>&5 5445 ac_status=$? 5446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5447 (exit $ac_status); } 5448{ (ac_try="$ac_compiler -V >&5" 5449case "(($ac_try" in 5450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5451 *) ac_try_echo=$ac_try;; 5452esac 5453eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5454$as_echo "$ac_try_echo") >&5 5455 (eval "$ac_compiler -V >&5") 2>&5 5456 ac_status=$? 5457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5458 (exit $ac_status); } 5459 5460{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5461$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 5462if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5463 $as_echo_n "(cached) " >&6 5464else 5465 cat >conftest.$ac_ext <<_ACEOF 5466/* confdefs.h. */ 5467_ACEOF 5468cat confdefs.h >>conftest.$ac_ext 5469cat >>conftest.$ac_ext <<_ACEOF 5470/* end confdefs.h. */ 5471 5472int 5473main () 5474{ 5475#ifndef __GNUC__ 5476 choke me 5477#endif 5478 5479 ; 5480 return 0; 5481} 5482_ACEOF 5483rm -f conftest.$ac_objext 5484if { (ac_try="$ac_compile" 5485case "(($ac_try" in 5486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5487 *) ac_try_echo=$ac_try;; 5488esac 5489eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5490$as_echo "$ac_try_echo") >&5 5491 (eval "$ac_compile") 2>conftest.er1 5492 ac_status=$? 5493 grep -v '^ *+' conftest.er1 >conftest.err 5494 rm -f conftest.er1 5495 cat conftest.err >&5 5496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5497 (exit $ac_status); } && { 5498 test -z "$ac_cxx_werror_flag" || 5499 test ! -s conftest.err 5500 } && test -s conftest.$ac_objext; then 5501 ac_compiler_gnu=yes 5502else 5503 $as_echo "$as_me: failed program was:" >&5 5504sed 's/^/| /' conftest.$ac_ext >&5 5505 5506 ac_compiler_gnu=no 5507fi 5508 5509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5510ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5511 5512fi 5513{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5514$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 5515if test $ac_compiler_gnu = yes; then 5516 GXX=yes 5517else 5518 GXX= 5519fi 5520ac_test_CXXFLAGS=${CXXFLAGS+set} 5521ac_save_CXXFLAGS=$CXXFLAGS 5522{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5523$as_echo_n "checking whether $CXX accepts -g... " >&6; } 5524if test "${ac_cv_prog_cxx_g+set}" = set; then 5525 $as_echo_n "(cached) " >&6 5526else 5527 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5528 ac_cxx_werror_flag=yes 5529 ac_cv_prog_cxx_g=no 5530 CXXFLAGS="-g" 5531 cat >conftest.$ac_ext <<_ACEOF 5532/* confdefs.h. */ 5533_ACEOF 5534cat confdefs.h >>conftest.$ac_ext 5535cat >>conftest.$ac_ext <<_ACEOF 5536/* end confdefs.h. */ 5537 5538int 5539main () 5540{ 5541 5542 ; 5543 return 0; 5544} 5545_ACEOF 5546rm -f conftest.$ac_objext 5547if { (ac_try="$ac_compile" 5548case "(($ac_try" in 5549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5550 *) ac_try_echo=$ac_try;; 5551esac 5552eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5553$as_echo "$ac_try_echo") >&5 5554 (eval "$ac_compile") 2>conftest.er1 5555 ac_status=$? 5556 grep -v '^ *+' conftest.er1 >conftest.err 5557 rm -f conftest.er1 5558 cat conftest.err >&5 5559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5560 (exit $ac_status); } && { 5561 test -z "$ac_cxx_werror_flag" || 5562 test ! -s conftest.err 5563 } && test -s conftest.$ac_objext; then 5564 ac_cv_prog_cxx_g=yes 5565else 5566 $as_echo "$as_me: failed program was:" >&5 5567sed 's/^/| /' conftest.$ac_ext >&5 5568 5569 CXXFLAGS="" 5570 cat >conftest.$ac_ext <<_ACEOF 5571/* confdefs.h. */ 5572_ACEOF 5573cat confdefs.h >>conftest.$ac_ext 5574cat >>conftest.$ac_ext <<_ACEOF 5575/* end confdefs.h. */ 5576 5577int 5578main () 5579{ 5580 5581 ; 5582 return 0; 5583} 5584_ACEOF 5585rm -f conftest.$ac_objext 5586if { (ac_try="$ac_compile" 5587case "(($ac_try" in 5588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5589 *) ac_try_echo=$ac_try;; 5590esac 5591eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5592$as_echo "$ac_try_echo") >&5 5593 (eval "$ac_compile") 2>conftest.er1 5594 ac_status=$? 5595 grep -v '^ *+' conftest.er1 >conftest.err 5596 rm -f conftest.er1 5597 cat conftest.err >&5 5598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5599 (exit $ac_status); } && { 5600 test -z "$ac_cxx_werror_flag" || 5601 test ! -s conftest.err 5602 } && test -s conftest.$ac_objext; then 5603 : 5604else 5605 $as_echo "$as_me: failed program was:" >&5 5606sed 's/^/| /' conftest.$ac_ext >&5 5607 5608 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5609 CXXFLAGS="-g" 5610 cat >conftest.$ac_ext <<_ACEOF 5611/* confdefs.h. */ 5612_ACEOF 5613cat confdefs.h >>conftest.$ac_ext 5614cat >>conftest.$ac_ext <<_ACEOF 5615/* end confdefs.h. */ 5616 5617int 5618main () 5619{ 5620 5621 ; 5622 return 0; 5623} 5624_ACEOF 5625rm -f conftest.$ac_objext 5626if { (ac_try="$ac_compile" 5627case "(($ac_try" in 5628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5629 *) ac_try_echo=$ac_try;; 5630esac 5631eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5632$as_echo "$ac_try_echo") >&5 5633 (eval "$ac_compile") 2>conftest.er1 5634 ac_status=$? 5635 grep -v '^ *+' conftest.er1 >conftest.err 5636 rm -f conftest.er1 5637 cat conftest.err >&5 5638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5639 (exit $ac_status); } && { 5640 test -z "$ac_cxx_werror_flag" || 5641 test ! -s conftest.err 5642 } && test -s conftest.$ac_objext; then 5643 ac_cv_prog_cxx_g=yes 5644else 5645 $as_echo "$as_me: failed program was:" >&5 5646sed 's/^/| /' conftest.$ac_ext >&5 5647 5648 5649fi 5650 5651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5652fi 5653 5654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5655fi 5656 5657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5658 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5659fi 5660{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5661$as_echo "$ac_cv_prog_cxx_g" >&6; } 5662if test "$ac_test_CXXFLAGS" = set; then 5663 CXXFLAGS=$ac_save_CXXFLAGS 5664elif test $ac_cv_prog_cxx_g = yes; then 5665 if test "$GXX" = yes; then 5666 CXXFLAGS="-g -O2" 5667 else 5668 CXXFLAGS="-g" 5669 fi 5670else 5671 if test "$GXX" = yes; then 5672 CXXFLAGS="-O2" 5673 else 5674 CXXFLAGS= 5675 fi 5676fi 5677ac_ext=cpp 5678ac_cpp='$CXXCPP $CPPFLAGS' 5679ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5680ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5681ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5682 5683depcc="$CXX" am_compiler_list= 5684 5685{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5686$as_echo_n "checking dependency style of $depcc... " >&6; } 5687if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5688 $as_echo_n "(cached) " >&6 5689else 5690 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5691 # We make a subdir and do the tests there. Otherwise we can end up 5692 # making bogus files that we don't know about and never remove. For 5693 # instance it was reported that on HP-UX the gcc test will end up 5694 # making a dummy file named `D' -- because `-MD' means `put the output 5695 # in D'. 5696 mkdir conftest.dir 5697 # Copy depcomp to subdir because otherwise we won't find it if we're 5698 # using a relative directory. 5699 cp "$am_depcomp" conftest.dir 5700 cd conftest.dir 5701 # We will build objects and dependencies in a subdirectory because 5702 # it helps to detect inapplicable dependency modes. For instance 5703 # both Tru64's cc and ICC support -MD to output dependencies as a 5704 # side effect of compilation, but ICC will put the dependencies in 5705 # the current directory while Tru64 will put them in the object 5706 # directory. 5707 mkdir sub 5708 5709 am_cv_CXX_dependencies_compiler_type=none 5710 if test "$am_compiler_list" = ""; then 5711 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5712 fi 5713 for depmode in $am_compiler_list; do 5714 # Setup a source with many dependencies, because some compilers 5715 # like to wrap large dependency lists on column 80 (with \), and 5716 # we should not choose a depcomp mode which is confused by this. 5717 # 5718 # We need to recreate these files for each test, as the compiler may 5719 # overwrite some of them when testing with obscure command lines. 5720 # This happens at least with the AIX C compiler. 5721 : > sub/conftest.c 5722 for i in 1 2 3 4 5 6; do 5723 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5724 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5725 # Solaris 8's {/usr,}/bin/sh. 5726 touch sub/conftst$i.h 5727 done 5728 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5729 5730 case $depmode in 5731 nosideeffect) 5732 # after this tag, mechanisms are not by side-effect, so they'll 5733 # only be used when explicitly requested 5734 if test "x$enable_dependency_tracking" = xyes; then 5735 continue 5736 else 5737 break 5738 fi 5739 ;; 5740 none) break ;; 5741 esac 5742 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5743 # mode. It turns out that the SunPro C++ compiler does not properly 5744 # handle `-M -o', and we need to detect this. 5745 if depmode=$depmode \ 5746 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5747 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5748 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5749 >/dev/null 2>conftest.err && 5750 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5751 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5752 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5753 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5754 # icc doesn't choke on unknown options, it will just issue warnings 5755 # or remarks (even with -Werror). So we grep stderr for any message 5756 # that says an option was ignored or not supported. 5757 # When given -MP, icc 7.0 and 7.1 complain thusly: 5758 # icc: Command line warning: ignoring option '-M'; no argument required 5759 # The diagnosis changed in icc 8.0: 5760 # icc: Command line remark: option '-MP' not supported 5761 if (grep 'ignoring option' conftest.err || 5762 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5763 am_cv_CXX_dependencies_compiler_type=$depmode 5764 break 5765 fi 5766 fi 5767 done 5768 5769 cd .. 5770 rm -rf conftest.dir 5771else 5772 am_cv_CXX_dependencies_compiler_type=none 5773fi 5774 5775fi 5776{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5777$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 5778CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5779 5780 if 5781 test "x$enable_dependency_tracking" != xno \ 5782 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5783 am__fastdepCXX_TRUE= 5784 am__fastdepCXX_FALSE='#' 5785else 5786 am__fastdepCXX_TRUE='#' 5787 am__fastdepCXX_FALSE= 5788fi 5789 5790 5791 5792 5793if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5794 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5795 (test "X$CXX" != "Xg++"))) ; then 5796 ac_ext=cpp 5797ac_cpp='$CXXCPP $CPPFLAGS' 5798ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5799ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5800ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5801{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5802$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 5803if test -z "$CXXCPP"; then 5804 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5805 $as_echo_n "(cached) " >&6 5806else 5807 # Double quotes because CXXCPP needs to be expanded 5808 for CXXCPP in "$CXX -E" "/lib/cpp" 5809 do 5810 ac_preproc_ok=false 5811for ac_cxx_preproc_warn_flag in '' yes 5812do 5813 # Use a header file that comes with gcc, so configuring glibc 5814 # with a fresh cross-compiler works. 5815 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5816 # <limits.h> exists even on freestanding compilers. 5817 # On the NeXT, cc -E runs the code through the compiler's parser, 5818 # not just through cpp. "Syntax error" is here to catch this case. 5819 cat >conftest.$ac_ext <<_ACEOF 5820/* confdefs.h. */ 5821_ACEOF 5822cat confdefs.h >>conftest.$ac_ext 5823cat >>conftest.$ac_ext <<_ACEOF 5824/* end confdefs.h. */ 5825#ifdef __STDC__ 5826# include <limits.h> 5827#else 5828# include <assert.h> 5829#endif 5830 Syntax error 5831_ACEOF 5832if { (ac_try="$ac_cpp conftest.$ac_ext" 5833case "(($ac_try" in 5834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5835 *) ac_try_echo=$ac_try;; 5836esac 5837eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5838$as_echo "$ac_try_echo") >&5 5839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5840 ac_status=$? 5841 grep -v '^ *+' conftest.er1 >conftest.err 5842 rm -f conftest.er1 5843 cat conftest.err >&5 5844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5845 (exit $ac_status); } >/dev/null && { 5846 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5847 test ! -s conftest.err 5848 }; then 5849 : 5850else 5851 $as_echo "$as_me: failed program was:" >&5 5852sed 's/^/| /' conftest.$ac_ext >&5 5853 5854 # Broken: fails on valid input. 5855continue 5856fi 5857 5858rm -f conftest.err conftest.$ac_ext 5859 5860 # OK, works on sane cases. Now check whether nonexistent headers 5861 # can be detected and how. 5862 cat >conftest.$ac_ext <<_ACEOF 5863/* confdefs.h. */ 5864_ACEOF 5865cat confdefs.h >>conftest.$ac_ext 5866cat >>conftest.$ac_ext <<_ACEOF 5867/* end confdefs.h. */ 5868#include <ac_nonexistent.h> 5869_ACEOF 5870if { (ac_try="$ac_cpp conftest.$ac_ext" 5871case "(($ac_try" in 5872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5873 *) ac_try_echo=$ac_try;; 5874esac 5875eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5876$as_echo "$ac_try_echo") >&5 5877 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5878 ac_status=$? 5879 grep -v '^ *+' conftest.er1 >conftest.err 5880 rm -f conftest.er1 5881 cat conftest.err >&5 5882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5883 (exit $ac_status); } >/dev/null && { 5884 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5885 test ! -s conftest.err 5886 }; then 5887 # Broken: success on invalid input. 5888continue 5889else 5890 $as_echo "$as_me: failed program was:" >&5 5891sed 's/^/| /' conftest.$ac_ext >&5 5892 5893 # Passes both tests. 5894ac_preproc_ok=: 5895break 5896fi 5897 5898rm -f conftest.err conftest.$ac_ext 5899 5900done 5901# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5902rm -f conftest.err conftest.$ac_ext 5903if $ac_preproc_ok; then 5904 break 5905fi 5906 5907 done 5908 ac_cv_prog_CXXCPP=$CXXCPP 5909 5910fi 5911 CXXCPP=$ac_cv_prog_CXXCPP 5912else 5913 ac_cv_prog_CXXCPP=$CXXCPP 5914fi 5915{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5 5916$as_echo "$CXXCPP" >&6; } 5917ac_preproc_ok=false 5918for ac_cxx_preproc_warn_flag in '' yes 5919do 5920 # Use a header file that comes with gcc, so configuring glibc 5921 # with a fresh cross-compiler works. 5922 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5923 # <limits.h> exists even on freestanding compilers. 5924 # On the NeXT, cc -E runs the code through the compiler's parser, 5925 # not just through cpp. "Syntax error" is here to catch this case. 5926 cat >conftest.$ac_ext <<_ACEOF 5927/* confdefs.h. */ 5928_ACEOF 5929cat confdefs.h >>conftest.$ac_ext 5930cat >>conftest.$ac_ext <<_ACEOF 5931/* end confdefs.h. */ 5932#ifdef __STDC__ 5933# include <limits.h> 5934#else 5935# include <assert.h> 5936#endif 5937 Syntax error 5938_ACEOF 5939if { (ac_try="$ac_cpp conftest.$ac_ext" 5940case "(($ac_try" in 5941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5942 *) ac_try_echo=$ac_try;; 5943esac 5944eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5945$as_echo "$ac_try_echo") >&5 5946 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5947 ac_status=$? 5948 grep -v '^ *+' conftest.er1 >conftest.err 5949 rm -f conftest.er1 5950 cat conftest.err >&5 5951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5952 (exit $ac_status); } >/dev/null && { 5953 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5954 test ! -s conftest.err 5955 }; then 5956 : 5957else 5958 $as_echo "$as_me: failed program was:" >&5 5959sed 's/^/| /' conftest.$ac_ext >&5 5960 5961 # Broken: fails on valid input. 5962continue 5963fi 5964 5965rm -f conftest.err conftest.$ac_ext 5966 5967 # OK, works on sane cases. Now check whether nonexistent headers 5968 # can be detected and how. 5969 cat >conftest.$ac_ext <<_ACEOF 5970/* confdefs.h. */ 5971_ACEOF 5972cat confdefs.h >>conftest.$ac_ext 5973cat >>conftest.$ac_ext <<_ACEOF 5974/* end confdefs.h. */ 5975#include <ac_nonexistent.h> 5976_ACEOF 5977if { (ac_try="$ac_cpp conftest.$ac_ext" 5978case "(($ac_try" in 5979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5980 *) ac_try_echo=$ac_try;; 5981esac 5982eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5983$as_echo "$ac_try_echo") >&5 5984 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5985 ac_status=$? 5986 grep -v '^ *+' conftest.er1 >conftest.err 5987 rm -f conftest.er1 5988 cat conftest.err >&5 5989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5990 (exit $ac_status); } >/dev/null && { 5991 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5992 test ! -s conftest.err 5993 }; then 5994 # Broken: success on invalid input. 5995continue 5996else 5997 $as_echo "$as_me: failed program was:" >&5 5998sed 's/^/| /' conftest.$ac_ext >&5 5999 6000 # Passes both tests. 6001ac_preproc_ok=: 6002break 6003fi 6004 6005rm -f conftest.err conftest.$ac_ext 6006 6007done 6008# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6009rm -f conftest.err conftest.$ac_ext 6010if $ac_preproc_ok; then 6011 : 6012else 6013 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 6014$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6015{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6016See \`config.log' for more details." >&5 6017$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6018See \`config.log' for more details." >&2;} 6019 { (exit 1); exit 1; }; }; } 6020fi 6021 6022ac_ext=cpp 6023ac_cpp='$CXXCPP $CPPFLAGS' 6024ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6025ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6026ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6027 6028fi 6029 6030 6031ac_ext=f 6032ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6033ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6034ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6035if test -n "$ac_tool_prefix"; then 6036 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn 6037 do 6038 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6039set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6040{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6041$as_echo_n "checking for $ac_word... " >&6; } 6042if test "${ac_cv_prog_F77+set}" = set; then 6043 $as_echo_n "(cached) " >&6 6044else 6045 if test -n "$F77"; then 6046 ac_cv_prog_F77="$F77" # Let the user override the test. 6047else 6048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6049for as_dir in $PATH 6050do 6051 IFS=$as_save_IFS 6052 test -z "$as_dir" && as_dir=. 6053 for ac_exec_ext in '' $ac_executable_extensions; do 6054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6055 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 6056 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6057 break 2 6058 fi 6059done 6060done 6061IFS=$as_save_IFS 6062 6063fi 6064fi 6065F77=$ac_cv_prog_F77 6066if test -n "$F77"; then 6067 { $as_echo "$as_me:$LINENO: result: $F77" >&5 6068$as_echo "$F77" >&6; } 6069else 6070 { $as_echo "$as_me:$LINENO: result: no" >&5 6071$as_echo "no" >&6; } 6072fi 6073 6074 6075 test -n "$F77" && break 6076 done 6077fi 6078if test -z "$F77"; then 6079 ac_ct_F77=$F77 6080 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn 6081do 6082 # Extract the first word of "$ac_prog", so it can be a program name with args. 6083set dummy $ac_prog; ac_word=$2 6084{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6085$as_echo_n "checking for $ac_word... " >&6; } 6086if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 6087 $as_echo_n "(cached) " >&6 6088else 6089 if test -n "$ac_ct_F77"; then 6090 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 6091else 6092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6093for as_dir in $PATH 6094do 6095 IFS=$as_save_IFS 6096 test -z "$as_dir" && as_dir=. 6097 for ac_exec_ext in '' $ac_executable_extensions; do 6098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6099 ac_cv_prog_ac_ct_F77="$ac_prog" 6100 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6101 break 2 6102 fi 6103done 6104done 6105IFS=$as_save_IFS 6106 6107fi 6108fi 6109ac_ct_F77=$ac_cv_prog_ac_ct_F77 6110if test -n "$ac_ct_F77"; then 6111 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 6112$as_echo "$ac_ct_F77" >&6; } 6113else 6114 { $as_echo "$as_me:$LINENO: result: no" >&5 6115$as_echo "no" >&6; } 6116fi 6117 6118 6119 test -n "$ac_ct_F77" && break 6120done 6121 6122 if test "x$ac_ct_F77" = x; then 6123 F77="" 6124 else 6125 case $cross_compiling:$ac_tool_warned in 6126yes:) 6127{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6128$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6129ac_tool_warned=yes ;; 6130esac 6131 F77=$ac_ct_F77 6132 fi 6133fi 6134 6135 6136# Provide some information about the compiler. 6137$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 6138set X $ac_compile 6139ac_compiler=$2 6140{ (ac_try="$ac_compiler --version >&5" 6141case "(($ac_try" in 6142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6143 *) ac_try_echo=$ac_try;; 6144esac 6145eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6146$as_echo "$ac_try_echo") >&5 6147 (eval "$ac_compiler --version >&5") 2>&5 6148 ac_status=$? 6149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6150 (exit $ac_status); } 6151{ (ac_try="$ac_compiler -v >&5" 6152case "(($ac_try" in 6153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6154 *) ac_try_echo=$ac_try;; 6155esac 6156eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6157$as_echo "$ac_try_echo") >&5 6158 (eval "$ac_compiler -v >&5") 2>&5 6159 ac_status=$? 6160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6161 (exit $ac_status); } 6162{ (ac_try="$ac_compiler -V >&5" 6163case "(($ac_try" in 6164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6165 *) ac_try_echo=$ac_try;; 6166esac 6167eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6168$as_echo "$ac_try_echo") >&5 6169 (eval "$ac_compiler -V >&5") 2>&5 6170 ac_status=$? 6171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6172 (exit $ac_status); } 6173rm -f a.out 6174 6175# If we don't use `.F' as extension, the preprocessor is not run on the 6176# input file. (Note that this only needs to work for GNU compilers.) 6177ac_save_ext=$ac_ext 6178ac_ext=F 6179{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6180$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; } 6181if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6182 $as_echo_n "(cached) " >&6 6183else 6184 cat >conftest.$ac_ext <<_ACEOF 6185 program main 6186#ifndef __GNUC__ 6187 choke me 6188#endif 6189 6190 end 6191_ACEOF 6192rm -f conftest.$ac_objext 6193if { (ac_try="$ac_compile" 6194case "(($ac_try" in 6195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6196 *) ac_try_echo=$ac_try;; 6197esac 6198eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6199$as_echo "$ac_try_echo") >&5 6200 (eval "$ac_compile") 2>conftest.er1 6201 ac_status=$? 6202 grep -v '^ *+' conftest.er1 >conftest.err 6203 rm -f conftest.er1 6204 cat conftest.err >&5 6205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6206 (exit $ac_status); } && { 6207 test -z "$ac_f77_werror_flag" || 6208 test ! -s conftest.err 6209 } && test -s conftest.$ac_objext; then 6210 ac_compiler_gnu=yes 6211else 6212 $as_echo "$as_me: failed program was:" >&5 6213sed 's/^/| /' conftest.$ac_ext >&5 6214 6215 ac_compiler_gnu=no 6216fi 6217 6218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6219ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6220 6221fi 6222{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6223$as_echo "$ac_cv_f77_compiler_gnu" >&6; } 6224ac_ext=$ac_save_ext 6225ac_test_FFLAGS=${FFLAGS+set} 6226ac_save_FFLAGS=$FFLAGS 6227FFLAGS= 6228{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6229$as_echo_n "checking whether $F77 accepts -g... " >&6; } 6230if test "${ac_cv_prog_f77_g+set}" = set; then 6231 $as_echo_n "(cached) " >&6 6232else 6233 FFLAGS=-g 6234cat >conftest.$ac_ext <<_ACEOF 6235 program main 6236 6237 end 6238_ACEOF 6239rm -f conftest.$ac_objext 6240if { (ac_try="$ac_compile" 6241case "(($ac_try" in 6242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6243 *) ac_try_echo=$ac_try;; 6244esac 6245eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6246$as_echo "$ac_try_echo") >&5 6247 (eval "$ac_compile") 2>conftest.er1 6248 ac_status=$? 6249 grep -v '^ *+' conftest.er1 >conftest.err 6250 rm -f conftest.er1 6251 cat conftest.err >&5 6252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6253 (exit $ac_status); } && { 6254 test -z "$ac_f77_werror_flag" || 6255 test ! -s conftest.err 6256 } && test -s conftest.$ac_objext; then 6257 ac_cv_prog_f77_g=yes 6258else 6259 $as_echo "$as_me: failed program was:" >&5 6260sed 's/^/| /' conftest.$ac_ext >&5 6261 6262 ac_cv_prog_f77_g=no 6263fi 6264 6265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6266 6267fi 6268{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6269$as_echo "$ac_cv_prog_f77_g" >&6; } 6270if test "$ac_test_FFLAGS" = set; then 6271 FFLAGS=$ac_save_FFLAGS 6272elif test $ac_cv_prog_f77_g = yes; then 6273 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6274 FFLAGS="-g -O2" 6275 else 6276 FFLAGS="-g" 6277 fi 6278else 6279 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6280 FFLAGS="-O2" 6281 else 6282 FFLAGS= 6283 fi 6284fi 6285 6286if test $ac_compiler_gnu = yes; then 6287 G77=yes 6288else 6289 G77= 6290fi 6291ac_ext=c 6292ac_cpp='$CPP $CPPFLAGS' 6293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6295ac_compiler_gnu=$ac_cv_c_compiler_gnu 6296 6297 6298 6299# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6300# find the maximum length of command line arguments 6301{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6302$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6303if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6304 $as_echo_n "(cached) " >&6 6305else 6306 i=0 6307 teststring="ABCD" 6308 6309 case $build_os in 6310 msdosdjgpp*) 6311 # On DJGPP, this test can blow up pretty badly due to problems in libc 6312 # (any single argument exceeding 2000 bytes causes a buffer overrun 6313 # during glob expansion). Even if it were fixed, the result of this 6314 # check would be larger than it should be. 6315 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6316 ;; 6317 6318 gnu*) 6319 # Under GNU Hurd, this test is not required because there is 6320 # no limit to the length of command line arguments. 6321 # Libtool will interpret -1 as no limit whatsoever 6322 lt_cv_sys_max_cmd_len=-1; 6323 ;; 6324 6325 cygwin* | mingw*) 6326 # On Win9x/ME, this test blows up -- it succeeds, but takes 6327 # about 5 minutes as the teststring grows exponentially. 6328 # Worse, since 9x/ME are not pre-emptively multitasking, 6329 # you end up with a "frozen" computer, even though with patience 6330 # the test eventually succeeds (with a max line length of 256k). 6331 # Instead, let's just punt: use the minimum linelength reported by 6332 # all of the supported platforms: 8192 (on NT/2K/XP). 6333 lt_cv_sys_max_cmd_len=8192; 6334 ;; 6335 6336 amigaos*) 6337 # On AmigaOS with pdksh, this test takes hours, literally. 6338 # So we just punt and use a minimum line length of 8192. 6339 lt_cv_sys_max_cmd_len=8192; 6340 ;; 6341 6342 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6343 # This has been around since 386BSD, at least. Likely further. 6344 if test -x /sbin/sysctl; then 6345 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6346 elif test -x /usr/sbin/sysctl; then 6347 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6348 else 6349 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6350 fi 6351 # And add a safety zone 6352 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6353 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6354 ;; 6355 6356 interix*) 6357 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6358 lt_cv_sys_max_cmd_len=196608 6359 ;; 6360 6361 osf*) 6362 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6363 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6364 # nice to cause kernel panics so lets avoid the loop below. 6365 # First set a reasonable default. 6366 lt_cv_sys_max_cmd_len=16384 6367 # 6368 if test -x /sbin/sysconfig; then 6369 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6370 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6371 esac 6372 fi 6373 ;; 6374 sco3.2v5*) 6375 lt_cv_sys_max_cmd_len=102400 6376 ;; 6377 sysv5* | sco5v6* | sysv4.2uw2*) 6378 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6379 if test -n "$kargmax"; then 6380 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6381 else 6382 lt_cv_sys_max_cmd_len=32768 6383 fi 6384 ;; 6385 *) 6386 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6387 if test -n "$lt_cv_sys_max_cmd_len"; then 6388 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6389 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6390 else 6391 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6392 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6393 = "XX$teststring") >/dev/null 2>&1 && 6394 new_result=`expr "X$teststring" : ".*" 2>&1` && 6395 lt_cv_sys_max_cmd_len=$new_result && 6396 test $i != 17 # 1/2 MB should be enough 6397 do 6398 i=`expr $i + 1` 6399 teststring=$teststring$teststring 6400 done 6401 teststring= 6402 # Add a significant safety factor because C++ compilers can tack on massive 6403 # amounts of additional arguments before passing them to the linker. 6404 # It appears as though 1/2 is a usable value. 6405 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6406 fi 6407 ;; 6408 esac 6409 6410fi 6411 6412if test -n $lt_cv_sys_max_cmd_len ; then 6413 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6414$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6415else 6416 { $as_echo "$as_me:$LINENO: result: none" >&5 6417$as_echo "none" >&6; } 6418fi 6419 6420 6421 6422 6423 6424# Check for command to grab the raw symbol name followed by C symbol from nm. 6425{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6426$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6427if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6428 $as_echo_n "(cached) " >&6 6429else 6430 6431# These are sane defaults that work on at least a few old systems. 6432# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6433 6434# Character class describing NM global symbol codes. 6435symcode='[BCDEGRST]' 6436 6437# Regexp to match symbols that can be accessed directly from C. 6438sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6439 6440# Transform an extracted symbol line into a proper C declaration 6441lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6442 6443# Transform an extracted symbol line into symbol name and symbol address 6444lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 6445 6446# Define system-specific variables. 6447case $host_os in 6448aix*) 6449 symcode='[BCDT]' 6450 ;; 6451cygwin* | mingw* | pw32*) 6452 symcode='[ABCDGISTW]' 6453 ;; 6454hpux*) # Its linker distinguishes data from code symbols 6455 if test "$host_cpu" = ia64; then 6456 symcode='[ABCDEGRST]' 6457 fi 6458 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6459 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 6460 ;; 6461linux* | k*bsd*-gnu) 6462 if test "$host_cpu" = ia64; then 6463 symcode='[ABCDGIRSTW]' 6464 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6465 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 6466 fi 6467 ;; 6468irix* | nonstopux*) 6469 symcode='[BCDEGRST]' 6470 ;; 6471osf*) 6472 symcode='[BCDEGQRST]' 6473 ;; 6474solaris*) 6475 symcode='[BDRT]' 6476 ;; 6477sco3.2v5*) 6478 symcode='[DT]' 6479 ;; 6480sysv4.2uw2*) 6481 symcode='[DT]' 6482 ;; 6483sysv5* | sco5v6* | unixware* | OpenUNIX*) 6484 symcode='[ABDT]' 6485 ;; 6486sysv4) 6487 symcode='[DFNSTU]' 6488 ;; 6489esac 6490 6491# Handle CRLF in mingw tool chain 6492opt_cr= 6493case $build_os in 6494mingw*) 6495 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6496 ;; 6497esac 6498 6499# If we're using GNU nm, then use its standard symbol codes. 6500case `$NM -V 2>&1` in 6501*GNU* | *'with BFD'*) 6502 symcode='[ABCDGIRSTW]' ;; 6503esac 6504 6505# Try without a prefix undercore, then with it. 6506for ac_symprfx in "" "_"; do 6507 6508 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6509 symxfrm="\\1 $ac_symprfx\\2 \\2" 6510 6511 # Write the raw and C identifiers. 6512 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6513 6514 # Check to see that the pipe works correctly. 6515 pipe_works=no 6516 6517 rm -f conftest* 6518 cat > conftest.$ac_ext <<EOF 6519#ifdef __cplusplus 6520extern "C" { 6521#endif 6522char nm_test_var; 6523void nm_test_func(){} 6524#ifdef __cplusplus 6525} 6526#endif 6527int main(){nm_test_var='a';nm_test_func();return(0);} 6528EOF 6529 6530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6531 (eval $ac_compile) 2>&5 6532 ac_status=$? 6533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6534 (exit $ac_status); }; then 6535 # Now try to grab the symbols. 6536 nlist=conftest.nm 6537 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6538 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6539 ac_status=$? 6540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6541 (exit $ac_status); } && test -s "$nlist"; then 6542 # Try sorting and uniquifying the output. 6543 if sort "$nlist" | uniq > "$nlist"T; then 6544 mv -f "$nlist"T "$nlist" 6545 else 6546 rm -f "$nlist"T 6547 fi 6548 6549 # Make sure that we snagged all the symbols we need. 6550 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6551 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6552 cat <<EOF > conftest.$ac_ext 6553#ifdef __cplusplus 6554extern "C" { 6555#endif 6556 6557EOF 6558 # Now generate the symbol file. 6559 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6560 6561 cat <<EOF >> conftest.$ac_ext 6562#if defined (__STDC__) && __STDC__ 6563# define lt_ptr_t void * 6564#else 6565# define lt_ptr_t char * 6566# define const 6567#endif 6568 6569/* The mapping between symbol names and symbols. */ 6570const struct { 6571 const char *name; 6572 lt_ptr_t address; 6573} 6574lt_preloaded_symbols[] = 6575{ 6576EOF 6577 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6578 cat <<\EOF >> conftest.$ac_ext 6579 {0, (lt_ptr_t) 0} 6580}; 6581 6582#ifdef __cplusplus 6583} 6584#endif 6585EOF 6586 # Now try linking the two files. 6587 mv conftest.$ac_objext conftstm.$ac_objext 6588 lt_save_LIBS="$LIBS" 6589 lt_save_CFLAGS="$CFLAGS" 6590 LIBS="conftstm.$ac_objext" 6591 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6593 (eval $ac_link) 2>&5 6594 ac_status=$? 6595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6596 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6597 pipe_works=yes 6598 fi 6599 LIBS="$lt_save_LIBS" 6600 CFLAGS="$lt_save_CFLAGS" 6601 else 6602 echo "cannot find nm_test_func in $nlist" >&5 6603 fi 6604 else 6605 echo "cannot find nm_test_var in $nlist" >&5 6606 fi 6607 else 6608 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6609 fi 6610 else 6611 echo "$progname: failed program was:" >&5 6612 cat conftest.$ac_ext >&5 6613 fi 6614 rm -rf conftest* conftst* 6615 6616 # Do not use the global_symbol_pipe unless it works. 6617 if test "$pipe_works" = yes; then 6618 break 6619 else 6620 lt_cv_sys_global_symbol_pipe= 6621 fi 6622done 6623 6624fi 6625 6626if test -z "$lt_cv_sys_global_symbol_pipe"; then 6627 lt_cv_sys_global_symbol_to_cdecl= 6628fi 6629if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6630 { $as_echo "$as_me:$LINENO: result: failed" >&5 6631$as_echo "failed" >&6; } 6632else 6633 { $as_echo "$as_me:$LINENO: result: ok" >&5 6634$as_echo "ok" >&6; } 6635fi 6636 6637{ $as_echo "$as_me:$LINENO: checking for objdir" >&5 6638$as_echo_n "checking for objdir... " >&6; } 6639if test "${lt_cv_objdir+set}" = set; then 6640 $as_echo_n "(cached) " >&6 6641else 6642 rm -f .libs 2>/dev/null 6643mkdir .libs 2>/dev/null 6644if test -d .libs; then 6645 lt_cv_objdir=.libs 6646else 6647 # MS-DOS does not allow filenames that begin with a dot. 6648 lt_cv_objdir=_libs 6649fi 6650rmdir .libs 2>/dev/null 6651fi 6652{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6653$as_echo "$lt_cv_objdir" >&6; } 6654objdir=$lt_cv_objdir 6655 6656 6657 6658 6659 6660case $host_os in 6661aix3*) 6662 # AIX sometimes has problems with the GCC collect2 program. For some 6663 # reason, if we set the COLLECT_NAMES environment variable, the problems 6664 # vanish in a puff of smoke. 6665 if test "X${COLLECT_NAMES+set}" != Xset; then 6666 COLLECT_NAMES= 6667 export COLLECT_NAMES 6668 fi 6669 ;; 6670esac 6671 6672# Sed substitution that helps us do robust quoting. It backslashifies 6673# metacharacters that are still active within double-quoted strings. 6674Xsed='sed -e 1s/^X//' 6675sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6676 6677# Same as above, but do not quote variable references. 6678double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6679 6680# Sed substitution to delay expansion of an escaped shell variable in a 6681# double_quote_subst'ed string. 6682delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6683 6684# Sed substitution to avoid accidental globbing in evaled expressions 6685no_glob_subst='s/\*/\\\*/g' 6686 6687# Constants: 6688rm="rm -f" 6689 6690# Global variables: 6691default_ofile=libtool 6692can_build_shared=yes 6693 6694# All known linkers require a `.a' archive for static linking (except MSVC, 6695# which needs '.lib'). 6696libext=a 6697ltmain="$ac_aux_dir/ltmain.sh" 6698ofile="$default_ofile" 6699with_gnu_ld="$lt_cv_prog_gnu_ld" 6700 6701if test -n "$ac_tool_prefix"; then 6702 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6703set dummy ${ac_tool_prefix}ar; ac_word=$2 6704{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6705$as_echo_n "checking for $ac_word... " >&6; } 6706if test "${ac_cv_prog_AR+set}" = set; then 6707 $as_echo_n "(cached) " >&6 6708else 6709 if test -n "$AR"; then 6710 ac_cv_prog_AR="$AR" # Let the user override the test. 6711else 6712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6713for as_dir in $PATH 6714do 6715 IFS=$as_save_IFS 6716 test -z "$as_dir" && as_dir=. 6717 for ac_exec_ext in '' $ac_executable_extensions; do 6718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6719 ac_cv_prog_AR="${ac_tool_prefix}ar" 6720 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6721 break 2 6722 fi 6723done 6724done 6725IFS=$as_save_IFS 6726 6727fi 6728fi 6729AR=$ac_cv_prog_AR 6730if test -n "$AR"; then 6731 { $as_echo "$as_me:$LINENO: result: $AR" >&5 6732$as_echo "$AR" >&6; } 6733else 6734 { $as_echo "$as_me:$LINENO: result: no" >&5 6735$as_echo "no" >&6; } 6736fi 6737 6738 6739fi 6740if test -z "$ac_cv_prog_AR"; then 6741 ac_ct_AR=$AR 6742 # Extract the first word of "ar", so it can be a program name with args. 6743set dummy ar; ac_word=$2 6744{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6745$as_echo_n "checking for $ac_word... " >&6; } 6746if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6747 $as_echo_n "(cached) " >&6 6748else 6749 if test -n "$ac_ct_AR"; then 6750 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6751else 6752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6753for as_dir in $PATH 6754do 6755 IFS=$as_save_IFS 6756 test -z "$as_dir" && as_dir=. 6757 for ac_exec_ext in '' $ac_executable_extensions; do 6758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6759 ac_cv_prog_ac_ct_AR="ar" 6760 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6761 break 2 6762 fi 6763done 6764done 6765IFS=$as_save_IFS 6766 6767fi 6768fi 6769ac_ct_AR=$ac_cv_prog_ac_ct_AR 6770if test -n "$ac_ct_AR"; then 6771 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6772$as_echo "$ac_ct_AR" >&6; } 6773else 6774 { $as_echo "$as_me:$LINENO: result: no" >&5 6775$as_echo "no" >&6; } 6776fi 6777 6778 if test "x$ac_ct_AR" = x; then 6779 AR="false" 6780 else 6781 case $cross_compiling:$ac_tool_warned in 6782yes:) 6783{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6784$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6785ac_tool_warned=yes ;; 6786esac 6787 AR=$ac_ct_AR 6788 fi 6789else 6790 AR="$ac_cv_prog_AR" 6791fi 6792 6793if test -n "$ac_tool_prefix"; then 6794 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6795set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6796{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6797$as_echo_n "checking for $ac_word... " >&6; } 6798if test "${ac_cv_prog_RANLIB+set}" = set; then 6799 $as_echo_n "(cached) " >&6 6800else 6801 if test -n "$RANLIB"; then 6802 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6803else 6804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6805for as_dir in $PATH 6806do 6807 IFS=$as_save_IFS 6808 test -z "$as_dir" && as_dir=. 6809 for ac_exec_ext in '' $ac_executable_extensions; do 6810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6811 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6812 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6813 break 2 6814 fi 6815done 6816done 6817IFS=$as_save_IFS 6818 6819fi 6820fi 6821RANLIB=$ac_cv_prog_RANLIB 6822if test -n "$RANLIB"; then 6823 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 6824$as_echo "$RANLIB" >&6; } 6825else 6826 { $as_echo "$as_me:$LINENO: result: no" >&5 6827$as_echo "no" >&6; } 6828fi 6829 6830 6831fi 6832if test -z "$ac_cv_prog_RANLIB"; then 6833 ac_ct_RANLIB=$RANLIB 6834 # Extract the first word of "ranlib", so it can be a program name with args. 6835set dummy ranlib; ac_word=$2 6836{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6837$as_echo_n "checking for $ac_word... " >&6; } 6838if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6839 $as_echo_n "(cached) " >&6 6840else 6841 if test -n "$ac_ct_RANLIB"; then 6842 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6843else 6844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6845for as_dir in $PATH 6846do 6847 IFS=$as_save_IFS 6848 test -z "$as_dir" && as_dir=. 6849 for ac_exec_ext in '' $ac_executable_extensions; do 6850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6851 ac_cv_prog_ac_ct_RANLIB="ranlib" 6852 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6853 break 2 6854 fi 6855done 6856done 6857IFS=$as_save_IFS 6858 6859fi 6860fi 6861ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6862if test -n "$ac_ct_RANLIB"; then 6863 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6864$as_echo "$ac_ct_RANLIB" >&6; } 6865else 6866 { $as_echo "$as_me:$LINENO: result: no" >&5 6867$as_echo "no" >&6; } 6868fi 6869 6870 if test "x$ac_ct_RANLIB" = x; then 6871 RANLIB=":" 6872 else 6873 case $cross_compiling:$ac_tool_warned in 6874yes:) 6875{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6876$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6877ac_tool_warned=yes ;; 6878esac 6879 RANLIB=$ac_ct_RANLIB 6880 fi 6881else 6882 RANLIB="$ac_cv_prog_RANLIB" 6883fi 6884 6885if test -n "$ac_tool_prefix"; then 6886 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6887set dummy ${ac_tool_prefix}strip; ac_word=$2 6888{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6889$as_echo_n "checking for $ac_word... " >&6; } 6890if test "${ac_cv_prog_STRIP+set}" = set; then 6891 $as_echo_n "(cached) " >&6 6892else 6893 if test -n "$STRIP"; then 6894 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6895else 6896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6897for as_dir in $PATH 6898do 6899 IFS=$as_save_IFS 6900 test -z "$as_dir" && as_dir=. 6901 for ac_exec_ext in '' $ac_executable_extensions; do 6902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6903 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6904 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6905 break 2 6906 fi 6907done 6908done 6909IFS=$as_save_IFS 6910 6911fi 6912fi 6913STRIP=$ac_cv_prog_STRIP 6914if test -n "$STRIP"; then 6915 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 6916$as_echo "$STRIP" >&6; } 6917else 6918 { $as_echo "$as_me:$LINENO: result: no" >&5 6919$as_echo "no" >&6; } 6920fi 6921 6922 6923fi 6924if test -z "$ac_cv_prog_STRIP"; then 6925 ac_ct_STRIP=$STRIP 6926 # Extract the first word of "strip", so it can be a program name with args. 6927set dummy strip; ac_word=$2 6928{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6929$as_echo_n "checking for $ac_word... " >&6; } 6930if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6931 $as_echo_n "(cached) " >&6 6932else 6933 if test -n "$ac_ct_STRIP"; then 6934 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6935else 6936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6937for as_dir in $PATH 6938do 6939 IFS=$as_save_IFS 6940 test -z "$as_dir" && as_dir=. 6941 for ac_exec_ext in '' $ac_executable_extensions; do 6942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6943 ac_cv_prog_ac_ct_STRIP="strip" 6944 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6945 break 2 6946 fi 6947done 6948done 6949IFS=$as_save_IFS 6950 6951fi 6952fi 6953ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6954if test -n "$ac_ct_STRIP"; then 6955 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6956$as_echo "$ac_ct_STRIP" >&6; } 6957else 6958 { $as_echo "$as_me:$LINENO: result: no" >&5 6959$as_echo "no" >&6; } 6960fi 6961 6962 if test "x$ac_ct_STRIP" = x; then 6963 STRIP=":" 6964 else 6965 case $cross_compiling:$ac_tool_warned in 6966yes:) 6967{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6968$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6969ac_tool_warned=yes ;; 6970esac 6971 STRIP=$ac_ct_STRIP 6972 fi 6973else 6974 STRIP="$ac_cv_prog_STRIP" 6975fi 6976 6977 6978old_CC="$CC" 6979old_CFLAGS="$CFLAGS" 6980 6981# Set sane defaults for various variables 6982test -z "$AR" && AR=ar 6983test -z "$AR_FLAGS" && AR_FLAGS=cru 6984test -z "$AS" && AS=as 6985test -z "$CC" && CC=cc 6986test -z "$LTCC" && LTCC=$CC 6987test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6988test -z "$DLLTOOL" && DLLTOOL=dlltool 6989test -z "$LD" && LD=ld 6990test -z "$LN_S" && LN_S="ln -s" 6991test -z "$MAGIC_CMD" && MAGIC_CMD=file 6992test -z "$NM" && NM=nm 6993test -z "$SED" && SED=sed 6994test -z "$OBJDUMP" && OBJDUMP=objdump 6995test -z "$RANLIB" && RANLIB=: 6996test -z "$STRIP" && STRIP=: 6997test -z "$ac_objext" && ac_objext=o 6998 6999# Determine commands to create old-style static archives. 7000old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7001old_postinstall_cmds='chmod 644 $oldlib' 7002old_postuninstall_cmds= 7003 7004if test -n "$RANLIB"; then 7005 case $host_os in 7006 openbsd*) 7007 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7008 ;; 7009 *) 7010 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7011 ;; 7012 esac 7013 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7014fi 7015 7016for cc_temp in $compiler""; do 7017 case $cc_temp in 7018 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7019 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7020 \-*) ;; 7021 *) break;; 7022 esac 7023done 7024cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7025 7026 7027# Only perform the check for file, if the check method requires it 7028case $deplibs_check_method in 7029file_magic*) 7030 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7031 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7032$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7033if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7034 $as_echo_n "(cached) " >&6 7035else 7036 case $MAGIC_CMD in 7037[\\/*] | ?:[\\/]*) 7038 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7039 ;; 7040*) 7041 lt_save_MAGIC_CMD="$MAGIC_CMD" 7042 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7043 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7044 for ac_dir in $ac_dummy; do 7045 IFS="$lt_save_ifs" 7046 test -z "$ac_dir" && ac_dir=. 7047 if test -f $ac_dir/${ac_tool_prefix}file; then 7048 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7049 if test -n "$file_magic_test_file"; then 7050 case $deplibs_check_method in 7051 "file_magic "*) 7052 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7053 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7054 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7055 $EGREP "$file_magic_regex" > /dev/null; then 7056 : 7057 else 7058 cat <<EOF 1>&2 7059 7060*** Warning: the command libtool uses to detect shared libraries, 7061*** $file_magic_cmd, produces output that libtool cannot recognize. 7062*** The result is that libtool may fail to recognize shared libraries 7063*** as such. This will affect the creation of libtool libraries that 7064*** depend on shared libraries, but programs linked with such libtool 7065*** libraries will work regardless of this problem. Nevertheless, you 7066*** may want to report the problem to your system manager and/or to 7067*** bug-libtool@gnu.org 7068 7069EOF 7070 fi ;; 7071 esac 7072 fi 7073 break 7074 fi 7075 done 7076 IFS="$lt_save_ifs" 7077 MAGIC_CMD="$lt_save_MAGIC_CMD" 7078 ;; 7079esac 7080fi 7081 7082MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7083if test -n "$MAGIC_CMD"; then 7084 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7085$as_echo "$MAGIC_CMD" >&6; } 7086else 7087 { $as_echo "$as_me:$LINENO: result: no" >&5 7088$as_echo "no" >&6; } 7089fi 7090 7091if test -z "$lt_cv_path_MAGIC_CMD"; then 7092 if test -n "$ac_tool_prefix"; then 7093 { $as_echo "$as_me:$LINENO: checking for file" >&5 7094$as_echo_n "checking for file... " >&6; } 7095if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7096 $as_echo_n "(cached) " >&6 7097else 7098 case $MAGIC_CMD in 7099[\\/*] | ?:[\\/]*) 7100 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7101 ;; 7102*) 7103 lt_save_MAGIC_CMD="$MAGIC_CMD" 7104 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7105 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7106 for ac_dir in $ac_dummy; do 7107 IFS="$lt_save_ifs" 7108 test -z "$ac_dir" && ac_dir=. 7109 if test -f $ac_dir/file; then 7110 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7111 if test -n "$file_magic_test_file"; then 7112 case $deplibs_check_method in 7113 "file_magic "*) 7114 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7115 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7116 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7117 $EGREP "$file_magic_regex" > /dev/null; then 7118 : 7119 else 7120 cat <<EOF 1>&2 7121 7122*** Warning: the command libtool uses to detect shared libraries, 7123*** $file_magic_cmd, produces output that libtool cannot recognize. 7124*** The result is that libtool may fail to recognize shared libraries 7125*** as such. This will affect the creation of libtool libraries that 7126*** depend on shared libraries, but programs linked with such libtool 7127*** libraries will work regardless of this problem. Nevertheless, you 7128*** may want to report the problem to your system manager and/or to 7129*** bug-libtool@gnu.org 7130 7131EOF 7132 fi ;; 7133 esac 7134 fi 7135 break 7136 fi 7137 done 7138 IFS="$lt_save_ifs" 7139 MAGIC_CMD="$lt_save_MAGIC_CMD" 7140 ;; 7141esac 7142fi 7143 7144MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7145if test -n "$MAGIC_CMD"; then 7146 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7147$as_echo "$MAGIC_CMD" >&6; } 7148else 7149 { $as_echo "$as_me:$LINENO: result: no" >&5 7150$as_echo "no" >&6; } 7151fi 7152 7153 else 7154 MAGIC_CMD=: 7155 fi 7156fi 7157 7158 fi 7159 ;; 7160esac 7161 7162 7163 case $host_os in 7164 rhapsody* | darwin*) 7165 if test -n "$ac_tool_prefix"; then 7166 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7167set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7168{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7169$as_echo_n "checking for $ac_word... " >&6; } 7170if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 7171 $as_echo_n "(cached) " >&6 7172else 7173 if test -n "$DSYMUTIL"; then 7174 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7175else 7176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7177for as_dir in $PATH 7178do 7179 IFS=$as_save_IFS 7180 test -z "$as_dir" && as_dir=. 7181 for ac_exec_ext in '' $ac_executable_extensions; do 7182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7183 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7184 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7185 break 2 7186 fi 7187done 7188done 7189IFS=$as_save_IFS 7190 7191fi 7192fi 7193DSYMUTIL=$ac_cv_prog_DSYMUTIL 7194if test -n "$DSYMUTIL"; then 7195 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 7196$as_echo "$DSYMUTIL" >&6; } 7197else 7198 { $as_echo "$as_me:$LINENO: result: no" >&5 7199$as_echo "no" >&6; } 7200fi 7201 7202 7203fi 7204if test -z "$ac_cv_prog_DSYMUTIL"; then 7205 ac_ct_DSYMUTIL=$DSYMUTIL 7206 # Extract the first word of "dsymutil", so it can be a program name with args. 7207set dummy dsymutil; ac_word=$2 7208{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7209$as_echo_n "checking for $ac_word... " >&6; } 7210if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 7211 $as_echo_n "(cached) " >&6 7212else 7213 if test -n "$ac_ct_DSYMUTIL"; then 7214 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7215else 7216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7217for as_dir in $PATH 7218do 7219 IFS=$as_save_IFS 7220 test -z "$as_dir" && as_dir=. 7221 for ac_exec_ext in '' $ac_executable_extensions; do 7222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7223 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7224 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7225 break 2 7226 fi 7227done 7228done 7229IFS=$as_save_IFS 7230 7231fi 7232fi 7233ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7234if test -n "$ac_ct_DSYMUTIL"; then 7235 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 7236$as_echo "$ac_ct_DSYMUTIL" >&6; } 7237else 7238 { $as_echo "$as_me:$LINENO: result: no" >&5 7239$as_echo "no" >&6; } 7240fi 7241 7242 if test "x$ac_ct_DSYMUTIL" = x; then 7243 DSYMUTIL=":" 7244 else 7245 case $cross_compiling:$ac_tool_warned in 7246yes:) 7247{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7248$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7249ac_tool_warned=yes ;; 7250esac 7251 DSYMUTIL=$ac_ct_DSYMUTIL 7252 fi 7253else 7254 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7255fi 7256 7257 if test -n "$ac_tool_prefix"; then 7258 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7259set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7260{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7261$as_echo_n "checking for $ac_word... " >&6; } 7262if test "${ac_cv_prog_NMEDIT+set}" = set; then 7263 $as_echo_n "(cached) " >&6 7264else 7265 if test -n "$NMEDIT"; then 7266 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7267else 7268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7269for as_dir in $PATH 7270do 7271 IFS=$as_save_IFS 7272 test -z "$as_dir" && as_dir=. 7273 for ac_exec_ext in '' $ac_executable_extensions; do 7274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7275 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7276 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7277 break 2 7278 fi 7279done 7280done 7281IFS=$as_save_IFS 7282 7283fi 7284fi 7285NMEDIT=$ac_cv_prog_NMEDIT 7286if test -n "$NMEDIT"; then 7287 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 7288$as_echo "$NMEDIT" >&6; } 7289else 7290 { $as_echo "$as_me:$LINENO: result: no" >&5 7291$as_echo "no" >&6; } 7292fi 7293 7294 7295fi 7296if test -z "$ac_cv_prog_NMEDIT"; then 7297 ac_ct_NMEDIT=$NMEDIT 7298 # Extract the first word of "nmedit", so it can be a program name with args. 7299set dummy nmedit; ac_word=$2 7300{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7301$as_echo_n "checking for $ac_word... " >&6; } 7302if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 7303 $as_echo_n "(cached) " >&6 7304else 7305 if test -n "$ac_ct_NMEDIT"; then 7306 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7307else 7308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7309for as_dir in $PATH 7310do 7311 IFS=$as_save_IFS 7312 test -z "$as_dir" && as_dir=. 7313 for ac_exec_ext in '' $ac_executable_extensions; do 7314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7315 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7316 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7317 break 2 7318 fi 7319done 7320done 7321IFS=$as_save_IFS 7322 7323fi 7324fi 7325ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7326if test -n "$ac_ct_NMEDIT"; then 7327 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 7328$as_echo "$ac_ct_NMEDIT" >&6; } 7329else 7330 { $as_echo "$as_me:$LINENO: result: no" >&5 7331$as_echo "no" >&6; } 7332fi 7333 7334 if test "x$ac_ct_NMEDIT" = x; then 7335 NMEDIT=":" 7336 else 7337 case $cross_compiling:$ac_tool_warned in 7338yes:) 7339{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7340$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7341ac_tool_warned=yes ;; 7342esac 7343 NMEDIT=$ac_ct_NMEDIT 7344 fi 7345else 7346 NMEDIT="$ac_cv_prog_NMEDIT" 7347fi 7348 7349 7350 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 7351$as_echo_n "checking for -single_module linker flag... " >&6; } 7352if test "${lt_cv_apple_cc_single_mod+set}" = set; then 7353 $as_echo_n "(cached) " >&6 7354else 7355 lt_cv_apple_cc_single_mod=no 7356 if test -z "${LT_MULTI_MODULE}"; then 7357 # By default we will add the -single_module flag. You can override 7358 # by either setting the environment variable LT_MULTI_MODULE 7359 # non-empty at configure time, or by adding -multi_module to the 7360 # link flags. 7361 echo "int foo(void){return 1;}" > conftest.c 7362 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7363 -dynamiclib ${wl}-single_module conftest.c 7364 if test -f libconftest.dylib; then 7365 lt_cv_apple_cc_single_mod=yes 7366 rm -rf libconftest.dylib* 7367 fi 7368 rm conftest.c 7369 fi 7370fi 7371{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 7372$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7373 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 7374$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7375if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 7376 $as_echo_n "(cached) " >&6 7377else 7378 lt_cv_ld_exported_symbols_list=no 7379 save_LDFLAGS=$LDFLAGS 7380 echo "_main" > conftest.sym 7381 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7382 cat >conftest.$ac_ext <<_ACEOF 7383/* confdefs.h. */ 7384_ACEOF 7385cat confdefs.h >>conftest.$ac_ext 7386cat >>conftest.$ac_ext <<_ACEOF 7387/* end confdefs.h. */ 7388 7389int 7390main () 7391{ 7392 7393 ; 7394 return 0; 7395} 7396_ACEOF 7397rm -f conftest.$ac_objext conftest$ac_exeext 7398if { (ac_try="$ac_link" 7399case "(($ac_try" in 7400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7401 *) ac_try_echo=$ac_try;; 7402esac 7403eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7404$as_echo "$ac_try_echo") >&5 7405 (eval "$ac_link") 2>conftest.er1 7406 ac_status=$? 7407 grep -v '^ *+' conftest.er1 >conftest.err 7408 rm -f conftest.er1 7409 cat conftest.err >&5 7410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7411 (exit $ac_status); } && { 7412 test -z "$ac_c_werror_flag" || 7413 test ! -s conftest.err 7414 } && test -s conftest$ac_exeext && { 7415 test "$cross_compiling" = yes || 7416 $as_test_x conftest$ac_exeext 7417 }; then 7418 lt_cv_ld_exported_symbols_list=yes 7419else 7420 $as_echo "$as_me: failed program was:" >&5 7421sed 's/^/| /' conftest.$ac_ext >&5 7422 7423 lt_cv_ld_exported_symbols_list=no 7424fi 7425 7426rm -rf conftest.dSYM 7427rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7428 conftest$ac_exeext conftest.$ac_ext 7429 LDFLAGS="$save_LDFLAGS" 7430 7431fi 7432{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 7433$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7434 case $host_os in 7435 rhapsody* | darwin1.[0123]) 7436 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7437 darwin1.*) 7438 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7439 darwin*) 7440 # if running on 10.5 or later, the deployment target defaults 7441 # to the OS version, if on x86, and 10.4, the deployment 7442 # target defaults to 10.4. Don't you love it? 7443 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7444 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7445 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7446 10.[012]*) 7447 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7448 10.*) 7449 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7450 esac 7451 ;; 7452 esac 7453 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7454 _lt_dar_single_mod='$single_module' 7455 fi 7456 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7457 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7458 else 7459 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}" 7460 fi 7461 if test "$DSYMUTIL" != ":"; then 7462 _lt_dsymutil="~$DSYMUTIL \$lib || :" 7463 else 7464 _lt_dsymutil= 7465 fi 7466 ;; 7467 esac 7468 7469 7470enable_dlopen=no 7471enable_win32_dll=no 7472 7473# Check whether --enable-libtool-lock was given. 7474if test "${enable_libtool_lock+set}" = set; then 7475 enableval=$enable_libtool_lock; 7476fi 7477 7478test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7479 7480 7481# Check whether --with-pic was given. 7482if test "${with_pic+set}" = set; then 7483 withval=$with_pic; pic_mode="$withval" 7484else 7485 pic_mode=default 7486fi 7487 7488test -z "$pic_mode" && pic_mode=default 7489 7490# Use C for the default configuration in the libtool script 7491tagname= 7492lt_save_CC="$CC" 7493ac_ext=c 7494ac_cpp='$CPP $CPPFLAGS' 7495ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7496ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7497ac_compiler_gnu=$ac_cv_c_compiler_gnu 7498 7499 7500# Source file extension for C test sources. 7501ac_ext=c 7502 7503# Object file extension for compiled C test sources. 7504objext=o 7505objext=$objext 7506 7507# Code to be used in simple compile tests 7508lt_simple_compile_test_code="int some_variable = 0;" 7509 7510# Code to be used in simple link tests 7511lt_simple_link_test_code='int main(){return(0);}' 7512 7513 7514# If no C compiler was specified, use CC. 7515LTCC=${LTCC-"$CC"} 7516 7517# If no C compiler flags were specified, use CFLAGS. 7518LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7519 7520# Allow CC to be a program name with arguments. 7521compiler=$CC 7522 7523 7524# save warnings/boilerplate of simple test code 7525ac_outfile=conftest.$ac_objext 7526echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7527eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7528_lt_compiler_boilerplate=`cat conftest.err` 7529$rm conftest* 7530 7531ac_outfile=conftest.$ac_objext 7532echo "$lt_simple_link_test_code" >conftest.$ac_ext 7533eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7534_lt_linker_boilerplate=`cat conftest.err` 7535$rm -r conftest* 7536 7537 7538 7539lt_prog_compiler_no_builtin_flag= 7540 7541if test "$GCC" = yes; then 7542 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7543 7544 7545{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7546$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7547if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7548 $as_echo_n "(cached) " >&6 7549else 7550 lt_cv_prog_compiler_rtti_exceptions=no 7551 ac_outfile=conftest.$ac_objext 7552 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7553 lt_compiler_flag="-fno-rtti -fno-exceptions" 7554 # Insert the option either (1) after the last *FLAGS variable, or 7555 # (2) before a word containing "conftest.", or (3) at the end. 7556 # Note that $ac_compile itself does not contain backslashes and begins 7557 # with a dollar sign (not a hyphen), so the echo should work correctly. 7558 # The option is referenced via a variable to avoid confusing sed. 7559 lt_compile=`echo "$ac_compile" | $SED \ 7560 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7561 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7562 -e 's:$: $lt_compiler_flag:'` 7563 (eval echo "\"\$as_me:7563: $lt_compile\"" >&5) 7564 (eval "$lt_compile" 2>conftest.err) 7565 ac_status=$? 7566 cat conftest.err >&5 7567 echo "$as_me:7567: \$? = $ac_status" >&5 7568 if (exit $ac_status) && test -s "$ac_outfile"; then 7569 # The compiler can only warn and ignore the option if not recognized 7570 # So say no if there are warnings other than the usual output. 7571 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7572 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7573 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7574 lt_cv_prog_compiler_rtti_exceptions=yes 7575 fi 7576 fi 7577 $rm conftest* 7578 7579fi 7580{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7581$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7582 7583if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7584 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7585else 7586 : 7587fi 7588 7589fi 7590 7591lt_prog_compiler_wl= 7592lt_prog_compiler_pic= 7593lt_prog_compiler_static= 7594 7595{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7596$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7597 7598 if test "$GCC" = yes; then 7599 lt_prog_compiler_wl='-Wl,' 7600 lt_prog_compiler_static='-static' 7601 7602 case $host_os in 7603 aix*) 7604 # All AIX code is PIC. 7605 if test "$host_cpu" = ia64; then 7606 # AIX 5 now supports IA64 processor 7607 lt_prog_compiler_static='-Bstatic' 7608 fi 7609 ;; 7610 7611 amigaos*) 7612 # FIXME: we need at least 68020 code to build shared libraries, but 7613 # adding the `-m68020' flag to GCC prevents building anything better, 7614 # like `-m68040'. 7615 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7616 ;; 7617 7618 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7619 # PIC is the default for these OSes. 7620 ;; 7621 7622 mingw* | cygwin* | pw32* | os2*) 7623 # This hack is so that the source file can tell whether it is being 7624 # built for inclusion in a dll (and should export symbols for example). 7625 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7626 # (--disable-auto-import) libraries 7627 lt_prog_compiler_pic='-DDLL_EXPORT' 7628 ;; 7629 7630 darwin* | rhapsody*) 7631 # PIC is the default on this platform 7632 # Common symbols not allowed in MH_DYLIB files 7633 lt_prog_compiler_pic='-fno-common' 7634 ;; 7635 7636 interix[3-9]*) 7637 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7638 # Instead, we relocate shared libraries at runtime. 7639 ;; 7640 7641 msdosdjgpp*) 7642 # Just because we use GCC doesn't mean we suddenly get shared libraries 7643 # on systems that don't support them. 7644 lt_prog_compiler_can_build_shared=no 7645 enable_shared=no 7646 ;; 7647 7648 sysv4*MP*) 7649 if test -d /usr/nec; then 7650 lt_prog_compiler_pic=-Kconform_pic 7651 fi 7652 ;; 7653 7654 hpux*) 7655 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7656 # not for PA HP-UX. 7657 case $host_cpu in 7658 hppa*64*|ia64*) 7659 # +Z the default 7660 ;; 7661 *) 7662 lt_prog_compiler_pic='-fPIC' 7663 ;; 7664 esac 7665 ;; 7666 7667 *) 7668 lt_prog_compiler_pic='-fPIC' 7669 ;; 7670 esac 7671 else 7672 # PORTME Check for flag to pass linker flags through the system compiler. 7673 case $host_os in 7674 aix*) 7675 lt_prog_compiler_wl='-Wl,' 7676 if test "$host_cpu" = ia64; then 7677 # AIX 5 now supports IA64 processor 7678 lt_prog_compiler_static='-Bstatic' 7679 else 7680 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7681 fi 7682 ;; 7683 darwin*) 7684 # PIC is the default on this platform 7685 # Common symbols not allowed in MH_DYLIB files 7686 case $cc_basename in 7687 xlc*) 7688 lt_prog_compiler_pic='-qnocommon' 7689 lt_prog_compiler_wl='-Wl,' 7690 ;; 7691 esac 7692 ;; 7693 7694 mingw* | cygwin* | pw32* | os2*) 7695 # This hack is so that the source file can tell whether it is being 7696 # built for inclusion in a dll (and should export symbols for example). 7697 lt_prog_compiler_pic='-DDLL_EXPORT' 7698 ;; 7699 7700 hpux9* | hpux10* | hpux11*) 7701 lt_prog_compiler_wl='-Wl,' 7702 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7703 # not for PA HP-UX. 7704 case $host_cpu in 7705 hppa*64*|ia64*) 7706 # +Z the default 7707 ;; 7708 *) 7709 lt_prog_compiler_pic='+Z' 7710 ;; 7711 esac 7712 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7713 lt_prog_compiler_static='${wl}-a ${wl}archive' 7714 ;; 7715 7716 irix5* | irix6* | nonstopux*) 7717 lt_prog_compiler_wl='-Wl,' 7718 # PIC (with -KPIC) is the default. 7719 lt_prog_compiler_static='-non_shared' 7720 ;; 7721 7722 newsos6) 7723 lt_prog_compiler_pic='-KPIC' 7724 lt_prog_compiler_static='-Bstatic' 7725 ;; 7726 7727 linux* | k*bsd*-gnu) 7728 case $cc_basename in 7729 icc* | ecc*) 7730 lt_prog_compiler_wl='-Wl,' 7731 lt_prog_compiler_pic='-KPIC' 7732 lt_prog_compiler_static='-static' 7733 ;; 7734 pgcc* | pgf77* | pgf90* | pgf95*) 7735 # Portland Group compilers (*not* the Pentium gcc compiler, 7736 # which looks to be a dead project) 7737 lt_prog_compiler_wl='-Wl,' 7738 lt_prog_compiler_pic='-fpic' 7739 lt_prog_compiler_static='-Bstatic' 7740 ;; 7741 ccc*) 7742 lt_prog_compiler_wl='-Wl,' 7743 # All Alpha code is PIC. 7744 lt_prog_compiler_static='-non_shared' 7745 ;; 7746 *) 7747 case `$CC -V 2>&1 | sed 5q` in 7748 *Sun\ C*) 7749 # Sun C 5.9 7750 lt_prog_compiler_pic='-KPIC' 7751 lt_prog_compiler_static='-Bstatic' 7752 lt_prog_compiler_wl='-Wl,' 7753 ;; 7754 *Sun\ F*) 7755 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7756 lt_prog_compiler_pic='-KPIC' 7757 lt_prog_compiler_static='-Bstatic' 7758 lt_prog_compiler_wl='' 7759 ;; 7760 esac 7761 ;; 7762 esac 7763 ;; 7764 7765 osf3* | osf4* | osf5*) 7766 lt_prog_compiler_wl='-Wl,' 7767 # All OSF/1 code is PIC. 7768 lt_prog_compiler_static='-non_shared' 7769 ;; 7770 7771 rdos*) 7772 lt_prog_compiler_static='-non_shared' 7773 ;; 7774 7775 solaris*) 7776 lt_prog_compiler_pic='-KPIC' 7777 lt_prog_compiler_static='-Bstatic' 7778 case $cc_basename in 7779 f77* | f90* | f95*) 7780 lt_prog_compiler_wl='-Qoption ld ';; 7781 *) 7782 lt_prog_compiler_wl='-Wl,';; 7783 esac 7784 ;; 7785 7786 sunos4*) 7787 lt_prog_compiler_wl='-Qoption ld ' 7788 lt_prog_compiler_pic='-PIC' 7789 lt_prog_compiler_static='-Bstatic' 7790 ;; 7791 7792 sysv4 | sysv4.2uw2* | sysv4.3*) 7793 lt_prog_compiler_wl='-Wl,' 7794 lt_prog_compiler_pic='-KPIC' 7795 lt_prog_compiler_static='-Bstatic' 7796 ;; 7797 7798 sysv4*MP*) 7799 if test -d /usr/nec ;then 7800 lt_prog_compiler_pic='-Kconform_pic' 7801 lt_prog_compiler_static='-Bstatic' 7802 fi 7803 ;; 7804 7805 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7806 lt_prog_compiler_wl='-Wl,' 7807 lt_prog_compiler_pic='-KPIC' 7808 lt_prog_compiler_static='-Bstatic' 7809 ;; 7810 7811 unicos*) 7812 lt_prog_compiler_wl='-Wl,' 7813 lt_prog_compiler_can_build_shared=no 7814 ;; 7815 7816 uts4*) 7817 lt_prog_compiler_pic='-pic' 7818 lt_prog_compiler_static='-Bstatic' 7819 ;; 7820 7821 *) 7822 lt_prog_compiler_can_build_shared=no 7823 ;; 7824 esac 7825 fi 7826 7827{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7828$as_echo "$lt_prog_compiler_pic" >&6; } 7829 7830# 7831# Check to make sure the PIC flag actually works. 7832# 7833if test -n "$lt_prog_compiler_pic"; then 7834 7835{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7836$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7837if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 7838 $as_echo_n "(cached) " >&6 7839else 7840 lt_cv_prog_compiler_pic_works=no 7841 ac_outfile=conftest.$ac_objext 7842 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7843 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7844 # Insert the option either (1) after the last *FLAGS variable, or 7845 # (2) before a word containing "conftest.", or (3) at the end. 7846 # Note that $ac_compile itself does not contain backslashes and begins 7847 # with a dollar sign (not a hyphen), so the echo should work correctly. 7848 # The option is referenced via a variable to avoid confusing sed. 7849 lt_compile=`echo "$ac_compile" | $SED \ 7850 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7851 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7852 -e 's:$: $lt_compiler_flag:'` 7853 (eval echo "\"\$as_me:7853: $lt_compile\"" >&5) 7854 (eval "$lt_compile" 2>conftest.err) 7855 ac_status=$? 7856 cat conftest.err >&5 7857 echo "$as_me:7857: \$? = $ac_status" >&5 7858 if (exit $ac_status) && test -s "$ac_outfile"; then 7859 # The compiler can only warn and ignore the option if not recognized 7860 # So say no if there are warnings other than the usual output. 7861 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7862 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7863 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7864 lt_cv_prog_compiler_pic_works=yes 7865 fi 7866 fi 7867 $rm conftest* 7868 7869fi 7870{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 7871$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7872 7873if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7874 case $lt_prog_compiler_pic in 7875 "" | " "*) ;; 7876 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7877 esac 7878else 7879 lt_prog_compiler_pic= 7880 lt_prog_compiler_can_build_shared=no 7881fi 7882 7883fi 7884case $host_os in 7885 # For platforms which do not support PIC, -DPIC is meaningless: 7886 *djgpp*) 7887 lt_prog_compiler_pic= 7888 ;; 7889 *) 7890 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7891 ;; 7892esac 7893 7894# 7895# Check to make sure the static flag actually works. 7896# 7897wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7898{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7899$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7900if test "${lt_cv_prog_compiler_static_works+set}" = set; then 7901 $as_echo_n "(cached) " >&6 7902else 7903 lt_cv_prog_compiler_static_works=no 7904 save_LDFLAGS="$LDFLAGS" 7905 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7906 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7907 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7908 # The linker can only warn and ignore the option if not recognized 7909 # So say no if there are warnings 7910 if test -s conftest.err; then 7911 # Append any errors to the config.log. 7912 cat conftest.err 1>&5 7913 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7914 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7915 if diff conftest.exp conftest.er2 >/dev/null; then 7916 lt_cv_prog_compiler_static_works=yes 7917 fi 7918 else 7919 lt_cv_prog_compiler_static_works=yes 7920 fi 7921 fi 7922 $rm -r conftest* 7923 LDFLAGS="$save_LDFLAGS" 7924 7925fi 7926{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 7927$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 7928 7929if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7930 : 7931else 7932 lt_prog_compiler_static= 7933fi 7934 7935 7936{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7937$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7938if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7939 $as_echo_n "(cached) " >&6 7940else 7941 lt_cv_prog_compiler_c_o=no 7942 $rm -r conftest 2>/dev/null 7943 mkdir conftest 7944 cd conftest 7945 mkdir out 7946 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7947 7948 lt_compiler_flag="-o out/conftest2.$ac_objext" 7949 # Insert the option either (1) after the last *FLAGS variable, or 7950 # (2) before a word containing "conftest.", or (3) at the end. 7951 # Note that $ac_compile itself does not contain backslashes and begins 7952 # with a dollar sign (not a hyphen), so the echo should work correctly. 7953 lt_compile=`echo "$ac_compile" | $SED \ 7954 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7955 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7956 -e 's:$: $lt_compiler_flag:'` 7957 (eval echo "\"\$as_me:7957: $lt_compile\"" >&5) 7958 (eval "$lt_compile" 2>out/conftest.err) 7959 ac_status=$? 7960 cat out/conftest.err >&5 7961 echo "$as_me:7961: \$? = $ac_status" >&5 7962 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7963 then 7964 # The compiler can only warn and ignore the option if not recognized 7965 # So say no if there are warnings 7966 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7967 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7968 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7969 lt_cv_prog_compiler_c_o=yes 7970 fi 7971 fi 7972 chmod u+w . 2>&5 7973 $rm conftest* 7974 # SGI C++ compiler will create directory out/ii_files/ for 7975 # template instantiation 7976 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7977 $rm out/* && rmdir out 7978 cd .. 7979 rmdir conftest 7980 $rm conftest* 7981 7982fi 7983{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7984$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7985 7986 7987hard_links="nottested" 7988if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7989 # do not overwrite the value of need_locks provided by the user 7990 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7991$as_echo_n "checking if we can lock with hard links... " >&6; } 7992 hard_links=yes 7993 $rm conftest* 7994 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7995 touch conftest.a 7996 ln conftest.a conftest.b 2>&5 || hard_links=no 7997 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7998 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 7999$as_echo "$hard_links" >&6; } 8000 if test "$hard_links" = no; then 8001 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8002$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8003 need_locks=warn 8004 fi 8005else 8006 need_locks=no 8007fi 8008 8009{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8010$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8011 8012 runpath_var= 8013 allow_undefined_flag= 8014 enable_shared_with_static_runtimes=no 8015 archive_cmds= 8016 archive_expsym_cmds= 8017 old_archive_From_new_cmds= 8018 old_archive_from_expsyms_cmds= 8019 export_dynamic_flag_spec= 8020 whole_archive_flag_spec= 8021 thread_safe_flag_spec= 8022 hardcode_libdir_flag_spec= 8023 hardcode_libdir_flag_spec_ld= 8024 hardcode_libdir_separator= 8025 hardcode_direct=no 8026 hardcode_minus_L=no 8027 hardcode_shlibpath_var=unsupported 8028 link_all_deplibs=unknown 8029 hardcode_automatic=no 8030 module_cmds= 8031 module_expsym_cmds= 8032 always_export_symbols=no 8033 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8034 # include_expsyms should be a list of space-separated symbols to be *always* 8035 # included in the symbol list 8036 include_expsyms= 8037 # exclude_expsyms can be an extended regexp of symbols to exclude 8038 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8039 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8040 # as well as any symbol that contains `d'. 8041 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8042 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8043 # platforms (ab)use it in PIC code, but their linkers get confused if 8044 # the symbol is explicitly referenced. Since portable code cannot 8045 # rely on this symbol name, it's probably fine to never include it in 8046 # preloaded symbol tables. 8047 # Exclude shared library initialization/finalization symbols. 8048 extract_expsyms_cmds= 8049 # Just being paranoid about ensuring that cc_basename is set. 8050 for cc_temp in $compiler""; do 8051 case $cc_temp in 8052 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8053 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8054 \-*) ;; 8055 *) break;; 8056 esac 8057done 8058cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8059 8060 case $host_os in 8061 cygwin* | mingw* | pw32*) 8062 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8063 # When not using gcc, we currently assume that we are using 8064 # Microsoft Visual C++. 8065 if test "$GCC" != yes; then 8066 with_gnu_ld=no 8067 fi 8068 ;; 8069 interix*) 8070 # we just hope/assume this is gcc and not c89 (= MSVC++) 8071 with_gnu_ld=yes 8072 ;; 8073 openbsd*) 8074 with_gnu_ld=no 8075 ;; 8076 esac 8077 8078 ld_shlibs=yes 8079 if test "$with_gnu_ld" = yes; then 8080 # If archive_cmds runs LD, not CC, wlarc should be empty 8081 wlarc='${wl}' 8082 8083 # Set some defaults for GNU ld with shared library support. These 8084 # are reset later if shared libraries are not supported. Putting them 8085 # here allows them to be overridden if necessary. 8086 runpath_var=LD_RUN_PATH 8087 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 8088 export_dynamic_flag_spec='${wl}--export-dynamic' 8089 # ancient GNU ld didn't support --whole-archive et. al. 8090 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 8091 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8092 else 8093 whole_archive_flag_spec= 8094 fi 8095 supports_anon_versioning=no 8096 case `$LD -v 2>/dev/null` in 8097 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8098 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8099 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8100 *\ 2.11.*) ;; # other 2.11 versions 8101 *) supports_anon_versioning=yes ;; 8102 esac 8103 8104 # See if GNU ld supports shared libraries. 8105 case $host_os in 8106 aix[3-9]*) 8107 # On AIX/PPC, the GNU linker is very broken 8108 if test "$host_cpu" != ia64; then 8109 ld_shlibs=no 8110 cat <<EOF 1>&2 8111 8112*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8113*** to be unable to reliably create shared libraries on AIX. 8114*** Therefore, libtool is disabling shared libraries support. If you 8115*** really care for shared libraries, you may want to modify your PATH 8116*** so that a non-GNU linker is found, and then restart. 8117 8118EOF 8119 fi 8120 ;; 8121 8122 amigaos*) 8123 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)' 8124 hardcode_libdir_flag_spec='-L$libdir' 8125 hardcode_minus_L=yes 8126 8127 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 8128 # that the semantics of dynamic libraries on AmigaOS, at least up 8129 # to version 4, is to share data among multiple programs linked 8130 # with the same dynamic library. Since this doesn't match the 8131 # behavior of shared libraries on other platforms, we can't use 8132 # them. 8133 ld_shlibs=no 8134 ;; 8135 8136 beos*) 8137 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8138 allow_undefined_flag=unsupported 8139 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8140 # support --undefined. This deserves some investigation. FIXME 8141 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8142 else 8143 ld_shlibs=no 8144 fi 8145 ;; 8146 8147 cygwin* | mingw* | pw32*) 8148 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8149 # as there is no search path for DLLs. 8150 hardcode_libdir_flag_spec='-L$libdir' 8151 allow_undefined_flag=unsupported 8152 always_export_symbols=no 8153 enable_shared_with_static_runtimes=yes 8154 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8155 8156 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 8157 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8158 # If the export-symbols file already is a .def file (1st line 8159 # is EXPORTS), use it as is; otherwise, prepend... 8160 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8161 cp $export_symbols $output_objdir/$soname.def; 8162 else 8163 echo EXPORTS > $output_objdir/$soname.def; 8164 cat $export_symbols >> $output_objdir/$soname.def; 8165 fi~ 8166 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8167 else 8168 ld_shlibs=no 8169 fi 8170 ;; 8171 8172 interix[3-9]*) 8173 hardcode_direct=no 8174 hardcode_shlibpath_var=no 8175 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8176 export_dynamic_flag_spec='${wl}-E' 8177 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8178 # Instead, shared libraries are loaded at an image base (0x10000000 by 8179 # default) and relocated if they conflict, which is a slow very memory 8180 # consuming and fragmenting process. To avoid this, we pick a random, 8181 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8182 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8183 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8184 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' 8185 ;; 8186 8187 gnu* | linux* | k*bsd*-gnu) 8188 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8189 tmp_addflag= 8190 case $cc_basename,$host_cpu in 8191 pgcc*) # Portland Group C compiler 8192 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' 8193 tmp_addflag=' $pic_flag' 8194 ;; 8195 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8196 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' 8197 tmp_addflag=' $pic_flag -Mnomain' ;; 8198 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8199 tmp_addflag=' -i_dynamic' ;; 8200 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8201 tmp_addflag=' -i_dynamic -nofor_main' ;; 8202 ifc* | ifort*) # Intel Fortran compiler 8203 tmp_addflag=' -nofor_main' ;; 8204 esac 8205 case `$CC -V 2>&1 | sed 5q` in 8206 *Sun\ C*) # Sun C 5.9 8207 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' 8208 tmp_sharedflag='-G' ;; 8209 *Sun\ F*) # Sun Fortran 8.3 8210 tmp_sharedflag='-G' ;; 8211 *) 8212 tmp_sharedflag='-shared' ;; 8213 esac 8214 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8215 8216 if test $supports_anon_versioning = yes; then 8217 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8218 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8219 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8220 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8221 fi 8222 else 8223 ld_shlibs=no 8224 fi 8225 ;; 8226 8227 netbsd*) 8228 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8229 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8230 wlarc= 8231 else 8232 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8233 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8234 fi 8235 ;; 8236 8237 solaris*) 8238 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8239 ld_shlibs=no 8240 cat <<EOF 1>&2 8241 8242*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8243*** create shared libraries on Solaris systems. Therefore, libtool 8244*** is disabling shared libraries support. We urge you to upgrade GNU 8245*** binutils to release 2.9.1 or newer. Another option is to modify 8246*** your PATH or compiler configuration so that the native linker is 8247*** used, and then restart. 8248 8249EOF 8250 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8251 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8252 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8253 else 8254 ld_shlibs=no 8255 fi 8256 ;; 8257 8258 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8259 case `$LD -v 2>&1` in 8260 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8261 ld_shlibs=no 8262 cat <<_LT_EOF 1>&2 8263 8264*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8265*** reliably create shared libraries on SCO systems. Therefore, libtool 8266*** is disabling shared libraries support. We urge you to upgrade GNU 8267*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8268*** your PATH or compiler configuration so that the native linker is 8269*** used, and then restart. 8270 8271_LT_EOF 8272 ;; 8273 *) 8274 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8275 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 8276 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 8277 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 8278 else 8279 ld_shlibs=no 8280 fi 8281 ;; 8282 esac 8283 ;; 8284 8285 sunos4*) 8286 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8287 wlarc= 8288 hardcode_direct=yes 8289 hardcode_shlibpath_var=no 8290 ;; 8291 8292 *) 8293 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8294 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8295 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8296 else 8297 ld_shlibs=no 8298 fi 8299 ;; 8300 esac 8301 8302 if test "$ld_shlibs" = no; then 8303 runpath_var= 8304 hardcode_libdir_flag_spec= 8305 export_dynamic_flag_spec= 8306 whole_archive_flag_spec= 8307 fi 8308 else 8309 # PORTME fill in a description of your system's linker (not GNU ld) 8310 case $host_os in 8311 aix3*) 8312 allow_undefined_flag=unsupported 8313 always_export_symbols=yes 8314 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' 8315 # Note: this linker hardcodes the directories in LIBPATH if there 8316 # are no directories specified by -L. 8317 hardcode_minus_L=yes 8318 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8319 # Neither direct hardcoding nor static linking is supported with a 8320 # broken collect2. 8321 hardcode_direct=unsupported 8322 fi 8323 ;; 8324 8325 aix[4-9]*) 8326 if test "$host_cpu" = ia64; then 8327 # On IA64, the linker does run time linking by default, so we don't 8328 # have to do anything special. 8329 aix_use_runtimelinking=no 8330 exp_sym_flag='-Bexport' 8331 no_entry_flag="" 8332 else 8333 # If we're using GNU nm, then we don't want the "-C" option. 8334 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8335 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 8336 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' 8337 else 8338 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' 8339 fi 8340 aix_use_runtimelinking=no 8341 8342 # Test if we are trying to use run time linking or normal 8343 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8344 # need to do runtime linking. 8345 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8346 for ld_flag in $LDFLAGS; do 8347 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8348 aix_use_runtimelinking=yes 8349 break 8350 fi 8351 done 8352 ;; 8353 esac 8354 8355 exp_sym_flag='-bexport' 8356 no_entry_flag='-bnoentry' 8357 fi 8358 8359 # When large executables or shared objects are built, AIX ld can 8360 # have problems creating the table of contents. If linking a library 8361 # or program results in "error TOC overflow" add -mminimal-toc to 8362 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8363 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8364 8365 archive_cmds='' 8366 hardcode_direct=yes 8367 hardcode_libdir_separator=':' 8368 link_all_deplibs=yes 8369 8370 if test "$GCC" = yes; then 8371 case $host_os in aix4.[012]|aix4.[012].*) 8372 # We only want to do this on AIX 4.2 and lower, the check 8373 # below for broken collect2 doesn't work under 4.3+ 8374 collect2name=`${CC} -print-prog-name=collect2` 8375 if test -f "$collect2name" && \ 8376 strings "$collect2name" | grep resolve_lib_name >/dev/null 8377 then 8378 # We have reworked collect2 8379 : 8380 else 8381 # We have old collect2 8382 hardcode_direct=unsupported 8383 # It fails to find uninstalled libraries when the uninstalled 8384 # path is not listed in the libpath. Setting hardcode_minus_L 8385 # to unsupported forces relinking 8386 hardcode_minus_L=yes 8387 hardcode_libdir_flag_spec='-L$libdir' 8388 hardcode_libdir_separator= 8389 fi 8390 ;; 8391 esac 8392 shared_flag='-shared' 8393 if test "$aix_use_runtimelinking" = yes; then 8394 shared_flag="$shared_flag "'${wl}-G' 8395 fi 8396 else 8397 # not using gcc 8398 if test "$host_cpu" = ia64; then 8399 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8400 # chokes on -Wl,-G. The following line is correct: 8401 shared_flag='-G' 8402 else 8403 if test "$aix_use_runtimelinking" = yes; then 8404 shared_flag='${wl}-G' 8405 else 8406 shared_flag='${wl}-bM:SRE' 8407 fi 8408 fi 8409 fi 8410 8411 # It seems that -bexpall does not export symbols beginning with 8412 # underscore (_), so it is better to generate a list of symbols to export. 8413 always_export_symbols=yes 8414 if test "$aix_use_runtimelinking" = yes; then 8415 # Warning - without using the other runtime loading flags (-brtl), 8416 # -berok will link without error, but may produce a broken library. 8417 allow_undefined_flag='-berok' 8418 # Determine the default libpath from the value encoded in an empty executable. 8419 cat >conftest.$ac_ext <<_ACEOF 8420/* confdefs.h. */ 8421_ACEOF 8422cat confdefs.h >>conftest.$ac_ext 8423cat >>conftest.$ac_ext <<_ACEOF 8424/* end confdefs.h. */ 8425 8426int 8427main () 8428{ 8429 8430 ; 8431 return 0; 8432} 8433_ACEOF 8434rm -f conftest.$ac_objext conftest$ac_exeext 8435if { (ac_try="$ac_link" 8436case "(($ac_try" in 8437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8438 *) ac_try_echo=$ac_try;; 8439esac 8440eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8441$as_echo "$ac_try_echo") >&5 8442 (eval "$ac_link") 2>conftest.er1 8443 ac_status=$? 8444 grep -v '^ *+' conftest.er1 >conftest.err 8445 rm -f conftest.er1 8446 cat conftest.err >&5 8447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8448 (exit $ac_status); } && { 8449 test -z "$ac_c_werror_flag" || 8450 test ! -s conftest.err 8451 } && test -s conftest$ac_exeext && { 8452 test "$cross_compiling" = yes || 8453 $as_test_x conftest$ac_exeext 8454 }; then 8455 8456lt_aix_libpath_sed=' 8457 /Import File Strings/,/^$/ { 8458 /^0/ { 8459 s/^0 *\(.*\)$/\1/ 8460 p 8461 } 8462 }' 8463aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8464# Check for a 64-bit object if we didn't find anything. 8465if test -z "$aix_libpath"; then 8466 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8467fi 8468else 8469 $as_echo "$as_me: failed program was:" >&5 8470sed 's/^/| /' conftest.$ac_ext >&5 8471 8472 8473fi 8474 8475rm -rf conftest.dSYM 8476rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8477 conftest$ac_exeext conftest.$ac_ext 8478if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8479 8480 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8481 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 8482 else 8483 if test "$host_cpu" = ia64; then 8484 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8485 allow_undefined_flag="-z nodefs" 8486 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" 8487 else 8488 # Determine the default libpath from the value encoded in an empty executable. 8489 cat >conftest.$ac_ext <<_ACEOF 8490/* confdefs.h. */ 8491_ACEOF 8492cat confdefs.h >>conftest.$ac_ext 8493cat >>conftest.$ac_ext <<_ACEOF 8494/* end confdefs.h. */ 8495 8496int 8497main () 8498{ 8499 8500 ; 8501 return 0; 8502} 8503_ACEOF 8504rm -f conftest.$ac_objext conftest$ac_exeext 8505if { (ac_try="$ac_link" 8506case "(($ac_try" in 8507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8508 *) ac_try_echo=$ac_try;; 8509esac 8510eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8511$as_echo "$ac_try_echo") >&5 8512 (eval "$ac_link") 2>conftest.er1 8513 ac_status=$? 8514 grep -v '^ *+' conftest.er1 >conftest.err 8515 rm -f conftest.er1 8516 cat conftest.err >&5 8517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8518 (exit $ac_status); } && { 8519 test -z "$ac_c_werror_flag" || 8520 test ! -s conftest.err 8521 } && test -s conftest$ac_exeext && { 8522 test "$cross_compiling" = yes || 8523 $as_test_x conftest$ac_exeext 8524 }; then 8525 8526lt_aix_libpath_sed=' 8527 /Import File Strings/,/^$/ { 8528 /^0/ { 8529 s/^0 *\(.*\)$/\1/ 8530 p 8531 } 8532 }' 8533aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8534# Check for a 64-bit object if we didn't find anything. 8535if test -z "$aix_libpath"; then 8536 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8537fi 8538else 8539 $as_echo "$as_me: failed program was:" >&5 8540sed 's/^/| /' conftest.$ac_ext >&5 8541 8542 8543fi 8544 8545rm -rf conftest.dSYM 8546rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8547 conftest$ac_exeext conftest.$ac_ext 8548if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8549 8550 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8551 # Warning - without using the other run time loading flags, 8552 # -berok will link without error, but may produce a broken library. 8553 no_undefined_flag=' ${wl}-bernotok' 8554 allow_undefined_flag=' ${wl}-berok' 8555 # Exported symbols can be pulled into shared objects from archives 8556 whole_archive_flag_spec='$convenience' 8557 archive_cmds_need_lc=yes 8558 # This is similar to how AIX traditionally builds its shared libraries. 8559 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' 8560 fi 8561 fi 8562 ;; 8563 8564 amigaos*) 8565 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)' 8566 hardcode_libdir_flag_spec='-L$libdir' 8567 hardcode_minus_L=yes 8568 # see comment about different semantics on the GNU ld section 8569 ld_shlibs=no 8570 ;; 8571 8572 bsdi[45]*) 8573 export_dynamic_flag_spec=-rdynamic 8574 ;; 8575 8576 cygwin* | mingw* | pw32*) 8577 # When not using gcc, we currently assume that we are using 8578 # Microsoft Visual C++. 8579 # hardcode_libdir_flag_spec is actually meaningless, as there is 8580 # no search path for DLLs. 8581 hardcode_libdir_flag_spec=' ' 8582 allow_undefined_flag=unsupported 8583 # Tell ltmain to make .lib files, not .a files. 8584 libext=lib 8585 # Tell ltmain to make .dll files, not .so files. 8586 shrext_cmds=".dll" 8587 # FIXME: Setting linknames here is a bad hack. 8588 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8589 # The linker will automatically build a .lib file if we build a DLL. 8590 old_archive_From_new_cmds='true' 8591 # FIXME: Should let the user specify the lib program. 8592 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8593 fix_srcfile_path='`cygpath -w "$srcfile"`' 8594 enable_shared_with_static_runtimes=yes 8595 ;; 8596 8597 darwin* | rhapsody*) 8598 case $host_os in 8599 rhapsody* | darwin1.[012]) 8600 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8601 ;; 8602 *) # Darwin 1.3 on 8603 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8604 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8605 else 8606 case ${MACOSX_DEPLOYMENT_TARGET} in 8607 10.[012]) 8608 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8609 ;; 8610 10.*) 8611 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8612 ;; 8613 esac 8614 fi 8615 ;; 8616 esac 8617 archive_cmds_need_lc=no 8618 hardcode_direct=no 8619 hardcode_automatic=yes 8620 hardcode_shlibpath_var=unsupported 8621 whole_archive_flag_spec='' 8622 link_all_deplibs=yes 8623 if test "$GCC" = yes ; then 8624 output_verbose_link_cmd='echo' 8625 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8626 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8627 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}" 8628 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}" 8629 else 8630 case $cc_basename in 8631 xlc*) 8632 output_verbose_link_cmd='echo' 8633 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 8634 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8635 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8636 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8637 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8638 ;; 8639 *) 8640 ld_shlibs=no 8641 ;; 8642 esac 8643 fi 8644 ;; 8645 8646 dgux*) 8647 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8648 hardcode_libdir_flag_spec='-L$libdir' 8649 hardcode_shlibpath_var=no 8650 ;; 8651 8652 freebsd1*) 8653 ld_shlibs=no 8654 ;; 8655 8656 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8657 # support. Future versions do this automatically, but an explicit c++rt0.o 8658 # does not break anything, and helps significantly (at the cost of a little 8659 # extra space). 8660 freebsd2.2*) 8661 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8662 hardcode_libdir_flag_spec='-R$libdir' 8663 hardcode_direct=yes 8664 hardcode_shlibpath_var=no 8665 ;; 8666 8667 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8668 freebsd2*) 8669 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8670 hardcode_direct=yes 8671 hardcode_minus_L=yes 8672 hardcode_shlibpath_var=no 8673 ;; 8674 8675 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8676 freebsd* | dragonfly*) 8677 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8678 hardcode_libdir_flag_spec='-R$libdir' 8679 hardcode_direct=yes 8680 hardcode_shlibpath_var=no 8681 ;; 8682 8683 hpux9*) 8684 if test "$GCC" = yes; then 8685 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' 8686 else 8687 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' 8688 fi 8689 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8690 hardcode_libdir_separator=: 8691 hardcode_direct=yes 8692 8693 # hardcode_minus_L: Not really in the search PATH, 8694 # but as the default location of the library. 8695 hardcode_minus_L=yes 8696 export_dynamic_flag_spec='${wl}-E' 8697 ;; 8698 8699 hpux10*) 8700 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8701 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8702 else 8703 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8704 fi 8705 if test "$with_gnu_ld" = no; then 8706 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8707 hardcode_libdir_separator=: 8708 8709 hardcode_direct=yes 8710 export_dynamic_flag_spec='${wl}-E' 8711 8712 # hardcode_minus_L: Not really in the search PATH, 8713 # but as the default location of the library. 8714 hardcode_minus_L=yes 8715 fi 8716 ;; 8717 8718 hpux11*) 8719 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8720 case $host_cpu in 8721 hppa*64*) 8722 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8723 ;; 8724 ia64*) 8725 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8726 ;; 8727 *) 8728 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8729 ;; 8730 esac 8731 else 8732 case $host_cpu in 8733 hppa*64*) 8734 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8735 ;; 8736 ia64*) 8737 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8738 ;; 8739 *) 8740 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8741 ;; 8742 esac 8743 fi 8744 if test "$with_gnu_ld" = no; then 8745 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8746 hardcode_libdir_separator=: 8747 8748 case $host_cpu in 8749 hppa*64*|ia64*) 8750 hardcode_libdir_flag_spec_ld='+b $libdir' 8751 hardcode_direct=no 8752 hardcode_shlibpath_var=no 8753 ;; 8754 *) 8755 hardcode_direct=yes 8756 export_dynamic_flag_spec='${wl}-E' 8757 8758 # hardcode_minus_L: Not really in the search PATH, 8759 # but as the default location of the library. 8760 hardcode_minus_L=yes 8761 ;; 8762 esac 8763 fi 8764 ;; 8765 8766 irix5* | irix6* | nonstopux*) 8767 if test "$GCC" = yes; then 8768 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8769 else 8770 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 8771 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8772 fi 8773 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8774 hardcode_libdir_separator=: 8775 link_all_deplibs=yes 8776 ;; 8777 8778 netbsd*) 8779 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8780 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8781 else 8782 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8783 fi 8784 hardcode_libdir_flag_spec='-R$libdir' 8785 hardcode_direct=yes 8786 hardcode_shlibpath_var=no 8787 ;; 8788 8789 newsos6) 8790 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8791 hardcode_direct=yes 8792 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8793 hardcode_libdir_separator=: 8794 hardcode_shlibpath_var=no 8795 ;; 8796 8797 openbsd*) 8798 if test -f /usr/libexec/ld.so; then 8799 hardcode_direct=yes 8800 hardcode_shlibpath_var=no 8801 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8802 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8803 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8804 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8805 export_dynamic_flag_spec='${wl}-E' 8806 else 8807 case $host_os in 8808 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8809 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8810 hardcode_libdir_flag_spec='-R$libdir' 8811 ;; 8812 *) 8813 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8814 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8815 ;; 8816 esac 8817 fi 8818 else 8819 ld_shlibs=no 8820 fi 8821 ;; 8822 8823 os2*) 8824 hardcode_libdir_flag_spec='-L$libdir' 8825 hardcode_minus_L=yes 8826 allow_undefined_flag=unsupported 8827 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' 8828 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8829 ;; 8830 8831 osf3*) 8832 if test "$GCC" = yes; then 8833 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8834 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8835 else 8836 allow_undefined_flag=' -expect_unresolved \*' 8837 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 8838 fi 8839 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8840 hardcode_libdir_separator=: 8841 ;; 8842 8843 osf4* | osf5*) # as osf3* with the addition of -msym flag 8844 if test "$GCC" = yes; then 8845 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8846 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8847 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8848 else 8849 allow_undefined_flag=' -expect_unresolved \*' 8850 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 8851 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8852 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 8853 8854 # Both c and cxx compiler support -rpath directly 8855 hardcode_libdir_flag_spec='-rpath $libdir' 8856 fi 8857 hardcode_libdir_separator=: 8858 ;; 8859 8860 solaris*) 8861 no_undefined_flag=' -z text' 8862 if test "$GCC" = yes; then 8863 wlarc='${wl}' 8864 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8865 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8866 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8867 else 8868 wlarc='' 8869 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8870 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8871 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8872 fi 8873 hardcode_libdir_flag_spec='-R$libdir' 8874 hardcode_shlibpath_var=no 8875 case $host_os in 8876 solaris2.[0-5] | solaris2.[0-5].*) ;; 8877 *) 8878 # The compiler driver will combine and reorder linker options, 8879 # but understands `-z linker_flag'. GCC discards it without `$wl', 8880 # but is careful enough not to reorder. 8881 # Supported since Solaris 2.6 (maybe 2.5.1?) 8882 if test "$GCC" = yes; then 8883 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8884 else 8885 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8886 fi 8887 ;; 8888 esac 8889 link_all_deplibs=yes 8890 ;; 8891 8892 sunos4*) 8893 if test "x$host_vendor" = xsequent; then 8894 # Use $CC to link under sequent, because it throws in some extra .o 8895 # files that make .init and .fini sections work. 8896 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8897 else 8898 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8899 fi 8900 hardcode_libdir_flag_spec='-L$libdir' 8901 hardcode_direct=yes 8902 hardcode_minus_L=yes 8903 hardcode_shlibpath_var=no 8904 ;; 8905 8906 sysv4) 8907 case $host_vendor in 8908 sni) 8909 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8910 hardcode_direct=yes # is this really true??? 8911 ;; 8912 siemens) 8913 ## LD is ld it makes a PLAMLIB 8914 ## CC just makes a GrossModule. 8915 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8916 reload_cmds='$CC -r -o $output$reload_objs' 8917 hardcode_direct=no 8918 ;; 8919 motorola) 8920 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8921 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8922 ;; 8923 esac 8924 runpath_var='LD_RUN_PATH' 8925 hardcode_shlibpath_var=no 8926 ;; 8927 8928 sysv4.3*) 8929 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8930 hardcode_shlibpath_var=no 8931 export_dynamic_flag_spec='-Bexport' 8932 ;; 8933 8934 sysv4*MP*) 8935 if test -d /usr/nec; then 8936 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8937 hardcode_shlibpath_var=no 8938 runpath_var=LD_RUN_PATH 8939 hardcode_runpath_var=yes 8940 ld_shlibs=yes 8941 fi 8942 ;; 8943 8944 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 8945 no_undefined_flag='${wl}-z,text' 8946 archive_cmds_need_lc=no 8947 hardcode_shlibpath_var=no 8948 runpath_var='LD_RUN_PATH' 8949 8950 if test "$GCC" = yes; then 8951 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8952 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8953 else 8954 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8955 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8956 fi 8957 ;; 8958 8959 sysv5* | sco3.2v5* | sco5v6*) 8960 # Note: We can NOT use -z defs as we might desire, because we do not 8961 # link with -lc, and that would cause any symbols used from libc to 8962 # always be unresolved, which means just about no library would 8963 # ever link correctly. If we're not using GNU ld we use -z text 8964 # though, which does catch some bad symbols but isn't as heavy-handed 8965 # as -z defs. 8966 no_undefined_flag='${wl}-z,text' 8967 allow_undefined_flag='${wl}-z,nodefs' 8968 archive_cmds_need_lc=no 8969 hardcode_shlibpath_var=no 8970 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8971 hardcode_libdir_separator=':' 8972 link_all_deplibs=yes 8973 export_dynamic_flag_spec='${wl}-Bexport' 8974 runpath_var='LD_RUN_PATH' 8975 8976 if test "$GCC" = yes; then 8977 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8978 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8979 else 8980 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8981 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8982 fi 8983 ;; 8984 8985 uts4*) 8986 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8987 hardcode_libdir_flag_spec='-L$libdir' 8988 hardcode_shlibpath_var=no 8989 ;; 8990 8991 *) 8992 ld_shlibs=no 8993 ;; 8994 esac 8995 fi 8996 8997{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8998$as_echo "$ld_shlibs" >&6; } 8999test "$ld_shlibs" = no && can_build_shared=no 9000 9001# 9002# Do we need to explicitly link libc? 9003# 9004case "x$archive_cmds_need_lc" in 9005x|xyes) 9006 # Assume -lc should be added 9007 archive_cmds_need_lc=yes 9008 9009 if test "$enable_shared" = yes && test "$GCC" = yes; then 9010 case $archive_cmds in 9011 *'~'*) 9012 # FIXME: we may have to deal with multi-command sequences. 9013 ;; 9014 '$CC '*) 9015 # Test whether the compiler implicitly links with -lc since on some 9016 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9017 # to ld, don't add -lc before -lgcc. 9018 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9019$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9020 $rm conftest* 9021 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9022 9023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9024 (eval $ac_compile) 2>&5 9025 ac_status=$? 9026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9027 (exit $ac_status); } 2>conftest.err; then 9028 soname=conftest 9029 lib=conftest 9030 libobjs=conftest.$ac_objext 9031 deplibs= 9032 wl=$lt_prog_compiler_wl 9033 pic_flag=$lt_prog_compiler_pic 9034 compiler_flags=-v 9035 linker_flags=-v 9036 verstring= 9037 output_objdir=. 9038 libname=conftest 9039 lt_save_allow_undefined_flag=$allow_undefined_flag 9040 allow_undefined_flag= 9041 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 9042 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 9043 ac_status=$? 9044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9045 (exit $ac_status); } 9046 then 9047 archive_cmds_need_lc=no 9048 else 9049 archive_cmds_need_lc=yes 9050 fi 9051 allow_undefined_flag=$lt_save_allow_undefined_flag 9052 else 9053 cat conftest.err 1>&5 9054 fi 9055 $rm conftest* 9056 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9057$as_echo "$archive_cmds_need_lc" >&6; } 9058 ;; 9059 esac 9060 fi 9061 ;; 9062esac 9063 9064{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9065$as_echo_n "checking dynamic linker characteristics... " >&6; } 9066library_names_spec= 9067libname_spec='lib$name' 9068soname_spec= 9069shrext_cmds=".so" 9070postinstall_cmds= 9071postuninstall_cmds= 9072finish_cmds= 9073finish_eval= 9074shlibpath_var= 9075shlibpath_overrides_runpath=unknown 9076version_type=none 9077dynamic_linker="$host_os ld.so" 9078sys_lib_dlsearch_path_spec="/lib /usr/lib" 9079 9080if test "$GCC" = yes; then 9081 case $host_os in 9082 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9083 *) lt_awk_arg="/^libraries:/" ;; 9084 esac 9085 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9086 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 9087 # if the path contains ";" then we assume it to be the separator 9088 # otherwise default to the standard path separator (i.e. ":") - it is 9089 # assumed that no part of a normal pathname contains ";" but that should 9090 # okay in the real world where ";" in dirpaths is itself problematic. 9091 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9092 else 9093 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9094 fi 9095 # Ok, now we have the path, separated by spaces, we can step through it 9096 # and add multilib dir if necessary. 9097 lt_tmp_lt_search_path_spec= 9098 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9099 for lt_sys_path in $lt_search_path_spec; do 9100 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9101 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9102 else 9103 test -d "$lt_sys_path" && \ 9104 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9105 fi 9106 done 9107 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 9108BEGIN {RS=" "; FS="/|\n";} { 9109 lt_foo=""; 9110 lt_count=0; 9111 for (lt_i = NF; lt_i > 0; lt_i--) { 9112 if ($lt_i != "" && $lt_i != ".") { 9113 if ($lt_i == "..") { 9114 lt_count++; 9115 } else { 9116 if (lt_count == 0) { 9117 lt_foo="/" $lt_i lt_foo; 9118 } else { 9119 lt_count--; 9120 } 9121 } 9122 } 9123 } 9124 if (lt_foo != "") { lt_freq[lt_foo]++; } 9125 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9126}'` 9127 sys_lib_search_path_spec=`echo $lt_search_path_spec` 9128else 9129 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9130fi 9131need_lib_prefix=unknown 9132hardcode_into_libs=no 9133 9134# when you set need_version to no, make sure it does not cause -set_version 9135# flags to be left without arguments 9136need_version=unknown 9137 9138case $host_os in 9139aix3*) 9140 version_type=linux 9141 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9142 shlibpath_var=LIBPATH 9143 9144 # AIX 3 has no versioning support, so we append a major version to the name. 9145 soname_spec='${libname}${release}${shared_ext}$major' 9146 ;; 9147 9148aix[4-9]*) 9149 version_type=linux 9150 need_lib_prefix=no 9151 need_version=no 9152 hardcode_into_libs=yes 9153 if test "$host_cpu" = ia64; then 9154 # AIX 5 supports IA64 9155 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9156 shlibpath_var=LD_LIBRARY_PATH 9157 else 9158 # With GCC up to 2.95.x, collect2 would create an import file 9159 # for dependence libraries. The import file would start with 9160 # the line `#! .'. This would cause the generated library to 9161 # depend on `.', always an invalid library. This was fixed in 9162 # development snapshots of GCC prior to 3.0. 9163 case $host_os in 9164 aix4 | aix4.[01] | aix4.[01].*) 9165 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9166 echo ' yes ' 9167 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 9168 : 9169 else 9170 can_build_shared=no 9171 fi 9172 ;; 9173 esac 9174 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9175 # soname into executable. Probably we can add versioning support to 9176 # collect2, so additional links can be useful in future. 9177 if test "$aix_use_runtimelinking" = yes; then 9178 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9179 # instead of lib<name>.a to let people know that these are not 9180 # typical AIX shared libraries. 9181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9182 else 9183 # We preserve .a as extension for shared libraries through AIX4.2 9184 # and later when we are not doing run time linking. 9185 library_names_spec='${libname}${release}.a $libname.a' 9186 soname_spec='${libname}${release}${shared_ext}$major' 9187 fi 9188 shlibpath_var=LIBPATH 9189 fi 9190 ;; 9191 9192amigaos*) 9193 library_names_spec='$libname.ixlibrary $libname.a' 9194 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9195 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' 9196 ;; 9197 9198beos*) 9199 library_names_spec='${libname}${shared_ext}' 9200 dynamic_linker="$host_os ld.so" 9201 shlibpath_var=LIBRARY_PATH 9202 ;; 9203 9204bsdi[45]*) 9205 version_type=linux 9206 need_version=no 9207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9208 soname_spec='${libname}${release}${shared_ext}$major' 9209 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9210 shlibpath_var=LD_LIBRARY_PATH 9211 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9212 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9213 # the default ld.so.conf also contains /usr/contrib/lib and 9214 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9215 # libtool to hard-code these into programs 9216 ;; 9217 9218cygwin* | mingw* | pw32*) 9219 version_type=windows 9220 shrext_cmds=".dll" 9221 need_version=no 9222 need_lib_prefix=no 9223 9224 case $GCC,$host_os in 9225 yes,cygwin* | yes,mingw* | yes,pw32*) 9226 library_names_spec='$libname.dll.a' 9227 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9228 postinstall_cmds='base_file=`basename \${file}`~ 9229 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9230 dldir=$destdir/`dirname \$dlpath`~ 9231 test -d \$dldir || mkdir -p \$dldir~ 9232 $install_prog $dir/$dlname \$dldir/$dlname~ 9233 chmod a+x \$dldir/$dlname' 9234 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9235 dlpath=$dir/\$dldll~ 9236 $rm \$dlpath' 9237 shlibpath_overrides_runpath=yes 9238 9239 case $host_os in 9240 cygwin*) 9241 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9242 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9243 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9244 ;; 9245 mingw*) 9246 # MinGW DLLs use traditional 'lib' prefix 9247 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9248 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9249 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9250 # It is most probably a Windows format PATH printed by 9251 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9252 # path with ; separators, and with drive letters. We can handle the 9253 # drive letters (cygwin fileutils understands them), so leave them, 9254 # especially as we might pass files found there to a mingw objdump, 9255 # which wouldn't understand a cygwinified path. Ahh. 9256 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9257 else 9258 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9259 fi 9260 ;; 9261 pw32*) 9262 # pw32 DLLs use 'pw' prefix rather than 'lib' 9263 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9264 ;; 9265 esac 9266 ;; 9267 9268 *) 9269 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9270 ;; 9271 esac 9272 dynamic_linker='Win32 ld.exe' 9273 # FIXME: first we should search . and the directory the executable is in 9274 shlibpath_var=PATH 9275 ;; 9276 9277darwin* | rhapsody*) 9278 dynamic_linker="$host_os dyld" 9279 version_type=darwin 9280 need_lib_prefix=no 9281 need_version=no 9282 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9283 soname_spec='${libname}${release}${major}$shared_ext' 9284 shlibpath_overrides_runpath=yes 9285 shlibpath_var=DYLD_LIBRARY_PATH 9286 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9287 9288 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9289 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9290 ;; 9291 9292dgux*) 9293 version_type=linux 9294 need_lib_prefix=no 9295 need_version=no 9296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9297 soname_spec='${libname}${release}${shared_ext}$major' 9298 shlibpath_var=LD_LIBRARY_PATH 9299 ;; 9300 9301freebsd1*) 9302 dynamic_linker=no 9303 ;; 9304 9305freebsd* | dragonfly*) 9306 # DragonFly does not have aout. When/if they implement a new 9307 # versioning mechanism, adjust this. 9308 if test -x /usr/bin/objformat; then 9309 objformat=`/usr/bin/objformat` 9310 else 9311 case $host_os in 9312 freebsd[123]*) objformat=aout ;; 9313 *) objformat=elf ;; 9314 esac 9315 fi 9316 version_type=freebsd-$objformat 9317 case $version_type in 9318 freebsd-elf*) 9319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9320 need_version=no 9321 need_lib_prefix=no 9322 ;; 9323 freebsd-*) 9324 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9325 need_version=yes 9326 ;; 9327 esac 9328 shlibpath_var=LD_LIBRARY_PATH 9329 case $host_os in 9330 freebsd2*) 9331 shlibpath_overrides_runpath=yes 9332 ;; 9333 freebsd3.[01]* | freebsdelf3.[01]*) 9334 shlibpath_overrides_runpath=yes 9335 hardcode_into_libs=yes 9336 ;; 9337 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9338 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9339 shlibpath_overrides_runpath=no 9340 hardcode_into_libs=yes 9341 ;; 9342 *) # from 4.6 on, and DragonFly 9343 shlibpath_overrides_runpath=yes 9344 hardcode_into_libs=yes 9345 ;; 9346 esac 9347 ;; 9348 9349gnu*) 9350 version_type=linux 9351 need_lib_prefix=no 9352 need_version=no 9353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9354 soname_spec='${libname}${release}${shared_ext}$major' 9355 shlibpath_var=LD_LIBRARY_PATH 9356 hardcode_into_libs=yes 9357 ;; 9358 9359hpux9* | hpux10* | hpux11*) 9360 # Give a soname corresponding to the major version so that dld.sl refuses to 9361 # link against other versions. 9362 version_type=sunos 9363 need_lib_prefix=no 9364 need_version=no 9365 case $host_cpu in 9366 ia64*) 9367 shrext_cmds='.so' 9368 hardcode_into_libs=yes 9369 dynamic_linker="$host_os dld.so" 9370 shlibpath_var=LD_LIBRARY_PATH 9371 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9373 soname_spec='${libname}${release}${shared_ext}$major' 9374 if test "X$HPUX_IA64_MODE" = X32; then 9375 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9376 else 9377 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9378 fi 9379 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9380 ;; 9381 hppa*64*) 9382 shrext_cmds='.sl' 9383 hardcode_into_libs=yes 9384 dynamic_linker="$host_os dld.sl" 9385 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9386 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9388 soname_spec='${libname}${release}${shared_ext}$major' 9389 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9390 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9391 ;; 9392 *) 9393 shrext_cmds='.sl' 9394 dynamic_linker="$host_os dld.sl" 9395 shlibpath_var=SHLIB_PATH 9396 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9398 soname_spec='${libname}${release}${shared_ext}$major' 9399 ;; 9400 esac 9401 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9402 postinstall_cmds='chmod 555 $lib' 9403 ;; 9404 9405interix[3-9]*) 9406 version_type=linux 9407 need_lib_prefix=no 9408 need_version=no 9409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9410 soname_spec='${libname}${release}${shared_ext}$major' 9411 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9412 shlibpath_var=LD_LIBRARY_PATH 9413 shlibpath_overrides_runpath=no 9414 hardcode_into_libs=yes 9415 ;; 9416 9417irix5* | irix6* | nonstopux*) 9418 case $host_os in 9419 nonstopux*) version_type=nonstopux ;; 9420 *) 9421 if test "$lt_cv_prog_gnu_ld" = yes; then 9422 version_type=linux 9423 else 9424 version_type=irix 9425 fi ;; 9426 esac 9427 need_lib_prefix=no 9428 need_version=no 9429 soname_spec='${libname}${release}${shared_ext}$major' 9430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9431 case $host_os in 9432 irix5* | nonstopux*) 9433 libsuff= shlibsuff= 9434 ;; 9435 *) 9436 case $LD in # libtool.m4 will add one of these switches to LD 9437 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9438 libsuff= shlibsuff= libmagic=32-bit;; 9439 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9440 libsuff=32 shlibsuff=N32 libmagic=N32;; 9441 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9442 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9443 *) libsuff= shlibsuff= libmagic=never-match;; 9444 esac 9445 ;; 9446 esac 9447 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9448 shlibpath_overrides_runpath=no 9449 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9450 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9451 hardcode_into_libs=yes 9452 ;; 9453 9454# No shared lib support for Linux oldld, aout, or coff. 9455linux*oldld* | linux*aout* | linux*coff*) 9456 dynamic_linker=no 9457 ;; 9458 9459# This must be Linux ELF. 9460linux* | k*bsd*-gnu) 9461 version_type=linux 9462 need_lib_prefix=no 9463 need_version=no 9464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9465 soname_spec='${libname}${release}${shared_ext}$major' 9466 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9467 shlibpath_var=LD_LIBRARY_PATH 9468 shlibpath_overrides_runpath=no 9469 # This implies no fast_install, which is unacceptable. 9470 # Some rework will be needed to allow for fast_install 9471 # before this can be enabled. 9472 hardcode_into_libs=yes 9473 9474 # Append ld.so.conf contents to the search path 9475 if test -f /etc/ld.so.conf; then 9476 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' ' '` 9477 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9478 fi 9479 9480 # We used to test for /lib/ld.so.1 and disable shared libraries on 9481 # powerpc, because MkLinux only supported shared libraries with the 9482 # GNU dynamic linker. Since this was broken with cross compilers, 9483 # most powerpc-linux boxes support dynamic linking these days and 9484 # people can always --disable-shared, the test was removed, and we 9485 # assume the GNU/Linux dynamic linker is in use. 9486 dynamic_linker='GNU/Linux ld.so' 9487 ;; 9488 9489netbsd*) 9490 version_type=sunos 9491 need_lib_prefix=no 9492 need_version=no 9493 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9495 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9496 dynamic_linker='NetBSD (a.out) ld.so' 9497 else 9498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9499 soname_spec='${libname}${release}${shared_ext}$major' 9500 dynamic_linker='NetBSD ld.elf_so' 9501 fi 9502 shlibpath_var=LD_LIBRARY_PATH 9503 shlibpath_overrides_runpath=yes 9504 hardcode_into_libs=yes 9505 ;; 9506 9507newsos6) 9508 version_type=linux 9509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9510 shlibpath_var=LD_LIBRARY_PATH 9511 shlibpath_overrides_runpath=yes 9512 ;; 9513 9514nto-qnx*) 9515 version_type=linux 9516 need_lib_prefix=no 9517 need_version=no 9518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9519 soname_spec='${libname}${release}${shared_ext}$major' 9520 shlibpath_var=LD_LIBRARY_PATH 9521 shlibpath_overrides_runpath=yes 9522 ;; 9523 9524openbsd*) 9525 version_type=sunos 9526 sys_lib_dlsearch_path_spec="/usr/lib" 9527 need_lib_prefix=no 9528 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9529 case $host_os in 9530 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9531 *) need_version=no ;; 9532 esac 9533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9534 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9535 shlibpath_var=LD_LIBRARY_PATH 9536 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9537 case $host_os in 9538 openbsd2.[89] | openbsd2.[89].*) 9539 shlibpath_overrides_runpath=no 9540 ;; 9541 *) 9542 shlibpath_overrides_runpath=yes 9543 ;; 9544 esac 9545 else 9546 shlibpath_overrides_runpath=yes 9547 fi 9548 ;; 9549 9550os2*) 9551 libname_spec='$name' 9552 shrext_cmds=".dll" 9553 need_lib_prefix=no 9554 library_names_spec='$libname${shared_ext} $libname.a' 9555 dynamic_linker='OS/2 ld.exe' 9556 shlibpath_var=LIBPATH 9557 ;; 9558 9559osf3* | osf4* | osf5*) 9560 version_type=osf 9561 need_lib_prefix=no 9562 need_version=no 9563 soname_spec='${libname}${release}${shared_ext}$major' 9564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9565 shlibpath_var=LD_LIBRARY_PATH 9566 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9567 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9568 ;; 9569 9570rdos*) 9571 dynamic_linker=no 9572 ;; 9573 9574solaris*) 9575 version_type=linux 9576 need_lib_prefix=no 9577 need_version=no 9578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9579 soname_spec='${libname}${release}${shared_ext}$major' 9580 shlibpath_var=LD_LIBRARY_PATH 9581 shlibpath_overrides_runpath=yes 9582 hardcode_into_libs=yes 9583 # ldd complains unless libraries are executable 9584 postinstall_cmds='chmod +x $lib' 9585 ;; 9586 9587sunos4*) 9588 version_type=sunos 9589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9590 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9591 shlibpath_var=LD_LIBRARY_PATH 9592 shlibpath_overrides_runpath=yes 9593 if test "$with_gnu_ld" = yes; then 9594 need_lib_prefix=no 9595 fi 9596 need_version=yes 9597 ;; 9598 9599sysv4 | sysv4.3*) 9600 version_type=linux 9601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9602 soname_spec='${libname}${release}${shared_ext}$major' 9603 shlibpath_var=LD_LIBRARY_PATH 9604 case $host_vendor in 9605 sni) 9606 shlibpath_overrides_runpath=no 9607 need_lib_prefix=no 9608 export_dynamic_flag_spec='${wl}-Blargedynsym' 9609 runpath_var=LD_RUN_PATH 9610 ;; 9611 siemens) 9612 need_lib_prefix=no 9613 ;; 9614 motorola) 9615 need_lib_prefix=no 9616 need_version=no 9617 shlibpath_overrides_runpath=no 9618 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9619 ;; 9620 esac 9621 ;; 9622 9623sysv4*MP*) 9624 if test -d /usr/nec ;then 9625 version_type=linux 9626 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9627 soname_spec='$libname${shared_ext}.$major' 9628 shlibpath_var=LD_LIBRARY_PATH 9629 fi 9630 ;; 9631 9632sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9633 version_type=freebsd-elf 9634 need_lib_prefix=no 9635 need_version=no 9636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9637 soname_spec='${libname}${release}${shared_ext}$major' 9638 shlibpath_var=LD_LIBRARY_PATH 9639 hardcode_into_libs=yes 9640 if test "$with_gnu_ld" = yes; then 9641 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9642 shlibpath_overrides_runpath=no 9643 else 9644 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9645 shlibpath_overrides_runpath=yes 9646 case $host_os in 9647 sco3.2v5*) 9648 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9649 ;; 9650 esac 9651 fi 9652 sys_lib_dlsearch_path_spec='/usr/lib' 9653 ;; 9654 9655uts4*) 9656 version_type=linux 9657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9658 soname_spec='${libname}${release}${shared_ext}$major' 9659 shlibpath_var=LD_LIBRARY_PATH 9660 ;; 9661 9662*) 9663 dynamic_linker=no 9664 ;; 9665esac 9666{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9667$as_echo "$dynamic_linker" >&6; } 9668test "$dynamic_linker" = no && can_build_shared=no 9669 9670if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 9671 $as_echo_n "(cached) " >&6 9672else 9673 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 9674fi 9675 9676sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 9677if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 9678 $as_echo_n "(cached) " >&6 9679else 9680 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 9681fi 9682 9683sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 9684 9685variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9686if test "$GCC" = yes; then 9687 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9688fi 9689 9690{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9691$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 9692hardcode_action= 9693if test -n "$hardcode_libdir_flag_spec" || \ 9694 test -n "$runpath_var" || \ 9695 test "X$hardcode_automatic" = "Xyes" ; then 9696 9697 # We can hardcode non-existant directories. 9698 if test "$hardcode_direct" != no && 9699 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9700 # have to relink, otherwise we might link with an installed library 9701 # when we should be linking with a yet-to-be-installed one 9702 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9703 test "$hardcode_minus_L" != no; then 9704 # Linking always hardcodes the temporary library directory. 9705 hardcode_action=relink 9706 else 9707 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9708 hardcode_action=immediate 9709 fi 9710else 9711 # We cannot hardcode anything, or else we can only hardcode existing 9712 # directories. 9713 hardcode_action=unsupported 9714fi 9715{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 9716$as_echo "$hardcode_action" >&6; } 9717 9718if test "$hardcode_action" = relink; then 9719 # Fast installation is not supported 9720 enable_fast_install=no 9721elif test "$shlibpath_overrides_runpath" = yes || 9722 test "$enable_shared" = no; then 9723 # Fast installation is not necessary 9724 enable_fast_install=needless 9725fi 9726 9727striplib= 9728old_striplib= 9729{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9730$as_echo_n "checking whether stripping libraries is possible... " >&6; } 9731if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9732 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9733 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9734 { $as_echo "$as_me:$LINENO: result: yes" >&5 9735$as_echo "yes" >&6; } 9736else 9737# FIXME - insert some real tests, host_os isn't really good enough 9738 case $host_os in 9739 darwin*) 9740 if test -n "$STRIP" ; then 9741 striplib="$STRIP -x" 9742 old_striplib="$STRIP -S" 9743 { $as_echo "$as_me:$LINENO: result: yes" >&5 9744$as_echo "yes" >&6; } 9745 else 9746 { $as_echo "$as_me:$LINENO: result: no" >&5 9747$as_echo "no" >&6; } 9748fi 9749 ;; 9750 *) 9751 { $as_echo "$as_me:$LINENO: result: no" >&5 9752$as_echo "no" >&6; } 9753 ;; 9754 esac 9755fi 9756 9757if test "x$enable_dlopen" != xyes; then 9758 enable_dlopen=unknown 9759 enable_dlopen_self=unknown 9760 enable_dlopen_self_static=unknown 9761else 9762 lt_cv_dlopen=no 9763 lt_cv_dlopen_libs= 9764 9765 case $host_os in 9766 beos*) 9767 lt_cv_dlopen="load_add_on" 9768 lt_cv_dlopen_libs= 9769 lt_cv_dlopen_self=yes 9770 ;; 9771 9772 mingw* | pw32*) 9773 lt_cv_dlopen="LoadLibrary" 9774 lt_cv_dlopen_libs= 9775 ;; 9776 9777 cygwin*) 9778 lt_cv_dlopen="dlopen" 9779 lt_cv_dlopen_libs= 9780 ;; 9781 9782 darwin*) 9783 # if libdl is installed we need to link against it 9784 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9785$as_echo_n "checking for dlopen in -ldl... " >&6; } 9786if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9787 $as_echo_n "(cached) " >&6 9788else 9789 ac_check_lib_save_LIBS=$LIBS 9790LIBS="-ldl $LIBS" 9791cat >conftest.$ac_ext <<_ACEOF 9792/* confdefs.h. */ 9793_ACEOF 9794cat confdefs.h >>conftest.$ac_ext 9795cat >>conftest.$ac_ext <<_ACEOF 9796/* end confdefs.h. */ 9797 9798/* Override any GCC internal prototype to avoid an error. 9799 Use char because int might match the return type of a GCC 9800 builtin and then its argument prototype would still apply. */ 9801#ifdef __cplusplus 9802extern "C" 9803#endif 9804char dlopen (); 9805int 9806main () 9807{ 9808return dlopen (); 9809 ; 9810 return 0; 9811} 9812_ACEOF 9813rm -f conftest.$ac_objext conftest$ac_exeext 9814if { (ac_try="$ac_link" 9815case "(($ac_try" in 9816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9817 *) ac_try_echo=$ac_try;; 9818esac 9819eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9820$as_echo "$ac_try_echo") >&5 9821 (eval "$ac_link") 2>conftest.er1 9822 ac_status=$? 9823 grep -v '^ *+' conftest.er1 >conftest.err 9824 rm -f conftest.er1 9825 cat conftest.err >&5 9826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9827 (exit $ac_status); } && { 9828 test -z "$ac_c_werror_flag" || 9829 test ! -s conftest.err 9830 } && test -s conftest$ac_exeext && { 9831 test "$cross_compiling" = yes || 9832 $as_test_x conftest$ac_exeext 9833 }; then 9834 ac_cv_lib_dl_dlopen=yes 9835else 9836 $as_echo "$as_me: failed program was:" >&5 9837sed 's/^/| /' conftest.$ac_ext >&5 9838 9839 ac_cv_lib_dl_dlopen=no 9840fi 9841 9842rm -rf conftest.dSYM 9843rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9844 conftest$ac_exeext conftest.$ac_ext 9845LIBS=$ac_check_lib_save_LIBS 9846fi 9847{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9848$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 9849if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 9850 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9851else 9852 9853 lt_cv_dlopen="dyld" 9854 lt_cv_dlopen_libs= 9855 lt_cv_dlopen_self=yes 9856 9857fi 9858 9859 ;; 9860 9861 *) 9862 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 9863$as_echo_n "checking for shl_load... " >&6; } 9864if test "${ac_cv_func_shl_load+set}" = set; then 9865 $as_echo_n "(cached) " >&6 9866else 9867 cat >conftest.$ac_ext <<_ACEOF 9868/* confdefs.h. */ 9869_ACEOF 9870cat confdefs.h >>conftest.$ac_ext 9871cat >>conftest.$ac_ext <<_ACEOF 9872/* end confdefs.h. */ 9873/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9874 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9875#define shl_load innocuous_shl_load 9876 9877/* System header to define __stub macros and hopefully few prototypes, 9878 which can conflict with char shl_load (); below. 9879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9880 <limits.h> exists even on freestanding compilers. */ 9881 9882#ifdef __STDC__ 9883# include <limits.h> 9884#else 9885# include <assert.h> 9886#endif 9887 9888#undef shl_load 9889 9890/* Override any GCC internal prototype to avoid an error. 9891 Use char because int might match the return type of a GCC 9892 builtin and then its argument prototype would still apply. */ 9893#ifdef __cplusplus 9894extern "C" 9895#endif 9896char shl_load (); 9897/* The GNU C library defines this for functions which it implements 9898 to always fail with ENOSYS. Some functions are actually named 9899 something starting with __ and the normal name is an alias. */ 9900#if defined __stub_shl_load || defined __stub___shl_load 9901choke me 9902#endif 9903 9904int 9905main () 9906{ 9907return shl_load (); 9908 ; 9909 return 0; 9910} 9911_ACEOF 9912rm -f conftest.$ac_objext conftest$ac_exeext 9913if { (ac_try="$ac_link" 9914case "(($ac_try" in 9915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9916 *) ac_try_echo=$ac_try;; 9917esac 9918eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9919$as_echo "$ac_try_echo") >&5 9920 (eval "$ac_link") 2>conftest.er1 9921 ac_status=$? 9922 grep -v '^ *+' conftest.er1 >conftest.err 9923 rm -f conftest.er1 9924 cat conftest.err >&5 9925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9926 (exit $ac_status); } && { 9927 test -z "$ac_c_werror_flag" || 9928 test ! -s conftest.err 9929 } && test -s conftest$ac_exeext && { 9930 test "$cross_compiling" = yes || 9931 $as_test_x conftest$ac_exeext 9932 }; then 9933 ac_cv_func_shl_load=yes 9934else 9935 $as_echo "$as_me: failed program was:" >&5 9936sed 's/^/| /' conftest.$ac_ext >&5 9937 9938 ac_cv_func_shl_load=no 9939fi 9940 9941rm -rf conftest.dSYM 9942rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9943 conftest$ac_exeext conftest.$ac_ext 9944fi 9945{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9946$as_echo "$ac_cv_func_shl_load" >&6; } 9947if test "x$ac_cv_func_shl_load" = x""yes; then 9948 lt_cv_dlopen="shl_load" 9949else 9950 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9951$as_echo_n "checking for shl_load in -ldld... " >&6; } 9952if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9953 $as_echo_n "(cached) " >&6 9954else 9955 ac_check_lib_save_LIBS=$LIBS 9956LIBS="-ldld $LIBS" 9957cat >conftest.$ac_ext <<_ACEOF 9958/* confdefs.h. */ 9959_ACEOF 9960cat confdefs.h >>conftest.$ac_ext 9961cat >>conftest.$ac_ext <<_ACEOF 9962/* end confdefs.h. */ 9963 9964/* Override any GCC internal prototype to avoid an error. 9965 Use char because int might match the return type of a GCC 9966 builtin and then its argument prototype would still apply. */ 9967#ifdef __cplusplus 9968extern "C" 9969#endif 9970char shl_load (); 9971int 9972main () 9973{ 9974return shl_load (); 9975 ; 9976 return 0; 9977} 9978_ACEOF 9979rm -f conftest.$ac_objext conftest$ac_exeext 9980if { (ac_try="$ac_link" 9981case "(($ac_try" in 9982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9983 *) ac_try_echo=$ac_try;; 9984esac 9985eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9986$as_echo "$ac_try_echo") >&5 9987 (eval "$ac_link") 2>conftest.er1 9988 ac_status=$? 9989 grep -v '^ *+' conftest.er1 >conftest.err 9990 rm -f conftest.er1 9991 cat conftest.err >&5 9992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9993 (exit $ac_status); } && { 9994 test -z "$ac_c_werror_flag" || 9995 test ! -s conftest.err 9996 } && test -s conftest$ac_exeext && { 9997 test "$cross_compiling" = yes || 9998 $as_test_x conftest$ac_exeext 9999 }; then 10000 ac_cv_lib_dld_shl_load=yes 10001else 10002 $as_echo "$as_me: failed program was:" >&5 10003sed 's/^/| /' conftest.$ac_ext >&5 10004 10005 ac_cv_lib_dld_shl_load=no 10006fi 10007 10008rm -rf conftest.dSYM 10009rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10010 conftest$ac_exeext conftest.$ac_ext 10011LIBS=$ac_check_lib_save_LIBS 10012fi 10013{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10014$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10015if test "x$ac_cv_lib_dld_shl_load" = x""yes; then 10016 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10017else 10018 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 10019$as_echo_n "checking for dlopen... " >&6; } 10020if test "${ac_cv_func_dlopen+set}" = set; then 10021 $as_echo_n "(cached) " >&6 10022else 10023 cat >conftest.$ac_ext <<_ACEOF 10024/* confdefs.h. */ 10025_ACEOF 10026cat confdefs.h >>conftest.$ac_ext 10027cat >>conftest.$ac_ext <<_ACEOF 10028/* end confdefs.h. */ 10029/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10030 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10031#define dlopen innocuous_dlopen 10032 10033/* System header to define __stub macros and hopefully few prototypes, 10034 which can conflict with char dlopen (); below. 10035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10036 <limits.h> exists even on freestanding compilers. */ 10037 10038#ifdef __STDC__ 10039# include <limits.h> 10040#else 10041# include <assert.h> 10042#endif 10043 10044#undef dlopen 10045 10046/* Override any GCC internal prototype to avoid an error. 10047 Use char because int might match the return type of a GCC 10048 builtin and then its argument prototype would still apply. */ 10049#ifdef __cplusplus 10050extern "C" 10051#endif 10052char dlopen (); 10053/* The GNU C library defines this for functions which it implements 10054 to always fail with ENOSYS. Some functions are actually named 10055 something starting with __ and the normal name is an alias. */ 10056#if defined __stub_dlopen || defined __stub___dlopen 10057choke me 10058#endif 10059 10060int 10061main () 10062{ 10063return dlopen (); 10064 ; 10065 return 0; 10066} 10067_ACEOF 10068rm -f conftest.$ac_objext conftest$ac_exeext 10069if { (ac_try="$ac_link" 10070case "(($ac_try" in 10071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10072 *) ac_try_echo=$ac_try;; 10073esac 10074eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10075$as_echo "$ac_try_echo") >&5 10076 (eval "$ac_link") 2>conftest.er1 10077 ac_status=$? 10078 grep -v '^ *+' conftest.er1 >conftest.err 10079 rm -f conftest.er1 10080 cat conftest.err >&5 10081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10082 (exit $ac_status); } && { 10083 test -z "$ac_c_werror_flag" || 10084 test ! -s conftest.err 10085 } && test -s conftest$ac_exeext && { 10086 test "$cross_compiling" = yes || 10087 $as_test_x conftest$ac_exeext 10088 }; then 10089 ac_cv_func_dlopen=yes 10090else 10091 $as_echo "$as_me: failed program was:" >&5 10092sed 's/^/| /' conftest.$ac_ext >&5 10093 10094 ac_cv_func_dlopen=no 10095fi 10096 10097rm -rf conftest.dSYM 10098rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10099 conftest$ac_exeext conftest.$ac_ext 10100fi 10101{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10102$as_echo "$ac_cv_func_dlopen" >&6; } 10103if test "x$ac_cv_func_dlopen" = x""yes; then 10104 lt_cv_dlopen="dlopen" 10105else 10106 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10107$as_echo_n "checking for dlopen in -ldl... " >&6; } 10108if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10109 $as_echo_n "(cached) " >&6 10110else 10111 ac_check_lib_save_LIBS=$LIBS 10112LIBS="-ldl $LIBS" 10113cat >conftest.$ac_ext <<_ACEOF 10114/* confdefs.h. */ 10115_ACEOF 10116cat confdefs.h >>conftest.$ac_ext 10117cat >>conftest.$ac_ext <<_ACEOF 10118/* end confdefs.h. */ 10119 10120/* Override any GCC internal prototype to avoid an error. 10121 Use char because int might match the return type of a GCC 10122 builtin and then its argument prototype would still apply. */ 10123#ifdef __cplusplus 10124extern "C" 10125#endif 10126char dlopen (); 10127int 10128main () 10129{ 10130return dlopen (); 10131 ; 10132 return 0; 10133} 10134_ACEOF 10135rm -f conftest.$ac_objext conftest$ac_exeext 10136if { (ac_try="$ac_link" 10137case "(($ac_try" in 10138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10139 *) ac_try_echo=$ac_try;; 10140esac 10141eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10142$as_echo "$ac_try_echo") >&5 10143 (eval "$ac_link") 2>conftest.er1 10144 ac_status=$? 10145 grep -v '^ *+' conftest.er1 >conftest.err 10146 rm -f conftest.er1 10147 cat conftest.err >&5 10148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10149 (exit $ac_status); } && { 10150 test -z "$ac_c_werror_flag" || 10151 test ! -s conftest.err 10152 } && test -s conftest$ac_exeext && { 10153 test "$cross_compiling" = yes || 10154 $as_test_x conftest$ac_exeext 10155 }; then 10156 ac_cv_lib_dl_dlopen=yes 10157else 10158 $as_echo "$as_me: failed program was:" >&5 10159sed 's/^/| /' conftest.$ac_ext >&5 10160 10161 ac_cv_lib_dl_dlopen=no 10162fi 10163 10164rm -rf conftest.dSYM 10165rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10166 conftest$ac_exeext conftest.$ac_ext 10167LIBS=$ac_check_lib_save_LIBS 10168fi 10169{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10170$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10171if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 10172 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10173else 10174 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10175$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10176if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10177 $as_echo_n "(cached) " >&6 10178else 10179 ac_check_lib_save_LIBS=$LIBS 10180LIBS="-lsvld $LIBS" 10181cat >conftest.$ac_ext <<_ACEOF 10182/* confdefs.h. */ 10183_ACEOF 10184cat confdefs.h >>conftest.$ac_ext 10185cat >>conftest.$ac_ext <<_ACEOF 10186/* end confdefs.h. */ 10187 10188/* Override any GCC internal prototype to avoid an error. 10189 Use char because int might match the return type of a GCC 10190 builtin and then its argument prototype would still apply. */ 10191#ifdef __cplusplus 10192extern "C" 10193#endif 10194char dlopen (); 10195int 10196main () 10197{ 10198return dlopen (); 10199 ; 10200 return 0; 10201} 10202_ACEOF 10203rm -f conftest.$ac_objext conftest$ac_exeext 10204if { (ac_try="$ac_link" 10205case "(($ac_try" in 10206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10207 *) ac_try_echo=$ac_try;; 10208esac 10209eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10210$as_echo "$ac_try_echo") >&5 10211 (eval "$ac_link") 2>conftest.er1 10212 ac_status=$? 10213 grep -v '^ *+' conftest.er1 >conftest.err 10214 rm -f conftest.er1 10215 cat conftest.err >&5 10216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10217 (exit $ac_status); } && { 10218 test -z "$ac_c_werror_flag" || 10219 test ! -s conftest.err 10220 } && test -s conftest$ac_exeext && { 10221 test "$cross_compiling" = yes || 10222 $as_test_x conftest$ac_exeext 10223 }; then 10224 ac_cv_lib_svld_dlopen=yes 10225else 10226 $as_echo "$as_me: failed program was:" >&5 10227sed 's/^/| /' conftest.$ac_ext >&5 10228 10229 ac_cv_lib_svld_dlopen=no 10230fi 10231 10232rm -rf conftest.dSYM 10233rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10234 conftest$ac_exeext conftest.$ac_ext 10235LIBS=$ac_check_lib_save_LIBS 10236fi 10237{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10238$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10239if test "x$ac_cv_lib_svld_dlopen" = x""yes; then 10240 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10241else 10242 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10243$as_echo_n "checking for dld_link in -ldld... " >&6; } 10244if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10245 $as_echo_n "(cached) " >&6 10246else 10247 ac_check_lib_save_LIBS=$LIBS 10248LIBS="-ldld $LIBS" 10249cat >conftest.$ac_ext <<_ACEOF 10250/* confdefs.h. */ 10251_ACEOF 10252cat confdefs.h >>conftest.$ac_ext 10253cat >>conftest.$ac_ext <<_ACEOF 10254/* end confdefs.h. */ 10255 10256/* Override any GCC internal prototype to avoid an error. 10257 Use char because int might match the return type of a GCC 10258 builtin and then its argument prototype would still apply. */ 10259#ifdef __cplusplus 10260extern "C" 10261#endif 10262char dld_link (); 10263int 10264main () 10265{ 10266return dld_link (); 10267 ; 10268 return 0; 10269} 10270_ACEOF 10271rm -f conftest.$ac_objext conftest$ac_exeext 10272if { (ac_try="$ac_link" 10273case "(($ac_try" in 10274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10275 *) ac_try_echo=$ac_try;; 10276esac 10277eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10278$as_echo "$ac_try_echo") >&5 10279 (eval "$ac_link") 2>conftest.er1 10280 ac_status=$? 10281 grep -v '^ *+' conftest.er1 >conftest.err 10282 rm -f conftest.er1 10283 cat conftest.err >&5 10284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10285 (exit $ac_status); } && { 10286 test -z "$ac_c_werror_flag" || 10287 test ! -s conftest.err 10288 } && test -s conftest$ac_exeext && { 10289 test "$cross_compiling" = yes || 10290 $as_test_x conftest$ac_exeext 10291 }; then 10292 ac_cv_lib_dld_dld_link=yes 10293else 10294 $as_echo "$as_me: failed program was:" >&5 10295sed 's/^/| /' conftest.$ac_ext >&5 10296 10297 ac_cv_lib_dld_dld_link=no 10298fi 10299 10300rm -rf conftest.dSYM 10301rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10302 conftest$ac_exeext conftest.$ac_ext 10303LIBS=$ac_check_lib_save_LIBS 10304fi 10305{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10306$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10307if test "x$ac_cv_lib_dld_dld_link" = x""yes; then 10308 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10309fi 10310 10311 10312fi 10313 10314 10315fi 10316 10317 10318fi 10319 10320 10321fi 10322 10323 10324fi 10325 10326 ;; 10327 esac 10328 10329 if test "x$lt_cv_dlopen" != xno; then 10330 enable_dlopen=yes 10331 else 10332 enable_dlopen=no 10333 fi 10334 10335 case $lt_cv_dlopen in 10336 dlopen) 10337 save_CPPFLAGS="$CPPFLAGS" 10338 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10339 10340 save_LDFLAGS="$LDFLAGS" 10341 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10342 10343 save_LIBS="$LIBS" 10344 LIBS="$lt_cv_dlopen_libs $LIBS" 10345 10346 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10347$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10348if test "${lt_cv_dlopen_self+set}" = set; then 10349 $as_echo_n "(cached) " >&6 10350else 10351 if test "$cross_compiling" = yes; then : 10352 lt_cv_dlopen_self=cross 10353else 10354 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10355 lt_status=$lt_dlunknown 10356 cat > conftest.$ac_ext <<EOF 10357#line 10357 "configure" 10358#include "confdefs.h" 10359 10360#if HAVE_DLFCN_H 10361#include <dlfcn.h> 10362#endif 10363 10364#include <stdio.h> 10365 10366#ifdef RTLD_GLOBAL 10367# define LT_DLGLOBAL RTLD_GLOBAL 10368#else 10369# ifdef DL_GLOBAL 10370# define LT_DLGLOBAL DL_GLOBAL 10371# else 10372# define LT_DLGLOBAL 0 10373# endif 10374#endif 10375 10376/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10377 find out it does not work in some platform. */ 10378#ifndef LT_DLLAZY_OR_NOW 10379# ifdef RTLD_LAZY 10380# define LT_DLLAZY_OR_NOW RTLD_LAZY 10381# else 10382# ifdef DL_LAZY 10383# define LT_DLLAZY_OR_NOW DL_LAZY 10384# else 10385# ifdef RTLD_NOW 10386# define LT_DLLAZY_OR_NOW RTLD_NOW 10387# else 10388# ifdef DL_NOW 10389# define LT_DLLAZY_OR_NOW DL_NOW 10390# else 10391# define LT_DLLAZY_OR_NOW 0 10392# endif 10393# endif 10394# endif 10395# endif 10396#endif 10397 10398#ifdef __cplusplus 10399extern "C" void exit (int); 10400#endif 10401 10402void fnord() { int i=42;} 10403int main () 10404{ 10405 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10406 int status = $lt_dlunknown; 10407 10408 if (self) 10409 { 10410 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10411 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10412 /* dlclose (self); */ 10413 } 10414 else 10415 puts (dlerror ()); 10416 10417 exit (status); 10418} 10419EOF 10420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10421 (eval $ac_link) 2>&5 10422 ac_status=$? 10423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10424 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10425 (./conftest; exit; ) >&5 2>/dev/null 10426 lt_status=$? 10427 case x$lt_status in 10428 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10429 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10430 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10431 esac 10432 else : 10433 # compilation failed 10434 lt_cv_dlopen_self=no 10435 fi 10436fi 10437rm -fr conftest* 10438 10439 10440fi 10441{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10442$as_echo "$lt_cv_dlopen_self" >&6; } 10443 10444 if test "x$lt_cv_dlopen_self" = xyes; then 10445 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10446 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10447$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10448if test "${lt_cv_dlopen_self_static+set}" = set; then 10449 $as_echo_n "(cached) " >&6 10450else 10451 if test "$cross_compiling" = yes; then : 10452 lt_cv_dlopen_self_static=cross 10453else 10454 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10455 lt_status=$lt_dlunknown 10456 cat > conftest.$ac_ext <<EOF 10457#line 10457 "configure" 10458#include "confdefs.h" 10459 10460#if HAVE_DLFCN_H 10461#include <dlfcn.h> 10462#endif 10463 10464#include <stdio.h> 10465 10466#ifdef RTLD_GLOBAL 10467# define LT_DLGLOBAL RTLD_GLOBAL 10468#else 10469# ifdef DL_GLOBAL 10470# define LT_DLGLOBAL DL_GLOBAL 10471# else 10472# define LT_DLGLOBAL 0 10473# endif 10474#endif 10475 10476/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10477 find out it does not work in some platform. */ 10478#ifndef LT_DLLAZY_OR_NOW 10479# ifdef RTLD_LAZY 10480# define LT_DLLAZY_OR_NOW RTLD_LAZY 10481# else 10482# ifdef DL_LAZY 10483# define LT_DLLAZY_OR_NOW DL_LAZY 10484# else 10485# ifdef RTLD_NOW 10486# define LT_DLLAZY_OR_NOW RTLD_NOW 10487# else 10488# ifdef DL_NOW 10489# define LT_DLLAZY_OR_NOW DL_NOW 10490# else 10491# define LT_DLLAZY_OR_NOW 0 10492# endif 10493# endif 10494# endif 10495# endif 10496#endif 10497 10498#ifdef __cplusplus 10499extern "C" void exit (int); 10500#endif 10501 10502void fnord() { int i=42;} 10503int main () 10504{ 10505 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10506 int status = $lt_dlunknown; 10507 10508 if (self) 10509 { 10510 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10511 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10512 /* dlclose (self); */ 10513 } 10514 else 10515 puts (dlerror ()); 10516 10517 exit (status); 10518} 10519EOF 10520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10521 (eval $ac_link) 2>&5 10522 ac_status=$? 10523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10524 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10525 (./conftest; exit; ) >&5 2>/dev/null 10526 lt_status=$? 10527 case x$lt_status in 10528 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10529 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10530 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10531 esac 10532 else : 10533 # compilation failed 10534 lt_cv_dlopen_self_static=no 10535 fi 10536fi 10537rm -fr conftest* 10538 10539 10540fi 10541{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10542$as_echo "$lt_cv_dlopen_self_static" >&6; } 10543 fi 10544 10545 CPPFLAGS="$save_CPPFLAGS" 10546 LDFLAGS="$save_LDFLAGS" 10547 LIBS="$save_LIBS" 10548 ;; 10549 esac 10550 10551 case $lt_cv_dlopen_self in 10552 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10553 *) enable_dlopen_self=unknown ;; 10554 esac 10555 10556 case $lt_cv_dlopen_self_static in 10557 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10558 *) enable_dlopen_self_static=unknown ;; 10559 esac 10560fi 10561 10562 10563# Report which library types will actually be built 10564{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10565$as_echo_n "checking if libtool supports shared libraries... " >&6; } 10566{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 10567$as_echo "$can_build_shared" >&6; } 10568 10569{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10570$as_echo_n "checking whether to build shared libraries... " >&6; } 10571test "$can_build_shared" = "no" && enable_shared=no 10572 10573# On AIX, shared libraries and static libraries use the same namespace, and 10574# are all built from PIC. 10575case $host_os in 10576aix3*) 10577 test "$enable_shared" = yes && enable_static=no 10578 if test -n "$RANLIB"; then 10579 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10580 postinstall_cmds='$RANLIB $lib' 10581 fi 10582 ;; 10583 10584aix[4-9]*) 10585 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10586 test "$enable_shared" = yes && enable_static=no 10587 fi 10588 ;; 10589esac 10590{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 10591$as_echo "$enable_shared" >&6; } 10592 10593{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10594$as_echo_n "checking whether to build static libraries... " >&6; } 10595# Make sure either enable_shared or enable_static is yes. 10596test "$enable_shared" = yes || enable_static=yes 10597{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5 10598$as_echo "$enable_static" >&6; } 10599 10600# The else clause should only fire when bootstrapping the 10601# libtool distribution, otherwise you forgot to ship ltmain.sh 10602# with your package, and you will get complaints that there are 10603# no rules to generate ltmain.sh. 10604if test -f "$ltmain"; then 10605 # See if we are running on zsh, and set the options which allow our commands through 10606 # without removal of \ escapes. 10607 if test -n "${ZSH_VERSION+set}" ; then 10608 setopt NO_GLOB_SUBST 10609 fi 10610 # Now quote all the things that may contain metacharacters while being 10611 # careful not to overquote the AC_SUBSTed values. We take copies of the 10612 # variables and quote the copies for generation of the libtool script. 10613 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10614 SED SHELL STRIP \ 10615 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10616 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10617 deplibs_check_method reload_flag reload_cmds need_locks \ 10618 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10619 lt_cv_sys_global_symbol_to_c_name_address \ 10620 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10621 old_postinstall_cmds old_postuninstall_cmds \ 10622 compiler \ 10623 CC \ 10624 LD \ 10625 lt_prog_compiler_wl \ 10626 lt_prog_compiler_pic \ 10627 lt_prog_compiler_static \ 10628 lt_prog_compiler_no_builtin_flag \ 10629 export_dynamic_flag_spec \ 10630 thread_safe_flag_spec \ 10631 whole_archive_flag_spec \ 10632 enable_shared_with_static_runtimes \ 10633 old_archive_cmds \ 10634 old_archive_from_new_cmds \ 10635 predep_objects \ 10636 postdep_objects \ 10637 predeps \ 10638 postdeps \ 10639 compiler_lib_search_path \ 10640 compiler_lib_search_dirs \ 10641 archive_cmds \ 10642 archive_expsym_cmds \ 10643 postinstall_cmds \ 10644 postuninstall_cmds \ 10645 old_archive_from_expsyms_cmds \ 10646 allow_undefined_flag \ 10647 no_undefined_flag \ 10648 export_symbols_cmds \ 10649 hardcode_libdir_flag_spec \ 10650 hardcode_libdir_flag_spec_ld \ 10651 hardcode_libdir_separator \ 10652 hardcode_automatic \ 10653 module_cmds \ 10654 module_expsym_cmds \ 10655 lt_cv_prog_compiler_c_o \ 10656 fix_srcfile_path \ 10657 exclude_expsyms \ 10658 include_expsyms; do 10659 10660 case $var in 10661 old_archive_cmds | \ 10662 old_archive_from_new_cmds | \ 10663 archive_cmds | \ 10664 archive_expsym_cmds | \ 10665 module_cmds | \ 10666 module_expsym_cmds | \ 10667 old_archive_from_expsyms_cmds | \ 10668 export_symbols_cmds | \ 10669 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10670 postinstall_cmds | postuninstall_cmds | \ 10671 old_postinstall_cmds | old_postuninstall_cmds | \ 10672 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10673 # Double-quote double-evaled strings. 10674 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10675 ;; 10676 *) 10677 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10678 ;; 10679 esac 10680 done 10681 10682 case $lt_echo in 10683 *'\$0 --fallback-echo"') 10684 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10685 ;; 10686 esac 10687 10688cfgfile="${ofile}T" 10689 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10690 $rm -f "$cfgfile" 10691 { $as_echo "$as_me:$LINENO: creating $ofile" >&5 10692$as_echo "$as_me: creating $ofile" >&6;} 10693 10694 cat <<__EOF__ >> "$cfgfile" 10695#! $SHELL 10696 10697# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10698# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10699# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10700# 10701# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 10702# Free Software Foundation, Inc. 10703# 10704# This file is part of GNU Libtool: 10705# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10706# 10707# This program is free software; you can redistribute it and/or modify 10708# it under the terms of the GNU General Public License as published by 10709# the Free Software Foundation; either version 2 of the License, or 10710# (at your option) any later version. 10711# 10712# This program is distributed in the hope that it will be useful, but 10713# WITHOUT ANY WARRANTY; without even the implied warranty of 10714# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10715# General Public License for more details. 10716# 10717# You should have received a copy of the GNU General Public License 10718# along with this program; if not, write to the Free Software 10719# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10720# 10721# As a special exception to the GNU General Public License, if you 10722# distribute this file as part of a program that contains a 10723# configuration script generated by Autoconf, you may include it under 10724# the same distribution terms that you use for the rest of that program. 10725 10726# A sed program that does not truncate output. 10727SED=$lt_SED 10728 10729# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10730Xsed="$SED -e 1s/^X//" 10731 10732# The HP-UX ksh and POSIX shell print the target directory to stdout 10733# if CDPATH is set. 10734(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10735 10736# The names of the tagged configurations supported by this script. 10737available_tags= 10738 10739# ### BEGIN LIBTOOL CONFIG 10740 10741# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10742 10743# Shell to use when invoking shell scripts. 10744SHELL=$lt_SHELL 10745 10746# Whether or not to build shared libraries. 10747build_libtool_libs=$enable_shared 10748 10749# Whether or not to build static libraries. 10750build_old_libs=$enable_static 10751 10752# Whether or not to add -lc for building shared libraries. 10753build_libtool_need_lc=$archive_cmds_need_lc 10754 10755# Whether or not to disallow shared libs when runtime libs are static 10756allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10757 10758# Whether or not to optimize for fast installation. 10759fast_install=$enable_fast_install 10760 10761# The host system. 10762host_alias=$host_alias 10763host=$host 10764host_os=$host_os 10765 10766# The build system. 10767build_alias=$build_alias 10768build=$build 10769build_os=$build_os 10770 10771# An echo program that does not interpret backslashes. 10772echo=$lt_echo 10773 10774# The archiver. 10775AR=$lt_AR 10776AR_FLAGS=$lt_AR_FLAGS 10777 10778# A C compiler. 10779LTCC=$lt_LTCC 10780 10781# LTCC compiler flags. 10782LTCFLAGS=$lt_LTCFLAGS 10783 10784# A language-specific compiler. 10785CC=$lt_compiler 10786 10787# Is the compiler the GNU C compiler? 10788with_gcc=$GCC 10789 10790# An ERE matcher. 10791EGREP=$lt_EGREP 10792 10793# The linker used to build libraries. 10794LD=$lt_LD 10795 10796# Whether we need hard or soft links. 10797LN_S=$lt_LN_S 10798 10799# A BSD-compatible nm program. 10800NM=$lt_NM 10801 10802# A symbol stripping program 10803STRIP=$lt_STRIP 10804 10805# Used to examine libraries when file_magic_cmd begins "file" 10806MAGIC_CMD=$MAGIC_CMD 10807 10808# Used on cygwin: DLL creation program. 10809DLLTOOL="$DLLTOOL" 10810 10811# Used on cygwin: object dumper. 10812OBJDUMP="$OBJDUMP" 10813 10814# Used on cygwin: assembler. 10815AS="$AS" 10816 10817# The name of the directory that contains temporary libtool files. 10818objdir=$objdir 10819 10820# How to create reloadable object files. 10821reload_flag=$lt_reload_flag 10822reload_cmds=$lt_reload_cmds 10823 10824# How to pass a linker flag through the compiler. 10825wl=$lt_lt_prog_compiler_wl 10826 10827# Object file suffix (normally "o"). 10828objext="$ac_objext" 10829 10830# Old archive suffix (normally "a"). 10831libext="$libext" 10832 10833# Shared library suffix (normally ".so"). 10834shrext_cmds='$shrext_cmds' 10835 10836# Executable file suffix (normally ""). 10837exeext="$exeext" 10838 10839# Additional compiler flags for building library objects. 10840pic_flag=$lt_lt_prog_compiler_pic 10841pic_mode=$pic_mode 10842 10843# What is the maximum length of a command? 10844max_cmd_len=$lt_cv_sys_max_cmd_len 10845 10846# Does compiler simultaneously support -c and -o options? 10847compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10848 10849# Must we lock files when doing compilation? 10850need_locks=$lt_need_locks 10851 10852# Do we need the lib prefix for modules? 10853need_lib_prefix=$need_lib_prefix 10854 10855# Do we need a version for libraries? 10856need_version=$need_version 10857 10858# Whether dlopen is supported. 10859dlopen_support=$enable_dlopen 10860 10861# Whether dlopen of programs is supported. 10862dlopen_self=$enable_dlopen_self 10863 10864# Whether dlopen of statically linked programs is supported. 10865dlopen_self_static=$enable_dlopen_self_static 10866 10867# Compiler flag to prevent dynamic linking. 10868link_static_flag=$lt_lt_prog_compiler_static 10869 10870# Compiler flag to turn off builtin functions. 10871no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10872 10873# Compiler flag to allow reflexive dlopens. 10874export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10875 10876# Compiler flag to generate shared objects directly from archives. 10877whole_archive_flag_spec=$lt_whole_archive_flag_spec 10878 10879# Compiler flag to generate thread-safe objects. 10880thread_safe_flag_spec=$lt_thread_safe_flag_spec 10881 10882# Library versioning type. 10883version_type=$version_type 10884 10885# Format of library name prefix. 10886libname_spec=$lt_libname_spec 10887 10888# List of archive names. First name is the real one, the rest are links. 10889# The last name is the one that the linker finds with -lNAME. 10890library_names_spec=$lt_library_names_spec 10891 10892# The coded name of the library, if different from the real name. 10893soname_spec=$lt_soname_spec 10894 10895# Commands used to build and install an old-style archive. 10896RANLIB=$lt_RANLIB 10897old_archive_cmds=$lt_old_archive_cmds 10898old_postinstall_cmds=$lt_old_postinstall_cmds 10899old_postuninstall_cmds=$lt_old_postuninstall_cmds 10900 10901# Create an old-style archive from a shared archive. 10902old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10903 10904# Create a temporary old-style archive to link instead of a shared archive. 10905old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10906 10907# Commands used to build and install a shared archive. 10908archive_cmds=$lt_archive_cmds 10909archive_expsym_cmds=$lt_archive_expsym_cmds 10910postinstall_cmds=$lt_postinstall_cmds 10911postuninstall_cmds=$lt_postuninstall_cmds 10912 10913# Commands used to build a loadable module (assumed same as above if empty) 10914module_cmds=$lt_module_cmds 10915module_expsym_cmds=$lt_module_expsym_cmds 10916 10917# Commands to strip libraries. 10918old_striplib=$lt_old_striplib 10919striplib=$lt_striplib 10920 10921# Dependencies to place before the objects being linked to create a 10922# shared library. 10923predep_objects=$lt_predep_objects 10924 10925# Dependencies to place after the objects being linked to create a 10926# shared library. 10927postdep_objects=$lt_postdep_objects 10928 10929# Dependencies to place before the objects being linked to create a 10930# shared library. 10931predeps=$lt_predeps 10932 10933# Dependencies to place after the objects being linked to create a 10934# shared library. 10935postdeps=$lt_postdeps 10936 10937# The directories searched by this compiler when creating a shared 10938# library 10939compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 10940 10941# The library search path used internally by the compiler when linking 10942# a shared library. 10943compiler_lib_search_path=$lt_compiler_lib_search_path 10944 10945# Method to check whether dependent libraries are shared objects. 10946deplibs_check_method=$lt_deplibs_check_method 10947 10948# Command to use when deplibs_check_method == file_magic. 10949file_magic_cmd=$lt_file_magic_cmd 10950 10951# Flag that allows shared libraries with undefined symbols to be built. 10952allow_undefined_flag=$lt_allow_undefined_flag 10953 10954# Flag that forces no undefined symbols. 10955no_undefined_flag=$lt_no_undefined_flag 10956 10957# Commands used to finish a libtool library installation in a directory. 10958finish_cmds=$lt_finish_cmds 10959 10960# Same as above, but a single script fragment to be evaled but not shown. 10961finish_eval=$lt_finish_eval 10962 10963# Take the output of nm and produce a listing of raw symbols and C names. 10964global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10965 10966# Transform the output of nm in a proper C declaration 10967global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10968 10969# Transform the output of nm in a C name address pair 10970global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10971 10972# This is the shared library runtime path variable. 10973runpath_var=$runpath_var 10974 10975# This is the shared library path variable. 10976shlibpath_var=$shlibpath_var 10977 10978# Is shlibpath searched before the hard-coded library search path? 10979shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10980 10981# How to hardcode a shared library path into an executable. 10982hardcode_action=$hardcode_action 10983 10984# Whether we should hardcode library paths into libraries. 10985hardcode_into_libs=$hardcode_into_libs 10986 10987# Flag to hardcode \$libdir into a binary during linking. 10988# This must work even if \$libdir does not exist. 10989hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10990 10991# If ld is used when linking, flag to hardcode \$libdir into 10992# a binary during linking. This must work even if \$libdir does 10993# not exist. 10994hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10995 10996# Whether we need a single -rpath flag with a separated argument. 10997hardcode_libdir_separator=$lt_hardcode_libdir_separator 10998 10999# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 11000# resulting binary. 11001hardcode_direct=$hardcode_direct 11002 11003# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 11004# resulting binary. 11005hardcode_minus_L=$hardcode_minus_L 11006 11007# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 11008# the resulting binary. 11009hardcode_shlibpath_var=$hardcode_shlibpath_var 11010 11011# Set to yes if building a shared library automatically hardcodes DIR into the library 11012# and all subsequent libraries and executables linked against it. 11013hardcode_automatic=$hardcode_automatic 11014 11015# Variables whose values should be saved in libtool wrapper scripts and 11016# restored at relink time. 11017variables_saved_for_relink="$variables_saved_for_relink" 11018 11019# Whether libtool must link a program against all its dependency libraries. 11020link_all_deplibs=$link_all_deplibs 11021 11022# Compile-time system search path for libraries 11023sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 11024 11025# Run-time system search path for libraries 11026sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 11027 11028# Fix the shell variable \$srcfile for the compiler. 11029fix_srcfile_path=$lt_fix_srcfile_path 11030 11031# Set to yes if exported symbols are required. 11032always_export_symbols=$always_export_symbols 11033 11034# The commands to list exported symbols. 11035export_symbols_cmds=$lt_export_symbols_cmds 11036 11037# The commands to extract the exported symbol list from a shared archive. 11038extract_expsyms_cmds=$lt_extract_expsyms_cmds 11039 11040# Symbols that should not be listed in the preloaded symbols. 11041exclude_expsyms=$lt_exclude_expsyms 11042 11043# Symbols that must always be exported. 11044include_expsyms=$lt_include_expsyms 11045 11046# ### END LIBTOOL CONFIG 11047 11048__EOF__ 11049 11050 11051 case $host_os in 11052 aix3*) 11053 cat <<\EOF >> "$cfgfile" 11054 11055# AIX sometimes has problems with the GCC collect2 program. For some 11056# reason, if we set the COLLECT_NAMES environment variable, the problems 11057# vanish in a puff of smoke. 11058if test "X${COLLECT_NAMES+set}" != Xset; then 11059 COLLECT_NAMES= 11060 export COLLECT_NAMES 11061fi 11062EOF 11063 ;; 11064 esac 11065 11066 # We use sed instead of cat because bash on DJGPP gets confused if 11067 # if finds mixed CR/LF and LF-only lines. Since sed operates in 11068 # text mode, it properly converts lines to CR/LF. This bash problem 11069 # is reportedly fixed, but why not run on old versions too? 11070 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 11071 11072 mv -f "$cfgfile" "$ofile" || \ 11073 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 11074 chmod +x "$ofile" 11075 11076else 11077 # If there is no Makefile yet, we rely on a make rule to execute 11078 # `config.status --recheck' to rerun these tests and create the 11079 # libtool script then. 11080 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 11081 if test -f "$ltmain_in"; then 11082 test -f Makefile && make "$ltmain" 11083 fi 11084fi 11085 11086 11087ac_ext=c 11088ac_cpp='$CPP $CPPFLAGS' 11089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11091ac_compiler_gnu=$ac_cv_c_compiler_gnu 11092 11093CC="$lt_save_CC" 11094 11095 11096# Check whether --with-tags was given. 11097if test "${with_tags+set}" = set; then 11098 withval=$with_tags; tagnames="$withval" 11099fi 11100 11101 11102if test -f "$ltmain" && test -n "$tagnames"; then 11103 if test ! -f "${ofile}"; then 11104 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 11105$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 11106 fi 11107 11108 if test -z "$LTCC"; then 11109 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 11110 if test -z "$LTCC"; then 11111 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 11112$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 11113 else 11114 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 11115$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 11116 fi 11117 fi 11118 if test -z "$LTCFLAGS"; then 11119 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 11120 fi 11121 11122 # Extract list of available tagged configurations in $ofile. 11123 # Note that this assumes the entire list is on one line. 11124 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 11125 11126 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11127 for tagname in $tagnames; do 11128 IFS="$lt_save_ifs" 11129 # Check whether tagname contains only valid characters 11130 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 11131 "") ;; 11132 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 11133$as_echo "$as_me: error: invalid tag name: $tagname" >&2;} 11134 { (exit 1); exit 1; }; } 11135 ;; 11136 esac 11137 11138 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 11139 then 11140 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 11141$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 11142 { (exit 1); exit 1; }; } 11143 fi 11144 11145 # Update the list of available tags. 11146 if test -n "$tagname"; then 11147 echo appending configuration tag \"$tagname\" to $ofile 11148 11149 case $tagname in 11150 CXX) 11151 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11152 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11153 (test "X$CXX" != "Xg++"))) ; then 11154 ac_ext=cpp 11155ac_cpp='$CXXCPP $CPPFLAGS' 11156ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11157ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11158ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11159 11160 11161 11162 11163archive_cmds_need_lc_CXX=no 11164allow_undefined_flag_CXX= 11165always_export_symbols_CXX=no 11166archive_expsym_cmds_CXX= 11167export_dynamic_flag_spec_CXX= 11168hardcode_direct_CXX=no 11169hardcode_libdir_flag_spec_CXX= 11170hardcode_libdir_flag_spec_ld_CXX= 11171hardcode_libdir_separator_CXX= 11172hardcode_minus_L_CXX=no 11173hardcode_shlibpath_var_CXX=unsupported 11174hardcode_automatic_CXX=no 11175module_cmds_CXX= 11176module_expsym_cmds_CXX= 11177link_all_deplibs_CXX=unknown 11178old_archive_cmds_CXX=$old_archive_cmds 11179no_undefined_flag_CXX= 11180whole_archive_flag_spec_CXX= 11181enable_shared_with_static_runtimes_CXX=no 11182 11183# Dependencies to place before and after the object being linked: 11184predep_objects_CXX= 11185postdep_objects_CXX= 11186predeps_CXX= 11187postdeps_CXX= 11188compiler_lib_search_path_CXX= 11189compiler_lib_search_dirs_CXX= 11190 11191# Source file extension for C++ test sources. 11192ac_ext=cpp 11193 11194# Object file extension for compiled C++ test sources. 11195objext=o 11196objext_CXX=$objext 11197 11198# Code to be used in simple compile tests 11199lt_simple_compile_test_code="int some_variable = 0;" 11200 11201# Code to be used in simple link tests 11202lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 11203 11204# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11205 11206# If no C compiler was specified, use CC. 11207LTCC=${LTCC-"$CC"} 11208 11209# If no C compiler flags were specified, use CFLAGS. 11210LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11211 11212# Allow CC to be a program name with arguments. 11213compiler=$CC 11214 11215 11216# save warnings/boilerplate of simple test code 11217ac_outfile=conftest.$ac_objext 11218echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11219eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11220_lt_compiler_boilerplate=`cat conftest.err` 11221$rm conftest* 11222 11223ac_outfile=conftest.$ac_objext 11224echo "$lt_simple_link_test_code" >conftest.$ac_ext 11225eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11226_lt_linker_boilerplate=`cat conftest.err` 11227$rm -r conftest* 11228 11229 11230# Allow CC to be a program name with arguments. 11231lt_save_CC=$CC 11232lt_save_LD=$LD 11233lt_save_GCC=$GCC 11234GCC=$GXX 11235lt_save_with_gnu_ld=$with_gnu_ld 11236lt_save_path_LD=$lt_cv_path_LD 11237if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11238 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11239else 11240 $as_unset lt_cv_prog_gnu_ld 11241fi 11242if test -n "${lt_cv_path_LDCXX+set}"; then 11243 lt_cv_path_LD=$lt_cv_path_LDCXX 11244else 11245 $as_unset lt_cv_path_LD 11246fi 11247test -z "${LDCXX+set}" || LD=$LDCXX 11248CC=${CXX-"c++"} 11249compiler=$CC 11250compiler_CXX=$CC 11251for cc_temp in $compiler""; do 11252 case $cc_temp in 11253 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11254 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11255 \-*) ;; 11256 *) break;; 11257 esac 11258done 11259cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11260 11261 11262# We don't want -fno-exception wen compiling C++ code, so set the 11263# no_builtin_flag separately 11264if test "$GXX" = yes; then 11265 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11266else 11267 lt_prog_compiler_no_builtin_flag_CXX= 11268fi 11269 11270if test "$GXX" = yes; then 11271 # Set up default GNU C++ configuration 11272 11273 11274# Check whether --with-gnu-ld was given. 11275if test "${with_gnu_ld+set}" = set; then 11276 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11277else 11278 with_gnu_ld=no 11279fi 11280 11281ac_prog=ld 11282if test "$GCC" = yes; then 11283 # Check if gcc -print-prog-name=ld gives a path. 11284 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 11285$as_echo_n "checking for ld used by $CC... " >&6; } 11286 case $host in 11287 *-*-mingw*) 11288 # gcc leaves a trailing carriage return which upsets mingw 11289 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11290 *) 11291 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11292 esac 11293 case $ac_prog in 11294 # Accept absolute paths. 11295 [\\/]* | ?:[\\/]*) 11296 re_direlt='/[^/][^/]*/\.\./' 11297 # Canonicalize the pathname of ld 11298 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 11299 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11300 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 11301 done 11302 test -z "$LD" && LD="$ac_prog" 11303 ;; 11304 "") 11305 # If it fails, then pretend we aren't using GCC. 11306 ac_prog=ld 11307 ;; 11308 *) 11309 # If it is relative, then search for the first ld in PATH. 11310 with_gnu_ld=unknown 11311 ;; 11312 esac 11313elif test "$with_gnu_ld" = yes; then 11314 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 11315$as_echo_n "checking for GNU ld... " >&6; } 11316else 11317 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 11318$as_echo_n "checking for non-GNU ld... " >&6; } 11319fi 11320if test "${lt_cv_path_LD+set}" = set; then 11321 $as_echo_n "(cached) " >&6 11322else 11323 if test -z "$LD"; then 11324 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11325 for ac_dir in $PATH; do 11326 IFS="$lt_save_ifs" 11327 test -z "$ac_dir" && ac_dir=. 11328 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11329 lt_cv_path_LD="$ac_dir/$ac_prog" 11330 # Check to see if the program is GNU ld. I'd rather use --version, 11331 # but apparently some variants of GNU ld only accept -v. 11332 # Break only if it was the GNU/non-GNU ld that we prefer. 11333 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11334 *GNU* | *'with BFD'*) 11335 test "$with_gnu_ld" != no && break 11336 ;; 11337 *) 11338 test "$with_gnu_ld" != yes && break 11339 ;; 11340 esac 11341 fi 11342 done 11343 IFS="$lt_save_ifs" 11344else 11345 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11346fi 11347fi 11348 11349LD="$lt_cv_path_LD" 11350if test -n "$LD"; then 11351 { $as_echo "$as_me:$LINENO: result: $LD" >&5 11352$as_echo "$LD" >&6; } 11353else 11354 { $as_echo "$as_me:$LINENO: result: no" >&5 11355$as_echo "no" >&6; } 11356fi 11357test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 11358$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 11359 { (exit 1); exit 1; }; } 11360{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 11361$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11362if test "${lt_cv_prog_gnu_ld+set}" = set; then 11363 $as_echo_n "(cached) " >&6 11364else 11365 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11366case `$LD -v 2>&1 </dev/null` in 11367*GNU* | *'with BFD'*) 11368 lt_cv_prog_gnu_ld=yes 11369 ;; 11370*) 11371 lt_cv_prog_gnu_ld=no 11372 ;; 11373esac 11374fi 11375{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 11376$as_echo "$lt_cv_prog_gnu_ld" >&6; } 11377with_gnu_ld=$lt_cv_prog_gnu_ld 11378 11379 11380 11381 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11382 # archiving commands below assume that GNU ld is being used. 11383 if test "$with_gnu_ld" = yes; then 11384 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11385 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11386 11387 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11388 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11389 11390 # If archive_cmds runs LD, not CC, wlarc should be empty 11391 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11392 # investigate it a little bit more. (MM) 11393 wlarc='${wl}' 11394 11395 # ancient GNU ld didn't support --whole-archive et. al. 11396 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 11397 grep 'no-whole-archive' > /dev/null; then 11398 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11399 else 11400 whole_archive_flag_spec_CXX= 11401 fi 11402 else 11403 with_gnu_ld=no 11404 wlarc= 11405 11406 # A generic and very simple default shared library creation 11407 # command for GNU C++ for the case where it uses the native 11408 # linker, instead of GNU ld. If possible, this setting should 11409 # overridden to take advantage of the native linker features on 11410 # the platform it is being used on. 11411 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11412 fi 11413 11414 # Commands to make compiler produce verbose output that lists 11415 # what "hidden" libraries, object files and flags are used when 11416 # linking a shared library. 11417 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11418 11419else 11420 GXX=no 11421 with_gnu_ld=no 11422 wlarc= 11423fi 11424 11425# PORTME: fill in a description of your system's C++ link characteristics 11426{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11427$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11428ld_shlibs_CXX=yes 11429case $host_os in 11430 aix3*) 11431 # FIXME: insert proper C++ library support 11432 ld_shlibs_CXX=no 11433 ;; 11434 aix[4-9]*) 11435 if test "$host_cpu" = ia64; then 11436 # On IA64, the linker does run time linking by default, so we don't 11437 # have to do anything special. 11438 aix_use_runtimelinking=no 11439 exp_sym_flag='-Bexport' 11440 no_entry_flag="" 11441 else 11442 aix_use_runtimelinking=no 11443 11444 # Test if we are trying to use run time linking or normal 11445 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11446 # need to do runtime linking. 11447 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11448 for ld_flag in $LDFLAGS; do 11449 case $ld_flag in 11450 *-brtl*) 11451 aix_use_runtimelinking=yes 11452 break 11453 ;; 11454 esac 11455 done 11456 ;; 11457 esac 11458 11459 exp_sym_flag='-bexport' 11460 no_entry_flag='-bnoentry' 11461 fi 11462 11463 # When large executables or shared objects are built, AIX ld can 11464 # have problems creating the table of contents. If linking a library 11465 # or program results in "error TOC overflow" add -mminimal-toc to 11466 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11467 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11468 11469 archive_cmds_CXX='' 11470 hardcode_direct_CXX=yes 11471 hardcode_libdir_separator_CXX=':' 11472 link_all_deplibs_CXX=yes 11473 11474 if test "$GXX" = yes; then 11475 case $host_os in aix4.[012]|aix4.[012].*) 11476 # We only want to do this on AIX 4.2 and lower, the check 11477 # below for broken collect2 doesn't work under 4.3+ 11478 collect2name=`${CC} -print-prog-name=collect2` 11479 if test -f "$collect2name" && \ 11480 strings "$collect2name" | grep resolve_lib_name >/dev/null 11481 then 11482 # We have reworked collect2 11483 : 11484 else 11485 # We have old collect2 11486 hardcode_direct_CXX=unsupported 11487 # It fails to find uninstalled libraries when the uninstalled 11488 # path is not listed in the libpath. Setting hardcode_minus_L 11489 # to unsupported forces relinking 11490 hardcode_minus_L_CXX=yes 11491 hardcode_libdir_flag_spec_CXX='-L$libdir' 11492 hardcode_libdir_separator_CXX= 11493 fi 11494 ;; 11495 esac 11496 shared_flag='-shared' 11497 if test "$aix_use_runtimelinking" = yes; then 11498 shared_flag="$shared_flag "'${wl}-G' 11499 fi 11500 else 11501 # not using gcc 11502 if test "$host_cpu" = ia64; then 11503 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11504 # chokes on -Wl,-G. The following line is correct: 11505 shared_flag='-G' 11506 else 11507 if test "$aix_use_runtimelinking" = yes; then 11508 shared_flag='${wl}-G' 11509 else 11510 shared_flag='${wl}-bM:SRE' 11511 fi 11512 fi 11513 fi 11514 11515 # It seems that -bexpall does not export symbols beginning with 11516 # underscore (_), so it is better to generate a list of symbols to export. 11517 always_export_symbols_CXX=yes 11518 if test "$aix_use_runtimelinking" = yes; then 11519 # Warning - without using the other runtime loading flags (-brtl), 11520 # -berok will link without error, but may produce a broken library. 11521 allow_undefined_flag_CXX='-berok' 11522 # Determine the default libpath from the value encoded in an empty executable. 11523 cat >conftest.$ac_ext <<_ACEOF 11524/* confdefs.h. */ 11525_ACEOF 11526cat confdefs.h >>conftest.$ac_ext 11527cat >>conftest.$ac_ext <<_ACEOF 11528/* end confdefs.h. */ 11529 11530int 11531main () 11532{ 11533 11534 ; 11535 return 0; 11536} 11537_ACEOF 11538rm -f conftest.$ac_objext conftest$ac_exeext 11539if { (ac_try="$ac_link" 11540case "(($ac_try" in 11541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11542 *) ac_try_echo=$ac_try;; 11543esac 11544eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11545$as_echo "$ac_try_echo") >&5 11546 (eval "$ac_link") 2>conftest.er1 11547 ac_status=$? 11548 grep -v '^ *+' conftest.er1 >conftest.err 11549 rm -f conftest.er1 11550 cat conftest.err >&5 11551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11552 (exit $ac_status); } && { 11553 test -z "$ac_cxx_werror_flag" || 11554 test ! -s conftest.err 11555 } && test -s conftest$ac_exeext && { 11556 test "$cross_compiling" = yes || 11557 $as_test_x conftest$ac_exeext 11558 }; then 11559 11560lt_aix_libpath_sed=' 11561 /Import File Strings/,/^$/ { 11562 /^0/ { 11563 s/^0 *\(.*\)$/\1/ 11564 p 11565 } 11566 }' 11567aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11568# Check for a 64-bit object if we didn't find anything. 11569if test -z "$aix_libpath"; then 11570 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11571fi 11572else 11573 $as_echo "$as_me: failed program was:" >&5 11574sed 's/^/| /' conftest.$ac_ext >&5 11575 11576 11577fi 11578 11579rm -rf conftest.dSYM 11580rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11581 conftest$ac_exeext conftest.$ac_ext 11582if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11583 11584 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11585 11586 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 11587 else 11588 if test "$host_cpu" = ia64; then 11589 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11590 allow_undefined_flag_CXX="-z nodefs" 11591 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" 11592 else 11593 # Determine the default libpath from the value encoded in an empty executable. 11594 cat >conftest.$ac_ext <<_ACEOF 11595/* confdefs.h. */ 11596_ACEOF 11597cat confdefs.h >>conftest.$ac_ext 11598cat >>conftest.$ac_ext <<_ACEOF 11599/* end confdefs.h. */ 11600 11601int 11602main () 11603{ 11604 11605 ; 11606 return 0; 11607} 11608_ACEOF 11609rm -f conftest.$ac_objext conftest$ac_exeext 11610if { (ac_try="$ac_link" 11611case "(($ac_try" in 11612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11613 *) ac_try_echo=$ac_try;; 11614esac 11615eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11616$as_echo "$ac_try_echo") >&5 11617 (eval "$ac_link") 2>conftest.er1 11618 ac_status=$? 11619 grep -v '^ *+' conftest.er1 >conftest.err 11620 rm -f conftest.er1 11621 cat conftest.err >&5 11622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11623 (exit $ac_status); } && { 11624 test -z "$ac_cxx_werror_flag" || 11625 test ! -s conftest.err 11626 } && test -s conftest$ac_exeext && { 11627 test "$cross_compiling" = yes || 11628 $as_test_x conftest$ac_exeext 11629 }; then 11630 11631lt_aix_libpath_sed=' 11632 /Import File Strings/,/^$/ { 11633 /^0/ { 11634 s/^0 *\(.*\)$/\1/ 11635 p 11636 } 11637 }' 11638aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11639# Check for a 64-bit object if we didn't find anything. 11640if test -z "$aix_libpath"; then 11641 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11642fi 11643else 11644 $as_echo "$as_me: failed program was:" >&5 11645sed 's/^/| /' conftest.$ac_ext >&5 11646 11647 11648fi 11649 11650rm -rf conftest.dSYM 11651rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11652 conftest$ac_exeext conftest.$ac_ext 11653if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11654 11655 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11656 # Warning - without using the other run time loading flags, 11657 # -berok will link without error, but may produce a broken library. 11658 no_undefined_flag_CXX=' ${wl}-bernotok' 11659 allow_undefined_flag_CXX=' ${wl}-berok' 11660 # Exported symbols can be pulled into shared objects from archives 11661 whole_archive_flag_spec_CXX='$convenience' 11662 archive_cmds_need_lc_CXX=yes 11663 # This is similar to how AIX traditionally builds its shared libraries. 11664 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' 11665 fi 11666 fi 11667 ;; 11668 11669 beos*) 11670 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11671 allow_undefined_flag_CXX=unsupported 11672 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11673 # support --undefined. This deserves some investigation. FIXME 11674 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11675 else 11676 ld_shlibs_CXX=no 11677 fi 11678 ;; 11679 11680 chorus*) 11681 case $cc_basename in 11682 *) 11683 # FIXME: insert proper C++ library support 11684 ld_shlibs_CXX=no 11685 ;; 11686 esac 11687 ;; 11688 11689 cygwin* | mingw* | pw32*) 11690 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11691 # as there is no search path for DLLs. 11692 hardcode_libdir_flag_spec_CXX='-L$libdir' 11693 allow_undefined_flag_CXX=unsupported 11694 always_export_symbols_CXX=no 11695 enable_shared_with_static_runtimes_CXX=yes 11696 11697 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11698 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' 11699 # If the export-symbols file already is a .def file (1st line 11700 # is EXPORTS), use it as is; otherwise, prepend... 11701 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11702 cp $export_symbols $output_objdir/$soname.def; 11703 else 11704 echo EXPORTS > $output_objdir/$soname.def; 11705 cat $export_symbols >> $output_objdir/$soname.def; 11706 fi~ 11707 $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' 11708 else 11709 ld_shlibs_CXX=no 11710 fi 11711 ;; 11712 darwin* | rhapsody*) 11713 archive_cmds_need_lc_CXX=no 11714 hardcode_direct_CXX=no 11715 hardcode_automatic_CXX=yes 11716 hardcode_shlibpath_var_CXX=unsupported 11717 whole_archive_flag_spec_CXX='' 11718 link_all_deplibs_CXX=yes 11719 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 11720 if test "$GXX" = yes ; then 11721 output_verbose_link_cmd='echo' 11722 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}" 11723 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 11724 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}" 11725 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}" 11726 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 11727 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}" 11728 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}" 11729 fi 11730 else 11731 case $cc_basename in 11732 xlc*) 11733 output_verbose_link_cmd='echo' 11734 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 11735 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11736 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11737 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11738 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11739 ;; 11740 *) 11741 ld_shlibs_CXX=no 11742 ;; 11743 esac 11744 fi 11745 ;; 11746 11747 dgux*) 11748 case $cc_basename in 11749 ec++*) 11750 # FIXME: insert proper C++ library support 11751 ld_shlibs_CXX=no 11752 ;; 11753 ghcx*) 11754 # Green Hills C++ Compiler 11755 # FIXME: insert proper C++ library support 11756 ld_shlibs_CXX=no 11757 ;; 11758 *) 11759 # FIXME: insert proper C++ library support 11760 ld_shlibs_CXX=no 11761 ;; 11762 esac 11763 ;; 11764 freebsd[12]*) 11765 # C++ shared libraries reported to be fairly broken before switch to ELF 11766 ld_shlibs_CXX=no 11767 ;; 11768 freebsd-elf*) 11769 archive_cmds_need_lc_CXX=no 11770 ;; 11771 freebsd* | dragonfly*) 11772 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11773 # conventions 11774 ld_shlibs_CXX=yes 11775 ;; 11776 gnu*) 11777 ;; 11778 hpux9*) 11779 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11780 hardcode_libdir_separator_CXX=: 11781 export_dynamic_flag_spec_CXX='${wl}-E' 11782 hardcode_direct_CXX=yes 11783 hardcode_minus_L_CXX=yes # Not in the search PATH, 11784 # but as the default 11785 # location of the library. 11786 11787 case $cc_basename in 11788 CC*) 11789 # FIXME: insert proper C++ library support 11790 ld_shlibs_CXX=no 11791 ;; 11792 aCC*) 11793 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' 11794 # Commands to make compiler produce verbose output that lists 11795 # what "hidden" libraries, object files and flags are used when 11796 # linking a shared library. 11797 # 11798 # There doesn't appear to be a way to prevent this compiler from 11799 # explicitly linking system object files so we need to strip them 11800 # from the output so that they don't get included in the library 11801 # dependencies. 11802 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 11803 ;; 11804 *) 11805 if test "$GXX" = yes; then 11806 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' 11807 else 11808 # FIXME: insert proper C++ library support 11809 ld_shlibs_CXX=no 11810 fi 11811 ;; 11812 esac 11813 ;; 11814 hpux10*|hpux11*) 11815 if test $with_gnu_ld = no; then 11816 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11817 hardcode_libdir_separator_CXX=: 11818 11819 case $host_cpu in 11820 hppa*64*|ia64*) ;; 11821 *) 11822 export_dynamic_flag_spec_CXX='${wl}-E' 11823 ;; 11824 esac 11825 fi 11826 case $host_cpu in 11827 hppa*64*|ia64*) 11828 hardcode_direct_CXX=no 11829 hardcode_shlibpath_var_CXX=no 11830 ;; 11831 *) 11832 hardcode_direct_CXX=yes 11833 hardcode_minus_L_CXX=yes # Not in the search PATH, 11834 # but as the default 11835 # location of the library. 11836 ;; 11837 esac 11838 11839 case $cc_basename in 11840 CC*) 11841 # FIXME: insert proper C++ library support 11842 ld_shlibs_CXX=no 11843 ;; 11844 aCC*) 11845 case $host_cpu in 11846 hppa*64*) 11847 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11848 ;; 11849 ia64*) 11850 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11851 ;; 11852 *) 11853 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11854 ;; 11855 esac 11856 # Commands to make compiler produce verbose output that lists 11857 # what "hidden" libraries, object files and flags are used when 11858 # linking a shared library. 11859 # 11860 # There doesn't appear to be a way to prevent this compiler from 11861 # explicitly linking system object files so we need to strip them 11862 # from the output so that they don't get included in the library 11863 # dependencies. 11864 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 11865 ;; 11866 *) 11867 if test "$GXX" = yes; then 11868 if test $with_gnu_ld = no; then 11869 case $host_cpu in 11870 hppa*64*) 11871 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11872 ;; 11873 ia64*) 11874 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11875 ;; 11876 *) 11877 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' 11878 ;; 11879 esac 11880 fi 11881 else 11882 # FIXME: insert proper C++ library support 11883 ld_shlibs_CXX=no 11884 fi 11885 ;; 11886 esac 11887 ;; 11888 interix[3-9]*) 11889 hardcode_direct_CXX=no 11890 hardcode_shlibpath_var_CXX=no 11891 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11892 export_dynamic_flag_spec_CXX='${wl}-E' 11893 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11894 # Instead, shared libraries are loaded at an image base (0x10000000 by 11895 # default) and relocated if they conflict, which is a slow very memory 11896 # consuming and fragmenting process. To avoid this, we pick a random, 11897 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11898 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11899 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' 11900 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' 11901 ;; 11902 irix5* | irix6*) 11903 case $cc_basename in 11904 CC*) 11905 # SGI C++ 11906 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 11907 11908 # Archives containing C++ object files must be created using 11909 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11910 # necessary to make sure instantiated templates are included 11911 # in the archive. 11912 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11913 ;; 11914 *) 11915 if test "$GXX" = yes; then 11916 if test "$with_gnu_ld" = no; then 11917 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 11918 else 11919 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' 11920 fi 11921 fi 11922 link_all_deplibs_CXX=yes 11923 ;; 11924 esac 11925 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11926 hardcode_libdir_separator_CXX=: 11927 ;; 11928 linux* | k*bsd*-gnu) 11929 case $cc_basename in 11930 KCC*) 11931 # Kuck and Associates, Inc. (KAI) C++ Compiler 11932 11933 # KCC will only create a shared library if the output file 11934 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11935 # to its proper name (with version) after linking. 11936 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' 11937 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' 11938 # Commands to make compiler produce verbose output that lists 11939 # what "hidden" libraries, object files and flags are used when 11940 # linking a shared library. 11941 # 11942 # There doesn't appear to be a way to prevent this compiler from 11943 # explicitly linking system object files so we need to strip them 11944 # from the output so that they don't get included in the library 11945 # dependencies. 11946 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 11947 11948 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11949 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11950 11951 # Archives containing C++ object files must be created using 11952 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11953 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11954 ;; 11955 icpc*) 11956 # Intel C++ 11957 with_gnu_ld=yes 11958 # version 8.0 and above of icpc choke on multiply defined symbols 11959 # if we add $predep_objects and $postdep_objects, however 7.1 and 11960 # earlier do not add the objects themselves. 11961 case `$CC -V 2>&1` in 11962 *"Version 7."*) 11963 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11964 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' 11965 ;; 11966 *) # Version 8.0 or newer 11967 tmp_idyn= 11968 case $host_cpu in 11969 ia64*) tmp_idyn=' -i_dynamic';; 11970 esac 11971 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11972 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' 11973 ;; 11974 esac 11975 archive_cmds_need_lc_CXX=no 11976 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11977 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11978 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11979 ;; 11980 pgCC* | pgcpp*) 11981 # Portland Group C++ compiler 11982 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11983 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' 11984 11985 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11986 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11987 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' 11988 ;; 11989 cxx*) 11990 # Compaq C++ 11991 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11992 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' 11993 11994 runpath_var=LD_RUN_PATH 11995 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11996 hardcode_libdir_separator_CXX=: 11997 11998 # Commands to make compiler produce verbose output that lists 11999 # what "hidden" libraries, object files and flags are used when 12000 # linking a shared library. 12001 # 12002 # There doesn't appear to be a way to prevent this compiler from 12003 # explicitly linking system object files so we need to strip them 12004 # from the output so that they don't get included in the library 12005 # dependencies. 12006 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 12007 ;; 12008 *) 12009 case `$CC -V 2>&1 | sed 5q` in 12010 *Sun\ C*) 12011 # Sun C++ 5.9 12012 no_undefined_flag_CXX=' -zdefs' 12013 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12014 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' 12015 hardcode_libdir_flag_spec_CXX='-R$libdir' 12016 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' 12017 12018 # Not sure whether something based on 12019 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 12020 # would be better. 12021 output_verbose_link_cmd='echo' 12022 12023 # Archives containing C++ object files must be created using 12024 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12025 # necessary to make sure instantiated templates are included 12026 # in the archive. 12027 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12028 ;; 12029 esac 12030 ;; 12031 esac 12032 ;; 12033 lynxos*) 12034 # FIXME: insert proper C++ library support 12035 ld_shlibs_CXX=no 12036 ;; 12037 m88k*) 12038 # FIXME: insert proper C++ library support 12039 ld_shlibs_CXX=no 12040 ;; 12041 mvs*) 12042 case $cc_basename in 12043 cxx*) 12044 # FIXME: insert proper C++ library support 12045 ld_shlibs_CXX=no 12046 ;; 12047 *) 12048 # FIXME: insert proper C++ library support 12049 ld_shlibs_CXX=no 12050 ;; 12051 esac 12052 ;; 12053 netbsd*) 12054 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12055 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12056 wlarc= 12057 hardcode_libdir_flag_spec_CXX='-R$libdir' 12058 hardcode_direct_CXX=yes 12059 hardcode_shlibpath_var_CXX=no 12060 fi 12061 # Workaround some broken pre-1.5 toolchains 12062 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12063 ;; 12064 openbsd2*) 12065 # C++ shared libraries are fairly broken 12066 ld_shlibs_CXX=no 12067 ;; 12068 openbsd*) 12069 if test -f /usr/libexec/ld.so; then 12070 hardcode_direct_CXX=yes 12071 hardcode_shlibpath_var_CXX=no 12072 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12073 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12074 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12075 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12076 export_dynamic_flag_spec_CXX='${wl}-E' 12077 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12078 fi 12079 output_verbose_link_cmd='echo' 12080 else 12081 ld_shlibs_CXX=no 12082 fi 12083 ;; 12084 osf3*) 12085 case $cc_basename in 12086 KCC*) 12087 # Kuck and Associates, Inc. (KAI) C++ Compiler 12088 12089 # KCC will only create a shared library if the output file 12090 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12091 # to its proper name (with version) after linking. 12092 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' 12093 12094 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12095 hardcode_libdir_separator_CXX=: 12096 12097 # Archives containing C++ object files must be created using 12098 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12099 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12100 12101 ;; 12102 RCC*) 12103 # Rational C++ 2.4.1 12104 # FIXME: insert proper C++ library support 12105 ld_shlibs_CXX=no 12106 ;; 12107 cxx*) 12108 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12109 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 12110 12111 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12112 hardcode_libdir_separator_CXX=: 12113 12114 # Commands to make compiler produce verbose output that lists 12115 # what "hidden" libraries, object files and flags are used when 12116 # linking a shared library. 12117 # 12118 # There doesn't appear to be a way to prevent this compiler from 12119 # explicitly linking system object files so we need to strip them 12120 # from the output so that they don't get included in the library 12121 # dependencies. 12122 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 12123 ;; 12124 *) 12125 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12126 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12127 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 12128 12129 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12130 hardcode_libdir_separator_CXX=: 12131 12132 # Commands to make compiler produce verbose output that lists 12133 # what "hidden" libraries, object files and flags are used when 12134 # linking a shared library. 12135 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12136 12137 else 12138 # FIXME: insert proper C++ library support 12139 ld_shlibs_CXX=no 12140 fi 12141 ;; 12142 esac 12143 ;; 12144 osf4* | osf5*) 12145 case $cc_basename in 12146 KCC*) 12147 # Kuck and Associates, Inc. (KAI) C++ Compiler 12148 12149 # KCC will only create a shared library if the output file 12150 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12151 # to its proper name (with version) after linking. 12152 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' 12153 12154 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12155 hardcode_libdir_separator_CXX=: 12156 12157 # Archives containing C++ object files must be created using 12158 # the KAI C++ compiler. 12159 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 12160 ;; 12161 RCC*) 12162 # Rational C++ 2.4.1 12163 # FIXME: insert proper C++ library support 12164 ld_shlibs_CXX=no 12165 ;; 12166 cxx*) 12167 allow_undefined_flag_CXX=' -expect_unresolved \*' 12168 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 12169 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12170 echo "-hidden">> $lib.exp~ 12171 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ 12172 $rm $lib.exp' 12173 12174 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12175 hardcode_libdir_separator_CXX=: 12176 12177 # Commands to make compiler produce verbose output that lists 12178 # what "hidden" libraries, object files and flags are used when 12179 # linking a shared library. 12180 # 12181 # There doesn't appear to be a way to prevent this compiler from 12182 # explicitly linking system object files so we need to strip them 12183 # from the output so that they don't get included in the library 12184 # dependencies. 12185 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 12186 ;; 12187 *) 12188 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12189 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12190 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 12191 12192 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12193 hardcode_libdir_separator_CXX=: 12194 12195 # Commands to make compiler produce verbose output that lists 12196 # what "hidden" libraries, object files and flags are used when 12197 # linking a shared library. 12198 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12199 12200 else 12201 # FIXME: insert proper C++ library support 12202 ld_shlibs_CXX=no 12203 fi 12204 ;; 12205 esac 12206 ;; 12207 psos*) 12208 # FIXME: insert proper C++ library support 12209 ld_shlibs_CXX=no 12210 ;; 12211 sunos4*) 12212 case $cc_basename in 12213 CC*) 12214 # Sun C++ 4.x 12215 # FIXME: insert proper C++ library support 12216 ld_shlibs_CXX=no 12217 ;; 12218 lcc*) 12219 # Lucid 12220 # FIXME: insert proper C++ library support 12221 ld_shlibs_CXX=no 12222 ;; 12223 *) 12224 # FIXME: insert proper C++ library support 12225 ld_shlibs_CXX=no 12226 ;; 12227 esac 12228 ;; 12229 solaris*) 12230 case $cc_basename in 12231 CC*) 12232 # Sun C++ 4.2, 5.x and Centerline C++ 12233 archive_cmds_need_lc_CXX=yes 12234 no_undefined_flag_CXX=' -zdefs' 12235 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12236 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12237 $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' 12238 12239 hardcode_libdir_flag_spec_CXX='-R$libdir' 12240 hardcode_shlibpath_var_CXX=no 12241 case $host_os in 12242 solaris2.[0-5] | solaris2.[0-5].*) ;; 12243 *) 12244 # The compiler driver will combine and reorder linker options, 12245 # but understands `-z linker_flag'. 12246 # Supported since Solaris 2.6 (maybe 2.5.1?) 12247 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 12248 ;; 12249 esac 12250 link_all_deplibs_CXX=yes 12251 12252 output_verbose_link_cmd='echo' 12253 12254 # Archives containing C++ object files must be created using 12255 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12256 # necessary to make sure instantiated templates are included 12257 # in the archive. 12258 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12259 ;; 12260 gcx*) 12261 # Green Hills C++ Compiler 12262 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12263 12264 # The C++ compiler must be used to create the archive. 12265 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12266 ;; 12267 *) 12268 # GNU C++ compiler with Solaris linker 12269 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12270 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12271 if $CC --version | grep -v '^2\.7' > /dev/null; then 12272 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12273 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12274 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12275 12276 # Commands to make compiler produce verbose output that lists 12277 # what "hidden" libraries, object files and flags are used when 12278 # linking a shared library. 12279 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12280 else 12281 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12282 # platform. 12283 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12284 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12285 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12286 12287 # Commands to make compiler produce verbose output that lists 12288 # what "hidden" libraries, object files and flags are used when 12289 # linking a shared library. 12290 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12291 fi 12292 12293 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12294 case $host_os in 12295 solaris2.[0-5] | solaris2.[0-5].*) ;; 12296 *) 12297 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12298 ;; 12299 esac 12300 fi 12301 ;; 12302 esac 12303 ;; 12304 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12305 no_undefined_flag_CXX='${wl}-z,text' 12306 archive_cmds_need_lc_CXX=no 12307 hardcode_shlibpath_var_CXX=no 12308 runpath_var='LD_RUN_PATH' 12309 12310 case $cc_basename in 12311 CC*) 12312 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12313 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12314 ;; 12315 *) 12316 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12317 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12318 ;; 12319 esac 12320 ;; 12321 sysv5* | sco3.2v5* | sco5v6*) 12322 # Note: We can NOT use -z defs as we might desire, because we do not 12323 # link with -lc, and that would cause any symbols used from libc to 12324 # always be unresolved, which means just about no library would 12325 # ever link correctly. If we're not using GNU ld we use -z text 12326 # though, which does catch some bad symbols but isn't as heavy-handed 12327 # as -z defs. 12328 # For security reasons, it is highly recommended that you always 12329 # use absolute paths for naming shared libraries, and exclude the 12330 # DT_RUNPATH tag from executables and libraries. But doing so 12331 # requires that you compile everything twice, which is a pain. 12332 # So that behaviour is only enabled if SCOABSPATH is set to a 12333 # non-empty value in the environment. Most likely only useful for 12334 # creating official distributions of packages. 12335 # This is a hack until libtool officially supports absolute path 12336 # names for shared libraries. 12337 no_undefined_flag_CXX='${wl}-z,text' 12338 allow_undefined_flag_CXX='${wl}-z,nodefs' 12339 archive_cmds_need_lc_CXX=no 12340 hardcode_shlibpath_var_CXX=no 12341 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 12342 hardcode_libdir_separator_CXX=':' 12343 link_all_deplibs_CXX=yes 12344 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12345 runpath_var='LD_RUN_PATH' 12346 12347 case $cc_basename in 12348 CC*) 12349 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12350 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12351 ;; 12352 *) 12353 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12354 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12355 ;; 12356 esac 12357 ;; 12358 tandem*) 12359 case $cc_basename in 12360 NCC*) 12361 # NonStop-UX NCC 3.20 12362 # FIXME: insert proper C++ library support 12363 ld_shlibs_CXX=no 12364 ;; 12365 *) 12366 # FIXME: insert proper C++ library support 12367 ld_shlibs_CXX=no 12368 ;; 12369 esac 12370 ;; 12371 vxworks*) 12372 # FIXME: insert proper C++ library support 12373 ld_shlibs_CXX=no 12374 ;; 12375 *) 12376 # FIXME: insert proper C++ library support 12377 ld_shlibs_CXX=no 12378 ;; 12379esac 12380{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12381$as_echo "$ld_shlibs_CXX" >&6; } 12382test "$ld_shlibs_CXX" = no && can_build_shared=no 12383 12384GCC_CXX="$GXX" 12385LD_CXX="$LD" 12386 12387cat > conftest.$ac_ext <<EOF 12388class Foo 12389{ 12390public: 12391 Foo (void) { a = 0; } 12392private: 12393 int a; 12394}; 12395EOF 12396 12397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12398 (eval $ac_compile) 2>&5 12399 ac_status=$? 12400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12401 (exit $ac_status); }; then 12402 # Parse the compiler output and extract the necessary 12403 # objects, libraries and library flags. 12404 12405 # Sentinel used to keep track of whether or not we are before 12406 # the conftest object file. 12407 pre_test_object_deps_done=no 12408 12409 # The `*' in the case matches for architectures that use `case' in 12410 # $output_verbose_cmd can trigger glob expansion during the loop 12411 # eval without this substitution. 12412 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 12413 12414 for p in `eval $output_verbose_link_cmd`; do 12415 case $p in 12416 12417 -L* | -R* | -l*) 12418 # Some compilers place space between "-{L,R}" and the path. 12419 # Remove the space. 12420 if test $p = "-L" \ 12421 || test $p = "-R"; then 12422 prev=$p 12423 continue 12424 else 12425 prev= 12426 fi 12427 12428 if test "$pre_test_object_deps_done" = no; then 12429 case $p in 12430 -L* | -R*) 12431 # Internal compiler library paths should come after those 12432 # provided the user. The postdeps already come after the 12433 # user supplied libs so there is no need to process them. 12434 if test -z "$compiler_lib_search_path_CXX"; then 12435 compiler_lib_search_path_CXX="${prev}${p}" 12436 else 12437 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12438 fi 12439 ;; 12440 # The "-l" case would never come before the object being 12441 # linked, so don't bother handling this case. 12442 esac 12443 else 12444 if test -z "$postdeps_CXX"; then 12445 postdeps_CXX="${prev}${p}" 12446 else 12447 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12448 fi 12449 fi 12450 ;; 12451 12452 *.$objext) 12453 # This assumes that the test object file only shows up 12454 # once in the compiler output. 12455 if test "$p" = "conftest.$objext"; then 12456 pre_test_object_deps_done=yes 12457 continue 12458 fi 12459 12460 if test "$pre_test_object_deps_done" = no; then 12461 if test -z "$predep_objects_CXX"; then 12462 predep_objects_CXX="$p" 12463 else 12464 predep_objects_CXX="$predep_objects_CXX $p" 12465 fi 12466 else 12467 if test -z "$postdep_objects_CXX"; then 12468 postdep_objects_CXX="$p" 12469 else 12470 postdep_objects_CXX="$postdep_objects_CXX $p" 12471 fi 12472 fi 12473 ;; 12474 12475 *) ;; # Ignore the rest. 12476 12477 esac 12478 done 12479 12480 # Clean up. 12481 rm -f a.out a.exe 12482else 12483 echo "libtool.m4: error: problem compiling CXX test program" 12484fi 12485 12486$rm -f confest.$objext 12487 12488compiler_lib_search_dirs_CXX= 12489if test -n "$compiler_lib_search_path_CXX"; then 12490 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 12491fi 12492 12493# PORTME: override above test on systems where it is broken 12494case $host_os in 12495interix[3-9]*) 12496 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12497 # hack all around it, let's just trust "g++" to DTRT. 12498 predep_objects_CXX= 12499 postdep_objects_CXX= 12500 postdeps_CXX= 12501 ;; 12502 12503linux*) 12504 case `$CC -V 2>&1 | sed 5q` in 12505 *Sun\ C*) 12506 # Sun C++ 5.9 12507 # 12508 # The more standards-conforming stlport4 library is 12509 # incompatible with the Cstd library. Avoid specifying 12510 # it if it's in CXXFLAGS. Ignore libCrun as 12511 # -library=stlport4 depends on it. 12512 case " $CXX $CXXFLAGS " in 12513 *" -library=stlport4 "*) 12514 solaris_use_stlport4=yes 12515 ;; 12516 esac 12517 if test "$solaris_use_stlport4" != yes; then 12518 postdeps_CXX='-library=Cstd -library=Crun' 12519 fi 12520 ;; 12521 esac 12522 ;; 12523 12524solaris*) 12525 case $cc_basename in 12526 CC*) 12527 # The more standards-conforming stlport4 library is 12528 # incompatible with the Cstd library. Avoid specifying 12529 # it if it's in CXXFLAGS. Ignore libCrun as 12530 # -library=stlport4 depends on it. 12531 case " $CXX $CXXFLAGS " in 12532 *" -library=stlport4 "*) 12533 solaris_use_stlport4=yes 12534 ;; 12535 esac 12536 12537 # Adding this requires a known-good setup of shared libraries for 12538 # Sun compiler versions before 5.6, else PIC objects from an old 12539 # archive will be linked into the output, leading to subtle bugs. 12540 if test "$solaris_use_stlport4" != yes; then 12541 postdeps_CXX='-library=Cstd -library=Crun' 12542 fi 12543 ;; 12544 esac 12545 ;; 12546esac 12547 12548case " $postdeps_CXX " in 12549*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12550esac 12551 12552lt_prog_compiler_wl_CXX= 12553lt_prog_compiler_pic_CXX= 12554lt_prog_compiler_static_CXX= 12555 12556{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12557$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 12558 12559 # C++ specific cases for pic, static, wl, etc. 12560 if test "$GXX" = yes; then 12561 lt_prog_compiler_wl_CXX='-Wl,' 12562 lt_prog_compiler_static_CXX='-static' 12563 12564 case $host_os in 12565 aix*) 12566 # All AIX code is PIC. 12567 if test "$host_cpu" = ia64; then 12568 # AIX 5 now supports IA64 processor 12569 lt_prog_compiler_static_CXX='-Bstatic' 12570 fi 12571 ;; 12572 amigaos*) 12573 # FIXME: we need at least 68020 code to build shared libraries, but 12574 # adding the `-m68020' flag to GCC prevents building anything better, 12575 # like `-m68040'. 12576 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12577 ;; 12578 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12579 # PIC is the default for these OSes. 12580 ;; 12581 mingw* | cygwin* | os2* | pw32*) 12582 # This hack is so that the source file can tell whether it is being 12583 # built for inclusion in a dll (and should export symbols for example). 12584 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12585 # (--disable-auto-import) libraries 12586 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12587 ;; 12588 darwin* | rhapsody*) 12589 # PIC is the default on this platform 12590 # Common symbols not allowed in MH_DYLIB files 12591 lt_prog_compiler_pic_CXX='-fno-common' 12592 ;; 12593 *djgpp*) 12594 # DJGPP does not support shared libraries at all 12595 lt_prog_compiler_pic_CXX= 12596 ;; 12597 interix[3-9]*) 12598 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12599 # Instead, we relocate shared libraries at runtime. 12600 ;; 12601 sysv4*MP*) 12602 if test -d /usr/nec; then 12603 lt_prog_compiler_pic_CXX=-Kconform_pic 12604 fi 12605 ;; 12606 hpux*) 12607 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12608 # not for PA HP-UX. 12609 case $host_cpu in 12610 hppa*64*|ia64*) 12611 ;; 12612 *) 12613 lt_prog_compiler_pic_CXX='-fPIC' 12614 ;; 12615 esac 12616 ;; 12617 *) 12618 lt_prog_compiler_pic_CXX='-fPIC' 12619 ;; 12620 esac 12621 else 12622 case $host_os in 12623 aix[4-9]*) 12624 # All AIX code is PIC. 12625 if test "$host_cpu" = ia64; then 12626 # AIX 5 now supports IA64 processor 12627 lt_prog_compiler_static_CXX='-Bstatic' 12628 else 12629 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12630 fi 12631 ;; 12632 chorus*) 12633 case $cc_basename in 12634 cxch68*) 12635 # Green Hills C++ Compiler 12636 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 12637 ;; 12638 esac 12639 ;; 12640 darwin*) 12641 # PIC is the default on this platform 12642 # Common symbols not allowed in MH_DYLIB files 12643 case $cc_basename in 12644 xlc*) 12645 lt_prog_compiler_pic_CXX='-qnocommon' 12646 lt_prog_compiler_wl_CXX='-Wl,' 12647 ;; 12648 esac 12649 ;; 12650 dgux*) 12651 case $cc_basename in 12652 ec++*) 12653 lt_prog_compiler_pic_CXX='-KPIC' 12654 ;; 12655 ghcx*) 12656 # Green Hills C++ Compiler 12657 lt_prog_compiler_pic_CXX='-pic' 12658 ;; 12659 *) 12660 ;; 12661 esac 12662 ;; 12663 freebsd* | dragonfly*) 12664 # FreeBSD uses GNU C++ 12665 ;; 12666 hpux9* | hpux10* | hpux11*) 12667 case $cc_basename in 12668 CC*) 12669 lt_prog_compiler_wl_CXX='-Wl,' 12670 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12671 if test "$host_cpu" != ia64; then 12672 lt_prog_compiler_pic_CXX='+Z' 12673 fi 12674 ;; 12675 aCC*) 12676 lt_prog_compiler_wl_CXX='-Wl,' 12677 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12678 case $host_cpu in 12679 hppa*64*|ia64*) 12680 # +Z the default 12681 ;; 12682 *) 12683 lt_prog_compiler_pic_CXX='+Z' 12684 ;; 12685 esac 12686 ;; 12687 *) 12688 ;; 12689 esac 12690 ;; 12691 interix*) 12692 # This is c89, which is MS Visual C++ (no shared libs) 12693 # Anyone wants to do a port? 12694 ;; 12695 irix5* | irix6* | nonstopux*) 12696 case $cc_basename in 12697 CC*) 12698 lt_prog_compiler_wl_CXX='-Wl,' 12699 lt_prog_compiler_static_CXX='-non_shared' 12700 # CC pic flag -KPIC is the default. 12701 ;; 12702 *) 12703 ;; 12704 esac 12705 ;; 12706 linux* | k*bsd*-gnu) 12707 case $cc_basename in 12708 KCC*) 12709 # KAI C++ Compiler 12710 lt_prog_compiler_wl_CXX='--backend -Wl,' 12711 lt_prog_compiler_pic_CXX='-fPIC' 12712 ;; 12713 icpc* | ecpc*) 12714 # Intel C++ 12715 lt_prog_compiler_wl_CXX='-Wl,' 12716 lt_prog_compiler_pic_CXX='-KPIC' 12717 lt_prog_compiler_static_CXX='-static' 12718 ;; 12719 pgCC* | pgcpp*) 12720 # Portland Group C++ compiler. 12721 lt_prog_compiler_wl_CXX='-Wl,' 12722 lt_prog_compiler_pic_CXX='-fpic' 12723 lt_prog_compiler_static_CXX='-Bstatic' 12724 ;; 12725 cxx*) 12726 # Compaq C++ 12727 # Make sure the PIC flag is empty. It appears that all Alpha 12728 # Linux and Compaq Tru64 Unix objects are PIC. 12729 lt_prog_compiler_pic_CXX= 12730 lt_prog_compiler_static_CXX='-non_shared' 12731 ;; 12732 *) 12733 case `$CC -V 2>&1 | sed 5q` in 12734 *Sun\ C*) 12735 # Sun C++ 5.9 12736 lt_prog_compiler_pic_CXX='-KPIC' 12737 lt_prog_compiler_static_CXX='-Bstatic' 12738 lt_prog_compiler_wl_CXX='-Qoption ld ' 12739 ;; 12740 esac 12741 ;; 12742 esac 12743 ;; 12744 lynxos*) 12745 ;; 12746 m88k*) 12747 ;; 12748 mvs*) 12749 case $cc_basename in 12750 cxx*) 12751 lt_prog_compiler_pic_CXX='-W c,exportall' 12752 ;; 12753 *) 12754 ;; 12755 esac 12756 ;; 12757 netbsd*) 12758 ;; 12759 osf3* | osf4* | osf5*) 12760 case $cc_basename in 12761 KCC*) 12762 lt_prog_compiler_wl_CXX='--backend -Wl,' 12763 ;; 12764 RCC*) 12765 # Rational C++ 2.4.1 12766 lt_prog_compiler_pic_CXX='-pic' 12767 ;; 12768 cxx*) 12769 # Digital/Compaq C++ 12770 lt_prog_compiler_wl_CXX='-Wl,' 12771 # Make sure the PIC flag is empty. It appears that all Alpha 12772 # Linux and Compaq Tru64 Unix objects are PIC. 12773 lt_prog_compiler_pic_CXX= 12774 lt_prog_compiler_static_CXX='-non_shared' 12775 ;; 12776 *) 12777 ;; 12778 esac 12779 ;; 12780 psos*) 12781 ;; 12782 solaris*) 12783 case $cc_basename in 12784 CC*) 12785 # Sun C++ 4.2, 5.x and Centerline C++ 12786 lt_prog_compiler_pic_CXX='-KPIC' 12787 lt_prog_compiler_static_CXX='-Bstatic' 12788 lt_prog_compiler_wl_CXX='-Qoption ld ' 12789 ;; 12790 gcx*) 12791 # Green Hills C++ Compiler 12792 lt_prog_compiler_pic_CXX='-PIC' 12793 ;; 12794 *) 12795 ;; 12796 esac 12797 ;; 12798 sunos4*) 12799 case $cc_basename in 12800 CC*) 12801 # Sun C++ 4.x 12802 lt_prog_compiler_pic_CXX='-pic' 12803 lt_prog_compiler_static_CXX='-Bstatic' 12804 ;; 12805 lcc*) 12806 # Lucid 12807 lt_prog_compiler_pic_CXX='-pic' 12808 ;; 12809 *) 12810 ;; 12811 esac 12812 ;; 12813 tandem*) 12814 case $cc_basename in 12815 NCC*) 12816 # NonStop-UX NCC 3.20 12817 lt_prog_compiler_pic_CXX='-KPIC' 12818 ;; 12819 *) 12820 ;; 12821 esac 12822 ;; 12823 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12824 case $cc_basename in 12825 CC*) 12826 lt_prog_compiler_wl_CXX='-Wl,' 12827 lt_prog_compiler_pic_CXX='-KPIC' 12828 lt_prog_compiler_static_CXX='-Bstatic' 12829 ;; 12830 esac 12831 ;; 12832 vxworks*) 12833 ;; 12834 *) 12835 lt_prog_compiler_can_build_shared_CXX=no 12836 ;; 12837 esac 12838 fi 12839 12840{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12841$as_echo "$lt_prog_compiler_pic_CXX" >&6; } 12842 12843# 12844# Check to make sure the PIC flag actually works. 12845# 12846if test -n "$lt_prog_compiler_pic_CXX"; then 12847 12848{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12849$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 12850if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then 12851 $as_echo_n "(cached) " >&6 12852else 12853 lt_cv_prog_compiler_pic_works_CXX=no 12854 ac_outfile=conftest.$ac_objext 12855 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12856 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12857 # Insert the option either (1) after the last *FLAGS variable, or 12858 # (2) before a word containing "conftest.", or (3) at the end. 12859 # Note that $ac_compile itself does not contain backslashes and begins 12860 # with a dollar sign (not a hyphen), so the echo should work correctly. 12861 # The option is referenced via a variable to avoid confusing sed. 12862 lt_compile=`echo "$ac_compile" | $SED \ 12863 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12864 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12865 -e 's:$: $lt_compiler_flag:'` 12866 (eval echo "\"\$as_me:12866: $lt_compile\"" >&5) 12867 (eval "$lt_compile" 2>conftest.err) 12868 ac_status=$? 12869 cat conftest.err >&5 12870 echo "$as_me:12870: \$? = $ac_status" >&5 12871 if (exit $ac_status) && test -s "$ac_outfile"; then 12872 # The compiler can only warn and ignore the option if not recognized 12873 # So say no if there are warnings other than the usual output. 12874 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12875 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12876 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12877 lt_cv_prog_compiler_pic_works_CXX=yes 12878 fi 12879 fi 12880 $rm conftest* 12881 12882fi 12883{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 12884$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 12885 12886if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 12887 case $lt_prog_compiler_pic_CXX in 12888 "" | " "*) ;; 12889 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12890 esac 12891else 12892 lt_prog_compiler_pic_CXX= 12893 lt_prog_compiler_can_build_shared_CXX=no 12894fi 12895 12896fi 12897case $host_os in 12898 # For platforms which do not support PIC, -DPIC is meaningless: 12899 *djgpp*) 12900 lt_prog_compiler_pic_CXX= 12901 ;; 12902 *) 12903 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12904 ;; 12905esac 12906 12907# 12908# Check to make sure the static flag actually works. 12909# 12910wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12911{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12912$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 12913if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then 12914 $as_echo_n "(cached) " >&6 12915else 12916 lt_cv_prog_compiler_static_works_CXX=no 12917 save_LDFLAGS="$LDFLAGS" 12918 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12919 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12920 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12921 # The linker can only warn and ignore the option if not recognized 12922 # So say no if there are warnings 12923 if test -s conftest.err; then 12924 # Append any errors to the config.log. 12925 cat conftest.err 1>&5 12926 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12927 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12928 if diff conftest.exp conftest.er2 >/dev/null; then 12929 lt_cv_prog_compiler_static_works_CXX=yes 12930 fi 12931 else 12932 lt_cv_prog_compiler_static_works_CXX=yes 12933 fi 12934 fi 12935 $rm -r conftest* 12936 LDFLAGS="$save_LDFLAGS" 12937 12938fi 12939{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5 12940$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 12941 12942if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 12943 : 12944else 12945 lt_prog_compiler_static_CXX= 12946fi 12947 12948 12949{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12950$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 12951if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12952 $as_echo_n "(cached) " >&6 12953else 12954 lt_cv_prog_compiler_c_o_CXX=no 12955 $rm -r conftest 2>/dev/null 12956 mkdir conftest 12957 cd conftest 12958 mkdir out 12959 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12960 12961 lt_compiler_flag="-o out/conftest2.$ac_objext" 12962 # Insert the option either (1) after the last *FLAGS variable, or 12963 # (2) before a word containing "conftest.", or (3) at the end. 12964 # Note that $ac_compile itself does not contain backslashes and begins 12965 # with a dollar sign (not a hyphen), so the echo should work correctly. 12966 lt_compile=`echo "$ac_compile" | $SED \ 12967 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12968 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12969 -e 's:$: $lt_compiler_flag:'` 12970 (eval echo "\"\$as_me:12970: $lt_compile\"" >&5) 12971 (eval "$lt_compile" 2>out/conftest.err) 12972 ac_status=$? 12973 cat out/conftest.err >&5 12974 echo "$as_me:12974: \$? = $ac_status" >&5 12975 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12976 then 12977 # The compiler can only warn and ignore the option if not recognized 12978 # So say no if there are warnings 12979 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12980 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12981 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12982 lt_cv_prog_compiler_c_o_CXX=yes 12983 fi 12984 fi 12985 chmod u+w . 2>&5 12986 $rm conftest* 12987 # SGI C++ compiler will create directory out/ii_files/ for 12988 # template instantiation 12989 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12990 $rm out/* && rmdir out 12991 cd .. 12992 rmdir conftest 12993 $rm conftest* 12994 12995fi 12996{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12997$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 12998 12999 13000hard_links="nottested" 13001if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 13002 # do not overwrite the value of need_locks provided by the user 13003 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13004$as_echo_n "checking if we can lock with hard links... " >&6; } 13005 hard_links=yes 13006 $rm conftest* 13007 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13008 touch conftest.a 13009 ln conftest.a conftest.b 2>&5 || hard_links=no 13010 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13011 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 13012$as_echo "$hard_links" >&6; } 13013 if test "$hard_links" = no; then 13014 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13015$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13016 need_locks=warn 13017 fi 13018else 13019 need_locks=no 13020fi 13021 13022{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13023$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13024 13025 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13026 case $host_os in 13027 aix[4-9]*) 13028 # If we're using GNU nm, then we don't want the "-C" option. 13029 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13030 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13031 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' 13032 else 13033 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' 13034 fi 13035 ;; 13036 pw32*) 13037 export_symbols_cmds_CXX="$ltdll_cmds" 13038 ;; 13039 cygwin* | mingw*) 13040 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' 13041 ;; 13042 *) 13043 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13044 ;; 13045 esac 13046 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 13047 13048{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 13049$as_echo "$ld_shlibs_CXX" >&6; } 13050test "$ld_shlibs_CXX" = no && can_build_shared=no 13051 13052# 13053# Do we need to explicitly link libc? 13054# 13055case "x$archive_cmds_need_lc_CXX" in 13056x|xyes) 13057 # Assume -lc should be added 13058 archive_cmds_need_lc_CXX=yes 13059 13060 if test "$enable_shared" = yes && test "$GCC" = yes; then 13061 case $archive_cmds_CXX in 13062 *'~'*) 13063 # FIXME: we may have to deal with multi-command sequences. 13064 ;; 13065 '$CC '*) 13066 # Test whether the compiler implicitly links with -lc since on some 13067 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13068 # to ld, don't add -lc before -lgcc. 13069 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 13070$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 13071 $rm conftest* 13072 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13073 13074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13075 (eval $ac_compile) 2>&5 13076 ac_status=$? 13077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13078 (exit $ac_status); } 2>conftest.err; then 13079 soname=conftest 13080 lib=conftest 13081 libobjs=conftest.$ac_objext 13082 deplibs= 13083 wl=$lt_prog_compiler_wl_CXX 13084 pic_flag=$lt_prog_compiler_pic_CXX 13085 compiler_flags=-v 13086 linker_flags=-v 13087 verstring= 13088 output_objdir=. 13089 libname=conftest 13090 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 13091 allow_undefined_flag_CXX= 13092 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 13093 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 13094 ac_status=$? 13095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13096 (exit $ac_status); } 13097 then 13098 archive_cmds_need_lc_CXX=no 13099 else 13100 archive_cmds_need_lc_CXX=yes 13101 fi 13102 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 13103 else 13104 cat conftest.err 1>&5 13105 fi 13106 $rm conftest* 13107 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 13108$as_echo "$archive_cmds_need_lc_CXX" >&6; } 13109 ;; 13110 esac 13111 fi 13112 ;; 13113esac 13114 13115{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 13116$as_echo_n "checking dynamic linker characteristics... " >&6; } 13117library_names_spec= 13118libname_spec='lib$name' 13119soname_spec= 13120shrext_cmds=".so" 13121postinstall_cmds= 13122postuninstall_cmds= 13123finish_cmds= 13124finish_eval= 13125shlibpath_var= 13126shlibpath_overrides_runpath=unknown 13127version_type=none 13128dynamic_linker="$host_os ld.so" 13129sys_lib_dlsearch_path_spec="/lib /usr/lib" 13130 13131need_lib_prefix=unknown 13132hardcode_into_libs=no 13133 13134# when you set need_version to no, make sure it does not cause -set_version 13135# flags to be left without arguments 13136need_version=unknown 13137 13138case $host_os in 13139aix3*) 13140 version_type=linux 13141 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13142 shlibpath_var=LIBPATH 13143 13144 # AIX 3 has no versioning support, so we append a major version to the name. 13145 soname_spec='${libname}${release}${shared_ext}$major' 13146 ;; 13147 13148aix[4-9]*) 13149 version_type=linux 13150 need_lib_prefix=no 13151 need_version=no 13152 hardcode_into_libs=yes 13153 if test "$host_cpu" = ia64; then 13154 # AIX 5 supports IA64 13155 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13156 shlibpath_var=LD_LIBRARY_PATH 13157 else 13158 # With GCC up to 2.95.x, collect2 would create an import file 13159 # for dependence libraries. The import file would start with 13160 # the line `#! .'. This would cause the generated library to 13161 # depend on `.', always an invalid library. This was fixed in 13162 # development snapshots of GCC prior to 3.0. 13163 case $host_os in 13164 aix4 | aix4.[01] | aix4.[01].*) 13165 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13166 echo ' yes ' 13167 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13168 : 13169 else 13170 can_build_shared=no 13171 fi 13172 ;; 13173 esac 13174 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13175 # soname into executable. Probably we can add versioning support to 13176 # collect2, so additional links can be useful in future. 13177 if test "$aix_use_runtimelinking" = yes; then 13178 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13179 # instead of lib<name>.a to let people know that these are not 13180 # typical AIX shared libraries. 13181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13182 else 13183 # We preserve .a as extension for shared libraries through AIX4.2 13184 # and later when we are not doing run time linking. 13185 library_names_spec='${libname}${release}.a $libname.a' 13186 soname_spec='${libname}${release}${shared_ext}$major' 13187 fi 13188 shlibpath_var=LIBPATH 13189 fi 13190 ;; 13191 13192amigaos*) 13193 library_names_spec='$libname.ixlibrary $libname.a' 13194 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13195 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' 13196 ;; 13197 13198beos*) 13199 library_names_spec='${libname}${shared_ext}' 13200 dynamic_linker="$host_os ld.so" 13201 shlibpath_var=LIBRARY_PATH 13202 ;; 13203 13204bsdi[45]*) 13205 version_type=linux 13206 need_version=no 13207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13208 soname_spec='${libname}${release}${shared_ext}$major' 13209 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13210 shlibpath_var=LD_LIBRARY_PATH 13211 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13212 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13213 # the default ld.so.conf also contains /usr/contrib/lib and 13214 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13215 # libtool to hard-code these into programs 13216 ;; 13217 13218cygwin* | mingw* | pw32*) 13219 version_type=windows 13220 shrext_cmds=".dll" 13221 need_version=no 13222 need_lib_prefix=no 13223 13224 case $GCC,$host_os in 13225 yes,cygwin* | yes,mingw* | yes,pw32*) 13226 library_names_spec='$libname.dll.a' 13227 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13228 postinstall_cmds='base_file=`basename \${file}`~ 13229 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13230 dldir=$destdir/`dirname \$dlpath`~ 13231 test -d \$dldir || mkdir -p \$dldir~ 13232 $install_prog $dir/$dlname \$dldir/$dlname~ 13233 chmod a+x \$dldir/$dlname' 13234 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13235 dlpath=$dir/\$dldll~ 13236 $rm \$dlpath' 13237 shlibpath_overrides_runpath=yes 13238 13239 case $host_os in 13240 cygwin*) 13241 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13242 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13243 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13244 ;; 13245 mingw*) 13246 # MinGW DLLs use traditional 'lib' prefix 13247 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13248 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13249 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13250 # It is most probably a Windows format PATH printed by 13251 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13252 # path with ; separators, and with drive letters. We can handle the 13253 # drive letters (cygwin fileutils understands them), so leave them, 13254 # especially as we might pass files found there to a mingw objdump, 13255 # which wouldn't understand a cygwinified path. Ahh. 13256 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13257 else 13258 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13259 fi 13260 ;; 13261 pw32*) 13262 # pw32 DLLs use 'pw' prefix rather than 'lib' 13263 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13264 ;; 13265 esac 13266 ;; 13267 13268 *) 13269 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13270 ;; 13271 esac 13272 dynamic_linker='Win32 ld.exe' 13273 # FIXME: first we should search . and the directory the executable is in 13274 shlibpath_var=PATH 13275 ;; 13276 13277darwin* | rhapsody*) 13278 dynamic_linker="$host_os dyld" 13279 version_type=darwin 13280 need_lib_prefix=no 13281 need_version=no 13282 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13283 soname_spec='${libname}${release}${major}$shared_ext' 13284 shlibpath_overrides_runpath=yes 13285 shlibpath_var=DYLD_LIBRARY_PATH 13286 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13287 13288 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13289 ;; 13290 13291dgux*) 13292 version_type=linux 13293 need_lib_prefix=no 13294 need_version=no 13295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13296 soname_spec='${libname}${release}${shared_ext}$major' 13297 shlibpath_var=LD_LIBRARY_PATH 13298 ;; 13299 13300freebsd1*) 13301 dynamic_linker=no 13302 ;; 13303 13304freebsd* | dragonfly*) 13305 # DragonFly does not have aout. When/if they implement a new 13306 # versioning mechanism, adjust this. 13307 if test -x /usr/bin/objformat; then 13308 objformat=`/usr/bin/objformat` 13309 else 13310 case $host_os in 13311 freebsd[123]*) objformat=aout ;; 13312 *) objformat=elf ;; 13313 esac 13314 fi 13315 version_type=freebsd-$objformat 13316 case $version_type in 13317 freebsd-elf*) 13318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13319 need_version=no 13320 need_lib_prefix=no 13321 ;; 13322 freebsd-*) 13323 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13324 need_version=yes 13325 ;; 13326 esac 13327 shlibpath_var=LD_LIBRARY_PATH 13328 case $host_os in 13329 freebsd2*) 13330 shlibpath_overrides_runpath=yes 13331 ;; 13332 freebsd3.[01]* | freebsdelf3.[01]*) 13333 shlibpath_overrides_runpath=yes 13334 hardcode_into_libs=yes 13335 ;; 13336 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13337 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13338 shlibpath_overrides_runpath=no 13339 hardcode_into_libs=yes 13340 ;; 13341 *) # from 4.6 on, and DragonFly 13342 shlibpath_overrides_runpath=yes 13343 hardcode_into_libs=yes 13344 ;; 13345 esac 13346 ;; 13347 13348gnu*) 13349 version_type=linux 13350 need_lib_prefix=no 13351 need_version=no 13352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13353 soname_spec='${libname}${release}${shared_ext}$major' 13354 shlibpath_var=LD_LIBRARY_PATH 13355 hardcode_into_libs=yes 13356 ;; 13357 13358hpux9* | hpux10* | hpux11*) 13359 # Give a soname corresponding to the major version so that dld.sl refuses to 13360 # link against other versions. 13361 version_type=sunos 13362 need_lib_prefix=no 13363 need_version=no 13364 case $host_cpu in 13365 ia64*) 13366 shrext_cmds='.so' 13367 hardcode_into_libs=yes 13368 dynamic_linker="$host_os dld.so" 13369 shlibpath_var=LD_LIBRARY_PATH 13370 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13372 soname_spec='${libname}${release}${shared_ext}$major' 13373 if test "X$HPUX_IA64_MODE" = X32; then 13374 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13375 else 13376 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13377 fi 13378 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13379 ;; 13380 hppa*64*) 13381 shrext_cmds='.sl' 13382 hardcode_into_libs=yes 13383 dynamic_linker="$host_os dld.sl" 13384 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13385 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13387 soname_spec='${libname}${release}${shared_ext}$major' 13388 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13389 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13390 ;; 13391 *) 13392 shrext_cmds='.sl' 13393 dynamic_linker="$host_os dld.sl" 13394 shlibpath_var=SHLIB_PATH 13395 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13397 soname_spec='${libname}${release}${shared_ext}$major' 13398 ;; 13399 esac 13400 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13401 postinstall_cmds='chmod 555 $lib' 13402 ;; 13403 13404interix[3-9]*) 13405 version_type=linux 13406 need_lib_prefix=no 13407 need_version=no 13408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13409 soname_spec='${libname}${release}${shared_ext}$major' 13410 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13411 shlibpath_var=LD_LIBRARY_PATH 13412 shlibpath_overrides_runpath=no 13413 hardcode_into_libs=yes 13414 ;; 13415 13416irix5* | irix6* | nonstopux*) 13417 case $host_os in 13418 nonstopux*) version_type=nonstopux ;; 13419 *) 13420 if test "$lt_cv_prog_gnu_ld" = yes; then 13421 version_type=linux 13422 else 13423 version_type=irix 13424 fi ;; 13425 esac 13426 need_lib_prefix=no 13427 need_version=no 13428 soname_spec='${libname}${release}${shared_ext}$major' 13429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13430 case $host_os in 13431 irix5* | nonstopux*) 13432 libsuff= shlibsuff= 13433 ;; 13434 *) 13435 case $LD in # libtool.m4 will add one of these switches to LD 13436 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13437 libsuff= shlibsuff= libmagic=32-bit;; 13438 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13439 libsuff=32 shlibsuff=N32 libmagic=N32;; 13440 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13441 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13442 *) libsuff= shlibsuff= libmagic=never-match;; 13443 esac 13444 ;; 13445 esac 13446 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13447 shlibpath_overrides_runpath=no 13448 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13449 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13450 hardcode_into_libs=yes 13451 ;; 13452 13453# No shared lib support for Linux oldld, aout, or coff. 13454linux*oldld* | linux*aout* | linux*coff*) 13455 dynamic_linker=no 13456 ;; 13457 13458# This must be Linux ELF. 13459linux* | k*bsd*-gnu) 13460 version_type=linux 13461 need_lib_prefix=no 13462 need_version=no 13463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13464 soname_spec='${libname}${release}${shared_ext}$major' 13465 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13466 shlibpath_var=LD_LIBRARY_PATH 13467 shlibpath_overrides_runpath=no 13468 # This implies no fast_install, which is unacceptable. 13469 # Some rework will be needed to allow for fast_install 13470 # before this can be enabled. 13471 hardcode_into_libs=yes 13472 13473 # Append ld.so.conf contents to the search path 13474 if test -f /etc/ld.so.conf; then 13475 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' ' '` 13476 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13477 fi 13478 13479 # We used to test for /lib/ld.so.1 and disable shared libraries on 13480 # powerpc, because MkLinux only supported shared libraries with the 13481 # GNU dynamic linker. Since this was broken with cross compilers, 13482 # most powerpc-linux boxes support dynamic linking these days and 13483 # people can always --disable-shared, the test was removed, and we 13484 # assume the GNU/Linux dynamic linker is in use. 13485 dynamic_linker='GNU/Linux ld.so' 13486 ;; 13487 13488netbsd*) 13489 version_type=sunos 13490 need_lib_prefix=no 13491 need_version=no 13492 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13494 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13495 dynamic_linker='NetBSD (a.out) ld.so' 13496 else 13497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13498 soname_spec='${libname}${release}${shared_ext}$major' 13499 dynamic_linker='NetBSD ld.elf_so' 13500 fi 13501 shlibpath_var=LD_LIBRARY_PATH 13502 shlibpath_overrides_runpath=yes 13503 hardcode_into_libs=yes 13504 ;; 13505 13506newsos6) 13507 version_type=linux 13508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13509 shlibpath_var=LD_LIBRARY_PATH 13510 shlibpath_overrides_runpath=yes 13511 ;; 13512 13513nto-qnx*) 13514 version_type=linux 13515 need_lib_prefix=no 13516 need_version=no 13517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13518 soname_spec='${libname}${release}${shared_ext}$major' 13519 shlibpath_var=LD_LIBRARY_PATH 13520 shlibpath_overrides_runpath=yes 13521 ;; 13522 13523openbsd*) 13524 version_type=sunos 13525 sys_lib_dlsearch_path_spec="/usr/lib" 13526 need_lib_prefix=no 13527 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13528 case $host_os in 13529 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13530 *) need_version=no ;; 13531 esac 13532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13533 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13534 shlibpath_var=LD_LIBRARY_PATH 13535 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13536 case $host_os in 13537 openbsd2.[89] | openbsd2.[89].*) 13538 shlibpath_overrides_runpath=no 13539 ;; 13540 *) 13541 shlibpath_overrides_runpath=yes 13542 ;; 13543 esac 13544 else 13545 shlibpath_overrides_runpath=yes 13546 fi 13547 ;; 13548 13549os2*) 13550 libname_spec='$name' 13551 shrext_cmds=".dll" 13552 need_lib_prefix=no 13553 library_names_spec='$libname${shared_ext} $libname.a' 13554 dynamic_linker='OS/2 ld.exe' 13555 shlibpath_var=LIBPATH 13556 ;; 13557 13558osf3* | osf4* | osf5*) 13559 version_type=osf 13560 need_lib_prefix=no 13561 need_version=no 13562 soname_spec='${libname}${release}${shared_ext}$major' 13563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13564 shlibpath_var=LD_LIBRARY_PATH 13565 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13566 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13567 ;; 13568 13569rdos*) 13570 dynamic_linker=no 13571 ;; 13572 13573solaris*) 13574 version_type=linux 13575 need_lib_prefix=no 13576 need_version=no 13577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13578 soname_spec='${libname}${release}${shared_ext}$major' 13579 shlibpath_var=LD_LIBRARY_PATH 13580 shlibpath_overrides_runpath=yes 13581 hardcode_into_libs=yes 13582 # ldd complains unless libraries are executable 13583 postinstall_cmds='chmod +x $lib' 13584 ;; 13585 13586sunos4*) 13587 version_type=sunos 13588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13589 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13590 shlibpath_var=LD_LIBRARY_PATH 13591 shlibpath_overrides_runpath=yes 13592 if test "$with_gnu_ld" = yes; then 13593 need_lib_prefix=no 13594 fi 13595 need_version=yes 13596 ;; 13597 13598sysv4 | sysv4.3*) 13599 version_type=linux 13600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13601 soname_spec='${libname}${release}${shared_ext}$major' 13602 shlibpath_var=LD_LIBRARY_PATH 13603 case $host_vendor in 13604 sni) 13605 shlibpath_overrides_runpath=no 13606 need_lib_prefix=no 13607 export_dynamic_flag_spec='${wl}-Blargedynsym' 13608 runpath_var=LD_RUN_PATH 13609 ;; 13610 siemens) 13611 need_lib_prefix=no 13612 ;; 13613 motorola) 13614 need_lib_prefix=no 13615 need_version=no 13616 shlibpath_overrides_runpath=no 13617 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13618 ;; 13619 esac 13620 ;; 13621 13622sysv4*MP*) 13623 if test -d /usr/nec ;then 13624 version_type=linux 13625 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13626 soname_spec='$libname${shared_ext}.$major' 13627 shlibpath_var=LD_LIBRARY_PATH 13628 fi 13629 ;; 13630 13631sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13632 version_type=freebsd-elf 13633 need_lib_prefix=no 13634 need_version=no 13635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13636 soname_spec='${libname}${release}${shared_ext}$major' 13637 shlibpath_var=LD_LIBRARY_PATH 13638 hardcode_into_libs=yes 13639 if test "$with_gnu_ld" = yes; then 13640 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13641 shlibpath_overrides_runpath=no 13642 else 13643 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13644 shlibpath_overrides_runpath=yes 13645 case $host_os in 13646 sco3.2v5*) 13647 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13648 ;; 13649 esac 13650 fi 13651 sys_lib_dlsearch_path_spec='/usr/lib' 13652 ;; 13653 13654uts4*) 13655 version_type=linux 13656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13657 soname_spec='${libname}${release}${shared_ext}$major' 13658 shlibpath_var=LD_LIBRARY_PATH 13659 ;; 13660 13661*) 13662 dynamic_linker=no 13663 ;; 13664esac 13665{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13666$as_echo "$dynamic_linker" >&6; } 13667test "$dynamic_linker" = no && can_build_shared=no 13668 13669if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 13670 $as_echo_n "(cached) " >&6 13671else 13672 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 13673fi 13674 13675sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 13676if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 13677 $as_echo_n "(cached) " >&6 13678else 13679 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 13680fi 13681 13682sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 13683 13684variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13685if test "$GCC" = yes; then 13686 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13687fi 13688 13689{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13690$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13691hardcode_action_CXX= 13692if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13693 test -n "$runpath_var_CXX" || \ 13694 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13695 13696 # We can hardcode non-existant directories. 13697 if test "$hardcode_direct_CXX" != no && 13698 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13699 # have to relink, otherwise we might link with an installed library 13700 # when we should be linking with a yet-to-be-installed one 13701 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13702 test "$hardcode_minus_L_CXX" != no; then 13703 # Linking always hardcodes the temporary library directory. 13704 hardcode_action_CXX=relink 13705 else 13706 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13707 hardcode_action_CXX=immediate 13708 fi 13709else 13710 # We cannot hardcode anything, or else we can only hardcode existing 13711 # directories. 13712 hardcode_action_CXX=unsupported 13713fi 13714{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13715$as_echo "$hardcode_action_CXX" >&6; } 13716 13717if test "$hardcode_action_CXX" = relink; then 13718 # Fast installation is not supported 13719 enable_fast_install=no 13720elif test "$shlibpath_overrides_runpath" = yes || 13721 test "$enable_shared" = no; then 13722 # Fast installation is not necessary 13723 enable_fast_install=needless 13724fi 13725 13726 13727# The else clause should only fire when bootstrapping the 13728# libtool distribution, otherwise you forgot to ship ltmain.sh 13729# with your package, and you will get complaints that there are 13730# no rules to generate ltmain.sh. 13731if test -f "$ltmain"; then 13732 # See if we are running on zsh, and set the options which allow our commands through 13733 # without removal of \ escapes. 13734 if test -n "${ZSH_VERSION+set}" ; then 13735 setopt NO_GLOB_SUBST 13736 fi 13737 # Now quote all the things that may contain metacharacters while being 13738 # careful not to overquote the AC_SUBSTed values. We take copies of the 13739 # variables and quote the copies for generation of the libtool script. 13740 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13741 SED SHELL STRIP \ 13742 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13743 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13744 deplibs_check_method reload_flag reload_cmds need_locks \ 13745 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13746 lt_cv_sys_global_symbol_to_c_name_address \ 13747 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13748 old_postinstall_cmds old_postuninstall_cmds \ 13749 compiler_CXX \ 13750 CC_CXX \ 13751 LD_CXX \ 13752 lt_prog_compiler_wl_CXX \ 13753 lt_prog_compiler_pic_CXX \ 13754 lt_prog_compiler_static_CXX \ 13755 lt_prog_compiler_no_builtin_flag_CXX \ 13756 export_dynamic_flag_spec_CXX \ 13757 thread_safe_flag_spec_CXX \ 13758 whole_archive_flag_spec_CXX \ 13759 enable_shared_with_static_runtimes_CXX \ 13760 old_archive_cmds_CXX \ 13761 old_archive_from_new_cmds_CXX \ 13762 predep_objects_CXX \ 13763 postdep_objects_CXX \ 13764 predeps_CXX \ 13765 postdeps_CXX \ 13766 compiler_lib_search_path_CXX \ 13767 compiler_lib_search_dirs_CXX \ 13768 archive_cmds_CXX \ 13769 archive_expsym_cmds_CXX \ 13770 postinstall_cmds_CXX \ 13771 postuninstall_cmds_CXX \ 13772 old_archive_from_expsyms_cmds_CXX \ 13773 allow_undefined_flag_CXX \ 13774 no_undefined_flag_CXX \ 13775 export_symbols_cmds_CXX \ 13776 hardcode_libdir_flag_spec_CXX \ 13777 hardcode_libdir_flag_spec_ld_CXX \ 13778 hardcode_libdir_separator_CXX \ 13779 hardcode_automatic_CXX \ 13780 module_cmds_CXX \ 13781 module_expsym_cmds_CXX \ 13782 lt_cv_prog_compiler_c_o_CXX \ 13783 fix_srcfile_path_CXX \ 13784 exclude_expsyms_CXX \ 13785 include_expsyms_CXX; do 13786 13787 case $var in 13788 old_archive_cmds_CXX | \ 13789 old_archive_from_new_cmds_CXX | \ 13790 archive_cmds_CXX | \ 13791 archive_expsym_cmds_CXX | \ 13792 module_cmds_CXX | \ 13793 module_expsym_cmds_CXX | \ 13794 old_archive_from_expsyms_cmds_CXX | \ 13795 export_symbols_cmds_CXX | \ 13796 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13797 postinstall_cmds | postuninstall_cmds | \ 13798 old_postinstall_cmds | old_postuninstall_cmds | \ 13799 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13800 # Double-quote double-evaled strings. 13801 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13802 ;; 13803 *) 13804 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13805 ;; 13806 esac 13807 done 13808 13809 case $lt_echo in 13810 *'\$0 --fallback-echo"') 13811 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13812 ;; 13813 esac 13814 13815cfgfile="$ofile" 13816 13817 cat <<__EOF__ >> "$cfgfile" 13818# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13819 13820# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13821 13822# Shell to use when invoking shell scripts. 13823SHELL=$lt_SHELL 13824 13825# Whether or not to build shared libraries. 13826build_libtool_libs=$enable_shared 13827 13828# Whether or not to build static libraries. 13829build_old_libs=$enable_static 13830 13831# Whether or not to add -lc for building shared libraries. 13832build_libtool_need_lc=$archive_cmds_need_lc_CXX 13833 13834# Whether or not to disallow shared libs when runtime libs are static 13835allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13836 13837# Whether or not to optimize for fast installation. 13838fast_install=$enable_fast_install 13839 13840# The host system. 13841host_alias=$host_alias 13842host=$host 13843host_os=$host_os 13844 13845# The build system. 13846build_alias=$build_alias 13847build=$build 13848build_os=$build_os 13849 13850# An echo program that does not interpret backslashes. 13851echo=$lt_echo 13852 13853# The archiver. 13854AR=$lt_AR 13855AR_FLAGS=$lt_AR_FLAGS 13856 13857# A C compiler. 13858LTCC=$lt_LTCC 13859 13860# LTCC compiler flags. 13861LTCFLAGS=$lt_LTCFLAGS 13862 13863# A language-specific compiler. 13864CC=$lt_compiler_CXX 13865 13866# Is the compiler the GNU C compiler? 13867with_gcc=$GCC_CXX 13868 13869# An ERE matcher. 13870EGREP=$lt_EGREP 13871 13872# The linker used to build libraries. 13873LD=$lt_LD_CXX 13874 13875# Whether we need hard or soft links. 13876LN_S=$lt_LN_S 13877 13878# A BSD-compatible nm program. 13879NM=$lt_NM 13880 13881# A symbol stripping program 13882STRIP=$lt_STRIP 13883 13884# Used to examine libraries when file_magic_cmd begins "file" 13885MAGIC_CMD=$MAGIC_CMD 13886 13887# Used on cygwin: DLL creation program. 13888DLLTOOL="$DLLTOOL" 13889 13890# Used on cygwin: object dumper. 13891OBJDUMP="$OBJDUMP" 13892 13893# Used on cygwin: assembler. 13894AS="$AS" 13895 13896# The name of the directory that contains temporary libtool files. 13897objdir=$objdir 13898 13899# How to create reloadable object files. 13900reload_flag=$lt_reload_flag 13901reload_cmds=$lt_reload_cmds 13902 13903# How to pass a linker flag through the compiler. 13904wl=$lt_lt_prog_compiler_wl_CXX 13905 13906# Object file suffix (normally "o"). 13907objext="$ac_objext" 13908 13909# Old archive suffix (normally "a"). 13910libext="$libext" 13911 13912# Shared library suffix (normally ".so"). 13913shrext_cmds='$shrext_cmds' 13914 13915# Executable file suffix (normally ""). 13916exeext="$exeext" 13917 13918# Additional compiler flags for building library objects. 13919pic_flag=$lt_lt_prog_compiler_pic_CXX 13920pic_mode=$pic_mode 13921 13922# What is the maximum length of a command? 13923max_cmd_len=$lt_cv_sys_max_cmd_len 13924 13925# Does compiler simultaneously support -c and -o options? 13926compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13927 13928# Must we lock files when doing compilation? 13929need_locks=$lt_need_locks 13930 13931# Do we need the lib prefix for modules? 13932need_lib_prefix=$need_lib_prefix 13933 13934# Do we need a version for libraries? 13935need_version=$need_version 13936 13937# Whether dlopen is supported. 13938dlopen_support=$enable_dlopen 13939 13940# Whether dlopen of programs is supported. 13941dlopen_self=$enable_dlopen_self 13942 13943# Whether dlopen of statically linked programs is supported. 13944dlopen_self_static=$enable_dlopen_self_static 13945 13946# Compiler flag to prevent dynamic linking. 13947link_static_flag=$lt_lt_prog_compiler_static_CXX 13948 13949# Compiler flag to turn off builtin functions. 13950no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13951 13952# Compiler flag to allow reflexive dlopens. 13953export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13954 13955# Compiler flag to generate shared objects directly from archives. 13956whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13957 13958# Compiler flag to generate thread-safe objects. 13959thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13960 13961# Library versioning type. 13962version_type=$version_type 13963 13964# Format of library name prefix. 13965libname_spec=$lt_libname_spec 13966 13967# List of archive names. First name is the real one, the rest are links. 13968# The last name is the one that the linker finds with -lNAME. 13969library_names_spec=$lt_library_names_spec 13970 13971# The coded name of the library, if different from the real name. 13972soname_spec=$lt_soname_spec 13973 13974# Commands used to build and install an old-style archive. 13975RANLIB=$lt_RANLIB 13976old_archive_cmds=$lt_old_archive_cmds_CXX 13977old_postinstall_cmds=$lt_old_postinstall_cmds 13978old_postuninstall_cmds=$lt_old_postuninstall_cmds 13979 13980# Create an old-style archive from a shared archive. 13981old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13982 13983# Create a temporary old-style archive to link instead of a shared archive. 13984old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13985 13986# Commands used to build and install a shared archive. 13987archive_cmds=$lt_archive_cmds_CXX 13988archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13989postinstall_cmds=$lt_postinstall_cmds 13990postuninstall_cmds=$lt_postuninstall_cmds 13991 13992# Commands used to build a loadable module (assumed same as above if empty) 13993module_cmds=$lt_module_cmds_CXX 13994module_expsym_cmds=$lt_module_expsym_cmds_CXX 13995 13996# Commands to strip libraries. 13997old_striplib=$lt_old_striplib 13998striplib=$lt_striplib 13999 14000# Dependencies to place before the objects being linked to create a 14001# shared library. 14002predep_objects=$lt_predep_objects_CXX 14003 14004# Dependencies to place after the objects being linked to create a 14005# shared library. 14006postdep_objects=$lt_postdep_objects_CXX 14007 14008# Dependencies to place before the objects being linked to create a 14009# shared library. 14010predeps=$lt_predeps_CXX 14011 14012# Dependencies to place after the objects being linked to create a 14013# shared library. 14014postdeps=$lt_postdeps_CXX 14015 14016# The directories searched by this compiler when creating a shared 14017# library 14018compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 14019 14020# The library search path used internally by the compiler when linking 14021# a shared library. 14022compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 14023 14024# Method to check whether dependent libraries are shared objects. 14025deplibs_check_method=$lt_deplibs_check_method 14026 14027# Command to use when deplibs_check_method == file_magic. 14028file_magic_cmd=$lt_file_magic_cmd 14029 14030# Flag that allows shared libraries with undefined symbols to be built. 14031allow_undefined_flag=$lt_allow_undefined_flag_CXX 14032 14033# Flag that forces no undefined symbols. 14034no_undefined_flag=$lt_no_undefined_flag_CXX 14035 14036# Commands used to finish a libtool library installation in a directory. 14037finish_cmds=$lt_finish_cmds 14038 14039# Same as above, but a single script fragment to be evaled but not shown. 14040finish_eval=$lt_finish_eval 14041 14042# Take the output of nm and produce a listing of raw symbols and C names. 14043global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14044 14045# Transform the output of nm in a proper C declaration 14046global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14047 14048# Transform the output of nm in a C name address pair 14049global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14050 14051# This is the shared library runtime path variable. 14052runpath_var=$runpath_var 14053 14054# This is the shared library path variable. 14055shlibpath_var=$shlibpath_var 14056 14057# Is shlibpath searched before the hard-coded library search path? 14058shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14059 14060# How to hardcode a shared library path into an executable. 14061hardcode_action=$hardcode_action_CXX 14062 14063# Whether we should hardcode library paths into libraries. 14064hardcode_into_libs=$hardcode_into_libs 14065 14066# Flag to hardcode \$libdir into a binary during linking. 14067# This must work even if \$libdir does not exist. 14068hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 14069 14070# If ld is used when linking, flag to hardcode \$libdir into 14071# a binary during linking. This must work even if \$libdir does 14072# not exist. 14073hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 14074 14075# Whether we need a single -rpath flag with a separated argument. 14076hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 14077 14078# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 14079# resulting binary. 14080hardcode_direct=$hardcode_direct_CXX 14081 14082# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 14083# resulting binary. 14084hardcode_minus_L=$hardcode_minus_L_CXX 14085 14086# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 14087# the resulting binary. 14088hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 14089 14090# Set to yes if building a shared library automatically hardcodes DIR into the library 14091# and all subsequent libraries and executables linked against it. 14092hardcode_automatic=$hardcode_automatic_CXX 14093 14094# Variables whose values should be saved in libtool wrapper scripts and 14095# restored at relink time. 14096variables_saved_for_relink="$variables_saved_for_relink" 14097 14098# Whether libtool must link a program against all its dependency libraries. 14099link_all_deplibs=$link_all_deplibs_CXX 14100 14101# Compile-time system search path for libraries 14102sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14103 14104# Run-time system search path for libraries 14105sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14106 14107# Fix the shell variable \$srcfile for the compiler. 14108fix_srcfile_path=$lt_fix_srcfile_path 14109 14110# Set to yes if exported symbols are required. 14111always_export_symbols=$always_export_symbols_CXX 14112 14113# The commands to list exported symbols. 14114export_symbols_cmds=$lt_export_symbols_cmds_CXX 14115 14116# The commands to extract the exported symbol list from a shared archive. 14117extract_expsyms_cmds=$lt_extract_expsyms_cmds 14118 14119# Symbols that should not be listed in the preloaded symbols. 14120exclude_expsyms=$lt_exclude_expsyms_CXX 14121 14122# Symbols that must always be exported. 14123include_expsyms=$lt_include_expsyms_CXX 14124 14125# ### END LIBTOOL TAG CONFIG: $tagname 14126 14127__EOF__ 14128 14129 14130else 14131 # If there is no Makefile yet, we rely on a make rule to execute 14132 # `config.status --recheck' to rerun these tests and create the 14133 # libtool script then. 14134 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 14135 if test -f "$ltmain_in"; then 14136 test -f Makefile && make "$ltmain" 14137 fi 14138fi 14139 14140 14141ac_ext=c 14142ac_cpp='$CPP $CPPFLAGS' 14143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14145ac_compiler_gnu=$ac_cv_c_compiler_gnu 14146 14147CC=$lt_save_CC 14148LDCXX=$LD 14149LD=$lt_save_LD 14150GCC=$lt_save_GCC 14151with_gnu_ldcxx=$with_gnu_ld 14152with_gnu_ld=$lt_save_with_gnu_ld 14153lt_cv_path_LDCXX=$lt_cv_path_LD 14154lt_cv_path_LD=$lt_save_path_LD 14155lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14156lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14157 14158 else 14159 tagname="" 14160 fi 14161 ;; 14162 14163 F77) 14164 if test -n "$F77" && test "X$F77" != "Xno"; then 14165 14166ac_ext=f 14167ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 14168ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14169ac_compiler_gnu=$ac_cv_f77_compiler_gnu 14170 14171 14172archive_cmds_need_lc_F77=no 14173allow_undefined_flag_F77= 14174always_export_symbols_F77=no 14175archive_expsym_cmds_F77= 14176export_dynamic_flag_spec_F77= 14177hardcode_direct_F77=no 14178hardcode_libdir_flag_spec_F77= 14179hardcode_libdir_flag_spec_ld_F77= 14180hardcode_libdir_separator_F77= 14181hardcode_minus_L_F77=no 14182hardcode_automatic_F77=no 14183module_cmds_F77= 14184module_expsym_cmds_F77= 14185link_all_deplibs_F77=unknown 14186old_archive_cmds_F77=$old_archive_cmds 14187no_undefined_flag_F77= 14188whole_archive_flag_spec_F77= 14189enable_shared_with_static_runtimes_F77=no 14190 14191# Source file extension for f77 test sources. 14192ac_ext=f 14193 14194# Object file extension for compiled f77 test sources. 14195objext=o 14196objext_F77=$objext 14197 14198# Code to be used in simple compile tests 14199lt_simple_compile_test_code="\ 14200 subroutine t 14201 return 14202 end 14203" 14204 14205# Code to be used in simple link tests 14206lt_simple_link_test_code="\ 14207 program t 14208 end 14209" 14210 14211# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14212 14213# If no C compiler was specified, use CC. 14214LTCC=${LTCC-"$CC"} 14215 14216# If no C compiler flags were specified, use CFLAGS. 14217LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14218 14219# Allow CC to be a program name with arguments. 14220compiler=$CC 14221 14222 14223# save warnings/boilerplate of simple test code 14224ac_outfile=conftest.$ac_objext 14225echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14226eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14227_lt_compiler_boilerplate=`cat conftest.err` 14228$rm conftest* 14229 14230ac_outfile=conftest.$ac_objext 14231echo "$lt_simple_link_test_code" >conftest.$ac_ext 14232eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14233_lt_linker_boilerplate=`cat conftest.err` 14234$rm -r conftest* 14235 14236 14237# Allow CC to be a program name with arguments. 14238lt_save_CC="$CC" 14239CC=${F77-"f77"} 14240compiler=$CC 14241compiler_F77=$CC 14242for cc_temp in $compiler""; do 14243 case $cc_temp in 14244 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14245 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14246 \-*) ;; 14247 *) break;; 14248 esac 14249done 14250cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14251 14252 14253{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 14254$as_echo_n "checking if libtool supports shared libraries... " >&6; } 14255{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 14256$as_echo "$can_build_shared" >&6; } 14257 14258{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 14259$as_echo_n "checking whether to build shared libraries... " >&6; } 14260test "$can_build_shared" = "no" && enable_shared=no 14261 14262# On AIX, shared libraries and static libraries use the same namespace, and 14263# are all built from PIC. 14264case $host_os in 14265aix3*) 14266 test "$enable_shared" = yes && enable_static=no 14267 if test -n "$RANLIB"; then 14268 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14269 postinstall_cmds='$RANLIB $lib' 14270 fi 14271 ;; 14272aix[4-9]*) 14273 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14274 test "$enable_shared" = yes && enable_static=no 14275 fi 14276 ;; 14277esac 14278{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 14279$as_echo "$enable_shared" >&6; } 14280 14281{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 14282$as_echo_n "checking whether to build static libraries... " >&6; } 14283# Make sure either enable_shared or enable_static is yes. 14284test "$enable_shared" = yes || enable_static=yes 14285{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5 14286$as_echo "$enable_static" >&6; } 14287 14288GCC_F77="$G77" 14289LD_F77="$LD" 14290 14291lt_prog_compiler_wl_F77= 14292lt_prog_compiler_pic_F77= 14293lt_prog_compiler_static_F77= 14294 14295{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14296$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14297 14298 if test "$GCC" = yes; then 14299 lt_prog_compiler_wl_F77='-Wl,' 14300 lt_prog_compiler_static_F77='-static' 14301 14302 case $host_os in 14303 aix*) 14304 # All AIX code is PIC. 14305 if test "$host_cpu" = ia64; then 14306 # AIX 5 now supports IA64 processor 14307 lt_prog_compiler_static_F77='-Bstatic' 14308 fi 14309 ;; 14310 14311 amigaos*) 14312 # FIXME: we need at least 68020 code to build shared libraries, but 14313 # adding the `-m68020' flag to GCC prevents building anything better, 14314 # like `-m68040'. 14315 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14316 ;; 14317 14318 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14319 # PIC is the default for these OSes. 14320 ;; 14321 14322 mingw* | cygwin* | pw32* | os2*) 14323 # This hack is so that the source file can tell whether it is being 14324 # built for inclusion in a dll (and should export symbols for example). 14325 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14326 # (--disable-auto-import) libraries 14327 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14328 ;; 14329 14330 darwin* | rhapsody*) 14331 # PIC is the default on this platform 14332 # Common symbols not allowed in MH_DYLIB files 14333 lt_prog_compiler_pic_F77='-fno-common' 14334 ;; 14335 14336 interix[3-9]*) 14337 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14338 # Instead, we relocate shared libraries at runtime. 14339 ;; 14340 14341 msdosdjgpp*) 14342 # Just because we use GCC doesn't mean we suddenly get shared libraries 14343 # on systems that don't support them. 14344 lt_prog_compiler_can_build_shared_F77=no 14345 enable_shared=no 14346 ;; 14347 14348 sysv4*MP*) 14349 if test -d /usr/nec; then 14350 lt_prog_compiler_pic_F77=-Kconform_pic 14351 fi 14352 ;; 14353 14354 hpux*) 14355 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14356 # not for PA HP-UX. 14357 case $host_cpu in 14358 hppa*64*|ia64*) 14359 # +Z the default 14360 ;; 14361 *) 14362 lt_prog_compiler_pic_F77='-fPIC' 14363 ;; 14364 esac 14365 ;; 14366 14367 *) 14368 lt_prog_compiler_pic_F77='-fPIC' 14369 ;; 14370 esac 14371 else 14372 # PORTME Check for flag to pass linker flags through the system compiler. 14373 case $host_os in 14374 aix*) 14375 lt_prog_compiler_wl_F77='-Wl,' 14376 if test "$host_cpu" = ia64; then 14377 # AIX 5 now supports IA64 processor 14378 lt_prog_compiler_static_F77='-Bstatic' 14379 else 14380 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 14381 fi 14382 ;; 14383 darwin*) 14384 # PIC is the default on this platform 14385 # Common symbols not allowed in MH_DYLIB files 14386 case $cc_basename in 14387 xlc*) 14388 lt_prog_compiler_pic_F77='-qnocommon' 14389 lt_prog_compiler_wl_F77='-Wl,' 14390 ;; 14391 esac 14392 ;; 14393 14394 mingw* | cygwin* | pw32* | os2*) 14395 # This hack is so that the source file can tell whether it is being 14396 # built for inclusion in a dll (and should export symbols for example). 14397 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14398 ;; 14399 14400 hpux9* | hpux10* | hpux11*) 14401 lt_prog_compiler_wl_F77='-Wl,' 14402 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14403 # not for PA HP-UX. 14404 case $host_cpu in 14405 hppa*64*|ia64*) 14406 # +Z the default 14407 ;; 14408 *) 14409 lt_prog_compiler_pic_F77='+Z' 14410 ;; 14411 esac 14412 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14413 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 14414 ;; 14415 14416 irix5* | irix6* | nonstopux*) 14417 lt_prog_compiler_wl_F77='-Wl,' 14418 # PIC (with -KPIC) is the default. 14419 lt_prog_compiler_static_F77='-non_shared' 14420 ;; 14421 14422 newsos6) 14423 lt_prog_compiler_pic_F77='-KPIC' 14424 lt_prog_compiler_static_F77='-Bstatic' 14425 ;; 14426 14427 linux* | k*bsd*-gnu) 14428 case $cc_basename in 14429 icc* | ecc*) 14430 lt_prog_compiler_wl_F77='-Wl,' 14431 lt_prog_compiler_pic_F77='-KPIC' 14432 lt_prog_compiler_static_F77='-static' 14433 ;; 14434 pgcc* | pgf77* | pgf90* | pgf95*) 14435 # Portland Group compilers (*not* the Pentium gcc compiler, 14436 # which looks to be a dead project) 14437 lt_prog_compiler_wl_F77='-Wl,' 14438 lt_prog_compiler_pic_F77='-fpic' 14439 lt_prog_compiler_static_F77='-Bstatic' 14440 ;; 14441 ccc*) 14442 lt_prog_compiler_wl_F77='-Wl,' 14443 # All Alpha code is PIC. 14444 lt_prog_compiler_static_F77='-non_shared' 14445 ;; 14446 *) 14447 case `$CC -V 2>&1 | sed 5q` in 14448 *Sun\ C*) 14449 # Sun C 5.9 14450 lt_prog_compiler_pic_F77='-KPIC' 14451 lt_prog_compiler_static_F77='-Bstatic' 14452 lt_prog_compiler_wl_F77='-Wl,' 14453 ;; 14454 *Sun\ F*) 14455 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14456 lt_prog_compiler_pic_F77='-KPIC' 14457 lt_prog_compiler_static_F77='-Bstatic' 14458 lt_prog_compiler_wl_F77='' 14459 ;; 14460 esac 14461 ;; 14462 esac 14463 ;; 14464 14465 osf3* | osf4* | osf5*) 14466 lt_prog_compiler_wl_F77='-Wl,' 14467 # All OSF/1 code is PIC. 14468 lt_prog_compiler_static_F77='-non_shared' 14469 ;; 14470 14471 rdos*) 14472 lt_prog_compiler_static_F77='-non_shared' 14473 ;; 14474 14475 solaris*) 14476 lt_prog_compiler_pic_F77='-KPIC' 14477 lt_prog_compiler_static_F77='-Bstatic' 14478 case $cc_basename in 14479 f77* | f90* | f95*) 14480 lt_prog_compiler_wl_F77='-Qoption ld ';; 14481 *) 14482 lt_prog_compiler_wl_F77='-Wl,';; 14483 esac 14484 ;; 14485 14486 sunos4*) 14487 lt_prog_compiler_wl_F77='-Qoption ld ' 14488 lt_prog_compiler_pic_F77='-PIC' 14489 lt_prog_compiler_static_F77='-Bstatic' 14490 ;; 14491 14492 sysv4 | sysv4.2uw2* | sysv4.3*) 14493 lt_prog_compiler_wl_F77='-Wl,' 14494 lt_prog_compiler_pic_F77='-KPIC' 14495 lt_prog_compiler_static_F77='-Bstatic' 14496 ;; 14497 14498 sysv4*MP*) 14499 if test -d /usr/nec ;then 14500 lt_prog_compiler_pic_F77='-Kconform_pic' 14501 lt_prog_compiler_static_F77='-Bstatic' 14502 fi 14503 ;; 14504 14505 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14506 lt_prog_compiler_wl_F77='-Wl,' 14507 lt_prog_compiler_pic_F77='-KPIC' 14508 lt_prog_compiler_static_F77='-Bstatic' 14509 ;; 14510 14511 unicos*) 14512 lt_prog_compiler_wl_F77='-Wl,' 14513 lt_prog_compiler_can_build_shared_F77=no 14514 ;; 14515 14516 uts4*) 14517 lt_prog_compiler_pic_F77='-pic' 14518 lt_prog_compiler_static_F77='-Bstatic' 14519 ;; 14520 14521 *) 14522 lt_prog_compiler_can_build_shared_F77=no 14523 ;; 14524 esac 14525 fi 14526 14527{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14528$as_echo "$lt_prog_compiler_pic_F77" >&6; } 14529 14530# 14531# Check to make sure the PIC flag actually works. 14532# 14533if test -n "$lt_prog_compiler_pic_F77"; then 14534 14535{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14536$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; } 14537if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then 14538 $as_echo_n "(cached) " >&6 14539else 14540 lt_cv_prog_compiler_pic_works_F77=no 14541 ac_outfile=conftest.$ac_objext 14542 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14543 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14544 # Insert the option either (1) after the last *FLAGS variable, or 14545 # (2) before a word containing "conftest.", or (3) at the end. 14546 # Note that $ac_compile itself does not contain backslashes and begins 14547 # with a dollar sign (not a hyphen), so the echo should work correctly. 14548 # The option is referenced via a variable to avoid confusing sed. 14549 lt_compile=`echo "$ac_compile" | $SED \ 14550 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14551 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14552 -e 's:$: $lt_compiler_flag:'` 14553 (eval echo "\"\$as_me:14553: $lt_compile\"" >&5) 14554 (eval "$lt_compile" 2>conftest.err) 14555 ac_status=$? 14556 cat conftest.err >&5 14557 echo "$as_me:14557: \$? = $ac_status" >&5 14558 if (exit $ac_status) && test -s "$ac_outfile"; then 14559 # The compiler can only warn and ignore the option if not recognized 14560 # So say no if there are warnings other than the usual output. 14561 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14562 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14563 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14564 lt_cv_prog_compiler_pic_works_F77=yes 14565 fi 14566 fi 14567 $rm conftest* 14568 14569fi 14570{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5 14571$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; } 14572 14573if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then 14574 case $lt_prog_compiler_pic_F77 in 14575 "" | " "*) ;; 14576 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14577 esac 14578else 14579 lt_prog_compiler_pic_F77= 14580 lt_prog_compiler_can_build_shared_F77=no 14581fi 14582 14583fi 14584case $host_os in 14585 # For platforms which do not support PIC, -DPIC is meaningless: 14586 *djgpp*) 14587 lt_prog_compiler_pic_F77= 14588 ;; 14589 *) 14590 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14591 ;; 14592esac 14593 14594# 14595# Check to make sure the static flag actually works. 14596# 14597wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14598{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14599$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14600if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then 14601 $as_echo_n "(cached) " >&6 14602else 14603 lt_cv_prog_compiler_static_works_F77=no 14604 save_LDFLAGS="$LDFLAGS" 14605 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14606 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14607 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14608 # The linker can only warn and ignore the option if not recognized 14609 # So say no if there are warnings 14610 if test -s conftest.err; then 14611 # Append any errors to the config.log. 14612 cat conftest.err 1>&5 14613 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14614 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14615 if diff conftest.exp conftest.er2 >/dev/null; then 14616 lt_cv_prog_compiler_static_works_F77=yes 14617 fi 14618 else 14619 lt_cv_prog_compiler_static_works_F77=yes 14620 fi 14621 fi 14622 $rm -r conftest* 14623 LDFLAGS="$save_LDFLAGS" 14624 14625fi 14626{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5 14627$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; } 14628 14629if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then 14630 : 14631else 14632 lt_prog_compiler_static_F77= 14633fi 14634 14635 14636{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14637$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14638if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14639 $as_echo_n "(cached) " >&6 14640else 14641 lt_cv_prog_compiler_c_o_F77=no 14642 $rm -r conftest 2>/dev/null 14643 mkdir conftest 14644 cd conftest 14645 mkdir out 14646 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14647 14648 lt_compiler_flag="-o out/conftest2.$ac_objext" 14649 # Insert the option either (1) after the last *FLAGS variable, or 14650 # (2) before a word containing "conftest.", or (3) at the end. 14651 # Note that $ac_compile itself does not contain backslashes and begins 14652 # with a dollar sign (not a hyphen), so the echo should work correctly. 14653 lt_compile=`echo "$ac_compile" | $SED \ 14654 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14655 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14656 -e 's:$: $lt_compiler_flag:'` 14657 (eval echo "\"\$as_me:14657: $lt_compile\"" >&5) 14658 (eval "$lt_compile" 2>out/conftest.err) 14659 ac_status=$? 14660 cat out/conftest.err >&5 14661 echo "$as_me:14661: \$? = $ac_status" >&5 14662 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14663 then 14664 # The compiler can only warn and ignore the option if not recognized 14665 # So say no if there are warnings 14666 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14667 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14668 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14669 lt_cv_prog_compiler_c_o_F77=yes 14670 fi 14671 fi 14672 chmod u+w . 2>&5 14673 $rm conftest* 14674 # SGI C++ compiler will create directory out/ii_files/ for 14675 # template instantiation 14676 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14677 $rm out/* && rmdir out 14678 cd .. 14679 rmdir conftest 14680 $rm conftest* 14681 14682fi 14683{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14684$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; } 14685 14686 14687hard_links="nottested" 14688if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14689 # do not overwrite the value of need_locks provided by the user 14690 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14691$as_echo_n "checking if we can lock with hard links... " >&6; } 14692 hard_links=yes 14693 $rm conftest* 14694 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14695 touch conftest.a 14696 ln conftest.a conftest.b 2>&5 || hard_links=no 14697 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14698 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 14699$as_echo "$hard_links" >&6; } 14700 if test "$hard_links" = no; then 14701 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14702$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14703 need_locks=warn 14704 fi 14705else 14706 need_locks=no 14707fi 14708 14709{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14710$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14711 14712 runpath_var= 14713 allow_undefined_flag_F77= 14714 enable_shared_with_static_runtimes_F77=no 14715 archive_cmds_F77= 14716 archive_expsym_cmds_F77= 14717 old_archive_From_new_cmds_F77= 14718 old_archive_from_expsyms_cmds_F77= 14719 export_dynamic_flag_spec_F77= 14720 whole_archive_flag_spec_F77= 14721 thread_safe_flag_spec_F77= 14722 hardcode_libdir_flag_spec_F77= 14723 hardcode_libdir_flag_spec_ld_F77= 14724 hardcode_libdir_separator_F77= 14725 hardcode_direct_F77=no 14726 hardcode_minus_L_F77=no 14727 hardcode_shlibpath_var_F77=unsupported 14728 link_all_deplibs_F77=unknown 14729 hardcode_automatic_F77=no 14730 module_cmds_F77= 14731 module_expsym_cmds_F77= 14732 always_export_symbols_F77=no 14733 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14734 # include_expsyms should be a list of space-separated symbols to be *always* 14735 # included in the symbol list 14736 include_expsyms_F77= 14737 # exclude_expsyms can be an extended regexp of symbols to exclude 14738 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14739 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14740 # as well as any symbol that contains `d'. 14741 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14742 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14743 # platforms (ab)use it in PIC code, but their linkers get confused if 14744 # the symbol is explicitly referenced. Since portable code cannot 14745 # rely on this symbol name, it's probably fine to never include it in 14746 # preloaded symbol tables. 14747 # Exclude shared library initialization/finalization symbols. 14748 extract_expsyms_cmds= 14749 # Just being paranoid about ensuring that cc_basename is set. 14750 for cc_temp in $compiler""; do 14751 case $cc_temp in 14752 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14753 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14754 \-*) ;; 14755 *) break;; 14756 esac 14757done 14758cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14759 14760 case $host_os in 14761 cygwin* | mingw* | pw32*) 14762 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14763 # When not using gcc, we currently assume that we are using 14764 # Microsoft Visual C++. 14765 if test "$GCC" != yes; then 14766 with_gnu_ld=no 14767 fi 14768 ;; 14769 interix*) 14770 # we just hope/assume this is gcc and not c89 (= MSVC++) 14771 with_gnu_ld=yes 14772 ;; 14773 openbsd*) 14774 with_gnu_ld=no 14775 ;; 14776 esac 14777 14778 ld_shlibs_F77=yes 14779 if test "$with_gnu_ld" = yes; then 14780 # If archive_cmds runs LD, not CC, wlarc should be empty 14781 wlarc='${wl}' 14782 14783 # Set some defaults for GNU ld with shared library support. These 14784 # are reset later if shared libraries are not supported. Putting them 14785 # here allows them to be overridden if necessary. 14786 runpath_var=LD_RUN_PATH 14787 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14788 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14789 # ancient GNU ld didn't support --whole-archive et. al. 14790 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14791 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14792 else 14793 whole_archive_flag_spec_F77= 14794 fi 14795 supports_anon_versioning=no 14796 case `$LD -v 2>/dev/null` in 14797 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14798 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14799 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14800 *\ 2.11.*) ;; # other 2.11 versions 14801 *) supports_anon_versioning=yes ;; 14802 esac 14803 14804 # See if GNU ld supports shared libraries. 14805 case $host_os in 14806 aix[3-9]*) 14807 # On AIX/PPC, the GNU linker is very broken 14808 if test "$host_cpu" != ia64; then 14809 ld_shlibs_F77=no 14810 cat <<EOF 1>&2 14811 14812*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14813*** to be unable to reliably create shared libraries on AIX. 14814*** Therefore, libtool is disabling shared libraries support. If you 14815*** really care for shared libraries, you may want to modify your PATH 14816*** so that a non-GNU linker is found, and then restart. 14817 14818EOF 14819 fi 14820 ;; 14821 14822 amigaos*) 14823 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 14824 hardcode_libdir_flag_spec_F77='-L$libdir' 14825 hardcode_minus_L_F77=yes 14826 14827 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14828 # that the semantics of dynamic libraries on AmigaOS, at least up 14829 # to version 4, is to share data among multiple programs linked 14830 # with the same dynamic library. Since this doesn't match the 14831 # behavior of shared libraries on other platforms, we can't use 14832 # them. 14833 ld_shlibs_F77=no 14834 ;; 14835 14836 beos*) 14837 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14838 allow_undefined_flag_F77=unsupported 14839 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14840 # support --undefined. This deserves some investigation. FIXME 14841 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14842 else 14843 ld_shlibs_F77=no 14844 fi 14845 ;; 14846 14847 cygwin* | mingw* | pw32*) 14848 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14849 # as there is no search path for DLLs. 14850 hardcode_libdir_flag_spec_F77='-L$libdir' 14851 allow_undefined_flag_F77=unsupported 14852 always_export_symbols_F77=no 14853 enable_shared_with_static_runtimes_F77=yes 14854 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 14855 14856 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14857 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14858 # If the export-symbols file already is a .def file (1st line 14859 # is EXPORTS), use it as is; otherwise, prepend... 14860 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14861 cp $export_symbols $output_objdir/$soname.def; 14862 else 14863 echo EXPORTS > $output_objdir/$soname.def; 14864 cat $export_symbols >> $output_objdir/$soname.def; 14865 fi~ 14866 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14867 else 14868 ld_shlibs_F77=no 14869 fi 14870 ;; 14871 14872 interix[3-9]*) 14873 hardcode_direct_F77=no 14874 hardcode_shlibpath_var_F77=no 14875 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14876 export_dynamic_flag_spec_F77='${wl}-E' 14877 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14878 # Instead, shared libraries are loaded at an image base (0x10000000 by 14879 # default) and relocated if they conflict, which is a slow very memory 14880 # consuming and fragmenting process. To avoid this, we pick a random, 14881 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14882 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14883 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 14884 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 14885 ;; 14886 14887 gnu* | linux* | k*bsd*-gnu) 14888 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14889 tmp_addflag= 14890 case $cc_basename,$host_cpu in 14891 pgcc*) # Portland Group C compiler 14892 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 14893 tmp_addflag=' $pic_flag' 14894 ;; 14895 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14896 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 14897 tmp_addflag=' $pic_flag -Mnomain' ;; 14898 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14899 tmp_addflag=' -i_dynamic' ;; 14900 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14901 tmp_addflag=' -i_dynamic -nofor_main' ;; 14902 ifc* | ifort*) # Intel Fortran compiler 14903 tmp_addflag=' -nofor_main' ;; 14904 esac 14905 case `$CC -V 2>&1 | sed 5q` in 14906 *Sun\ C*) # Sun C 5.9 14907 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 14908 tmp_sharedflag='-G' ;; 14909 *Sun\ F*) # Sun Fortran 8.3 14910 tmp_sharedflag='-G' ;; 14911 *) 14912 tmp_sharedflag='-shared' ;; 14913 esac 14914 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14915 14916 if test $supports_anon_versioning = yes; then 14917 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14918 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14919 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14920 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14921 fi 14922 else 14923 ld_shlibs_F77=no 14924 fi 14925 ;; 14926 14927 netbsd*) 14928 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14929 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14930 wlarc= 14931 else 14932 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14933 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14934 fi 14935 ;; 14936 14937 solaris*) 14938 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14939 ld_shlibs_F77=no 14940 cat <<EOF 1>&2 14941 14942*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14943*** create shared libraries on Solaris systems. Therefore, libtool 14944*** is disabling shared libraries support. We urge you to upgrade GNU 14945*** binutils to release 2.9.1 or newer. Another option is to modify 14946*** your PATH or compiler configuration so that the native linker is 14947*** used, and then restart. 14948 14949EOF 14950 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14951 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14952 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14953 else 14954 ld_shlibs_F77=no 14955 fi 14956 ;; 14957 14958 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14959 case `$LD -v 2>&1` in 14960 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14961 ld_shlibs_F77=no 14962 cat <<_LT_EOF 1>&2 14963 14964*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14965*** reliably create shared libraries on SCO systems. Therefore, libtool 14966*** is disabling shared libraries support. We urge you to upgrade GNU 14967*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14968*** your PATH or compiler configuration so that the native linker is 14969*** used, and then restart. 14970 14971_LT_EOF 14972 ;; 14973 *) 14974 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14975 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14976 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14977 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14978 else 14979 ld_shlibs_F77=no 14980 fi 14981 ;; 14982 esac 14983 ;; 14984 14985 sunos4*) 14986 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14987 wlarc= 14988 hardcode_direct_F77=yes 14989 hardcode_shlibpath_var_F77=no 14990 ;; 14991 14992 *) 14993 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14994 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14995 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14996 else 14997 ld_shlibs_F77=no 14998 fi 14999 ;; 15000 esac 15001 15002 if test "$ld_shlibs_F77" = no; then 15003 runpath_var= 15004 hardcode_libdir_flag_spec_F77= 15005 export_dynamic_flag_spec_F77= 15006 whole_archive_flag_spec_F77= 15007 fi 15008 else 15009 # PORTME fill in a description of your system's linker (not GNU ld) 15010 case $host_os in 15011 aix3*) 15012 allow_undefined_flag_F77=unsupported 15013 always_export_symbols_F77=yes 15014 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 15015 # Note: this linker hardcodes the directories in LIBPATH if there 15016 # are no directories specified by -L. 15017 hardcode_minus_L_F77=yes 15018 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 15019 # Neither direct hardcoding nor static linking is supported with a 15020 # broken collect2. 15021 hardcode_direct_F77=unsupported 15022 fi 15023 ;; 15024 15025 aix[4-9]*) 15026 if test "$host_cpu" = ia64; then 15027 # On IA64, the linker does run time linking by default, so we don't 15028 # have to do anything special. 15029 aix_use_runtimelinking=no 15030 exp_sym_flag='-Bexport' 15031 no_entry_flag="" 15032 else 15033 # If we're using GNU nm, then we don't want the "-C" option. 15034 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15035 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 15036 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 15037 else 15038 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 15039 fi 15040 aix_use_runtimelinking=no 15041 15042 # Test if we are trying to use run time linking or normal 15043 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15044 # need to do runtime linking. 15045 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15046 for ld_flag in $LDFLAGS; do 15047 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15048 aix_use_runtimelinking=yes 15049 break 15050 fi 15051 done 15052 ;; 15053 esac 15054 15055 exp_sym_flag='-bexport' 15056 no_entry_flag='-bnoentry' 15057 fi 15058 15059 # When large executables or shared objects are built, AIX ld can 15060 # have problems creating the table of contents. If linking a library 15061 # or program results in "error TOC overflow" add -mminimal-toc to 15062 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15063 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15064 15065 archive_cmds_F77='' 15066 hardcode_direct_F77=yes 15067 hardcode_libdir_separator_F77=':' 15068 link_all_deplibs_F77=yes 15069 15070 if test "$GCC" = yes; then 15071 case $host_os in aix4.[012]|aix4.[012].*) 15072 # We only want to do this on AIX 4.2 and lower, the check 15073 # below for broken collect2 doesn't work under 4.3+ 15074 collect2name=`${CC} -print-prog-name=collect2` 15075 if test -f "$collect2name" && \ 15076 strings "$collect2name" | grep resolve_lib_name >/dev/null 15077 then 15078 # We have reworked collect2 15079 : 15080 else 15081 # We have old collect2 15082 hardcode_direct_F77=unsupported 15083 # It fails to find uninstalled libraries when the uninstalled 15084 # path is not listed in the libpath. Setting hardcode_minus_L 15085 # to unsupported forces relinking 15086 hardcode_minus_L_F77=yes 15087 hardcode_libdir_flag_spec_F77='-L$libdir' 15088 hardcode_libdir_separator_F77= 15089 fi 15090 ;; 15091 esac 15092 shared_flag='-shared' 15093 if test "$aix_use_runtimelinking" = yes; then 15094 shared_flag="$shared_flag "'${wl}-G' 15095 fi 15096 else 15097 # not using gcc 15098 if test "$host_cpu" = ia64; then 15099 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15100 # chokes on -Wl,-G. The following line is correct: 15101 shared_flag='-G' 15102 else 15103 if test "$aix_use_runtimelinking" = yes; then 15104 shared_flag='${wl}-G' 15105 else 15106 shared_flag='${wl}-bM:SRE' 15107 fi 15108 fi 15109 fi 15110 15111 # It seems that -bexpall does not export symbols beginning with 15112 # underscore (_), so it is better to generate a list of symbols to export. 15113 always_export_symbols_F77=yes 15114 if test "$aix_use_runtimelinking" = yes; then 15115 # Warning - without using the other runtime loading flags (-brtl), 15116 # -berok will link without error, but may produce a broken library. 15117 allow_undefined_flag_F77='-berok' 15118 # Determine the default libpath from the value encoded in an empty executable. 15119 cat >conftest.$ac_ext <<_ACEOF 15120 program main 15121 15122 end 15123_ACEOF 15124rm -f conftest.$ac_objext conftest$ac_exeext 15125if { (ac_try="$ac_link" 15126case "(($ac_try" in 15127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15128 *) ac_try_echo=$ac_try;; 15129esac 15130eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15131$as_echo "$ac_try_echo") >&5 15132 (eval "$ac_link") 2>conftest.er1 15133 ac_status=$? 15134 grep -v '^ *+' conftest.er1 >conftest.err 15135 rm -f conftest.er1 15136 cat conftest.err >&5 15137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15138 (exit $ac_status); } && { 15139 test -z "$ac_f77_werror_flag" || 15140 test ! -s conftest.err 15141 } && test -s conftest$ac_exeext && { 15142 test "$cross_compiling" = yes || 15143 $as_test_x conftest$ac_exeext 15144 }; then 15145 15146lt_aix_libpath_sed=' 15147 /Import File Strings/,/^$/ { 15148 /^0/ { 15149 s/^0 *\(.*\)$/\1/ 15150 p 15151 } 15152 }' 15153aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15154# Check for a 64-bit object if we didn't find anything. 15155if test -z "$aix_libpath"; then 15156 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15157fi 15158else 15159 $as_echo "$as_me: failed program was:" >&5 15160sed 's/^/| /' conftest.$ac_ext >&5 15161 15162 15163fi 15164 15165rm -rf conftest.dSYM 15166rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15167 conftest$ac_exeext conftest.$ac_ext 15168if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15169 15170 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15171 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 15172 else 15173 if test "$host_cpu" = ia64; then 15174 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 15175 allow_undefined_flag_F77="-z nodefs" 15176 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 15177 else 15178 # Determine the default libpath from the value encoded in an empty executable. 15179 cat >conftest.$ac_ext <<_ACEOF 15180 program main 15181 15182 end 15183_ACEOF 15184rm -f conftest.$ac_objext conftest$ac_exeext 15185if { (ac_try="$ac_link" 15186case "(($ac_try" in 15187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15188 *) ac_try_echo=$ac_try;; 15189esac 15190eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15191$as_echo "$ac_try_echo") >&5 15192 (eval "$ac_link") 2>conftest.er1 15193 ac_status=$? 15194 grep -v '^ *+' conftest.er1 >conftest.err 15195 rm -f conftest.er1 15196 cat conftest.err >&5 15197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15198 (exit $ac_status); } && { 15199 test -z "$ac_f77_werror_flag" || 15200 test ! -s conftest.err 15201 } && test -s conftest$ac_exeext && { 15202 test "$cross_compiling" = yes || 15203 $as_test_x conftest$ac_exeext 15204 }; then 15205 15206lt_aix_libpath_sed=' 15207 /Import File Strings/,/^$/ { 15208 /^0/ { 15209 s/^0 *\(.*\)$/\1/ 15210 p 15211 } 15212 }' 15213aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15214# Check for a 64-bit object if we didn't find anything. 15215if test -z "$aix_libpath"; then 15216 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15217fi 15218else 15219 $as_echo "$as_me: failed program was:" >&5 15220sed 's/^/| /' conftest.$ac_ext >&5 15221 15222 15223fi 15224 15225rm -rf conftest.dSYM 15226rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15227 conftest$ac_exeext conftest.$ac_ext 15228if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15229 15230 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15231 # Warning - without using the other run time loading flags, 15232 # -berok will link without error, but may produce a broken library. 15233 no_undefined_flag_F77=' ${wl}-bernotok' 15234 allow_undefined_flag_F77=' ${wl}-berok' 15235 # Exported symbols can be pulled into shared objects from archives 15236 whole_archive_flag_spec_F77='$convenience' 15237 archive_cmds_need_lc_F77=yes 15238 # This is similar to how AIX traditionally builds its shared libraries. 15239 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 15240 fi 15241 fi 15242 ;; 15243 15244 amigaos*) 15245 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 15246 hardcode_libdir_flag_spec_F77='-L$libdir' 15247 hardcode_minus_L_F77=yes 15248 # see comment about different semantics on the GNU ld section 15249 ld_shlibs_F77=no 15250 ;; 15251 15252 bsdi[45]*) 15253 export_dynamic_flag_spec_F77=-rdynamic 15254 ;; 15255 15256 cygwin* | mingw* | pw32*) 15257 # When not using gcc, we currently assume that we are using 15258 # Microsoft Visual C++. 15259 # hardcode_libdir_flag_spec is actually meaningless, as there is 15260 # no search path for DLLs. 15261 hardcode_libdir_flag_spec_F77=' ' 15262 allow_undefined_flag_F77=unsupported 15263 # Tell ltmain to make .lib files, not .a files. 15264 libext=lib 15265 # Tell ltmain to make .dll files, not .so files. 15266 shrext_cmds=".dll" 15267 # FIXME: Setting linknames here is a bad hack. 15268 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15269 # The linker will automatically build a .lib file if we build a DLL. 15270 old_archive_From_new_cmds_F77='true' 15271 # FIXME: Should let the user specify the lib program. 15272 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' 15273 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 15274 enable_shared_with_static_runtimes_F77=yes 15275 ;; 15276 15277 darwin* | rhapsody*) 15278 case $host_os in 15279 rhapsody* | darwin1.[012]) 15280 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 15281 ;; 15282 *) # Darwin 1.3 on 15283 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15284 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15285 else 15286 case ${MACOSX_DEPLOYMENT_TARGET} in 15287 10.[012]) 15288 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15289 ;; 15290 10.*) 15291 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 15292 ;; 15293 esac 15294 fi 15295 ;; 15296 esac 15297 archive_cmds_need_lc_F77=no 15298 hardcode_direct_F77=no 15299 hardcode_automatic_F77=yes 15300 hardcode_shlibpath_var_F77=unsupported 15301 whole_archive_flag_spec_F77='' 15302 link_all_deplibs_F77=yes 15303 if test "$GCC" = yes ; then 15304 output_verbose_link_cmd='echo' 15305 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 15306 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 15307 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 15308 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 15309 else 15310 case $cc_basename in 15311 xlc*) 15312 output_verbose_link_cmd='echo' 15313 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 15314 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15315 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15316 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15317 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15318 ;; 15319 *) 15320 ld_shlibs_F77=no 15321 ;; 15322 esac 15323 fi 15324 ;; 15325 15326 dgux*) 15327 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15328 hardcode_libdir_flag_spec_F77='-L$libdir' 15329 hardcode_shlibpath_var_F77=no 15330 ;; 15331 15332 freebsd1*) 15333 ld_shlibs_F77=no 15334 ;; 15335 15336 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15337 # support. Future versions do this automatically, but an explicit c++rt0.o 15338 # does not break anything, and helps significantly (at the cost of a little 15339 # extra space). 15340 freebsd2.2*) 15341 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15342 hardcode_libdir_flag_spec_F77='-R$libdir' 15343 hardcode_direct_F77=yes 15344 hardcode_shlibpath_var_F77=no 15345 ;; 15346 15347 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15348 freebsd2*) 15349 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15350 hardcode_direct_F77=yes 15351 hardcode_minus_L_F77=yes 15352 hardcode_shlibpath_var_F77=no 15353 ;; 15354 15355 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15356 freebsd* | dragonfly*) 15357 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15358 hardcode_libdir_flag_spec_F77='-R$libdir' 15359 hardcode_direct_F77=yes 15360 hardcode_shlibpath_var_F77=no 15361 ;; 15362 15363 hpux9*) 15364 if test "$GCC" = yes; then 15365 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 15366 else 15367 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 15368 fi 15369 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15370 hardcode_libdir_separator_F77=: 15371 hardcode_direct_F77=yes 15372 15373 # hardcode_minus_L: Not really in the search PATH, 15374 # but as the default location of the library. 15375 hardcode_minus_L_F77=yes 15376 export_dynamic_flag_spec_F77='${wl}-E' 15377 ;; 15378 15379 hpux10*) 15380 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15381 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15382 else 15383 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15384 fi 15385 if test "$with_gnu_ld" = no; then 15386 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15387 hardcode_libdir_separator_F77=: 15388 15389 hardcode_direct_F77=yes 15390 export_dynamic_flag_spec_F77='${wl}-E' 15391 15392 # hardcode_minus_L: Not really in the search PATH, 15393 # but as the default location of the library. 15394 hardcode_minus_L_F77=yes 15395 fi 15396 ;; 15397 15398 hpux11*) 15399 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15400 case $host_cpu in 15401 hppa*64*) 15402 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15403 ;; 15404 ia64*) 15405 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15406 ;; 15407 *) 15408 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15409 ;; 15410 esac 15411 else 15412 case $host_cpu in 15413 hppa*64*) 15414 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15415 ;; 15416 ia64*) 15417 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15418 ;; 15419 *) 15420 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15421 ;; 15422 esac 15423 fi 15424 if test "$with_gnu_ld" = no; then 15425 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15426 hardcode_libdir_separator_F77=: 15427 15428 case $host_cpu in 15429 hppa*64*|ia64*) 15430 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15431 hardcode_direct_F77=no 15432 hardcode_shlibpath_var_F77=no 15433 ;; 15434 *) 15435 hardcode_direct_F77=yes 15436 export_dynamic_flag_spec_F77='${wl}-E' 15437 15438 # hardcode_minus_L: Not really in the search PATH, 15439 # but as the default location of the library. 15440 hardcode_minus_L_F77=yes 15441 ;; 15442 esac 15443 fi 15444 ;; 15445 15446 irix5* | irix6* | nonstopux*) 15447 if test "$GCC" = yes; then 15448 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15449 else 15450 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 15451 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 15452 fi 15453 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15454 hardcode_libdir_separator_F77=: 15455 link_all_deplibs_F77=yes 15456 ;; 15457 15458 netbsd*) 15459 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15460 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15461 else 15462 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15463 fi 15464 hardcode_libdir_flag_spec_F77='-R$libdir' 15465 hardcode_direct_F77=yes 15466 hardcode_shlibpath_var_F77=no 15467 ;; 15468 15469 newsos6) 15470 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15471 hardcode_direct_F77=yes 15472 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15473 hardcode_libdir_separator_F77=: 15474 hardcode_shlibpath_var_F77=no 15475 ;; 15476 15477 openbsd*) 15478 if test -f /usr/libexec/ld.so; then 15479 hardcode_direct_F77=yes 15480 hardcode_shlibpath_var_F77=no 15481 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15482 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15483 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15484 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15485 export_dynamic_flag_spec_F77='${wl}-E' 15486 else 15487 case $host_os in 15488 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15489 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15490 hardcode_libdir_flag_spec_F77='-R$libdir' 15491 ;; 15492 *) 15493 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15494 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15495 ;; 15496 esac 15497 fi 15498 else 15499 ld_shlibs_F77=no 15500 fi 15501 ;; 15502 15503 os2*) 15504 hardcode_libdir_flag_spec_F77='-L$libdir' 15505 hardcode_minus_L_F77=yes 15506 allow_undefined_flag_F77=unsupported 15507 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 15508 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15509 ;; 15510 15511 osf3*) 15512 if test "$GCC" = yes; then 15513 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15514 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15515 else 15516 allow_undefined_flag_F77=' -expect_unresolved \*' 15517 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 15518 fi 15519 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15520 hardcode_libdir_separator_F77=: 15521 ;; 15522 15523 osf4* | osf5*) # as osf3* with the addition of -msym flag 15524 if test "$GCC" = yes; then 15525 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15526 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15527 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15528 else 15529 allow_undefined_flag_F77=' -expect_unresolved \*' 15530 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 15531 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 15532 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 15533 15534 # Both c and cxx compiler support -rpath directly 15535 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15536 fi 15537 hardcode_libdir_separator_F77=: 15538 ;; 15539 15540 solaris*) 15541 no_undefined_flag_F77=' -z text' 15542 if test "$GCC" = yes; then 15543 wlarc='${wl}' 15544 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15545 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15546 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15547 else 15548 wlarc='' 15549 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15550 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15551 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15552 fi 15553 hardcode_libdir_flag_spec_F77='-R$libdir' 15554 hardcode_shlibpath_var_F77=no 15555 case $host_os in 15556 solaris2.[0-5] | solaris2.[0-5].*) ;; 15557 *) 15558 # The compiler driver will combine and reorder linker options, 15559 # but understands `-z linker_flag'. GCC discards it without `$wl', 15560 # but is careful enough not to reorder. 15561 # Supported since Solaris 2.6 (maybe 2.5.1?) 15562 if test "$GCC" = yes; then 15563 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 15564 else 15565 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' 15566 fi 15567 ;; 15568 esac 15569 link_all_deplibs_F77=yes 15570 ;; 15571 15572 sunos4*) 15573 if test "x$host_vendor" = xsequent; then 15574 # Use $CC to link under sequent, because it throws in some extra .o 15575 # files that make .init and .fini sections work. 15576 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15577 else 15578 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15579 fi 15580 hardcode_libdir_flag_spec_F77='-L$libdir' 15581 hardcode_direct_F77=yes 15582 hardcode_minus_L_F77=yes 15583 hardcode_shlibpath_var_F77=no 15584 ;; 15585 15586 sysv4) 15587 case $host_vendor in 15588 sni) 15589 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15590 hardcode_direct_F77=yes # is this really true??? 15591 ;; 15592 siemens) 15593 ## LD is ld it makes a PLAMLIB 15594 ## CC just makes a GrossModule. 15595 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15596 reload_cmds_F77='$CC -r -o $output$reload_objs' 15597 hardcode_direct_F77=no 15598 ;; 15599 motorola) 15600 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15601 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15602 ;; 15603 esac 15604 runpath_var='LD_RUN_PATH' 15605 hardcode_shlibpath_var_F77=no 15606 ;; 15607 15608 sysv4.3*) 15609 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15610 hardcode_shlibpath_var_F77=no 15611 export_dynamic_flag_spec_F77='-Bexport' 15612 ;; 15613 15614 sysv4*MP*) 15615 if test -d /usr/nec; then 15616 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15617 hardcode_shlibpath_var_F77=no 15618 runpath_var=LD_RUN_PATH 15619 hardcode_runpath_var=yes 15620 ld_shlibs_F77=yes 15621 fi 15622 ;; 15623 15624 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15625 no_undefined_flag_F77='${wl}-z,text' 15626 archive_cmds_need_lc_F77=no 15627 hardcode_shlibpath_var_F77=no 15628 runpath_var='LD_RUN_PATH' 15629 15630 if test "$GCC" = yes; then 15631 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15632 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15633 else 15634 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15635 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15636 fi 15637 ;; 15638 15639 sysv5* | sco3.2v5* | sco5v6*) 15640 # Note: We can NOT use -z defs as we might desire, because we do not 15641 # link with -lc, and that would cause any symbols used from libc to 15642 # always be unresolved, which means just about no library would 15643 # ever link correctly. If we're not using GNU ld we use -z text 15644 # though, which does catch some bad symbols but isn't as heavy-handed 15645 # as -z defs. 15646 no_undefined_flag_F77='${wl}-z,text' 15647 allow_undefined_flag_F77='${wl}-z,nodefs' 15648 archive_cmds_need_lc_F77=no 15649 hardcode_shlibpath_var_F77=no 15650 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15651 hardcode_libdir_separator_F77=':' 15652 link_all_deplibs_F77=yes 15653 export_dynamic_flag_spec_F77='${wl}-Bexport' 15654 runpath_var='LD_RUN_PATH' 15655 15656 if test "$GCC" = yes; then 15657 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15658 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15659 else 15660 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15661 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15662 fi 15663 ;; 15664 15665 uts4*) 15666 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15667 hardcode_libdir_flag_spec_F77='-L$libdir' 15668 hardcode_shlibpath_var_F77=no 15669 ;; 15670 15671 *) 15672 ld_shlibs_F77=no 15673 ;; 15674 esac 15675 fi 15676 15677{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15678$as_echo "$ld_shlibs_F77" >&6; } 15679test "$ld_shlibs_F77" = no && can_build_shared=no 15680 15681# 15682# Do we need to explicitly link libc? 15683# 15684case "x$archive_cmds_need_lc_F77" in 15685x|xyes) 15686 # Assume -lc should be added 15687 archive_cmds_need_lc_F77=yes 15688 15689 if test "$enable_shared" = yes && test "$GCC" = yes; then 15690 case $archive_cmds_F77 in 15691 *'~'*) 15692 # FIXME: we may have to deal with multi-command sequences. 15693 ;; 15694 '$CC '*) 15695 # Test whether the compiler implicitly links with -lc since on some 15696 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15697 # to ld, don't add -lc before -lgcc. 15698 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15699$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15700 $rm conftest* 15701 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15702 15703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15704 (eval $ac_compile) 2>&5 15705 ac_status=$? 15706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15707 (exit $ac_status); } 2>conftest.err; then 15708 soname=conftest 15709 lib=conftest 15710 libobjs=conftest.$ac_objext 15711 deplibs= 15712 wl=$lt_prog_compiler_wl_F77 15713 pic_flag=$lt_prog_compiler_pic_F77 15714 compiler_flags=-v 15715 linker_flags=-v 15716 verstring= 15717 output_objdir=. 15718 libname=conftest 15719 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15720 allow_undefined_flag_F77= 15721 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15722 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15723 ac_status=$? 15724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15725 (exit $ac_status); } 15726 then 15727 archive_cmds_need_lc_F77=no 15728 else 15729 archive_cmds_need_lc_F77=yes 15730 fi 15731 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15732 else 15733 cat conftest.err 1>&5 15734 fi 15735 $rm conftest* 15736 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15737$as_echo "$archive_cmds_need_lc_F77" >&6; } 15738 ;; 15739 esac 15740 fi 15741 ;; 15742esac 15743 15744{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15745$as_echo_n "checking dynamic linker characteristics... " >&6; } 15746library_names_spec= 15747libname_spec='lib$name' 15748soname_spec= 15749shrext_cmds=".so" 15750postinstall_cmds= 15751postuninstall_cmds= 15752finish_cmds= 15753finish_eval= 15754shlibpath_var= 15755shlibpath_overrides_runpath=unknown 15756version_type=none 15757dynamic_linker="$host_os ld.so" 15758sys_lib_dlsearch_path_spec="/lib /usr/lib" 15759 15760need_lib_prefix=unknown 15761hardcode_into_libs=no 15762 15763# when you set need_version to no, make sure it does not cause -set_version 15764# flags to be left without arguments 15765need_version=unknown 15766 15767case $host_os in 15768aix3*) 15769 version_type=linux 15770 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15771 shlibpath_var=LIBPATH 15772 15773 # AIX 3 has no versioning support, so we append a major version to the name. 15774 soname_spec='${libname}${release}${shared_ext}$major' 15775 ;; 15776 15777aix[4-9]*) 15778 version_type=linux 15779 need_lib_prefix=no 15780 need_version=no 15781 hardcode_into_libs=yes 15782 if test "$host_cpu" = ia64; then 15783 # AIX 5 supports IA64 15784 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15785 shlibpath_var=LD_LIBRARY_PATH 15786 else 15787 # With GCC up to 2.95.x, collect2 would create an import file 15788 # for dependence libraries. The import file would start with 15789 # the line `#! .'. This would cause the generated library to 15790 # depend on `.', always an invalid library. This was fixed in 15791 # development snapshots of GCC prior to 3.0. 15792 case $host_os in 15793 aix4 | aix4.[01] | aix4.[01].*) 15794 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15795 echo ' yes ' 15796 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15797 : 15798 else 15799 can_build_shared=no 15800 fi 15801 ;; 15802 esac 15803 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15804 # soname into executable. Probably we can add versioning support to 15805 # collect2, so additional links can be useful in future. 15806 if test "$aix_use_runtimelinking" = yes; then 15807 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15808 # instead of lib<name>.a to let people know that these are not 15809 # typical AIX shared libraries. 15810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15811 else 15812 # We preserve .a as extension for shared libraries through AIX4.2 15813 # and later when we are not doing run time linking. 15814 library_names_spec='${libname}${release}.a $libname.a' 15815 soname_spec='${libname}${release}${shared_ext}$major' 15816 fi 15817 shlibpath_var=LIBPATH 15818 fi 15819 ;; 15820 15821amigaos*) 15822 library_names_spec='$libname.ixlibrary $libname.a' 15823 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15824 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' 15825 ;; 15826 15827beos*) 15828 library_names_spec='${libname}${shared_ext}' 15829 dynamic_linker="$host_os ld.so" 15830 shlibpath_var=LIBRARY_PATH 15831 ;; 15832 15833bsdi[45]*) 15834 version_type=linux 15835 need_version=no 15836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15837 soname_spec='${libname}${release}${shared_ext}$major' 15838 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15839 shlibpath_var=LD_LIBRARY_PATH 15840 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15841 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15842 # the default ld.so.conf also contains /usr/contrib/lib and 15843 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15844 # libtool to hard-code these into programs 15845 ;; 15846 15847cygwin* | mingw* | pw32*) 15848 version_type=windows 15849 shrext_cmds=".dll" 15850 need_version=no 15851 need_lib_prefix=no 15852 15853 case $GCC,$host_os in 15854 yes,cygwin* | yes,mingw* | yes,pw32*) 15855 library_names_spec='$libname.dll.a' 15856 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15857 postinstall_cmds='base_file=`basename \${file}`~ 15858 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15859 dldir=$destdir/`dirname \$dlpath`~ 15860 test -d \$dldir || mkdir -p \$dldir~ 15861 $install_prog $dir/$dlname \$dldir/$dlname~ 15862 chmod a+x \$dldir/$dlname' 15863 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15864 dlpath=$dir/\$dldll~ 15865 $rm \$dlpath' 15866 shlibpath_overrides_runpath=yes 15867 15868 case $host_os in 15869 cygwin*) 15870 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15871 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15872 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15873 ;; 15874 mingw*) 15875 # MinGW DLLs use traditional 'lib' prefix 15876 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15877 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15878 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15879 # It is most probably a Windows format PATH printed by 15880 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15881 # path with ; separators, and with drive letters. We can handle the 15882 # drive letters (cygwin fileutils understands them), so leave them, 15883 # especially as we might pass files found there to a mingw objdump, 15884 # which wouldn't understand a cygwinified path. Ahh. 15885 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15886 else 15887 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15888 fi 15889 ;; 15890 pw32*) 15891 # pw32 DLLs use 'pw' prefix rather than 'lib' 15892 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15893 ;; 15894 esac 15895 ;; 15896 15897 *) 15898 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15899 ;; 15900 esac 15901 dynamic_linker='Win32 ld.exe' 15902 # FIXME: first we should search . and the directory the executable is in 15903 shlibpath_var=PATH 15904 ;; 15905 15906darwin* | rhapsody*) 15907 dynamic_linker="$host_os dyld" 15908 version_type=darwin 15909 need_lib_prefix=no 15910 need_version=no 15911 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15912 soname_spec='${libname}${release}${major}$shared_ext' 15913 shlibpath_overrides_runpath=yes 15914 shlibpath_var=DYLD_LIBRARY_PATH 15915 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15916 15917 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15918 ;; 15919 15920dgux*) 15921 version_type=linux 15922 need_lib_prefix=no 15923 need_version=no 15924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15925 soname_spec='${libname}${release}${shared_ext}$major' 15926 shlibpath_var=LD_LIBRARY_PATH 15927 ;; 15928 15929freebsd1*) 15930 dynamic_linker=no 15931 ;; 15932 15933freebsd* | dragonfly*) 15934 # DragonFly does not have aout. When/if they implement a new 15935 # versioning mechanism, adjust this. 15936 if test -x /usr/bin/objformat; then 15937 objformat=`/usr/bin/objformat` 15938 else 15939 case $host_os in 15940 freebsd[123]*) objformat=aout ;; 15941 *) objformat=elf ;; 15942 esac 15943 fi 15944 version_type=freebsd-$objformat 15945 case $version_type in 15946 freebsd-elf*) 15947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15948 need_version=no 15949 need_lib_prefix=no 15950 ;; 15951 freebsd-*) 15952 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15953 need_version=yes 15954 ;; 15955 esac 15956 shlibpath_var=LD_LIBRARY_PATH 15957 case $host_os in 15958 freebsd2*) 15959 shlibpath_overrides_runpath=yes 15960 ;; 15961 freebsd3.[01]* | freebsdelf3.[01]*) 15962 shlibpath_overrides_runpath=yes 15963 hardcode_into_libs=yes 15964 ;; 15965 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15966 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15967 shlibpath_overrides_runpath=no 15968 hardcode_into_libs=yes 15969 ;; 15970 *) # from 4.6 on, and DragonFly 15971 shlibpath_overrides_runpath=yes 15972 hardcode_into_libs=yes 15973 ;; 15974 esac 15975 ;; 15976 15977gnu*) 15978 version_type=linux 15979 need_lib_prefix=no 15980 need_version=no 15981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15982 soname_spec='${libname}${release}${shared_ext}$major' 15983 shlibpath_var=LD_LIBRARY_PATH 15984 hardcode_into_libs=yes 15985 ;; 15986 15987hpux9* | hpux10* | hpux11*) 15988 # Give a soname corresponding to the major version so that dld.sl refuses to 15989 # link against other versions. 15990 version_type=sunos 15991 need_lib_prefix=no 15992 need_version=no 15993 case $host_cpu in 15994 ia64*) 15995 shrext_cmds='.so' 15996 hardcode_into_libs=yes 15997 dynamic_linker="$host_os dld.so" 15998 shlibpath_var=LD_LIBRARY_PATH 15999 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16001 soname_spec='${libname}${release}${shared_ext}$major' 16002 if test "X$HPUX_IA64_MODE" = X32; then 16003 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16004 else 16005 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16006 fi 16007 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16008 ;; 16009 hppa*64*) 16010 shrext_cmds='.sl' 16011 hardcode_into_libs=yes 16012 dynamic_linker="$host_os dld.sl" 16013 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16014 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16016 soname_spec='${libname}${release}${shared_ext}$major' 16017 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16018 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16019 ;; 16020 *) 16021 shrext_cmds='.sl' 16022 dynamic_linker="$host_os dld.sl" 16023 shlibpath_var=SHLIB_PATH 16024 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16026 soname_spec='${libname}${release}${shared_ext}$major' 16027 ;; 16028 esac 16029 # HP-UX runs *really* slowly unless shared libraries are mode 555. 16030 postinstall_cmds='chmod 555 $lib' 16031 ;; 16032 16033interix[3-9]*) 16034 version_type=linux 16035 need_lib_prefix=no 16036 need_version=no 16037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16038 soname_spec='${libname}${release}${shared_ext}$major' 16039 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16040 shlibpath_var=LD_LIBRARY_PATH 16041 shlibpath_overrides_runpath=no 16042 hardcode_into_libs=yes 16043 ;; 16044 16045irix5* | irix6* | nonstopux*) 16046 case $host_os in 16047 nonstopux*) version_type=nonstopux ;; 16048 *) 16049 if test "$lt_cv_prog_gnu_ld" = yes; then 16050 version_type=linux 16051 else 16052 version_type=irix 16053 fi ;; 16054 esac 16055 need_lib_prefix=no 16056 need_version=no 16057 soname_spec='${libname}${release}${shared_ext}$major' 16058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16059 case $host_os in 16060 irix5* | nonstopux*) 16061 libsuff= shlibsuff= 16062 ;; 16063 *) 16064 case $LD in # libtool.m4 will add one of these switches to LD 16065 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16066 libsuff= shlibsuff= libmagic=32-bit;; 16067 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16068 libsuff=32 shlibsuff=N32 libmagic=N32;; 16069 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16070 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16071 *) libsuff= shlibsuff= libmagic=never-match;; 16072 esac 16073 ;; 16074 esac 16075 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16076 shlibpath_overrides_runpath=no 16077 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16078 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16079 hardcode_into_libs=yes 16080 ;; 16081 16082# No shared lib support for Linux oldld, aout, or coff. 16083linux*oldld* | linux*aout* | linux*coff*) 16084 dynamic_linker=no 16085 ;; 16086 16087# This must be Linux ELF. 16088linux* | k*bsd*-gnu) 16089 version_type=linux 16090 need_lib_prefix=no 16091 need_version=no 16092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16093 soname_spec='${libname}${release}${shared_ext}$major' 16094 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16095 shlibpath_var=LD_LIBRARY_PATH 16096 shlibpath_overrides_runpath=no 16097 # This implies no fast_install, which is unacceptable. 16098 # Some rework will be needed to allow for fast_install 16099 # before this can be enabled. 16100 hardcode_into_libs=yes 16101 16102 # Append ld.so.conf contents to the search path 16103 if test -f /etc/ld.so.conf; then 16104 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' ' '` 16105 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16106 fi 16107 16108 # We used to test for /lib/ld.so.1 and disable shared libraries on 16109 # powerpc, because MkLinux only supported shared libraries with the 16110 # GNU dynamic linker. Since this was broken with cross compilers, 16111 # most powerpc-linux boxes support dynamic linking these days and 16112 # people can always --disable-shared, the test was removed, and we 16113 # assume the GNU/Linux dynamic linker is in use. 16114 dynamic_linker='GNU/Linux ld.so' 16115 ;; 16116 16117netbsd*) 16118 version_type=sunos 16119 need_lib_prefix=no 16120 need_version=no 16121 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16123 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16124 dynamic_linker='NetBSD (a.out) ld.so' 16125 else 16126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16127 soname_spec='${libname}${release}${shared_ext}$major' 16128 dynamic_linker='NetBSD ld.elf_so' 16129 fi 16130 shlibpath_var=LD_LIBRARY_PATH 16131 shlibpath_overrides_runpath=yes 16132 hardcode_into_libs=yes 16133 ;; 16134 16135newsos6) 16136 version_type=linux 16137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16138 shlibpath_var=LD_LIBRARY_PATH 16139 shlibpath_overrides_runpath=yes 16140 ;; 16141 16142nto-qnx*) 16143 version_type=linux 16144 need_lib_prefix=no 16145 need_version=no 16146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16147 soname_spec='${libname}${release}${shared_ext}$major' 16148 shlibpath_var=LD_LIBRARY_PATH 16149 shlibpath_overrides_runpath=yes 16150 ;; 16151 16152openbsd*) 16153 version_type=sunos 16154 sys_lib_dlsearch_path_spec="/usr/lib" 16155 need_lib_prefix=no 16156 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16157 case $host_os in 16158 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16159 *) need_version=no ;; 16160 esac 16161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16162 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16163 shlibpath_var=LD_LIBRARY_PATH 16164 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16165 case $host_os in 16166 openbsd2.[89] | openbsd2.[89].*) 16167 shlibpath_overrides_runpath=no 16168 ;; 16169 *) 16170 shlibpath_overrides_runpath=yes 16171 ;; 16172 esac 16173 else 16174 shlibpath_overrides_runpath=yes 16175 fi 16176 ;; 16177 16178os2*) 16179 libname_spec='$name' 16180 shrext_cmds=".dll" 16181 need_lib_prefix=no 16182 library_names_spec='$libname${shared_ext} $libname.a' 16183 dynamic_linker='OS/2 ld.exe' 16184 shlibpath_var=LIBPATH 16185 ;; 16186 16187osf3* | osf4* | osf5*) 16188 version_type=osf 16189 need_lib_prefix=no 16190 need_version=no 16191 soname_spec='${libname}${release}${shared_ext}$major' 16192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16193 shlibpath_var=LD_LIBRARY_PATH 16194 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16195 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16196 ;; 16197 16198rdos*) 16199 dynamic_linker=no 16200 ;; 16201 16202solaris*) 16203 version_type=linux 16204 need_lib_prefix=no 16205 need_version=no 16206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16207 soname_spec='${libname}${release}${shared_ext}$major' 16208 shlibpath_var=LD_LIBRARY_PATH 16209 shlibpath_overrides_runpath=yes 16210 hardcode_into_libs=yes 16211 # ldd complains unless libraries are executable 16212 postinstall_cmds='chmod +x $lib' 16213 ;; 16214 16215sunos4*) 16216 version_type=sunos 16217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16218 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16219 shlibpath_var=LD_LIBRARY_PATH 16220 shlibpath_overrides_runpath=yes 16221 if test "$with_gnu_ld" = yes; then 16222 need_lib_prefix=no 16223 fi 16224 need_version=yes 16225 ;; 16226 16227sysv4 | sysv4.3*) 16228 version_type=linux 16229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16230 soname_spec='${libname}${release}${shared_ext}$major' 16231 shlibpath_var=LD_LIBRARY_PATH 16232 case $host_vendor in 16233 sni) 16234 shlibpath_overrides_runpath=no 16235 need_lib_prefix=no 16236 export_dynamic_flag_spec='${wl}-Blargedynsym' 16237 runpath_var=LD_RUN_PATH 16238 ;; 16239 siemens) 16240 need_lib_prefix=no 16241 ;; 16242 motorola) 16243 need_lib_prefix=no 16244 need_version=no 16245 shlibpath_overrides_runpath=no 16246 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16247 ;; 16248 esac 16249 ;; 16250 16251sysv4*MP*) 16252 if test -d /usr/nec ;then 16253 version_type=linux 16254 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16255 soname_spec='$libname${shared_ext}.$major' 16256 shlibpath_var=LD_LIBRARY_PATH 16257 fi 16258 ;; 16259 16260sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16261 version_type=freebsd-elf 16262 need_lib_prefix=no 16263 need_version=no 16264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16265 soname_spec='${libname}${release}${shared_ext}$major' 16266 shlibpath_var=LD_LIBRARY_PATH 16267 hardcode_into_libs=yes 16268 if test "$with_gnu_ld" = yes; then 16269 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16270 shlibpath_overrides_runpath=no 16271 else 16272 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16273 shlibpath_overrides_runpath=yes 16274 case $host_os in 16275 sco3.2v5*) 16276 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16277 ;; 16278 esac 16279 fi 16280 sys_lib_dlsearch_path_spec='/usr/lib' 16281 ;; 16282 16283uts4*) 16284 version_type=linux 16285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16286 soname_spec='${libname}${release}${shared_ext}$major' 16287 shlibpath_var=LD_LIBRARY_PATH 16288 ;; 16289 16290*) 16291 dynamic_linker=no 16292 ;; 16293esac 16294{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16295$as_echo "$dynamic_linker" >&6; } 16296test "$dynamic_linker" = no && can_build_shared=no 16297 16298if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 16299 $as_echo_n "(cached) " >&6 16300else 16301 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 16302fi 16303 16304sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 16305if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 16306 $as_echo_n "(cached) " >&6 16307else 16308 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 16309fi 16310 16311sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 16312 16313variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16314if test "$GCC" = yes; then 16315 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16316fi 16317 16318{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16319$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16320hardcode_action_F77= 16321if test -n "$hardcode_libdir_flag_spec_F77" || \ 16322 test -n "$runpath_var_F77" || \ 16323 test "X$hardcode_automatic_F77" = "Xyes" ; then 16324 16325 # We can hardcode non-existant directories. 16326 if test "$hardcode_direct_F77" != no && 16327 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16328 # have to relink, otherwise we might link with an installed library 16329 # when we should be linking with a yet-to-be-installed one 16330 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 16331 test "$hardcode_minus_L_F77" != no; then 16332 # Linking always hardcodes the temporary library directory. 16333 hardcode_action_F77=relink 16334 else 16335 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16336 hardcode_action_F77=immediate 16337 fi 16338else 16339 # We cannot hardcode anything, or else we can only hardcode existing 16340 # directories. 16341 hardcode_action_F77=unsupported 16342fi 16343{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 16344$as_echo "$hardcode_action_F77" >&6; } 16345 16346if test "$hardcode_action_F77" = relink; then 16347 # Fast installation is not supported 16348 enable_fast_install=no 16349elif test "$shlibpath_overrides_runpath" = yes || 16350 test "$enable_shared" = no; then 16351 # Fast installation is not necessary 16352 enable_fast_install=needless 16353fi 16354 16355 16356# The else clause should only fire when bootstrapping the 16357# libtool distribution, otherwise you forgot to ship ltmain.sh 16358# with your package, and you will get complaints that there are 16359# no rules to generate ltmain.sh. 16360if test -f "$ltmain"; then 16361 # See if we are running on zsh, and set the options which allow our commands through 16362 # without removal of \ escapes. 16363 if test -n "${ZSH_VERSION+set}" ; then 16364 setopt NO_GLOB_SUBST 16365 fi 16366 # Now quote all the things that may contain metacharacters while being 16367 # careful not to overquote the AC_SUBSTed values. We take copies of the 16368 # variables and quote the copies for generation of the libtool script. 16369 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 16370 SED SHELL STRIP \ 16371 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16372 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16373 deplibs_check_method reload_flag reload_cmds need_locks \ 16374 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16375 lt_cv_sys_global_symbol_to_c_name_address \ 16376 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16377 old_postinstall_cmds old_postuninstall_cmds \ 16378 compiler_F77 \ 16379 CC_F77 \ 16380 LD_F77 \ 16381 lt_prog_compiler_wl_F77 \ 16382 lt_prog_compiler_pic_F77 \ 16383 lt_prog_compiler_static_F77 \ 16384 lt_prog_compiler_no_builtin_flag_F77 \ 16385 export_dynamic_flag_spec_F77 \ 16386 thread_safe_flag_spec_F77 \ 16387 whole_archive_flag_spec_F77 \ 16388 enable_shared_with_static_runtimes_F77 \ 16389 old_archive_cmds_F77 \ 16390 old_archive_from_new_cmds_F77 \ 16391 predep_objects_F77 \ 16392 postdep_objects_F77 \ 16393 predeps_F77 \ 16394 postdeps_F77 \ 16395 compiler_lib_search_path_F77 \ 16396 compiler_lib_search_dirs_F77 \ 16397 archive_cmds_F77 \ 16398 archive_expsym_cmds_F77 \ 16399 postinstall_cmds_F77 \ 16400 postuninstall_cmds_F77 \ 16401 old_archive_from_expsyms_cmds_F77 \ 16402 allow_undefined_flag_F77 \ 16403 no_undefined_flag_F77 \ 16404 export_symbols_cmds_F77 \ 16405 hardcode_libdir_flag_spec_F77 \ 16406 hardcode_libdir_flag_spec_ld_F77 \ 16407 hardcode_libdir_separator_F77 \ 16408 hardcode_automatic_F77 \ 16409 module_cmds_F77 \ 16410 module_expsym_cmds_F77 \ 16411 lt_cv_prog_compiler_c_o_F77 \ 16412 fix_srcfile_path_F77 \ 16413 exclude_expsyms_F77 \ 16414 include_expsyms_F77; do 16415 16416 case $var in 16417 old_archive_cmds_F77 | \ 16418 old_archive_from_new_cmds_F77 | \ 16419 archive_cmds_F77 | \ 16420 archive_expsym_cmds_F77 | \ 16421 module_cmds_F77 | \ 16422 module_expsym_cmds_F77 | \ 16423 old_archive_from_expsyms_cmds_F77 | \ 16424 export_symbols_cmds_F77 | \ 16425 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16426 postinstall_cmds | postuninstall_cmds | \ 16427 old_postinstall_cmds | old_postuninstall_cmds | \ 16428 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16429 # Double-quote double-evaled strings. 16430 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16431 ;; 16432 *) 16433 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16434 ;; 16435 esac 16436 done 16437 16438 case $lt_echo in 16439 *'\$0 --fallback-echo"') 16440 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16441 ;; 16442 esac 16443 16444cfgfile="$ofile" 16445 16446 cat <<__EOF__ >> "$cfgfile" 16447# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16448 16449# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16450 16451# Shell to use when invoking shell scripts. 16452SHELL=$lt_SHELL 16453 16454# Whether or not to build shared libraries. 16455build_libtool_libs=$enable_shared 16456 16457# Whether or not to build static libraries. 16458build_old_libs=$enable_static 16459 16460# Whether or not to add -lc for building shared libraries. 16461build_libtool_need_lc=$archive_cmds_need_lc_F77 16462 16463# Whether or not to disallow shared libs when runtime libs are static 16464allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 16465 16466# Whether or not to optimize for fast installation. 16467fast_install=$enable_fast_install 16468 16469# The host system. 16470host_alias=$host_alias 16471host=$host 16472host_os=$host_os 16473 16474# The build system. 16475build_alias=$build_alias 16476build=$build 16477build_os=$build_os 16478 16479# An echo program that does not interpret backslashes. 16480echo=$lt_echo 16481 16482# The archiver. 16483AR=$lt_AR 16484AR_FLAGS=$lt_AR_FLAGS 16485 16486# A C compiler. 16487LTCC=$lt_LTCC 16488 16489# LTCC compiler flags. 16490LTCFLAGS=$lt_LTCFLAGS 16491 16492# A language-specific compiler. 16493CC=$lt_compiler_F77 16494 16495# Is the compiler the GNU C compiler? 16496with_gcc=$GCC_F77 16497 16498# An ERE matcher. 16499EGREP=$lt_EGREP 16500 16501# The linker used to build libraries. 16502LD=$lt_LD_F77 16503 16504# Whether we need hard or soft links. 16505LN_S=$lt_LN_S 16506 16507# A BSD-compatible nm program. 16508NM=$lt_NM 16509 16510# A symbol stripping program 16511STRIP=$lt_STRIP 16512 16513# Used to examine libraries when file_magic_cmd begins "file" 16514MAGIC_CMD=$MAGIC_CMD 16515 16516# Used on cygwin: DLL creation program. 16517DLLTOOL="$DLLTOOL" 16518 16519# Used on cygwin: object dumper. 16520OBJDUMP="$OBJDUMP" 16521 16522# Used on cygwin: assembler. 16523AS="$AS" 16524 16525# The name of the directory that contains temporary libtool files. 16526objdir=$objdir 16527 16528# How to create reloadable object files. 16529reload_flag=$lt_reload_flag 16530reload_cmds=$lt_reload_cmds 16531 16532# How to pass a linker flag through the compiler. 16533wl=$lt_lt_prog_compiler_wl_F77 16534 16535# Object file suffix (normally "o"). 16536objext="$ac_objext" 16537 16538# Old archive suffix (normally "a"). 16539libext="$libext" 16540 16541# Shared library suffix (normally ".so"). 16542shrext_cmds='$shrext_cmds' 16543 16544# Executable file suffix (normally ""). 16545exeext="$exeext" 16546 16547# Additional compiler flags for building library objects. 16548pic_flag=$lt_lt_prog_compiler_pic_F77 16549pic_mode=$pic_mode 16550 16551# What is the maximum length of a command? 16552max_cmd_len=$lt_cv_sys_max_cmd_len 16553 16554# Does compiler simultaneously support -c and -o options? 16555compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16556 16557# Must we lock files when doing compilation? 16558need_locks=$lt_need_locks 16559 16560# Do we need the lib prefix for modules? 16561need_lib_prefix=$need_lib_prefix 16562 16563# Do we need a version for libraries? 16564need_version=$need_version 16565 16566# Whether dlopen is supported. 16567dlopen_support=$enable_dlopen 16568 16569# Whether dlopen of programs is supported. 16570dlopen_self=$enable_dlopen_self 16571 16572# Whether dlopen of statically linked programs is supported. 16573dlopen_self_static=$enable_dlopen_self_static 16574 16575# Compiler flag to prevent dynamic linking. 16576link_static_flag=$lt_lt_prog_compiler_static_F77 16577 16578# Compiler flag to turn off builtin functions. 16579no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16580 16581# Compiler flag to allow reflexive dlopens. 16582export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16583 16584# Compiler flag to generate shared objects directly from archives. 16585whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16586 16587# Compiler flag to generate thread-safe objects. 16588thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16589 16590# Library versioning type. 16591version_type=$version_type 16592 16593# Format of library name prefix. 16594libname_spec=$lt_libname_spec 16595 16596# List of archive names. First name is the real one, the rest are links. 16597# The last name is the one that the linker finds with -lNAME. 16598library_names_spec=$lt_library_names_spec 16599 16600# The coded name of the library, if different from the real name. 16601soname_spec=$lt_soname_spec 16602 16603# Commands used to build and install an old-style archive. 16604RANLIB=$lt_RANLIB 16605old_archive_cmds=$lt_old_archive_cmds_F77 16606old_postinstall_cmds=$lt_old_postinstall_cmds 16607old_postuninstall_cmds=$lt_old_postuninstall_cmds 16608 16609# Create an old-style archive from a shared archive. 16610old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16611 16612# Create a temporary old-style archive to link instead of a shared archive. 16613old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16614 16615# Commands used to build and install a shared archive. 16616archive_cmds=$lt_archive_cmds_F77 16617archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16618postinstall_cmds=$lt_postinstall_cmds 16619postuninstall_cmds=$lt_postuninstall_cmds 16620 16621# Commands used to build a loadable module (assumed same as above if empty) 16622module_cmds=$lt_module_cmds_F77 16623module_expsym_cmds=$lt_module_expsym_cmds_F77 16624 16625# Commands to strip libraries. 16626old_striplib=$lt_old_striplib 16627striplib=$lt_striplib 16628 16629# Dependencies to place before the objects being linked to create a 16630# shared library. 16631predep_objects=$lt_predep_objects_F77 16632 16633# Dependencies to place after the objects being linked to create a 16634# shared library. 16635postdep_objects=$lt_postdep_objects_F77 16636 16637# Dependencies to place before the objects being linked to create a 16638# shared library. 16639predeps=$lt_predeps_F77 16640 16641# Dependencies to place after the objects being linked to create a 16642# shared library. 16643postdeps=$lt_postdeps_F77 16644 16645# The directories searched by this compiler when creating a shared 16646# library 16647compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77 16648 16649# The library search path used internally by the compiler when linking 16650# a shared library. 16651compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16652 16653# Method to check whether dependent libraries are shared objects. 16654deplibs_check_method=$lt_deplibs_check_method 16655 16656# Command to use when deplibs_check_method == file_magic. 16657file_magic_cmd=$lt_file_magic_cmd 16658 16659# Flag that allows shared libraries with undefined symbols to be built. 16660allow_undefined_flag=$lt_allow_undefined_flag_F77 16661 16662# Flag that forces no undefined symbols. 16663no_undefined_flag=$lt_no_undefined_flag_F77 16664 16665# Commands used to finish a libtool library installation in a directory. 16666finish_cmds=$lt_finish_cmds 16667 16668# Same as above, but a single script fragment to be evaled but not shown. 16669finish_eval=$lt_finish_eval 16670 16671# Take the output of nm and produce a listing of raw symbols and C names. 16672global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16673 16674# Transform the output of nm in a proper C declaration 16675global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16676 16677# Transform the output of nm in a C name address pair 16678global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16679 16680# This is the shared library runtime path variable. 16681runpath_var=$runpath_var 16682 16683# This is the shared library path variable. 16684shlibpath_var=$shlibpath_var 16685 16686# Is shlibpath searched before the hard-coded library search path? 16687shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16688 16689# How to hardcode a shared library path into an executable. 16690hardcode_action=$hardcode_action_F77 16691 16692# Whether we should hardcode library paths into libraries. 16693hardcode_into_libs=$hardcode_into_libs 16694 16695# Flag to hardcode \$libdir into a binary during linking. 16696# This must work even if \$libdir does not exist. 16697hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16698 16699# If ld is used when linking, flag to hardcode \$libdir into 16700# a binary during linking. This must work even if \$libdir does 16701# not exist. 16702hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16703 16704# Whether we need a single -rpath flag with a separated argument. 16705hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16706 16707# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16708# resulting binary. 16709hardcode_direct=$hardcode_direct_F77 16710 16711# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16712# resulting binary. 16713hardcode_minus_L=$hardcode_minus_L_F77 16714 16715# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16716# the resulting binary. 16717hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16718 16719# Set to yes if building a shared library automatically hardcodes DIR into the library 16720# and all subsequent libraries and executables linked against it. 16721hardcode_automatic=$hardcode_automatic_F77 16722 16723# Variables whose values should be saved in libtool wrapper scripts and 16724# restored at relink time. 16725variables_saved_for_relink="$variables_saved_for_relink" 16726 16727# Whether libtool must link a program against all its dependency libraries. 16728link_all_deplibs=$link_all_deplibs_F77 16729 16730# Compile-time system search path for libraries 16731sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16732 16733# Run-time system search path for libraries 16734sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16735 16736# Fix the shell variable \$srcfile for the compiler. 16737fix_srcfile_path=$lt_fix_srcfile_path 16738 16739# Set to yes if exported symbols are required. 16740always_export_symbols=$always_export_symbols_F77 16741 16742# The commands to list exported symbols. 16743export_symbols_cmds=$lt_export_symbols_cmds_F77 16744 16745# The commands to extract the exported symbol list from a shared archive. 16746extract_expsyms_cmds=$lt_extract_expsyms_cmds 16747 16748# Symbols that should not be listed in the preloaded symbols. 16749exclude_expsyms=$lt_exclude_expsyms_F77 16750 16751# Symbols that must always be exported. 16752include_expsyms=$lt_include_expsyms_F77 16753 16754# ### END LIBTOOL TAG CONFIG: $tagname 16755 16756__EOF__ 16757 16758 16759else 16760 # If there is no Makefile yet, we rely on a make rule to execute 16761 # `config.status --recheck' to rerun these tests and create the 16762 # libtool script then. 16763 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16764 if test -f "$ltmain_in"; then 16765 test -f Makefile && make "$ltmain" 16766 fi 16767fi 16768 16769 16770ac_ext=c 16771ac_cpp='$CPP $CPPFLAGS' 16772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16774ac_compiler_gnu=$ac_cv_c_compiler_gnu 16775 16776CC="$lt_save_CC" 16777 16778 else 16779 tagname="" 16780 fi 16781 ;; 16782 16783 GCJ) 16784 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16785 16786 16787# Source file extension for Java test sources. 16788ac_ext=java 16789 16790# Object file extension for compiled Java test sources. 16791objext=o 16792objext_GCJ=$objext 16793 16794# Code to be used in simple compile tests 16795lt_simple_compile_test_code="class foo {}" 16796 16797# Code to be used in simple link tests 16798lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' 16799 16800# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16801 16802# If no C compiler was specified, use CC. 16803LTCC=${LTCC-"$CC"} 16804 16805# If no C compiler flags were specified, use CFLAGS. 16806LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16807 16808# Allow CC to be a program name with arguments. 16809compiler=$CC 16810 16811 16812# save warnings/boilerplate of simple test code 16813ac_outfile=conftest.$ac_objext 16814echo "$lt_simple_compile_test_code" >conftest.$ac_ext 16815eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16816_lt_compiler_boilerplate=`cat conftest.err` 16817$rm conftest* 16818 16819ac_outfile=conftest.$ac_objext 16820echo "$lt_simple_link_test_code" >conftest.$ac_ext 16821eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16822_lt_linker_boilerplate=`cat conftest.err` 16823$rm -r conftest* 16824 16825 16826# Allow CC to be a program name with arguments. 16827lt_save_CC="$CC" 16828CC=${GCJ-"gcj"} 16829compiler=$CC 16830compiler_GCJ=$CC 16831for cc_temp in $compiler""; do 16832 case $cc_temp in 16833 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16834 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16835 \-*) ;; 16836 *) break;; 16837 esac 16838done 16839cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16840 16841 16842# GCJ did not exist at the time GCC didn't implicitly link libc in. 16843archive_cmds_need_lc_GCJ=no 16844 16845old_archive_cmds_GCJ=$old_archive_cmds 16846 16847 16848lt_prog_compiler_no_builtin_flag_GCJ= 16849 16850if test "$GCC" = yes; then 16851 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16852 16853 16854{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16855$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 16856if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16857 $as_echo_n "(cached) " >&6 16858else 16859 lt_cv_prog_compiler_rtti_exceptions=no 16860 ac_outfile=conftest.$ac_objext 16861 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16862 lt_compiler_flag="-fno-rtti -fno-exceptions" 16863 # Insert the option either (1) after the last *FLAGS variable, or 16864 # (2) before a word containing "conftest.", or (3) at the end. 16865 # Note that $ac_compile itself does not contain backslashes and begins 16866 # with a dollar sign (not a hyphen), so the echo should work correctly. 16867 # The option is referenced via a variable to avoid confusing sed. 16868 lt_compile=`echo "$ac_compile" | $SED \ 16869 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16870 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16871 -e 's:$: $lt_compiler_flag:'` 16872 (eval echo "\"\$as_me:16872: $lt_compile\"" >&5) 16873 (eval "$lt_compile" 2>conftest.err) 16874 ac_status=$? 16875 cat conftest.err >&5 16876 echo "$as_me:16876: \$? = $ac_status" >&5 16877 if (exit $ac_status) && test -s "$ac_outfile"; then 16878 # The compiler can only warn and ignore the option if not recognized 16879 # So say no if there are warnings other than the usual output. 16880 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16881 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16882 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16883 lt_cv_prog_compiler_rtti_exceptions=yes 16884 fi 16885 fi 16886 $rm conftest* 16887 16888fi 16889{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16890$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16891 16892if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16893 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16894else 16895 : 16896fi 16897 16898fi 16899 16900lt_prog_compiler_wl_GCJ= 16901lt_prog_compiler_pic_GCJ= 16902lt_prog_compiler_static_GCJ= 16903 16904{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16905$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 16906 16907 if test "$GCC" = yes; then 16908 lt_prog_compiler_wl_GCJ='-Wl,' 16909 lt_prog_compiler_static_GCJ='-static' 16910 16911 case $host_os in 16912 aix*) 16913 # All AIX code is PIC. 16914 if test "$host_cpu" = ia64; then 16915 # AIX 5 now supports IA64 processor 16916 lt_prog_compiler_static_GCJ='-Bstatic' 16917 fi 16918 ;; 16919 16920 amigaos*) 16921 # FIXME: we need at least 68020 code to build shared libraries, but 16922 # adding the `-m68020' flag to GCC prevents building anything better, 16923 # like `-m68040'. 16924 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16925 ;; 16926 16927 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16928 # PIC is the default for these OSes. 16929 ;; 16930 16931 mingw* | cygwin* | pw32* | os2*) 16932 # This hack is so that the source file can tell whether it is being 16933 # built for inclusion in a dll (and should export symbols for example). 16934 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16935 # (--disable-auto-import) libraries 16936 16937 ;; 16938 16939 darwin* | rhapsody*) 16940 # PIC is the default on this platform 16941 # Common symbols not allowed in MH_DYLIB files 16942 lt_prog_compiler_pic_GCJ='-fno-common' 16943 ;; 16944 16945 interix[3-9]*) 16946 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16947 # Instead, we relocate shared libraries at runtime. 16948 ;; 16949 16950 msdosdjgpp*) 16951 # Just because we use GCC doesn't mean we suddenly get shared libraries 16952 # on systems that don't support them. 16953 lt_prog_compiler_can_build_shared_GCJ=no 16954 enable_shared=no 16955 ;; 16956 16957 sysv4*MP*) 16958 if test -d /usr/nec; then 16959 lt_prog_compiler_pic_GCJ=-Kconform_pic 16960 fi 16961 ;; 16962 16963 hpux*) 16964 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16965 # not for PA HP-UX. 16966 case $host_cpu in 16967 hppa*64*|ia64*) 16968 # +Z the default 16969 ;; 16970 *) 16971 lt_prog_compiler_pic_GCJ='-fPIC' 16972 ;; 16973 esac 16974 ;; 16975 16976 *) 16977 lt_prog_compiler_pic_GCJ='-fPIC' 16978 ;; 16979 esac 16980 else 16981 # PORTME Check for flag to pass linker flags through the system compiler. 16982 case $host_os in 16983 aix*) 16984 lt_prog_compiler_wl_GCJ='-Wl,' 16985 if test "$host_cpu" = ia64; then 16986 # AIX 5 now supports IA64 processor 16987 lt_prog_compiler_static_GCJ='-Bstatic' 16988 else 16989 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16990 fi 16991 ;; 16992 darwin*) 16993 # PIC is the default on this platform 16994 # Common symbols not allowed in MH_DYLIB files 16995 case $cc_basename in 16996 xlc*) 16997 lt_prog_compiler_pic_GCJ='-qnocommon' 16998 lt_prog_compiler_wl_GCJ='-Wl,' 16999 ;; 17000 esac 17001 ;; 17002 17003 mingw* | cygwin* | pw32* | os2*) 17004 # This hack is so that the source file can tell whether it is being 17005 # built for inclusion in a dll (and should export symbols for example). 17006 17007 ;; 17008 17009 hpux9* | hpux10* | hpux11*) 17010 lt_prog_compiler_wl_GCJ='-Wl,' 17011 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17012 # not for PA HP-UX. 17013 case $host_cpu in 17014 hppa*64*|ia64*) 17015 # +Z the default 17016 ;; 17017 *) 17018 lt_prog_compiler_pic_GCJ='+Z' 17019 ;; 17020 esac 17021 # Is there a better lt_prog_compiler_static that works with the bundled CC? 17022 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 17023 ;; 17024 17025 irix5* | irix6* | nonstopux*) 17026 lt_prog_compiler_wl_GCJ='-Wl,' 17027 # PIC (with -KPIC) is the default. 17028 lt_prog_compiler_static_GCJ='-non_shared' 17029 ;; 17030 17031 newsos6) 17032 lt_prog_compiler_pic_GCJ='-KPIC' 17033 lt_prog_compiler_static_GCJ='-Bstatic' 17034 ;; 17035 17036 linux* | k*bsd*-gnu) 17037 case $cc_basename in 17038 icc* | ecc*) 17039 lt_prog_compiler_wl_GCJ='-Wl,' 17040 lt_prog_compiler_pic_GCJ='-KPIC' 17041 lt_prog_compiler_static_GCJ='-static' 17042 ;; 17043 pgcc* | pgf77* | pgf90* | pgf95*) 17044 # Portland Group compilers (*not* the Pentium gcc compiler, 17045 # which looks to be a dead project) 17046 lt_prog_compiler_wl_GCJ='-Wl,' 17047 lt_prog_compiler_pic_GCJ='-fpic' 17048 lt_prog_compiler_static_GCJ='-Bstatic' 17049 ;; 17050 ccc*) 17051 lt_prog_compiler_wl_GCJ='-Wl,' 17052 # All Alpha code is PIC. 17053 lt_prog_compiler_static_GCJ='-non_shared' 17054 ;; 17055 *) 17056 case `$CC -V 2>&1 | sed 5q` in 17057 *Sun\ C*) 17058 # Sun C 5.9 17059 lt_prog_compiler_pic_GCJ='-KPIC' 17060 lt_prog_compiler_static_GCJ='-Bstatic' 17061 lt_prog_compiler_wl_GCJ='-Wl,' 17062 ;; 17063 *Sun\ F*) 17064 # Sun Fortran 8.3 passes all unrecognized flags to the linker 17065 lt_prog_compiler_pic_GCJ='-KPIC' 17066 lt_prog_compiler_static_GCJ='-Bstatic' 17067 lt_prog_compiler_wl_GCJ='' 17068 ;; 17069 esac 17070 ;; 17071 esac 17072 ;; 17073 17074 osf3* | osf4* | osf5*) 17075 lt_prog_compiler_wl_GCJ='-Wl,' 17076 # All OSF/1 code is PIC. 17077 lt_prog_compiler_static_GCJ='-non_shared' 17078 ;; 17079 17080 rdos*) 17081 lt_prog_compiler_static_GCJ='-non_shared' 17082 ;; 17083 17084 solaris*) 17085 lt_prog_compiler_pic_GCJ='-KPIC' 17086 lt_prog_compiler_static_GCJ='-Bstatic' 17087 case $cc_basename in 17088 f77* | f90* | f95*) 17089 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 17090 *) 17091 lt_prog_compiler_wl_GCJ='-Wl,';; 17092 esac 17093 ;; 17094 17095 sunos4*) 17096 lt_prog_compiler_wl_GCJ='-Qoption ld ' 17097 lt_prog_compiler_pic_GCJ='-PIC' 17098 lt_prog_compiler_static_GCJ='-Bstatic' 17099 ;; 17100 17101 sysv4 | sysv4.2uw2* | sysv4.3*) 17102 lt_prog_compiler_wl_GCJ='-Wl,' 17103 lt_prog_compiler_pic_GCJ='-KPIC' 17104 lt_prog_compiler_static_GCJ='-Bstatic' 17105 ;; 17106 17107 sysv4*MP*) 17108 if test -d /usr/nec ;then 17109 lt_prog_compiler_pic_GCJ='-Kconform_pic' 17110 lt_prog_compiler_static_GCJ='-Bstatic' 17111 fi 17112 ;; 17113 17114 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 17115 lt_prog_compiler_wl_GCJ='-Wl,' 17116 lt_prog_compiler_pic_GCJ='-KPIC' 17117 lt_prog_compiler_static_GCJ='-Bstatic' 17118 ;; 17119 17120 unicos*) 17121 lt_prog_compiler_wl_GCJ='-Wl,' 17122 lt_prog_compiler_can_build_shared_GCJ=no 17123 ;; 17124 17125 uts4*) 17126 lt_prog_compiler_pic_GCJ='-pic' 17127 lt_prog_compiler_static_GCJ='-Bstatic' 17128 ;; 17129 17130 *) 17131 lt_prog_compiler_can_build_shared_GCJ=no 17132 ;; 17133 esac 17134 fi 17135 17136{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 17137$as_echo "$lt_prog_compiler_pic_GCJ" >&6; } 17138 17139# 17140# Check to make sure the PIC flag actually works. 17141# 17142if test -n "$lt_prog_compiler_pic_GCJ"; then 17143 17144{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 17145$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; } 17146if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then 17147 $as_echo_n "(cached) " >&6 17148else 17149 lt_cv_prog_compiler_pic_works_GCJ=no 17150 ac_outfile=conftest.$ac_objext 17151 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17152 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 17153 # Insert the option either (1) after the last *FLAGS variable, or 17154 # (2) before a word containing "conftest.", or (3) at the end. 17155 # Note that $ac_compile itself does not contain backslashes and begins 17156 # with a dollar sign (not a hyphen), so the echo should work correctly. 17157 # The option is referenced via a variable to avoid confusing sed. 17158 lt_compile=`echo "$ac_compile" | $SED \ 17159 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17160 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17161 -e 's:$: $lt_compiler_flag:'` 17162 (eval echo "\"\$as_me:17162: $lt_compile\"" >&5) 17163 (eval "$lt_compile" 2>conftest.err) 17164 ac_status=$? 17165 cat conftest.err >&5 17166 echo "$as_me:17166: \$? = $ac_status" >&5 17167 if (exit $ac_status) && test -s "$ac_outfile"; then 17168 # The compiler can only warn and ignore the option if not recognized 17169 # So say no if there are warnings other than the usual output. 17170 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17171 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17172 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17173 lt_cv_prog_compiler_pic_works_GCJ=yes 17174 fi 17175 fi 17176 $rm conftest* 17177 17178fi 17179{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5 17180$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; } 17181 17182if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then 17183 case $lt_prog_compiler_pic_GCJ in 17184 "" | " "*) ;; 17185 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 17186 esac 17187else 17188 lt_prog_compiler_pic_GCJ= 17189 lt_prog_compiler_can_build_shared_GCJ=no 17190fi 17191 17192fi 17193case $host_os in 17194 # For platforms which do not support PIC, -DPIC is meaningless: 17195 *djgpp*) 17196 lt_prog_compiler_pic_GCJ= 17197 ;; 17198 *) 17199 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 17200 ;; 17201esac 17202 17203# 17204# Check to make sure the static flag actually works. 17205# 17206wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 17207{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17208$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 17209if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then 17210 $as_echo_n "(cached) " >&6 17211else 17212 lt_cv_prog_compiler_static_works_GCJ=no 17213 save_LDFLAGS="$LDFLAGS" 17214 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17215 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17216 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17217 # The linker can only warn and ignore the option if not recognized 17218 # So say no if there are warnings 17219 if test -s conftest.err; then 17220 # Append any errors to the config.log. 17221 cat conftest.err 1>&5 17222 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 17223 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17224 if diff conftest.exp conftest.er2 >/dev/null; then 17225 lt_cv_prog_compiler_static_works_GCJ=yes 17226 fi 17227 else 17228 lt_cv_prog_compiler_static_works_GCJ=yes 17229 fi 17230 fi 17231 $rm -r conftest* 17232 LDFLAGS="$save_LDFLAGS" 17233 17234fi 17235{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5 17236$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; } 17237 17238if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then 17239 : 17240else 17241 lt_prog_compiler_static_GCJ= 17242fi 17243 17244 17245{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 17246$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17247if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 17248 $as_echo_n "(cached) " >&6 17249else 17250 lt_cv_prog_compiler_c_o_GCJ=no 17251 $rm -r conftest 2>/dev/null 17252 mkdir conftest 17253 cd conftest 17254 mkdir out 17255 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17256 17257 lt_compiler_flag="-o out/conftest2.$ac_objext" 17258 # Insert the option either (1) after the last *FLAGS variable, or 17259 # (2) before a word containing "conftest.", or (3) at the end. 17260 # Note that $ac_compile itself does not contain backslashes and begins 17261 # with a dollar sign (not a hyphen), so the echo should work correctly. 17262 lt_compile=`echo "$ac_compile" | $SED \ 17263 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17264 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17265 -e 's:$: $lt_compiler_flag:'` 17266 (eval echo "\"\$as_me:17266: $lt_compile\"" >&5) 17267 (eval "$lt_compile" 2>out/conftest.err) 17268 ac_status=$? 17269 cat out/conftest.err >&5 17270 echo "$as_me:17270: \$? = $ac_status" >&5 17271 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17272 then 17273 # The compiler can only warn and ignore the option if not recognized 17274 # So say no if there are warnings 17275 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 17276 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17277 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17278 lt_cv_prog_compiler_c_o_GCJ=yes 17279 fi 17280 fi 17281 chmod u+w . 2>&5 17282 $rm conftest* 17283 # SGI C++ compiler will create directory out/ii_files/ for 17284 # template instantiation 17285 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 17286 $rm out/* && rmdir out 17287 cd .. 17288 rmdir conftest 17289 $rm conftest* 17290 17291fi 17292{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 17293$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; } 17294 17295 17296hard_links="nottested" 17297if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 17298 # do not overwrite the value of need_locks provided by the user 17299 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 17300$as_echo_n "checking if we can lock with hard links... " >&6; } 17301 hard_links=yes 17302 $rm conftest* 17303 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17304 touch conftest.a 17305 ln conftest.a conftest.b 2>&5 || hard_links=no 17306 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17307 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 17308$as_echo "$hard_links" >&6; } 17309 if test "$hard_links" = no; then 17310 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17311$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17312 need_locks=warn 17313 fi 17314else 17315 need_locks=no 17316fi 17317 17318{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17319$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 17320 17321 runpath_var= 17322 allow_undefined_flag_GCJ= 17323 enable_shared_with_static_runtimes_GCJ=no 17324 archive_cmds_GCJ= 17325 archive_expsym_cmds_GCJ= 17326 old_archive_From_new_cmds_GCJ= 17327 old_archive_from_expsyms_cmds_GCJ= 17328 export_dynamic_flag_spec_GCJ= 17329 whole_archive_flag_spec_GCJ= 17330 thread_safe_flag_spec_GCJ= 17331 hardcode_libdir_flag_spec_GCJ= 17332 hardcode_libdir_flag_spec_ld_GCJ= 17333 hardcode_libdir_separator_GCJ= 17334 hardcode_direct_GCJ=no 17335 hardcode_minus_L_GCJ=no 17336 hardcode_shlibpath_var_GCJ=unsupported 17337 link_all_deplibs_GCJ=unknown 17338 hardcode_automatic_GCJ=no 17339 module_cmds_GCJ= 17340 module_expsym_cmds_GCJ= 17341 always_export_symbols_GCJ=no 17342 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17343 # include_expsyms should be a list of space-separated symbols to be *always* 17344 # included in the symbol list 17345 include_expsyms_GCJ= 17346 # exclude_expsyms can be an extended regexp of symbols to exclude 17347 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17348 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17349 # as well as any symbol that contains `d'. 17350 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 17351 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17352 # platforms (ab)use it in PIC code, but their linkers get confused if 17353 # the symbol is explicitly referenced. Since portable code cannot 17354 # rely on this symbol name, it's probably fine to never include it in 17355 # preloaded symbol tables. 17356 # Exclude shared library initialization/finalization symbols. 17357 extract_expsyms_cmds= 17358 # Just being paranoid about ensuring that cc_basename is set. 17359 for cc_temp in $compiler""; do 17360 case $cc_temp in 17361 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17362 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17363 \-*) ;; 17364 *) break;; 17365 esac 17366done 17367cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17368 17369 case $host_os in 17370 cygwin* | mingw* | pw32*) 17371 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17372 # When not using gcc, we currently assume that we are using 17373 # Microsoft Visual C++. 17374 if test "$GCC" != yes; then 17375 with_gnu_ld=no 17376 fi 17377 ;; 17378 interix*) 17379 # we just hope/assume this is gcc and not c89 (= MSVC++) 17380 with_gnu_ld=yes 17381 ;; 17382 openbsd*) 17383 with_gnu_ld=no 17384 ;; 17385 esac 17386 17387 ld_shlibs_GCJ=yes 17388 if test "$with_gnu_ld" = yes; then 17389 # If archive_cmds runs LD, not CC, wlarc should be empty 17390 wlarc='${wl}' 17391 17392 # Set some defaults for GNU ld with shared library support. These 17393 # are reset later if shared libraries are not supported. Putting them 17394 # here allows them to be overridden if necessary. 17395 runpath_var=LD_RUN_PATH 17396 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 17397 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 17398 # ancient GNU ld didn't support --whole-archive et. al. 17399 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17400 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17401 else 17402 whole_archive_flag_spec_GCJ= 17403 fi 17404 supports_anon_versioning=no 17405 case `$LD -v 2>/dev/null` in 17406 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17407 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17408 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17409 *\ 2.11.*) ;; # other 2.11 versions 17410 *) supports_anon_versioning=yes ;; 17411 esac 17412 17413 # See if GNU ld supports shared libraries. 17414 case $host_os in 17415 aix[3-9]*) 17416 # On AIX/PPC, the GNU linker is very broken 17417 if test "$host_cpu" != ia64; then 17418 ld_shlibs_GCJ=no 17419 cat <<EOF 1>&2 17420 17421*** Warning: the GNU linker, at least up to release 2.9.1, is reported 17422*** to be unable to reliably create shared libraries on AIX. 17423*** Therefore, libtool is disabling shared libraries support. If you 17424*** really care for shared libraries, you may want to modify your PATH 17425*** so that a non-GNU linker is found, and then restart. 17426 17427EOF 17428 fi 17429 ;; 17430 17431 amigaos*) 17432 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 17433 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17434 hardcode_minus_L_GCJ=yes 17435 17436 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 17437 # that the semantics of dynamic libraries on AmigaOS, at least up 17438 # to version 4, is to share data among multiple programs linked 17439 # with the same dynamic library. Since this doesn't match the 17440 # behavior of shared libraries on other platforms, we can't use 17441 # them. 17442 ld_shlibs_GCJ=no 17443 ;; 17444 17445 beos*) 17446 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17447 allow_undefined_flag_GCJ=unsupported 17448 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17449 # support --undefined. This deserves some investigation. FIXME 17450 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17451 else 17452 ld_shlibs_GCJ=no 17453 fi 17454 ;; 17455 17456 cygwin* | mingw* | pw32*) 17457 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 17458 # as there is no search path for DLLs. 17459 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17460 allow_undefined_flag_GCJ=unsupported 17461 always_export_symbols_GCJ=no 17462 enable_shared_with_static_runtimes_GCJ=yes 17463 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 17464 17465 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17466 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17467 # If the export-symbols file already is a .def file (1st line 17468 # is EXPORTS), use it as is; otherwise, prepend... 17469 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17470 cp $export_symbols $output_objdir/$soname.def; 17471 else 17472 echo EXPORTS > $output_objdir/$soname.def; 17473 cat $export_symbols >> $output_objdir/$soname.def; 17474 fi~ 17475 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17476 else 17477 ld_shlibs_GCJ=no 17478 fi 17479 ;; 17480 17481 interix[3-9]*) 17482 hardcode_direct_GCJ=no 17483 hardcode_shlibpath_var_GCJ=no 17484 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17485 export_dynamic_flag_spec_GCJ='${wl}-E' 17486 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17487 # Instead, shared libraries are loaded at an image base (0x10000000 by 17488 # default) and relocated if they conflict, which is a slow very memory 17489 # consuming and fragmenting process. To avoid this, we pick a random, 17490 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17491 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17492 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 17493 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 17494 ;; 17495 17496 gnu* | linux* | k*bsd*-gnu) 17497 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17498 tmp_addflag= 17499 case $cc_basename,$host_cpu in 17500 pgcc*) # Portland Group C compiler 17501 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 17502 tmp_addflag=' $pic_flag' 17503 ;; 17504 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17505 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 17506 tmp_addflag=' $pic_flag -Mnomain' ;; 17507 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17508 tmp_addflag=' -i_dynamic' ;; 17509 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17510 tmp_addflag=' -i_dynamic -nofor_main' ;; 17511 ifc* | ifort*) # Intel Fortran compiler 17512 tmp_addflag=' -nofor_main' ;; 17513 esac 17514 case `$CC -V 2>&1 | sed 5q` in 17515 *Sun\ C*) # Sun C 5.9 17516 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 17517 tmp_sharedflag='-G' ;; 17518 *Sun\ F*) # Sun Fortran 8.3 17519 tmp_sharedflag='-G' ;; 17520 *) 17521 tmp_sharedflag='-shared' ;; 17522 esac 17523 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17524 17525 if test $supports_anon_versioning = yes; then 17526 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17527 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17528 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17529 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17530 fi 17531 else 17532 ld_shlibs_GCJ=no 17533 fi 17534 ;; 17535 17536 netbsd*) 17537 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17538 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17539 wlarc= 17540 else 17541 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17542 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17543 fi 17544 ;; 17545 17546 solaris*) 17547 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17548 ld_shlibs_GCJ=no 17549 cat <<EOF 1>&2 17550 17551*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17552*** create shared libraries on Solaris systems. Therefore, libtool 17553*** is disabling shared libraries support. We urge you to upgrade GNU 17554*** binutils to release 2.9.1 or newer. Another option is to modify 17555*** your PATH or compiler configuration so that the native linker is 17556*** used, and then restart. 17557 17558EOF 17559 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17560 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17561 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17562 else 17563 ld_shlibs_GCJ=no 17564 fi 17565 ;; 17566 17567 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17568 case `$LD -v 2>&1` in 17569 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17570 ld_shlibs_GCJ=no 17571 cat <<_LT_EOF 1>&2 17572 17573*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17574*** reliably create shared libraries on SCO systems. Therefore, libtool 17575*** is disabling shared libraries support. We urge you to upgrade GNU 17576*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17577*** your PATH or compiler configuration so that the native linker is 17578*** used, and then restart. 17579 17580_LT_EOF 17581 ;; 17582 *) 17583 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17584 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17585 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17586 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17587 else 17588 ld_shlibs_GCJ=no 17589 fi 17590 ;; 17591 esac 17592 ;; 17593 17594 sunos4*) 17595 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17596 wlarc= 17597 hardcode_direct_GCJ=yes 17598 hardcode_shlibpath_var_GCJ=no 17599 ;; 17600 17601 *) 17602 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17603 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17604 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17605 else 17606 ld_shlibs_GCJ=no 17607 fi 17608 ;; 17609 esac 17610 17611 if test "$ld_shlibs_GCJ" = no; then 17612 runpath_var= 17613 hardcode_libdir_flag_spec_GCJ= 17614 export_dynamic_flag_spec_GCJ= 17615 whole_archive_flag_spec_GCJ= 17616 fi 17617 else 17618 # PORTME fill in a description of your system's linker (not GNU ld) 17619 case $host_os in 17620 aix3*) 17621 allow_undefined_flag_GCJ=unsupported 17622 always_export_symbols_GCJ=yes 17623 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 17624 # Note: this linker hardcodes the directories in LIBPATH if there 17625 # are no directories specified by -L. 17626 hardcode_minus_L_GCJ=yes 17627 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17628 # Neither direct hardcoding nor static linking is supported with a 17629 # broken collect2. 17630 hardcode_direct_GCJ=unsupported 17631 fi 17632 ;; 17633 17634 aix[4-9]*) 17635 if test "$host_cpu" = ia64; then 17636 # On IA64, the linker does run time linking by default, so we don't 17637 # have to do anything special. 17638 aix_use_runtimelinking=no 17639 exp_sym_flag='-Bexport' 17640 no_entry_flag="" 17641 else 17642 # If we're using GNU nm, then we don't want the "-C" option. 17643 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17644 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17645 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 17646 else 17647 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 17648 fi 17649 aix_use_runtimelinking=no 17650 17651 # Test if we are trying to use run time linking or normal 17652 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17653 # need to do runtime linking. 17654 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 17655 for ld_flag in $LDFLAGS; do 17656 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17657 aix_use_runtimelinking=yes 17658 break 17659 fi 17660 done 17661 ;; 17662 esac 17663 17664 exp_sym_flag='-bexport' 17665 no_entry_flag='-bnoentry' 17666 fi 17667 17668 # When large executables or shared objects are built, AIX ld can 17669 # have problems creating the table of contents. If linking a library 17670 # or program results in "error TOC overflow" add -mminimal-toc to 17671 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17672 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17673 17674 archive_cmds_GCJ='' 17675 hardcode_direct_GCJ=yes 17676 hardcode_libdir_separator_GCJ=':' 17677 link_all_deplibs_GCJ=yes 17678 17679 if test "$GCC" = yes; then 17680 case $host_os in aix4.[012]|aix4.[012].*) 17681 # We only want to do this on AIX 4.2 and lower, the check 17682 # below for broken collect2 doesn't work under 4.3+ 17683 collect2name=`${CC} -print-prog-name=collect2` 17684 if test -f "$collect2name" && \ 17685 strings "$collect2name" | grep resolve_lib_name >/dev/null 17686 then 17687 # We have reworked collect2 17688 : 17689 else 17690 # We have old collect2 17691 hardcode_direct_GCJ=unsupported 17692 # It fails to find uninstalled libraries when the uninstalled 17693 # path is not listed in the libpath. Setting hardcode_minus_L 17694 # to unsupported forces relinking 17695 hardcode_minus_L_GCJ=yes 17696 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17697 hardcode_libdir_separator_GCJ= 17698 fi 17699 ;; 17700 esac 17701 shared_flag='-shared' 17702 if test "$aix_use_runtimelinking" = yes; then 17703 shared_flag="$shared_flag "'${wl}-G' 17704 fi 17705 else 17706 # not using gcc 17707 if test "$host_cpu" = ia64; then 17708 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17709 # chokes on -Wl,-G. The following line is correct: 17710 shared_flag='-G' 17711 else 17712 if test "$aix_use_runtimelinking" = yes; then 17713 shared_flag='${wl}-G' 17714 else 17715 shared_flag='${wl}-bM:SRE' 17716 fi 17717 fi 17718 fi 17719 17720 # It seems that -bexpall does not export symbols beginning with 17721 # underscore (_), so it is better to generate a list of symbols to export. 17722 always_export_symbols_GCJ=yes 17723 if test "$aix_use_runtimelinking" = yes; then 17724 # Warning - without using the other runtime loading flags (-brtl), 17725 # -berok will link without error, but may produce a broken library. 17726 allow_undefined_flag_GCJ='-berok' 17727 # Determine the default libpath from the value encoded in an empty executable. 17728 cat >conftest.$ac_ext <<_ACEOF 17729/* confdefs.h. */ 17730_ACEOF 17731cat confdefs.h >>conftest.$ac_ext 17732cat >>conftest.$ac_ext <<_ACEOF 17733/* end confdefs.h. */ 17734 17735int 17736main () 17737{ 17738 17739 ; 17740 return 0; 17741} 17742_ACEOF 17743rm -f conftest.$ac_objext conftest$ac_exeext 17744if { (ac_try="$ac_link" 17745case "(($ac_try" in 17746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17747 *) ac_try_echo=$ac_try;; 17748esac 17749eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17750$as_echo "$ac_try_echo") >&5 17751 (eval "$ac_link") 2>conftest.er1 17752 ac_status=$? 17753 grep -v '^ *+' conftest.er1 >conftest.err 17754 rm -f conftest.er1 17755 cat conftest.err >&5 17756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17757 (exit $ac_status); } && { 17758 test -z "$ac_c_werror_flag" || 17759 test ! -s conftest.err 17760 } && test -s conftest$ac_exeext && { 17761 test "$cross_compiling" = yes || 17762 $as_test_x conftest$ac_exeext 17763 }; then 17764 17765lt_aix_libpath_sed=' 17766 /Import File Strings/,/^$/ { 17767 /^0/ { 17768 s/^0 *\(.*\)$/\1/ 17769 p 17770 } 17771 }' 17772aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17773# Check for a 64-bit object if we didn't find anything. 17774if test -z "$aix_libpath"; then 17775 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17776fi 17777else 17778 $as_echo "$as_me: failed program was:" >&5 17779sed 's/^/| /' conftest.$ac_ext >&5 17780 17781 17782fi 17783 17784rm -rf conftest.dSYM 17785rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17786 conftest$ac_exeext conftest.$ac_ext 17787if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17788 17789 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17790 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 17791 else 17792 if test "$host_cpu" = ia64; then 17793 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17794 allow_undefined_flag_GCJ="-z nodefs" 17795 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 17796 else 17797 # Determine the default libpath from the value encoded in an empty executable. 17798 cat >conftest.$ac_ext <<_ACEOF 17799/* confdefs.h. */ 17800_ACEOF 17801cat confdefs.h >>conftest.$ac_ext 17802cat >>conftest.$ac_ext <<_ACEOF 17803/* end confdefs.h. */ 17804 17805int 17806main () 17807{ 17808 17809 ; 17810 return 0; 17811} 17812_ACEOF 17813rm -f conftest.$ac_objext conftest$ac_exeext 17814if { (ac_try="$ac_link" 17815case "(($ac_try" in 17816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17817 *) ac_try_echo=$ac_try;; 17818esac 17819eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17820$as_echo "$ac_try_echo") >&5 17821 (eval "$ac_link") 2>conftest.er1 17822 ac_status=$? 17823 grep -v '^ *+' conftest.er1 >conftest.err 17824 rm -f conftest.er1 17825 cat conftest.err >&5 17826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17827 (exit $ac_status); } && { 17828 test -z "$ac_c_werror_flag" || 17829 test ! -s conftest.err 17830 } && test -s conftest$ac_exeext && { 17831 test "$cross_compiling" = yes || 17832 $as_test_x conftest$ac_exeext 17833 }; then 17834 17835lt_aix_libpath_sed=' 17836 /Import File Strings/,/^$/ { 17837 /^0/ { 17838 s/^0 *\(.*\)$/\1/ 17839 p 17840 } 17841 }' 17842aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17843# Check for a 64-bit object if we didn't find anything. 17844if test -z "$aix_libpath"; then 17845 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17846fi 17847else 17848 $as_echo "$as_me: failed program was:" >&5 17849sed 's/^/| /' conftest.$ac_ext >&5 17850 17851 17852fi 17853 17854rm -rf conftest.dSYM 17855rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17856 conftest$ac_exeext conftest.$ac_ext 17857if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17858 17859 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17860 # Warning - without using the other run time loading flags, 17861 # -berok will link without error, but may produce a broken library. 17862 no_undefined_flag_GCJ=' ${wl}-bernotok' 17863 allow_undefined_flag_GCJ=' ${wl}-berok' 17864 # Exported symbols can be pulled into shared objects from archives 17865 whole_archive_flag_spec_GCJ='$convenience' 17866 archive_cmds_need_lc_GCJ=yes 17867 # This is similar to how AIX traditionally builds its shared libraries. 17868 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 17869 fi 17870 fi 17871 ;; 17872 17873 amigaos*) 17874 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 17875 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17876 hardcode_minus_L_GCJ=yes 17877 # see comment about different semantics on the GNU ld section 17878 ld_shlibs_GCJ=no 17879 ;; 17880 17881 bsdi[45]*) 17882 export_dynamic_flag_spec_GCJ=-rdynamic 17883 ;; 17884 17885 cygwin* | mingw* | pw32*) 17886 # When not using gcc, we currently assume that we are using 17887 # Microsoft Visual C++. 17888 # hardcode_libdir_flag_spec is actually meaningless, as there is 17889 # no search path for DLLs. 17890 hardcode_libdir_flag_spec_GCJ=' ' 17891 allow_undefined_flag_GCJ=unsupported 17892 # Tell ltmain to make .lib files, not .a files. 17893 libext=lib 17894 # Tell ltmain to make .dll files, not .so files. 17895 shrext_cmds=".dll" 17896 # FIXME: Setting linknames here is a bad hack. 17897 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17898 # The linker will automatically build a .lib file if we build a DLL. 17899 old_archive_From_new_cmds_GCJ='true' 17900 # FIXME: Should let the user specify the lib program. 17901 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' 17902 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17903 enable_shared_with_static_runtimes_GCJ=yes 17904 ;; 17905 17906 darwin* | rhapsody*) 17907 case $host_os in 17908 rhapsody* | darwin1.[012]) 17909 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17910 ;; 17911 *) # Darwin 1.3 on 17912 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17913 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17914 else 17915 case ${MACOSX_DEPLOYMENT_TARGET} in 17916 10.[012]) 17917 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17918 ;; 17919 10.*) 17920 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17921 ;; 17922 esac 17923 fi 17924 ;; 17925 esac 17926 archive_cmds_need_lc_GCJ=no 17927 hardcode_direct_GCJ=no 17928 hardcode_automatic_GCJ=yes 17929 hardcode_shlibpath_var_GCJ=unsupported 17930 whole_archive_flag_spec_GCJ='' 17931 link_all_deplibs_GCJ=yes 17932 if test "$GCC" = yes ; then 17933 output_verbose_link_cmd='echo' 17934 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 17935 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 17936 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 17937 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 17938 else 17939 case $cc_basename in 17940 xlc*) 17941 output_verbose_link_cmd='echo' 17942 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 17943 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17944 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17945 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17946 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17947 ;; 17948 *) 17949 ld_shlibs_GCJ=no 17950 ;; 17951 esac 17952 fi 17953 ;; 17954 17955 dgux*) 17956 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17957 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17958 hardcode_shlibpath_var_GCJ=no 17959 ;; 17960 17961 freebsd1*) 17962 ld_shlibs_GCJ=no 17963 ;; 17964 17965 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17966 # support. Future versions do this automatically, but an explicit c++rt0.o 17967 # does not break anything, and helps significantly (at the cost of a little 17968 # extra space). 17969 freebsd2.2*) 17970 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17971 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17972 hardcode_direct_GCJ=yes 17973 hardcode_shlibpath_var_GCJ=no 17974 ;; 17975 17976 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17977 freebsd2*) 17978 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17979 hardcode_direct_GCJ=yes 17980 hardcode_minus_L_GCJ=yes 17981 hardcode_shlibpath_var_GCJ=no 17982 ;; 17983 17984 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17985 freebsd* | dragonfly*) 17986 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17987 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17988 hardcode_direct_GCJ=yes 17989 hardcode_shlibpath_var_GCJ=no 17990 ;; 17991 17992 hpux9*) 17993 if test "$GCC" = yes; then 17994 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 17995 else 17996 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 17997 fi 17998 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17999 hardcode_libdir_separator_GCJ=: 18000 hardcode_direct_GCJ=yes 18001 18002 # hardcode_minus_L: Not really in the search PATH, 18003 # but as the default location of the library. 18004 hardcode_minus_L_GCJ=yes 18005 export_dynamic_flag_spec_GCJ='${wl}-E' 18006 ;; 18007 18008 hpux10*) 18009 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18010 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18011 else 18012 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 18013 fi 18014 if test "$with_gnu_ld" = no; then 18015 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18016 hardcode_libdir_separator_GCJ=: 18017 18018 hardcode_direct_GCJ=yes 18019 export_dynamic_flag_spec_GCJ='${wl}-E' 18020 18021 # hardcode_minus_L: Not really in the search PATH, 18022 # but as the default location of the library. 18023 hardcode_minus_L_GCJ=yes 18024 fi 18025 ;; 18026 18027 hpux11*) 18028 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18029 case $host_cpu in 18030 hppa*64*) 18031 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18032 ;; 18033 ia64*) 18034 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18035 ;; 18036 *) 18037 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18038 ;; 18039 esac 18040 else 18041 case $host_cpu in 18042 hppa*64*) 18043 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18044 ;; 18045 ia64*) 18046 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18047 ;; 18048 *) 18049 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18050 ;; 18051 esac 18052 fi 18053 if test "$with_gnu_ld" = no; then 18054 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18055 hardcode_libdir_separator_GCJ=: 18056 18057 case $host_cpu in 18058 hppa*64*|ia64*) 18059 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 18060 hardcode_direct_GCJ=no 18061 hardcode_shlibpath_var_GCJ=no 18062 ;; 18063 *) 18064 hardcode_direct_GCJ=yes 18065 export_dynamic_flag_spec_GCJ='${wl}-E' 18066 18067 # hardcode_minus_L: Not really in the search PATH, 18068 # but as the default location of the library. 18069 hardcode_minus_L_GCJ=yes 18070 ;; 18071 esac 18072 fi 18073 ;; 18074 18075 irix5* | irix6* | nonstopux*) 18076 if test "$GCC" = yes; then 18077 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 18078 else 18079 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 18080 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 18081 fi 18082 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18083 hardcode_libdir_separator_GCJ=: 18084 link_all_deplibs_GCJ=yes 18085 ;; 18086 18087 netbsd*) 18088 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18089 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 18090 else 18091 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 18092 fi 18093 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18094 hardcode_direct_GCJ=yes 18095 hardcode_shlibpath_var_GCJ=no 18096 ;; 18097 18098 newsos6) 18099 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18100 hardcode_direct_GCJ=yes 18101 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18102 hardcode_libdir_separator_GCJ=: 18103 hardcode_shlibpath_var_GCJ=no 18104 ;; 18105 18106 openbsd*) 18107 if test -f /usr/libexec/ld.so; then 18108 hardcode_direct_GCJ=yes 18109 hardcode_shlibpath_var_GCJ=no 18110 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18111 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18112 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 18113 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18114 export_dynamic_flag_spec_GCJ='${wl}-E' 18115 else 18116 case $host_os in 18117 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 18118 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18119 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18120 ;; 18121 *) 18122 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18123 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18124 ;; 18125 esac 18126 fi 18127 else 18128 ld_shlibs_GCJ=no 18129 fi 18130 ;; 18131 18132 os2*) 18133 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18134 hardcode_minus_L_GCJ=yes 18135 allow_undefined_flag_GCJ=unsupported 18136 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 18137 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 18138 ;; 18139 18140 osf3*) 18141 if test "$GCC" = yes; then 18142 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18143 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 18144 else 18145 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18146 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 18147 fi 18148 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18149 hardcode_libdir_separator_GCJ=: 18150 ;; 18151 18152 osf4* | osf5*) # as osf3* with the addition of -msym flag 18153 if test "$GCC" = yes; then 18154 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18155 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 18156 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18157 else 18158 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18159 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 18160 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 18161 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 18162 18163 # Both c and cxx compiler support -rpath directly 18164 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 18165 fi 18166 hardcode_libdir_separator_GCJ=: 18167 ;; 18168 18169 solaris*) 18170 no_undefined_flag_GCJ=' -z text' 18171 if test "$GCC" = yes; then 18172 wlarc='${wl}' 18173 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18174 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18175 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 18176 else 18177 wlarc='' 18178 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 18179 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18180 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 18181 fi 18182 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18183 hardcode_shlibpath_var_GCJ=no 18184 case $host_os in 18185 solaris2.[0-5] | solaris2.[0-5].*) ;; 18186 *) 18187 # The compiler driver will combine and reorder linker options, 18188 # but understands `-z linker_flag'. GCC discards it without `$wl', 18189 # but is careful enough not to reorder. 18190 # Supported since Solaris 2.6 (maybe 2.5.1?) 18191 if test "$GCC" = yes; then 18192 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 18193 else 18194 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' 18195 fi 18196 ;; 18197 esac 18198 link_all_deplibs_GCJ=yes 18199 ;; 18200 18201 sunos4*) 18202 if test "x$host_vendor" = xsequent; then 18203 # Use $CC to link under sequent, because it throws in some extra .o 18204 # files that make .init and .fini sections work. 18205 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 18206 else 18207 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 18208 fi 18209 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18210 hardcode_direct_GCJ=yes 18211 hardcode_minus_L_GCJ=yes 18212 hardcode_shlibpath_var_GCJ=no 18213 ;; 18214 18215 sysv4) 18216 case $host_vendor in 18217 sni) 18218 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18219 hardcode_direct_GCJ=yes # is this really true??? 18220 ;; 18221 siemens) 18222 ## LD is ld it makes a PLAMLIB 18223 ## CC just makes a GrossModule. 18224 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18225 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 18226 hardcode_direct_GCJ=no 18227 ;; 18228 motorola) 18229 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18230 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 18231 ;; 18232 esac 18233 runpath_var='LD_RUN_PATH' 18234 hardcode_shlibpath_var_GCJ=no 18235 ;; 18236 18237 sysv4.3*) 18238 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18239 hardcode_shlibpath_var_GCJ=no 18240 export_dynamic_flag_spec_GCJ='-Bexport' 18241 ;; 18242 18243 sysv4*MP*) 18244 if test -d /usr/nec; then 18245 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18246 hardcode_shlibpath_var_GCJ=no 18247 runpath_var=LD_RUN_PATH 18248 hardcode_runpath_var=yes 18249 ld_shlibs_GCJ=yes 18250 fi 18251 ;; 18252 18253 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 18254 no_undefined_flag_GCJ='${wl}-z,text' 18255 archive_cmds_need_lc_GCJ=no 18256 hardcode_shlibpath_var_GCJ=no 18257 runpath_var='LD_RUN_PATH' 18258 18259 if test "$GCC" = yes; then 18260 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18261 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18262 else 18263 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18264 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18265 fi 18266 ;; 18267 18268 sysv5* | sco3.2v5* | sco5v6*) 18269 # Note: We can NOT use -z defs as we might desire, because we do not 18270 # link with -lc, and that would cause any symbols used from libc to 18271 # always be unresolved, which means just about no library would 18272 # ever link correctly. If we're not using GNU ld we use -z text 18273 # though, which does catch some bad symbols but isn't as heavy-handed 18274 # as -z defs. 18275 no_undefined_flag_GCJ='${wl}-z,text' 18276 allow_undefined_flag_GCJ='${wl}-z,nodefs' 18277 archive_cmds_need_lc_GCJ=no 18278 hardcode_shlibpath_var_GCJ=no 18279 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 18280 hardcode_libdir_separator_GCJ=':' 18281 link_all_deplibs_GCJ=yes 18282 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 18283 runpath_var='LD_RUN_PATH' 18284 18285 if test "$GCC" = yes; then 18286 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18287 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18288 else 18289 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18290 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18291 fi 18292 ;; 18293 18294 uts4*) 18295 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18296 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18297 hardcode_shlibpath_var_GCJ=no 18298 ;; 18299 18300 *) 18301 ld_shlibs_GCJ=no 18302 ;; 18303 esac 18304 fi 18305 18306{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 18307$as_echo "$ld_shlibs_GCJ" >&6; } 18308test "$ld_shlibs_GCJ" = no && can_build_shared=no 18309 18310# 18311# Do we need to explicitly link libc? 18312# 18313case "x$archive_cmds_need_lc_GCJ" in 18314x|xyes) 18315 # Assume -lc should be added 18316 archive_cmds_need_lc_GCJ=yes 18317 18318 if test "$enable_shared" = yes && test "$GCC" = yes; then 18319 case $archive_cmds_GCJ in 18320 *'~'*) 18321 # FIXME: we may have to deal with multi-command sequences. 18322 ;; 18323 '$CC '*) 18324 # Test whether the compiler implicitly links with -lc since on some 18325 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18326 # to ld, don't add -lc before -lgcc. 18327 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 18328$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 18329 $rm conftest* 18330 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18331 18332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18333 (eval $ac_compile) 2>&5 18334 ac_status=$? 18335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18336 (exit $ac_status); } 2>conftest.err; then 18337 soname=conftest 18338 lib=conftest 18339 libobjs=conftest.$ac_objext 18340 deplibs= 18341 wl=$lt_prog_compiler_wl_GCJ 18342 pic_flag=$lt_prog_compiler_pic_GCJ 18343 compiler_flags=-v 18344 linker_flags=-v 18345 verstring= 18346 output_objdir=. 18347 libname=conftest 18348 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 18349 allow_undefined_flag_GCJ= 18350 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 18351 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18352 ac_status=$? 18353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18354 (exit $ac_status); } 18355 then 18356 archive_cmds_need_lc_GCJ=no 18357 else 18358 archive_cmds_need_lc_GCJ=yes 18359 fi 18360 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 18361 else 18362 cat conftest.err 1>&5 18363 fi 18364 $rm conftest* 18365 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 18366$as_echo "$archive_cmds_need_lc_GCJ" >&6; } 18367 ;; 18368 esac 18369 fi 18370 ;; 18371esac 18372 18373{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 18374$as_echo_n "checking dynamic linker characteristics... " >&6; } 18375library_names_spec= 18376libname_spec='lib$name' 18377soname_spec= 18378shrext_cmds=".so" 18379postinstall_cmds= 18380postuninstall_cmds= 18381finish_cmds= 18382finish_eval= 18383shlibpath_var= 18384shlibpath_overrides_runpath=unknown 18385version_type=none 18386dynamic_linker="$host_os ld.so" 18387sys_lib_dlsearch_path_spec="/lib /usr/lib" 18388 18389need_lib_prefix=unknown 18390hardcode_into_libs=no 18391 18392# when you set need_version to no, make sure it does not cause -set_version 18393# flags to be left without arguments 18394need_version=unknown 18395 18396case $host_os in 18397aix3*) 18398 version_type=linux 18399 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18400 shlibpath_var=LIBPATH 18401 18402 # AIX 3 has no versioning support, so we append a major version to the name. 18403 soname_spec='${libname}${release}${shared_ext}$major' 18404 ;; 18405 18406aix[4-9]*) 18407 version_type=linux 18408 need_lib_prefix=no 18409 need_version=no 18410 hardcode_into_libs=yes 18411 if test "$host_cpu" = ia64; then 18412 # AIX 5 supports IA64 18413 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18414 shlibpath_var=LD_LIBRARY_PATH 18415 else 18416 # With GCC up to 2.95.x, collect2 would create an import file 18417 # for dependence libraries. The import file would start with 18418 # the line `#! .'. This would cause the generated library to 18419 # depend on `.', always an invalid library. This was fixed in 18420 # development snapshots of GCC prior to 3.0. 18421 case $host_os in 18422 aix4 | aix4.[01] | aix4.[01].*) 18423 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18424 echo ' yes ' 18425 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 18426 : 18427 else 18428 can_build_shared=no 18429 fi 18430 ;; 18431 esac 18432 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18433 # soname into executable. Probably we can add versioning support to 18434 # collect2, so additional links can be useful in future. 18435 if test "$aix_use_runtimelinking" = yes; then 18436 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18437 # instead of lib<name>.a to let people know that these are not 18438 # typical AIX shared libraries. 18439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18440 else 18441 # We preserve .a as extension for shared libraries through AIX4.2 18442 # and later when we are not doing run time linking. 18443 library_names_spec='${libname}${release}.a $libname.a' 18444 soname_spec='${libname}${release}${shared_ext}$major' 18445 fi 18446 shlibpath_var=LIBPATH 18447 fi 18448 ;; 18449 18450amigaos*) 18451 library_names_spec='$libname.ixlibrary $libname.a' 18452 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18453 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' 18454 ;; 18455 18456beos*) 18457 library_names_spec='${libname}${shared_ext}' 18458 dynamic_linker="$host_os ld.so" 18459 shlibpath_var=LIBRARY_PATH 18460 ;; 18461 18462bsdi[45]*) 18463 version_type=linux 18464 need_version=no 18465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18466 soname_spec='${libname}${release}${shared_ext}$major' 18467 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18468 shlibpath_var=LD_LIBRARY_PATH 18469 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18470 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18471 # the default ld.so.conf also contains /usr/contrib/lib and 18472 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18473 # libtool to hard-code these into programs 18474 ;; 18475 18476cygwin* | mingw* | pw32*) 18477 version_type=windows 18478 shrext_cmds=".dll" 18479 need_version=no 18480 need_lib_prefix=no 18481 18482 case $GCC,$host_os in 18483 yes,cygwin* | yes,mingw* | yes,pw32*) 18484 library_names_spec='$libname.dll.a' 18485 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18486 postinstall_cmds='base_file=`basename \${file}`~ 18487 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18488 dldir=$destdir/`dirname \$dlpath`~ 18489 test -d \$dldir || mkdir -p \$dldir~ 18490 $install_prog $dir/$dlname \$dldir/$dlname~ 18491 chmod a+x \$dldir/$dlname' 18492 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18493 dlpath=$dir/\$dldll~ 18494 $rm \$dlpath' 18495 shlibpath_overrides_runpath=yes 18496 18497 case $host_os in 18498 cygwin*) 18499 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18500 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18501 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 18502 ;; 18503 mingw*) 18504 # MinGW DLLs use traditional 'lib' prefix 18505 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18506 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18507 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18508 # It is most probably a Windows format PATH printed by 18509 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18510 # path with ; separators, and with drive letters. We can handle the 18511 # drive letters (cygwin fileutils understands them), so leave them, 18512 # especially as we might pass files found there to a mingw objdump, 18513 # which wouldn't understand a cygwinified path. Ahh. 18514 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18515 else 18516 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18517 fi 18518 ;; 18519 pw32*) 18520 # pw32 DLLs use 'pw' prefix rather than 'lib' 18521 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18522 ;; 18523 esac 18524 ;; 18525 18526 *) 18527 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18528 ;; 18529 esac 18530 dynamic_linker='Win32 ld.exe' 18531 # FIXME: first we should search . and the directory the executable is in 18532 shlibpath_var=PATH 18533 ;; 18534 18535darwin* | rhapsody*) 18536 dynamic_linker="$host_os dyld" 18537 version_type=darwin 18538 need_lib_prefix=no 18539 need_version=no 18540 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18541 soname_spec='${libname}${release}${major}$shared_ext' 18542 shlibpath_overrides_runpath=yes 18543 shlibpath_var=DYLD_LIBRARY_PATH 18544 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18545 18546 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18547 ;; 18548 18549dgux*) 18550 version_type=linux 18551 need_lib_prefix=no 18552 need_version=no 18553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18554 soname_spec='${libname}${release}${shared_ext}$major' 18555 shlibpath_var=LD_LIBRARY_PATH 18556 ;; 18557 18558freebsd1*) 18559 dynamic_linker=no 18560 ;; 18561 18562freebsd* | dragonfly*) 18563 # DragonFly does not have aout. When/if they implement a new 18564 # versioning mechanism, adjust this. 18565 if test -x /usr/bin/objformat; then 18566 objformat=`/usr/bin/objformat` 18567 else 18568 case $host_os in 18569 freebsd[123]*) objformat=aout ;; 18570 *) objformat=elf ;; 18571 esac 18572 fi 18573 version_type=freebsd-$objformat 18574 case $version_type in 18575 freebsd-elf*) 18576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18577 need_version=no 18578 need_lib_prefix=no 18579 ;; 18580 freebsd-*) 18581 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18582 need_version=yes 18583 ;; 18584 esac 18585 shlibpath_var=LD_LIBRARY_PATH 18586 case $host_os in 18587 freebsd2*) 18588 shlibpath_overrides_runpath=yes 18589 ;; 18590 freebsd3.[01]* | freebsdelf3.[01]*) 18591 shlibpath_overrides_runpath=yes 18592 hardcode_into_libs=yes 18593 ;; 18594 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18595 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18596 shlibpath_overrides_runpath=no 18597 hardcode_into_libs=yes 18598 ;; 18599 *) # from 4.6 on, and DragonFly 18600 shlibpath_overrides_runpath=yes 18601 hardcode_into_libs=yes 18602 ;; 18603 esac 18604 ;; 18605 18606gnu*) 18607 version_type=linux 18608 need_lib_prefix=no 18609 need_version=no 18610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18611 soname_spec='${libname}${release}${shared_ext}$major' 18612 shlibpath_var=LD_LIBRARY_PATH 18613 hardcode_into_libs=yes 18614 ;; 18615 18616hpux9* | hpux10* | hpux11*) 18617 # Give a soname corresponding to the major version so that dld.sl refuses to 18618 # link against other versions. 18619 version_type=sunos 18620 need_lib_prefix=no 18621 need_version=no 18622 case $host_cpu in 18623 ia64*) 18624 shrext_cmds='.so' 18625 hardcode_into_libs=yes 18626 dynamic_linker="$host_os dld.so" 18627 shlibpath_var=LD_LIBRARY_PATH 18628 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18630 soname_spec='${libname}${release}${shared_ext}$major' 18631 if test "X$HPUX_IA64_MODE" = X32; then 18632 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18633 else 18634 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18635 fi 18636 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18637 ;; 18638 hppa*64*) 18639 shrext_cmds='.sl' 18640 hardcode_into_libs=yes 18641 dynamic_linker="$host_os dld.sl" 18642 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18643 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18645 soname_spec='${libname}${release}${shared_ext}$major' 18646 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18647 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18648 ;; 18649 *) 18650 shrext_cmds='.sl' 18651 dynamic_linker="$host_os dld.sl" 18652 shlibpath_var=SHLIB_PATH 18653 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18655 soname_spec='${libname}${release}${shared_ext}$major' 18656 ;; 18657 esac 18658 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18659 postinstall_cmds='chmod 555 $lib' 18660 ;; 18661 18662interix[3-9]*) 18663 version_type=linux 18664 need_lib_prefix=no 18665 need_version=no 18666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18667 soname_spec='${libname}${release}${shared_ext}$major' 18668 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18669 shlibpath_var=LD_LIBRARY_PATH 18670 shlibpath_overrides_runpath=no 18671 hardcode_into_libs=yes 18672 ;; 18673 18674irix5* | irix6* | nonstopux*) 18675 case $host_os in 18676 nonstopux*) version_type=nonstopux ;; 18677 *) 18678 if test "$lt_cv_prog_gnu_ld" = yes; then 18679 version_type=linux 18680 else 18681 version_type=irix 18682 fi ;; 18683 esac 18684 need_lib_prefix=no 18685 need_version=no 18686 soname_spec='${libname}${release}${shared_ext}$major' 18687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18688 case $host_os in 18689 irix5* | nonstopux*) 18690 libsuff= shlibsuff= 18691 ;; 18692 *) 18693 case $LD in # libtool.m4 will add one of these switches to LD 18694 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18695 libsuff= shlibsuff= libmagic=32-bit;; 18696 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18697 libsuff=32 shlibsuff=N32 libmagic=N32;; 18698 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18699 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18700 *) libsuff= shlibsuff= libmagic=never-match;; 18701 esac 18702 ;; 18703 esac 18704 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18705 shlibpath_overrides_runpath=no 18706 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18707 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18708 hardcode_into_libs=yes 18709 ;; 18710 18711# No shared lib support for Linux oldld, aout, or coff. 18712linux*oldld* | linux*aout* | linux*coff*) 18713 dynamic_linker=no 18714 ;; 18715 18716# This must be Linux ELF. 18717linux* | k*bsd*-gnu) 18718 version_type=linux 18719 need_lib_prefix=no 18720 need_version=no 18721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18722 soname_spec='${libname}${release}${shared_ext}$major' 18723 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18724 shlibpath_var=LD_LIBRARY_PATH 18725 shlibpath_overrides_runpath=no 18726 # This implies no fast_install, which is unacceptable. 18727 # Some rework will be needed to allow for fast_install 18728 # before this can be enabled. 18729 hardcode_into_libs=yes 18730 18731 # Append ld.so.conf contents to the search path 18732 if test -f /etc/ld.so.conf; then 18733 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' ' '` 18734 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18735 fi 18736 18737 # We used to test for /lib/ld.so.1 and disable shared libraries on 18738 # powerpc, because MkLinux only supported shared libraries with the 18739 # GNU dynamic linker. Since this was broken with cross compilers, 18740 # most powerpc-linux boxes support dynamic linking these days and 18741 # people can always --disable-shared, the test was removed, and we 18742 # assume the GNU/Linux dynamic linker is in use. 18743 dynamic_linker='GNU/Linux ld.so' 18744 ;; 18745 18746netbsd*) 18747 version_type=sunos 18748 need_lib_prefix=no 18749 need_version=no 18750 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18752 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18753 dynamic_linker='NetBSD (a.out) ld.so' 18754 else 18755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18756 soname_spec='${libname}${release}${shared_ext}$major' 18757 dynamic_linker='NetBSD ld.elf_so' 18758 fi 18759 shlibpath_var=LD_LIBRARY_PATH 18760 shlibpath_overrides_runpath=yes 18761 hardcode_into_libs=yes 18762 ;; 18763 18764newsos6) 18765 version_type=linux 18766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18767 shlibpath_var=LD_LIBRARY_PATH 18768 shlibpath_overrides_runpath=yes 18769 ;; 18770 18771nto-qnx*) 18772 version_type=linux 18773 need_lib_prefix=no 18774 need_version=no 18775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18776 soname_spec='${libname}${release}${shared_ext}$major' 18777 shlibpath_var=LD_LIBRARY_PATH 18778 shlibpath_overrides_runpath=yes 18779 ;; 18780 18781openbsd*) 18782 version_type=sunos 18783 sys_lib_dlsearch_path_spec="/usr/lib" 18784 need_lib_prefix=no 18785 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18786 case $host_os in 18787 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18788 *) need_version=no ;; 18789 esac 18790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18791 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18792 shlibpath_var=LD_LIBRARY_PATH 18793 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18794 case $host_os in 18795 openbsd2.[89] | openbsd2.[89].*) 18796 shlibpath_overrides_runpath=no 18797 ;; 18798 *) 18799 shlibpath_overrides_runpath=yes 18800 ;; 18801 esac 18802 else 18803 shlibpath_overrides_runpath=yes 18804 fi 18805 ;; 18806 18807os2*) 18808 libname_spec='$name' 18809 shrext_cmds=".dll" 18810 need_lib_prefix=no 18811 library_names_spec='$libname${shared_ext} $libname.a' 18812 dynamic_linker='OS/2 ld.exe' 18813 shlibpath_var=LIBPATH 18814 ;; 18815 18816osf3* | osf4* | osf5*) 18817 version_type=osf 18818 need_lib_prefix=no 18819 need_version=no 18820 soname_spec='${libname}${release}${shared_ext}$major' 18821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18822 shlibpath_var=LD_LIBRARY_PATH 18823 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18824 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18825 ;; 18826 18827rdos*) 18828 dynamic_linker=no 18829 ;; 18830 18831solaris*) 18832 version_type=linux 18833 need_lib_prefix=no 18834 need_version=no 18835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18836 soname_spec='${libname}${release}${shared_ext}$major' 18837 shlibpath_var=LD_LIBRARY_PATH 18838 shlibpath_overrides_runpath=yes 18839 hardcode_into_libs=yes 18840 # ldd complains unless libraries are executable 18841 postinstall_cmds='chmod +x $lib' 18842 ;; 18843 18844sunos4*) 18845 version_type=sunos 18846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18847 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18848 shlibpath_var=LD_LIBRARY_PATH 18849 shlibpath_overrides_runpath=yes 18850 if test "$with_gnu_ld" = yes; then 18851 need_lib_prefix=no 18852 fi 18853 need_version=yes 18854 ;; 18855 18856sysv4 | sysv4.3*) 18857 version_type=linux 18858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18859 soname_spec='${libname}${release}${shared_ext}$major' 18860 shlibpath_var=LD_LIBRARY_PATH 18861 case $host_vendor in 18862 sni) 18863 shlibpath_overrides_runpath=no 18864 need_lib_prefix=no 18865 export_dynamic_flag_spec='${wl}-Blargedynsym' 18866 runpath_var=LD_RUN_PATH 18867 ;; 18868 siemens) 18869 need_lib_prefix=no 18870 ;; 18871 motorola) 18872 need_lib_prefix=no 18873 need_version=no 18874 shlibpath_overrides_runpath=no 18875 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18876 ;; 18877 esac 18878 ;; 18879 18880sysv4*MP*) 18881 if test -d /usr/nec ;then 18882 version_type=linux 18883 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18884 soname_spec='$libname${shared_ext}.$major' 18885 shlibpath_var=LD_LIBRARY_PATH 18886 fi 18887 ;; 18888 18889sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18890 version_type=freebsd-elf 18891 need_lib_prefix=no 18892 need_version=no 18893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18894 soname_spec='${libname}${release}${shared_ext}$major' 18895 shlibpath_var=LD_LIBRARY_PATH 18896 hardcode_into_libs=yes 18897 if test "$with_gnu_ld" = yes; then 18898 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18899 shlibpath_overrides_runpath=no 18900 else 18901 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18902 shlibpath_overrides_runpath=yes 18903 case $host_os in 18904 sco3.2v5*) 18905 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18906 ;; 18907 esac 18908 fi 18909 sys_lib_dlsearch_path_spec='/usr/lib' 18910 ;; 18911 18912uts4*) 18913 version_type=linux 18914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18915 soname_spec='${libname}${release}${shared_ext}$major' 18916 shlibpath_var=LD_LIBRARY_PATH 18917 ;; 18918 18919*) 18920 dynamic_linker=no 18921 ;; 18922esac 18923{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18924$as_echo "$dynamic_linker" >&6; } 18925test "$dynamic_linker" = no && can_build_shared=no 18926 18927if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 18928 $as_echo_n "(cached) " >&6 18929else 18930 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 18931fi 18932 18933sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 18934if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 18935 $as_echo_n "(cached) " >&6 18936else 18937 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 18938fi 18939 18940sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 18941 18942variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18943if test "$GCC" = yes; then 18944 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18945fi 18946 18947{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18948$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 18949hardcode_action_GCJ= 18950if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18951 test -n "$runpath_var_GCJ" || \ 18952 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18953 18954 # We can hardcode non-existant directories. 18955 if test "$hardcode_direct_GCJ" != no && 18956 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18957 # have to relink, otherwise we might link with an installed library 18958 # when we should be linking with a yet-to-be-installed one 18959 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18960 test "$hardcode_minus_L_GCJ" != no; then 18961 # Linking always hardcodes the temporary library directory. 18962 hardcode_action_GCJ=relink 18963 else 18964 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18965 hardcode_action_GCJ=immediate 18966 fi 18967else 18968 # We cannot hardcode anything, or else we can only hardcode existing 18969 # directories. 18970 hardcode_action_GCJ=unsupported 18971fi 18972{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18973$as_echo "$hardcode_action_GCJ" >&6; } 18974 18975if test "$hardcode_action_GCJ" = relink; then 18976 # Fast installation is not supported 18977 enable_fast_install=no 18978elif test "$shlibpath_overrides_runpath" = yes || 18979 test "$enable_shared" = no; then 18980 # Fast installation is not necessary 18981 enable_fast_install=needless 18982fi 18983 18984 18985# The else clause should only fire when bootstrapping the 18986# libtool distribution, otherwise you forgot to ship ltmain.sh 18987# with your package, and you will get complaints that there are 18988# no rules to generate ltmain.sh. 18989if test -f "$ltmain"; then 18990 # See if we are running on zsh, and set the options which allow our commands through 18991 # without removal of \ escapes. 18992 if test -n "${ZSH_VERSION+set}" ; then 18993 setopt NO_GLOB_SUBST 18994 fi 18995 # Now quote all the things that may contain metacharacters while being 18996 # careful not to overquote the AC_SUBSTed values. We take copies of the 18997 # variables and quote the copies for generation of the libtool script. 18998 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18999 SED SHELL STRIP \ 19000 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19001 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19002 deplibs_check_method reload_flag reload_cmds need_locks \ 19003 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19004 lt_cv_sys_global_symbol_to_c_name_address \ 19005 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19006 old_postinstall_cmds old_postuninstall_cmds \ 19007 compiler_GCJ \ 19008 CC_GCJ \ 19009 LD_GCJ \ 19010 lt_prog_compiler_wl_GCJ \ 19011 lt_prog_compiler_pic_GCJ \ 19012 lt_prog_compiler_static_GCJ \ 19013 lt_prog_compiler_no_builtin_flag_GCJ \ 19014 export_dynamic_flag_spec_GCJ \ 19015 thread_safe_flag_spec_GCJ \ 19016 whole_archive_flag_spec_GCJ \ 19017 enable_shared_with_static_runtimes_GCJ \ 19018 old_archive_cmds_GCJ \ 19019 old_archive_from_new_cmds_GCJ \ 19020 predep_objects_GCJ \ 19021 postdep_objects_GCJ \ 19022 predeps_GCJ \ 19023 postdeps_GCJ \ 19024 compiler_lib_search_path_GCJ \ 19025 compiler_lib_search_dirs_GCJ \ 19026 archive_cmds_GCJ \ 19027 archive_expsym_cmds_GCJ \ 19028 postinstall_cmds_GCJ \ 19029 postuninstall_cmds_GCJ \ 19030 old_archive_from_expsyms_cmds_GCJ \ 19031 allow_undefined_flag_GCJ \ 19032 no_undefined_flag_GCJ \ 19033 export_symbols_cmds_GCJ \ 19034 hardcode_libdir_flag_spec_GCJ \ 19035 hardcode_libdir_flag_spec_ld_GCJ \ 19036 hardcode_libdir_separator_GCJ \ 19037 hardcode_automatic_GCJ \ 19038 module_cmds_GCJ \ 19039 module_expsym_cmds_GCJ \ 19040 lt_cv_prog_compiler_c_o_GCJ \ 19041 fix_srcfile_path_GCJ \ 19042 exclude_expsyms_GCJ \ 19043 include_expsyms_GCJ; do 19044 19045 case $var in 19046 old_archive_cmds_GCJ | \ 19047 old_archive_from_new_cmds_GCJ | \ 19048 archive_cmds_GCJ | \ 19049 archive_expsym_cmds_GCJ | \ 19050 module_cmds_GCJ | \ 19051 module_expsym_cmds_GCJ | \ 19052 old_archive_from_expsyms_cmds_GCJ | \ 19053 export_symbols_cmds_GCJ | \ 19054 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19055 postinstall_cmds | postuninstall_cmds | \ 19056 old_postinstall_cmds | old_postuninstall_cmds | \ 19057 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19058 # Double-quote double-evaled strings. 19059 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19060 ;; 19061 *) 19062 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19063 ;; 19064 esac 19065 done 19066 19067 case $lt_echo in 19068 *'\$0 --fallback-echo"') 19069 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19070 ;; 19071 esac 19072 19073cfgfile="$ofile" 19074 19075 cat <<__EOF__ >> "$cfgfile" 19076# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19077 19078# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19079 19080# Shell to use when invoking shell scripts. 19081SHELL=$lt_SHELL 19082 19083# Whether or not to build shared libraries. 19084build_libtool_libs=$enable_shared 19085 19086# Whether or not to build static libraries. 19087build_old_libs=$enable_static 19088 19089# Whether or not to add -lc for building shared libraries. 19090build_libtool_need_lc=$archive_cmds_need_lc_GCJ 19091 19092# Whether or not to disallow shared libs when runtime libs are static 19093allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 19094 19095# Whether or not to optimize for fast installation. 19096fast_install=$enable_fast_install 19097 19098# The host system. 19099host_alias=$host_alias 19100host=$host 19101host_os=$host_os 19102 19103# The build system. 19104build_alias=$build_alias 19105build=$build 19106build_os=$build_os 19107 19108# An echo program that does not interpret backslashes. 19109echo=$lt_echo 19110 19111# The archiver. 19112AR=$lt_AR 19113AR_FLAGS=$lt_AR_FLAGS 19114 19115# A C compiler. 19116LTCC=$lt_LTCC 19117 19118# LTCC compiler flags. 19119LTCFLAGS=$lt_LTCFLAGS 19120 19121# A language-specific compiler. 19122CC=$lt_compiler_GCJ 19123 19124# Is the compiler the GNU C compiler? 19125with_gcc=$GCC_GCJ 19126 19127# An ERE matcher. 19128EGREP=$lt_EGREP 19129 19130# The linker used to build libraries. 19131LD=$lt_LD_GCJ 19132 19133# Whether we need hard or soft links. 19134LN_S=$lt_LN_S 19135 19136# A BSD-compatible nm program. 19137NM=$lt_NM 19138 19139# A symbol stripping program 19140STRIP=$lt_STRIP 19141 19142# Used to examine libraries when file_magic_cmd begins "file" 19143MAGIC_CMD=$MAGIC_CMD 19144 19145# Used on cygwin: DLL creation program. 19146DLLTOOL="$DLLTOOL" 19147 19148# Used on cygwin: object dumper. 19149OBJDUMP="$OBJDUMP" 19150 19151# Used on cygwin: assembler. 19152AS="$AS" 19153 19154# The name of the directory that contains temporary libtool files. 19155objdir=$objdir 19156 19157# How to create reloadable object files. 19158reload_flag=$lt_reload_flag 19159reload_cmds=$lt_reload_cmds 19160 19161# How to pass a linker flag through the compiler. 19162wl=$lt_lt_prog_compiler_wl_GCJ 19163 19164# Object file suffix (normally "o"). 19165objext="$ac_objext" 19166 19167# Old archive suffix (normally "a"). 19168libext="$libext" 19169 19170# Shared library suffix (normally ".so"). 19171shrext_cmds='$shrext_cmds' 19172 19173# Executable file suffix (normally ""). 19174exeext="$exeext" 19175 19176# Additional compiler flags for building library objects. 19177pic_flag=$lt_lt_prog_compiler_pic_GCJ 19178pic_mode=$pic_mode 19179 19180# What is the maximum length of a command? 19181max_cmd_len=$lt_cv_sys_max_cmd_len 19182 19183# Does compiler simultaneously support -c and -o options? 19184compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 19185 19186# Must we lock files when doing compilation? 19187need_locks=$lt_need_locks 19188 19189# Do we need the lib prefix for modules? 19190need_lib_prefix=$need_lib_prefix 19191 19192# Do we need a version for libraries? 19193need_version=$need_version 19194 19195# Whether dlopen is supported. 19196dlopen_support=$enable_dlopen 19197 19198# Whether dlopen of programs is supported. 19199dlopen_self=$enable_dlopen_self 19200 19201# Whether dlopen of statically linked programs is supported. 19202dlopen_self_static=$enable_dlopen_self_static 19203 19204# Compiler flag to prevent dynamic linking. 19205link_static_flag=$lt_lt_prog_compiler_static_GCJ 19206 19207# Compiler flag to turn off builtin functions. 19208no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19209 19210# Compiler flag to allow reflexive dlopens. 19211export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19212 19213# Compiler flag to generate shared objects directly from archives. 19214whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19215 19216# Compiler flag to generate thread-safe objects. 19217thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19218 19219# Library versioning type. 19220version_type=$version_type 19221 19222# Format of library name prefix. 19223libname_spec=$lt_libname_spec 19224 19225# List of archive names. First name is the real one, the rest are links. 19226# The last name is the one that the linker finds with -lNAME. 19227library_names_spec=$lt_library_names_spec 19228 19229# The coded name of the library, if different from the real name. 19230soname_spec=$lt_soname_spec 19231 19232# Commands used to build and install an old-style archive. 19233RANLIB=$lt_RANLIB 19234old_archive_cmds=$lt_old_archive_cmds_GCJ 19235old_postinstall_cmds=$lt_old_postinstall_cmds 19236old_postuninstall_cmds=$lt_old_postuninstall_cmds 19237 19238# Create an old-style archive from a shared archive. 19239old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19240 19241# Create a temporary old-style archive to link instead of a shared archive. 19242old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19243 19244# Commands used to build and install a shared archive. 19245archive_cmds=$lt_archive_cmds_GCJ 19246archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19247postinstall_cmds=$lt_postinstall_cmds 19248postuninstall_cmds=$lt_postuninstall_cmds 19249 19250# Commands used to build a loadable module (assumed same as above if empty) 19251module_cmds=$lt_module_cmds_GCJ 19252module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19253 19254# Commands to strip libraries. 19255old_striplib=$lt_old_striplib 19256striplib=$lt_striplib 19257 19258# Dependencies to place before the objects being linked to create a 19259# shared library. 19260predep_objects=$lt_predep_objects_GCJ 19261 19262# Dependencies to place after the objects being linked to create a 19263# shared library. 19264postdep_objects=$lt_postdep_objects_GCJ 19265 19266# Dependencies to place before the objects being linked to create a 19267# shared library. 19268predeps=$lt_predeps_GCJ 19269 19270# Dependencies to place after the objects being linked to create a 19271# shared library. 19272postdeps=$lt_postdeps_GCJ 19273 19274# The directories searched by this compiler when creating a shared 19275# library 19276compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ 19277 19278# The library search path used internally by the compiler when linking 19279# a shared library. 19280compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19281 19282# Method to check whether dependent libraries are shared objects. 19283deplibs_check_method=$lt_deplibs_check_method 19284 19285# Command to use when deplibs_check_method == file_magic. 19286file_magic_cmd=$lt_file_magic_cmd 19287 19288# Flag that allows shared libraries with undefined symbols to be built. 19289allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19290 19291# Flag that forces no undefined symbols. 19292no_undefined_flag=$lt_no_undefined_flag_GCJ 19293 19294# Commands used to finish a libtool library installation in a directory. 19295finish_cmds=$lt_finish_cmds 19296 19297# Same as above, but a single script fragment to be evaled but not shown. 19298finish_eval=$lt_finish_eval 19299 19300# Take the output of nm and produce a listing of raw symbols and C names. 19301global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19302 19303# Transform the output of nm in a proper C declaration 19304global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19305 19306# Transform the output of nm in a C name address pair 19307global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19308 19309# This is the shared library runtime path variable. 19310runpath_var=$runpath_var 19311 19312# This is the shared library path variable. 19313shlibpath_var=$shlibpath_var 19314 19315# Is shlibpath searched before the hard-coded library search path? 19316shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19317 19318# How to hardcode a shared library path into an executable. 19319hardcode_action=$hardcode_action_GCJ 19320 19321# Whether we should hardcode library paths into libraries. 19322hardcode_into_libs=$hardcode_into_libs 19323 19324# Flag to hardcode \$libdir into a binary during linking. 19325# This must work even if \$libdir does not exist. 19326hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19327 19328# If ld is used when linking, flag to hardcode \$libdir into 19329# a binary during linking. This must work even if \$libdir does 19330# not exist. 19331hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19332 19333# Whether we need a single -rpath flag with a separated argument. 19334hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19335 19336# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19337# resulting binary. 19338hardcode_direct=$hardcode_direct_GCJ 19339 19340# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19341# resulting binary. 19342hardcode_minus_L=$hardcode_minus_L_GCJ 19343 19344# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19345# the resulting binary. 19346hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19347 19348# Set to yes if building a shared library automatically hardcodes DIR into the library 19349# and all subsequent libraries and executables linked against it. 19350hardcode_automatic=$hardcode_automatic_GCJ 19351 19352# Variables whose values should be saved in libtool wrapper scripts and 19353# restored at relink time. 19354variables_saved_for_relink="$variables_saved_for_relink" 19355 19356# Whether libtool must link a program against all its dependency libraries. 19357link_all_deplibs=$link_all_deplibs_GCJ 19358 19359# Compile-time system search path for libraries 19360sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19361 19362# Run-time system search path for libraries 19363sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19364 19365# Fix the shell variable \$srcfile for the compiler. 19366fix_srcfile_path=$lt_fix_srcfile_path 19367 19368# Set to yes if exported symbols are required. 19369always_export_symbols=$always_export_symbols_GCJ 19370 19371# The commands to list exported symbols. 19372export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19373 19374# The commands to extract the exported symbol list from a shared archive. 19375extract_expsyms_cmds=$lt_extract_expsyms_cmds 19376 19377# Symbols that should not be listed in the preloaded symbols. 19378exclude_expsyms=$lt_exclude_expsyms_GCJ 19379 19380# Symbols that must always be exported. 19381include_expsyms=$lt_include_expsyms_GCJ 19382 19383# ### END LIBTOOL TAG CONFIG: $tagname 19384 19385__EOF__ 19386 19387 19388else 19389 # If there is no Makefile yet, we rely on a make rule to execute 19390 # `config.status --recheck' to rerun these tests and create the 19391 # libtool script then. 19392 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19393 if test -f "$ltmain_in"; then 19394 test -f Makefile && make "$ltmain" 19395 fi 19396fi 19397 19398 19399ac_ext=c 19400ac_cpp='$CPP $CPPFLAGS' 19401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19403ac_compiler_gnu=$ac_cv_c_compiler_gnu 19404 19405CC="$lt_save_CC" 19406 19407 else 19408 tagname="" 19409 fi 19410 ;; 19411 19412 RC) 19413 19414 19415# Source file extension for RC test sources. 19416ac_ext=rc 19417 19418# Object file extension for compiled RC test sources. 19419objext=o 19420objext_RC=$objext 19421 19422# Code to be used in simple compile tests 19423lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 19424 19425# Code to be used in simple link tests 19426lt_simple_link_test_code="$lt_simple_compile_test_code" 19427 19428# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19429 19430# If no C compiler was specified, use CC. 19431LTCC=${LTCC-"$CC"} 19432 19433# If no C compiler flags were specified, use CFLAGS. 19434LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19435 19436# Allow CC to be a program name with arguments. 19437compiler=$CC 19438 19439 19440# save warnings/boilerplate of simple test code 19441ac_outfile=conftest.$ac_objext 19442echo "$lt_simple_compile_test_code" >conftest.$ac_ext 19443eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19444_lt_compiler_boilerplate=`cat conftest.err` 19445$rm conftest* 19446 19447ac_outfile=conftest.$ac_objext 19448echo "$lt_simple_link_test_code" >conftest.$ac_ext 19449eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19450_lt_linker_boilerplate=`cat conftest.err` 19451$rm -r conftest* 19452 19453 19454# Allow CC to be a program name with arguments. 19455lt_save_CC="$CC" 19456CC=${RC-"windres"} 19457compiler=$CC 19458compiler_RC=$CC 19459for cc_temp in $compiler""; do 19460 case $cc_temp in 19461 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19462 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19463 \-*) ;; 19464 *) break;; 19465 esac 19466done 19467cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19468 19469lt_cv_prog_compiler_c_o_RC=yes 19470 19471# The else clause should only fire when bootstrapping the 19472# libtool distribution, otherwise you forgot to ship ltmain.sh 19473# with your package, and you will get complaints that there are 19474# no rules to generate ltmain.sh. 19475if test -f "$ltmain"; then 19476 # See if we are running on zsh, and set the options which allow our commands through 19477 # without removal of \ escapes. 19478 if test -n "${ZSH_VERSION+set}" ; then 19479 setopt NO_GLOB_SUBST 19480 fi 19481 # Now quote all the things that may contain metacharacters while being 19482 # careful not to overquote the AC_SUBSTed values. We take copies of the 19483 # variables and quote the copies for generation of the libtool script. 19484 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19485 SED SHELL STRIP \ 19486 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19487 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19488 deplibs_check_method reload_flag reload_cmds need_locks \ 19489 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19490 lt_cv_sys_global_symbol_to_c_name_address \ 19491 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19492 old_postinstall_cmds old_postuninstall_cmds \ 19493 compiler_RC \ 19494 CC_RC \ 19495 LD_RC \ 19496 lt_prog_compiler_wl_RC \ 19497 lt_prog_compiler_pic_RC \ 19498 lt_prog_compiler_static_RC \ 19499 lt_prog_compiler_no_builtin_flag_RC \ 19500 export_dynamic_flag_spec_RC \ 19501 thread_safe_flag_spec_RC \ 19502 whole_archive_flag_spec_RC \ 19503 enable_shared_with_static_runtimes_RC \ 19504 old_archive_cmds_RC \ 19505 old_archive_from_new_cmds_RC \ 19506 predep_objects_RC \ 19507 postdep_objects_RC \ 19508 predeps_RC \ 19509 postdeps_RC \ 19510 compiler_lib_search_path_RC \ 19511 compiler_lib_search_dirs_RC \ 19512 archive_cmds_RC \ 19513 archive_expsym_cmds_RC \ 19514 postinstall_cmds_RC \ 19515 postuninstall_cmds_RC \ 19516 old_archive_from_expsyms_cmds_RC \ 19517 allow_undefined_flag_RC \ 19518 no_undefined_flag_RC \ 19519 export_symbols_cmds_RC \ 19520 hardcode_libdir_flag_spec_RC \ 19521 hardcode_libdir_flag_spec_ld_RC \ 19522 hardcode_libdir_separator_RC \ 19523 hardcode_automatic_RC \ 19524 module_cmds_RC \ 19525 module_expsym_cmds_RC \ 19526 lt_cv_prog_compiler_c_o_RC \ 19527 fix_srcfile_path_RC \ 19528 exclude_expsyms_RC \ 19529 include_expsyms_RC; do 19530 19531 case $var in 19532 old_archive_cmds_RC | \ 19533 old_archive_from_new_cmds_RC | \ 19534 archive_cmds_RC | \ 19535 archive_expsym_cmds_RC | \ 19536 module_cmds_RC | \ 19537 module_expsym_cmds_RC | \ 19538 old_archive_from_expsyms_cmds_RC | \ 19539 export_symbols_cmds_RC | \ 19540 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19541 postinstall_cmds | postuninstall_cmds | \ 19542 old_postinstall_cmds | old_postuninstall_cmds | \ 19543 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19544 # Double-quote double-evaled strings. 19545 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19546 ;; 19547 *) 19548 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19549 ;; 19550 esac 19551 done 19552 19553 case $lt_echo in 19554 *'\$0 --fallback-echo"') 19555 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19556 ;; 19557 esac 19558 19559cfgfile="$ofile" 19560 19561 cat <<__EOF__ >> "$cfgfile" 19562# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19563 19564# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19565 19566# Shell to use when invoking shell scripts. 19567SHELL=$lt_SHELL 19568 19569# Whether or not to build shared libraries. 19570build_libtool_libs=$enable_shared 19571 19572# Whether or not to build static libraries. 19573build_old_libs=$enable_static 19574 19575# Whether or not to add -lc for building shared libraries. 19576build_libtool_need_lc=$archive_cmds_need_lc_RC 19577 19578# Whether or not to disallow shared libs when runtime libs are static 19579allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19580 19581# Whether or not to optimize for fast installation. 19582fast_install=$enable_fast_install 19583 19584# The host system. 19585host_alias=$host_alias 19586host=$host 19587host_os=$host_os 19588 19589# The build system. 19590build_alias=$build_alias 19591build=$build 19592build_os=$build_os 19593 19594# An echo program that does not interpret backslashes. 19595echo=$lt_echo 19596 19597# The archiver. 19598AR=$lt_AR 19599AR_FLAGS=$lt_AR_FLAGS 19600 19601# A C compiler. 19602LTCC=$lt_LTCC 19603 19604# LTCC compiler flags. 19605LTCFLAGS=$lt_LTCFLAGS 19606 19607# A language-specific compiler. 19608CC=$lt_compiler_RC 19609 19610# Is the compiler the GNU C compiler? 19611with_gcc=$GCC_RC 19612 19613# An ERE matcher. 19614EGREP=$lt_EGREP 19615 19616# The linker used to build libraries. 19617LD=$lt_LD_RC 19618 19619# Whether we need hard or soft links. 19620LN_S=$lt_LN_S 19621 19622# A BSD-compatible nm program. 19623NM=$lt_NM 19624 19625# A symbol stripping program 19626STRIP=$lt_STRIP 19627 19628# Used to examine libraries when file_magic_cmd begins "file" 19629MAGIC_CMD=$MAGIC_CMD 19630 19631# Used on cygwin: DLL creation program. 19632DLLTOOL="$DLLTOOL" 19633 19634# Used on cygwin: object dumper. 19635OBJDUMP="$OBJDUMP" 19636 19637# Used on cygwin: assembler. 19638AS="$AS" 19639 19640# The name of the directory that contains temporary libtool files. 19641objdir=$objdir 19642 19643# How to create reloadable object files. 19644reload_flag=$lt_reload_flag 19645reload_cmds=$lt_reload_cmds 19646 19647# How to pass a linker flag through the compiler. 19648wl=$lt_lt_prog_compiler_wl_RC 19649 19650# Object file suffix (normally "o"). 19651objext="$ac_objext" 19652 19653# Old archive suffix (normally "a"). 19654libext="$libext" 19655 19656# Shared library suffix (normally ".so"). 19657shrext_cmds='$shrext_cmds' 19658 19659# Executable file suffix (normally ""). 19660exeext="$exeext" 19661 19662# Additional compiler flags for building library objects. 19663pic_flag=$lt_lt_prog_compiler_pic_RC 19664pic_mode=$pic_mode 19665 19666# What is the maximum length of a command? 19667max_cmd_len=$lt_cv_sys_max_cmd_len 19668 19669# Does compiler simultaneously support -c and -o options? 19670compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19671 19672# Must we lock files when doing compilation? 19673need_locks=$lt_need_locks 19674 19675# Do we need the lib prefix for modules? 19676need_lib_prefix=$need_lib_prefix 19677 19678# Do we need a version for libraries? 19679need_version=$need_version 19680 19681# Whether dlopen is supported. 19682dlopen_support=$enable_dlopen 19683 19684# Whether dlopen of programs is supported. 19685dlopen_self=$enable_dlopen_self 19686 19687# Whether dlopen of statically linked programs is supported. 19688dlopen_self_static=$enable_dlopen_self_static 19689 19690# Compiler flag to prevent dynamic linking. 19691link_static_flag=$lt_lt_prog_compiler_static_RC 19692 19693# Compiler flag to turn off builtin functions. 19694no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19695 19696# Compiler flag to allow reflexive dlopens. 19697export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19698 19699# Compiler flag to generate shared objects directly from archives. 19700whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19701 19702# Compiler flag to generate thread-safe objects. 19703thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19704 19705# Library versioning type. 19706version_type=$version_type 19707 19708# Format of library name prefix. 19709libname_spec=$lt_libname_spec 19710 19711# List of archive names. First name is the real one, the rest are links. 19712# The last name is the one that the linker finds with -lNAME. 19713library_names_spec=$lt_library_names_spec 19714 19715# The coded name of the library, if different from the real name. 19716soname_spec=$lt_soname_spec 19717 19718# Commands used to build and install an old-style archive. 19719RANLIB=$lt_RANLIB 19720old_archive_cmds=$lt_old_archive_cmds_RC 19721old_postinstall_cmds=$lt_old_postinstall_cmds 19722old_postuninstall_cmds=$lt_old_postuninstall_cmds 19723 19724# Create an old-style archive from a shared archive. 19725old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19726 19727# Create a temporary old-style archive to link instead of a shared archive. 19728old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19729 19730# Commands used to build and install a shared archive. 19731archive_cmds=$lt_archive_cmds_RC 19732archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19733postinstall_cmds=$lt_postinstall_cmds 19734postuninstall_cmds=$lt_postuninstall_cmds 19735 19736# Commands used to build a loadable module (assumed same as above if empty) 19737module_cmds=$lt_module_cmds_RC 19738module_expsym_cmds=$lt_module_expsym_cmds_RC 19739 19740# Commands to strip libraries. 19741old_striplib=$lt_old_striplib 19742striplib=$lt_striplib 19743 19744# Dependencies to place before the objects being linked to create a 19745# shared library. 19746predep_objects=$lt_predep_objects_RC 19747 19748# Dependencies to place after the objects being linked to create a 19749# shared library. 19750postdep_objects=$lt_postdep_objects_RC 19751 19752# Dependencies to place before the objects being linked to create a 19753# shared library. 19754predeps=$lt_predeps_RC 19755 19756# Dependencies to place after the objects being linked to create a 19757# shared library. 19758postdeps=$lt_postdeps_RC 19759 19760# The directories searched by this compiler when creating a shared 19761# library 19762compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC 19763 19764# The library search path used internally by the compiler when linking 19765# a shared library. 19766compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19767 19768# Method to check whether dependent libraries are shared objects. 19769deplibs_check_method=$lt_deplibs_check_method 19770 19771# Command to use when deplibs_check_method == file_magic. 19772file_magic_cmd=$lt_file_magic_cmd 19773 19774# Flag that allows shared libraries with undefined symbols to be built. 19775allow_undefined_flag=$lt_allow_undefined_flag_RC 19776 19777# Flag that forces no undefined symbols. 19778no_undefined_flag=$lt_no_undefined_flag_RC 19779 19780# Commands used to finish a libtool library installation in a directory. 19781finish_cmds=$lt_finish_cmds 19782 19783# Same as above, but a single script fragment to be evaled but not shown. 19784finish_eval=$lt_finish_eval 19785 19786# Take the output of nm and produce a listing of raw symbols and C names. 19787global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19788 19789# Transform the output of nm in a proper C declaration 19790global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19791 19792# Transform the output of nm in a C name address pair 19793global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19794 19795# This is the shared library runtime path variable. 19796runpath_var=$runpath_var 19797 19798# This is the shared library path variable. 19799shlibpath_var=$shlibpath_var 19800 19801# Is shlibpath searched before the hard-coded library search path? 19802shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19803 19804# How to hardcode a shared library path into an executable. 19805hardcode_action=$hardcode_action_RC 19806 19807# Whether we should hardcode library paths into libraries. 19808hardcode_into_libs=$hardcode_into_libs 19809 19810# Flag to hardcode \$libdir into a binary during linking. 19811# This must work even if \$libdir does not exist. 19812hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19813 19814# If ld is used when linking, flag to hardcode \$libdir into 19815# a binary during linking. This must work even if \$libdir does 19816# not exist. 19817hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19818 19819# Whether we need a single -rpath flag with a separated argument. 19820hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19821 19822# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19823# resulting binary. 19824hardcode_direct=$hardcode_direct_RC 19825 19826# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19827# resulting binary. 19828hardcode_minus_L=$hardcode_minus_L_RC 19829 19830# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19831# the resulting binary. 19832hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19833 19834# Set to yes if building a shared library automatically hardcodes DIR into the library 19835# and all subsequent libraries and executables linked against it. 19836hardcode_automatic=$hardcode_automatic_RC 19837 19838# Variables whose values should be saved in libtool wrapper scripts and 19839# restored at relink time. 19840variables_saved_for_relink="$variables_saved_for_relink" 19841 19842# Whether libtool must link a program against all its dependency libraries. 19843link_all_deplibs=$link_all_deplibs_RC 19844 19845# Compile-time system search path for libraries 19846sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19847 19848# Run-time system search path for libraries 19849sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19850 19851# Fix the shell variable \$srcfile for the compiler. 19852fix_srcfile_path=$lt_fix_srcfile_path 19853 19854# Set to yes if exported symbols are required. 19855always_export_symbols=$always_export_symbols_RC 19856 19857# The commands to list exported symbols. 19858export_symbols_cmds=$lt_export_symbols_cmds_RC 19859 19860# The commands to extract the exported symbol list from a shared archive. 19861extract_expsyms_cmds=$lt_extract_expsyms_cmds 19862 19863# Symbols that should not be listed in the preloaded symbols. 19864exclude_expsyms=$lt_exclude_expsyms_RC 19865 19866# Symbols that must always be exported. 19867include_expsyms=$lt_include_expsyms_RC 19868 19869# ### END LIBTOOL TAG CONFIG: $tagname 19870 19871__EOF__ 19872 19873 19874else 19875 # If there is no Makefile yet, we rely on a make rule to execute 19876 # `config.status --recheck' to rerun these tests and create the 19877 # libtool script then. 19878 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19879 if test -f "$ltmain_in"; then 19880 test -f Makefile && make "$ltmain" 19881 fi 19882fi 19883 19884 19885ac_ext=c 19886ac_cpp='$CPP $CPPFLAGS' 19887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19889ac_compiler_gnu=$ac_cv_c_compiler_gnu 19890 19891CC="$lt_save_CC" 19892 19893 ;; 19894 19895 *) 19896 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19897$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19898 { (exit 1); exit 1; }; } 19899 ;; 19900 esac 19901 19902 # Append the new tag name to the list of available tags. 19903 if test -n "$tagname" ; then 19904 available_tags="$available_tags $tagname" 19905 fi 19906 fi 19907 done 19908 IFS="$lt_save_ifs" 19909 19910 # Now substitute the updated list of available tags. 19911 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19912 mv "${ofile}T" "$ofile" 19913 chmod +x "$ofile" 19914 else 19915 rm -f "${ofile}T" 19916 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19917$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19918 { (exit 1); exit 1; }; } 19919 fi 19920fi 19921 19922 19923 19924# This can be used to rebuild libtool when needed 19925LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19926 19927# Always use our own libtool. 19928LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19929 19930# Prevent multiple expansion 19931 19932 19933 19934 19935 19936 19937 19938 19939 19940 19941 19942 19943 19944 19945 19946 19947 19948 19949 19950 19951 19952ft2_support="yes" 19953{ $as_echo "$as_me:$LINENO: checking whether to use FreeType2" >&5 19954$as_echo_n "checking whether to use FreeType2... " >&6; } 19955# Check whether --enable-ft2 was given. 19956if test "${enable_ft2+set}" = set; then 19957 enableval=$enable_ft2; if [ "$enableval" = "no" ]; then 19958 ft2_support="no" 19959 fi 19960else 19961 ft2_support="yes" 19962 19963fi 19964 19965{ $as_echo "$as_me:$LINENO: result: $ft2_support" >&5 19966$as_echo "$ft2_support" >&6; }; 19967 19968if test "$ft2_support" = "yes"; then 19969 19970 19971if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 19972 if test -n "$ac_tool_prefix"; then 19973 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 19974set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 19975{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 19976$as_echo_n "checking for $ac_word... " >&6; } 19977if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 19978 $as_echo_n "(cached) " >&6 19979else 19980 case $PKG_CONFIG in 19981 [\\/]* | ?:[\\/]*) 19982 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 19983 ;; 19984 *) 19985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19986for as_dir in $PATH 19987do 19988 IFS=$as_save_IFS 19989 test -z "$as_dir" && as_dir=. 19990 for ac_exec_ext in '' $ac_executable_extensions; do 19991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19992 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19993 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19994 break 2 19995 fi 19996done 19997done 19998IFS=$as_save_IFS 19999 20000 ;; 20001esac 20002fi 20003PKG_CONFIG=$ac_cv_path_PKG_CONFIG 20004if test -n "$PKG_CONFIG"; then 20005 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 20006$as_echo "$PKG_CONFIG" >&6; } 20007else 20008 { $as_echo "$as_me:$LINENO: result: no" >&5 20009$as_echo "no" >&6; } 20010fi 20011 20012 20013fi 20014if test -z "$ac_cv_path_PKG_CONFIG"; then 20015 ac_pt_PKG_CONFIG=$PKG_CONFIG 20016 # Extract the first word of "pkg-config", so it can be a program name with args. 20017set dummy pkg-config; ac_word=$2 20018{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20019$as_echo_n "checking for $ac_word... " >&6; } 20020if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 20021 $as_echo_n "(cached) " >&6 20022else 20023 case $ac_pt_PKG_CONFIG in 20024 [\\/]* | ?:[\\/]*) 20025 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 20026 ;; 20027 *) 20028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20029for as_dir in $PATH 20030do 20031 IFS=$as_save_IFS 20032 test -z "$as_dir" && as_dir=. 20033 for ac_exec_ext in '' $ac_executable_extensions; do 20034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20035 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20036 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20037 break 2 20038 fi 20039done 20040done 20041IFS=$as_save_IFS 20042 20043 ;; 20044esac 20045fi 20046ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 20047if test -n "$ac_pt_PKG_CONFIG"; then 20048 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 20049$as_echo "$ac_pt_PKG_CONFIG" >&6; } 20050else 20051 { $as_echo "$as_me:$LINENO: result: no" >&5 20052$as_echo "no" >&6; } 20053fi 20054 20055 if test "x$ac_pt_PKG_CONFIG" = x; then 20056 PKG_CONFIG="" 20057 else 20058 case $cross_compiling:$ac_tool_warned in 20059yes:) 20060{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 20061$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 20062ac_tool_warned=yes ;; 20063esac 20064 PKG_CONFIG=$ac_pt_PKG_CONFIG 20065 fi 20066else 20067 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 20068fi 20069 20070fi 20071if test -n "$PKG_CONFIG"; then 20072 _pkg_min_version=0.9.0 20073 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 20074$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 20075 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 20076 { $as_echo "$as_me:$LINENO: result: yes" >&5 20077$as_echo "yes" >&6; } 20078 else 20079 { $as_echo "$as_me:$LINENO: result: no" >&5 20080$as_echo "no" >&6; } 20081 PKG_CONFIG="" 20082 fi 20083 20084fi 20085 20086pkg_failed=no 20087{ $as_echo "$as_me:$LINENO: checking for FreeType2" >&5 20088$as_echo_n "checking for FreeType2... " >&6; } 20089 20090if test -n "$FreeType2_CFLAGS"; then 20091 pkg_cv_FreeType2_CFLAGS="$FreeType2_CFLAGS" 20092 elif test -n "$PKG_CONFIG"; then 20093 if test -n "$PKG_CONFIG" && \ 20094 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"freetype2\"") >&5 20095 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 20096 ac_status=$? 20097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20098 (exit $ac_status); }; then 20099 pkg_cv_FreeType2_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 20100else 20101 pkg_failed=yes 20102fi 20103 else 20104 pkg_failed=untried 20105fi 20106if test -n "$FreeType2_LIBS"; then 20107 pkg_cv_FreeType2_LIBS="$FreeType2_LIBS" 20108 elif test -n "$PKG_CONFIG"; then 20109 if test -n "$PKG_CONFIG" && \ 20110 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"freetype2\"") >&5 20111 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 20112 ac_status=$? 20113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20114 (exit $ac_status); }; then 20115 pkg_cv_FreeType2_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 20116else 20117 pkg_failed=yes 20118fi 20119 else 20120 pkg_failed=untried 20121fi 20122 20123 20124 20125if test $pkg_failed = yes; then 20126 20127if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20128 _pkg_short_errors_supported=yes 20129else 20130 _pkg_short_errors_supported=no 20131fi 20132 if test $_pkg_short_errors_supported = yes; then 20133 FreeType2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1` 20134 else 20135 FreeType2_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1` 20136 fi 20137 # Put the nasty error message in config.log where it belongs 20138 echo "$FreeType2_PKG_ERRORS" >&5 20139 20140 { { $as_echo "$as_me:$LINENO: error: Package requirements (freetype2) were not met: 20141 20142$FreeType2_PKG_ERRORS 20143 20144Consider adjusting the PKG_CONFIG_PATH environment variable if you 20145installed software in a non-standard prefix. 20146 20147Alternatively, you may set the environment variables FreeType2_CFLAGS 20148and FreeType2_LIBS to avoid the need to call pkg-config. 20149See the pkg-config man page for more details. 20150" >&5 20151$as_echo "$as_me: error: Package requirements (freetype2) were not met: 20152 20153$FreeType2_PKG_ERRORS 20154 20155Consider adjusting the PKG_CONFIG_PATH environment variable if you 20156installed software in a non-standard prefix. 20157 20158Alternatively, you may set the environment variables FreeType2_CFLAGS 20159and FreeType2_LIBS to avoid the need to call pkg-config. 20160See the pkg-config man page for more details. 20161" >&2;} 20162 { (exit 1); exit 1; }; } 20163elif test $pkg_failed = untried; then 20164 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 20165$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20166{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 20167is in your PATH or set the PKG_CONFIG environment variable to the full 20168path to pkg-config. 20169 20170Alternatively, you may set the environment variables FreeType2_CFLAGS 20171and FreeType2_LIBS to avoid the need to call pkg-config. 20172See the pkg-config man page for more details. 20173 20174To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20175See \`config.log' for more details." >&5 20176$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 20177is in your PATH or set the PKG_CONFIG environment variable to the full 20178path to pkg-config. 20179 20180Alternatively, you may set the environment variables FreeType2_CFLAGS 20181and FreeType2_LIBS to avoid the need to call pkg-config. 20182See the pkg-config man page for more details. 20183 20184To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20185See \`config.log' for more details." >&2;} 20186 { (exit 1); exit 1; }; }; } 20187else 20188 FreeType2_CFLAGS=$pkg_cv_FreeType2_CFLAGS 20189 FreeType2_LIBS=$pkg_cv_FreeType2_LIBS 20190 { $as_echo "$as_me:$LINENO: result: yes" >&5 20191$as_echo "yes" >&6; } 20192 : 20193fi 20194 20195cat >>confdefs.h <<\_ACEOF 20196#define FT2_SUPPORT 1 20197_ACEOF 20198 20199fi 20200 20201 20202{ $as_echo "$as_me:$LINENO: checking for g19_update_lcd in -lg19" >&5 20203$as_echo_n "checking for g19_update_lcd in -lg19... " >&6; } 20204if test "${ac_cv_lib_g19_g19_update_lcd+set}" = set; then 20205 $as_echo_n "(cached) " >&6 20206else 20207 ac_check_lib_save_LIBS=$LIBS 20208LIBS="-lg19 $LIBS" 20209cat >conftest.$ac_ext <<_ACEOF 20210/* confdefs.h. */ 20211_ACEOF 20212cat confdefs.h >>conftest.$ac_ext 20213cat >>conftest.$ac_ext <<_ACEOF 20214/* end confdefs.h. */ 20215 20216/* Override any GCC internal prototype to avoid an error. 20217 Use char because int might match the return type of a GCC 20218 builtin and then its argument prototype would still apply. */ 20219#ifdef __cplusplus 20220extern "C" 20221#endif 20222char g19_update_lcd (); 20223int 20224main () 20225{ 20226return g19_update_lcd (); 20227 ; 20228 return 0; 20229} 20230_ACEOF 20231rm -f conftest.$ac_objext conftest$ac_exeext 20232if { (ac_try="$ac_link" 20233case "(($ac_try" in 20234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20235 *) ac_try_echo=$ac_try;; 20236esac 20237eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20238$as_echo "$ac_try_echo") >&5 20239 (eval "$ac_link") 2>conftest.er1 20240 ac_status=$? 20241 grep -v '^ *+' conftest.er1 >conftest.err 20242 rm -f conftest.er1 20243 cat conftest.err >&5 20244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20245 (exit $ac_status); } && { 20246 test -z "$ac_c_werror_flag" || 20247 test ! -s conftest.err 20248 } && test -s conftest$ac_exeext && { 20249 test "$cross_compiling" = yes || 20250 $as_test_x conftest$ac_exeext 20251 }; then 20252 ac_cv_lib_g19_g19_update_lcd=yes 20253else 20254 $as_echo "$as_me: failed program was:" >&5 20255sed 's/^/| /' conftest.$ac_ext >&5 20256 20257 ac_cv_lib_g19_g19_update_lcd=no 20258fi 20259 20260rm -rf conftest.dSYM 20261rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20262 conftest$ac_exeext conftest.$ac_ext 20263LIBS=$ac_check_lib_save_LIBS 20264fi 20265{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_g19_g19_update_lcd" >&5 20266$as_echo "$ac_cv_lib_g19_g19_update_lcd" >&6; } 20267if test "x$ac_cv_lib_g19_g19_update_lcd" = x""yes; then 20268 cat >>confdefs.h <<_ACEOF 20269#define HAVE_LIBG19 1 20270_ACEOF 20271 20272 LIBS="-lg19 $LIBS" 20273 20274else 20275 { { $as_echo "$as_me:$LINENO: error: \"libg19 not found. please install\"" >&5 20276$as_echo "$as_me: error: \"libg19 not found. please install\"" >&2;} 20277 { (exit 1); exit 1; }; } 20278fi 20279 20280 20281{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 20282$as_echo_n "checking for ANSI C header files... " >&6; } 20283if test "${ac_cv_header_stdc+set}" = set; then 20284 $as_echo_n "(cached) " >&6 20285else 20286 cat >conftest.$ac_ext <<_ACEOF 20287/* confdefs.h. */ 20288_ACEOF 20289cat confdefs.h >>conftest.$ac_ext 20290cat >>conftest.$ac_ext <<_ACEOF 20291/* end confdefs.h. */ 20292#include <stdlib.h> 20293#include <stdarg.h> 20294#include <string.h> 20295#include <float.h> 20296 20297int 20298main () 20299{ 20300 20301 ; 20302 return 0; 20303} 20304_ACEOF 20305rm -f conftest.$ac_objext 20306if { (ac_try="$ac_compile" 20307case "(($ac_try" in 20308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20309 *) ac_try_echo=$ac_try;; 20310esac 20311eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20312$as_echo "$ac_try_echo") >&5 20313 (eval "$ac_compile") 2>conftest.er1 20314 ac_status=$? 20315 grep -v '^ *+' conftest.er1 >conftest.err 20316 rm -f conftest.er1 20317 cat conftest.err >&5 20318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20319 (exit $ac_status); } && { 20320 test -z "$ac_c_werror_flag" || 20321 test ! -s conftest.err 20322 } && test -s conftest.$ac_objext; then 20323 ac_cv_header_stdc=yes 20324else 20325 $as_echo "$as_me: failed program was:" >&5 20326sed 's/^/| /' conftest.$ac_ext >&5 20327 20328 ac_cv_header_stdc=no 20329fi 20330 20331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20332 20333if test $ac_cv_header_stdc = yes; then 20334 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 20335 cat >conftest.$ac_ext <<_ACEOF 20336/* confdefs.h. */ 20337_ACEOF 20338cat confdefs.h >>conftest.$ac_ext 20339cat >>conftest.$ac_ext <<_ACEOF 20340/* end confdefs.h. */ 20341#include <string.h> 20342 20343_ACEOF 20344if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20345 $EGREP "memchr" >/dev/null 2>&1; then 20346 : 20347else 20348 ac_cv_header_stdc=no 20349fi 20350rm -f conftest* 20351 20352fi 20353 20354if test $ac_cv_header_stdc = yes; then 20355 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 20356 cat >conftest.$ac_ext <<_ACEOF 20357/* confdefs.h. */ 20358_ACEOF 20359cat confdefs.h >>conftest.$ac_ext 20360cat >>conftest.$ac_ext <<_ACEOF 20361/* end confdefs.h. */ 20362#include <stdlib.h> 20363 20364_ACEOF 20365if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20366 $EGREP "free" >/dev/null 2>&1; then 20367 : 20368else 20369 ac_cv_header_stdc=no 20370fi 20371rm -f conftest* 20372 20373fi 20374 20375if test $ac_cv_header_stdc = yes; then 20376 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 20377 if test "$cross_compiling" = yes; then 20378 : 20379else 20380 cat >conftest.$ac_ext <<_ACEOF 20381/* confdefs.h. */ 20382_ACEOF 20383cat confdefs.h >>conftest.$ac_ext 20384cat >>conftest.$ac_ext <<_ACEOF 20385/* end confdefs.h. */ 20386#include <ctype.h> 20387#include <stdlib.h> 20388#if ((' ' & 0x0FF) == 0x020) 20389# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 20390# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 20391#else 20392# define ISLOWER(c) \ 20393 (('a' <= (c) && (c) <= 'i') \ 20394 || ('j' <= (c) && (c) <= 'r') \ 20395 || ('s' <= (c) && (c) <= 'z')) 20396# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 20397#endif 20398 20399#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 20400int 20401main () 20402{ 20403 int i; 20404 for (i = 0; i < 256; i++) 20405 if (XOR (islower (i), ISLOWER (i)) 20406 || toupper (i) != TOUPPER (i)) 20407 return 2; 20408 return 0; 20409} 20410_ACEOF 20411rm -f conftest$ac_exeext 20412if { (ac_try="$ac_link" 20413case "(($ac_try" in 20414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20415 *) ac_try_echo=$ac_try;; 20416esac 20417eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20418$as_echo "$ac_try_echo") >&5 20419 (eval "$ac_link") 2>&5 20420 ac_status=$? 20421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20422 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20423 { (case "(($ac_try" in 20424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20425 *) ac_try_echo=$ac_try;; 20426esac 20427eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20428$as_echo "$ac_try_echo") >&5 20429 (eval "$ac_try") 2>&5 20430 ac_status=$? 20431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20432 (exit $ac_status); }; }; then 20433 : 20434else 20435 $as_echo "$as_me: program exited with status $ac_status" >&5 20436$as_echo "$as_me: failed program was:" >&5 20437sed 's/^/| /' conftest.$ac_ext >&5 20438 20439( exit $ac_status ) 20440ac_cv_header_stdc=no 20441fi 20442rm -rf conftest.dSYM 20443rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20444fi 20445 20446 20447fi 20448fi 20449{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 20450$as_echo "$ac_cv_header_stdc" >&6; } 20451if test $ac_cv_header_stdc = yes; then 20452 20453cat >>confdefs.h <<\_ACEOF 20454#define STDC_HEADERS 1 20455_ACEOF 20456 20457fi 20458 20459 20460for ac_header in ft2build.h 20461do 20462as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20463if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20464 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 20465$as_echo_n "checking for $ac_header... " >&6; } 20466if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20467 $as_echo_n "(cached) " >&6 20468fi 20469ac_res=`eval 'as_val=${'$as_ac_Header'} 20470 $as_echo "$as_val"'` 20471 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 20472$as_echo "$ac_res" >&6; } 20473else 20474 # Is the header compilable? 20475{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 20476$as_echo_n "checking $ac_header usability... " >&6; } 20477cat >conftest.$ac_ext <<_ACEOF 20478/* confdefs.h. */ 20479_ACEOF 20480cat confdefs.h >>conftest.$ac_ext 20481cat >>conftest.$ac_ext <<_ACEOF 20482/* end confdefs.h. */ 20483$ac_includes_default 20484#include <$ac_header> 20485_ACEOF 20486rm -f conftest.$ac_objext 20487if { (ac_try="$ac_compile" 20488case "(($ac_try" in 20489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20490 *) ac_try_echo=$ac_try;; 20491esac 20492eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20493$as_echo "$ac_try_echo") >&5 20494 (eval "$ac_compile") 2>conftest.er1 20495 ac_status=$? 20496 grep -v '^ *+' conftest.er1 >conftest.err 20497 rm -f conftest.er1 20498 cat conftest.err >&5 20499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20500 (exit $ac_status); } && { 20501 test -z "$ac_c_werror_flag" || 20502 test ! -s conftest.err 20503 } && test -s conftest.$ac_objext; then 20504 ac_header_compiler=yes 20505else 20506 $as_echo "$as_me: failed program was:" >&5 20507sed 's/^/| /' conftest.$ac_ext >&5 20508 20509 ac_header_compiler=no 20510fi 20511 20512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20513{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20514$as_echo "$ac_header_compiler" >&6; } 20515 20516# Is the header present? 20517{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 20518$as_echo_n "checking $ac_header presence... " >&6; } 20519cat >conftest.$ac_ext <<_ACEOF 20520/* confdefs.h. */ 20521_ACEOF 20522cat confdefs.h >>conftest.$ac_ext 20523cat >>conftest.$ac_ext <<_ACEOF 20524/* end confdefs.h. */ 20525#include <$ac_header> 20526_ACEOF 20527if { (ac_try="$ac_cpp conftest.$ac_ext" 20528case "(($ac_try" in 20529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20530 *) ac_try_echo=$ac_try;; 20531esac 20532eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20533$as_echo "$ac_try_echo") >&5 20534 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 20535 ac_status=$? 20536 grep -v '^ *+' conftest.er1 >conftest.err 20537 rm -f conftest.er1 20538 cat conftest.err >&5 20539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20540 (exit $ac_status); } >/dev/null && { 20541 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 20542 test ! -s conftest.err 20543 }; then 20544 ac_header_preproc=yes 20545else 20546 $as_echo "$as_me: failed program was:" >&5 20547sed 's/^/| /' conftest.$ac_ext >&5 20548 20549 ac_header_preproc=no 20550fi 20551 20552rm -f conftest.err conftest.$ac_ext 20553{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20554$as_echo "$ac_header_preproc" >&6; } 20555 20556# So? What about this header? 20557case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20558 yes:no: ) 20559 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20560$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 20561 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 20562$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 20563 ac_header_preproc=yes 20564 ;; 20565 no:yes:* ) 20566 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 20567$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 20568 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 20569$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 20570 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 20571$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 20572 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 20573$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 20574 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20575$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20576 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 20577$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 20578 ( cat <<\_ASBOX 20579## --------------------------------------------- ## 20580## Report this to jgeboski@users.sourceforge.net ## 20581## --------------------------------------------- ## 20582_ASBOX 20583 ) | sed "s/^/$as_me: WARNING: /" >&2 20584 ;; 20585esac 20586{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 20587$as_echo_n "checking for $ac_header... " >&6; } 20588if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20589 $as_echo_n "(cached) " >&6 20590else 20591 eval "$as_ac_Header=\$ac_header_preproc" 20592fi 20593ac_res=`eval 'as_val=${'$as_ac_Header'} 20594 $as_echo "$as_val"'` 20595 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 20596$as_echo "$ac_res" >&6; } 20597 20598fi 20599as_val=`eval 'as_val=${'$as_ac_Header'} 20600 $as_echo "$as_val"'` 20601 if test "x$as_val" = x""yes; then 20602 cat >>confdefs.h <<_ACEOF 20603#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20604_ACEOF 20605 20606fi 20607 20608done 20609 20610 20611for ac_header in string.h 20612do 20613as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20614if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20615 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 20616$as_echo_n "checking for $ac_header... " >&6; } 20617if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20618 $as_echo_n "(cached) " >&6 20619fi 20620ac_res=`eval 'as_val=${'$as_ac_Header'} 20621 $as_echo "$as_val"'` 20622 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 20623$as_echo "$ac_res" >&6; } 20624else 20625 # Is the header compilable? 20626{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 20627$as_echo_n "checking $ac_header usability... " >&6; } 20628cat >conftest.$ac_ext <<_ACEOF 20629/* confdefs.h. */ 20630_ACEOF 20631cat confdefs.h >>conftest.$ac_ext 20632cat >>conftest.$ac_ext <<_ACEOF 20633/* end confdefs.h. */ 20634$ac_includes_default 20635#include <$ac_header> 20636_ACEOF 20637rm -f conftest.$ac_objext 20638if { (ac_try="$ac_compile" 20639case "(($ac_try" in 20640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20641 *) ac_try_echo=$ac_try;; 20642esac 20643eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20644$as_echo "$ac_try_echo") >&5 20645 (eval "$ac_compile") 2>conftest.er1 20646 ac_status=$? 20647 grep -v '^ *+' conftest.er1 >conftest.err 20648 rm -f conftest.er1 20649 cat conftest.err >&5 20650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20651 (exit $ac_status); } && { 20652 test -z "$ac_c_werror_flag" || 20653 test ! -s conftest.err 20654 } && test -s conftest.$ac_objext; then 20655 ac_header_compiler=yes 20656else 20657 $as_echo "$as_me: failed program was:" >&5 20658sed 's/^/| /' conftest.$ac_ext >&5 20659 20660 ac_header_compiler=no 20661fi 20662 20663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20664{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20665$as_echo "$ac_header_compiler" >&6; } 20666 20667# Is the header present? 20668{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 20669$as_echo_n "checking $ac_header presence... " >&6; } 20670cat >conftest.$ac_ext <<_ACEOF 20671/* confdefs.h. */ 20672_ACEOF 20673cat confdefs.h >>conftest.$ac_ext 20674cat >>conftest.$ac_ext <<_ACEOF 20675/* end confdefs.h. */ 20676#include <$ac_header> 20677_ACEOF 20678if { (ac_try="$ac_cpp conftest.$ac_ext" 20679case "(($ac_try" in 20680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20681 *) ac_try_echo=$ac_try;; 20682esac 20683eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20684$as_echo "$ac_try_echo") >&5 20685 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 20686 ac_status=$? 20687 grep -v '^ *+' conftest.er1 >conftest.err 20688 rm -f conftest.er1 20689 cat conftest.err >&5 20690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20691 (exit $ac_status); } >/dev/null && { 20692 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 20693 test ! -s conftest.err 20694 }; then 20695 ac_header_preproc=yes 20696else 20697 $as_echo "$as_me: failed program was:" >&5 20698sed 's/^/| /' conftest.$ac_ext >&5 20699 20700 ac_header_preproc=no 20701fi 20702 20703rm -f conftest.err conftest.$ac_ext 20704{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20705$as_echo "$ac_header_preproc" >&6; } 20706 20707# So? What about this header? 20708case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20709 yes:no: ) 20710 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20711$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 20712 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 20713$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 20714 ac_header_preproc=yes 20715 ;; 20716 no:yes:* ) 20717 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 20718$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 20719 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 20720$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 20721 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 20722$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 20723 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 20724$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 20725 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20726$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20727 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 20728$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 20729 ( cat <<\_ASBOX 20730## --------------------------------------------- ## 20731## Report this to jgeboski@users.sourceforge.net ## 20732## --------------------------------------------- ## 20733_ASBOX 20734 ) | sed "s/^/$as_me: WARNING: /" >&2 20735 ;; 20736esac 20737{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 20738$as_echo_n "checking for $ac_header... " >&6; } 20739if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20740 $as_echo_n "(cached) " >&6 20741else 20742 eval "$as_ac_Header=\$ac_header_preproc" 20743fi 20744ac_res=`eval 'as_val=${'$as_ac_Header'} 20745 $as_echo "$as_val"'` 20746 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 20747$as_echo "$ac_res" >&6; } 20748 20749fi 20750as_val=`eval 'as_val=${'$as_ac_Header'} 20751 $as_echo "$as_val"'` 20752 if test "x$as_val" = x""yes; then 20753 cat >>confdefs.h <<_ACEOF 20754#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20755_ACEOF 20756 20757fi 20758 20759done 20760 20761 20762{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 20763$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 20764if test "${ac_cv_c_const+set}" = set; then 20765 $as_echo_n "(cached) " >&6 20766else 20767 cat >conftest.$ac_ext <<_ACEOF 20768/* confdefs.h. */ 20769_ACEOF 20770cat confdefs.h >>conftest.$ac_ext 20771cat >>conftest.$ac_ext <<_ACEOF 20772/* end confdefs.h. */ 20773 20774int 20775main () 20776{ 20777/* FIXME: Include the comments suggested by Paul. */ 20778#ifndef __cplusplus 20779 /* Ultrix mips cc rejects this. */ 20780 typedef int charset[2]; 20781 const charset cs; 20782 /* SunOS 4.1.1 cc rejects this. */ 20783 char const *const *pcpcc; 20784 char **ppc; 20785 /* NEC SVR4.0.2 mips cc rejects this. */ 20786 struct point {int x, y;}; 20787 static struct point const zero = {0,0}; 20788 /* AIX XL C 1.02.0.0 rejects this. 20789 It does not let you subtract one const X* pointer from another in 20790 an arm of an if-expression whose if-part is not a constant 20791 expression */ 20792 const char *g = "string"; 20793 pcpcc = &g + (g ? g-g : 0); 20794 /* HPUX 7.0 cc rejects these. */ 20795 ++pcpcc; 20796 ppc = (char**) pcpcc; 20797 pcpcc = (char const *const *) ppc; 20798 { /* SCO 3.2v4 cc rejects this. */ 20799 char *t; 20800 char const *s = 0 ? (char *) 0 : (char const *) 0; 20801 20802 *t++ = 0; 20803 if (s) return 0; 20804 } 20805 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 20806 int x[] = {25, 17}; 20807 const int *foo = &x[0]; 20808 ++foo; 20809 } 20810 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 20811 typedef const int *iptr; 20812 iptr p = 0; 20813 ++p; 20814 } 20815 { /* AIX XL C 1.02.0.0 rejects this saying 20816 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 20817 struct s { int j; const int *ap[3]; }; 20818 struct s *b; b->j = 5; 20819 } 20820 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 20821 const int foo = 10; 20822 if (!foo) return 0; 20823 } 20824 return !cs[0] && !zero.x; 20825#endif 20826 20827 ; 20828 return 0; 20829} 20830_ACEOF 20831rm -f conftest.$ac_objext 20832if { (ac_try="$ac_compile" 20833case "(($ac_try" in 20834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20835 *) ac_try_echo=$ac_try;; 20836esac 20837eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20838$as_echo "$ac_try_echo") >&5 20839 (eval "$ac_compile") 2>conftest.er1 20840 ac_status=$? 20841 grep -v '^ *+' conftest.er1 >conftest.err 20842 rm -f conftest.er1 20843 cat conftest.err >&5 20844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20845 (exit $ac_status); } && { 20846 test -z "$ac_c_werror_flag" || 20847 test ! -s conftest.err 20848 } && test -s conftest.$ac_objext; then 20849 ac_cv_c_const=yes 20850else 20851 $as_echo "$as_me: failed program was:" >&5 20852sed 's/^/| /' conftest.$ac_ext >&5 20853 20854 ac_cv_c_const=no 20855fi 20856 20857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20858fi 20859{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 20860$as_echo "$ac_cv_c_const" >&6; } 20861if test $ac_cv_c_const = no; then 20862 20863cat >>confdefs.h <<\_ACEOF 20864#define const /**/ 20865_ACEOF 20866 20867fi 20868 20869 20870 20871for ac_func in memset 20872do 20873as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20874{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 20875$as_echo_n "checking for $ac_func... " >&6; } 20876if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 20877 $as_echo_n "(cached) " >&6 20878else 20879 cat >conftest.$ac_ext <<_ACEOF 20880/* confdefs.h. */ 20881_ACEOF 20882cat confdefs.h >>conftest.$ac_ext 20883cat >>conftest.$ac_ext <<_ACEOF 20884/* end confdefs.h. */ 20885/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 20886 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20887#define $ac_func innocuous_$ac_func 20888 20889/* System header to define __stub macros and hopefully few prototypes, 20890 which can conflict with char $ac_func (); below. 20891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20892 <limits.h> exists even on freestanding compilers. */ 20893 20894#ifdef __STDC__ 20895# include <limits.h> 20896#else 20897# include <assert.h> 20898#endif 20899 20900#undef $ac_func 20901 20902/* Override any GCC internal prototype to avoid an error. 20903 Use char because int might match the return type of a GCC 20904 builtin and then its argument prototype would still apply. */ 20905#ifdef __cplusplus 20906extern "C" 20907#endif 20908char $ac_func (); 20909/* The GNU C library defines this for functions which it implements 20910 to always fail with ENOSYS. Some functions are actually named 20911 something starting with __ and the normal name is an alias. */ 20912#if defined __stub_$ac_func || defined __stub___$ac_func 20913choke me 20914#endif 20915 20916int 20917main () 20918{ 20919return $ac_func (); 20920 ; 20921 return 0; 20922} 20923_ACEOF 20924rm -f conftest.$ac_objext conftest$ac_exeext 20925if { (ac_try="$ac_link" 20926case "(($ac_try" in 20927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20928 *) ac_try_echo=$ac_try;; 20929esac 20930eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20931$as_echo "$ac_try_echo") >&5 20932 (eval "$ac_link") 2>conftest.er1 20933 ac_status=$? 20934 grep -v '^ *+' conftest.er1 >conftest.err 20935 rm -f conftest.er1 20936 cat conftest.err >&5 20937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20938 (exit $ac_status); } && { 20939 test -z "$ac_c_werror_flag" || 20940 test ! -s conftest.err 20941 } && test -s conftest$ac_exeext && { 20942 test "$cross_compiling" = yes || 20943 $as_test_x conftest$ac_exeext 20944 }; then 20945 eval "$as_ac_var=yes" 20946else 20947 $as_echo "$as_me: failed program was:" >&5 20948sed 's/^/| /' conftest.$ac_ext >&5 20949 20950 eval "$as_ac_var=no" 20951fi 20952 20953rm -rf conftest.dSYM 20954rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20955 conftest$ac_exeext conftest.$ac_ext 20956fi 20957ac_res=`eval 'as_val=${'$as_ac_var'} 20958 $as_echo "$as_val"'` 20959 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 20960$as_echo "$ac_res" >&6; } 20961as_val=`eval 'as_val=${'$as_ac_var'} 20962 $as_echo "$as_val"'` 20963 if test "x$as_val" = x""yes; then 20964 cat >>confdefs.h <<_ACEOF 20965#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20966_ACEOF 20967 20968fi 20969done 20970 20971 20972for ac_func in memcpy 20973do 20974as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20975{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 20976$as_echo_n "checking for $ac_func... " >&6; } 20977if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 20978 $as_echo_n "(cached) " >&6 20979else 20980 cat >conftest.$ac_ext <<_ACEOF 20981/* confdefs.h. */ 20982_ACEOF 20983cat confdefs.h >>conftest.$ac_ext 20984cat >>conftest.$ac_ext <<_ACEOF 20985/* end confdefs.h. */ 20986/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 20987 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20988#define $ac_func innocuous_$ac_func 20989 20990/* System header to define __stub macros and hopefully few prototypes, 20991 which can conflict with char $ac_func (); below. 20992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20993 <limits.h> exists even on freestanding compilers. */ 20994 20995#ifdef __STDC__ 20996# include <limits.h> 20997#else 20998# include <assert.h> 20999#endif 21000 21001#undef $ac_func 21002 21003/* Override any GCC internal prototype to avoid an error. 21004 Use char because int might match the return type of a GCC 21005 builtin and then its argument prototype would still apply. */ 21006#ifdef __cplusplus 21007extern "C" 21008#endif 21009char $ac_func (); 21010/* The GNU C library defines this for functions which it implements 21011 to always fail with ENOSYS. Some functions are actually named 21012 something starting with __ and the normal name is an alias. */ 21013#if defined __stub_$ac_func || defined __stub___$ac_func 21014choke me 21015#endif 21016 21017int 21018main () 21019{ 21020return $ac_func (); 21021 ; 21022 return 0; 21023} 21024_ACEOF 21025rm -f conftest.$ac_objext conftest$ac_exeext 21026if { (ac_try="$ac_link" 21027case "(($ac_try" in 21028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21029 *) ac_try_echo=$ac_try;; 21030esac 21031eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21032$as_echo "$ac_try_echo") >&5 21033 (eval "$ac_link") 2>conftest.er1 21034 ac_status=$? 21035 grep -v '^ *+' conftest.er1 >conftest.err 21036 rm -f conftest.er1 21037 cat conftest.err >&5 21038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21039 (exit $ac_status); } && { 21040 test -z "$ac_c_werror_flag" || 21041 test ! -s conftest.err 21042 } && test -s conftest$ac_exeext && { 21043 test "$cross_compiling" = yes || 21044 $as_test_x conftest$ac_exeext 21045 }; then 21046 eval "$as_ac_var=yes" 21047else 21048 $as_echo "$as_me: failed program was:" >&5 21049sed 's/^/| /' conftest.$ac_ext >&5 21050 21051 eval "$as_ac_var=no" 21052fi 21053 21054rm -rf conftest.dSYM 21055rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21056 conftest$ac_exeext conftest.$ac_ext 21057fi 21058ac_res=`eval 'as_val=${'$as_ac_var'} 21059 $as_echo "$as_val"'` 21060 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 21061$as_echo "$ac_res" >&6; } 21062as_val=`eval 'as_val=${'$as_ac_var'} 21063 $as_echo "$as_val"'` 21064 if test "x$as_val" = x""yes; then 21065 cat >>confdefs.h <<_ACEOF 21066#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 21067_ACEOF 21068 21069fi 21070done 21071 21072 21073 21074ac_config_files="$ac_config_files Makefile" 21075 21076cat >confcache <<\_ACEOF 21077# This file is a shell script that caches the results of configure 21078# tests run on this system so they can be shared between configure 21079# scripts and configure runs, see configure's option --config-cache. 21080# It is not useful on other systems. If it contains results you don't 21081# want to keep, you may remove or edit it. 21082# 21083# config.status only pays attention to the cache file if you give it 21084# the --recheck option to rerun configure. 21085# 21086# `ac_cv_env_foo' variables (set or unset) will be overridden when 21087# loading this file, other *unset* `ac_cv_foo' will be assigned the 21088# following values. 21089 21090_ACEOF 21091 21092# The following way of writing the cache mishandles newlines in values, 21093# but we know of no workaround that is simple, portable, and efficient. 21094# So, we kill variables containing newlines. 21095# Ultrix sh set writes to stderr and can't be redirected directly, 21096# and sets the high bit in the cache file unless we assign to the vars. 21097( 21098 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21099 eval ac_val=\$$ac_var 21100 case $ac_val in #( 21101 *${as_nl}*) 21102 case $ac_var in #( 21103 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 21104$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 21105 esac 21106 case $ac_var in #( 21107 _ | IFS | as_nl) ;; #( 21108 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 21109 *) $as_unset $ac_var ;; 21110 esac ;; 21111 esac 21112 done 21113 21114 (set) 2>&1 | 21115 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21116 *${as_nl}ac_space=\ *) 21117 # `set' does not quote correctly, so add quotes (double-quote 21118 # substitution turns \\\\ into \\, and sed turns \\ into \). 21119 sed -n \ 21120 "s/'/'\\\\''/g; 21121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21122 ;; #( 21123 *) 21124 # `set' quotes correctly as required by POSIX, so do not add quotes. 21125 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21126 ;; 21127 esac | 21128 sort 21129) | 21130 sed ' 21131 /^ac_cv_env_/b end 21132 t clear 21133 :clear 21134 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21135 t end 21136 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21137 :end' >>confcache 21138if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21139 if test -w "$cache_file"; then 21140 test "x$cache_file" != "x/dev/null" && 21141 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 21142$as_echo "$as_me: updating cache $cache_file" >&6;} 21143 cat confcache >$cache_file 21144 else 21145 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 21146$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21147 fi 21148fi 21149rm -f confcache 21150 21151test "x$prefix" = xNONE && prefix=$ac_default_prefix 21152# Let make expand exec_prefix. 21153test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21154 21155DEFS=-DHAVE_CONFIG_H 21156 21157ac_libobjs= 21158ac_ltlibobjs= 21159for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21160 # 1. Remove the extension, and $U if already installed. 21161 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21162 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 21163 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21164 # will be set to the directory where LIBOBJS objects are built. 21165 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21166 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 21167done 21168LIBOBJS=$ac_libobjs 21169 21170LTLIBOBJS=$ac_ltlibobjs 21171 21172 21173if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21174 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 21175Usually this means the macro was only invoked conditionally." >&5 21176$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 21177Usually this means the macro was only invoked conditionally." >&2;} 21178 { (exit 1); exit 1; }; } 21179fi 21180if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21181 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 21182Usually this means the macro was only invoked conditionally." >&5 21183$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 21184Usually this means the macro was only invoked conditionally." >&2;} 21185 { (exit 1); exit 1; }; } 21186fi 21187if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 21188 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 21189Usually this means the macro was only invoked conditionally." >&5 21190$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 21191Usually this means the macro was only invoked conditionally." >&2;} 21192 { (exit 1); exit 1; }; } 21193fi 21194 21195: ${CONFIG_STATUS=./config.status} 21196ac_write_fail=0 21197ac_clean_files_save=$ac_clean_files 21198ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21199{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 21200$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 21201cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21202#! $SHELL 21203# Generated by $as_me. 21204# Run this file to recreate the current configuration. 21205# Compiler output produced by configure, useful for debugging 21206# configure, is in config.log if it exists. 21207 21208debug=false 21209ac_cs_recheck=false 21210ac_cs_silent=false 21211SHELL=\${CONFIG_SHELL-$SHELL} 21212_ACEOF 21213 21214cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21215## --------------------- ## 21216## M4sh Initialization. ## 21217## --------------------- ## 21218 21219# Be more Bourne compatible 21220DUALCASE=1; export DUALCASE # for MKS sh 21221if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 21222 emulate sh 21223 NULLCMD=: 21224 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21225 # is contrary to our usage. Disable this feature. 21226 alias -g '${1+"$@"}'='"$@"' 21227 setopt NO_GLOB_SUBST 21228else 21229 case `(set -o) 2>/dev/null` in 21230 *posix*) set -o posix ;; 21231esac 21232 21233fi 21234 21235 21236 21237 21238# PATH needs CR 21239# Avoid depending upon Character Ranges. 21240as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21241as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21242as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21243as_cr_digits='0123456789' 21244as_cr_alnum=$as_cr_Letters$as_cr_digits 21245 21246as_nl=' 21247' 21248export as_nl 21249# Printing a long string crashes Solaris 7 /usr/bin/printf. 21250as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 21251as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 21252as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 21253if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 21254 as_echo='printf %s\n' 21255 as_echo_n='printf %s' 21256else 21257 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 21258 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 21259 as_echo_n='/usr/ucb/echo -n' 21260 else 21261 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 21262 as_echo_n_body='eval 21263 arg=$1; 21264 case $arg in 21265 *"$as_nl"*) 21266 expr "X$arg" : "X\\(.*\\)$as_nl"; 21267 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 21268 esac; 21269 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 21270 ' 21271 export as_echo_n_body 21272 as_echo_n='sh -c $as_echo_n_body as_echo' 21273 fi 21274 export as_echo_body 21275 as_echo='sh -c $as_echo_body as_echo' 21276fi 21277 21278# The user is always right. 21279if test "${PATH_SEPARATOR+set}" != set; then 21280 PATH_SEPARATOR=: 21281 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 21282 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 21283 PATH_SEPARATOR=';' 21284 } 21285fi 21286 21287# Support unset when possible. 21288if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 21289 as_unset=unset 21290else 21291 as_unset=false 21292fi 21293 21294 21295# IFS 21296# We need space, tab and new line, in precisely that order. Quoting is 21297# there to prevent editors from complaining about space-tab. 21298# (If _AS_PATH_WALK were called with IFS unset, it would disable word 21299# splitting by setting IFS to empty value.) 21300IFS=" "" $as_nl" 21301 21302# Find who we are. Look in the path if we contain no directory separator. 21303case $0 in 21304 *[\\/]* ) as_myself=$0 ;; 21305 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21306for as_dir in $PATH 21307do 21308 IFS=$as_save_IFS 21309 test -z "$as_dir" && as_dir=. 21310 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21311done 21312IFS=$as_save_IFS 21313 21314 ;; 21315esac 21316# We did not find ourselves, most probably we were run as `sh COMMAND' 21317# in which case we are not to be found in the path. 21318if test "x$as_myself" = x; then 21319 as_myself=$0 21320fi 21321if test ! -f "$as_myself"; then 21322 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21323 { (exit 1); exit 1; } 21324fi 21325 21326# Work around bugs in pre-3.0 UWIN ksh. 21327for as_var in ENV MAIL MAILPATH 21328do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21329done 21330PS1='$ ' 21331PS2='> ' 21332PS4='+ ' 21333 21334# NLS nuisances. 21335LC_ALL=C 21336export LC_ALL 21337LANGUAGE=C 21338export LANGUAGE 21339 21340# Required to use basename. 21341if expr a : '\(a\)' >/dev/null 2>&1 && 21342 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21343 as_expr=expr 21344else 21345 as_expr=false 21346fi 21347 21348if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21349 as_basename=basename 21350else 21351 as_basename=false 21352fi 21353 21354 21355# Name of the executable. 21356as_me=`$as_basename -- "$0" || 21357$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21358 X"$0" : 'X\(//\)$' \| \ 21359 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21360$as_echo X/"$0" | 21361 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21362 s//\1/ 21363 q 21364 } 21365 /^X\/\(\/\/\)$/{ 21366 s//\1/ 21367 q 21368 } 21369 /^X\/\(\/\).*/{ 21370 s//\1/ 21371 q 21372 } 21373 s/.*/./; q'` 21374 21375# CDPATH. 21376$as_unset CDPATH 21377 21378 21379 21380 as_lineno_1=$LINENO 21381 as_lineno_2=$LINENO 21382 test "x$as_lineno_1" != "x$as_lineno_2" && 21383 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 21384 21385 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 21386 # uniformly replaced by the line number. The first 'sed' inserts a 21387 # line-number line after each line using $LINENO; the second 'sed' 21388 # does the real work. The second script uses 'N' to pair each 21389 # line-number line with the line containing $LINENO, and appends 21390 # trailing '-' during substitution so that $LINENO is not a special 21391 # case at line end. 21392 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 21393 # scripts with optimization help from Paolo Bonzini. Blame Lee 21394 # E. McMahon (1931-1989) for sed's syntax. :-) 21395 sed -n ' 21396 p 21397 /[$]LINENO/= 21398 ' <$as_myself | 21399 sed ' 21400 s/[$]LINENO.*/&-/ 21401 t lineno 21402 b 21403 :lineno 21404 N 21405 :loop 21406 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 21407 t loop 21408 s/-\n.*// 21409 ' >$as_me.lineno && 21410 chmod +x "$as_me.lineno" || 21411 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 21412 { (exit 1); exit 1; }; } 21413 21414 # Don't try to exec as it changes $[0], causing all sort of problems 21415 # (the dirname of $[0] is not the place where we might find the 21416 # original and so on. Autoconf is especially sensitive to this). 21417 . "./$as_me.lineno" 21418 # Exit status is that of the last command. 21419 exit 21420} 21421 21422 21423if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21424 as_dirname=dirname 21425else 21426 as_dirname=false 21427fi 21428 21429ECHO_C= ECHO_N= ECHO_T= 21430case `echo -n x` in 21431-n*) 21432 case `echo 'x\c'` in 21433 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21434 *) ECHO_C='\c';; 21435 esac;; 21436*) 21437 ECHO_N='-n';; 21438esac 21439if expr a : '\(a\)' >/dev/null 2>&1 && 21440 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21441 as_expr=expr 21442else 21443 as_expr=false 21444fi 21445 21446rm -f conf$$ conf$$.exe conf$$.file 21447if test -d conf$$.dir; then 21448 rm -f conf$$.dir/conf$$.file 21449else 21450 rm -f conf$$.dir 21451 mkdir conf$$.dir 2>/dev/null 21452fi 21453if (echo >conf$$.file) 2>/dev/null; then 21454 if ln -s conf$$.file conf$$ 2>/dev/null; then 21455 as_ln_s='ln -s' 21456 # ... but there are two gotchas: 21457 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21458 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21459 # In both cases, we have to default to `cp -p'. 21460 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21461 as_ln_s='cp -p' 21462 elif ln conf$$.file conf$$ 2>/dev/null; then 21463 as_ln_s=ln 21464 else 21465 as_ln_s='cp -p' 21466 fi 21467else 21468 as_ln_s='cp -p' 21469fi 21470rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21471rmdir conf$$.dir 2>/dev/null 21472 21473if mkdir -p . 2>/dev/null; then 21474 as_mkdir_p=: 21475else 21476 test -d ./-p && rmdir ./-p 21477 as_mkdir_p=false 21478fi 21479 21480if test -x / >/dev/null 2>&1; then 21481 as_test_x='test -x' 21482else 21483 if ls -dL / >/dev/null 2>&1; then 21484 as_ls_L_option=L 21485 else 21486 as_ls_L_option= 21487 fi 21488 as_test_x=' 21489 eval sh -c '\'' 21490 if test -d "$1"; then 21491 test -d "$1/."; 21492 else 21493 case $1 in 21494 -*)set "./$1";; 21495 esac; 21496 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 21497 ???[sx]*):;;*)false;;esac;fi 21498 '\'' sh 21499 ' 21500fi 21501as_executable_p=$as_test_x 21502 21503# Sed expression to map a string onto a valid CPP name. 21504as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21505 21506# Sed expression to map a string onto a valid variable name. 21507as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21508 21509 21510exec 6>&1 21511 21512# Save the log message, to keep $[0] and so on meaningful, and to 21513# report actual input values of CONFIG_FILES etc. instead of their 21514# values after options handling. 21515ac_log=" 21516This file was extended by libg19draw $as_me 1.0.0, which was 21517generated by GNU Autoconf 2.63. Invocation command line was 21518 21519 CONFIG_FILES = $CONFIG_FILES 21520 CONFIG_HEADERS = $CONFIG_HEADERS 21521 CONFIG_LINKS = $CONFIG_LINKS 21522 CONFIG_COMMANDS = $CONFIG_COMMANDS 21523 $ $0 $@ 21524 21525on `(hostname || uname -n) 2>/dev/null | sed 1q` 21526" 21527 21528_ACEOF 21529 21530case $ac_config_files in *" 21531"*) set x $ac_config_files; shift; ac_config_files=$*;; 21532esac 21533 21534case $ac_config_headers in *" 21535"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 21536esac 21537 21538 21539cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21540# Files that config.status was made for. 21541config_files="$ac_config_files" 21542config_headers="$ac_config_headers" 21543config_commands="$ac_config_commands" 21544 21545_ACEOF 21546 21547cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21548ac_cs_usage="\ 21549\`$as_me' instantiates files from templates according to the 21550current configuration. 21551 21552Usage: $0 [OPTION]... [FILE]... 21553 21554 -h, --help print this help, then exit 21555 -V, --version print version number and configuration settings, then exit 21556 -q, --quiet, --silent 21557 do not print progress messages 21558 -d, --debug don't remove temporary files 21559 --recheck update $as_me by reconfiguring in the same conditions 21560 --file=FILE[:TEMPLATE] 21561 instantiate the configuration file FILE 21562 --header=FILE[:TEMPLATE] 21563 instantiate the configuration header FILE 21564 21565Configuration files: 21566$config_files 21567 21568Configuration headers: 21569$config_headers 21570 21571Configuration commands: 21572$config_commands 21573 21574Report bugs to <bug-autoconf@gnu.org>." 21575 21576_ACEOF 21577cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21578ac_cs_version="\\ 21579libg19draw config.status 1.0.0 21580configured by $0, generated by GNU Autoconf 2.63, 21581 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 21582 21583Copyright (C) 2008 Free Software Foundation, Inc. 21584This config.status script is free software; the Free Software Foundation 21585gives unlimited permission to copy, distribute and modify it." 21586 21587ac_pwd='$ac_pwd' 21588srcdir='$srcdir' 21589INSTALL='$INSTALL' 21590MKDIR_P='$MKDIR_P' 21591AWK='$AWK' 21592test -n "\$AWK" || AWK=awk 21593_ACEOF 21594 21595cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21596# The default lists apply if the user does not specify any file. 21597ac_need_defaults=: 21598while test $# != 0 21599do 21600 case $1 in 21601 --*=*) 21602 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21603 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21604 ac_shift=: 21605 ;; 21606 *) 21607 ac_option=$1 21608 ac_optarg=$2 21609 ac_shift=shift 21610 ;; 21611 esac 21612 21613 case $ac_option in 21614 # Handling of the options. 21615 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21616 ac_cs_recheck=: ;; 21617 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21618 $as_echo "$ac_cs_version"; exit ;; 21619 --debug | --debu | --deb | --de | --d | -d ) 21620 debug=: ;; 21621 --file | --fil | --fi | --f ) 21622 $ac_shift 21623 case $ac_optarg in 21624 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21625 esac 21626 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 21627 ac_need_defaults=false;; 21628 --header | --heade | --head | --hea ) 21629 $ac_shift 21630 case $ac_optarg in 21631 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21632 esac 21633 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 21634 ac_need_defaults=false;; 21635 --he | --h) 21636 # Conflict between --help and --header 21637 { $as_echo "$as_me: error: ambiguous option: $1 21638Try \`$0 --help' for more information." >&2 21639 { (exit 1); exit 1; }; };; 21640 --help | --hel | -h ) 21641 $as_echo "$ac_cs_usage"; exit ;; 21642 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21643 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21644 ac_cs_silent=: ;; 21645 21646 # This is an error. 21647 -*) { $as_echo "$as_me: error: unrecognized option: $1 21648Try \`$0 --help' for more information." >&2 21649 { (exit 1); exit 1; }; } ;; 21650 21651 *) ac_config_targets="$ac_config_targets $1" 21652 ac_need_defaults=false ;; 21653 21654 esac 21655 shift 21656done 21657 21658ac_configure_extra_args= 21659 21660if $ac_cs_silent; then 21661 exec 6>/dev/null 21662 ac_configure_extra_args="$ac_configure_extra_args --silent" 21663fi 21664 21665_ACEOF 21666cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21667if \$ac_cs_recheck; then 21668 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21669 shift 21670 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 21671 CONFIG_SHELL='$SHELL' 21672 export CONFIG_SHELL 21673 exec "\$@" 21674fi 21675 21676_ACEOF 21677cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21678exec 5>>config.log 21679{ 21680 echo 21681 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21682## Running $as_me. ## 21683_ASBOX 21684 $as_echo "$ac_log" 21685} >&5 21686 21687_ACEOF 21688cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21689# 21690# INIT-COMMANDS 21691# 21692AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 21693 21694_ACEOF 21695 21696cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21697 21698# Handling of arguments. 21699for ac_config_target in $ac_config_targets 21700do 21701 case $ac_config_target in 21702 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21703 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21704 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21705 21706 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 21707$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 21708 { (exit 1); exit 1; }; };; 21709 esac 21710done 21711 21712 21713# If the user did not use the arguments to specify the items to instantiate, 21714# then the envvar interface is used. Set only those that are not. 21715# We use the long form for the default assignment because of an extremely 21716# bizarre bug on SunOS 4.1.3. 21717if $ac_need_defaults; then 21718 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21719 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21720 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21721fi 21722 21723# Have a temporary directory for convenience. Make it in the build tree 21724# simply because there is no reason against having it here, and in addition, 21725# creating and moving files from /tmp can sometimes cause problems. 21726# Hook for its removal unless debugging. 21727# Note that there is a small window in which the directory will not be cleaned: 21728# after its creation but before its name has been assigned to `$tmp'. 21729$debug || 21730{ 21731 tmp= 21732 trap 'exit_status=$? 21733 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 21734' 0 21735 trap '{ (exit 1); exit 1; }' 1 2 13 15 21736} 21737# Create a (secure) tmp directory for tmp files. 21738 21739{ 21740 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21741 test -n "$tmp" && test -d "$tmp" 21742} || 21743{ 21744 tmp=./conf$$-$RANDOM 21745 (umask 077 && mkdir "$tmp") 21746} || 21747{ 21748 $as_echo "$as_me: cannot create a temporary directory in ." >&2 21749 { (exit 1); exit 1; } 21750} 21751 21752# Set up the scripts for CONFIG_FILES section. 21753# No need to generate them if there are no CONFIG_FILES. 21754# This happens for instance with `./config.status config.h'. 21755if test -n "$CONFIG_FILES"; then 21756 21757 21758ac_cr=' 21759' 21760ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21761if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21762 ac_cs_awk_cr='\\r' 21763else 21764 ac_cs_awk_cr=$ac_cr 21765fi 21766 21767echo 'BEGIN {' >"$tmp/subs1.awk" && 21768_ACEOF 21769 21770 21771{ 21772 echo "cat >conf$$subs.awk <<_ACEOF" && 21773 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21774 echo "_ACEOF" 21775} >conf$$subs.sh || 21776 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 21777$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 21778 { (exit 1); exit 1; }; } 21779ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 21780ac_delim='%!_!# ' 21781for ac_last_try in false false false false false :; do 21782 . ./conf$$subs.sh || 21783 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 21784$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 21785 { (exit 1); exit 1; }; } 21786 21787 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21788 if test $ac_delim_n = $ac_delim_num; then 21789 break 21790 elif $ac_last_try; then 21791 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 21792$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 21793 { (exit 1); exit 1; }; } 21794 else 21795 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21796 fi 21797done 21798rm -f conf$$subs.sh 21799 21800cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21801cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 21802_ACEOF 21803sed -n ' 21804h 21805s/^/S["/; s/!.*/"]=/ 21806p 21807g 21808s/^[^!]*!// 21809:repl 21810t repl 21811s/'"$ac_delim"'$// 21812t delim 21813:nl 21814h 21815s/\(.\{148\}\).*/\1/ 21816t more1 21817s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21818p 21819n 21820b repl 21821:more1 21822s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21823p 21824g 21825s/.\{148\}// 21826t nl 21827:delim 21828h 21829s/\(.\{148\}\).*/\1/ 21830t more2 21831s/["\\]/\\&/g; s/^/"/; s/$/"/ 21832p 21833b 21834:more2 21835s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21836p 21837g 21838s/.\{148\}// 21839t delim 21840' <conf$$subs.awk | sed ' 21841/^[^""]/{ 21842 N 21843 s/\n// 21844} 21845' >>$CONFIG_STATUS || ac_write_fail=1 21846rm -f conf$$subs.awk 21847cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21848_ACAWK 21849cat >>"\$tmp/subs1.awk" <<_ACAWK && 21850 for (key in S) S_is_set[key] = 1 21851 FS = "" 21852 21853} 21854{ 21855 line = $ 0 21856 nfields = split(line, field, "@") 21857 substed = 0 21858 len = length(field[1]) 21859 for (i = 2; i < nfields; i++) { 21860 key = field[i] 21861 keylen = length(key) 21862 if (S_is_set[key]) { 21863 value = S[key] 21864 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21865 len += length(value) + length(field[++i]) 21866 substed = 1 21867 } else 21868 len += 1 + keylen 21869 } 21870 21871 print line 21872} 21873 21874_ACAWK 21875_ACEOF 21876cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21877if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21878 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21879else 21880 cat 21881fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 21882 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 21883$as_echo "$as_me: error: could not setup config files machinery" >&2;} 21884 { (exit 1); exit 1; }; } 21885_ACEOF 21886 21887# VPATH may cause trouble with some makes, so we remove $(srcdir), 21888# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 21889# trailing colons and then remove the whole line if VPATH becomes empty 21890# (actually we leave an empty line to preserve line numbers). 21891if test "x$srcdir" = x.; then 21892 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 21893s/:*\$(srcdir):*/:/ 21894s/:*\${srcdir}:*/:/ 21895s/:*@srcdir@:*/:/ 21896s/^\([^=]*=[ ]*\):*/\1/ 21897s/:*$// 21898s/^[^=]*=[ ]*$// 21899}' 21900fi 21901 21902cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21903fi # test -n "$CONFIG_FILES" 21904 21905# Set up the scripts for CONFIG_HEADERS section. 21906# No need to generate them if there are no CONFIG_HEADERS. 21907# This happens for instance with `./config.status Makefile'. 21908if test -n "$CONFIG_HEADERS"; then 21909cat >"$tmp/defines.awk" <<\_ACAWK || 21910BEGIN { 21911_ACEOF 21912 21913# Transform confdefs.h into an awk script `defines.awk', embedded as 21914# here-document in config.status, that substitutes the proper values into 21915# config.h.in to produce config.h. 21916 21917# Create a delimiter string that does not exist in confdefs.h, to ease 21918# handling of long lines. 21919ac_delim='%!_!# ' 21920for ac_last_try in false false :; do 21921 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 21922 if test -z "$ac_t"; then 21923 break 21924 elif $ac_last_try; then 21925 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 21926$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 21927 { (exit 1); exit 1; }; } 21928 else 21929 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21930 fi 21931done 21932 21933# For the awk script, D is an array of macro values keyed by name, 21934# likewise P contains macro parameters if any. Preserve backslash 21935# newline sequences. 21936 21937ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21938sed -n ' 21939s/.\{148\}/&'"$ac_delim"'/g 21940t rset 21941:rset 21942s/^[ ]*#[ ]*define[ ][ ]*/ / 21943t def 21944d 21945:def 21946s/\\$// 21947t bsnl 21948s/["\\]/\\&/g 21949s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21950D["\1"]=" \3"/p 21951s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21952d 21953:bsnl 21954s/["\\]/\\&/g 21955s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21956D["\1"]=" \3\\\\\\n"\\/p 21957t cont 21958s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21959t cont 21960d 21961:cont 21962n 21963s/.\{148\}/&'"$ac_delim"'/g 21964t clear 21965:clear 21966s/\\$// 21967t bsnlc 21968s/["\\]/\\&/g; s/^/"/; s/$/"/p 21969d 21970:bsnlc 21971s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21972b cont 21973' <confdefs.h | sed ' 21974s/'"$ac_delim"'/"\\\ 21975"/g' >>$CONFIG_STATUS || ac_write_fail=1 21976 21977cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21978 for (key in D) D_is_set[key] = 1 21979 FS = "" 21980} 21981/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21982 line = \$ 0 21983 split(line, arg, " ") 21984 if (arg[1] == "#") { 21985 defundef = arg[2] 21986 mac1 = arg[3] 21987 } else { 21988 defundef = substr(arg[1], 2) 21989 mac1 = arg[2] 21990 } 21991 split(mac1, mac2, "(") #) 21992 macro = mac2[1] 21993 prefix = substr(line, 1, index(line, defundef) - 1) 21994 if (D_is_set[macro]) { 21995 # Preserve the white space surrounding the "#". 21996 print prefix "define", macro P[macro] D[macro] 21997 next 21998 } else { 21999 # Replace #undef with comments. This is necessary, for example, 22000 # in the case of _POSIX_SOURCE, which is predefined and required 22001 # on some systems where configure will not decide to define it. 22002 if (defundef == "undef") { 22003 print "/*", prefix defundef, macro, "*/" 22004 next 22005 } 22006 } 22007} 22008{ print } 22009_ACAWK 22010_ACEOF 22011cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22012 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 22013$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 22014 { (exit 1); exit 1; }; } 22015fi # test -n "$CONFIG_HEADERS" 22016 22017 22018eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 22019shift 22020for ac_tag 22021do 22022 case $ac_tag in 22023 :[FHLC]) ac_mode=$ac_tag; continue;; 22024 esac 22025 case $ac_mode$ac_tag in 22026 :[FHL]*:*);; 22027 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 22028$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 22029 { (exit 1); exit 1; }; };; 22030 :[FH]-) ac_tag=-:-;; 22031 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22032 esac 22033 ac_save_IFS=$IFS 22034 IFS=: 22035 set x $ac_tag 22036 IFS=$ac_save_IFS 22037 shift 22038 ac_file=$1 22039 shift 22040 22041 case $ac_mode in 22042 :L) ac_source=$1;; 22043 :[FH]) 22044 ac_file_inputs= 22045 for ac_f 22046 do 22047 case $ac_f in 22048 -) ac_f="$tmp/stdin";; 22049 *) # Look for the file first in the build tree, then in the source tree 22050 # (if the path is not absolute). The absolute path cannot be DOS-style, 22051 # because $ac_f cannot contain `:'. 22052 test -f "$ac_f" || 22053 case $ac_f in 22054 [\\/$]*) false;; 22055 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22056 esac || 22057 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 22058$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 22059 { (exit 1); exit 1; }; };; 22060 esac 22061 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 22062 ac_file_inputs="$ac_file_inputs '$ac_f'" 22063 done 22064 22065 # Let's still pretend it is `configure' which instantiates (i.e., don't 22066 # use $as_me), people would be surprised to read: 22067 # /* config.h. Generated by config.status. */ 22068 configure_input='Generated from '` 22069 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 22070 `' by configure.' 22071 if test x"$ac_file" != x-; then 22072 configure_input="$ac_file. $configure_input" 22073 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 22074$as_echo "$as_me: creating $ac_file" >&6;} 22075 fi 22076 # Neutralize special characters interpreted by sed in replacement strings. 22077 case $configure_input in #( 22078 *\&* | *\|* | *\\* ) 22079 ac_sed_conf_input=`$as_echo "$configure_input" | 22080 sed 's/[\\\\&|]/\\\\&/g'`;; #( 22081 *) ac_sed_conf_input=$configure_input;; 22082 esac 22083 22084 case $ac_tag in 22085 *:-:* | *:-) cat >"$tmp/stdin" \ 22086 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 22087$as_echo "$as_me: error: could not create $ac_file" >&2;} 22088 { (exit 1); exit 1; }; } ;; 22089 esac 22090 ;; 22091 esac 22092 22093 ac_dir=`$as_dirname -- "$ac_file" || 22094$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22095 X"$ac_file" : 'X\(//\)[^/]' \| \ 22096 X"$ac_file" : 'X\(//\)$' \| \ 22097 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22098$as_echo X"$ac_file" | 22099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22100 s//\1/ 22101 q 22102 } 22103 /^X\(\/\/\)[^/].*/{ 22104 s//\1/ 22105 q 22106 } 22107 /^X\(\/\/\)$/{ 22108 s//\1/ 22109 q 22110 } 22111 /^X\(\/\).*/{ 22112 s//\1/ 22113 q 22114 } 22115 s/.*/./; q'` 22116 { as_dir="$ac_dir" 22117 case $as_dir in #( 22118 -*) as_dir=./$as_dir;; 22119 esac 22120 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22121 as_dirs= 22122 while :; do 22123 case $as_dir in #( 22124 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 22125 *) as_qdir=$as_dir;; 22126 esac 22127 as_dirs="'$as_qdir' $as_dirs" 22128 as_dir=`$as_dirname -- "$as_dir" || 22129$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22130 X"$as_dir" : 'X\(//\)[^/]' \| \ 22131 X"$as_dir" : 'X\(//\)$' \| \ 22132 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22133$as_echo X"$as_dir" | 22134 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22135 s//\1/ 22136 q 22137 } 22138 /^X\(\/\/\)[^/].*/{ 22139 s//\1/ 22140 q 22141 } 22142 /^X\(\/\/\)$/{ 22143 s//\1/ 22144 q 22145 } 22146 /^X\(\/\).*/{ 22147 s//\1/ 22148 q 22149 } 22150 s/.*/./; q'` 22151 test -d "$as_dir" && break 22152 done 22153 test -z "$as_dirs" || eval "mkdir $as_dirs" 22154 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22155$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 22156 { (exit 1); exit 1; }; }; } 22157 ac_builddir=. 22158 22159case "$ac_dir" in 22160.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22161*) 22162 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 22163 # A ".." for each directory in $ac_dir_suffix. 22164 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 22165 case $ac_top_builddir_sub in 22166 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22167 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22168 esac ;; 22169esac 22170ac_abs_top_builddir=$ac_pwd 22171ac_abs_builddir=$ac_pwd$ac_dir_suffix 22172# for backward compatibility: 22173ac_top_builddir=$ac_top_build_prefix 22174 22175case $srcdir in 22176 .) # We are building in place. 22177 ac_srcdir=. 22178 ac_top_srcdir=$ac_top_builddir_sub 22179 ac_abs_top_srcdir=$ac_pwd ;; 22180 [\\/]* | ?:[\\/]* ) # Absolute name. 22181 ac_srcdir=$srcdir$ac_dir_suffix; 22182 ac_top_srcdir=$srcdir 22183 ac_abs_top_srcdir=$srcdir ;; 22184 *) # Relative name. 22185 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22186 ac_top_srcdir=$ac_top_build_prefix$srcdir 22187 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22188esac 22189ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22190 22191 22192 case $ac_mode in 22193 :F) 22194 # 22195 # CONFIG_FILE 22196 # 22197 22198 case $INSTALL in 22199 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22200 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22201 esac 22202 ac_MKDIR_P=$MKDIR_P 22203 case $MKDIR_P in 22204 [\\/$]* | ?:[\\/]* ) ;; 22205 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 22206 esac 22207_ACEOF 22208 22209cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22210# If the template does not know about datarootdir, expand it. 22211# FIXME: This hack should be removed a few years after 2.60. 22212ac_datarootdir_hack=; ac_datarootdir_seen= 22213 22214ac_sed_dataroot=' 22215/datarootdir/ { 22216 p 22217 q 22218} 22219/@datadir@/p 22220/@docdir@/p 22221/@infodir@/p 22222/@localedir@/p 22223/@mandir@/p 22224' 22225case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 22226*datarootdir*) ac_datarootdir_seen=yes;; 22227*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22228 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22229$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22230_ACEOF 22231cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22232 ac_datarootdir_hack=' 22233 s&@datadir@&$datadir&g 22234 s&@docdir@&$docdir&g 22235 s&@infodir@&$infodir&g 22236 s&@localedir@&$localedir&g 22237 s&@mandir@&$mandir&g 22238 s&\\\${datarootdir}&$datarootdir&g' ;; 22239esac 22240_ACEOF 22241 22242# Neutralize VPATH when `$srcdir' = `.'. 22243# Shell code in configure.ac might set extrasub. 22244# FIXME: do we really want to maintain this feature? 22245cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22246ac_sed_extra="$ac_vpsub 22247$extrasub 22248_ACEOF 22249cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22250:t 22251/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22252s|@configure_input@|$ac_sed_conf_input|;t t 22253s&@top_builddir@&$ac_top_builddir_sub&;t t 22254s&@top_build_prefix@&$ac_top_build_prefix&;t t 22255s&@srcdir@&$ac_srcdir&;t t 22256s&@abs_srcdir@&$ac_abs_srcdir&;t t 22257s&@top_srcdir@&$ac_top_srcdir&;t t 22258s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22259s&@builddir@&$ac_builddir&;t t 22260s&@abs_builddir@&$ac_abs_builddir&;t t 22261s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22262s&@INSTALL@&$ac_INSTALL&;t t 22263s&@MKDIR_P@&$ac_MKDIR_P&;t t 22264$ac_datarootdir_hack 22265" 22266eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 22267 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 22268$as_echo "$as_me: error: could not create $ac_file" >&2;} 22269 { (exit 1); exit 1; }; } 22270 22271test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22272 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 22273 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 22274 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22275which seems to be undefined. Please make sure it is defined." >&5 22276$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22277which seems to be undefined. Please make sure it is defined." >&2;} 22278 22279 rm -f "$tmp/stdin" 22280 case $ac_file in 22281 -) cat "$tmp/out" && rm -f "$tmp/out";; 22282 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 22283 esac \ 22284 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 22285$as_echo "$as_me: error: could not create $ac_file" >&2;} 22286 { (exit 1); exit 1; }; } 22287 ;; 22288 :H) 22289 # 22290 # CONFIG_HEADER 22291 # 22292 if test x"$ac_file" != x-; then 22293 { 22294 $as_echo "/* $configure_input */" \ 22295 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 22296 } >"$tmp/config.h" \ 22297 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 22298$as_echo "$as_me: error: could not create $ac_file" >&2;} 22299 { (exit 1); exit 1; }; } 22300 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 22301 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 22302$as_echo "$as_me: $ac_file is unchanged" >&6;} 22303 else 22304 rm -f "$ac_file" 22305 mv "$tmp/config.h" "$ac_file" \ 22306 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 22307$as_echo "$as_me: error: could not create $ac_file" >&2;} 22308 { (exit 1); exit 1; }; } 22309 fi 22310 else 22311 $as_echo "/* $configure_input */" \ 22312 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 22313 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 22314$as_echo "$as_me: error: could not create -" >&2;} 22315 { (exit 1); exit 1; }; } 22316 fi 22317# Compute "$ac_file"'s index in $config_headers. 22318_am_arg="$ac_file" 22319_am_stamp_count=1 22320for _am_header in $config_headers :; do 22321 case $_am_header in 22322 $_am_arg | $_am_arg:* ) 22323 break ;; 22324 * ) 22325 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22326 esac 22327done 22328echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 22329$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22330 X"$_am_arg" : 'X\(//\)[^/]' \| \ 22331 X"$_am_arg" : 'X\(//\)$' \| \ 22332 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 22333$as_echo X"$_am_arg" | 22334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22335 s//\1/ 22336 q 22337 } 22338 /^X\(\/\/\)[^/].*/{ 22339 s//\1/ 22340 q 22341 } 22342 /^X\(\/\/\)$/{ 22343 s//\1/ 22344 q 22345 } 22346 /^X\(\/\).*/{ 22347 s//\1/ 22348 q 22349 } 22350 s/.*/./; q'`/stamp-h$_am_stamp_count 22351 ;; 22352 22353 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 22354$as_echo "$as_me: executing $ac_file commands" >&6;} 22355 ;; 22356 esac 22357 22358 22359 case $ac_file$ac_mode in 22360 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 22361 # Strip MF so we end up with the name of the file. 22362 mf=`echo "$mf" | sed -e 's/:.*$//'` 22363 # Check whether this is an Automake generated Makefile or not. 22364 # We used to match only the files named `Makefile.in', but 22365 # some people rename them; so instead we look at the file content. 22366 # Grep'ing the first line is not enough: some people post-process 22367 # each Makefile.in and add a new line on top of each file to say so. 22368 # Grep'ing the whole file is not good either: AIX grep has a line 22369 # limit of 2048, but all sed's we know have understand at least 4000. 22370 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 22371 dirpart=`$as_dirname -- "$mf" || 22372$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22373 X"$mf" : 'X\(//\)[^/]' \| \ 22374 X"$mf" : 'X\(//\)$' \| \ 22375 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 22376$as_echo X"$mf" | 22377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22378 s//\1/ 22379 q 22380 } 22381 /^X\(\/\/\)[^/].*/{ 22382 s//\1/ 22383 q 22384 } 22385 /^X\(\/\/\)$/{ 22386 s//\1/ 22387 q 22388 } 22389 /^X\(\/\).*/{ 22390 s//\1/ 22391 q 22392 } 22393 s/.*/./; q'` 22394 else 22395 continue 22396 fi 22397 # Extract the definition of DEPDIR, am__include, and am__quote 22398 # from the Makefile without running `make'. 22399 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 22400 test -z "$DEPDIR" && continue 22401 am__include=`sed -n 's/^am__include = //p' < "$mf"` 22402 test -z "am__include" && continue 22403 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 22404 # When using ansi2knr, U may be empty or an underscore; expand it 22405 U=`sed -n 's/^U = //p' < "$mf"` 22406 # Find all dependency output files, they are included files with 22407 # $(DEPDIR) in their names. We invoke sed twice because it is the 22408 # simplest approach to changing $(DEPDIR) to its actual value in the 22409 # expansion. 22410 for file in `sed -n " 22411 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 22412 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 22413 # Make sure the directory exists. 22414 test -f "$dirpart/$file" && continue 22415 fdir=`$as_dirname -- "$file" || 22416$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22417 X"$file" : 'X\(//\)[^/]' \| \ 22418 X"$file" : 'X\(//\)$' \| \ 22419 X"$file" : 'X\(/\)' \| . 2>/dev/null || 22420$as_echo X"$file" | 22421 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22422 s//\1/ 22423 q 22424 } 22425 /^X\(\/\/\)[^/].*/{ 22426 s//\1/ 22427 q 22428 } 22429 /^X\(\/\/\)$/{ 22430 s//\1/ 22431 q 22432 } 22433 /^X\(\/\).*/{ 22434 s//\1/ 22435 q 22436 } 22437 s/.*/./; q'` 22438 { as_dir=$dirpart/$fdir 22439 case $as_dir in #( 22440 -*) as_dir=./$as_dir;; 22441 esac 22442 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22443 as_dirs= 22444 while :; do 22445 case $as_dir in #( 22446 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 22447 *) as_qdir=$as_dir;; 22448 esac 22449 as_dirs="'$as_qdir' $as_dirs" 22450 as_dir=`$as_dirname -- "$as_dir" || 22451$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22452 X"$as_dir" : 'X\(//\)[^/]' \| \ 22453 X"$as_dir" : 'X\(//\)$' \| \ 22454 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22455$as_echo X"$as_dir" | 22456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22457 s//\1/ 22458 q 22459 } 22460 /^X\(\/\/\)[^/].*/{ 22461 s//\1/ 22462 q 22463 } 22464 /^X\(\/\/\)$/{ 22465 s//\1/ 22466 q 22467 } 22468 /^X\(\/\).*/{ 22469 s//\1/ 22470 q 22471 } 22472 s/.*/./; q'` 22473 test -d "$as_dir" && break 22474 done 22475 test -z "$as_dirs" || eval "mkdir $as_dirs" 22476 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22477$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 22478 { (exit 1); exit 1; }; }; } 22479 # echo "creating $dirpart/$file" 22480 echo '# dummy' > "$dirpart/$file" 22481 done 22482done 22483 ;; 22484 22485 esac 22486done # for ac_tag 22487 22488 22489{ (exit 0); exit 0; } 22490_ACEOF 22491chmod +x $CONFIG_STATUS 22492ac_clean_files=$ac_clean_files_save 22493 22494test $ac_write_fail = 0 || 22495 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 22496$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 22497 { (exit 1); exit 1; }; } 22498 22499 22500# configure is writing to config.log, and then calls config.status. 22501# config.status does its own redirection, appending to config.log. 22502# Unfortunately, on DOS this fails, as config.log is still kept open 22503# by configure, so config.status won't be able to write to it; its 22504# output is simply discarded. So we exec the FD to /dev/null, 22505# effectively closing config.log, so it can be properly (re)opened and 22506# appended to by config.status. When coming back to configure, we 22507# need to make the FD available again. 22508if test "$no_create" != yes; then 22509 ac_cs_success=: 22510 ac_config_status_args= 22511 test "$silent" = yes && 22512 ac_config_status_args="$ac_config_status_args --quiet" 22513 exec 5>/dev/null 22514 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22515 exec 5>>config.log 22516 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22517 # would make configure fail if this is the last instruction. 22518 $ac_cs_success || { (exit 1); exit 1; } 22519fi 22520if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22521 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22522$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22523fi 22524 22525