configure revision 7ae0a258
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.63 for xf86-video-tga 1.2.1. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 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='xf86-video-tga' 752PACKAGE_TARNAME='xf86-video-tga' 753PACKAGE_VERSION='1.2.1' 754PACKAGE_STRING='xf86-video-tga 1.2.1' 755PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 756 757ac_unique_file="Makefile.am" 758# Factoring default headers for most tests. 759ac_includes_default="\ 760#include <stdio.h> 761#ifdef HAVE_SYS_TYPES_H 762# include <sys/types.h> 763#endif 764#ifdef HAVE_SYS_STAT_H 765# include <sys/stat.h> 766#endif 767#ifdef STDC_HEADERS 768# include <stdlib.h> 769# include <stddef.h> 770#else 771# ifdef HAVE_STDLIB_H 772# include <stdlib.h> 773# endif 774#endif 775#ifdef HAVE_STRING_H 776# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 777# include <memory.h> 778# endif 779# include <string.h> 780#endif 781#ifdef HAVE_STRINGS_H 782# include <strings.h> 783#endif 784#ifdef HAVE_INTTYPES_H 785# include <inttypes.h> 786#endif 787#ifdef HAVE_STDINT_H 788# include <stdint.h> 789#endif 790#ifdef HAVE_UNISTD_H 791# include <unistd.h> 792#endif" 793 794ac_subst_vars='am__EXEEXT_FALSE 795am__EXEEXT_TRUE 796LTLIBOBJS 797LIBOBJS 798MAKE_HTML 799MAKE_PDF 800MAKE_PS 801MAKE_TEXT 802BUILD_PDFDOC_FALSE 803BUILD_PDFDOC_TRUE 804BUILD_LINUXDOC_FALSE 805BUILD_LINUXDOC_TRUE 806PS2PDF 807LINUXDOC 808ADMIN_MAN_DIR 809DRIVER_MAN_DIR 810MISC_MAN_DIR 811FILE_MAN_DIR 812LIB_MAN_DIR 813APP_MAN_DIR 814ADMIN_MAN_SUFFIX 815DRIVER_MAN_SUFFIX 816MISC_MAN_SUFFIX 817FILE_MAN_SUFFIX 818LIB_MAN_SUFFIX 819APP_MAN_SUFFIX 820DRIVER_NAME 821moduledir 822XSERVER_LIBPCIACCESS_FALSE 823XSERVER_LIBPCIACCESS_TRUE 824PCIACCESS_LIBS 825PCIACCESS_CFLAGS 826HAVE_XEXTPROTO_71_FALSE 827HAVE_XEXTPROTO_71_TRUE 828XEXT_LIBS 829XEXT_CFLAGS 830XORG_LIBS 831XORG_CFLAGS 832PKG_CONFIG 833LIBTOOL 834ac_ct_F77 835FFLAGS 836F77 837CXXCPP 838am__fastdepCXX_FALSE 839am__fastdepCXX_TRUE 840CXXDEPMODE 841ac_ct_CXX 842CXXFLAGS 843CXX 844CPP 845NMEDIT 846DSYMUTIL 847RANLIB 848AR 849ECHO 850LN_S 851EGREP 852GREP 853SED 854am__fastdepCC_FALSE 855am__fastdepCC_TRUE 856CCDEPMODE 857AMDEPBACKSLASH 858AMDEP_FALSE 859AMDEP_TRUE 860am__quote 861am__include 862DEPDIR 863OBJEXT 864EXEEXT 865ac_ct_CC 866CPPFLAGS 867LDFLAGS 868CFLAGS 869CC 870host_os 871host_vendor 872host_cpu 873host 874build_os 875build_vendor 876build_cpu 877build 878MAINT 879MAINTAINER_MODE_FALSE 880MAINTAINER_MODE_TRUE 881am__untar 882am__tar 883AMTAR 884am__leading_dot 885SET_MAKE 886AWK 887mkdir_p 888MKDIR_P 889INSTALL_STRIP_PROGRAM 890STRIP 891install_sh 892MAKEINFO 893AUTOHEADER 894AUTOMAKE 895AUTOCONF 896ACLOCAL 897VERSION 898PACKAGE 899CYGPATH_W 900am__isrc 901INSTALL_DATA 902INSTALL_SCRIPT 903INSTALL_PROGRAM 904target_alias 905host_alias 906build_alias 907LIBS 908ECHO_T 909ECHO_N 910ECHO_C 911DEFS 912mandir 913localedir 914libdir 915psdir 916pdfdir 917dvidir 918htmldir 919infodir 920docdir 921oldincludedir 922includedir 923localstatedir 924sharedstatedir 925sysconfdir 926datadir 927datarootdir 928libexecdir 929sbindir 930bindir 931program_transform_name 932prefix 933exec_prefix 934PACKAGE_BUGREPORT 935PACKAGE_STRING 936PACKAGE_VERSION 937PACKAGE_TARNAME 938PACKAGE_NAME 939PATH_SEPARATOR 940SHELL' 941ac_subst_files='' 942ac_user_opts=' 943enable_option_checking 944enable_maintainer_mode 945enable_static 946enable_shared 947enable_fast_install 948enable_dependency_tracking 949with_gnu_ld 950enable_libtool_lock 951with_pic 952with_tags 953with_xorg_module_dir 954with_release_version 955' 956 ac_precious_vars='build_alias 957host_alias 958target_alias 959CC 960CFLAGS 961LDFLAGS 962LIBS 963CPPFLAGS 964CPP 965CXX 966CXXFLAGS 967CCC 968CXXCPP 969F77 970FFLAGS 971PKG_CONFIG 972XORG_CFLAGS 973XORG_LIBS 974XEXT_CFLAGS 975XEXT_LIBS 976PCIACCESS_CFLAGS 977PCIACCESS_LIBS' 978 979 980# Initialize some variables set by options. 981ac_init_help= 982ac_init_version=false 983ac_unrecognized_opts= 984ac_unrecognized_sep= 985# The variables have the same names as the options, with 986# dashes changed to underlines. 987cache_file=/dev/null 988exec_prefix=NONE 989no_create= 990no_recursion= 991prefix=NONE 992program_prefix=NONE 993program_suffix=NONE 994program_transform_name=s,x,x, 995silent= 996site= 997srcdir= 998verbose= 999x_includes=NONE 1000x_libraries=NONE 1001 1002# Installation directory options. 1003# These are left unexpanded so users can "make install exec_prefix=/foo" 1004# and all the variables that are supposed to be based on exec_prefix 1005# by default will actually change. 1006# Use braces instead of parens because sh, perl, etc. also accept them. 1007# (The list follows the same order as the GNU Coding Standards.) 1008bindir='${exec_prefix}/bin' 1009sbindir='${exec_prefix}/sbin' 1010libexecdir='${exec_prefix}/libexec' 1011datarootdir='${prefix}/share' 1012datadir='${datarootdir}' 1013sysconfdir='${prefix}/etc' 1014sharedstatedir='${prefix}/com' 1015localstatedir='${prefix}/var' 1016includedir='${prefix}/include' 1017oldincludedir='/usr/include' 1018docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1019infodir='${datarootdir}/info' 1020htmldir='${docdir}' 1021dvidir='${docdir}' 1022pdfdir='${docdir}' 1023psdir='${docdir}' 1024libdir='${exec_prefix}/lib' 1025localedir='${datarootdir}/locale' 1026mandir='${datarootdir}/man' 1027 1028ac_prev= 1029ac_dashdash= 1030for ac_option 1031do 1032 # If the previous option needs an argument, assign it. 1033 if test -n "$ac_prev"; then 1034 eval $ac_prev=\$ac_option 1035 ac_prev= 1036 continue 1037 fi 1038 1039 case $ac_option in 1040 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1041 *) ac_optarg=yes ;; 1042 esac 1043 1044 # Accept the important Cygnus configure options, so we can diagnose typos. 1045 1046 case $ac_dashdash$ac_option in 1047 --) 1048 ac_dashdash=yes ;; 1049 1050 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1051 ac_prev=bindir ;; 1052 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1053 bindir=$ac_optarg ;; 1054 1055 -build | --build | --buil | --bui | --bu) 1056 ac_prev=build_alias ;; 1057 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1058 build_alias=$ac_optarg ;; 1059 1060 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1061 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1062 ac_prev=cache_file ;; 1063 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1064 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1065 cache_file=$ac_optarg ;; 1066 1067 --config-cache | -C) 1068 cache_file=config.cache ;; 1069 1070 -datadir | --datadir | --datadi | --datad) 1071 ac_prev=datadir ;; 1072 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1073 datadir=$ac_optarg ;; 1074 1075 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1076 | --dataroo | --dataro | --datar) 1077 ac_prev=datarootdir ;; 1078 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1079 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1080 datarootdir=$ac_optarg ;; 1081 1082 -disable-* | --disable-*) 1083 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1084 # Reject names that are not valid shell variable names. 1085 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1086 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1087 { (exit 1); exit 1; }; } 1088 ac_useropt_orig=$ac_useropt 1089 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1090 case $ac_user_opts in 1091 *" 1092"enable_$ac_useropt" 1093"*) ;; 1094 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1095 ac_unrecognized_sep=', ';; 1096 esac 1097 eval enable_$ac_useropt=no ;; 1098 1099 -docdir | --docdir | --docdi | --doc | --do) 1100 ac_prev=docdir ;; 1101 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1102 docdir=$ac_optarg ;; 1103 1104 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1105 ac_prev=dvidir ;; 1106 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1107 dvidir=$ac_optarg ;; 1108 1109 -enable-* | --enable-*) 1110 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1111 # Reject names that are not valid shell variable names. 1112 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1113 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1114 { (exit 1); exit 1; }; } 1115 ac_useropt_orig=$ac_useropt 1116 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1117 case $ac_user_opts in 1118 *" 1119"enable_$ac_useropt" 1120"*) ;; 1121 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1122 ac_unrecognized_sep=', ';; 1123 esac 1124 eval enable_$ac_useropt=\$ac_optarg ;; 1125 1126 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1127 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1128 | --exec | --exe | --ex) 1129 ac_prev=exec_prefix ;; 1130 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1131 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1132 | --exec=* | --exe=* | --ex=*) 1133 exec_prefix=$ac_optarg ;; 1134 1135 -gas | --gas | --ga | --g) 1136 # Obsolete; use --with-gas. 1137 with_gas=yes ;; 1138 1139 -help | --help | --hel | --he | -h) 1140 ac_init_help=long ;; 1141 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1142 ac_init_help=recursive ;; 1143 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1144 ac_init_help=short ;; 1145 1146 -host | --host | --hos | --ho) 1147 ac_prev=host_alias ;; 1148 -host=* | --host=* | --hos=* | --ho=*) 1149 host_alias=$ac_optarg ;; 1150 1151 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1152 ac_prev=htmldir ;; 1153 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1154 | --ht=*) 1155 htmldir=$ac_optarg ;; 1156 1157 -includedir | --includedir | --includedi | --included | --include \ 1158 | --includ | --inclu | --incl | --inc) 1159 ac_prev=includedir ;; 1160 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1161 | --includ=* | --inclu=* | --incl=* | --inc=*) 1162 includedir=$ac_optarg ;; 1163 1164 -infodir | --infodir | --infodi | --infod | --info | --inf) 1165 ac_prev=infodir ;; 1166 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1167 infodir=$ac_optarg ;; 1168 1169 -libdir | --libdir | --libdi | --libd) 1170 ac_prev=libdir ;; 1171 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1172 libdir=$ac_optarg ;; 1173 1174 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1175 | --libexe | --libex | --libe) 1176 ac_prev=libexecdir ;; 1177 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1178 | --libexe=* | --libex=* | --libe=*) 1179 libexecdir=$ac_optarg ;; 1180 1181 -localedir | --localedir | --localedi | --localed | --locale) 1182 ac_prev=localedir ;; 1183 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1184 localedir=$ac_optarg ;; 1185 1186 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1187 | --localstate | --localstat | --localsta | --localst | --locals) 1188 ac_prev=localstatedir ;; 1189 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1190 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1191 localstatedir=$ac_optarg ;; 1192 1193 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1194 ac_prev=mandir ;; 1195 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1196 mandir=$ac_optarg ;; 1197 1198 -nfp | --nfp | --nf) 1199 # Obsolete; use --without-fp. 1200 with_fp=no ;; 1201 1202 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1203 | --no-cr | --no-c | -n) 1204 no_create=yes ;; 1205 1206 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1207 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1208 no_recursion=yes ;; 1209 1210 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1211 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1212 | --oldin | --oldi | --old | --ol | --o) 1213 ac_prev=oldincludedir ;; 1214 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1215 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1216 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1217 oldincludedir=$ac_optarg ;; 1218 1219 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1220 ac_prev=prefix ;; 1221 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1222 prefix=$ac_optarg ;; 1223 1224 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1225 | --program-pre | --program-pr | --program-p) 1226 ac_prev=program_prefix ;; 1227 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1228 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1229 program_prefix=$ac_optarg ;; 1230 1231 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1232 | --program-suf | --program-su | --program-s) 1233 ac_prev=program_suffix ;; 1234 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1235 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1236 program_suffix=$ac_optarg ;; 1237 1238 -program-transform-name | --program-transform-name \ 1239 | --program-transform-nam | --program-transform-na \ 1240 | --program-transform-n | --program-transform- \ 1241 | --program-transform | --program-transfor \ 1242 | --program-transfo | --program-transf \ 1243 | --program-trans | --program-tran \ 1244 | --progr-tra | --program-tr | --program-t) 1245 ac_prev=program_transform_name ;; 1246 -program-transform-name=* | --program-transform-name=* \ 1247 | --program-transform-nam=* | --program-transform-na=* \ 1248 | --program-transform-n=* | --program-transform-=* \ 1249 | --program-transform=* | --program-transfor=* \ 1250 | --program-transfo=* | --program-transf=* \ 1251 | --program-trans=* | --program-tran=* \ 1252 | --progr-tra=* | --program-tr=* | --program-t=*) 1253 program_transform_name=$ac_optarg ;; 1254 1255 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1256 ac_prev=pdfdir ;; 1257 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1258 pdfdir=$ac_optarg ;; 1259 1260 -psdir | --psdir | --psdi | --psd | --ps) 1261 ac_prev=psdir ;; 1262 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1263 psdir=$ac_optarg ;; 1264 1265 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1266 | -silent | --silent | --silen | --sile | --sil) 1267 silent=yes ;; 1268 1269 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1270 ac_prev=sbindir ;; 1271 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1272 | --sbi=* | --sb=*) 1273 sbindir=$ac_optarg ;; 1274 1275 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1276 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1277 | --sharedst | --shareds | --shared | --share | --shar \ 1278 | --sha | --sh) 1279 ac_prev=sharedstatedir ;; 1280 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1281 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1282 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1283 | --sha=* | --sh=*) 1284 sharedstatedir=$ac_optarg ;; 1285 1286 -site | --site | --sit) 1287 ac_prev=site ;; 1288 -site=* | --site=* | --sit=*) 1289 site=$ac_optarg ;; 1290 1291 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1292 ac_prev=srcdir ;; 1293 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1294 srcdir=$ac_optarg ;; 1295 1296 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1297 | --syscon | --sysco | --sysc | --sys | --sy) 1298 ac_prev=sysconfdir ;; 1299 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1300 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1301 sysconfdir=$ac_optarg ;; 1302 1303 -target | --target | --targe | --targ | --tar | --ta | --t) 1304 ac_prev=target_alias ;; 1305 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1306 target_alias=$ac_optarg ;; 1307 1308 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1309 verbose=yes ;; 1310 1311 -version | --version | --versio | --versi | --vers | -V) 1312 ac_init_version=: ;; 1313 1314 -with-* | --with-*) 1315 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1316 # Reject names that are not valid shell variable names. 1317 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1318 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1319 { (exit 1); exit 1; }; } 1320 ac_useropt_orig=$ac_useropt 1321 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1322 case $ac_user_opts in 1323 *" 1324"with_$ac_useropt" 1325"*) ;; 1326 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1327 ac_unrecognized_sep=', ';; 1328 esac 1329 eval with_$ac_useropt=\$ac_optarg ;; 1330 1331 -without-* | --without-*) 1332 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1333 # Reject names that are not valid shell variable names. 1334 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1335 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1336 { (exit 1); exit 1; }; } 1337 ac_useropt_orig=$ac_useropt 1338 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1339 case $ac_user_opts in 1340 *" 1341"with_$ac_useropt" 1342"*) ;; 1343 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1344 ac_unrecognized_sep=', ';; 1345 esac 1346 eval with_$ac_useropt=no ;; 1347 1348 --x) 1349 # Obsolete; use --with-x. 1350 with_x=yes ;; 1351 1352 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1353 | --x-incl | --x-inc | --x-in | --x-i) 1354 ac_prev=x_includes ;; 1355 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1356 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1357 x_includes=$ac_optarg ;; 1358 1359 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1360 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1361 ac_prev=x_libraries ;; 1362 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1363 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1364 x_libraries=$ac_optarg ;; 1365 1366 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1367Try \`$0 --help' for more information." >&2 1368 { (exit 1); exit 1; }; } 1369 ;; 1370 1371 *=*) 1372 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1373 # Reject names that are not valid shell variable names. 1374 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1375 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1376 { (exit 1); exit 1; }; } 1377 eval $ac_envvar=\$ac_optarg 1378 export $ac_envvar ;; 1379 1380 *) 1381 # FIXME: should be removed in autoconf 3.0. 1382 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1383 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1384 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1385 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1386 ;; 1387 1388 esac 1389done 1390 1391if test -n "$ac_prev"; then 1392 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1393 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1394 { (exit 1); exit 1; }; } 1395fi 1396 1397if test -n "$ac_unrecognized_opts"; then 1398 case $enable_option_checking in 1399 no) ;; 1400 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1401 { (exit 1); exit 1; }; } ;; 1402 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1403 esac 1404fi 1405 1406# Check all directory arguments for consistency. 1407for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1408 datadir sysconfdir sharedstatedir localstatedir includedir \ 1409 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1410 libdir localedir mandir 1411do 1412 eval ac_val=\$$ac_var 1413 # Remove trailing slashes. 1414 case $ac_val in 1415 */ ) 1416 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1417 eval $ac_var=\$ac_val;; 1418 esac 1419 # Be sure to have absolute directory names. 1420 case $ac_val in 1421 [\\/$]* | ?:[\\/]* ) continue;; 1422 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1423 esac 1424 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1425 { (exit 1); exit 1; }; } 1426done 1427 1428# There might be people who depend on the old broken behavior: `$host' 1429# used to hold the argument of --host etc. 1430# FIXME: To remove some day. 1431build=$build_alias 1432host=$host_alias 1433target=$target_alias 1434 1435# FIXME: To remove some day. 1436if test "x$host_alias" != x; then 1437 if test "x$build_alias" = x; then 1438 cross_compiling=maybe 1439 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1440 If a cross compiler is detected then cross compile mode will be used." >&2 1441 elif test "x$build_alias" != "x$host_alias"; then 1442 cross_compiling=yes 1443 fi 1444fi 1445 1446ac_tool_prefix= 1447test -n "$host_alias" && ac_tool_prefix=$host_alias- 1448 1449test "$silent" = yes && exec 6>/dev/null 1450 1451 1452ac_pwd=`pwd` && test -n "$ac_pwd" && 1453ac_ls_di=`ls -di .` && 1454ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1455 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1456 { (exit 1); exit 1; }; } 1457test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1458 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1459 { (exit 1); exit 1; }; } 1460 1461 1462# Find the source files, if location was not specified. 1463if test -z "$srcdir"; then 1464 ac_srcdir_defaulted=yes 1465 # Try the directory containing this script, then the parent directory. 1466 ac_confdir=`$as_dirname -- "$as_myself" || 1467$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1468 X"$as_myself" : 'X\(//\)[^/]' \| \ 1469 X"$as_myself" : 'X\(//\)$' \| \ 1470 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1471$as_echo X"$as_myself" | 1472 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1473 s//\1/ 1474 q 1475 } 1476 /^X\(\/\/\)[^/].*/{ 1477 s//\1/ 1478 q 1479 } 1480 /^X\(\/\/\)$/{ 1481 s//\1/ 1482 q 1483 } 1484 /^X\(\/\).*/{ 1485 s//\1/ 1486 q 1487 } 1488 s/.*/./; q'` 1489 srcdir=$ac_confdir 1490 if test ! -r "$srcdir/$ac_unique_file"; then 1491 srcdir=.. 1492 fi 1493else 1494 ac_srcdir_defaulted=no 1495fi 1496if test ! -r "$srcdir/$ac_unique_file"; then 1497 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1498 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1499 { (exit 1); exit 1; }; } 1500fi 1501ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1502ac_abs_confdir=`( 1503 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1504 { (exit 1); exit 1; }; } 1505 pwd)` 1506# When building in place, set srcdir=. 1507if test "$ac_abs_confdir" = "$ac_pwd"; then 1508 srcdir=. 1509fi 1510# Remove unnecessary trailing slashes from srcdir. 1511# Double slashes in file names in object file debugging info 1512# mess up M-x gdb in Emacs. 1513case $srcdir in 1514*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1515esac 1516for ac_var in $ac_precious_vars; do 1517 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1518 eval ac_env_${ac_var}_value=\$${ac_var} 1519 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1520 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1521done 1522 1523# 1524# Report the --help message. 1525# 1526if test "$ac_init_help" = "long"; then 1527 # Omit some internal or obsolete options to make the list less imposing. 1528 # This message is too long to be a string in the A/UX 3.1 sh. 1529 cat <<_ACEOF 1530\`configure' configures xf86-video-tga 1.2.1 to adapt to many kinds of systems. 1531 1532Usage: $0 [OPTION]... [VAR=VALUE]... 1533 1534To assign environment variables (e.g., CC, CFLAGS...), specify them as 1535VAR=VALUE. See below for descriptions of some of the useful variables. 1536 1537Defaults for the options are specified in brackets. 1538 1539Configuration: 1540 -h, --help display this help and exit 1541 --help=short display options specific to this package 1542 --help=recursive display the short help of all the included packages 1543 -V, --version display version information and exit 1544 -q, --quiet, --silent do not print \`checking...' messages 1545 --cache-file=FILE cache test results in FILE [disabled] 1546 -C, --config-cache alias for \`--cache-file=config.cache' 1547 -n, --no-create do not create output files 1548 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1549 1550Installation directories: 1551 --prefix=PREFIX install architecture-independent files in PREFIX 1552 [$ac_default_prefix] 1553 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1554 [PREFIX] 1555 1556By default, \`make install' will install all the files in 1557\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1558an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1559for instance \`--prefix=\$HOME'. 1560 1561For better control, use the options below. 1562 1563Fine tuning of the installation directories: 1564 --bindir=DIR user executables [EPREFIX/bin] 1565 --sbindir=DIR system admin executables [EPREFIX/sbin] 1566 --libexecdir=DIR program executables [EPREFIX/libexec] 1567 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1568 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1569 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1570 --libdir=DIR object code libraries [EPREFIX/lib] 1571 --includedir=DIR C header files [PREFIX/include] 1572 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1573 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1574 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1575 --infodir=DIR info documentation [DATAROOTDIR/info] 1576 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1577 --mandir=DIR man documentation [DATAROOTDIR/man] 1578 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-tga] 1579 --htmldir=DIR html documentation [DOCDIR] 1580 --dvidir=DIR dvi documentation [DOCDIR] 1581 --pdfdir=DIR pdf documentation [DOCDIR] 1582 --psdir=DIR ps documentation [DOCDIR] 1583_ACEOF 1584 1585 cat <<\_ACEOF 1586 1587Program names: 1588 --program-prefix=PREFIX prepend PREFIX to installed program names 1589 --program-suffix=SUFFIX append SUFFIX to installed program names 1590 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1591 1592System types: 1593 --build=BUILD configure for building on BUILD [guessed] 1594 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1595_ACEOF 1596fi 1597 1598if test -n "$ac_init_help"; then 1599 case $ac_init_help in 1600 short | recursive ) echo "Configuration of xf86-video-tga 1.2.1:";; 1601 esac 1602 cat <<\_ACEOF 1603 1604Optional Features: 1605 --disable-option-checking ignore unrecognized --enable/--with options 1606 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1607 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1608 --enable-maintainer-mode enable make rules and dependencies not useful 1609 (and sometimes confusing) to the casual installer 1610 --enable-static[=PKGS] build static libraries [default=no] 1611 --enable-shared[=PKGS] build shared libraries [default=yes] 1612 --enable-fast-install[=PKGS] 1613 optimize for fast installation [default=yes] 1614 --disable-dependency-tracking speeds up one-time build 1615 --enable-dependency-tracking do not reject slow dependency extractors 1616 --disable-libtool-lock avoid locking (might break parallel builds) 1617 1618Optional Packages: 1619 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1620 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1621 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1622 --with-pic try to use only PIC/non-PIC objects [default=use 1623 both] 1624 --with-tags[=TAGS] include additional configurations [automatic] 1625 --with-xorg-module-dir=DIR 1626 Default xorg module directory 1627 [default=$libdir/xorg/modules] 1628 --with-release-version=STRING 1629 Use release version string in package name 1630 1631Some influential environment variables: 1632 CC C compiler command 1633 CFLAGS C compiler flags 1634 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1635 nonstandard directory <lib dir> 1636 LIBS libraries to pass to the linker, e.g. -l<library> 1637 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1638 you have headers in a nonstandard directory <include dir> 1639 CPP C preprocessor 1640 CXX C++ compiler command 1641 CXXFLAGS C++ compiler flags 1642 CXXCPP C++ preprocessor 1643 F77 Fortran 77 compiler command 1644 FFLAGS Fortran 77 compiler flags 1645 PKG_CONFIG path to pkg-config utility 1646 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1647 XORG_LIBS linker flags for XORG, overriding pkg-config 1648 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config 1649 XEXT_LIBS linker flags for XEXT, overriding pkg-config 1650 PCIACCESS_CFLAGS 1651 C compiler flags for PCIACCESS, overriding pkg-config 1652 PCIACCESS_LIBS 1653 linker flags for PCIACCESS, overriding pkg-config 1654 1655Use these variables to override the choices made by `configure' or to help 1656it to find libraries and programs with nonstandard names/locations. 1657 1658Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1659_ACEOF 1660ac_status=$? 1661fi 1662 1663if test "$ac_init_help" = "recursive"; then 1664 # If there are subdirs, report their specific --help. 1665 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1666 test -d "$ac_dir" || 1667 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1668 continue 1669 ac_builddir=. 1670 1671case "$ac_dir" in 1672.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1673*) 1674 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1675 # A ".." for each directory in $ac_dir_suffix. 1676 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1677 case $ac_top_builddir_sub in 1678 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1679 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1680 esac ;; 1681esac 1682ac_abs_top_builddir=$ac_pwd 1683ac_abs_builddir=$ac_pwd$ac_dir_suffix 1684# for backward compatibility: 1685ac_top_builddir=$ac_top_build_prefix 1686 1687case $srcdir in 1688 .) # We are building in place. 1689 ac_srcdir=. 1690 ac_top_srcdir=$ac_top_builddir_sub 1691 ac_abs_top_srcdir=$ac_pwd ;; 1692 [\\/]* | ?:[\\/]* ) # Absolute name. 1693 ac_srcdir=$srcdir$ac_dir_suffix; 1694 ac_top_srcdir=$srcdir 1695 ac_abs_top_srcdir=$srcdir ;; 1696 *) # Relative name. 1697 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1698 ac_top_srcdir=$ac_top_build_prefix$srcdir 1699 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1700esac 1701ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1702 1703 cd "$ac_dir" || { ac_status=$?; continue; } 1704 # Check for guested configure. 1705 if test -f "$ac_srcdir/configure.gnu"; then 1706 echo && 1707 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1708 elif test -f "$ac_srcdir/configure"; then 1709 echo && 1710 $SHELL "$ac_srcdir/configure" --help=recursive 1711 else 1712 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1713 fi || ac_status=$? 1714 cd "$ac_pwd" || { ac_status=$?; break; } 1715 done 1716fi 1717 1718test -n "$ac_init_help" && exit $ac_status 1719if $ac_init_version; then 1720 cat <<\_ACEOF 1721xf86-video-tga configure 1.2.1 1722generated by GNU Autoconf 2.63 1723 1724Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 17252002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1726This configure script is free software; the Free Software Foundation 1727gives unlimited permission to copy, distribute and modify it. 1728_ACEOF 1729 exit 1730fi 1731cat >config.log <<_ACEOF 1732This file contains any messages produced by compilers while 1733running configure, to aid debugging if configure makes a mistake. 1734 1735It was created by xf86-video-tga $as_me 1.2.1, which was 1736generated by GNU Autoconf 2.63. Invocation command line was 1737 1738 $ $0 $@ 1739 1740_ACEOF 1741exec 5>>config.log 1742{ 1743cat <<_ASUNAME 1744## --------- ## 1745## Platform. ## 1746## --------- ## 1747 1748hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1749uname -m = `(uname -m) 2>/dev/null || echo unknown` 1750uname -r = `(uname -r) 2>/dev/null || echo unknown` 1751uname -s = `(uname -s) 2>/dev/null || echo unknown` 1752uname -v = `(uname -v) 2>/dev/null || echo unknown` 1753 1754/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1755/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1756 1757/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1758/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1759/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1760/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1761/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1762/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1763/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1764 1765_ASUNAME 1766 1767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1768for as_dir in $PATH 1769do 1770 IFS=$as_save_IFS 1771 test -z "$as_dir" && as_dir=. 1772 $as_echo "PATH: $as_dir" 1773done 1774IFS=$as_save_IFS 1775 1776} >&5 1777 1778cat >&5 <<_ACEOF 1779 1780 1781## ----------- ## 1782## Core tests. ## 1783## ----------- ## 1784 1785_ACEOF 1786 1787 1788# Keep a trace of the command line. 1789# Strip out --no-create and --no-recursion so they do not pile up. 1790# Strip out --silent because we don't want to record it for future runs. 1791# Also quote any args containing shell meta-characters. 1792# Make two passes to allow for proper duplicate-argument suppression. 1793ac_configure_args= 1794ac_configure_args0= 1795ac_configure_args1= 1796ac_must_keep_next=false 1797for ac_pass in 1 2 1798do 1799 for ac_arg 1800 do 1801 case $ac_arg in 1802 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1803 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1804 | -silent | --silent | --silen | --sile | --sil) 1805 continue ;; 1806 *\'*) 1807 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1808 esac 1809 case $ac_pass in 1810 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1811 2) 1812 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1813 if test $ac_must_keep_next = true; then 1814 ac_must_keep_next=false # Got value, back to normal. 1815 else 1816 case $ac_arg in 1817 *=* | --config-cache | -C | -disable-* | --disable-* \ 1818 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1819 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1820 | -with-* | --with-* | -without-* | --without-* | --x) 1821 case "$ac_configure_args0 " in 1822 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1823 esac 1824 ;; 1825 -* ) ac_must_keep_next=true ;; 1826 esac 1827 fi 1828 ac_configure_args="$ac_configure_args '$ac_arg'" 1829 ;; 1830 esac 1831 done 1832done 1833$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1834$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1835 1836# When interrupted or exit'd, cleanup temporary files, and complete 1837# config.log. We remove comments because anyway the quotes in there 1838# would cause problems or look ugly. 1839# WARNING: Use '\'' to represent an apostrophe within the trap. 1840# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1841trap 'exit_status=$? 1842 # Save into config.log some information that might help in debugging. 1843 { 1844 echo 1845 1846 cat <<\_ASBOX 1847## ---------------- ## 1848## Cache variables. ## 1849## ---------------- ## 1850_ASBOX 1851 echo 1852 # The following way of writing the cache mishandles newlines in values, 1853( 1854 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1855 eval ac_val=\$$ac_var 1856 case $ac_val in #( 1857 *${as_nl}*) 1858 case $ac_var in #( 1859 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1860$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1861 esac 1862 case $ac_var in #( 1863 _ | IFS | as_nl) ;; #( 1864 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1865 *) $as_unset $ac_var ;; 1866 esac ;; 1867 esac 1868 done 1869 (set) 2>&1 | 1870 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1871 *${as_nl}ac_space=\ *) 1872 sed -n \ 1873 "s/'\''/'\''\\\\'\'''\''/g; 1874 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1875 ;; #( 1876 *) 1877 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1878 ;; 1879 esac | 1880 sort 1881) 1882 echo 1883 1884 cat <<\_ASBOX 1885## ----------------- ## 1886## Output variables. ## 1887## ----------------- ## 1888_ASBOX 1889 echo 1890 for ac_var in $ac_subst_vars 1891 do 1892 eval ac_val=\$$ac_var 1893 case $ac_val in 1894 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1895 esac 1896 $as_echo "$ac_var='\''$ac_val'\''" 1897 done | sort 1898 echo 1899 1900 if test -n "$ac_subst_files"; then 1901 cat <<\_ASBOX 1902## ------------------- ## 1903## File substitutions. ## 1904## ------------------- ## 1905_ASBOX 1906 echo 1907 for ac_var in $ac_subst_files 1908 do 1909 eval ac_val=\$$ac_var 1910 case $ac_val in 1911 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1912 esac 1913 $as_echo "$ac_var='\''$ac_val'\''" 1914 done | sort 1915 echo 1916 fi 1917 1918 if test -s confdefs.h; then 1919 cat <<\_ASBOX 1920## ----------- ## 1921## confdefs.h. ## 1922## ----------- ## 1923_ASBOX 1924 echo 1925 cat confdefs.h 1926 echo 1927 fi 1928 test "$ac_signal" != 0 && 1929 $as_echo "$as_me: caught signal $ac_signal" 1930 $as_echo "$as_me: exit $exit_status" 1931 } >&5 1932 rm -f core *.core core.conftest.* && 1933 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1934 exit $exit_status 1935' 0 1936for ac_signal in 1 2 13 15; do 1937 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1938done 1939ac_signal=0 1940 1941# confdefs.h avoids OS command line length limits that DEFS can exceed. 1942rm -f -r conftest* confdefs.h 1943 1944# Predefined preprocessor variables. 1945 1946cat >>confdefs.h <<_ACEOF 1947#define PACKAGE_NAME "$PACKAGE_NAME" 1948_ACEOF 1949 1950 1951cat >>confdefs.h <<_ACEOF 1952#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1953_ACEOF 1954 1955 1956cat >>confdefs.h <<_ACEOF 1957#define PACKAGE_VERSION "$PACKAGE_VERSION" 1958_ACEOF 1959 1960 1961cat >>confdefs.h <<_ACEOF 1962#define PACKAGE_STRING "$PACKAGE_STRING" 1963_ACEOF 1964 1965 1966cat >>confdefs.h <<_ACEOF 1967#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1968_ACEOF 1969 1970 1971# Let the site file select an alternate cache file if it wants to. 1972# Prefer an explicitly selected file to automatically selected ones. 1973ac_site_file1=NONE 1974ac_site_file2=NONE 1975if test -n "$CONFIG_SITE"; then 1976 ac_site_file1=$CONFIG_SITE 1977elif test "x$prefix" != xNONE; then 1978 ac_site_file1=$prefix/share/config.site 1979 ac_site_file2=$prefix/etc/config.site 1980else 1981 ac_site_file1=$ac_default_prefix/share/config.site 1982 ac_site_file2=$ac_default_prefix/etc/config.site 1983fi 1984for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1985do 1986 test "x$ac_site_file" = xNONE && continue 1987 if test -r "$ac_site_file"; then 1988 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1989$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1990 sed 's/^/| /' "$ac_site_file" >&5 1991 . "$ac_site_file" 1992 fi 1993done 1994 1995if test -r "$cache_file"; then 1996 # Some versions of bash will fail to source /dev/null (special 1997 # files actually), so we avoid doing that. 1998 if test -f "$cache_file"; then 1999 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 2000$as_echo "$as_me: loading cache $cache_file" >&6;} 2001 case $cache_file in 2002 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2003 *) . "./$cache_file";; 2004 esac 2005 fi 2006else 2007 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 2008$as_echo "$as_me: creating cache $cache_file" >&6;} 2009 >$cache_file 2010fi 2011 2012# Check that the precious variables saved in the cache have kept the same 2013# value. 2014ac_cache_corrupted=false 2015for ac_var in $ac_precious_vars; do 2016 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2017 eval ac_new_set=\$ac_env_${ac_var}_set 2018 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2019 eval ac_new_val=\$ac_env_${ac_var}_value 2020 case $ac_old_set,$ac_new_set in 2021 set,) 2022 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2023$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2024 ac_cache_corrupted=: ;; 2025 ,set) 2026 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 2027$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2028 ac_cache_corrupted=: ;; 2029 ,);; 2030 *) 2031 if test "x$ac_old_val" != "x$ac_new_val"; then 2032 # differences in whitespace do not lead to failure. 2033 ac_old_val_w=`echo x $ac_old_val` 2034 ac_new_val_w=`echo x $ac_new_val` 2035 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2036 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 2037$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2038 ac_cache_corrupted=: 2039 else 2040 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2041$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2042 eval $ac_var=\$ac_old_val 2043 fi 2044 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 2045$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2046 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 2047$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2048 fi;; 2049 esac 2050 # Pass precious variables to config.status. 2051 if test "$ac_new_set" = set; then 2052 case $ac_new_val in 2053 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2054 *) ac_arg=$ac_var=$ac_new_val ;; 2055 esac 2056 case " $ac_configure_args " in 2057 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2058 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2059 esac 2060 fi 2061done 2062if $ac_cache_corrupted; then 2063 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2064$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2065 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2066$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2067 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2068$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2069 { (exit 1); exit 1; }; } 2070fi 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096ac_ext=c 2097ac_cpp='$CPP $CPPFLAGS' 2098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2100ac_compiler_gnu=$ac_cv_c_compiler_gnu 2101 2102 2103 2104 2105ac_config_headers="$ac_config_headers config.h" 2106 2107ac_aux_dir= 2108for ac_dir in . "$srcdir"/.; do 2109 if test -f "$ac_dir/install-sh"; then 2110 ac_aux_dir=$ac_dir 2111 ac_install_sh="$ac_aux_dir/install-sh -c" 2112 break 2113 elif test -f "$ac_dir/install.sh"; then 2114 ac_aux_dir=$ac_dir 2115 ac_install_sh="$ac_aux_dir/install.sh -c" 2116 break 2117 elif test -f "$ac_dir/shtool"; then 2118 ac_aux_dir=$ac_dir 2119 ac_install_sh="$ac_aux_dir/shtool install -c" 2120 break 2121 fi 2122done 2123if test -z "$ac_aux_dir"; then 2124 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5 2125$as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;} 2126 { (exit 1); exit 1; }; } 2127fi 2128 2129# These three variables are undocumented and unsupported, 2130# and are intended to be withdrawn in a future Autoconf release. 2131# They can cause serious problems if a builder's source tree is in a directory 2132# whose full name contains unusual characters. 2133ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2134ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2135ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2136 2137 2138 2139am__api_version='1.11' 2140 2141# Find a good install program. We prefer a C program (faster), 2142# so one script is as good as another. But avoid the broken or 2143# incompatible versions: 2144# SysV /etc/install, /usr/sbin/install 2145# SunOS /usr/etc/install 2146# IRIX /sbin/install 2147# AIX /bin/install 2148# AmigaOS /C/install, which installs bootblocks on floppy discs 2149# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2150# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2151# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2152# OS/2's system install, which has a completely different semantic 2153# ./install, which can be erroneously created by make from ./install.sh. 2154# Reject install programs that cannot install multiple files. 2155{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2156$as_echo_n "checking for a BSD-compatible install... " >&6; } 2157if test -z "$INSTALL"; then 2158if test "${ac_cv_path_install+set}" = set; then 2159 $as_echo_n "(cached) " >&6 2160else 2161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2162for as_dir in $PATH 2163do 2164 IFS=$as_save_IFS 2165 test -z "$as_dir" && as_dir=. 2166 # Account for people who put trailing slashes in PATH elements. 2167case $as_dir/ in 2168 ./ | .// | /cC/* | \ 2169 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2170 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2171 /usr/ucb/* ) ;; 2172 *) 2173 # OSF1 and SCO ODT 3.0 have their own names for install. 2174 # Don't use installbsd from OSF since it installs stuff as root 2175 # by default. 2176 for ac_prog in ginstall scoinst install; do 2177 for ac_exec_ext in '' $ac_executable_extensions; do 2178 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2179 if test $ac_prog = install && 2180 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2181 # AIX install. It has an incompatible calling convention. 2182 : 2183 elif test $ac_prog = install && 2184 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2185 # program-specific install script used by HP pwplus--don't use. 2186 : 2187 else 2188 rm -rf conftest.one conftest.two conftest.dir 2189 echo one > conftest.one 2190 echo two > conftest.two 2191 mkdir conftest.dir 2192 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2193 test -s conftest.one && test -s conftest.two && 2194 test -s conftest.dir/conftest.one && 2195 test -s conftest.dir/conftest.two 2196 then 2197 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2198 break 3 2199 fi 2200 fi 2201 fi 2202 done 2203 done 2204 ;; 2205esac 2206 2207done 2208IFS=$as_save_IFS 2209 2210rm -rf conftest.one conftest.two conftest.dir 2211 2212fi 2213 if test "${ac_cv_path_install+set}" = set; then 2214 INSTALL=$ac_cv_path_install 2215 else 2216 # As a last resort, use the slow shell script. Don't cache a 2217 # value for INSTALL within a source directory, because that will 2218 # break other packages using the cache if that directory is 2219 # removed, or if the value is a relative name. 2220 INSTALL=$ac_install_sh 2221 fi 2222fi 2223{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2224$as_echo "$INSTALL" >&6; } 2225 2226# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2227# It thinks the first close brace ends the variable substitution. 2228test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2229 2230test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2231 2232test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2233 2234{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2235$as_echo_n "checking whether build environment is sane... " >&6; } 2236# Just in case 2237sleep 1 2238echo timestamp > conftest.file 2239# Reject unsafe characters in $srcdir or the absolute working directory 2240# name. Accept space and tab only in the latter. 2241am_lf=' 2242' 2243case `pwd` in 2244 *[\\\"\#\$\&\'\`$am_lf]*) 2245 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5 2246$as_echo "$as_me: error: unsafe absolute working directory name" >&2;} 2247 { (exit 1); exit 1; }; };; 2248esac 2249case $srcdir in 2250 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2251 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5 2252$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;} 2253 { (exit 1); exit 1; }; };; 2254esac 2255 2256# Do `set' in a subshell so we don't clobber the current shell's 2257# arguments. Must try -L first in case configure is actually a 2258# symlink; some systems play weird games with the mod time of symlinks 2259# (eg FreeBSD returns the mod time of the symlink's containing 2260# directory). 2261if ( 2262 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2263 if test "$*" = "X"; then 2264 # -L didn't work. 2265 set X `ls -t "$srcdir/configure" conftest.file` 2266 fi 2267 rm -f conftest.file 2268 if test "$*" != "X $srcdir/configure conftest.file" \ 2269 && test "$*" != "X conftest.file $srcdir/configure"; then 2270 2271 # If neither matched, then we have a broken ls. This can happen 2272 # if, for instance, CONFIG_SHELL is bash and it inherits a 2273 # broken ls alias from the environment. This has actually 2274 # happened. Such a system could not be considered "sane". 2275 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2276alias in your environment" >&5 2277$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2278alias in your environment" >&2;} 2279 { (exit 1); exit 1; }; } 2280 fi 2281 2282 test "$2" = conftest.file 2283 ) 2284then 2285 # Ok. 2286 : 2287else 2288 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2289Check your system clock" >&5 2290$as_echo "$as_me: error: newly created file is older than distributed files! 2291Check your system clock" >&2;} 2292 { (exit 1); exit 1; }; } 2293fi 2294{ $as_echo "$as_me:$LINENO: result: yes" >&5 2295$as_echo "yes" >&6; } 2296test "$program_prefix" != NONE && 2297 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2298# Use a double $ so make ignores it. 2299test "$program_suffix" != NONE && 2300 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2301# Double any \ or $. 2302# By default was `s,x,x', remove it if useless. 2303ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2304program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2305 2306# expand $ac_aux_dir to an absolute path 2307am_aux_dir=`cd $ac_aux_dir && pwd` 2308 2309if test x"${MISSING+set}" != xset; then 2310 case $am_aux_dir in 2311 *\ * | *\ *) 2312 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2313 *) 2314 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2315 esac 2316fi 2317# Use eval to expand $SHELL 2318if eval "$MISSING --run true"; then 2319 am_missing_run="$MISSING --run " 2320else 2321 am_missing_run= 2322 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2323$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2324fi 2325 2326if test x"${install_sh}" != xset; then 2327 case $am_aux_dir in 2328 *\ * | *\ *) 2329 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2330 *) 2331 install_sh="\${SHELL} $am_aux_dir/install-sh" 2332 esac 2333fi 2334 2335# Installed binaries are usually stripped using `strip' when the user 2336# run `make install-strip'. However `strip' might not be the right 2337# tool to use in cross-compilation environments, therefore Automake 2338# will honor the `STRIP' environment variable to overrule this program. 2339if test "$cross_compiling" != no; then 2340 if test -n "$ac_tool_prefix"; then 2341 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2342set dummy ${ac_tool_prefix}strip; ac_word=$2 2343{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2344$as_echo_n "checking for $ac_word... " >&6; } 2345if test "${ac_cv_prog_STRIP+set}" = set; then 2346 $as_echo_n "(cached) " >&6 2347else 2348 if test -n "$STRIP"; then 2349 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2350else 2351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2352for as_dir in $PATH 2353do 2354 IFS=$as_save_IFS 2355 test -z "$as_dir" && as_dir=. 2356 for ac_exec_ext in '' $ac_executable_extensions; do 2357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2358 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2359 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2360 break 2 2361 fi 2362done 2363done 2364IFS=$as_save_IFS 2365 2366fi 2367fi 2368STRIP=$ac_cv_prog_STRIP 2369if test -n "$STRIP"; then 2370 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2371$as_echo "$STRIP" >&6; } 2372else 2373 { $as_echo "$as_me:$LINENO: result: no" >&5 2374$as_echo "no" >&6; } 2375fi 2376 2377 2378fi 2379if test -z "$ac_cv_prog_STRIP"; then 2380 ac_ct_STRIP=$STRIP 2381 # Extract the first word of "strip", so it can be a program name with args. 2382set dummy strip; ac_word=$2 2383{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2384$as_echo_n "checking for $ac_word... " >&6; } 2385if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2386 $as_echo_n "(cached) " >&6 2387else 2388 if test -n "$ac_ct_STRIP"; then 2389 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2390else 2391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2392for as_dir in $PATH 2393do 2394 IFS=$as_save_IFS 2395 test -z "$as_dir" && as_dir=. 2396 for ac_exec_ext in '' $ac_executable_extensions; do 2397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2398 ac_cv_prog_ac_ct_STRIP="strip" 2399 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2400 break 2 2401 fi 2402done 2403done 2404IFS=$as_save_IFS 2405 2406fi 2407fi 2408ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2409if test -n "$ac_ct_STRIP"; then 2410 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2411$as_echo "$ac_ct_STRIP" >&6; } 2412else 2413 { $as_echo "$as_me:$LINENO: result: no" >&5 2414$as_echo "no" >&6; } 2415fi 2416 2417 if test "x$ac_ct_STRIP" = x; then 2418 STRIP=":" 2419 else 2420 case $cross_compiling:$ac_tool_warned in 2421yes:) 2422{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2423$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2424ac_tool_warned=yes ;; 2425esac 2426 STRIP=$ac_ct_STRIP 2427 fi 2428else 2429 STRIP="$ac_cv_prog_STRIP" 2430fi 2431 2432fi 2433INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2434 2435{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2436$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2437if test -z "$MKDIR_P"; then 2438 if test "${ac_cv_path_mkdir+set}" = set; then 2439 $as_echo_n "(cached) " >&6 2440else 2441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2442for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2443do 2444 IFS=$as_save_IFS 2445 test -z "$as_dir" && as_dir=. 2446 for ac_prog in mkdir gmkdir; do 2447 for ac_exec_ext in '' $ac_executable_extensions; do 2448 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2449 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2450 'mkdir (GNU coreutils) '* | \ 2451 'mkdir (coreutils) '* | \ 2452 'mkdir (fileutils) '4.1*) 2453 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2454 break 3;; 2455 esac 2456 done 2457 done 2458done 2459IFS=$as_save_IFS 2460 2461fi 2462 2463 if test "${ac_cv_path_mkdir+set}" = set; then 2464 MKDIR_P="$ac_cv_path_mkdir -p" 2465 else 2466 # As a last resort, use the slow shell script. Don't cache a 2467 # value for MKDIR_P within a source directory, because that will 2468 # break other packages using the cache if that directory is 2469 # removed, or if the value is a relative name. 2470 test -d ./--version && rmdir ./--version 2471 MKDIR_P="$ac_install_sh -d" 2472 fi 2473fi 2474{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2475$as_echo "$MKDIR_P" >&6; } 2476 2477mkdir_p="$MKDIR_P" 2478case $mkdir_p in 2479 [\\/$]* | ?:[\\/]*) ;; 2480 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2481esac 2482 2483for ac_prog in gawk mawk nawk awk 2484do 2485 # Extract the first word of "$ac_prog", so it can be a program name with args. 2486set dummy $ac_prog; ac_word=$2 2487{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2488$as_echo_n "checking for $ac_word... " >&6; } 2489if test "${ac_cv_prog_AWK+set}" = set; then 2490 $as_echo_n "(cached) " >&6 2491else 2492 if test -n "$AWK"; then 2493 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2494else 2495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2496for as_dir in $PATH 2497do 2498 IFS=$as_save_IFS 2499 test -z "$as_dir" && as_dir=. 2500 for ac_exec_ext in '' $ac_executable_extensions; do 2501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2502 ac_cv_prog_AWK="$ac_prog" 2503 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2504 break 2 2505 fi 2506done 2507done 2508IFS=$as_save_IFS 2509 2510fi 2511fi 2512AWK=$ac_cv_prog_AWK 2513if test -n "$AWK"; then 2514 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2515$as_echo "$AWK" >&6; } 2516else 2517 { $as_echo "$as_me:$LINENO: result: no" >&5 2518$as_echo "no" >&6; } 2519fi 2520 2521 2522 test -n "$AWK" && break 2523done 2524 2525{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2526$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2527set x ${MAKE-make} 2528ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2529if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2530 $as_echo_n "(cached) " >&6 2531else 2532 cat >conftest.make <<\_ACEOF 2533SHELL = /bin/sh 2534all: 2535 @echo '@@@%%%=$(MAKE)=@@@%%%' 2536_ACEOF 2537# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2538case `${MAKE-make} -f conftest.make 2>/dev/null` in 2539 *@@@%%%=?*=@@@%%%*) 2540 eval ac_cv_prog_make_${ac_make}_set=yes;; 2541 *) 2542 eval ac_cv_prog_make_${ac_make}_set=no;; 2543esac 2544rm -f conftest.make 2545fi 2546if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2547 { $as_echo "$as_me:$LINENO: result: yes" >&5 2548$as_echo "yes" >&6; } 2549 SET_MAKE= 2550else 2551 { $as_echo "$as_me:$LINENO: result: no" >&5 2552$as_echo "no" >&6; } 2553 SET_MAKE="MAKE=${MAKE-make}" 2554fi 2555 2556rm -rf .tst 2>/dev/null 2557mkdir .tst 2>/dev/null 2558if test -d .tst; then 2559 am__leading_dot=. 2560else 2561 am__leading_dot=_ 2562fi 2563rmdir .tst 2>/dev/null 2564 2565if test "`cd $srcdir && pwd`" != "`pwd`"; then 2566 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2567 # is not polluted with repeated "-I." 2568 am__isrc=' -I$(srcdir)' 2569 # test to see if srcdir already configured 2570 if test -f $srcdir/config.status; then 2571 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2572$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2573 { (exit 1); exit 1; }; } 2574 fi 2575fi 2576 2577# test whether we have cygpath 2578if test -z "$CYGPATH_W"; then 2579 if (cygpath --version) >/dev/null 2>/dev/null; then 2580 CYGPATH_W='cygpath -w' 2581 else 2582 CYGPATH_W=echo 2583 fi 2584fi 2585 2586 2587# Define the identity of the package. 2588 PACKAGE='xf86-video-tga' 2589 VERSION='1.2.1' 2590 2591 2592cat >>confdefs.h <<_ACEOF 2593#define PACKAGE "$PACKAGE" 2594_ACEOF 2595 2596 2597cat >>confdefs.h <<_ACEOF 2598#define VERSION "$VERSION" 2599_ACEOF 2600 2601# Some tools Automake needs. 2602 2603ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2604 2605 2606AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2607 2608 2609AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2610 2611 2612AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2613 2614 2615MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2616 2617# We need awk for the "check" target. The system "awk" is bad on 2618# some platforms. 2619# Always define AMTAR for backward compatibility. 2620 2621AMTAR=${AMTAR-"${am_missing_run}tar"} 2622 2623am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2624 2625 2626 2627 2628 2629 2630 2631{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2632$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2633 # Check whether --enable-maintainer-mode was given. 2634if test "${enable_maintainer_mode+set}" = set; then 2635 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2636else 2637 USE_MAINTAINER_MODE=no 2638fi 2639 2640 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2641$as_echo "$USE_MAINTAINER_MODE" >&6; } 2642 if test $USE_MAINTAINER_MODE = yes; then 2643 MAINTAINER_MODE_TRUE= 2644 MAINTAINER_MODE_FALSE='#' 2645else 2646 MAINTAINER_MODE_TRUE='#' 2647 MAINTAINER_MODE_FALSE= 2648fi 2649 2650 MAINT=$MAINTAINER_MODE_TRUE 2651 2652 2653 2654# Checks for programs. 2655# Check whether --enable-static was given. 2656if test "${enable_static+set}" = set; then 2657 enableval=$enable_static; p=${PACKAGE-default} 2658 case $enableval in 2659 yes) enable_static=yes ;; 2660 no) enable_static=no ;; 2661 *) 2662 enable_static=no 2663 # Look at the argument we got. We use all the common list separators. 2664 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2665 for pkg in $enableval; do 2666 IFS="$lt_save_ifs" 2667 if test "X$pkg" = "X$p"; then 2668 enable_static=yes 2669 fi 2670 done 2671 IFS="$lt_save_ifs" 2672 ;; 2673 esac 2674else 2675 enable_static=no 2676fi 2677 2678 2679 2680# Check whether --enable-shared was given. 2681if test "${enable_shared+set}" = set; then 2682 enableval=$enable_shared; p=${PACKAGE-default} 2683 case $enableval in 2684 yes) enable_shared=yes ;; 2685 no) enable_shared=no ;; 2686 *) 2687 enable_shared=no 2688 # Look at the argument we got. We use all the common list separators. 2689 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2690 for pkg in $enableval; do 2691 IFS="$lt_save_ifs" 2692 if test "X$pkg" = "X$p"; then 2693 enable_shared=yes 2694 fi 2695 done 2696 IFS="$lt_save_ifs" 2697 ;; 2698 esac 2699else 2700 enable_shared=yes 2701fi 2702 2703 2704# Check whether --enable-fast-install was given. 2705if test "${enable_fast_install+set}" = set; then 2706 enableval=$enable_fast_install; p=${PACKAGE-default} 2707 case $enableval in 2708 yes) enable_fast_install=yes ;; 2709 no) enable_fast_install=no ;; 2710 *) 2711 enable_fast_install=no 2712 # Look at the argument we got. We use all the common list separators. 2713 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2714 for pkg in $enableval; do 2715 IFS="$lt_save_ifs" 2716 if test "X$pkg" = "X$p"; then 2717 enable_fast_install=yes 2718 fi 2719 done 2720 IFS="$lt_save_ifs" 2721 ;; 2722 esac 2723else 2724 enable_fast_install=yes 2725fi 2726 2727 2728# Make sure we can run config.sub. 2729$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2730 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2731$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2732 { (exit 1); exit 1; }; } 2733 2734{ $as_echo "$as_me:$LINENO: checking build system type" >&5 2735$as_echo_n "checking build system type... " >&6; } 2736if test "${ac_cv_build+set}" = set; then 2737 $as_echo_n "(cached) " >&6 2738else 2739 ac_build_alias=$build_alias 2740test "x$ac_build_alias" = x && 2741 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2742test "x$ac_build_alias" = x && 2743 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2744$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2745 { (exit 1); exit 1; }; } 2746ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2747 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2748$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2749 { (exit 1); exit 1; }; } 2750 2751fi 2752{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2753$as_echo "$ac_cv_build" >&6; } 2754case $ac_cv_build in 2755*-*-*) ;; 2756*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2757$as_echo "$as_me: error: invalid value of canonical build" >&2;} 2758 { (exit 1); exit 1; }; };; 2759esac 2760build=$ac_cv_build 2761ac_save_IFS=$IFS; IFS='-' 2762set x $ac_cv_build 2763shift 2764build_cpu=$1 2765build_vendor=$2 2766shift; shift 2767# Remember, the first character of IFS is used to create $*, 2768# except with old shells: 2769build_os=$* 2770IFS=$ac_save_IFS 2771case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2772 2773 2774{ $as_echo "$as_me:$LINENO: checking host system type" >&5 2775$as_echo_n "checking host system type... " >&6; } 2776if test "${ac_cv_host+set}" = set; then 2777 $as_echo_n "(cached) " >&6 2778else 2779 if test "x$host_alias" = x; then 2780 ac_cv_host=$ac_cv_build 2781else 2782 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2783 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2784$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2785 { (exit 1); exit 1; }; } 2786fi 2787 2788fi 2789{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2790$as_echo "$ac_cv_host" >&6; } 2791case $ac_cv_host in 2792*-*-*) ;; 2793*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2794$as_echo "$as_me: error: invalid value of canonical host" >&2;} 2795 { (exit 1); exit 1; }; };; 2796esac 2797host=$ac_cv_host 2798ac_save_IFS=$IFS; IFS='-' 2799set x $ac_cv_host 2800shift 2801host_cpu=$1 2802host_vendor=$2 2803shift; shift 2804# Remember, the first character of IFS is used to create $*, 2805# except with old shells: 2806host_os=$* 2807IFS=$ac_save_IFS 2808case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2809 2810 2811DEPDIR="${am__leading_dot}deps" 2812 2813ac_config_commands="$ac_config_commands depfiles" 2814 2815 2816am_make=${MAKE-make} 2817cat > confinc << 'END' 2818am__doit: 2819 @echo this is the am__doit target 2820.PHONY: am__doit 2821END 2822# If we don't find an include directive, just comment out the code. 2823{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2824$as_echo_n "checking for style of include used by $am_make... " >&6; } 2825am__include="#" 2826am__quote= 2827_am_result=none 2828# First try GNU make style include. 2829echo "include confinc" > confmf 2830# Ignore all kinds of additional output from `make'. 2831case `$am_make -s -f confmf 2> /dev/null` in #( 2832*the\ am__doit\ target*) 2833 am__include=include 2834 am__quote= 2835 _am_result=GNU 2836 ;; 2837esac 2838# Now try BSD make style include. 2839if test "$am__include" = "#"; then 2840 echo '.include "confinc"' > confmf 2841 case `$am_make -s -f confmf 2> /dev/null` in #( 2842 *the\ am__doit\ target*) 2843 am__include=.include 2844 am__quote="\"" 2845 _am_result=BSD 2846 ;; 2847 esac 2848fi 2849 2850 2851{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 2852$as_echo "$_am_result" >&6; } 2853rm -f confinc confmf 2854 2855# Check whether --enable-dependency-tracking was given. 2856if test "${enable_dependency_tracking+set}" = set; then 2857 enableval=$enable_dependency_tracking; 2858fi 2859 2860if test "x$enable_dependency_tracking" != xno; then 2861 am_depcomp="$ac_aux_dir/depcomp" 2862 AMDEPBACKSLASH='\' 2863fi 2864 if test "x$enable_dependency_tracking" != xno; then 2865 AMDEP_TRUE= 2866 AMDEP_FALSE='#' 2867else 2868 AMDEP_TRUE='#' 2869 AMDEP_FALSE= 2870fi 2871 2872 2873ac_ext=c 2874ac_cpp='$CPP $CPPFLAGS' 2875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2877ac_compiler_gnu=$ac_cv_c_compiler_gnu 2878if test -n "$ac_tool_prefix"; then 2879 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2880set dummy ${ac_tool_prefix}gcc; ac_word=$2 2881{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2882$as_echo_n "checking for $ac_word... " >&6; } 2883if test "${ac_cv_prog_CC+set}" = set; then 2884 $as_echo_n "(cached) " >&6 2885else 2886 if test -n "$CC"; then 2887 ac_cv_prog_CC="$CC" # Let the user override the test. 2888else 2889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2890for as_dir in $PATH 2891do 2892 IFS=$as_save_IFS 2893 test -z "$as_dir" && as_dir=. 2894 for ac_exec_ext in '' $ac_executable_extensions; do 2895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2896 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2897 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2898 break 2 2899 fi 2900done 2901done 2902IFS=$as_save_IFS 2903 2904fi 2905fi 2906CC=$ac_cv_prog_CC 2907if test -n "$CC"; then 2908 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2909$as_echo "$CC" >&6; } 2910else 2911 { $as_echo "$as_me:$LINENO: result: no" >&5 2912$as_echo "no" >&6; } 2913fi 2914 2915 2916fi 2917if test -z "$ac_cv_prog_CC"; then 2918 ac_ct_CC=$CC 2919 # Extract the first word of "gcc", so it can be a program name with args. 2920set dummy gcc; ac_word=$2 2921{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2922$as_echo_n "checking for $ac_word... " >&6; } 2923if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2924 $as_echo_n "(cached) " >&6 2925else 2926 if test -n "$ac_ct_CC"; then 2927 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2928else 2929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2930for as_dir in $PATH 2931do 2932 IFS=$as_save_IFS 2933 test -z "$as_dir" && as_dir=. 2934 for ac_exec_ext in '' $ac_executable_extensions; do 2935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2936 ac_cv_prog_ac_ct_CC="gcc" 2937 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2938 break 2 2939 fi 2940done 2941done 2942IFS=$as_save_IFS 2943 2944fi 2945fi 2946ac_ct_CC=$ac_cv_prog_ac_ct_CC 2947if test -n "$ac_ct_CC"; then 2948 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2949$as_echo "$ac_ct_CC" >&6; } 2950else 2951 { $as_echo "$as_me:$LINENO: result: no" >&5 2952$as_echo "no" >&6; } 2953fi 2954 2955 if test "x$ac_ct_CC" = x; then 2956 CC="" 2957 else 2958 case $cross_compiling:$ac_tool_warned in 2959yes:) 2960{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2961$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2962ac_tool_warned=yes ;; 2963esac 2964 CC=$ac_ct_CC 2965 fi 2966else 2967 CC="$ac_cv_prog_CC" 2968fi 2969 2970if test -z "$CC"; then 2971 if test -n "$ac_tool_prefix"; then 2972 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2973set dummy ${ac_tool_prefix}cc; ac_word=$2 2974{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2975$as_echo_n "checking for $ac_word... " >&6; } 2976if test "${ac_cv_prog_CC+set}" = set; then 2977 $as_echo_n "(cached) " >&6 2978else 2979 if test -n "$CC"; then 2980 ac_cv_prog_CC="$CC" # Let the user override the test. 2981else 2982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2983for as_dir in $PATH 2984do 2985 IFS=$as_save_IFS 2986 test -z "$as_dir" && as_dir=. 2987 for ac_exec_ext in '' $ac_executable_extensions; do 2988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2989 ac_cv_prog_CC="${ac_tool_prefix}cc" 2990 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2991 break 2 2992 fi 2993done 2994done 2995IFS=$as_save_IFS 2996 2997fi 2998fi 2999CC=$ac_cv_prog_CC 3000if test -n "$CC"; then 3001 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3002$as_echo "$CC" >&6; } 3003else 3004 { $as_echo "$as_me:$LINENO: result: no" >&5 3005$as_echo "no" >&6; } 3006fi 3007 3008 3009 fi 3010fi 3011if test -z "$CC"; then 3012 # Extract the first word of "cc", so it can be a program name with args. 3013set dummy cc; ac_word=$2 3014{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3015$as_echo_n "checking for $ac_word... " >&6; } 3016if test "${ac_cv_prog_CC+set}" = set; then 3017 $as_echo_n "(cached) " >&6 3018else 3019 if test -n "$CC"; then 3020 ac_cv_prog_CC="$CC" # Let the user override the test. 3021else 3022 ac_prog_rejected=no 3023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3024for as_dir in $PATH 3025do 3026 IFS=$as_save_IFS 3027 test -z "$as_dir" && as_dir=. 3028 for ac_exec_ext in '' $ac_executable_extensions; do 3029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3030 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3031 ac_prog_rejected=yes 3032 continue 3033 fi 3034 ac_cv_prog_CC="cc" 3035 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3036 break 2 3037 fi 3038done 3039done 3040IFS=$as_save_IFS 3041 3042if test $ac_prog_rejected = yes; then 3043 # We found a bogon in the path, so make sure we never use it. 3044 set dummy $ac_cv_prog_CC 3045 shift 3046 if test $# != 0; then 3047 # We chose a different compiler from the bogus one. 3048 # However, it has the same basename, so the bogon will be chosen 3049 # first if we set CC to just the basename; use the full file name. 3050 shift 3051 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3052 fi 3053fi 3054fi 3055fi 3056CC=$ac_cv_prog_CC 3057if test -n "$CC"; then 3058 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3059$as_echo "$CC" >&6; } 3060else 3061 { $as_echo "$as_me:$LINENO: result: no" >&5 3062$as_echo "no" >&6; } 3063fi 3064 3065 3066fi 3067if test -z "$CC"; then 3068 if test -n "$ac_tool_prefix"; then 3069 for ac_prog in cl.exe 3070 do 3071 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3072set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3073{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3074$as_echo_n "checking for $ac_word... " >&6; } 3075if test "${ac_cv_prog_CC+set}" = set; then 3076 $as_echo_n "(cached) " >&6 3077else 3078 if test -n "$CC"; then 3079 ac_cv_prog_CC="$CC" # Let the user override the test. 3080else 3081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3082for as_dir in $PATH 3083do 3084 IFS=$as_save_IFS 3085 test -z "$as_dir" && as_dir=. 3086 for ac_exec_ext in '' $ac_executable_extensions; do 3087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3088 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3089 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3090 break 2 3091 fi 3092done 3093done 3094IFS=$as_save_IFS 3095 3096fi 3097fi 3098CC=$ac_cv_prog_CC 3099if test -n "$CC"; then 3100 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3101$as_echo "$CC" >&6; } 3102else 3103 { $as_echo "$as_me:$LINENO: result: no" >&5 3104$as_echo "no" >&6; } 3105fi 3106 3107 3108 test -n "$CC" && break 3109 done 3110fi 3111if test -z "$CC"; then 3112 ac_ct_CC=$CC 3113 for ac_prog in cl.exe 3114do 3115 # Extract the first word of "$ac_prog", so it can be a program name with args. 3116set dummy $ac_prog; ac_word=$2 3117{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3118$as_echo_n "checking for $ac_word... " >&6; } 3119if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3120 $as_echo_n "(cached) " >&6 3121else 3122 if test -n "$ac_ct_CC"; then 3123 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3124else 3125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3126for as_dir in $PATH 3127do 3128 IFS=$as_save_IFS 3129 test -z "$as_dir" && as_dir=. 3130 for ac_exec_ext in '' $ac_executable_extensions; do 3131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3132 ac_cv_prog_ac_ct_CC="$ac_prog" 3133 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3134 break 2 3135 fi 3136done 3137done 3138IFS=$as_save_IFS 3139 3140fi 3141fi 3142ac_ct_CC=$ac_cv_prog_ac_ct_CC 3143if test -n "$ac_ct_CC"; then 3144 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3145$as_echo "$ac_ct_CC" >&6; } 3146else 3147 { $as_echo "$as_me:$LINENO: result: no" >&5 3148$as_echo "no" >&6; } 3149fi 3150 3151 3152 test -n "$ac_ct_CC" && break 3153done 3154 3155 if test "x$ac_ct_CC" = x; then 3156 CC="" 3157 else 3158 case $cross_compiling:$ac_tool_warned in 3159yes:) 3160{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 3161$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3162ac_tool_warned=yes ;; 3163esac 3164 CC=$ac_ct_CC 3165 fi 3166fi 3167 3168fi 3169 3170 3171test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3172$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3173{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3174See \`config.log' for more details." >&5 3175$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 3176See \`config.log' for more details." >&2;} 3177 { (exit 1); exit 1; }; }; } 3178 3179# Provide some information about the compiler. 3180$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 3181set X $ac_compile 3182ac_compiler=$2 3183{ (ac_try="$ac_compiler --version >&5" 3184case "(($ac_try" in 3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3186 *) ac_try_echo=$ac_try;; 3187esac 3188eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3189$as_echo "$ac_try_echo") >&5 3190 (eval "$ac_compiler --version >&5") 2>&5 3191 ac_status=$? 3192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3193 (exit $ac_status); } 3194{ (ac_try="$ac_compiler -v >&5" 3195case "(($ac_try" in 3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3197 *) ac_try_echo=$ac_try;; 3198esac 3199eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3200$as_echo "$ac_try_echo") >&5 3201 (eval "$ac_compiler -v >&5") 2>&5 3202 ac_status=$? 3203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3204 (exit $ac_status); } 3205{ (ac_try="$ac_compiler -V >&5" 3206case "(($ac_try" in 3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3208 *) ac_try_echo=$ac_try;; 3209esac 3210eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3211$as_echo "$ac_try_echo") >&5 3212 (eval "$ac_compiler -V >&5") 2>&5 3213 ac_status=$? 3214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3215 (exit $ac_status); } 3216 3217cat >conftest.$ac_ext <<_ACEOF 3218/* confdefs.h. */ 3219_ACEOF 3220cat confdefs.h >>conftest.$ac_ext 3221cat >>conftest.$ac_ext <<_ACEOF 3222/* end confdefs.h. */ 3223 3224int 3225main () 3226{ 3227 3228 ; 3229 return 0; 3230} 3231_ACEOF 3232ac_clean_files_save=$ac_clean_files 3233ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3234# Try to create an executable without -o first, disregard a.out. 3235# It will help us diagnose broken compilers, and finding out an intuition 3236# of exeext. 3237{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3238$as_echo_n "checking for C compiler default output file name... " >&6; } 3239ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3240 3241# The possible output files: 3242ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3243 3244ac_rmfiles= 3245for ac_file in $ac_files 3246do 3247 case $ac_file in 3248 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3249 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3250 esac 3251done 3252rm -f $ac_rmfiles 3253 3254if { (ac_try="$ac_link_default" 3255case "(($ac_try" in 3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3257 *) ac_try_echo=$ac_try;; 3258esac 3259eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3260$as_echo "$ac_try_echo") >&5 3261 (eval "$ac_link_default") 2>&5 3262 ac_status=$? 3263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3264 (exit $ac_status); }; then 3265 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3266# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3267# in a Makefile. We should not override ac_cv_exeext if it was cached, 3268# so that the user can short-circuit this test for compilers unknown to 3269# Autoconf. 3270for ac_file in $ac_files '' 3271do 3272 test -f "$ac_file" || continue 3273 case $ac_file in 3274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3275 ;; 3276 [ab].out ) 3277 # We found the default executable, but exeext='' is most 3278 # certainly right. 3279 break;; 3280 *.* ) 3281 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3282 then :; else 3283 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3284 fi 3285 # We set ac_cv_exeext here because the later test for it is not 3286 # safe: cross compilers may not add the suffix if given an `-o' 3287 # argument, so we may need to know it at that point already. 3288 # Even if this section looks crufty: it has the advantage of 3289 # actually working. 3290 break;; 3291 * ) 3292 break;; 3293 esac 3294done 3295test "$ac_cv_exeext" = no && ac_cv_exeext= 3296 3297else 3298 ac_file='' 3299fi 3300 3301{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 3302$as_echo "$ac_file" >&6; } 3303if test -z "$ac_file"; then 3304 $as_echo "$as_me: failed program was:" >&5 3305sed 's/^/| /' conftest.$ac_ext >&5 3306 3307{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3308$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3309{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 3310See \`config.log' for more details." >&5 3311$as_echo "$as_me: error: C compiler cannot create executables 3312See \`config.log' for more details." >&2;} 3313 { (exit 77); exit 77; }; }; } 3314fi 3315 3316ac_exeext=$ac_cv_exeext 3317 3318# Check that the compiler produces executables we can run. If not, either 3319# the compiler is broken, or we cross compile. 3320{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3321$as_echo_n "checking whether the C compiler works... " >&6; } 3322# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3323# If not cross compiling, check that we can run a simple program. 3324if test "$cross_compiling" != yes; then 3325 if { ac_try='./$ac_file' 3326 { (case "(($ac_try" in 3327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3328 *) ac_try_echo=$ac_try;; 3329esac 3330eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3331$as_echo "$ac_try_echo") >&5 3332 (eval "$ac_try") 2>&5 3333 ac_status=$? 3334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3335 (exit $ac_status); }; }; then 3336 cross_compiling=no 3337 else 3338 if test "$cross_compiling" = maybe; then 3339 cross_compiling=yes 3340 else 3341 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3342$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3343{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 3344If you meant to cross compile, use \`--host'. 3345See \`config.log' for more details." >&5 3346$as_echo "$as_me: error: cannot run C compiled programs. 3347If you meant to cross compile, use \`--host'. 3348See \`config.log' for more details." >&2;} 3349 { (exit 1); exit 1; }; }; } 3350 fi 3351 fi 3352fi 3353{ $as_echo "$as_me:$LINENO: result: yes" >&5 3354$as_echo "yes" >&6; } 3355 3356rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3357ac_clean_files=$ac_clean_files_save 3358# Check that the compiler produces executables we can run. If not, either 3359# the compiler is broken, or we cross compile. 3360{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3361$as_echo_n "checking whether we are cross compiling... " >&6; } 3362{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 3363$as_echo "$cross_compiling" >&6; } 3364 3365{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 3366$as_echo_n "checking for suffix of executables... " >&6; } 3367if { (ac_try="$ac_link" 3368case "(($ac_try" in 3369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3370 *) ac_try_echo=$ac_try;; 3371esac 3372eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3373$as_echo "$ac_try_echo") >&5 3374 (eval "$ac_link") 2>&5 3375 ac_status=$? 3376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3377 (exit $ac_status); }; then 3378 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3379# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3380# work properly (i.e., refer to `conftest.exe'), while it won't with 3381# `rm'. 3382for ac_file in conftest.exe conftest conftest.*; do 3383 test -f "$ac_file" || continue 3384 case $ac_file in 3385 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3386 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3387 break;; 3388 * ) break;; 3389 esac 3390done 3391else 3392 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3393$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3394{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3395See \`config.log' for more details." >&5 3396$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3397See \`config.log' for more details." >&2;} 3398 { (exit 1); exit 1; }; }; } 3399fi 3400 3401rm -f conftest$ac_cv_exeext 3402{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3403$as_echo "$ac_cv_exeext" >&6; } 3404 3405rm -f conftest.$ac_ext 3406EXEEXT=$ac_cv_exeext 3407ac_exeext=$EXEEXT 3408{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 3409$as_echo_n "checking for suffix of object files... " >&6; } 3410if test "${ac_cv_objext+set}" = set; then 3411 $as_echo_n "(cached) " >&6 3412else 3413 cat >conftest.$ac_ext <<_ACEOF 3414/* confdefs.h. */ 3415_ACEOF 3416cat confdefs.h >>conftest.$ac_ext 3417cat >>conftest.$ac_ext <<_ACEOF 3418/* end confdefs.h. */ 3419 3420int 3421main () 3422{ 3423 3424 ; 3425 return 0; 3426} 3427_ACEOF 3428rm -f conftest.o conftest.obj 3429if { (ac_try="$ac_compile" 3430case "(($ac_try" in 3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3432 *) ac_try_echo=$ac_try;; 3433esac 3434eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3435$as_echo "$ac_try_echo") >&5 3436 (eval "$ac_compile") 2>&5 3437 ac_status=$? 3438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3439 (exit $ac_status); }; then 3440 for ac_file in conftest.o conftest.obj conftest.*; do 3441 test -f "$ac_file" || continue; 3442 case $ac_file in 3443 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3444 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3445 break;; 3446 esac 3447done 3448else 3449 $as_echo "$as_me: failed program was:" >&5 3450sed 's/^/| /' conftest.$ac_ext >&5 3451 3452{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3453$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3454{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3455See \`config.log' for more details." >&5 3456$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3457See \`config.log' for more details." >&2;} 3458 { (exit 1); exit 1; }; }; } 3459fi 3460 3461rm -f conftest.$ac_cv_objext conftest.$ac_ext 3462fi 3463{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3464$as_echo "$ac_cv_objext" >&6; } 3465OBJEXT=$ac_cv_objext 3466ac_objext=$OBJEXT 3467{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3468$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3469if test "${ac_cv_c_compiler_gnu+set}" = set; then 3470 $as_echo_n "(cached) " >&6 3471else 3472 cat >conftest.$ac_ext <<_ACEOF 3473/* confdefs.h. */ 3474_ACEOF 3475cat confdefs.h >>conftest.$ac_ext 3476cat >>conftest.$ac_ext <<_ACEOF 3477/* end confdefs.h. */ 3478 3479int 3480main () 3481{ 3482#ifndef __GNUC__ 3483 choke me 3484#endif 3485 3486 ; 3487 return 0; 3488} 3489_ACEOF 3490rm -f conftest.$ac_objext 3491if { (ac_try="$ac_compile" 3492case "(($ac_try" in 3493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3494 *) ac_try_echo=$ac_try;; 3495esac 3496eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3497$as_echo "$ac_try_echo") >&5 3498 (eval "$ac_compile") 2>conftest.er1 3499 ac_status=$? 3500 grep -v '^ *+' conftest.er1 >conftest.err 3501 rm -f conftest.er1 3502 cat conftest.err >&5 3503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3504 (exit $ac_status); } && { 3505 test -z "$ac_c_werror_flag" || 3506 test ! -s conftest.err 3507 } && test -s conftest.$ac_objext; then 3508 ac_compiler_gnu=yes 3509else 3510 $as_echo "$as_me: failed program was:" >&5 3511sed 's/^/| /' conftest.$ac_ext >&5 3512 3513 ac_compiler_gnu=no 3514fi 3515 3516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3517ac_cv_c_compiler_gnu=$ac_compiler_gnu 3518 3519fi 3520{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3521$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3522if test $ac_compiler_gnu = yes; then 3523 GCC=yes 3524else 3525 GCC= 3526fi 3527ac_test_CFLAGS=${CFLAGS+set} 3528ac_save_CFLAGS=$CFLAGS 3529{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3530$as_echo_n "checking whether $CC accepts -g... " >&6; } 3531if test "${ac_cv_prog_cc_g+set}" = set; then 3532 $as_echo_n "(cached) " >&6 3533else 3534 ac_save_c_werror_flag=$ac_c_werror_flag 3535 ac_c_werror_flag=yes 3536 ac_cv_prog_cc_g=no 3537 CFLAGS="-g" 3538 cat >conftest.$ac_ext <<_ACEOF 3539/* confdefs.h. */ 3540_ACEOF 3541cat confdefs.h >>conftest.$ac_ext 3542cat >>conftest.$ac_ext <<_ACEOF 3543/* end confdefs.h. */ 3544 3545int 3546main () 3547{ 3548 3549 ; 3550 return 0; 3551} 3552_ACEOF 3553rm -f conftest.$ac_objext 3554if { (ac_try="$ac_compile" 3555case "(($ac_try" in 3556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3557 *) ac_try_echo=$ac_try;; 3558esac 3559eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3560$as_echo "$ac_try_echo") >&5 3561 (eval "$ac_compile") 2>conftest.er1 3562 ac_status=$? 3563 grep -v '^ *+' conftest.er1 >conftest.err 3564 rm -f conftest.er1 3565 cat conftest.err >&5 3566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3567 (exit $ac_status); } && { 3568 test -z "$ac_c_werror_flag" || 3569 test ! -s conftest.err 3570 } && test -s conftest.$ac_objext; then 3571 ac_cv_prog_cc_g=yes 3572else 3573 $as_echo "$as_me: failed program was:" >&5 3574sed 's/^/| /' conftest.$ac_ext >&5 3575 3576 CFLAGS="" 3577 cat >conftest.$ac_ext <<_ACEOF 3578/* confdefs.h. */ 3579_ACEOF 3580cat confdefs.h >>conftest.$ac_ext 3581cat >>conftest.$ac_ext <<_ACEOF 3582/* end confdefs.h. */ 3583 3584int 3585main () 3586{ 3587 3588 ; 3589 return 0; 3590} 3591_ACEOF 3592rm -f conftest.$ac_objext 3593if { (ac_try="$ac_compile" 3594case "(($ac_try" in 3595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3596 *) ac_try_echo=$ac_try;; 3597esac 3598eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3599$as_echo "$ac_try_echo") >&5 3600 (eval "$ac_compile") 2>conftest.er1 3601 ac_status=$? 3602 grep -v '^ *+' conftest.er1 >conftest.err 3603 rm -f conftest.er1 3604 cat conftest.err >&5 3605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3606 (exit $ac_status); } && { 3607 test -z "$ac_c_werror_flag" || 3608 test ! -s conftest.err 3609 } && test -s conftest.$ac_objext; then 3610 : 3611else 3612 $as_echo "$as_me: failed program was:" >&5 3613sed 's/^/| /' conftest.$ac_ext >&5 3614 3615 ac_c_werror_flag=$ac_save_c_werror_flag 3616 CFLAGS="-g" 3617 cat >conftest.$ac_ext <<_ACEOF 3618/* confdefs.h. */ 3619_ACEOF 3620cat confdefs.h >>conftest.$ac_ext 3621cat >>conftest.$ac_ext <<_ACEOF 3622/* end confdefs.h. */ 3623 3624int 3625main () 3626{ 3627 3628 ; 3629 return 0; 3630} 3631_ACEOF 3632rm -f conftest.$ac_objext 3633if { (ac_try="$ac_compile" 3634case "(($ac_try" in 3635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3636 *) ac_try_echo=$ac_try;; 3637esac 3638eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3639$as_echo "$ac_try_echo") >&5 3640 (eval "$ac_compile") 2>conftest.er1 3641 ac_status=$? 3642 grep -v '^ *+' conftest.er1 >conftest.err 3643 rm -f conftest.er1 3644 cat conftest.err >&5 3645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3646 (exit $ac_status); } && { 3647 test -z "$ac_c_werror_flag" || 3648 test ! -s conftest.err 3649 } && test -s conftest.$ac_objext; then 3650 ac_cv_prog_cc_g=yes 3651else 3652 $as_echo "$as_me: failed program was:" >&5 3653sed 's/^/| /' conftest.$ac_ext >&5 3654 3655 3656fi 3657 3658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3659fi 3660 3661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3662fi 3663 3664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3665 ac_c_werror_flag=$ac_save_c_werror_flag 3666fi 3667{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3668$as_echo "$ac_cv_prog_cc_g" >&6; } 3669if test "$ac_test_CFLAGS" = set; then 3670 CFLAGS=$ac_save_CFLAGS 3671elif test $ac_cv_prog_cc_g = yes; then 3672 if test "$GCC" = yes; then 3673 CFLAGS="-g -O2" 3674 else 3675 CFLAGS="-g" 3676 fi 3677else 3678 if test "$GCC" = yes; then 3679 CFLAGS="-O2" 3680 else 3681 CFLAGS= 3682 fi 3683fi 3684{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3685$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3686if test "${ac_cv_prog_cc_c89+set}" = set; then 3687 $as_echo_n "(cached) " >&6 3688else 3689 ac_cv_prog_cc_c89=no 3690ac_save_CC=$CC 3691cat >conftest.$ac_ext <<_ACEOF 3692/* confdefs.h. */ 3693_ACEOF 3694cat confdefs.h >>conftest.$ac_ext 3695cat >>conftest.$ac_ext <<_ACEOF 3696/* end confdefs.h. */ 3697#include <stdarg.h> 3698#include <stdio.h> 3699#include <sys/types.h> 3700#include <sys/stat.h> 3701/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3702struct buf { int x; }; 3703FILE * (*rcsopen) (struct buf *, struct stat *, int); 3704static char *e (p, i) 3705 char **p; 3706 int i; 3707{ 3708 return p[i]; 3709} 3710static char *f (char * (*g) (char **, int), char **p, ...) 3711{ 3712 char *s; 3713 va_list v; 3714 va_start (v,p); 3715 s = g (p, va_arg (v,int)); 3716 va_end (v); 3717 return s; 3718} 3719 3720/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3721 function prototypes and stuff, but not '\xHH' hex character constants. 3722 These don't provoke an error unfortunately, instead are silently treated 3723 as 'x'. The following induces an error, until -std is added to get 3724 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3725 array size at least. It's necessary to write '\x00'==0 to get something 3726 that's true only with -std. */ 3727int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3728 3729/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3730 inside strings and character constants. */ 3731#define FOO(x) 'x' 3732int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3733 3734int test (int i, double x); 3735struct s1 {int (*f) (int a);}; 3736struct s2 {int (*f) (double a);}; 3737int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3738int argc; 3739char **argv; 3740int 3741main () 3742{ 3743return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3744 ; 3745 return 0; 3746} 3747_ACEOF 3748for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3749 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3750do 3751 CC="$ac_save_CC $ac_arg" 3752 rm -f conftest.$ac_objext 3753if { (ac_try="$ac_compile" 3754case "(($ac_try" in 3755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3756 *) ac_try_echo=$ac_try;; 3757esac 3758eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3759$as_echo "$ac_try_echo") >&5 3760 (eval "$ac_compile") 2>conftest.er1 3761 ac_status=$? 3762 grep -v '^ *+' conftest.er1 >conftest.err 3763 rm -f conftest.er1 3764 cat conftest.err >&5 3765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3766 (exit $ac_status); } && { 3767 test -z "$ac_c_werror_flag" || 3768 test ! -s conftest.err 3769 } && test -s conftest.$ac_objext; then 3770 ac_cv_prog_cc_c89=$ac_arg 3771else 3772 $as_echo "$as_me: failed program was:" >&5 3773sed 's/^/| /' conftest.$ac_ext >&5 3774 3775 3776fi 3777 3778rm -f core conftest.err conftest.$ac_objext 3779 test "x$ac_cv_prog_cc_c89" != "xno" && break 3780done 3781rm -f conftest.$ac_ext 3782CC=$ac_save_CC 3783 3784fi 3785# AC_CACHE_VAL 3786case "x$ac_cv_prog_cc_c89" in 3787 x) 3788 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3789$as_echo "none needed" >&6; } ;; 3790 xno) 3791 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3792$as_echo "unsupported" >&6; } ;; 3793 *) 3794 CC="$CC $ac_cv_prog_cc_c89" 3795 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3796$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3797esac 3798 3799 3800ac_ext=c 3801ac_cpp='$CPP $CPPFLAGS' 3802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3804ac_compiler_gnu=$ac_cv_c_compiler_gnu 3805 3806depcc="$CC" am_compiler_list= 3807 3808{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3809$as_echo_n "checking dependency style of $depcc... " >&6; } 3810if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3811 $as_echo_n "(cached) " >&6 3812else 3813 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3814 # We make a subdir and do the tests there. Otherwise we can end up 3815 # making bogus files that we don't know about and never remove. For 3816 # instance it was reported that on HP-UX the gcc test will end up 3817 # making a dummy file named `D' -- because `-MD' means `put the output 3818 # in D'. 3819 mkdir conftest.dir 3820 # Copy depcomp to subdir because otherwise we won't find it if we're 3821 # using a relative directory. 3822 cp "$am_depcomp" conftest.dir 3823 cd conftest.dir 3824 # We will build objects and dependencies in a subdirectory because 3825 # it helps to detect inapplicable dependency modes. For instance 3826 # both Tru64's cc and ICC support -MD to output dependencies as a 3827 # side effect of compilation, but ICC will put the dependencies in 3828 # the current directory while Tru64 will put them in the object 3829 # directory. 3830 mkdir sub 3831 3832 am_cv_CC_dependencies_compiler_type=none 3833 if test "$am_compiler_list" = ""; then 3834 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3835 fi 3836 am__universal=false 3837 case " $depcc " in #( 3838 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3839 esac 3840 3841 for depmode in $am_compiler_list; do 3842 # Setup a source with many dependencies, because some compilers 3843 # like to wrap large dependency lists on column 80 (with \), and 3844 # we should not choose a depcomp mode which is confused by this. 3845 # 3846 # We need to recreate these files for each test, as the compiler may 3847 # overwrite some of them when testing with obscure command lines. 3848 # This happens at least with the AIX C compiler. 3849 : > sub/conftest.c 3850 for i in 1 2 3 4 5 6; do 3851 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3852 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3853 # Solaris 8's {/usr,}/bin/sh. 3854 touch sub/conftst$i.h 3855 done 3856 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3857 3858 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3859 # mode. It turns out that the SunPro C++ compiler does not properly 3860 # handle `-M -o', and we need to detect this. Also, some Intel 3861 # versions had trouble with output in subdirs 3862 am__obj=sub/conftest.${OBJEXT-o} 3863 am__minus_obj="-o $am__obj" 3864 case $depmode in 3865 gcc) 3866 # This depmode causes a compiler race in universal mode. 3867 test "$am__universal" = false || continue 3868 ;; 3869 nosideeffect) 3870 # after this tag, mechanisms are not by side-effect, so they'll 3871 # only be used when explicitly requested 3872 if test "x$enable_dependency_tracking" = xyes; then 3873 continue 3874 else 3875 break 3876 fi 3877 ;; 3878 msvisualcpp | msvcmsys) 3879 # This compiler won't grok `-c -o', but also, the minuso test has 3880 # not run yet. These depmodes are late enough in the game, and 3881 # so weak that their functioning should not be impacted. 3882 am__obj=conftest.${OBJEXT-o} 3883 am__minus_obj= 3884 ;; 3885 none) break ;; 3886 esac 3887 if depmode=$depmode \ 3888 source=sub/conftest.c object=$am__obj \ 3889 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3890 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3891 >/dev/null 2>conftest.err && 3892 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3893 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3894 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3895 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3896 # icc doesn't choke on unknown options, it will just issue warnings 3897 # or remarks (even with -Werror). So we grep stderr for any message 3898 # that says an option was ignored or not supported. 3899 # When given -MP, icc 7.0 and 7.1 complain thusly: 3900 # icc: Command line warning: ignoring option '-M'; no argument required 3901 # The diagnosis changed in icc 8.0: 3902 # icc: Command line remark: option '-MP' not supported 3903 if (grep 'ignoring option' conftest.err || 3904 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3905 am_cv_CC_dependencies_compiler_type=$depmode 3906 break 3907 fi 3908 fi 3909 done 3910 3911 cd .. 3912 rm -rf conftest.dir 3913else 3914 am_cv_CC_dependencies_compiler_type=none 3915fi 3916 3917fi 3918{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3919$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3920CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3921 3922 if 3923 test "x$enable_dependency_tracking" != xno \ 3924 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3925 am__fastdepCC_TRUE= 3926 am__fastdepCC_FALSE='#' 3927else 3928 am__fastdepCC_TRUE='#' 3929 am__fastdepCC_FALSE= 3930fi 3931 3932 3933{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3934$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3935if test "${lt_cv_path_SED+set}" = set; then 3936 $as_echo_n "(cached) " >&6 3937else 3938 # Loop through the user's path and test for sed and gsed. 3939# Then use that list of sed's as ones to test for truncation. 3940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3941for as_dir in $PATH 3942do 3943 IFS=$as_save_IFS 3944 test -z "$as_dir" && as_dir=. 3945 for lt_ac_prog in sed gsed; do 3946 for ac_exec_ext in '' $ac_executable_extensions; do 3947 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then 3948 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3949 fi 3950 done 3951 done 3952done 3953IFS=$as_save_IFS 3954lt_ac_max=0 3955lt_ac_count=0 3956# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3957# along with /bin/sed that truncates output. 3958for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3959 test ! -f $lt_ac_sed && continue 3960 cat /dev/null > conftest.in 3961 lt_ac_count=0 3962 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3963 # Check for GNU sed and select it if it is found. 3964 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3965 lt_cv_path_SED=$lt_ac_sed 3966 break 3967 fi 3968 while true; do 3969 cat conftest.in conftest.in >conftest.tmp 3970 mv conftest.tmp conftest.in 3971 cp conftest.in conftest.nl 3972 echo >>conftest.nl 3973 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3974 cmp -s conftest.out conftest.nl || break 3975 # 10000 chars as input seems more than enough 3976 test $lt_ac_count -gt 10 && break 3977 lt_ac_count=`expr $lt_ac_count + 1` 3978 if test $lt_ac_count -gt $lt_ac_max; then 3979 lt_ac_max=$lt_ac_count 3980 lt_cv_path_SED=$lt_ac_sed 3981 fi 3982 done 3983done 3984 3985fi 3986 3987SED=$lt_cv_path_SED 3988 3989{ $as_echo "$as_me:$LINENO: result: $SED" >&5 3990$as_echo "$SED" >&6; } 3991 3992{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3993$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3994if test "${ac_cv_path_GREP+set}" = set; then 3995 $as_echo_n "(cached) " >&6 3996else 3997 if test -z "$GREP"; then 3998 ac_path_GREP_found=false 3999 # Loop through the user's path and test for each of PROGNAME-LIST 4000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4001for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4002do 4003 IFS=$as_save_IFS 4004 test -z "$as_dir" && as_dir=. 4005 for ac_prog in grep ggrep; do 4006 for ac_exec_ext in '' $ac_executable_extensions; do 4007 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4008 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4009# Check for GNU ac_path_GREP and select it if it is found. 4010 # Check for GNU $ac_path_GREP 4011case `"$ac_path_GREP" --version 2>&1` in 4012*GNU*) 4013 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4014*) 4015 ac_count=0 4016 $as_echo_n 0123456789 >"conftest.in" 4017 while : 4018 do 4019 cat "conftest.in" "conftest.in" >"conftest.tmp" 4020 mv "conftest.tmp" "conftest.in" 4021 cp "conftest.in" "conftest.nl" 4022 $as_echo 'GREP' >> "conftest.nl" 4023 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4024 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4025 ac_count=`expr $ac_count + 1` 4026 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4027 # Best one so far, save it but keep looking for a better one 4028 ac_cv_path_GREP="$ac_path_GREP" 4029 ac_path_GREP_max=$ac_count 4030 fi 4031 # 10*(2^10) chars as input seems more than enough 4032 test $ac_count -gt 10 && break 4033 done 4034 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4035esac 4036 4037 $ac_path_GREP_found && break 3 4038 done 4039 done 4040done 4041IFS=$as_save_IFS 4042 if test -z "$ac_cv_path_GREP"; then 4043 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4044$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4045 { (exit 1); exit 1; }; } 4046 fi 4047else 4048 ac_cv_path_GREP=$GREP 4049fi 4050 4051fi 4052{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4053$as_echo "$ac_cv_path_GREP" >&6; } 4054 GREP="$ac_cv_path_GREP" 4055 4056 4057{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 4058$as_echo_n "checking for egrep... " >&6; } 4059if test "${ac_cv_path_EGREP+set}" = set; then 4060 $as_echo_n "(cached) " >&6 4061else 4062 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4063 then ac_cv_path_EGREP="$GREP -E" 4064 else 4065 if test -z "$EGREP"; then 4066 ac_path_EGREP_found=false 4067 # Loop through the user's path and test for each of PROGNAME-LIST 4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4069for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4070do 4071 IFS=$as_save_IFS 4072 test -z "$as_dir" && as_dir=. 4073 for ac_prog in egrep; do 4074 for ac_exec_ext in '' $ac_executable_extensions; do 4075 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4076 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4077# Check for GNU ac_path_EGREP and select it if it is found. 4078 # Check for GNU $ac_path_EGREP 4079case `"$ac_path_EGREP" --version 2>&1` in 4080*GNU*) 4081 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4082*) 4083 ac_count=0 4084 $as_echo_n 0123456789 >"conftest.in" 4085 while : 4086 do 4087 cat "conftest.in" "conftest.in" >"conftest.tmp" 4088 mv "conftest.tmp" "conftest.in" 4089 cp "conftest.in" "conftest.nl" 4090 $as_echo 'EGREP' >> "conftest.nl" 4091 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4092 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4093 ac_count=`expr $ac_count + 1` 4094 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4095 # Best one so far, save it but keep looking for a better one 4096 ac_cv_path_EGREP="$ac_path_EGREP" 4097 ac_path_EGREP_max=$ac_count 4098 fi 4099 # 10*(2^10) chars as input seems more than enough 4100 test $ac_count -gt 10 && break 4101 done 4102 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4103esac 4104 4105 $ac_path_EGREP_found && break 3 4106 done 4107 done 4108done 4109IFS=$as_save_IFS 4110 if test -z "$ac_cv_path_EGREP"; then 4111 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4112$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4113 { (exit 1); exit 1; }; } 4114 fi 4115else 4116 ac_cv_path_EGREP=$EGREP 4117fi 4118 4119 fi 4120fi 4121{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4122$as_echo "$ac_cv_path_EGREP" >&6; } 4123 EGREP="$ac_cv_path_EGREP" 4124 4125 4126 4127# Check whether --with-gnu-ld was given. 4128if test "${with_gnu_ld+set}" = set; then 4129 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4130else 4131 with_gnu_ld=no 4132fi 4133 4134ac_prog=ld 4135if test "$GCC" = yes; then 4136 # Check if gcc -print-prog-name=ld gives a path. 4137 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4138$as_echo_n "checking for ld used by $CC... " >&6; } 4139 case $host in 4140 *-*-mingw*) 4141 # gcc leaves a trailing carriage return which upsets mingw 4142 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4143 *) 4144 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4145 esac 4146 case $ac_prog in 4147 # Accept absolute paths. 4148 [\\/]* | ?:[\\/]*) 4149 re_direlt='/[^/][^/]*/\.\./' 4150 # Canonicalize the pathname of ld 4151 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 4152 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4153 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 4154 done 4155 test -z "$LD" && LD="$ac_prog" 4156 ;; 4157 "") 4158 # If it fails, then pretend we aren't using GCC. 4159 ac_prog=ld 4160 ;; 4161 *) 4162 # If it is relative, then search for the first ld in PATH. 4163 with_gnu_ld=unknown 4164 ;; 4165 esac 4166elif test "$with_gnu_ld" = yes; then 4167 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 4168$as_echo_n "checking for GNU ld... " >&6; } 4169else 4170 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4171$as_echo_n "checking for non-GNU ld... " >&6; } 4172fi 4173if test "${lt_cv_path_LD+set}" = set; then 4174 $as_echo_n "(cached) " >&6 4175else 4176 if test -z "$LD"; then 4177 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4178 for ac_dir in $PATH; do 4179 IFS="$lt_save_ifs" 4180 test -z "$ac_dir" && ac_dir=. 4181 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4182 lt_cv_path_LD="$ac_dir/$ac_prog" 4183 # Check to see if the program is GNU ld. I'd rather use --version, 4184 # but apparently some variants of GNU ld only accept -v. 4185 # Break only if it was the GNU/non-GNU ld that we prefer. 4186 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4187 *GNU* | *'with BFD'*) 4188 test "$with_gnu_ld" != no && break 4189 ;; 4190 *) 4191 test "$with_gnu_ld" != yes && break 4192 ;; 4193 esac 4194 fi 4195 done 4196 IFS="$lt_save_ifs" 4197else 4198 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4199fi 4200fi 4201 4202LD="$lt_cv_path_LD" 4203if test -n "$LD"; then 4204 { $as_echo "$as_me:$LINENO: result: $LD" >&5 4205$as_echo "$LD" >&6; } 4206else 4207 { $as_echo "$as_me:$LINENO: result: no" >&5 4208$as_echo "no" >&6; } 4209fi 4210test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4211$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4212 { (exit 1); exit 1; }; } 4213{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4214$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4215if test "${lt_cv_prog_gnu_ld+set}" = set; then 4216 $as_echo_n "(cached) " >&6 4217else 4218 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4219case `$LD -v 2>&1 </dev/null` in 4220*GNU* | *'with BFD'*) 4221 lt_cv_prog_gnu_ld=yes 4222 ;; 4223*) 4224 lt_cv_prog_gnu_ld=no 4225 ;; 4226esac 4227fi 4228{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4229$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4230with_gnu_ld=$lt_cv_prog_gnu_ld 4231 4232 4233{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4234$as_echo_n "checking for $LD option to reload object files... " >&6; } 4235if test "${lt_cv_ld_reload_flag+set}" = set; then 4236 $as_echo_n "(cached) " >&6 4237else 4238 lt_cv_ld_reload_flag='-r' 4239fi 4240{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4241$as_echo "$lt_cv_ld_reload_flag" >&6; } 4242reload_flag=$lt_cv_ld_reload_flag 4243case $reload_flag in 4244"" | " "*) ;; 4245*) reload_flag=" $reload_flag" ;; 4246esac 4247reload_cmds='$LD$reload_flag -o $output$reload_objs' 4248case $host_os in 4249 darwin*) 4250 if test "$GCC" = yes; then 4251 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4252 else 4253 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4254 fi 4255 ;; 4256esac 4257 4258{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4259$as_echo_n "checking for BSD-compatible nm... " >&6; } 4260if test "${lt_cv_path_NM+set}" = set; then 4261 $as_echo_n "(cached) " >&6 4262else 4263 if test -n "$NM"; then 4264 # Let the user override the test. 4265 lt_cv_path_NM="$NM" 4266else 4267 lt_nm_to_check="${ac_tool_prefix}nm" 4268 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4269 lt_nm_to_check="$lt_nm_to_check nm" 4270 fi 4271 for lt_tmp_nm in $lt_nm_to_check; do 4272 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4273 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4274 IFS="$lt_save_ifs" 4275 test -z "$ac_dir" && ac_dir=. 4276 tmp_nm="$ac_dir/$lt_tmp_nm" 4277 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4278 # Check to see if the nm accepts a BSD-compat flag. 4279 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4280 # nm: unknown option "B" ignored 4281 # Tru64's nm complains that /dev/null is an invalid object file 4282 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4283 */dev/null* | *'Invalid file or object type'*) 4284 lt_cv_path_NM="$tmp_nm -B" 4285 break 4286 ;; 4287 *) 4288 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4289 */dev/null*) 4290 lt_cv_path_NM="$tmp_nm -p" 4291 break 4292 ;; 4293 *) 4294 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4295 continue # so that we can try to find one that supports BSD flags 4296 ;; 4297 esac 4298 ;; 4299 esac 4300 fi 4301 done 4302 IFS="$lt_save_ifs" 4303 done 4304 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4305fi 4306fi 4307{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4308$as_echo "$lt_cv_path_NM" >&6; } 4309NM="$lt_cv_path_NM" 4310 4311{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 4312$as_echo_n "checking whether ln -s works... " >&6; } 4313LN_S=$as_ln_s 4314if test "$LN_S" = "ln -s"; then 4315 { $as_echo "$as_me:$LINENO: result: yes" >&5 4316$as_echo "yes" >&6; } 4317else 4318 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4319$as_echo "no, using $LN_S" >&6; } 4320fi 4321 4322{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 4323$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4324if test "${lt_cv_deplibs_check_method+set}" = set; then 4325 $as_echo_n "(cached) " >&6 4326else 4327 lt_cv_file_magic_cmd='$MAGIC_CMD' 4328lt_cv_file_magic_test_file= 4329lt_cv_deplibs_check_method='unknown' 4330# Need to set the preceding variable on all platforms that support 4331# interlibrary dependencies. 4332# 'none' -- dependencies not supported. 4333# `unknown' -- same as none, but documents that we really don't know. 4334# 'pass_all' -- all dependencies passed with no checks. 4335# 'test_compile' -- check by making test program. 4336# 'file_magic [[regex]]' -- check by looking for files in library path 4337# which responds to the $file_magic_cmd with a given extended regex. 4338# If you have `file' or equivalent on your system and you're not sure 4339# whether `pass_all' will *always* work, you probably want this one. 4340 4341case $host_os in 4342aix[4-9]*) 4343 lt_cv_deplibs_check_method=pass_all 4344 ;; 4345 4346beos*) 4347 lt_cv_deplibs_check_method=pass_all 4348 ;; 4349 4350bsdi[45]*) 4351 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4352 lt_cv_file_magic_cmd='/usr/bin/file -L' 4353 lt_cv_file_magic_test_file=/shlib/libc.so 4354 ;; 4355 4356cygwin*) 4357 # func_win32_libid is a shell function defined in ltmain.sh 4358 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4359 lt_cv_file_magic_cmd='func_win32_libid' 4360 ;; 4361 4362mingw* | pw32*) 4363 # Base MSYS/MinGW do not provide the 'file' command needed by 4364 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4365 # unless we find 'file', for example because we are cross-compiling. 4366 if ( file / ) >/dev/null 2>&1; then 4367 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4368 lt_cv_file_magic_cmd='func_win32_libid' 4369 else 4370 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4371 lt_cv_file_magic_cmd='$OBJDUMP -f' 4372 fi 4373 ;; 4374 4375darwin* | rhapsody*) 4376 lt_cv_deplibs_check_method=pass_all 4377 ;; 4378 4379freebsd* | dragonfly*) 4380 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4381 case $host_cpu in 4382 i*86 ) 4383 # Not sure whether the presence of OpenBSD here was a mistake. 4384 # Let's accept both of them until this is cleared up. 4385 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4386 lt_cv_file_magic_cmd=/usr/bin/file 4387 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4388 ;; 4389 esac 4390 else 4391 lt_cv_deplibs_check_method=pass_all 4392 fi 4393 ;; 4394 4395gnu*) 4396 lt_cv_deplibs_check_method=pass_all 4397 ;; 4398 4399hpux10.20* | hpux11*) 4400 lt_cv_file_magic_cmd=/usr/bin/file 4401 case $host_cpu in 4402 ia64*) 4403 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4404 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4405 ;; 4406 hppa*64*) 4407 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]' 4408 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4409 ;; 4410 *) 4411 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4412 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4413 ;; 4414 esac 4415 ;; 4416 4417interix[3-9]*) 4418 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4419 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4420 ;; 4421 4422irix5* | irix6* | nonstopux*) 4423 case $LD in 4424 *-32|*"-32 ") libmagic=32-bit;; 4425 *-n32|*"-n32 ") libmagic=N32;; 4426 *-64|*"-64 ") libmagic=64-bit;; 4427 *) libmagic=never-match;; 4428 esac 4429 lt_cv_deplibs_check_method=pass_all 4430 ;; 4431 4432# This must be Linux ELF. 4433linux* | k*bsd*-gnu) 4434 lt_cv_deplibs_check_method=pass_all 4435 ;; 4436 4437netbsd*) 4438 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4439 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4440 else 4441 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4442 fi 4443 ;; 4444 4445newos6*) 4446 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4447 lt_cv_file_magic_cmd=/usr/bin/file 4448 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4449 ;; 4450 4451nto-qnx*) 4452 lt_cv_deplibs_check_method=unknown 4453 ;; 4454 4455openbsd*) 4456 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4457 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4458 else 4459 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4460 fi 4461 ;; 4462 4463osf3* | osf4* | osf5*) 4464 lt_cv_deplibs_check_method=pass_all 4465 ;; 4466 4467rdos*) 4468 lt_cv_deplibs_check_method=pass_all 4469 ;; 4470 4471solaris*) 4472 lt_cv_deplibs_check_method=pass_all 4473 ;; 4474 4475sysv4 | sysv4.3*) 4476 case $host_vendor in 4477 motorola) 4478 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]' 4479 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4480 ;; 4481 ncr) 4482 lt_cv_deplibs_check_method=pass_all 4483 ;; 4484 sequent) 4485 lt_cv_file_magic_cmd='/bin/file' 4486 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4487 ;; 4488 sni) 4489 lt_cv_file_magic_cmd='/bin/file' 4490 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4491 lt_cv_file_magic_test_file=/lib/libc.so 4492 ;; 4493 siemens) 4494 lt_cv_deplibs_check_method=pass_all 4495 ;; 4496 pc) 4497 lt_cv_deplibs_check_method=pass_all 4498 ;; 4499 esac 4500 ;; 4501 4502sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4503 lt_cv_deplibs_check_method=pass_all 4504 ;; 4505esac 4506 4507fi 4508{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4509$as_echo "$lt_cv_deplibs_check_method" >&6; } 4510file_magic_cmd=$lt_cv_file_magic_cmd 4511deplibs_check_method=$lt_cv_deplibs_check_method 4512test -z "$deplibs_check_method" && deplibs_check_method=unknown 4513 4514 4515 4516 4517# If no C compiler was specified, use CC. 4518LTCC=${LTCC-"$CC"} 4519 4520# If no C compiler flags were specified, use CFLAGS. 4521LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4522 4523# Allow CC to be a program name with arguments. 4524compiler=$CC 4525 4526 4527# Check whether --enable-libtool-lock was given. 4528if test "${enable_libtool_lock+set}" = set; then 4529 enableval=$enable_libtool_lock; 4530fi 4531 4532test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4533 4534# Some flags need to be propagated to the compiler or linker for good 4535# libtool support. 4536case $host in 4537ia64-*-hpux*) 4538 # Find out which ABI we are using. 4539 echo 'int i;' > conftest.$ac_ext 4540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4541 (eval $ac_compile) 2>&5 4542 ac_status=$? 4543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4544 (exit $ac_status); }; then 4545 case `/usr/bin/file conftest.$ac_objext` in 4546 *ELF-32*) 4547 HPUX_IA64_MODE="32" 4548 ;; 4549 *ELF-64*) 4550 HPUX_IA64_MODE="64" 4551 ;; 4552 esac 4553 fi 4554 rm -rf conftest* 4555 ;; 4556*-*-irix6*) 4557 # Find out which ABI we are using. 4558 echo '#line 4558 "configure"' > conftest.$ac_ext 4559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4560 (eval $ac_compile) 2>&5 4561 ac_status=$? 4562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4563 (exit $ac_status); }; then 4564 if test "$lt_cv_prog_gnu_ld" = yes; then 4565 case `/usr/bin/file conftest.$ac_objext` in 4566 *32-bit*) 4567 LD="${LD-ld} -melf32bsmip" 4568 ;; 4569 *N32*) 4570 LD="${LD-ld} -melf32bmipn32" 4571 ;; 4572 *64-bit*) 4573 LD="${LD-ld} -melf64bmip" 4574 ;; 4575 esac 4576 else 4577 case `/usr/bin/file conftest.$ac_objext` in 4578 *32-bit*) 4579 LD="${LD-ld} -32" 4580 ;; 4581 *N32*) 4582 LD="${LD-ld} -n32" 4583 ;; 4584 *64-bit*) 4585 LD="${LD-ld} -64" 4586 ;; 4587 esac 4588 fi 4589 fi 4590 rm -rf conftest* 4591 ;; 4592 4593x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 4594s390*-*linux*|sparc*-*linux*) 4595 # Find out which ABI we are using. 4596 echo 'int i;' > conftest.$ac_ext 4597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4598 (eval $ac_compile) 2>&5 4599 ac_status=$? 4600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4601 (exit $ac_status); }; then 4602 case `/usr/bin/file conftest.o` in 4603 *32-bit*) 4604 case $host in 4605 x86_64-*kfreebsd*-gnu) 4606 LD="${LD-ld} -m elf_i386_fbsd" 4607 ;; 4608 x86_64-*linux*) 4609 LD="${LD-ld} -m elf_i386" 4610 ;; 4611 ppc64-*linux*|powerpc64-*linux*) 4612 LD="${LD-ld} -m elf32ppclinux" 4613 ;; 4614 s390x-*linux*) 4615 LD="${LD-ld} -m elf_s390" 4616 ;; 4617 sparc64-*linux*) 4618 LD="${LD-ld} -m elf32_sparc" 4619 ;; 4620 esac 4621 ;; 4622 *64-bit*) 4623 libsuff=64 4624 case $host in 4625 x86_64-*kfreebsd*-gnu) 4626 LD="${LD-ld} -m elf_x86_64_fbsd" 4627 ;; 4628 x86_64-*linux*) 4629 LD="${LD-ld} -m elf_x86_64" 4630 ;; 4631 ppc*-*linux*|powerpc*-*linux*) 4632 LD="${LD-ld} -m elf64ppc" 4633 ;; 4634 s390*-*linux*) 4635 LD="${LD-ld} -m elf64_s390" 4636 ;; 4637 sparc*-*linux*) 4638 LD="${LD-ld} -m elf64_sparc" 4639 ;; 4640 esac 4641 ;; 4642 esac 4643 fi 4644 rm -rf conftest* 4645 ;; 4646 4647*-*-sco3.2v5*) 4648 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4649 SAVE_CFLAGS="$CFLAGS" 4650 CFLAGS="$CFLAGS -belf" 4651 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4652$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 4653if test "${lt_cv_cc_needs_belf+set}" = set; then 4654 $as_echo_n "(cached) " >&6 4655else 4656 ac_ext=c 4657ac_cpp='$CPP $CPPFLAGS' 4658ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4659ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4660ac_compiler_gnu=$ac_cv_c_compiler_gnu 4661 4662 cat >conftest.$ac_ext <<_ACEOF 4663/* confdefs.h. */ 4664_ACEOF 4665cat confdefs.h >>conftest.$ac_ext 4666cat >>conftest.$ac_ext <<_ACEOF 4667/* end confdefs.h. */ 4668 4669int 4670main () 4671{ 4672 4673 ; 4674 return 0; 4675} 4676_ACEOF 4677rm -f conftest.$ac_objext conftest$ac_exeext 4678if { (ac_try="$ac_link" 4679case "(($ac_try" in 4680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4681 *) ac_try_echo=$ac_try;; 4682esac 4683eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4684$as_echo "$ac_try_echo") >&5 4685 (eval "$ac_link") 2>conftest.er1 4686 ac_status=$? 4687 grep -v '^ *+' conftest.er1 >conftest.err 4688 rm -f conftest.er1 4689 cat conftest.err >&5 4690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4691 (exit $ac_status); } && { 4692 test -z "$ac_c_werror_flag" || 4693 test ! -s conftest.err 4694 } && test -s conftest$ac_exeext && { 4695 test "$cross_compiling" = yes || 4696 $as_test_x conftest$ac_exeext 4697 }; then 4698 lt_cv_cc_needs_belf=yes 4699else 4700 $as_echo "$as_me: failed program was:" >&5 4701sed 's/^/| /' conftest.$ac_ext >&5 4702 4703 lt_cv_cc_needs_belf=no 4704fi 4705 4706rm -rf conftest.dSYM 4707rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4708 conftest$ac_exeext conftest.$ac_ext 4709 ac_ext=c 4710ac_cpp='$CPP $CPPFLAGS' 4711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4713ac_compiler_gnu=$ac_cv_c_compiler_gnu 4714 4715fi 4716{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4717$as_echo "$lt_cv_cc_needs_belf" >&6; } 4718 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4719 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4720 CFLAGS="$SAVE_CFLAGS" 4721 fi 4722 ;; 4723sparc*-*solaris*) 4724 # Find out which ABI we are using. 4725 echo 'int i;' > conftest.$ac_ext 4726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4727 (eval $ac_compile) 2>&5 4728 ac_status=$? 4729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4730 (exit $ac_status); }; then 4731 case `/usr/bin/file conftest.o` in 4732 *64-bit*) 4733 case $lt_cv_prog_gnu_ld in 4734 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4735 *) 4736 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 4737 LD="${LD-ld} -64" 4738 fi 4739 ;; 4740 esac 4741 ;; 4742 esac 4743 fi 4744 rm -rf conftest* 4745 ;; 4746 4747 4748esac 4749 4750need_locks="$enable_libtool_lock" 4751 4752 4753ac_ext=c 4754ac_cpp='$CPP $CPPFLAGS' 4755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4757ac_compiler_gnu=$ac_cv_c_compiler_gnu 4758{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4759$as_echo_n "checking how to run the C preprocessor... " >&6; } 4760# On Suns, sometimes $CPP names a directory. 4761if test -n "$CPP" && test -d "$CPP"; then 4762 CPP= 4763fi 4764if test -z "$CPP"; then 4765 if test "${ac_cv_prog_CPP+set}" = set; then 4766 $as_echo_n "(cached) " >&6 4767else 4768 # Double quotes because CPP needs to be expanded 4769 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4770 do 4771 ac_preproc_ok=false 4772for ac_c_preproc_warn_flag in '' yes 4773do 4774 # Use a header file that comes with gcc, so configuring glibc 4775 # with a fresh cross-compiler works. 4776 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4777 # <limits.h> exists even on freestanding compilers. 4778 # On the NeXT, cc -E runs the code through the compiler's parser, 4779 # not just through cpp. "Syntax error" is here to catch this case. 4780 cat >conftest.$ac_ext <<_ACEOF 4781/* confdefs.h. */ 4782_ACEOF 4783cat confdefs.h >>conftest.$ac_ext 4784cat >>conftest.$ac_ext <<_ACEOF 4785/* end confdefs.h. */ 4786#ifdef __STDC__ 4787# include <limits.h> 4788#else 4789# include <assert.h> 4790#endif 4791 Syntax error 4792_ACEOF 4793if { (ac_try="$ac_cpp conftest.$ac_ext" 4794case "(($ac_try" in 4795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4796 *) ac_try_echo=$ac_try;; 4797esac 4798eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4799$as_echo "$ac_try_echo") >&5 4800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4801 ac_status=$? 4802 grep -v '^ *+' conftest.er1 >conftest.err 4803 rm -f conftest.er1 4804 cat conftest.err >&5 4805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4806 (exit $ac_status); } >/dev/null && { 4807 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4808 test ! -s conftest.err 4809 }; then 4810 : 4811else 4812 $as_echo "$as_me: failed program was:" >&5 4813sed 's/^/| /' conftest.$ac_ext >&5 4814 4815 # Broken: fails on valid input. 4816continue 4817fi 4818 4819rm -f conftest.err conftest.$ac_ext 4820 4821 # OK, works on sane cases. Now check whether nonexistent headers 4822 # can be detected and how. 4823 cat >conftest.$ac_ext <<_ACEOF 4824/* confdefs.h. */ 4825_ACEOF 4826cat confdefs.h >>conftest.$ac_ext 4827cat >>conftest.$ac_ext <<_ACEOF 4828/* end confdefs.h. */ 4829#include <ac_nonexistent.h> 4830_ACEOF 4831if { (ac_try="$ac_cpp conftest.$ac_ext" 4832case "(($ac_try" in 4833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4834 *) ac_try_echo=$ac_try;; 4835esac 4836eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4837$as_echo "$ac_try_echo") >&5 4838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4839 ac_status=$? 4840 grep -v '^ *+' conftest.er1 >conftest.err 4841 rm -f conftest.er1 4842 cat conftest.err >&5 4843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4844 (exit $ac_status); } >/dev/null && { 4845 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4846 test ! -s conftest.err 4847 }; then 4848 # Broken: success on invalid input. 4849continue 4850else 4851 $as_echo "$as_me: failed program was:" >&5 4852sed 's/^/| /' conftest.$ac_ext >&5 4853 4854 # Passes both tests. 4855ac_preproc_ok=: 4856break 4857fi 4858 4859rm -f conftest.err conftest.$ac_ext 4860 4861done 4862# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4863rm -f conftest.err conftest.$ac_ext 4864if $ac_preproc_ok; then 4865 break 4866fi 4867 4868 done 4869 ac_cv_prog_CPP=$CPP 4870 4871fi 4872 CPP=$ac_cv_prog_CPP 4873else 4874 ac_cv_prog_CPP=$CPP 4875fi 4876{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 4877$as_echo "$CPP" >&6; } 4878ac_preproc_ok=false 4879for ac_c_preproc_warn_flag in '' yes 4880do 4881 # Use a header file that comes with gcc, so configuring glibc 4882 # with a fresh cross-compiler works. 4883 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4884 # <limits.h> exists even on freestanding compilers. 4885 # On the NeXT, cc -E runs the code through the compiler's parser, 4886 # not just through cpp. "Syntax error" is here to catch this case. 4887 cat >conftest.$ac_ext <<_ACEOF 4888/* confdefs.h. */ 4889_ACEOF 4890cat confdefs.h >>conftest.$ac_ext 4891cat >>conftest.$ac_ext <<_ACEOF 4892/* end confdefs.h. */ 4893#ifdef __STDC__ 4894# include <limits.h> 4895#else 4896# include <assert.h> 4897#endif 4898 Syntax error 4899_ACEOF 4900if { (ac_try="$ac_cpp conftest.$ac_ext" 4901case "(($ac_try" in 4902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4903 *) ac_try_echo=$ac_try;; 4904esac 4905eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4906$as_echo "$ac_try_echo") >&5 4907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4908 ac_status=$? 4909 grep -v '^ *+' conftest.er1 >conftest.err 4910 rm -f conftest.er1 4911 cat conftest.err >&5 4912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4913 (exit $ac_status); } >/dev/null && { 4914 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4915 test ! -s conftest.err 4916 }; then 4917 : 4918else 4919 $as_echo "$as_me: failed program was:" >&5 4920sed 's/^/| /' conftest.$ac_ext >&5 4921 4922 # Broken: fails on valid input. 4923continue 4924fi 4925 4926rm -f conftest.err conftest.$ac_ext 4927 4928 # OK, works on sane cases. Now check whether nonexistent headers 4929 # can be detected and how. 4930 cat >conftest.$ac_ext <<_ACEOF 4931/* confdefs.h. */ 4932_ACEOF 4933cat confdefs.h >>conftest.$ac_ext 4934cat >>conftest.$ac_ext <<_ACEOF 4935/* end confdefs.h. */ 4936#include <ac_nonexistent.h> 4937_ACEOF 4938if { (ac_try="$ac_cpp conftest.$ac_ext" 4939case "(($ac_try" in 4940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4941 *) ac_try_echo=$ac_try;; 4942esac 4943eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4944$as_echo "$ac_try_echo") >&5 4945 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4946 ac_status=$? 4947 grep -v '^ *+' conftest.er1 >conftest.err 4948 rm -f conftest.er1 4949 cat conftest.err >&5 4950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4951 (exit $ac_status); } >/dev/null && { 4952 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4953 test ! -s conftest.err 4954 }; then 4955 # Broken: success on invalid input. 4956continue 4957else 4958 $as_echo "$as_me: failed program was:" >&5 4959sed 's/^/| /' conftest.$ac_ext >&5 4960 4961 # Passes both tests. 4962ac_preproc_ok=: 4963break 4964fi 4965 4966rm -f conftest.err conftest.$ac_ext 4967 4968done 4969# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4970rm -f conftest.err conftest.$ac_ext 4971if $ac_preproc_ok; then 4972 : 4973else 4974 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 4975$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4976{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4977See \`config.log' for more details." >&5 4978$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4979See \`config.log' for more details." >&2;} 4980 { (exit 1); exit 1; }; }; } 4981fi 4982 4983ac_ext=c 4984ac_cpp='$CPP $CPPFLAGS' 4985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4987ac_compiler_gnu=$ac_cv_c_compiler_gnu 4988 4989 4990{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4991$as_echo_n "checking for ANSI C header files... " >&6; } 4992if test "${ac_cv_header_stdc+set}" = set; then 4993 $as_echo_n "(cached) " >&6 4994else 4995 cat >conftest.$ac_ext <<_ACEOF 4996/* confdefs.h. */ 4997_ACEOF 4998cat confdefs.h >>conftest.$ac_ext 4999cat >>conftest.$ac_ext <<_ACEOF 5000/* end confdefs.h. */ 5001#include <stdlib.h> 5002#include <stdarg.h> 5003#include <string.h> 5004#include <float.h> 5005 5006int 5007main () 5008{ 5009 5010 ; 5011 return 0; 5012} 5013_ACEOF 5014rm -f conftest.$ac_objext 5015if { (ac_try="$ac_compile" 5016case "(($ac_try" in 5017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5018 *) ac_try_echo=$ac_try;; 5019esac 5020eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5021$as_echo "$ac_try_echo") >&5 5022 (eval "$ac_compile") 2>conftest.er1 5023 ac_status=$? 5024 grep -v '^ *+' conftest.er1 >conftest.err 5025 rm -f conftest.er1 5026 cat conftest.err >&5 5027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5028 (exit $ac_status); } && { 5029 test -z "$ac_c_werror_flag" || 5030 test ! -s conftest.err 5031 } && test -s conftest.$ac_objext; then 5032 ac_cv_header_stdc=yes 5033else 5034 $as_echo "$as_me: failed program was:" >&5 5035sed 's/^/| /' conftest.$ac_ext >&5 5036 5037 ac_cv_header_stdc=no 5038fi 5039 5040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5041 5042if test $ac_cv_header_stdc = yes; then 5043 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5044 cat >conftest.$ac_ext <<_ACEOF 5045/* confdefs.h. */ 5046_ACEOF 5047cat confdefs.h >>conftest.$ac_ext 5048cat >>conftest.$ac_ext <<_ACEOF 5049/* end confdefs.h. */ 5050#include <string.h> 5051 5052_ACEOF 5053if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5054 $EGREP "memchr" >/dev/null 2>&1; then 5055 : 5056else 5057 ac_cv_header_stdc=no 5058fi 5059rm -f conftest* 5060 5061fi 5062 5063if test $ac_cv_header_stdc = yes; then 5064 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5065 cat >conftest.$ac_ext <<_ACEOF 5066/* confdefs.h. */ 5067_ACEOF 5068cat confdefs.h >>conftest.$ac_ext 5069cat >>conftest.$ac_ext <<_ACEOF 5070/* end confdefs.h. */ 5071#include <stdlib.h> 5072 5073_ACEOF 5074if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5075 $EGREP "free" >/dev/null 2>&1; then 5076 : 5077else 5078 ac_cv_header_stdc=no 5079fi 5080rm -f conftest* 5081 5082fi 5083 5084if test $ac_cv_header_stdc = yes; then 5085 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5086 if test "$cross_compiling" = yes; then 5087 : 5088else 5089 cat >conftest.$ac_ext <<_ACEOF 5090/* confdefs.h. */ 5091_ACEOF 5092cat confdefs.h >>conftest.$ac_ext 5093cat >>conftest.$ac_ext <<_ACEOF 5094/* end confdefs.h. */ 5095#include <ctype.h> 5096#include <stdlib.h> 5097#if ((' ' & 0x0FF) == 0x020) 5098# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5099# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5100#else 5101# define ISLOWER(c) \ 5102 (('a' <= (c) && (c) <= 'i') \ 5103 || ('j' <= (c) && (c) <= 'r') \ 5104 || ('s' <= (c) && (c) <= 'z')) 5105# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5106#endif 5107 5108#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5109int 5110main () 5111{ 5112 int i; 5113 for (i = 0; i < 256; i++) 5114 if (XOR (islower (i), ISLOWER (i)) 5115 || toupper (i) != TOUPPER (i)) 5116 return 2; 5117 return 0; 5118} 5119_ACEOF 5120rm -f conftest$ac_exeext 5121if { (ac_try="$ac_link" 5122case "(($ac_try" in 5123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5124 *) ac_try_echo=$ac_try;; 5125esac 5126eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5127$as_echo "$ac_try_echo") >&5 5128 (eval "$ac_link") 2>&5 5129 ac_status=$? 5130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5131 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5132 { (case "(($ac_try" in 5133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5134 *) ac_try_echo=$ac_try;; 5135esac 5136eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5137$as_echo "$ac_try_echo") >&5 5138 (eval "$ac_try") 2>&5 5139 ac_status=$? 5140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5141 (exit $ac_status); }; }; then 5142 : 5143else 5144 $as_echo "$as_me: program exited with status $ac_status" >&5 5145$as_echo "$as_me: failed program was:" >&5 5146sed 's/^/| /' conftest.$ac_ext >&5 5147 5148( exit $ac_status ) 5149ac_cv_header_stdc=no 5150fi 5151rm -rf conftest.dSYM 5152rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5153fi 5154 5155 5156fi 5157fi 5158{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5159$as_echo "$ac_cv_header_stdc" >&6; } 5160if test $ac_cv_header_stdc = yes; then 5161 5162cat >>confdefs.h <<\_ACEOF 5163#define STDC_HEADERS 1 5164_ACEOF 5165 5166fi 5167 5168# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5179 inttypes.h stdint.h unistd.h 5180do 5181as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5182{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5183$as_echo_n "checking for $ac_header... " >&6; } 5184if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5185 $as_echo_n "(cached) " >&6 5186else 5187 cat >conftest.$ac_ext <<_ACEOF 5188/* confdefs.h. */ 5189_ACEOF 5190cat confdefs.h >>conftest.$ac_ext 5191cat >>conftest.$ac_ext <<_ACEOF 5192/* end confdefs.h. */ 5193$ac_includes_default 5194 5195#include <$ac_header> 5196_ACEOF 5197rm -f conftest.$ac_objext 5198if { (ac_try="$ac_compile" 5199case "(($ac_try" in 5200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5201 *) ac_try_echo=$ac_try;; 5202esac 5203eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5204$as_echo "$ac_try_echo") >&5 5205 (eval "$ac_compile") 2>conftest.er1 5206 ac_status=$? 5207 grep -v '^ *+' conftest.er1 >conftest.err 5208 rm -f conftest.er1 5209 cat conftest.err >&5 5210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5211 (exit $ac_status); } && { 5212 test -z "$ac_c_werror_flag" || 5213 test ! -s conftest.err 5214 } && test -s conftest.$ac_objext; then 5215 eval "$as_ac_Header=yes" 5216else 5217 $as_echo "$as_me: failed program was:" >&5 5218sed 's/^/| /' conftest.$ac_ext >&5 5219 5220 eval "$as_ac_Header=no" 5221fi 5222 5223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5224fi 5225ac_res=`eval 'as_val=${'$as_ac_Header'} 5226 $as_echo "$as_val"'` 5227 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5228$as_echo "$ac_res" >&6; } 5229as_val=`eval 'as_val=${'$as_ac_Header'} 5230 $as_echo "$as_val"'` 5231 if test "x$as_val" = x""yes; then 5232 cat >>confdefs.h <<_ACEOF 5233#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5234_ACEOF 5235 5236fi 5237 5238done 5239 5240 5241 5242for ac_header in dlfcn.h 5243do 5244as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5245if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5246 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5247$as_echo_n "checking for $ac_header... " >&6; } 5248if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5249 $as_echo_n "(cached) " >&6 5250fi 5251ac_res=`eval 'as_val=${'$as_ac_Header'} 5252 $as_echo "$as_val"'` 5253 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5254$as_echo "$ac_res" >&6; } 5255else 5256 # Is the header compilable? 5257{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 5258$as_echo_n "checking $ac_header usability... " >&6; } 5259cat >conftest.$ac_ext <<_ACEOF 5260/* confdefs.h. */ 5261_ACEOF 5262cat confdefs.h >>conftest.$ac_ext 5263cat >>conftest.$ac_ext <<_ACEOF 5264/* end confdefs.h. */ 5265$ac_includes_default 5266#include <$ac_header> 5267_ACEOF 5268rm -f conftest.$ac_objext 5269if { (ac_try="$ac_compile" 5270case "(($ac_try" in 5271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5272 *) ac_try_echo=$ac_try;; 5273esac 5274eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5275$as_echo "$ac_try_echo") >&5 5276 (eval "$ac_compile") 2>conftest.er1 5277 ac_status=$? 5278 grep -v '^ *+' conftest.er1 >conftest.err 5279 rm -f conftest.er1 5280 cat conftest.err >&5 5281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5282 (exit $ac_status); } && { 5283 test -z "$ac_c_werror_flag" || 5284 test ! -s conftest.err 5285 } && test -s conftest.$ac_objext; then 5286 ac_header_compiler=yes 5287else 5288 $as_echo "$as_me: failed program was:" >&5 5289sed 's/^/| /' conftest.$ac_ext >&5 5290 5291 ac_header_compiler=no 5292fi 5293 5294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5295{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5296$as_echo "$ac_header_compiler" >&6; } 5297 5298# Is the header present? 5299{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 5300$as_echo_n "checking $ac_header presence... " >&6; } 5301cat >conftest.$ac_ext <<_ACEOF 5302/* confdefs.h. */ 5303_ACEOF 5304cat confdefs.h >>conftest.$ac_ext 5305cat >>conftest.$ac_ext <<_ACEOF 5306/* end confdefs.h. */ 5307#include <$ac_header> 5308_ACEOF 5309if { (ac_try="$ac_cpp conftest.$ac_ext" 5310case "(($ac_try" in 5311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5312 *) ac_try_echo=$ac_try;; 5313esac 5314eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5315$as_echo "$ac_try_echo") >&5 5316 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5317 ac_status=$? 5318 grep -v '^ *+' conftest.er1 >conftest.err 5319 rm -f conftest.er1 5320 cat conftest.err >&5 5321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5322 (exit $ac_status); } >/dev/null && { 5323 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5324 test ! -s conftest.err 5325 }; then 5326 ac_header_preproc=yes 5327else 5328 $as_echo "$as_me: failed program was:" >&5 5329sed 's/^/| /' conftest.$ac_ext >&5 5330 5331 ac_header_preproc=no 5332fi 5333 5334rm -f conftest.err conftest.$ac_ext 5335{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5336$as_echo "$ac_header_preproc" >&6; } 5337 5338# So? What about this header? 5339case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5340 yes:no: ) 5341 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5342$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5343 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5344$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5345 ac_header_preproc=yes 5346 ;; 5347 no:yes:* ) 5348 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5349$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5350 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5351$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5352 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5353$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5354 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5355$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5356 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5357$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5358 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5359$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5360 ( cat <<\_ASBOX 5361## ---------------------------------------------------------------------- ## 5362## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 5363## ---------------------------------------------------------------------- ## 5364_ASBOX 5365 ) | sed "s/^/$as_me: WARNING: /" >&2 5366 ;; 5367esac 5368{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5369$as_echo_n "checking for $ac_header... " >&6; } 5370if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5371 $as_echo_n "(cached) " >&6 5372else 5373 eval "$as_ac_Header=\$ac_header_preproc" 5374fi 5375ac_res=`eval 'as_val=${'$as_ac_Header'} 5376 $as_echo "$as_val"'` 5377 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5378$as_echo "$ac_res" >&6; } 5379 5380fi 5381as_val=`eval 'as_val=${'$as_ac_Header'} 5382 $as_echo "$as_val"'` 5383 if test "x$as_val" = x""yes; then 5384 cat >>confdefs.h <<_ACEOF 5385#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5386_ACEOF 5387 5388fi 5389 5390done 5391 5392ac_ext=cpp 5393ac_cpp='$CXXCPP $CPPFLAGS' 5394ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5395ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5396ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5397if test -z "$CXX"; then 5398 if test -n "$CCC"; then 5399 CXX=$CCC 5400 else 5401 if test -n "$ac_tool_prefix"; then 5402 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5403 do 5404 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5405set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5406{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5407$as_echo_n "checking for $ac_word... " >&6; } 5408if test "${ac_cv_prog_CXX+set}" = set; then 5409 $as_echo_n "(cached) " >&6 5410else 5411 if test -n "$CXX"; then 5412 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5413else 5414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5415for as_dir in $PATH 5416do 5417 IFS=$as_save_IFS 5418 test -z "$as_dir" && as_dir=. 5419 for ac_exec_ext in '' $ac_executable_extensions; do 5420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5421 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5422 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5423 break 2 5424 fi 5425done 5426done 5427IFS=$as_save_IFS 5428 5429fi 5430fi 5431CXX=$ac_cv_prog_CXX 5432if test -n "$CXX"; then 5433 { $as_echo "$as_me:$LINENO: result: $CXX" >&5 5434$as_echo "$CXX" >&6; } 5435else 5436 { $as_echo "$as_me:$LINENO: result: no" >&5 5437$as_echo "no" >&6; } 5438fi 5439 5440 5441 test -n "$CXX" && break 5442 done 5443fi 5444if test -z "$CXX"; then 5445 ac_ct_CXX=$CXX 5446 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5447do 5448 # Extract the first word of "$ac_prog", so it can be a program name with args. 5449set dummy $ac_prog; ac_word=$2 5450{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5451$as_echo_n "checking for $ac_word... " >&6; } 5452if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5453 $as_echo_n "(cached) " >&6 5454else 5455 if test -n "$ac_ct_CXX"; then 5456 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5457else 5458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5459for as_dir in $PATH 5460do 5461 IFS=$as_save_IFS 5462 test -z "$as_dir" && as_dir=. 5463 for ac_exec_ext in '' $ac_executable_extensions; do 5464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5465 ac_cv_prog_ac_ct_CXX="$ac_prog" 5466 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5467 break 2 5468 fi 5469done 5470done 5471IFS=$as_save_IFS 5472 5473fi 5474fi 5475ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5476if test -n "$ac_ct_CXX"; then 5477 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5478$as_echo "$ac_ct_CXX" >&6; } 5479else 5480 { $as_echo "$as_me:$LINENO: result: no" >&5 5481$as_echo "no" >&6; } 5482fi 5483 5484 5485 test -n "$ac_ct_CXX" && break 5486done 5487 5488 if test "x$ac_ct_CXX" = x; then 5489 CXX="g++" 5490 else 5491 case $cross_compiling:$ac_tool_warned in 5492yes:) 5493{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5494$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5495ac_tool_warned=yes ;; 5496esac 5497 CXX=$ac_ct_CXX 5498 fi 5499fi 5500 5501 fi 5502fi 5503# Provide some information about the compiler. 5504$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5505set X $ac_compile 5506ac_compiler=$2 5507{ (ac_try="$ac_compiler --version >&5" 5508case "(($ac_try" in 5509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5510 *) ac_try_echo=$ac_try;; 5511esac 5512eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5513$as_echo "$ac_try_echo") >&5 5514 (eval "$ac_compiler --version >&5") 2>&5 5515 ac_status=$? 5516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5517 (exit $ac_status); } 5518{ (ac_try="$ac_compiler -v >&5" 5519case "(($ac_try" in 5520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5521 *) ac_try_echo=$ac_try;; 5522esac 5523eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5524$as_echo "$ac_try_echo") >&5 5525 (eval "$ac_compiler -v >&5") 2>&5 5526 ac_status=$? 5527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5528 (exit $ac_status); } 5529{ (ac_try="$ac_compiler -V >&5" 5530case "(($ac_try" in 5531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5532 *) ac_try_echo=$ac_try;; 5533esac 5534eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5535$as_echo "$ac_try_echo") >&5 5536 (eval "$ac_compiler -V >&5") 2>&5 5537 ac_status=$? 5538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5539 (exit $ac_status); } 5540 5541{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5542$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 5543if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5544 $as_echo_n "(cached) " >&6 5545else 5546 cat >conftest.$ac_ext <<_ACEOF 5547/* confdefs.h. */ 5548_ACEOF 5549cat confdefs.h >>conftest.$ac_ext 5550cat >>conftest.$ac_ext <<_ACEOF 5551/* end confdefs.h. */ 5552 5553int 5554main () 5555{ 5556#ifndef __GNUC__ 5557 choke me 5558#endif 5559 5560 ; 5561 return 0; 5562} 5563_ACEOF 5564rm -f conftest.$ac_objext 5565if { (ac_try="$ac_compile" 5566case "(($ac_try" in 5567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5568 *) ac_try_echo=$ac_try;; 5569esac 5570eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5571$as_echo "$ac_try_echo") >&5 5572 (eval "$ac_compile") 2>conftest.er1 5573 ac_status=$? 5574 grep -v '^ *+' conftest.er1 >conftest.err 5575 rm -f conftest.er1 5576 cat conftest.err >&5 5577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5578 (exit $ac_status); } && { 5579 test -z "$ac_cxx_werror_flag" || 5580 test ! -s conftest.err 5581 } && test -s conftest.$ac_objext; then 5582 ac_compiler_gnu=yes 5583else 5584 $as_echo "$as_me: failed program was:" >&5 5585sed 's/^/| /' conftest.$ac_ext >&5 5586 5587 ac_compiler_gnu=no 5588fi 5589 5590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5591ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5592 5593fi 5594{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5595$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 5596if test $ac_compiler_gnu = yes; then 5597 GXX=yes 5598else 5599 GXX= 5600fi 5601ac_test_CXXFLAGS=${CXXFLAGS+set} 5602ac_save_CXXFLAGS=$CXXFLAGS 5603{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5604$as_echo_n "checking whether $CXX accepts -g... " >&6; } 5605if test "${ac_cv_prog_cxx_g+set}" = set; then 5606 $as_echo_n "(cached) " >&6 5607else 5608 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5609 ac_cxx_werror_flag=yes 5610 ac_cv_prog_cxx_g=no 5611 CXXFLAGS="-g" 5612 cat >conftest.$ac_ext <<_ACEOF 5613/* confdefs.h. */ 5614_ACEOF 5615cat confdefs.h >>conftest.$ac_ext 5616cat >>conftest.$ac_ext <<_ACEOF 5617/* end confdefs.h. */ 5618 5619int 5620main () 5621{ 5622 5623 ; 5624 return 0; 5625} 5626_ACEOF 5627rm -f conftest.$ac_objext 5628if { (ac_try="$ac_compile" 5629case "(($ac_try" in 5630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5631 *) ac_try_echo=$ac_try;; 5632esac 5633eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5634$as_echo "$ac_try_echo") >&5 5635 (eval "$ac_compile") 2>conftest.er1 5636 ac_status=$? 5637 grep -v '^ *+' conftest.er1 >conftest.err 5638 rm -f conftest.er1 5639 cat conftest.err >&5 5640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5641 (exit $ac_status); } && { 5642 test -z "$ac_cxx_werror_flag" || 5643 test ! -s conftest.err 5644 } && test -s conftest.$ac_objext; then 5645 ac_cv_prog_cxx_g=yes 5646else 5647 $as_echo "$as_me: failed program was:" >&5 5648sed 's/^/| /' conftest.$ac_ext >&5 5649 5650 CXXFLAGS="" 5651 cat >conftest.$ac_ext <<_ACEOF 5652/* confdefs.h. */ 5653_ACEOF 5654cat confdefs.h >>conftest.$ac_ext 5655cat >>conftest.$ac_ext <<_ACEOF 5656/* end confdefs.h. */ 5657 5658int 5659main () 5660{ 5661 5662 ; 5663 return 0; 5664} 5665_ACEOF 5666rm -f conftest.$ac_objext 5667if { (ac_try="$ac_compile" 5668case "(($ac_try" in 5669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5670 *) ac_try_echo=$ac_try;; 5671esac 5672eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5673$as_echo "$ac_try_echo") >&5 5674 (eval "$ac_compile") 2>conftest.er1 5675 ac_status=$? 5676 grep -v '^ *+' conftest.er1 >conftest.err 5677 rm -f conftest.er1 5678 cat conftest.err >&5 5679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5680 (exit $ac_status); } && { 5681 test -z "$ac_cxx_werror_flag" || 5682 test ! -s conftest.err 5683 } && test -s conftest.$ac_objext; then 5684 : 5685else 5686 $as_echo "$as_me: failed program was:" >&5 5687sed 's/^/| /' conftest.$ac_ext >&5 5688 5689 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5690 CXXFLAGS="-g" 5691 cat >conftest.$ac_ext <<_ACEOF 5692/* confdefs.h. */ 5693_ACEOF 5694cat confdefs.h >>conftest.$ac_ext 5695cat >>conftest.$ac_ext <<_ACEOF 5696/* end confdefs.h. */ 5697 5698int 5699main () 5700{ 5701 5702 ; 5703 return 0; 5704} 5705_ACEOF 5706rm -f conftest.$ac_objext 5707if { (ac_try="$ac_compile" 5708case "(($ac_try" in 5709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5710 *) ac_try_echo=$ac_try;; 5711esac 5712eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5713$as_echo "$ac_try_echo") >&5 5714 (eval "$ac_compile") 2>conftest.er1 5715 ac_status=$? 5716 grep -v '^ *+' conftest.er1 >conftest.err 5717 rm -f conftest.er1 5718 cat conftest.err >&5 5719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5720 (exit $ac_status); } && { 5721 test -z "$ac_cxx_werror_flag" || 5722 test ! -s conftest.err 5723 } && test -s conftest.$ac_objext; then 5724 ac_cv_prog_cxx_g=yes 5725else 5726 $as_echo "$as_me: failed program was:" >&5 5727sed 's/^/| /' conftest.$ac_ext >&5 5728 5729 5730fi 5731 5732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5733fi 5734 5735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5736fi 5737 5738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5739 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5740fi 5741{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5742$as_echo "$ac_cv_prog_cxx_g" >&6; } 5743if test "$ac_test_CXXFLAGS" = set; then 5744 CXXFLAGS=$ac_save_CXXFLAGS 5745elif test $ac_cv_prog_cxx_g = yes; then 5746 if test "$GXX" = yes; then 5747 CXXFLAGS="-g -O2" 5748 else 5749 CXXFLAGS="-g" 5750 fi 5751else 5752 if test "$GXX" = yes; then 5753 CXXFLAGS="-O2" 5754 else 5755 CXXFLAGS= 5756 fi 5757fi 5758ac_ext=cpp 5759ac_cpp='$CXXCPP $CPPFLAGS' 5760ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5761ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5762ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5763 5764depcc="$CXX" am_compiler_list= 5765 5766{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5767$as_echo_n "checking dependency style of $depcc... " >&6; } 5768if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5769 $as_echo_n "(cached) " >&6 5770else 5771 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5772 # We make a subdir and do the tests there. Otherwise we can end up 5773 # making bogus files that we don't know about and never remove. For 5774 # instance it was reported that on HP-UX the gcc test will end up 5775 # making a dummy file named `D' -- because `-MD' means `put the output 5776 # in D'. 5777 mkdir conftest.dir 5778 # Copy depcomp to subdir because otherwise we won't find it if we're 5779 # using a relative directory. 5780 cp "$am_depcomp" conftest.dir 5781 cd conftest.dir 5782 # We will build objects and dependencies in a subdirectory because 5783 # it helps to detect inapplicable dependency modes. For instance 5784 # both Tru64's cc and ICC support -MD to output dependencies as a 5785 # side effect of compilation, but ICC will put the dependencies in 5786 # the current directory while Tru64 will put them in the object 5787 # directory. 5788 mkdir sub 5789 5790 am_cv_CXX_dependencies_compiler_type=none 5791 if test "$am_compiler_list" = ""; then 5792 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5793 fi 5794 am__universal=false 5795 case " $depcc " in #( 5796 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5797 esac 5798 5799 for depmode in $am_compiler_list; do 5800 # Setup a source with many dependencies, because some compilers 5801 # like to wrap large dependency lists on column 80 (with \), and 5802 # we should not choose a depcomp mode which is confused by this. 5803 # 5804 # We need to recreate these files for each test, as the compiler may 5805 # overwrite some of them when testing with obscure command lines. 5806 # This happens at least with the AIX C compiler. 5807 : > sub/conftest.c 5808 for i in 1 2 3 4 5 6; do 5809 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5810 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5811 # Solaris 8's {/usr,}/bin/sh. 5812 touch sub/conftst$i.h 5813 done 5814 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5815 5816 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5817 # mode. It turns out that the SunPro C++ compiler does not properly 5818 # handle `-M -o', and we need to detect this. Also, some Intel 5819 # versions had trouble with output in subdirs 5820 am__obj=sub/conftest.${OBJEXT-o} 5821 am__minus_obj="-o $am__obj" 5822 case $depmode in 5823 gcc) 5824 # This depmode causes a compiler race in universal mode. 5825 test "$am__universal" = false || continue 5826 ;; 5827 nosideeffect) 5828 # after this tag, mechanisms are not by side-effect, so they'll 5829 # only be used when explicitly requested 5830 if test "x$enable_dependency_tracking" = xyes; then 5831 continue 5832 else 5833 break 5834 fi 5835 ;; 5836 msvisualcpp | msvcmsys) 5837 # This compiler won't grok `-c -o', but also, the minuso test has 5838 # not run yet. These depmodes are late enough in the game, and 5839 # so weak that their functioning should not be impacted. 5840 am__obj=conftest.${OBJEXT-o} 5841 am__minus_obj= 5842 ;; 5843 none) break ;; 5844 esac 5845 if depmode=$depmode \ 5846 source=sub/conftest.c object=$am__obj \ 5847 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5848 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5849 >/dev/null 2>conftest.err && 5850 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5851 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5852 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5853 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5854 # icc doesn't choke on unknown options, it will just issue warnings 5855 # or remarks (even with -Werror). So we grep stderr for any message 5856 # that says an option was ignored or not supported. 5857 # When given -MP, icc 7.0 and 7.1 complain thusly: 5858 # icc: Command line warning: ignoring option '-M'; no argument required 5859 # The diagnosis changed in icc 8.0: 5860 # icc: Command line remark: option '-MP' not supported 5861 if (grep 'ignoring option' conftest.err || 5862 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5863 am_cv_CXX_dependencies_compiler_type=$depmode 5864 break 5865 fi 5866 fi 5867 done 5868 5869 cd .. 5870 rm -rf conftest.dir 5871else 5872 am_cv_CXX_dependencies_compiler_type=none 5873fi 5874 5875fi 5876{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5877$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 5878CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5879 5880 if 5881 test "x$enable_dependency_tracking" != xno \ 5882 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5883 am__fastdepCXX_TRUE= 5884 am__fastdepCXX_FALSE='#' 5885else 5886 am__fastdepCXX_TRUE='#' 5887 am__fastdepCXX_FALSE= 5888fi 5889 5890 5891 5892 5893if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5894 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5895 (test "X$CXX" != "Xg++"))) ; then 5896 ac_ext=cpp 5897ac_cpp='$CXXCPP $CPPFLAGS' 5898ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5899ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5900ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5901{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5902$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 5903if test -z "$CXXCPP"; then 5904 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5905 $as_echo_n "(cached) " >&6 5906else 5907 # Double quotes because CXXCPP needs to be expanded 5908 for CXXCPP in "$CXX -E" "/lib/cpp" 5909 do 5910 ac_preproc_ok=false 5911for ac_cxx_preproc_warn_flag in '' yes 5912do 5913 # Use a header file that comes with gcc, so configuring glibc 5914 # with a fresh cross-compiler works. 5915 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5916 # <limits.h> exists even on freestanding compilers. 5917 # On the NeXT, cc -E runs the code through the compiler's parser, 5918 # not just through cpp. "Syntax error" is here to catch this case. 5919 cat >conftest.$ac_ext <<_ACEOF 5920/* confdefs.h. */ 5921_ACEOF 5922cat confdefs.h >>conftest.$ac_ext 5923cat >>conftest.$ac_ext <<_ACEOF 5924/* end confdefs.h. */ 5925#ifdef __STDC__ 5926# include <limits.h> 5927#else 5928# include <assert.h> 5929#endif 5930 Syntax error 5931_ACEOF 5932if { (ac_try="$ac_cpp conftest.$ac_ext" 5933case "(($ac_try" in 5934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5935 *) ac_try_echo=$ac_try;; 5936esac 5937eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5938$as_echo "$ac_try_echo") >&5 5939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5940 ac_status=$? 5941 grep -v '^ *+' conftest.er1 >conftest.err 5942 rm -f conftest.er1 5943 cat conftest.err >&5 5944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5945 (exit $ac_status); } >/dev/null && { 5946 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5947 test ! -s conftest.err 5948 }; then 5949 : 5950else 5951 $as_echo "$as_me: failed program was:" >&5 5952sed 's/^/| /' conftest.$ac_ext >&5 5953 5954 # Broken: fails on valid input. 5955continue 5956fi 5957 5958rm -f conftest.err conftest.$ac_ext 5959 5960 # OK, works on sane cases. Now check whether nonexistent headers 5961 # can be detected and how. 5962 cat >conftest.$ac_ext <<_ACEOF 5963/* confdefs.h. */ 5964_ACEOF 5965cat confdefs.h >>conftest.$ac_ext 5966cat >>conftest.$ac_ext <<_ACEOF 5967/* end confdefs.h. */ 5968#include <ac_nonexistent.h> 5969_ACEOF 5970if { (ac_try="$ac_cpp conftest.$ac_ext" 5971case "(($ac_try" in 5972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5973 *) ac_try_echo=$ac_try;; 5974esac 5975eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5976$as_echo "$ac_try_echo") >&5 5977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5978 ac_status=$? 5979 grep -v '^ *+' conftest.er1 >conftest.err 5980 rm -f conftest.er1 5981 cat conftest.err >&5 5982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5983 (exit $ac_status); } >/dev/null && { 5984 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5985 test ! -s conftest.err 5986 }; then 5987 # Broken: success on invalid input. 5988continue 5989else 5990 $as_echo "$as_me: failed program was:" >&5 5991sed 's/^/| /' conftest.$ac_ext >&5 5992 5993 # Passes both tests. 5994ac_preproc_ok=: 5995break 5996fi 5997 5998rm -f conftest.err conftest.$ac_ext 5999 6000done 6001# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6002rm -f conftest.err conftest.$ac_ext 6003if $ac_preproc_ok; then 6004 break 6005fi 6006 6007 done 6008 ac_cv_prog_CXXCPP=$CXXCPP 6009 6010fi 6011 CXXCPP=$ac_cv_prog_CXXCPP 6012else 6013 ac_cv_prog_CXXCPP=$CXXCPP 6014fi 6015{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5 6016$as_echo "$CXXCPP" >&6; } 6017ac_preproc_ok=false 6018for ac_cxx_preproc_warn_flag in '' yes 6019do 6020 # Use a header file that comes with gcc, so configuring glibc 6021 # with a fresh cross-compiler works. 6022 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6023 # <limits.h> exists even on freestanding compilers. 6024 # On the NeXT, cc -E runs the code through the compiler's parser, 6025 # not just through cpp. "Syntax error" is here to catch this case. 6026 cat >conftest.$ac_ext <<_ACEOF 6027/* confdefs.h. */ 6028_ACEOF 6029cat confdefs.h >>conftest.$ac_ext 6030cat >>conftest.$ac_ext <<_ACEOF 6031/* end confdefs.h. */ 6032#ifdef __STDC__ 6033# include <limits.h> 6034#else 6035# include <assert.h> 6036#endif 6037 Syntax error 6038_ACEOF 6039if { (ac_try="$ac_cpp conftest.$ac_ext" 6040case "(($ac_try" in 6041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6042 *) ac_try_echo=$ac_try;; 6043esac 6044eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6045$as_echo "$ac_try_echo") >&5 6046 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6047 ac_status=$? 6048 grep -v '^ *+' conftest.er1 >conftest.err 6049 rm -f conftest.er1 6050 cat conftest.err >&5 6051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6052 (exit $ac_status); } >/dev/null && { 6053 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6054 test ! -s conftest.err 6055 }; then 6056 : 6057else 6058 $as_echo "$as_me: failed program was:" >&5 6059sed 's/^/| /' conftest.$ac_ext >&5 6060 6061 # Broken: fails on valid input. 6062continue 6063fi 6064 6065rm -f conftest.err conftest.$ac_ext 6066 6067 # OK, works on sane cases. Now check whether nonexistent headers 6068 # can be detected and how. 6069 cat >conftest.$ac_ext <<_ACEOF 6070/* confdefs.h. */ 6071_ACEOF 6072cat confdefs.h >>conftest.$ac_ext 6073cat >>conftest.$ac_ext <<_ACEOF 6074/* end confdefs.h. */ 6075#include <ac_nonexistent.h> 6076_ACEOF 6077if { (ac_try="$ac_cpp conftest.$ac_ext" 6078case "(($ac_try" in 6079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6080 *) ac_try_echo=$ac_try;; 6081esac 6082eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6083$as_echo "$ac_try_echo") >&5 6084 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6085 ac_status=$? 6086 grep -v '^ *+' conftest.er1 >conftest.err 6087 rm -f conftest.er1 6088 cat conftest.err >&5 6089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6090 (exit $ac_status); } >/dev/null && { 6091 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6092 test ! -s conftest.err 6093 }; then 6094 # Broken: success on invalid input. 6095continue 6096else 6097 $as_echo "$as_me: failed program was:" >&5 6098sed 's/^/| /' conftest.$ac_ext >&5 6099 6100 # Passes both tests. 6101ac_preproc_ok=: 6102break 6103fi 6104 6105rm -f conftest.err conftest.$ac_ext 6106 6107done 6108# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6109rm -f conftest.err conftest.$ac_ext 6110if $ac_preproc_ok; then 6111 : 6112else 6113 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 6114$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6115{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6116See \`config.log' for more details." >&5 6117$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6118See \`config.log' for more details." >&2;} 6119 { (exit 1); exit 1; }; }; } 6120fi 6121 6122ac_ext=cpp 6123ac_cpp='$CXXCPP $CPPFLAGS' 6124ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6125ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6126ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6127 6128fi 6129 6130 6131ac_ext=f 6132ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6133ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6134ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6135if test -n "$ac_tool_prefix"; then 6136 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 6137 do 6138 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6139set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6140{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6141$as_echo_n "checking for $ac_word... " >&6; } 6142if test "${ac_cv_prog_F77+set}" = set; then 6143 $as_echo_n "(cached) " >&6 6144else 6145 if test -n "$F77"; then 6146 ac_cv_prog_F77="$F77" # Let the user override the test. 6147else 6148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6149for as_dir in $PATH 6150do 6151 IFS=$as_save_IFS 6152 test -z "$as_dir" && as_dir=. 6153 for ac_exec_ext in '' $ac_executable_extensions; do 6154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6155 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 6156 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6157 break 2 6158 fi 6159done 6160done 6161IFS=$as_save_IFS 6162 6163fi 6164fi 6165F77=$ac_cv_prog_F77 6166if test -n "$F77"; then 6167 { $as_echo "$as_me:$LINENO: result: $F77" >&5 6168$as_echo "$F77" >&6; } 6169else 6170 { $as_echo "$as_me:$LINENO: result: no" >&5 6171$as_echo "no" >&6; } 6172fi 6173 6174 6175 test -n "$F77" && break 6176 done 6177fi 6178if test -z "$F77"; then 6179 ac_ct_F77=$F77 6180 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 6181do 6182 # Extract the first word of "$ac_prog", so it can be a program name with args. 6183set dummy $ac_prog; ac_word=$2 6184{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6185$as_echo_n "checking for $ac_word... " >&6; } 6186if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 6187 $as_echo_n "(cached) " >&6 6188else 6189 if test -n "$ac_ct_F77"; then 6190 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 6191else 6192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6193for as_dir in $PATH 6194do 6195 IFS=$as_save_IFS 6196 test -z "$as_dir" && as_dir=. 6197 for ac_exec_ext in '' $ac_executable_extensions; do 6198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6199 ac_cv_prog_ac_ct_F77="$ac_prog" 6200 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6201 break 2 6202 fi 6203done 6204done 6205IFS=$as_save_IFS 6206 6207fi 6208fi 6209ac_ct_F77=$ac_cv_prog_ac_ct_F77 6210if test -n "$ac_ct_F77"; then 6211 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 6212$as_echo "$ac_ct_F77" >&6; } 6213else 6214 { $as_echo "$as_me:$LINENO: result: no" >&5 6215$as_echo "no" >&6; } 6216fi 6217 6218 6219 test -n "$ac_ct_F77" && break 6220done 6221 6222 if test "x$ac_ct_F77" = x; then 6223 F77="" 6224 else 6225 case $cross_compiling:$ac_tool_warned in 6226yes:) 6227{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6228$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6229ac_tool_warned=yes ;; 6230esac 6231 F77=$ac_ct_F77 6232 fi 6233fi 6234 6235 6236# Provide some information about the compiler. 6237$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 6238set X $ac_compile 6239ac_compiler=$2 6240{ (ac_try="$ac_compiler --version >&5" 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_compiler --version >&5") 2>&5 6248 ac_status=$? 6249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6250 (exit $ac_status); } 6251{ (ac_try="$ac_compiler -v >&5" 6252case "(($ac_try" in 6253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6254 *) ac_try_echo=$ac_try;; 6255esac 6256eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6257$as_echo "$ac_try_echo") >&5 6258 (eval "$ac_compiler -v >&5") 2>&5 6259 ac_status=$? 6260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6261 (exit $ac_status); } 6262{ (ac_try="$ac_compiler -V >&5" 6263case "(($ac_try" in 6264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6265 *) ac_try_echo=$ac_try;; 6266esac 6267eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6268$as_echo "$ac_try_echo") >&5 6269 (eval "$ac_compiler -V >&5") 2>&5 6270 ac_status=$? 6271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6272 (exit $ac_status); } 6273rm -f a.out 6274 6275# If we don't use `.F' as extension, the preprocessor is not run on the 6276# input file. (Note that this only needs to work for GNU compilers.) 6277ac_save_ext=$ac_ext 6278ac_ext=F 6279{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6280$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; } 6281if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6282 $as_echo_n "(cached) " >&6 6283else 6284 cat >conftest.$ac_ext <<_ACEOF 6285 program main 6286#ifndef __GNUC__ 6287 choke me 6288#endif 6289 6290 end 6291_ACEOF 6292rm -f conftest.$ac_objext 6293if { (ac_try="$ac_compile" 6294case "(($ac_try" in 6295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6296 *) ac_try_echo=$ac_try;; 6297esac 6298eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6299$as_echo "$ac_try_echo") >&5 6300 (eval "$ac_compile") 2>conftest.er1 6301 ac_status=$? 6302 grep -v '^ *+' conftest.er1 >conftest.err 6303 rm -f conftest.er1 6304 cat conftest.err >&5 6305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6306 (exit $ac_status); } && { 6307 test -z "$ac_f77_werror_flag" || 6308 test ! -s conftest.err 6309 } && test -s conftest.$ac_objext; then 6310 ac_compiler_gnu=yes 6311else 6312 $as_echo "$as_me: failed program was:" >&5 6313sed 's/^/| /' conftest.$ac_ext >&5 6314 6315 ac_compiler_gnu=no 6316fi 6317 6318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6319ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6320 6321fi 6322{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6323$as_echo "$ac_cv_f77_compiler_gnu" >&6; } 6324ac_ext=$ac_save_ext 6325ac_test_FFLAGS=${FFLAGS+set} 6326ac_save_FFLAGS=$FFLAGS 6327FFLAGS= 6328{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6329$as_echo_n "checking whether $F77 accepts -g... " >&6; } 6330if test "${ac_cv_prog_f77_g+set}" = set; then 6331 $as_echo_n "(cached) " >&6 6332else 6333 FFLAGS=-g 6334cat >conftest.$ac_ext <<_ACEOF 6335 program main 6336 6337 end 6338_ACEOF 6339rm -f conftest.$ac_objext 6340if { (ac_try="$ac_compile" 6341case "(($ac_try" in 6342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6343 *) ac_try_echo=$ac_try;; 6344esac 6345eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6346$as_echo "$ac_try_echo") >&5 6347 (eval "$ac_compile") 2>conftest.er1 6348 ac_status=$? 6349 grep -v '^ *+' conftest.er1 >conftest.err 6350 rm -f conftest.er1 6351 cat conftest.err >&5 6352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6353 (exit $ac_status); } && { 6354 test -z "$ac_f77_werror_flag" || 6355 test ! -s conftest.err 6356 } && test -s conftest.$ac_objext; then 6357 ac_cv_prog_f77_g=yes 6358else 6359 $as_echo "$as_me: failed program was:" >&5 6360sed 's/^/| /' conftest.$ac_ext >&5 6361 6362 ac_cv_prog_f77_g=no 6363fi 6364 6365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6366 6367fi 6368{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6369$as_echo "$ac_cv_prog_f77_g" >&6; } 6370if test "$ac_test_FFLAGS" = set; then 6371 FFLAGS=$ac_save_FFLAGS 6372elif test $ac_cv_prog_f77_g = yes; then 6373 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6374 FFLAGS="-g -O2" 6375 else 6376 FFLAGS="-g" 6377 fi 6378else 6379 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6380 FFLAGS="-O2" 6381 else 6382 FFLAGS= 6383 fi 6384fi 6385 6386if test $ac_compiler_gnu = yes; then 6387 G77=yes 6388else 6389 G77= 6390fi 6391ac_ext=c 6392ac_cpp='$CPP $CPPFLAGS' 6393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6395ac_compiler_gnu=$ac_cv_c_compiler_gnu 6396 6397 6398 6399# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6400# find the maximum length of command line arguments 6401{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6402$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6403if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6404 $as_echo_n "(cached) " >&6 6405else 6406 i=0 6407 teststring="ABCD" 6408 6409 case $build_os in 6410 msdosdjgpp*) 6411 # On DJGPP, this test can blow up pretty badly due to problems in libc 6412 # (any single argument exceeding 2000 bytes causes a buffer overrun 6413 # during glob expansion). Even if it were fixed, the result of this 6414 # check would be larger than it should be. 6415 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6416 ;; 6417 6418 gnu*) 6419 # Under GNU Hurd, this test is not required because there is 6420 # no limit to the length of command line arguments. 6421 # Libtool will interpret -1 as no limit whatsoever 6422 lt_cv_sys_max_cmd_len=-1; 6423 ;; 6424 6425 cygwin* | mingw*) 6426 # On Win9x/ME, this test blows up -- it succeeds, but takes 6427 # about 5 minutes as the teststring grows exponentially. 6428 # Worse, since 9x/ME are not pre-emptively multitasking, 6429 # you end up with a "frozen" computer, even though with patience 6430 # the test eventually succeeds (with a max line length of 256k). 6431 # Instead, let's just punt: use the minimum linelength reported by 6432 # all of the supported platforms: 8192 (on NT/2K/XP). 6433 lt_cv_sys_max_cmd_len=8192; 6434 ;; 6435 6436 amigaos*) 6437 # On AmigaOS with pdksh, this test takes hours, literally. 6438 # So we just punt and use a minimum line length of 8192. 6439 lt_cv_sys_max_cmd_len=8192; 6440 ;; 6441 6442 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6443 # This has been around since 386BSD, at least. Likely further. 6444 if test -x /sbin/sysctl; then 6445 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6446 elif test -x /usr/sbin/sysctl; then 6447 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6448 else 6449 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6450 fi 6451 # And add a safety zone 6452 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6453 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6454 ;; 6455 6456 interix*) 6457 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6458 lt_cv_sys_max_cmd_len=196608 6459 ;; 6460 6461 osf*) 6462 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6463 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6464 # nice to cause kernel panics so lets avoid the loop below. 6465 # First set a reasonable default. 6466 lt_cv_sys_max_cmd_len=16384 6467 # 6468 if test -x /sbin/sysconfig; then 6469 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6470 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6471 esac 6472 fi 6473 ;; 6474 sco3.2v5*) 6475 lt_cv_sys_max_cmd_len=102400 6476 ;; 6477 sysv5* | sco5v6* | sysv4.2uw2*) 6478 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6479 if test -n "$kargmax"; then 6480 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6481 else 6482 lt_cv_sys_max_cmd_len=32768 6483 fi 6484 ;; 6485 *) 6486 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6487 if test -n "$lt_cv_sys_max_cmd_len"; then 6488 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6489 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6490 else 6491 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6492 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6493 = "XX$teststring") >/dev/null 2>&1 && 6494 new_result=`expr "X$teststring" : ".*" 2>&1` && 6495 lt_cv_sys_max_cmd_len=$new_result && 6496 test $i != 17 # 1/2 MB should be enough 6497 do 6498 i=`expr $i + 1` 6499 teststring=$teststring$teststring 6500 done 6501 teststring= 6502 # Add a significant safety factor because C++ compilers can tack on massive 6503 # amounts of additional arguments before passing them to the linker. 6504 # It appears as though 1/2 is a usable value. 6505 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6506 fi 6507 ;; 6508 esac 6509 6510fi 6511 6512if test -n $lt_cv_sys_max_cmd_len ; then 6513 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6514$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6515else 6516 { $as_echo "$as_me:$LINENO: result: none" >&5 6517$as_echo "none" >&6; } 6518fi 6519 6520 6521 6522 6523 6524# Check for command to grab the raw symbol name followed by C symbol from nm. 6525{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6526$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6527if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6528 $as_echo_n "(cached) " >&6 6529else 6530 6531# These are sane defaults that work on at least a few old systems. 6532# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6533 6534# Character class describing NM global symbol codes. 6535symcode='[BCDEGRST]' 6536 6537# Regexp to match symbols that can be accessed directly from C. 6538sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6539 6540# Transform an extracted symbol line into a proper C declaration 6541lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6542 6543# Transform an extracted symbol line into symbol name and symbol address 6544lt_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'" 6545 6546# Define system-specific variables. 6547case $host_os in 6548aix*) 6549 symcode='[BCDT]' 6550 ;; 6551cygwin* | mingw* | pw32*) 6552 symcode='[ABCDGISTW]' 6553 ;; 6554hpux*) # Its linker distinguishes data from code symbols 6555 if test "$host_cpu" = ia64; then 6556 symcode='[ABCDEGRST]' 6557 fi 6558 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6559 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'" 6560 ;; 6561linux* | k*bsd*-gnu) 6562 if test "$host_cpu" = ia64; then 6563 symcode='[ABCDGIRSTW]' 6564 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6565 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'" 6566 fi 6567 ;; 6568irix* | nonstopux*) 6569 symcode='[BCDEGRST]' 6570 ;; 6571osf*) 6572 symcode='[BCDEGQRST]' 6573 ;; 6574solaris*) 6575 symcode='[BDRT]' 6576 ;; 6577sco3.2v5*) 6578 symcode='[DT]' 6579 ;; 6580sysv4.2uw2*) 6581 symcode='[DT]' 6582 ;; 6583sysv5* | sco5v6* | unixware* | OpenUNIX*) 6584 symcode='[ABDT]' 6585 ;; 6586sysv4) 6587 symcode='[DFNSTU]' 6588 ;; 6589esac 6590 6591# Handle CRLF in mingw tool chain 6592opt_cr= 6593case $build_os in 6594mingw*) 6595 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6596 ;; 6597esac 6598 6599# If we're using GNU nm, then use its standard symbol codes. 6600case `$NM -V 2>&1` in 6601*GNU* | *'with BFD'*) 6602 symcode='[ABCDGIRSTW]' ;; 6603esac 6604 6605# Try without a prefix undercore, then with it. 6606for ac_symprfx in "" "_"; do 6607 6608 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6609 symxfrm="\\1 $ac_symprfx\\2 \\2" 6610 6611 # Write the raw and C identifiers. 6612 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6613 6614 # Check to see that the pipe works correctly. 6615 pipe_works=no 6616 6617 rm -f conftest* 6618 cat > conftest.$ac_ext <<EOF 6619#ifdef __cplusplus 6620extern "C" { 6621#endif 6622char nm_test_var; 6623void nm_test_func(){} 6624#ifdef __cplusplus 6625} 6626#endif 6627int main(){nm_test_var='a';nm_test_func();return(0);} 6628EOF 6629 6630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6631 (eval $ac_compile) 2>&5 6632 ac_status=$? 6633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6634 (exit $ac_status); }; then 6635 # Now try to grab the symbols. 6636 nlist=conftest.nm 6637 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6638 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6639 ac_status=$? 6640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6641 (exit $ac_status); } && test -s "$nlist"; then 6642 # Try sorting and uniquifying the output. 6643 if sort "$nlist" | uniq > "$nlist"T; then 6644 mv -f "$nlist"T "$nlist" 6645 else 6646 rm -f "$nlist"T 6647 fi 6648 6649 # Make sure that we snagged all the symbols we need. 6650 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6651 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6652 cat <<EOF > conftest.$ac_ext 6653#ifdef __cplusplus 6654extern "C" { 6655#endif 6656 6657EOF 6658 # Now generate the symbol file. 6659 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6660 6661 cat <<EOF >> conftest.$ac_ext 6662#if defined (__STDC__) && __STDC__ 6663# define lt_ptr_t void * 6664#else 6665# define lt_ptr_t char * 6666# define const 6667#endif 6668 6669/* The mapping between symbol names and symbols. */ 6670const struct { 6671 const char *name; 6672 lt_ptr_t address; 6673} 6674lt_preloaded_symbols[] = 6675{ 6676EOF 6677 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6678 cat <<\EOF >> conftest.$ac_ext 6679 {0, (lt_ptr_t) 0} 6680}; 6681 6682#ifdef __cplusplus 6683} 6684#endif 6685EOF 6686 # Now try linking the two files. 6687 mv conftest.$ac_objext conftstm.$ac_objext 6688 lt_save_LIBS="$LIBS" 6689 lt_save_CFLAGS="$CFLAGS" 6690 LIBS="conftstm.$ac_objext" 6691 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6693 (eval $ac_link) 2>&5 6694 ac_status=$? 6695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6696 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6697 pipe_works=yes 6698 fi 6699 LIBS="$lt_save_LIBS" 6700 CFLAGS="$lt_save_CFLAGS" 6701 else 6702 echo "cannot find nm_test_func in $nlist" >&5 6703 fi 6704 else 6705 echo "cannot find nm_test_var in $nlist" >&5 6706 fi 6707 else 6708 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6709 fi 6710 else 6711 echo "$progname: failed program was:" >&5 6712 cat conftest.$ac_ext >&5 6713 fi 6714 rm -rf conftest* conftst* 6715 6716 # Do not use the global_symbol_pipe unless it works. 6717 if test "$pipe_works" = yes; then 6718 break 6719 else 6720 lt_cv_sys_global_symbol_pipe= 6721 fi 6722done 6723 6724fi 6725 6726if test -z "$lt_cv_sys_global_symbol_pipe"; then 6727 lt_cv_sys_global_symbol_to_cdecl= 6728fi 6729if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6730 { $as_echo "$as_me:$LINENO: result: failed" >&5 6731$as_echo "failed" >&6; } 6732else 6733 { $as_echo "$as_me:$LINENO: result: ok" >&5 6734$as_echo "ok" >&6; } 6735fi 6736 6737{ $as_echo "$as_me:$LINENO: checking for objdir" >&5 6738$as_echo_n "checking for objdir... " >&6; } 6739if test "${lt_cv_objdir+set}" = set; then 6740 $as_echo_n "(cached) " >&6 6741else 6742 rm -f .libs 2>/dev/null 6743mkdir .libs 2>/dev/null 6744if test -d .libs; then 6745 lt_cv_objdir=.libs 6746else 6747 # MS-DOS does not allow filenames that begin with a dot. 6748 lt_cv_objdir=_libs 6749fi 6750rmdir .libs 2>/dev/null 6751fi 6752{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6753$as_echo "$lt_cv_objdir" >&6; } 6754objdir=$lt_cv_objdir 6755 6756 6757 6758 6759 6760case $host_os in 6761aix3*) 6762 # AIX sometimes has problems with the GCC collect2 program. For some 6763 # reason, if we set the COLLECT_NAMES environment variable, the problems 6764 # vanish in a puff of smoke. 6765 if test "X${COLLECT_NAMES+set}" != Xset; then 6766 COLLECT_NAMES= 6767 export COLLECT_NAMES 6768 fi 6769 ;; 6770esac 6771 6772# Sed substitution that helps us do robust quoting. It backslashifies 6773# metacharacters that are still active within double-quoted strings. 6774Xsed='sed -e 1s/^X//' 6775sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6776 6777# Same as above, but do not quote variable references. 6778double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6779 6780# Sed substitution to delay expansion of an escaped shell variable in a 6781# double_quote_subst'ed string. 6782delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6783 6784# Sed substitution to avoid accidental globbing in evaled expressions 6785no_glob_subst='s/\*/\\\*/g' 6786 6787# Constants: 6788rm="rm -f" 6789 6790# Global variables: 6791default_ofile=libtool 6792can_build_shared=yes 6793 6794# All known linkers require a `.a' archive for static linking (except MSVC, 6795# which needs '.lib'). 6796libext=a 6797ltmain="$ac_aux_dir/ltmain.sh" 6798ofile="$default_ofile" 6799with_gnu_ld="$lt_cv_prog_gnu_ld" 6800 6801if test -n "$ac_tool_prefix"; then 6802 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6803set dummy ${ac_tool_prefix}ar; ac_word=$2 6804{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6805$as_echo_n "checking for $ac_word... " >&6; } 6806if test "${ac_cv_prog_AR+set}" = set; then 6807 $as_echo_n "(cached) " >&6 6808else 6809 if test -n "$AR"; then 6810 ac_cv_prog_AR="$AR" # Let the user override the test. 6811else 6812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6813for as_dir in $PATH 6814do 6815 IFS=$as_save_IFS 6816 test -z "$as_dir" && as_dir=. 6817 for ac_exec_ext in '' $ac_executable_extensions; do 6818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6819 ac_cv_prog_AR="${ac_tool_prefix}ar" 6820 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6821 break 2 6822 fi 6823done 6824done 6825IFS=$as_save_IFS 6826 6827fi 6828fi 6829AR=$ac_cv_prog_AR 6830if test -n "$AR"; then 6831 { $as_echo "$as_me:$LINENO: result: $AR" >&5 6832$as_echo "$AR" >&6; } 6833else 6834 { $as_echo "$as_me:$LINENO: result: no" >&5 6835$as_echo "no" >&6; } 6836fi 6837 6838 6839fi 6840if test -z "$ac_cv_prog_AR"; then 6841 ac_ct_AR=$AR 6842 # Extract the first word of "ar", so it can be a program name with args. 6843set dummy ar; ac_word=$2 6844{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6845$as_echo_n "checking for $ac_word... " >&6; } 6846if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6847 $as_echo_n "(cached) " >&6 6848else 6849 if test -n "$ac_ct_AR"; then 6850 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6851else 6852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6853for as_dir in $PATH 6854do 6855 IFS=$as_save_IFS 6856 test -z "$as_dir" && as_dir=. 6857 for ac_exec_ext in '' $ac_executable_extensions; do 6858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6859 ac_cv_prog_ac_ct_AR="ar" 6860 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6861 break 2 6862 fi 6863done 6864done 6865IFS=$as_save_IFS 6866 6867fi 6868fi 6869ac_ct_AR=$ac_cv_prog_ac_ct_AR 6870if test -n "$ac_ct_AR"; then 6871 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6872$as_echo "$ac_ct_AR" >&6; } 6873else 6874 { $as_echo "$as_me:$LINENO: result: no" >&5 6875$as_echo "no" >&6; } 6876fi 6877 6878 if test "x$ac_ct_AR" = x; then 6879 AR="false" 6880 else 6881 case $cross_compiling:$ac_tool_warned in 6882yes:) 6883{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6884$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6885ac_tool_warned=yes ;; 6886esac 6887 AR=$ac_ct_AR 6888 fi 6889else 6890 AR="$ac_cv_prog_AR" 6891fi 6892 6893if test -n "$ac_tool_prefix"; then 6894 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6895set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6896{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6897$as_echo_n "checking for $ac_word... " >&6; } 6898if test "${ac_cv_prog_RANLIB+set}" = set; then 6899 $as_echo_n "(cached) " >&6 6900else 6901 if test -n "$RANLIB"; then 6902 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6903else 6904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6905for as_dir in $PATH 6906do 6907 IFS=$as_save_IFS 6908 test -z "$as_dir" && as_dir=. 6909 for ac_exec_ext in '' $ac_executable_extensions; do 6910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6911 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6912 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6913 break 2 6914 fi 6915done 6916done 6917IFS=$as_save_IFS 6918 6919fi 6920fi 6921RANLIB=$ac_cv_prog_RANLIB 6922if test -n "$RANLIB"; then 6923 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 6924$as_echo "$RANLIB" >&6; } 6925else 6926 { $as_echo "$as_me:$LINENO: result: no" >&5 6927$as_echo "no" >&6; } 6928fi 6929 6930 6931fi 6932if test -z "$ac_cv_prog_RANLIB"; then 6933 ac_ct_RANLIB=$RANLIB 6934 # Extract the first word of "ranlib", so it can be a program name with args. 6935set dummy ranlib; ac_word=$2 6936{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6937$as_echo_n "checking for $ac_word... " >&6; } 6938if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6939 $as_echo_n "(cached) " >&6 6940else 6941 if test -n "$ac_ct_RANLIB"; then 6942 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6943else 6944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6945for as_dir in $PATH 6946do 6947 IFS=$as_save_IFS 6948 test -z "$as_dir" && as_dir=. 6949 for ac_exec_ext in '' $ac_executable_extensions; do 6950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6951 ac_cv_prog_ac_ct_RANLIB="ranlib" 6952 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6953 break 2 6954 fi 6955done 6956done 6957IFS=$as_save_IFS 6958 6959fi 6960fi 6961ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6962if test -n "$ac_ct_RANLIB"; then 6963 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6964$as_echo "$ac_ct_RANLIB" >&6; } 6965else 6966 { $as_echo "$as_me:$LINENO: result: no" >&5 6967$as_echo "no" >&6; } 6968fi 6969 6970 if test "x$ac_ct_RANLIB" = x; then 6971 RANLIB=":" 6972 else 6973 case $cross_compiling:$ac_tool_warned in 6974yes:) 6975{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6976$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6977ac_tool_warned=yes ;; 6978esac 6979 RANLIB=$ac_ct_RANLIB 6980 fi 6981else 6982 RANLIB="$ac_cv_prog_RANLIB" 6983fi 6984 6985if test -n "$ac_tool_prefix"; then 6986 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6987set dummy ${ac_tool_prefix}strip; ac_word=$2 6988{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6989$as_echo_n "checking for $ac_word... " >&6; } 6990if test "${ac_cv_prog_STRIP+set}" = set; then 6991 $as_echo_n "(cached) " >&6 6992else 6993 if test -n "$STRIP"; then 6994 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6995else 6996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6997for as_dir in $PATH 6998do 6999 IFS=$as_save_IFS 7000 test -z "$as_dir" && as_dir=. 7001 for ac_exec_ext in '' $ac_executable_extensions; do 7002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7003 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7004 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7005 break 2 7006 fi 7007done 7008done 7009IFS=$as_save_IFS 7010 7011fi 7012fi 7013STRIP=$ac_cv_prog_STRIP 7014if test -n "$STRIP"; then 7015 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 7016$as_echo "$STRIP" >&6; } 7017else 7018 { $as_echo "$as_me:$LINENO: result: no" >&5 7019$as_echo "no" >&6; } 7020fi 7021 7022 7023fi 7024if test -z "$ac_cv_prog_STRIP"; then 7025 ac_ct_STRIP=$STRIP 7026 # Extract the first word of "strip", so it can be a program name with args. 7027set dummy strip; ac_word=$2 7028{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7029$as_echo_n "checking for $ac_word... " >&6; } 7030if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 7031 $as_echo_n "(cached) " >&6 7032else 7033 if test -n "$ac_ct_STRIP"; then 7034 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7035else 7036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7037for as_dir in $PATH 7038do 7039 IFS=$as_save_IFS 7040 test -z "$as_dir" && as_dir=. 7041 for ac_exec_ext in '' $ac_executable_extensions; do 7042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7043 ac_cv_prog_ac_ct_STRIP="strip" 7044 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7045 break 2 7046 fi 7047done 7048done 7049IFS=$as_save_IFS 7050 7051fi 7052fi 7053ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7054if test -n "$ac_ct_STRIP"; then 7055 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 7056$as_echo "$ac_ct_STRIP" >&6; } 7057else 7058 { $as_echo "$as_me:$LINENO: result: no" >&5 7059$as_echo "no" >&6; } 7060fi 7061 7062 if test "x$ac_ct_STRIP" = x; then 7063 STRIP=":" 7064 else 7065 case $cross_compiling:$ac_tool_warned in 7066yes:) 7067{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7068$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7069ac_tool_warned=yes ;; 7070esac 7071 STRIP=$ac_ct_STRIP 7072 fi 7073else 7074 STRIP="$ac_cv_prog_STRIP" 7075fi 7076 7077 7078old_CC="$CC" 7079old_CFLAGS="$CFLAGS" 7080 7081# Set sane defaults for various variables 7082test -z "$AR" && AR=ar 7083test -z "$AR_FLAGS" && AR_FLAGS=cru 7084test -z "$AS" && AS=as 7085test -z "$CC" && CC=cc 7086test -z "$LTCC" && LTCC=$CC 7087test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7088test -z "$DLLTOOL" && DLLTOOL=dlltool 7089test -z "$LD" && LD=ld 7090test -z "$LN_S" && LN_S="ln -s" 7091test -z "$MAGIC_CMD" && MAGIC_CMD=file 7092test -z "$NM" && NM=nm 7093test -z "$SED" && SED=sed 7094test -z "$OBJDUMP" && OBJDUMP=objdump 7095test -z "$RANLIB" && RANLIB=: 7096test -z "$STRIP" && STRIP=: 7097test -z "$ac_objext" && ac_objext=o 7098 7099# Determine commands to create old-style static archives. 7100old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7101old_postinstall_cmds='chmod 644 $oldlib' 7102old_postuninstall_cmds= 7103 7104if test -n "$RANLIB"; then 7105 case $host_os in 7106 openbsd*) 7107 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7108 ;; 7109 *) 7110 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7111 ;; 7112 esac 7113 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7114fi 7115 7116for cc_temp in $compiler""; do 7117 case $cc_temp in 7118 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7119 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7120 \-*) ;; 7121 *) break;; 7122 esac 7123done 7124cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7125 7126 7127# Only perform the check for file, if the check method requires it 7128case $deplibs_check_method in 7129file_magic*) 7130 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7131 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7132$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7133if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7134 $as_echo_n "(cached) " >&6 7135else 7136 case $MAGIC_CMD in 7137[\\/*] | ?:[\\/]*) 7138 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7139 ;; 7140*) 7141 lt_save_MAGIC_CMD="$MAGIC_CMD" 7142 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7143 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7144 for ac_dir in $ac_dummy; do 7145 IFS="$lt_save_ifs" 7146 test -z "$ac_dir" && ac_dir=. 7147 if test -f $ac_dir/${ac_tool_prefix}file; then 7148 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7149 if test -n "$file_magic_test_file"; then 7150 case $deplibs_check_method in 7151 "file_magic "*) 7152 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7153 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7154 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7155 $EGREP "$file_magic_regex" > /dev/null; then 7156 : 7157 else 7158 cat <<EOF 1>&2 7159 7160*** Warning: the command libtool uses to detect shared libraries, 7161*** $file_magic_cmd, produces output that libtool cannot recognize. 7162*** The result is that libtool may fail to recognize shared libraries 7163*** as such. This will affect the creation of libtool libraries that 7164*** depend on shared libraries, but programs linked with such libtool 7165*** libraries will work regardless of this problem. Nevertheless, you 7166*** may want to report the problem to your system manager and/or to 7167*** bug-libtool@gnu.org 7168 7169EOF 7170 fi ;; 7171 esac 7172 fi 7173 break 7174 fi 7175 done 7176 IFS="$lt_save_ifs" 7177 MAGIC_CMD="$lt_save_MAGIC_CMD" 7178 ;; 7179esac 7180fi 7181 7182MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7183if test -n "$MAGIC_CMD"; then 7184 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7185$as_echo "$MAGIC_CMD" >&6; } 7186else 7187 { $as_echo "$as_me:$LINENO: result: no" >&5 7188$as_echo "no" >&6; } 7189fi 7190 7191if test -z "$lt_cv_path_MAGIC_CMD"; then 7192 if test -n "$ac_tool_prefix"; then 7193 { $as_echo "$as_me:$LINENO: checking for file" >&5 7194$as_echo_n "checking for file... " >&6; } 7195if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7196 $as_echo_n "(cached) " >&6 7197else 7198 case $MAGIC_CMD in 7199[\\/*] | ?:[\\/]*) 7200 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7201 ;; 7202*) 7203 lt_save_MAGIC_CMD="$MAGIC_CMD" 7204 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7205 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7206 for ac_dir in $ac_dummy; do 7207 IFS="$lt_save_ifs" 7208 test -z "$ac_dir" && ac_dir=. 7209 if test -f $ac_dir/file; then 7210 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7211 if test -n "$file_magic_test_file"; then 7212 case $deplibs_check_method in 7213 "file_magic "*) 7214 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7215 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7216 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7217 $EGREP "$file_magic_regex" > /dev/null; then 7218 : 7219 else 7220 cat <<EOF 1>&2 7221 7222*** Warning: the command libtool uses to detect shared libraries, 7223*** $file_magic_cmd, produces output that libtool cannot recognize. 7224*** The result is that libtool may fail to recognize shared libraries 7225*** as such. This will affect the creation of libtool libraries that 7226*** depend on shared libraries, but programs linked with such libtool 7227*** libraries will work regardless of this problem. Nevertheless, you 7228*** may want to report the problem to your system manager and/or to 7229*** bug-libtool@gnu.org 7230 7231EOF 7232 fi ;; 7233 esac 7234 fi 7235 break 7236 fi 7237 done 7238 IFS="$lt_save_ifs" 7239 MAGIC_CMD="$lt_save_MAGIC_CMD" 7240 ;; 7241esac 7242fi 7243 7244MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7245if test -n "$MAGIC_CMD"; then 7246 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7247$as_echo "$MAGIC_CMD" >&6; } 7248else 7249 { $as_echo "$as_me:$LINENO: result: no" >&5 7250$as_echo "no" >&6; } 7251fi 7252 7253 else 7254 MAGIC_CMD=: 7255 fi 7256fi 7257 7258 fi 7259 ;; 7260esac 7261 7262 7263 case $host_os in 7264 rhapsody* | darwin*) 7265 if test -n "$ac_tool_prefix"; then 7266 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7267set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7268{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7269$as_echo_n "checking for $ac_word... " >&6; } 7270if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 7271 $as_echo_n "(cached) " >&6 7272else 7273 if test -n "$DSYMUTIL"; then 7274 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7275else 7276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7277for as_dir in $PATH 7278do 7279 IFS=$as_save_IFS 7280 test -z "$as_dir" && as_dir=. 7281 for ac_exec_ext in '' $ac_executable_extensions; do 7282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7283 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7284 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7285 break 2 7286 fi 7287done 7288done 7289IFS=$as_save_IFS 7290 7291fi 7292fi 7293DSYMUTIL=$ac_cv_prog_DSYMUTIL 7294if test -n "$DSYMUTIL"; then 7295 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 7296$as_echo "$DSYMUTIL" >&6; } 7297else 7298 { $as_echo "$as_me:$LINENO: result: no" >&5 7299$as_echo "no" >&6; } 7300fi 7301 7302 7303fi 7304if test -z "$ac_cv_prog_DSYMUTIL"; then 7305 ac_ct_DSYMUTIL=$DSYMUTIL 7306 # Extract the first word of "dsymutil", so it can be a program name with args. 7307set dummy dsymutil; ac_word=$2 7308{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7309$as_echo_n "checking for $ac_word... " >&6; } 7310if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 7311 $as_echo_n "(cached) " >&6 7312else 7313 if test -n "$ac_ct_DSYMUTIL"; then 7314 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7315else 7316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7317for as_dir in $PATH 7318do 7319 IFS=$as_save_IFS 7320 test -z "$as_dir" && as_dir=. 7321 for ac_exec_ext in '' $ac_executable_extensions; do 7322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7323 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7324 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7325 break 2 7326 fi 7327done 7328done 7329IFS=$as_save_IFS 7330 7331fi 7332fi 7333ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7334if test -n "$ac_ct_DSYMUTIL"; then 7335 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 7336$as_echo "$ac_ct_DSYMUTIL" >&6; } 7337else 7338 { $as_echo "$as_me:$LINENO: result: no" >&5 7339$as_echo "no" >&6; } 7340fi 7341 7342 if test "x$ac_ct_DSYMUTIL" = x; then 7343 DSYMUTIL=":" 7344 else 7345 case $cross_compiling:$ac_tool_warned in 7346yes:) 7347{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7348$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7349ac_tool_warned=yes ;; 7350esac 7351 DSYMUTIL=$ac_ct_DSYMUTIL 7352 fi 7353else 7354 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7355fi 7356 7357 if test -n "$ac_tool_prefix"; then 7358 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7359set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7360{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7361$as_echo_n "checking for $ac_word... " >&6; } 7362if test "${ac_cv_prog_NMEDIT+set}" = set; then 7363 $as_echo_n "(cached) " >&6 7364else 7365 if test -n "$NMEDIT"; then 7366 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7367else 7368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7369for as_dir in $PATH 7370do 7371 IFS=$as_save_IFS 7372 test -z "$as_dir" && as_dir=. 7373 for ac_exec_ext in '' $ac_executable_extensions; do 7374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7375 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7376 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7377 break 2 7378 fi 7379done 7380done 7381IFS=$as_save_IFS 7382 7383fi 7384fi 7385NMEDIT=$ac_cv_prog_NMEDIT 7386if test -n "$NMEDIT"; then 7387 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 7388$as_echo "$NMEDIT" >&6; } 7389else 7390 { $as_echo "$as_me:$LINENO: result: no" >&5 7391$as_echo "no" >&6; } 7392fi 7393 7394 7395fi 7396if test -z "$ac_cv_prog_NMEDIT"; then 7397 ac_ct_NMEDIT=$NMEDIT 7398 # Extract the first word of "nmedit", so it can be a program name with args. 7399set dummy nmedit; ac_word=$2 7400{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7401$as_echo_n "checking for $ac_word... " >&6; } 7402if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 7403 $as_echo_n "(cached) " >&6 7404else 7405 if test -n "$ac_ct_NMEDIT"; then 7406 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7407else 7408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7409for as_dir in $PATH 7410do 7411 IFS=$as_save_IFS 7412 test -z "$as_dir" && as_dir=. 7413 for ac_exec_ext in '' $ac_executable_extensions; do 7414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7415 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7416 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7417 break 2 7418 fi 7419done 7420done 7421IFS=$as_save_IFS 7422 7423fi 7424fi 7425ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7426if test -n "$ac_ct_NMEDIT"; then 7427 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 7428$as_echo "$ac_ct_NMEDIT" >&6; } 7429else 7430 { $as_echo "$as_me:$LINENO: result: no" >&5 7431$as_echo "no" >&6; } 7432fi 7433 7434 if test "x$ac_ct_NMEDIT" = x; then 7435 NMEDIT=":" 7436 else 7437 case $cross_compiling:$ac_tool_warned in 7438yes:) 7439{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7440$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7441ac_tool_warned=yes ;; 7442esac 7443 NMEDIT=$ac_ct_NMEDIT 7444 fi 7445else 7446 NMEDIT="$ac_cv_prog_NMEDIT" 7447fi 7448 7449 7450 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 7451$as_echo_n "checking for -single_module linker flag... " >&6; } 7452if test "${lt_cv_apple_cc_single_mod+set}" = set; then 7453 $as_echo_n "(cached) " >&6 7454else 7455 lt_cv_apple_cc_single_mod=no 7456 if test -z "${LT_MULTI_MODULE}"; then 7457 # By default we will add the -single_module flag. You can override 7458 # by either setting the environment variable LT_MULTI_MODULE 7459 # non-empty at configure time, or by adding -multi_module to the 7460 # link flags. 7461 echo "int foo(void){return 1;}" > conftest.c 7462 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7463 -dynamiclib ${wl}-single_module conftest.c 7464 if test -f libconftest.dylib; then 7465 lt_cv_apple_cc_single_mod=yes 7466 rm -rf libconftest.dylib* 7467 fi 7468 rm conftest.c 7469 fi 7470fi 7471{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 7472$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7473 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 7474$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7475if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 7476 $as_echo_n "(cached) " >&6 7477else 7478 lt_cv_ld_exported_symbols_list=no 7479 save_LDFLAGS=$LDFLAGS 7480 echo "_main" > conftest.sym 7481 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7482 cat >conftest.$ac_ext <<_ACEOF 7483/* confdefs.h. */ 7484_ACEOF 7485cat confdefs.h >>conftest.$ac_ext 7486cat >>conftest.$ac_ext <<_ACEOF 7487/* end confdefs.h. */ 7488 7489int 7490main () 7491{ 7492 7493 ; 7494 return 0; 7495} 7496_ACEOF 7497rm -f conftest.$ac_objext conftest$ac_exeext 7498if { (ac_try="$ac_link" 7499case "(($ac_try" in 7500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7501 *) ac_try_echo=$ac_try;; 7502esac 7503eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7504$as_echo "$ac_try_echo") >&5 7505 (eval "$ac_link") 2>conftest.er1 7506 ac_status=$? 7507 grep -v '^ *+' conftest.er1 >conftest.err 7508 rm -f conftest.er1 7509 cat conftest.err >&5 7510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7511 (exit $ac_status); } && { 7512 test -z "$ac_c_werror_flag" || 7513 test ! -s conftest.err 7514 } && test -s conftest$ac_exeext && { 7515 test "$cross_compiling" = yes || 7516 $as_test_x conftest$ac_exeext 7517 }; then 7518 lt_cv_ld_exported_symbols_list=yes 7519else 7520 $as_echo "$as_me: failed program was:" >&5 7521sed 's/^/| /' conftest.$ac_ext >&5 7522 7523 lt_cv_ld_exported_symbols_list=no 7524fi 7525 7526rm -rf conftest.dSYM 7527rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7528 conftest$ac_exeext conftest.$ac_ext 7529 LDFLAGS="$save_LDFLAGS" 7530 7531fi 7532{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 7533$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7534 case $host_os in 7535 rhapsody* | darwin1.[0123]) 7536 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7537 darwin1.*) 7538 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7539 darwin*) 7540 # if running on 10.5 or later, the deployment target defaults 7541 # to the OS version, if on x86, and 10.4, the deployment 7542 # target defaults to 10.4. Don't you love it? 7543 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7544 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7545 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7546 10.[012]*) 7547 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7548 10.*) 7549 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7550 esac 7551 ;; 7552 esac 7553 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7554 _lt_dar_single_mod='$single_module' 7555 fi 7556 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7557 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7558 else 7559 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}" 7560 fi 7561 if test "$DSYMUTIL" != ":"; then 7562 _lt_dsymutil="~$DSYMUTIL \$lib || :" 7563 else 7564 _lt_dsymutil= 7565 fi 7566 ;; 7567 esac 7568 7569 7570enable_dlopen=no 7571enable_win32_dll=no 7572 7573# Check whether --enable-libtool-lock was given. 7574if test "${enable_libtool_lock+set}" = set; then 7575 enableval=$enable_libtool_lock; 7576fi 7577 7578test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7579 7580 7581# Check whether --with-pic was given. 7582if test "${with_pic+set}" = set; then 7583 withval=$with_pic; pic_mode="$withval" 7584else 7585 pic_mode=default 7586fi 7587 7588test -z "$pic_mode" && pic_mode=default 7589 7590# Use C for the default configuration in the libtool script 7591tagname= 7592lt_save_CC="$CC" 7593ac_ext=c 7594ac_cpp='$CPP $CPPFLAGS' 7595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7597ac_compiler_gnu=$ac_cv_c_compiler_gnu 7598 7599 7600# Source file extension for C test sources. 7601ac_ext=c 7602 7603# Object file extension for compiled C test sources. 7604objext=o 7605objext=$objext 7606 7607# Code to be used in simple compile tests 7608lt_simple_compile_test_code="int some_variable = 0;" 7609 7610# Code to be used in simple link tests 7611lt_simple_link_test_code='int main(){return(0);}' 7612 7613 7614# If no C compiler was specified, use CC. 7615LTCC=${LTCC-"$CC"} 7616 7617# If no C compiler flags were specified, use CFLAGS. 7618LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7619 7620# Allow CC to be a program name with arguments. 7621compiler=$CC 7622 7623 7624# save warnings/boilerplate of simple test code 7625ac_outfile=conftest.$ac_objext 7626echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7627eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7628_lt_compiler_boilerplate=`cat conftest.err` 7629$rm conftest* 7630 7631ac_outfile=conftest.$ac_objext 7632echo "$lt_simple_link_test_code" >conftest.$ac_ext 7633eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7634_lt_linker_boilerplate=`cat conftest.err` 7635$rm -r conftest* 7636 7637 7638 7639lt_prog_compiler_no_builtin_flag= 7640 7641if test "$GCC" = yes; then 7642 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7643 7644 7645{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7646$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7647if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7648 $as_echo_n "(cached) " >&6 7649else 7650 lt_cv_prog_compiler_rtti_exceptions=no 7651 ac_outfile=conftest.$ac_objext 7652 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7653 lt_compiler_flag="-fno-rtti -fno-exceptions" 7654 # Insert the option either (1) after the last *FLAGS variable, or 7655 # (2) before a word containing "conftest.", or (3) at the end. 7656 # Note that $ac_compile itself does not contain backslashes and begins 7657 # with a dollar sign (not a hyphen), so the echo should work correctly. 7658 # The option is referenced via a variable to avoid confusing sed. 7659 lt_compile=`echo "$ac_compile" | $SED \ 7660 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7661 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7662 -e 's:$: $lt_compiler_flag:'` 7663 (eval echo "\"\$as_me:7663: $lt_compile\"" >&5) 7664 (eval "$lt_compile" 2>conftest.err) 7665 ac_status=$? 7666 cat conftest.err >&5 7667 echo "$as_me:7667: \$? = $ac_status" >&5 7668 if (exit $ac_status) && test -s "$ac_outfile"; then 7669 # The compiler can only warn and ignore the option if not recognized 7670 # So say no if there are warnings other than the usual output. 7671 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7672 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7673 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7674 lt_cv_prog_compiler_rtti_exceptions=yes 7675 fi 7676 fi 7677 $rm conftest* 7678 7679fi 7680{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7681$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7682 7683if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7684 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7685else 7686 : 7687fi 7688 7689fi 7690 7691lt_prog_compiler_wl= 7692lt_prog_compiler_pic= 7693lt_prog_compiler_static= 7694 7695{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7696$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7697 7698 if test "$GCC" = yes; then 7699 lt_prog_compiler_wl='-Wl,' 7700 lt_prog_compiler_static='-static' 7701 7702 case $host_os in 7703 aix*) 7704 # All AIX code is PIC. 7705 if test "$host_cpu" = ia64; then 7706 # AIX 5 now supports IA64 processor 7707 lt_prog_compiler_static='-Bstatic' 7708 fi 7709 ;; 7710 7711 amigaos*) 7712 # FIXME: we need at least 68020 code to build shared libraries, but 7713 # adding the `-m68020' flag to GCC prevents building anything better, 7714 # like `-m68040'. 7715 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7716 ;; 7717 7718 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7719 # PIC is the default for these OSes. 7720 ;; 7721 7722 mingw* | cygwin* | pw32* | os2*) 7723 # This hack is so that the source file can tell whether it is being 7724 # built for inclusion in a dll (and should export symbols for example). 7725 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7726 # (--disable-auto-import) libraries 7727 lt_prog_compiler_pic='-DDLL_EXPORT' 7728 ;; 7729 7730 darwin* | rhapsody*) 7731 # PIC is the default on this platform 7732 # Common symbols not allowed in MH_DYLIB files 7733 lt_prog_compiler_pic='-fno-common' 7734 ;; 7735 7736 interix[3-9]*) 7737 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7738 # Instead, we relocate shared libraries at runtime. 7739 ;; 7740 7741 msdosdjgpp*) 7742 # Just because we use GCC doesn't mean we suddenly get shared libraries 7743 # on systems that don't support them. 7744 lt_prog_compiler_can_build_shared=no 7745 enable_shared=no 7746 ;; 7747 7748 sysv4*MP*) 7749 if test -d /usr/nec; then 7750 lt_prog_compiler_pic=-Kconform_pic 7751 fi 7752 ;; 7753 7754 hpux*) 7755 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7756 # not for PA HP-UX. 7757 case $host_cpu in 7758 hppa*64*|ia64*) 7759 # +Z the default 7760 ;; 7761 *) 7762 lt_prog_compiler_pic='-fPIC' 7763 ;; 7764 esac 7765 ;; 7766 7767 *) 7768 lt_prog_compiler_pic='-fPIC' 7769 ;; 7770 esac 7771 else 7772 # PORTME Check for flag to pass linker flags through the system compiler. 7773 case $host_os in 7774 aix*) 7775 lt_prog_compiler_wl='-Wl,' 7776 if test "$host_cpu" = ia64; then 7777 # AIX 5 now supports IA64 processor 7778 lt_prog_compiler_static='-Bstatic' 7779 else 7780 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7781 fi 7782 ;; 7783 darwin*) 7784 # PIC is the default on this platform 7785 # Common symbols not allowed in MH_DYLIB files 7786 case $cc_basename in 7787 xlc*) 7788 lt_prog_compiler_pic='-qnocommon' 7789 lt_prog_compiler_wl='-Wl,' 7790 ;; 7791 esac 7792 ;; 7793 7794 mingw* | cygwin* | pw32* | os2*) 7795 # This hack is so that the source file can tell whether it is being 7796 # built for inclusion in a dll (and should export symbols for example). 7797 lt_prog_compiler_pic='-DDLL_EXPORT' 7798 ;; 7799 7800 hpux9* | hpux10* | hpux11*) 7801 lt_prog_compiler_wl='-Wl,' 7802 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7803 # not for PA HP-UX. 7804 case $host_cpu in 7805 hppa*64*|ia64*) 7806 # +Z the default 7807 ;; 7808 *) 7809 lt_prog_compiler_pic='+Z' 7810 ;; 7811 esac 7812 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7813 lt_prog_compiler_static='${wl}-a ${wl}archive' 7814 ;; 7815 7816 irix5* | irix6* | nonstopux*) 7817 lt_prog_compiler_wl='-Wl,' 7818 # PIC (with -KPIC) is the default. 7819 lt_prog_compiler_static='-non_shared' 7820 ;; 7821 7822 newsos6) 7823 lt_prog_compiler_pic='-KPIC' 7824 lt_prog_compiler_static='-Bstatic' 7825 ;; 7826 7827 linux* | k*bsd*-gnu) 7828 case $cc_basename in 7829 icc* | ecc*) 7830 lt_prog_compiler_wl='-Wl,' 7831 lt_prog_compiler_pic='-KPIC' 7832 lt_prog_compiler_static='-static' 7833 ;; 7834 pgcc* | pgf77* | pgf90* | pgf95*) 7835 # Portland Group compilers (*not* the Pentium gcc compiler, 7836 # which looks to be a dead project) 7837 lt_prog_compiler_wl='-Wl,' 7838 lt_prog_compiler_pic='-fpic' 7839 lt_prog_compiler_static='-Bstatic' 7840 ;; 7841 ccc*) 7842 lt_prog_compiler_wl='-Wl,' 7843 # All Alpha code is PIC. 7844 lt_prog_compiler_static='-non_shared' 7845 ;; 7846 *) 7847 case `$CC -V 2>&1 | sed 5q` in 7848 *Sun\ C*) 7849 # Sun C 5.9 7850 lt_prog_compiler_pic='-KPIC' 7851 lt_prog_compiler_static='-Bstatic' 7852 lt_prog_compiler_wl='-Wl,' 7853 ;; 7854 *Sun\ F*) 7855 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7856 lt_prog_compiler_pic='-KPIC' 7857 lt_prog_compiler_static='-Bstatic' 7858 lt_prog_compiler_wl='' 7859 ;; 7860 esac 7861 ;; 7862 esac 7863 ;; 7864 7865 osf3* | osf4* | osf5*) 7866 lt_prog_compiler_wl='-Wl,' 7867 # All OSF/1 code is PIC. 7868 lt_prog_compiler_static='-non_shared' 7869 ;; 7870 7871 rdos*) 7872 lt_prog_compiler_static='-non_shared' 7873 ;; 7874 7875 solaris*) 7876 lt_prog_compiler_pic='-KPIC' 7877 lt_prog_compiler_static='-Bstatic' 7878 case $cc_basename in 7879 f77* | f90* | f95*) 7880 lt_prog_compiler_wl='-Qoption ld ';; 7881 *) 7882 lt_prog_compiler_wl='-Wl,';; 7883 esac 7884 ;; 7885 7886 sunos4*) 7887 lt_prog_compiler_wl='-Qoption ld ' 7888 lt_prog_compiler_pic='-PIC' 7889 lt_prog_compiler_static='-Bstatic' 7890 ;; 7891 7892 sysv4 | sysv4.2uw2* | sysv4.3*) 7893 lt_prog_compiler_wl='-Wl,' 7894 lt_prog_compiler_pic='-KPIC' 7895 lt_prog_compiler_static='-Bstatic' 7896 ;; 7897 7898 sysv4*MP*) 7899 if test -d /usr/nec ;then 7900 lt_prog_compiler_pic='-Kconform_pic' 7901 lt_prog_compiler_static='-Bstatic' 7902 fi 7903 ;; 7904 7905 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7906 lt_prog_compiler_wl='-Wl,' 7907 lt_prog_compiler_pic='-KPIC' 7908 lt_prog_compiler_static='-Bstatic' 7909 ;; 7910 7911 unicos*) 7912 lt_prog_compiler_wl='-Wl,' 7913 lt_prog_compiler_can_build_shared=no 7914 ;; 7915 7916 uts4*) 7917 lt_prog_compiler_pic='-pic' 7918 lt_prog_compiler_static='-Bstatic' 7919 ;; 7920 7921 *) 7922 lt_prog_compiler_can_build_shared=no 7923 ;; 7924 esac 7925 fi 7926 7927{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7928$as_echo "$lt_prog_compiler_pic" >&6; } 7929 7930# 7931# Check to make sure the PIC flag actually works. 7932# 7933if test -n "$lt_prog_compiler_pic"; then 7934 7935{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7936$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7937if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 7938 $as_echo_n "(cached) " >&6 7939else 7940 lt_cv_prog_compiler_pic_works=no 7941 ac_outfile=conftest.$ac_objext 7942 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7943 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7944 # Insert the option either (1) after the last *FLAGS variable, or 7945 # (2) before a word containing "conftest.", or (3) at the end. 7946 # Note that $ac_compile itself does not contain backslashes and begins 7947 # with a dollar sign (not a hyphen), so the echo should work correctly. 7948 # The option is referenced via a variable to avoid confusing sed. 7949 lt_compile=`echo "$ac_compile" | $SED \ 7950 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7951 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7952 -e 's:$: $lt_compiler_flag:'` 7953 (eval echo "\"\$as_me:7953: $lt_compile\"" >&5) 7954 (eval "$lt_compile" 2>conftest.err) 7955 ac_status=$? 7956 cat conftest.err >&5 7957 echo "$as_me:7957: \$? = $ac_status" >&5 7958 if (exit $ac_status) && test -s "$ac_outfile"; then 7959 # The compiler can only warn and ignore the option if not recognized 7960 # So say no if there are warnings other than the usual output. 7961 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7962 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7963 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7964 lt_cv_prog_compiler_pic_works=yes 7965 fi 7966 fi 7967 $rm conftest* 7968 7969fi 7970{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 7971$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7972 7973if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7974 case $lt_prog_compiler_pic in 7975 "" | " "*) ;; 7976 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7977 esac 7978else 7979 lt_prog_compiler_pic= 7980 lt_prog_compiler_can_build_shared=no 7981fi 7982 7983fi 7984case $host_os in 7985 # For platforms which do not support PIC, -DPIC is meaningless: 7986 *djgpp*) 7987 lt_prog_compiler_pic= 7988 ;; 7989 *) 7990 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7991 ;; 7992esac 7993 7994# 7995# Check to make sure the static flag actually works. 7996# 7997wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7998{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7999$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8000if test "${lt_cv_prog_compiler_static_works+set}" = set; then 8001 $as_echo_n "(cached) " >&6 8002else 8003 lt_cv_prog_compiler_static_works=no 8004 save_LDFLAGS="$LDFLAGS" 8005 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8006 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8007 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8008 # The linker can only warn and ignore the option if not recognized 8009 # So say no if there are warnings 8010 if test -s conftest.err; then 8011 # Append any errors to the config.log. 8012 cat conftest.err 1>&5 8013 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 8014 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8015 if diff conftest.exp conftest.er2 >/dev/null; then 8016 lt_cv_prog_compiler_static_works=yes 8017 fi 8018 else 8019 lt_cv_prog_compiler_static_works=yes 8020 fi 8021 fi 8022 $rm -r conftest* 8023 LDFLAGS="$save_LDFLAGS" 8024 8025fi 8026{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 8027$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8028 8029if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8030 : 8031else 8032 lt_prog_compiler_static= 8033fi 8034 8035 8036{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8037$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8038if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8039 $as_echo_n "(cached) " >&6 8040else 8041 lt_cv_prog_compiler_c_o=no 8042 $rm -r conftest 2>/dev/null 8043 mkdir conftest 8044 cd conftest 8045 mkdir out 8046 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8047 8048 lt_compiler_flag="-o out/conftest2.$ac_objext" 8049 # Insert the option either (1) after the last *FLAGS variable, or 8050 # (2) before a word containing "conftest.", or (3) at the end. 8051 # Note that $ac_compile itself does not contain backslashes and begins 8052 # with a dollar sign (not a hyphen), so the echo should work correctly. 8053 lt_compile=`echo "$ac_compile" | $SED \ 8054 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8055 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8056 -e 's:$: $lt_compiler_flag:'` 8057 (eval echo "\"\$as_me:8057: $lt_compile\"" >&5) 8058 (eval "$lt_compile" 2>out/conftest.err) 8059 ac_status=$? 8060 cat out/conftest.err >&5 8061 echo "$as_me:8061: \$? = $ac_status" >&5 8062 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8063 then 8064 # The compiler can only warn and ignore the option if not recognized 8065 # So say no if there are warnings 8066 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8067 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8068 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8069 lt_cv_prog_compiler_c_o=yes 8070 fi 8071 fi 8072 chmod u+w . 2>&5 8073 $rm conftest* 8074 # SGI C++ compiler will create directory out/ii_files/ for 8075 # template instantiation 8076 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 8077 $rm out/* && rmdir out 8078 cd .. 8079 rmdir conftest 8080 $rm conftest* 8081 8082fi 8083{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8084$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8085 8086 8087hard_links="nottested" 8088if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8089 # do not overwrite the value of need_locks provided by the user 8090 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8091$as_echo_n "checking if we can lock with hard links... " >&6; } 8092 hard_links=yes 8093 $rm conftest* 8094 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8095 touch conftest.a 8096 ln conftest.a conftest.b 2>&5 || hard_links=no 8097 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8098 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 8099$as_echo "$hard_links" >&6; } 8100 if test "$hard_links" = no; then 8101 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8102$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8103 need_locks=warn 8104 fi 8105else 8106 need_locks=no 8107fi 8108 8109{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8110$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8111 8112 runpath_var= 8113 allow_undefined_flag= 8114 enable_shared_with_static_runtimes=no 8115 archive_cmds= 8116 archive_expsym_cmds= 8117 old_archive_From_new_cmds= 8118 old_archive_from_expsyms_cmds= 8119 export_dynamic_flag_spec= 8120 whole_archive_flag_spec= 8121 thread_safe_flag_spec= 8122 hardcode_libdir_flag_spec= 8123 hardcode_libdir_flag_spec_ld= 8124 hardcode_libdir_separator= 8125 hardcode_direct=no 8126 hardcode_minus_L=no 8127 hardcode_shlibpath_var=unsupported 8128 link_all_deplibs=unknown 8129 hardcode_automatic=no 8130 module_cmds= 8131 module_expsym_cmds= 8132 always_export_symbols=no 8133 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8134 # include_expsyms should be a list of space-separated symbols to be *always* 8135 # included in the symbol list 8136 include_expsyms= 8137 # exclude_expsyms can be an extended regexp of symbols to exclude 8138 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8139 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8140 # as well as any symbol that contains `d'. 8141 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8142 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8143 # platforms (ab)use it in PIC code, but their linkers get confused if 8144 # the symbol is explicitly referenced. Since portable code cannot 8145 # rely on this symbol name, it's probably fine to never include it in 8146 # preloaded symbol tables. 8147 # Exclude shared library initialization/finalization symbols. 8148 extract_expsyms_cmds= 8149 # Just being paranoid about ensuring that cc_basename is set. 8150 for cc_temp in $compiler""; do 8151 case $cc_temp in 8152 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8153 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8154 \-*) ;; 8155 *) break;; 8156 esac 8157done 8158cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8159 8160 case $host_os in 8161 cygwin* | mingw* | pw32*) 8162 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8163 # When not using gcc, we currently assume that we are using 8164 # Microsoft Visual C++. 8165 if test "$GCC" != yes; then 8166 with_gnu_ld=no 8167 fi 8168 ;; 8169 interix*) 8170 # we just hope/assume this is gcc and not c89 (= MSVC++) 8171 with_gnu_ld=yes 8172 ;; 8173 openbsd*) 8174 with_gnu_ld=no 8175 ;; 8176 esac 8177 8178 ld_shlibs=yes 8179 if test "$with_gnu_ld" = yes; then 8180 # If archive_cmds runs LD, not CC, wlarc should be empty 8181 wlarc='${wl}' 8182 8183 # Set some defaults for GNU ld with shared library support. These 8184 # are reset later if shared libraries are not supported. Putting them 8185 # here allows them to be overridden if necessary. 8186 runpath_var=LD_RUN_PATH 8187 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 8188 export_dynamic_flag_spec='${wl}--export-dynamic' 8189 # ancient GNU ld didn't support --whole-archive et. al. 8190 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 8191 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8192 else 8193 whole_archive_flag_spec= 8194 fi 8195 supports_anon_versioning=no 8196 case `$LD -v 2>/dev/null` in 8197 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8198 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8199 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8200 *\ 2.11.*) ;; # other 2.11 versions 8201 *) supports_anon_versioning=yes ;; 8202 esac 8203 8204 # See if GNU ld supports shared libraries. 8205 case $host_os in 8206 aix[3-9]*) 8207 # On AIX/PPC, the GNU linker is very broken 8208 if test "$host_cpu" != ia64; then 8209 ld_shlibs=no 8210 cat <<EOF 1>&2 8211 8212*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8213*** to be unable to reliably create shared libraries on AIX. 8214*** Therefore, libtool is disabling shared libraries support. If you 8215*** really care for shared libraries, you may want to modify your PATH 8216*** so that a non-GNU linker is found, and then restart. 8217 8218EOF 8219 fi 8220 ;; 8221 8222 amigaos*) 8223 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)' 8224 hardcode_libdir_flag_spec='-L$libdir' 8225 hardcode_minus_L=yes 8226 8227 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 8228 # that the semantics of dynamic libraries on AmigaOS, at least up 8229 # to version 4, is to share data among multiple programs linked 8230 # with the same dynamic library. Since this doesn't match the 8231 # behavior of shared libraries on other platforms, we can't use 8232 # them. 8233 ld_shlibs=no 8234 ;; 8235 8236 beos*) 8237 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8238 allow_undefined_flag=unsupported 8239 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8240 # support --undefined. This deserves some investigation. FIXME 8241 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8242 else 8243 ld_shlibs=no 8244 fi 8245 ;; 8246 8247 cygwin* | mingw* | pw32*) 8248 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8249 # as there is no search path for DLLs. 8250 hardcode_libdir_flag_spec='-L$libdir' 8251 allow_undefined_flag=unsupported 8252 always_export_symbols=no 8253 enable_shared_with_static_runtimes=yes 8254 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8255 8256 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 8257 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8258 # If the export-symbols file already is a .def file (1st line 8259 # is EXPORTS), use it as is; otherwise, prepend... 8260 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8261 cp $export_symbols $output_objdir/$soname.def; 8262 else 8263 echo EXPORTS > $output_objdir/$soname.def; 8264 cat $export_symbols >> $output_objdir/$soname.def; 8265 fi~ 8266 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8267 else 8268 ld_shlibs=no 8269 fi 8270 ;; 8271 8272 interix[3-9]*) 8273 hardcode_direct=no 8274 hardcode_shlibpath_var=no 8275 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8276 export_dynamic_flag_spec='${wl}-E' 8277 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8278 # Instead, shared libraries are loaded at an image base (0x10000000 by 8279 # default) and relocated if they conflict, which is a slow very memory 8280 # consuming and fragmenting process. To avoid this, we pick a random, 8281 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8282 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8283 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8284 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' 8285 ;; 8286 8287 gnu* | linux* | k*bsd*-gnu) 8288 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8289 tmp_addflag= 8290 case $cc_basename,$host_cpu in 8291 pgcc*) # Portland Group C compiler 8292 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' 8293 tmp_addflag=' $pic_flag' 8294 ;; 8295 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8296 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' 8297 tmp_addflag=' $pic_flag -Mnomain' ;; 8298 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8299 tmp_addflag=' -i_dynamic' ;; 8300 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8301 tmp_addflag=' -i_dynamic -nofor_main' ;; 8302 ifc* | ifort*) # Intel Fortran compiler 8303 tmp_addflag=' -nofor_main' ;; 8304 esac 8305 case `$CC -V 2>&1 | sed 5q` in 8306 *Sun\ C*) # Sun C 5.9 8307 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' 8308 tmp_sharedflag='-G' ;; 8309 *Sun\ F*) # Sun Fortran 8.3 8310 tmp_sharedflag='-G' ;; 8311 *) 8312 tmp_sharedflag='-shared' ;; 8313 esac 8314 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8315 8316 if test $supports_anon_versioning = yes; then 8317 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8318 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8319 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8320 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8321 fi 8322 else 8323 ld_shlibs=no 8324 fi 8325 ;; 8326 8327 netbsd*) 8328 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8329 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8330 wlarc= 8331 else 8332 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8333 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8334 fi 8335 ;; 8336 8337 solaris*) 8338 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8339 ld_shlibs=no 8340 cat <<EOF 1>&2 8341 8342*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8343*** create shared libraries on Solaris systems. Therefore, libtool 8344*** is disabling shared libraries support. We urge you to upgrade GNU 8345*** binutils to release 2.9.1 or newer. Another option is to modify 8346*** your PATH or compiler configuration so that the native linker is 8347*** used, and then restart. 8348 8349EOF 8350 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8351 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8352 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8353 else 8354 ld_shlibs=no 8355 fi 8356 ;; 8357 8358 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8359 case `$LD -v 2>&1` in 8360 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8361 ld_shlibs=no 8362 cat <<_LT_EOF 1>&2 8363 8364*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8365*** reliably create shared libraries on SCO systems. Therefore, libtool 8366*** is disabling shared libraries support. We urge you to upgrade GNU 8367*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8368*** your PATH or compiler configuration so that the native linker is 8369*** used, and then restart. 8370 8371_LT_EOF 8372 ;; 8373 *) 8374 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8375 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 8376 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 8377 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 8378 else 8379 ld_shlibs=no 8380 fi 8381 ;; 8382 esac 8383 ;; 8384 8385 sunos4*) 8386 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8387 wlarc= 8388 hardcode_direct=yes 8389 hardcode_shlibpath_var=no 8390 ;; 8391 8392 *) 8393 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8394 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8395 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8396 else 8397 ld_shlibs=no 8398 fi 8399 ;; 8400 esac 8401 8402 if test "$ld_shlibs" = no; then 8403 runpath_var= 8404 hardcode_libdir_flag_spec= 8405 export_dynamic_flag_spec= 8406 whole_archive_flag_spec= 8407 fi 8408 else 8409 # PORTME fill in a description of your system's linker (not GNU ld) 8410 case $host_os in 8411 aix3*) 8412 allow_undefined_flag=unsupported 8413 always_export_symbols=yes 8414 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' 8415 # Note: this linker hardcodes the directories in LIBPATH if there 8416 # are no directories specified by -L. 8417 hardcode_minus_L=yes 8418 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8419 # Neither direct hardcoding nor static linking is supported with a 8420 # broken collect2. 8421 hardcode_direct=unsupported 8422 fi 8423 ;; 8424 8425 aix[4-9]*) 8426 if test "$host_cpu" = ia64; then 8427 # On IA64, the linker does run time linking by default, so we don't 8428 # have to do anything special. 8429 aix_use_runtimelinking=no 8430 exp_sym_flag='-Bexport' 8431 no_entry_flag="" 8432 else 8433 # If we're using GNU nm, then we don't want the "-C" option. 8434 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8435 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 8436 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' 8437 else 8438 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' 8439 fi 8440 aix_use_runtimelinking=no 8441 8442 # Test if we are trying to use run time linking or normal 8443 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8444 # need to do runtime linking. 8445 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8446 for ld_flag in $LDFLAGS; do 8447 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8448 aix_use_runtimelinking=yes 8449 break 8450 fi 8451 done 8452 ;; 8453 esac 8454 8455 exp_sym_flag='-bexport' 8456 no_entry_flag='-bnoentry' 8457 fi 8458 8459 # When large executables or shared objects are built, AIX ld can 8460 # have problems creating the table of contents. If linking a library 8461 # or program results in "error TOC overflow" add -mminimal-toc to 8462 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8463 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8464 8465 archive_cmds='' 8466 hardcode_direct=yes 8467 hardcode_libdir_separator=':' 8468 link_all_deplibs=yes 8469 8470 if test "$GCC" = yes; then 8471 case $host_os in aix4.[012]|aix4.[012].*) 8472 # We only want to do this on AIX 4.2 and lower, the check 8473 # below for broken collect2 doesn't work under 4.3+ 8474 collect2name=`${CC} -print-prog-name=collect2` 8475 if test -f "$collect2name" && \ 8476 strings "$collect2name" | grep resolve_lib_name >/dev/null 8477 then 8478 # We have reworked collect2 8479 : 8480 else 8481 # We have old collect2 8482 hardcode_direct=unsupported 8483 # It fails to find uninstalled libraries when the uninstalled 8484 # path is not listed in the libpath. Setting hardcode_minus_L 8485 # to unsupported forces relinking 8486 hardcode_minus_L=yes 8487 hardcode_libdir_flag_spec='-L$libdir' 8488 hardcode_libdir_separator= 8489 fi 8490 ;; 8491 esac 8492 shared_flag='-shared' 8493 if test "$aix_use_runtimelinking" = yes; then 8494 shared_flag="$shared_flag "'${wl}-G' 8495 fi 8496 else 8497 # not using gcc 8498 if test "$host_cpu" = ia64; then 8499 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8500 # chokes on -Wl,-G. The following line is correct: 8501 shared_flag='-G' 8502 else 8503 if test "$aix_use_runtimelinking" = yes; then 8504 shared_flag='${wl}-G' 8505 else 8506 shared_flag='${wl}-bM:SRE' 8507 fi 8508 fi 8509 fi 8510 8511 # It seems that -bexpall does not export symbols beginning with 8512 # underscore (_), so it is better to generate a list of symbols to export. 8513 always_export_symbols=yes 8514 if test "$aix_use_runtimelinking" = yes; then 8515 # Warning - without using the other runtime loading flags (-brtl), 8516 # -berok will link without error, but may produce a broken library. 8517 allow_undefined_flag='-berok' 8518 # Determine the default libpath from the value encoded in an empty executable. 8519 cat >conftest.$ac_ext <<_ACEOF 8520/* confdefs.h. */ 8521_ACEOF 8522cat confdefs.h >>conftest.$ac_ext 8523cat >>conftest.$ac_ext <<_ACEOF 8524/* end confdefs.h. */ 8525 8526int 8527main () 8528{ 8529 8530 ; 8531 return 0; 8532} 8533_ACEOF 8534rm -f conftest.$ac_objext conftest$ac_exeext 8535if { (ac_try="$ac_link" 8536case "(($ac_try" in 8537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8538 *) ac_try_echo=$ac_try;; 8539esac 8540eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8541$as_echo "$ac_try_echo") >&5 8542 (eval "$ac_link") 2>conftest.er1 8543 ac_status=$? 8544 grep -v '^ *+' conftest.er1 >conftest.err 8545 rm -f conftest.er1 8546 cat conftest.err >&5 8547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8548 (exit $ac_status); } && { 8549 test -z "$ac_c_werror_flag" || 8550 test ! -s conftest.err 8551 } && test -s conftest$ac_exeext && { 8552 test "$cross_compiling" = yes || 8553 $as_test_x conftest$ac_exeext 8554 }; then 8555 8556lt_aix_libpath_sed=' 8557 /Import File Strings/,/^$/ { 8558 /^0/ { 8559 s/^0 *\(.*\)$/\1/ 8560 p 8561 } 8562 }' 8563aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8564# Check for a 64-bit object if we didn't find anything. 8565if test -z "$aix_libpath"; then 8566 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8567fi 8568else 8569 $as_echo "$as_me: failed program was:" >&5 8570sed 's/^/| /' conftest.$ac_ext >&5 8571 8572 8573fi 8574 8575rm -rf conftest.dSYM 8576rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8577 conftest$ac_exeext conftest.$ac_ext 8578if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8579 8580 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8581 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" 8582 else 8583 if test "$host_cpu" = ia64; then 8584 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8585 allow_undefined_flag="-z nodefs" 8586 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" 8587 else 8588 # Determine the default libpath from the value encoded in an empty executable. 8589 cat >conftest.$ac_ext <<_ACEOF 8590/* confdefs.h. */ 8591_ACEOF 8592cat confdefs.h >>conftest.$ac_ext 8593cat >>conftest.$ac_ext <<_ACEOF 8594/* end confdefs.h. */ 8595 8596int 8597main () 8598{ 8599 8600 ; 8601 return 0; 8602} 8603_ACEOF 8604rm -f conftest.$ac_objext conftest$ac_exeext 8605if { (ac_try="$ac_link" 8606case "(($ac_try" in 8607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8608 *) ac_try_echo=$ac_try;; 8609esac 8610eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8611$as_echo "$ac_try_echo") >&5 8612 (eval "$ac_link") 2>conftest.er1 8613 ac_status=$? 8614 grep -v '^ *+' conftest.er1 >conftest.err 8615 rm -f conftest.er1 8616 cat conftest.err >&5 8617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8618 (exit $ac_status); } && { 8619 test -z "$ac_c_werror_flag" || 8620 test ! -s conftest.err 8621 } && test -s conftest$ac_exeext && { 8622 test "$cross_compiling" = yes || 8623 $as_test_x conftest$ac_exeext 8624 }; then 8625 8626lt_aix_libpath_sed=' 8627 /Import File Strings/,/^$/ { 8628 /^0/ { 8629 s/^0 *\(.*\)$/\1/ 8630 p 8631 } 8632 }' 8633aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8634# Check for a 64-bit object if we didn't find anything. 8635if test -z "$aix_libpath"; then 8636 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8637fi 8638else 8639 $as_echo "$as_me: failed program was:" >&5 8640sed 's/^/| /' conftest.$ac_ext >&5 8641 8642 8643fi 8644 8645rm -rf conftest.dSYM 8646rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8647 conftest$ac_exeext conftest.$ac_ext 8648if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8649 8650 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8651 # Warning - without using the other run time loading flags, 8652 # -berok will link without error, but may produce a broken library. 8653 no_undefined_flag=' ${wl}-bernotok' 8654 allow_undefined_flag=' ${wl}-berok' 8655 # Exported symbols can be pulled into shared objects from archives 8656 whole_archive_flag_spec='$convenience' 8657 archive_cmds_need_lc=yes 8658 # This is similar to how AIX traditionally builds its shared libraries. 8659 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' 8660 fi 8661 fi 8662 ;; 8663 8664 amigaos*) 8665 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)' 8666 hardcode_libdir_flag_spec='-L$libdir' 8667 hardcode_minus_L=yes 8668 # see comment about different semantics on the GNU ld section 8669 ld_shlibs=no 8670 ;; 8671 8672 bsdi[45]*) 8673 export_dynamic_flag_spec=-rdynamic 8674 ;; 8675 8676 cygwin* | mingw* | pw32*) 8677 # When not using gcc, we currently assume that we are using 8678 # Microsoft Visual C++. 8679 # hardcode_libdir_flag_spec is actually meaningless, as there is 8680 # no search path for DLLs. 8681 hardcode_libdir_flag_spec=' ' 8682 allow_undefined_flag=unsupported 8683 # Tell ltmain to make .lib files, not .a files. 8684 libext=lib 8685 # Tell ltmain to make .dll files, not .so files. 8686 shrext_cmds=".dll" 8687 # FIXME: Setting linknames here is a bad hack. 8688 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8689 # The linker will automatically build a .lib file if we build a DLL. 8690 old_archive_From_new_cmds='true' 8691 # FIXME: Should let the user specify the lib program. 8692 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8693 fix_srcfile_path='`cygpath -w "$srcfile"`' 8694 enable_shared_with_static_runtimes=yes 8695 ;; 8696 8697 darwin* | rhapsody*) 8698 case $host_os in 8699 rhapsody* | darwin1.[012]) 8700 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8701 ;; 8702 *) # Darwin 1.3 on 8703 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8704 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8705 else 8706 case ${MACOSX_DEPLOYMENT_TARGET} in 8707 10.[012]) 8708 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8709 ;; 8710 10.*) 8711 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8712 ;; 8713 esac 8714 fi 8715 ;; 8716 esac 8717 archive_cmds_need_lc=no 8718 hardcode_direct=no 8719 hardcode_automatic=yes 8720 hardcode_shlibpath_var=unsupported 8721 whole_archive_flag_spec='' 8722 link_all_deplibs=yes 8723 if test "$GCC" = yes ; then 8724 output_verbose_link_cmd='echo' 8725 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8726 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8727 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}" 8728 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}" 8729 else 8730 case $cc_basename in 8731 xlc*) 8732 output_verbose_link_cmd='echo' 8733 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 8734 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8735 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8736 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}' 8737 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}' 8738 ;; 8739 *) 8740 ld_shlibs=no 8741 ;; 8742 esac 8743 fi 8744 ;; 8745 8746 dgux*) 8747 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8748 hardcode_libdir_flag_spec='-L$libdir' 8749 hardcode_shlibpath_var=no 8750 ;; 8751 8752 freebsd1*) 8753 ld_shlibs=no 8754 ;; 8755 8756 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8757 # support. Future versions do this automatically, but an explicit c++rt0.o 8758 # does not break anything, and helps significantly (at the cost of a little 8759 # extra space). 8760 freebsd2.2*) 8761 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8762 hardcode_libdir_flag_spec='-R$libdir' 8763 hardcode_direct=yes 8764 hardcode_shlibpath_var=no 8765 ;; 8766 8767 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8768 freebsd2*) 8769 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8770 hardcode_direct=yes 8771 hardcode_minus_L=yes 8772 hardcode_shlibpath_var=no 8773 ;; 8774 8775 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8776 freebsd* | dragonfly*) 8777 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8778 hardcode_libdir_flag_spec='-R$libdir' 8779 hardcode_direct=yes 8780 hardcode_shlibpath_var=no 8781 ;; 8782 8783 hpux9*) 8784 if test "$GCC" = yes; then 8785 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' 8786 else 8787 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' 8788 fi 8789 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8790 hardcode_libdir_separator=: 8791 hardcode_direct=yes 8792 8793 # hardcode_minus_L: Not really in the search PATH, 8794 # but as the default location of the library. 8795 hardcode_minus_L=yes 8796 export_dynamic_flag_spec='${wl}-E' 8797 ;; 8798 8799 hpux10*) 8800 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8801 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8802 else 8803 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8804 fi 8805 if test "$with_gnu_ld" = no; then 8806 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8807 hardcode_libdir_separator=: 8808 8809 hardcode_direct=yes 8810 export_dynamic_flag_spec='${wl}-E' 8811 8812 # hardcode_minus_L: Not really in the search PATH, 8813 # but as the default location of the library. 8814 hardcode_minus_L=yes 8815 fi 8816 ;; 8817 8818 hpux11*) 8819 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8820 case $host_cpu in 8821 hppa*64*) 8822 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8823 ;; 8824 ia64*) 8825 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8826 ;; 8827 *) 8828 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8829 ;; 8830 esac 8831 else 8832 case $host_cpu in 8833 hppa*64*) 8834 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8835 ;; 8836 ia64*) 8837 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8838 ;; 8839 *) 8840 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8841 ;; 8842 esac 8843 fi 8844 if test "$with_gnu_ld" = no; then 8845 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8846 hardcode_libdir_separator=: 8847 8848 case $host_cpu in 8849 hppa*64*|ia64*) 8850 hardcode_libdir_flag_spec_ld='+b $libdir' 8851 hardcode_direct=no 8852 hardcode_shlibpath_var=no 8853 ;; 8854 *) 8855 hardcode_direct=yes 8856 export_dynamic_flag_spec='${wl}-E' 8857 8858 # hardcode_minus_L: Not really in the search PATH, 8859 # but as the default location of the library. 8860 hardcode_minus_L=yes 8861 ;; 8862 esac 8863 fi 8864 ;; 8865 8866 irix5* | irix6* | nonstopux*) 8867 if test "$GCC" = yes; then 8868 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' 8869 else 8870 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' 8871 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8872 fi 8873 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8874 hardcode_libdir_separator=: 8875 link_all_deplibs=yes 8876 ;; 8877 8878 netbsd*) 8879 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8880 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8881 else 8882 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8883 fi 8884 hardcode_libdir_flag_spec='-R$libdir' 8885 hardcode_direct=yes 8886 hardcode_shlibpath_var=no 8887 ;; 8888 8889 newsos6) 8890 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8891 hardcode_direct=yes 8892 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8893 hardcode_libdir_separator=: 8894 hardcode_shlibpath_var=no 8895 ;; 8896 8897 openbsd*) 8898 if test -f /usr/libexec/ld.so; then 8899 hardcode_direct=yes 8900 hardcode_shlibpath_var=no 8901 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8902 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8903 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8904 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8905 export_dynamic_flag_spec='${wl}-E' 8906 else 8907 case $host_os in 8908 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8909 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8910 hardcode_libdir_flag_spec='-R$libdir' 8911 ;; 8912 *) 8913 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8914 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8915 ;; 8916 esac 8917 fi 8918 else 8919 ld_shlibs=no 8920 fi 8921 ;; 8922 8923 os2*) 8924 hardcode_libdir_flag_spec='-L$libdir' 8925 hardcode_minus_L=yes 8926 allow_undefined_flag=unsupported 8927 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' 8928 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8929 ;; 8930 8931 osf3*) 8932 if test "$GCC" = yes; then 8933 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8934 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' 8935 else 8936 allow_undefined_flag=' -expect_unresolved \*' 8937 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' 8938 fi 8939 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8940 hardcode_libdir_separator=: 8941 ;; 8942 8943 osf4* | osf5*) # as osf3* with the addition of -msym flag 8944 if test "$GCC" = yes; then 8945 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8946 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' 8947 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8948 else 8949 allow_undefined_flag=' -expect_unresolved \*' 8950 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' 8951 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8952 $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' 8953 8954 # Both c and cxx compiler support -rpath directly 8955 hardcode_libdir_flag_spec='-rpath $libdir' 8956 fi 8957 hardcode_libdir_separator=: 8958 ;; 8959 8960 solaris*) 8961 no_undefined_flag=' -z text' 8962 if test "$GCC" = yes; then 8963 wlarc='${wl}' 8964 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8965 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8966 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8967 else 8968 wlarc='' 8969 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8970 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8971 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8972 fi 8973 hardcode_libdir_flag_spec='-R$libdir' 8974 hardcode_shlibpath_var=no 8975 case $host_os in 8976 solaris2.[0-5] | solaris2.[0-5].*) ;; 8977 *) 8978 # The compiler driver will combine and reorder linker options, 8979 # but understands `-z linker_flag'. GCC discards it without `$wl', 8980 # but is careful enough not to reorder. 8981 # Supported since Solaris 2.6 (maybe 2.5.1?) 8982 if test "$GCC" = yes; then 8983 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8984 else 8985 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8986 fi 8987 ;; 8988 esac 8989 link_all_deplibs=yes 8990 ;; 8991 8992 sunos4*) 8993 if test "x$host_vendor" = xsequent; then 8994 # Use $CC to link under sequent, because it throws in some extra .o 8995 # files that make .init and .fini sections work. 8996 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8997 else 8998 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8999 fi 9000 hardcode_libdir_flag_spec='-L$libdir' 9001 hardcode_direct=yes 9002 hardcode_minus_L=yes 9003 hardcode_shlibpath_var=no 9004 ;; 9005 9006 sysv4) 9007 case $host_vendor in 9008 sni) 9009 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9010 hardcode_direct=yes # is this really true??? 9011 ;; 9012 siemens) 9013 ## LD is ld it makes a PLAMLIB 9014 ## CC just makes a GrossModule. 9015 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9016 reload_cmds='$CC -r -o $output$reload_objs' 9017 hardcode_direct=no 9018 ;; 9019 motorola) 9020 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9021 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9022 ;; 9023 esac 9024 runpath_var='LD_RUN_PATH' 9025 hardcode_shlibpath_var=no 9026 ;; 9027 9028 sysv4.3*) 9029 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9030 hardcode_shlibpath_var=no 9031 export_dynamic_flag_spec='-Bexport' 9032 ;; 9033 9034 sysv4*MP*) 9035 if test -d /usr/nec; then 9036 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9037 hardcode_shlibpath_var=no 9038 runpath_var=LD_RUN_PATH 9039 hardcode_runpath_var=yes 9040 ld_shlibs=yes 9041 fi 9042 ;; 9043 9044 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9045 no_undefined_flag='${wl}-z,text' 9046 archive_cmds_need_lc=no 9047 hardcode_shlibpath_var=no 9048 runpath_var='LD_RUN_PATH' 9049 9050 if test "$GCC" = yes; then 9051 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9052 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9053 else 9054 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9055 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9056 fi 9057 ;; 9058 9059 sysv5* | sco3.2v5* | sco5v6*) 9060 # Note: We can NOT use -z defs as we might desire, because we do not 9061 # link with -lc, and that would cause any symbols used from libc to 9062 # always be unresolved, which means just about no library would 9063 # ever link correctly. If we're not using GNU ld we use -z text 9064 # though, which does catch some bad symbols but isn't as heavy-handed 9065 # as -z defs. 9066 no_undefined_flag='${wl}-z,text' 9067 allow_undefined_flag='${wl}-z,nodefs' 9068 archive_cmds_need_lc=no 9069 hardcode_shlibpath_var=no 9070 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 9071 hardcode_libdir_separator=':' 9072 link_all_deplibs=yes 9073 export_dynamic_flag_spec='${wl}-Bexport' 9074 runpath_var='LD_RUN_PATH' 9075 9076 if test "$GCC" = yes; then 9077 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9078 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9079 else 9080 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9081 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9082 fi 9083 ;; 9084 9085 uts4*) 9086 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9087 hardcode_libdir_flag_spec='-L$libdir' 9088 hardcode_shlibpath_var=no 9089 ;; 9090 9091 *) 9092 ld_shlibs=no 9093 ;; 9094 esac 9095 fi 9096 9097{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9098$as_echo "$ld_shlibs" >&6; } 9099test "$ld_shlibs" = no && can_build_shared=no 9100 9101# 9102# Do we need to explicitly link libc? 9103# 9104case "x$archive_cmds_need_lc" in 9105x|xyes) 9106 # Assume -lc should be added 9107 archive_cmds_need_lc=yes 9108 9109 if test "$enable_shared" = yes && test "$GCC" = yes; then 9110 case $archive_cmds in 9111 *'~'*) 9112 # FIXME: we may have to deal with multi-command sequences. 9113 ;; 9114 '$CC '*) 9115 # Test whether the compiler implicitly links with -lc since on some 9116 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9117 # to ld, don't add -lc before -lgcc. 9118 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9119$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9120 $rm conftest* 9121 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9122 9123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9124 (eval $ac_compile) 2>&5 9125 ac_status=$? 9126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9127 (exit $ac_status); } 2>conftest.err; then 9128 soname=conftest 9129 lib=conftest 9130 libobjs=conftest.$ac_objext 9131 deplibs= 9132 wl=$lt_prog_compiler_wl 9133 pic_flag=$lt_prog_compiler_pic 9134 compiler_flags=-v 9135 linker_flags=-v 9136 verstring= 9137 output_objdir=. 9138 libname=conftest 9139 lt_save_allow_undefined_flag=$allow_undefined_flag 9140 allow_undefined_flag= 9141 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 9142 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 9143 ac_status=$? 9144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9145 (exit $ac_status); } 9146 then 9147 archive_cmds_need_lc=no 9148 else 9149 archive_cmds_need_lc=yes 9150 fi 9151 allow_undefined_flag=$lt_save_allow_undefined_flag 9152 else 9153 cat conftest.err 1>&5 9154 fi 9155 $rm conftest* 9156 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9157$as_echo "$archive_cmds_need_lc" >&6; } 9158 ;; 9159 esac 9160 fi 9161 ;; 9162esac 9163 9164{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9165$as_echo_n "checking dynamic linker characteristics... " >&6; } 9166library_names_spec= 9167libname_spec='lib$name' 9168soname_spec= 9169shrext_cmds=".so" 9170postinstall_cmds= 9171postuninstall_cmds= 9172finish_cmds= 9173finish_eval= 9174shlibpath_var= 9175shlibpath_overrides_runpath=unknown 9176version_type=none 9177dynamic_linker="$host_os ld.so" 9178sys_lib_dlsearch_path_spec="/lib /usr/lib" 9179 9180if test "$GCC" = yes; then 9181 case $host_os in 9182 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9183 *) lt_awk_arg="/^libraries:/" ;; 9184 esac 9185 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9186 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 9187 # if the path contains ";" then we assume it to be the separator 9188 # otherwise default to the standard path separator (i.e. ":") - it is 9189 # assumed that no part of a normal pathname contains ";" but that should 9190 # okay in the real world where ";" in dirpaths is itself problematic. 9191 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9192 else 9193 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9194 fi 9195 # Ok, now we have the path, separated by spaces, we can step through it 9196 # and add multilib dir if necessary. 9197 lt_tmp_lt_search_path_spec= 9198 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9199 for lt_sys_path in $lt_search_path_spec; do 9200 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9201 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9202 else 9203 test -d "$lt_sys_path" && \ 9204 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9205 fi 9206 done 9207 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 9208BEGIN {RS=" "; FS="/|\n";} { 9209 lt_foo=""; 9210 lt_count=0; 9211 for (lt_i = NF; lt_i > 0; lt_i--) { 9212 if ($lt_i != "" && $lt_i != ".") { 9213 if ($lt_i == "..") { 9214 lt_count++; 9215 } else { 9216 if (lt_count == 0) { 9217 lt_foo="/" $lt_i lt_foo; 9218 } else { 9219 lt_count--; 9220 } 9221 } 9222 } 9223 } 9224 if (lt_foo != "") { lt_freq[lt_foo]++; } 9225 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9226}'` 9227 sys_lib_search_path_spec=`echo $lt_search_path_spec` 9228else 9229 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9230fi 9231need_lib_prefix=unknown 9232hardcode_into_libs=no 9233 9234# when you set need_version to no, make sure it does not cause -set_version 9235# flags to be left without arguments 9236need_version=unknown 9237 9238case $host_os in 9239aix3*) 9240 version_type=linux 9241 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9242 shlibpath_var=LIBPATH 9243 9244 # AIX 3 has no versioning support, so we append a major version to the name. 9245 soname_spec='${libname}${release}${shared_ext}$major' 9246 ;; 9247 9248aix[4-9]*) 9249 version_type=linux 9250 need_lib_prefix=no 9251 need_version=no 9252 hardcode_into_libs=yes 9253 if test "$host_cpu" = ia64; then 9254 # AIX 5 supports IA64 9255 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9256 shlibpath_var=LD_LIBRARY_PATH 9257 else 9258 # With GCC up to 2.95.x, collect2 would create an import file 9259 # for dependence libraries. The import file would start with 9260 # the line `#! .'. This would cause the generated library to 9261 # depend on `.', always an invalid library. This was fixed in 9262 # development snapshots of GCC prior to 3.0. 9263 case $host_os in 9264 aix4 | aix4.[01] | aix4.[01].*) 9265 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9266 echo ' yes ' 9267 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 9268 : 9269 else 9270 can_build_shared=no 9271 fi 9272 ;; 9273 esac 9274 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9275 # soname into executable. Probably we can add versioning support to 9276 # collect2, so additional links can be useful in future. 9277 if test "$aix_use_runtimelinking" = yes; then 9278 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9279 # instead of lib<name>.a to let people know that these are not 9280 # typical AIX shared libraries. 9281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9282 else 9283 # We preserve .a as extension for shared libraries through AIX4.2 9284 # and later when we are not doing run time linking. 9285 library_names_spec='${libname}${release}.a $libname.a' 9286 soname_spec='${libname}${release}${shared_ext}$major' 9287 fi 9288 shlibpath_var=LIBPATH 9289 fi 9290 ;; 9291 9292amigaos*) 9293 library_names_spec='$libname.ixlibrary $libname.a' 9294 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9295 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' 9296 ;; 9297 9298beos*) 9299 library_names_spec='${libname}${shared_ext}' 9300 dynamic_linker="$host_os ld.so" 9301 shlibpath_var=LIBRARY_PATH 9302 ;; 9303 9304bsdi[45]*) 9305 version_type=linux 9306 need_version=no 9307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9308 soname_spec='${libname}${release}${shared_ext}$major' 9309 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9310 shlibpath_var=LD_LIBRARY_PATH 9311 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9312 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9313 # the default ld.so.conf also contains /usr/contrib/lib and 9314 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9315 # libtool to hard-code these into programs 9316 ;; 9317 9318cygwin* | mingw* | pw32*) 9319 version_type=windows 9320 shrext_cmds=".dll" 9321 need_version=no 9322 need_lib_prefix=no 9323 9324 case $GCC,$host_os in 9325 yes,cygwin* | yes,mingw* | yes,pw32*) 9326 library_names_spec='$libname.dll.a' 9327 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9328 postinstall_cmds='base_file=`basename \${file}`~ 9329 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9330 dldir=$destdir/`dirname \$dlpath`~ 9331 test -d \$dldir || mkdir -p \$dldir~ 9332 $install_prog $dir/$dlname \$dldir/$dlname~ 9333 chmod a+x \$dldir/$dlname' 9334 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9335 dlpath=$dir/\$dldll~ 9336 $rm \$dlpath' 9337 shlibpath_overrides_runpath=yes 9338 9339 case $host_os in 9340 cygwin*) 9341 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9342 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9343 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9344 ;; 9345 mingw*) 9346 # MinGW DLLs use traditional 'lib' prefix 9347 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9348 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9349 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9350 # It is most probably a Windows format PATH printed by 9351 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9352 # path with ; separators, and with drive letters. We can handle the 9353 # drive letters (cygwin fileutils understands them), so leave them, 9354 # especially as we might pass files found there to a mingw objdump, 9355 # which wouldn't understand a cygwinified path. Ahh. 9356 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9357 else 9358 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9359 fi 9360 ;; 9361 pw32*) 9362 # pw32 DLLs use 'pw' prefix rather than 'lib' 9363 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9364 ;; 9365 esac 9366 ;; 9367 9368 *) 9369 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9370 ;; 9371 esac 9372 dynamic_linker='Win32 ld.exe' 9373 # FIXME: first we should search . and the directory the executable is in 9374 shlibpath_var=PATH 9375 ;; 9376 9377darwin* | rhapsody*) 9378 dynamic_linker="$host_os dyld" 9379 version_type=darwin 9380 need_lib_prefix=no 9381 need_version=no 9382 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9383 soname_spec='${libname}${release}${major}$shared_ext' 9384 shlibpath_overrides_runpath=yes 9385 shlibpath_var=DYLD_LIBRARY_PATH 9386 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9387 9388 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9389 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9390 ;; 9391 9392dgux*) 9393 version_type=linux 9394 need_lib_prefix=no 9395 need_version=no 9396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9397 soname_spec='${libname}${release}${shared_ext}$major' 9398 shlibpath_var=LD_LIBRARY_PATH 9399 ;; 9400 9401freebsd1*) 9402 dynamic_linker=no 9403 ;; 9404 9405freebsd* | dragonfly*) 9406 # DragonFly does not have aout. When/if they implement a new 9407 # versioning mechanism, adjust this. 9408 if test -x /usr/bin/objformat; then 9409 objformat=`/usr/bin/objformat` 9410 else 9411 case $host_os in 9412 freebsd[123]*) objformat=aout ;; 9413 *) objformat=elf ;; 9414 esac 9415 fi 9416 version_type=freebsd-$objformat 9417 case $version_type in 9418 freebsd-elf*) 9419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9420 need_version=no 9421 need_lib_prefix=no 9422 ;; 9423 freebsd-*) 9424 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9425 need_version=yes 9426 ;; 9427 esac 9428 shlibpath_var=LD_LIBRARY_PATH 9429 case $host_os in 9430 freebsd2*) 9431 shlibpath_overrides_runpath=yes 9432 ;; 9433 freebsd3.[01]* | freebsdelf3.[01]*) 9434 shlibpath_overrides_runpath=yes 9435 hardcode_into_libs=yes 9436 ;; 9437 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9438 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9439 shlibpath_overrides_runpath=no 9440 hardcode_into_libs=yes 9441 ;; 9442 *) # from 4.6 on, and DragonFly 9443 shlibpath_overrides_runpath=yes 9444 hardcode_into_libs=yes 9445 ;; 9446 esac 9447 ;; 9448 9449gnu*) 9450 version_type=linux 9451 need_lib_prefix=no 9452 need_version=no 9453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9454 soname_spec='${libname}${release}${shared_ext}$major' 9455 shlibpath_var=LD_LIBRARY_PATH 9456 hardcode_into_libs=yes 9457 ;; 9458 9459hpux9* | hpux10* | hpux11*) 9460 # Give a soname corresponding to the major version so that dld.sl refuses to 9461 # link against other versions. 9462 version_type=sunos 9463 need_lib_prefix=no 9464 need_version=no 9465 case $host_cpu in 9466 ia64*) 9467 shrext_cmds='.so' 9468 hardcode_into_libs=yes 9469 dynamic_linker="$host_os dld.so" 9470 shlibpath_var=LD_LIBRARY_PATH 9471 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9473 soname_spec='${libname}${release}${shared_ext}$major' 9474 if test "X$HPUX_IA64_MODE" = X32; then 9475 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9476 else 9477 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9478 fi 9479 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9480 ;; 9481 hppa*64*) 9482 shrext_cmds='.sl' 9483 hardcode_into_libs=yes 9484 dynamic_linker="$host_os dld.sl" 9485 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9486 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9488 soname_spec='${libname}${release}${shared_ext}$major' 9489 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9490 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9491 ;; 9492 *) 9493 shrext_cmds='.sl' 9494 dynamic_linker="$host_os dld.sl" 9495 shlibpath_var=SHLIB_PATH 9496 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9498 soname_spec='${libname}${release}${shared_ext}$major' 9499 ;; 9500 esac 9501 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9502 postinstall_cmds='chmod 555 $lib' 9503 ;; 9504 9505interix[3-9]*) 9506 version_type=linux 9507 need_lib_prefix=no 9508 need_version=no 9509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9510 soname_spec='${libname}${release}${shared_ext}$major' 9511 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9512 shlibpath_var=LD_LIBRARY_PATH 9513 shlibpath_overrides_runpath=no 9514 hardcode_into_libs=yes 9515 ;; 9516 9517irix5* | irix6* | nonstopux*) 9518 case $host_os in 9519 nonstopux*) version_type=nonstopux ;; 9520 *) 9521 if test "$lt_cv_prog_gnu_ld" = yes; then 9522 version_type=linux 9523 else 9524 version_type=irix 9525 fi ;; 9526 esac 9527 need_lib_prefix=no 9528 need_version=no 9529 soname_spec='${libname}${release}${shared_ext}$major' 9530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9531 case $host_os in 9532 irix5* | nonstopux*) 9533 libsuff= shlibsuff= 9534 ;; 9535 *) 9536 case $LD in # libtool.m4 will add one of these switches to LD 9537 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9538 libsuff= shlibsuff= libmagic=32-bit;; 9539 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9540 libsuff=32 shlibsuff=N32 libmagic=N32;; 9541 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9542 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9543 *) libsuff= shlibsuff= libmagic=never-match;; 9544 esac 9545 ;; 9546 esac 9547 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9548 shlibpath_overrides_runpath=no 9549 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9550 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9551 hardcode_into_libs=yes 9552 ;; 9553 9554# No shared lib support for Linux oldld, aout, or coff. 9555linux*oldld* | linux*aout* | linux*coff*) 9556 dynamic_linker=no 9557 ;; 9558 9559# This must be Linux ELF. 9560linux* | k*bsd*-gnu) 9561 version_type=linux 9562 need_lib_prefix=no 9563 need_version=no 9564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9565 soname_spec='${libname}${release}${shared_ext}$major' 9566 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9567 shlibpath_var=LD_LIBRARY_PATH 9568 shlibpath_overrides_runpath=no 9569 # This implies no fast_install, which is unacceptable. 9570 # Some rework will be needed to allow for fast_install 9571 # before this can be enabled. 9572 hardcode_into_libs=yes 9573 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9574 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9575 9576 # Append ld.so.conf contents to the search path 9577 if test -f /etc/ld.so.conf; then 9578 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' ' '` 9579 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 9580 fi 9581 9582 # We used to test for /lib/ld.so.1 and disable shared libraries on 9583 # powerpc, because MkLinux only supported shared libraries with the 9584 # GNU dynamic linker. Since this was broken with cross compilers, 9585 # most powerpc-linux boxes support dynamic linking these days and 9586 # people can always --disable-shared, the test was removed, and we 9587 # assume the GNU/Linux dynamic linker is in use. 9588 dynamic_linker='GNU/Linux ld.so' 9589 ;; 9590 9591netbsd*) 9592 version_type=sunos 9593 need_lib_prefix=no 9594 need_version=no 9595 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9597 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9598 dynamic_linker='NetBSD (a.out) ld.so' 9599 else 9600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9601 soname_spec='${libname}${release}${shared_ext}$major' 9602 dynamic_linker='NetBSD ld.elf_so' 9603 fi 9604 shlibpath_var=LD_LIBRARY_PATH 9605 shlibpath_overrides_runpath=yes 9606 hardcode_into_libs=yes 9607 ;; 9608 9609newsos6) 9610 version_type=linux 9611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9612 shlibpath_var=LD_LIBRARY_PATH 9613 shlibpath_overrides_runpath=yes 9614 ;; 9615 9616nto-qnx*) 9617 version_type=linux 9618 need_lib_prefix=no 9619 need_version=no 9620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9621 soname_spec='${libname}${release}${shared_ext}$major' 9622 shlibpath_var=LD_LIBRARY_PATH 9623 shlibpath_overrides_runpath=yes 9624 ;; 9625 9626openbsd*) 9627 version_type=sunos 9628 sys_lib_dlsearch_path_spec="/usr/lib" 9629 need_lib_prefix=no 9630 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9631 case $host_os in 9632 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9633 *) need_version=no ;; 9634 esac 9635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9636 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9637 shlibpath_var=LD_LIBRARY_PATH 9638 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9639 case $host_os in 9640 openbsd2.[89] | openbsd2.[89].*) 9641 shlibpath_overrides_runpath=no 9642 ;; 9643 *) 9644 shlibpath_overrides_runpath=yes 9645 ;; 9646 esac 9647 else 9648 shlibpath_overrides_runpath=yes 9649 fi 9650 ;; 9651 9652os2*) 9653 libname_spec='$name' 9654 shrext_cmds=".dll" 9655 need_lib_prefix=no 9656 library_names_spec='$libname${shared_ext} $libname.a' 9657 dynamic_linker='OS/2 ld.exe' 9658 shlibpath_var=LIBPATH 9659 ;; 9660 9661osf3* | osf4* | osf5*) 9662 version_type=osf 9663 need_lib_prefix=no 9664 need_version=no 9665 soname_spec='${libname}${release}${shared_ext}$major' 9666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9667 shlibpath_var=LD_LIBRARY_PATH 9668 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9669 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9670 ;; 9671 9672rdos*) 9673 dynamic_linker=no 9674 ;; 9675 9676solaris*) 9677 version_type=linux 9678 need_lib_prefix=no 9679 need_version=no 9680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9681 soname_spec='${libname}${release}${shared_ext}$major' 9682 shlibpath_var=LD_LIBRARY_PATH 9683 shlibpath_overrides_runpath=yes 9684 hardcode_into_libs=yes 9685 # ldd complains unless libraries are executable 9686 postinstall_cmds='chmod +x $lib' 9687 ;; 9688 9689sunos4*) 9690 version_type=sunos 9691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9692 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9693 shlibpath_var=LD_LIBRARY_PATH 9694 shlibpath_overrides_runpath=yes 9695 if test "$with_gnu_ld" = yes; then 9696 need_lib_prefix=no 9697 fi 9698 need_version=yes 9699 ;; 9700 9701sysv4 | sysv4.3*) 9702 version_type=linux 9703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9704 soname_spec='${libname}${release}${shared_ext}$major' 9705 shlibpath_var=LD_LIBRARY_PATH 9706 case $host_vendor in 9707 sni) 9708 shlibpath_overrides_runpath=no 9709 need_lib_prefix=no 9710 export_dynamic_flag_spec='${wl}-Blargedynsym' 9711 runpath_var=LD_RUN_PATH 9712 ;; 9713 siemens) 9714 need_lib_prefix=no 9715 ;; 9716 motorola) 9717 need_lib_prefix=no 9718 need_version=no 9719 shlibpath_overrides_runpath=no 9720 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9721 ;; 9722 esac 9723 ;; 9724 9725sysv4*MP*) 9726 if test -d /usr/nec ;then 9727 version_type=linux 9728 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9729 soname_spec='$libname${shared_ext}.$major' 9730 shlibpath_var=LD_LIBRARY_PATH 9731 fi 9732 ;; 9733 9734sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9735 version_type=freebsd-elf 9736 need_lib_prefix=no 9737 need_version=no 9738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9739 soname_spec='${libname}${release}${shared_ext}$major' 9740 shlibpath_var=LD_LIBRARY_PATH 9741 hardcode_into_libs=yes 9742 if test "$with_gnu_ld" = yes; then 9743 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9744 shlibpath_overrides_runpath=no 9745 else 9746 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9747 shlibpath_overrides_runpath=yes 9748 case $host_os in 9749 sco3.2v5*) 9750 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9751 ;; 9752 esac 9753 fi 9754 sys_lib_dlsearch_path_spec='/usr/lib' 9755 ;; 9756 9757uts4*) 9758 version_type=linux 9759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9760 soname_spec='${libname}${release}${shared_ext}$major' 9761 shlibpath_var=LD_LIBRARY_PATH 9762 ;; 9763 9764*) 9765 dynamic_linker=no 9766 ;; 9767esac 9768{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9769$as_echo "$dynamic_linker" >&6; } 9770test "$dynamic_linker" = no && can_build_shared=no 9771 9772if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 9773 $as_echo_n "(cached) " >&6 9774else 9775 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 9776fi 9777 9778sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 9779if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 9780 $as_echo_n "(cached) " >&6 9781else 9782 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 9783fi 9784 9785sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 9786 9787variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9788if test "$GCC" = yes; then 9789 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9790fi 9791 9792{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9793$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 9794hardcode_action= 9795if test -n "$hardcode_libdir_flag_spec" || \ 9796 test -n "$runpath_var" || \ 9797 test "X$hardcode_automatic" = "Xyes" ; then 9798 9799 # We can hardcode non-existant directories. 9800 if test "$hardcode_direct" != no && 9801 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9802 # have to relink, otherwise we might link with an installed library 9803 # when we should be linking with a yet-to-be-installed one 9804 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9805 test "$hardcode_minus_L" != no; then 9806 # Linking always hardcodes the temporary library directory. 9807 hardcode_action=relink 9808 else 9809 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9810 hardcode_action=immediate 9811 fi 9812else 9813 # We cannot hardcode anything, or else we can only hardcode existing 9814 # directories. 9815 hardcode_action=unsupported 9816fi 9817{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 9818$as_echo "$hardcode_action" >&6; } 9819 9820if test "$hardcode_action" = relink; then 9821 # Fast installation is not supported 9822 enable_fast_install=no 9823elif test "$shlibpath_overrides_runpath" = yes || 9824 test "$enable_shared" = no; then 9825 # Fast installation is not necessary 9826 enable_fast_install=needless 9827fi 9828 9829striplib= 9830old_striplib= 9831{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9832$as_echo_n "checking whether stripping libraries is possible... " >&6; } 9833if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9834 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9835 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9836 { $as_echo "$as_me:$LINENO: result: yes" >&5 9837$as_echo "yes" >&6; } 9838else 9839# FIXME - insert some real tests, host_os isn't really good enough 9840 case $host_os in 9841 darwin*) 9842 if test -n "$STRIP" ; then 9843 striplib="$STRIP -x" 9844 old_striplib="$STRIP -S" 9845 { $as_echo "$as_me:$LINENO: result: yes" >&5 9846$as_echo "yes" >&6; } 9847 else 9848 { $as_echo "$as_me:$LINENO: result: no" >&5 9849$as_echo "no" >&6; } 9850fi 9851 ;; 9852 *) 9853 { $as_echo "$as_me:$LINENO: result: no" >&5 9854$as_echo "no" >&6; } 9855 ;; 9856 esac 9857fi 9858 9859if test "x$enable_dlopen" != xyes; then 9860 enable_dlopen=unknown 9861 enable_dlopen_self=unknown 9862 enable_dlopen_self_static=unknown 9863else 9864 lt_cv_dlopen=no 9865 lt_cv_dlopen_libs= 9866 9867 case $host_os in 9868 beos*) 9869 lt_cv_dlopen="load_add_on" 9870 lt_cv_dlopen_libs= 9871 lt_cv_dlopen_self=yes 9872 ;; 9873 9874 mingw* | pw32*) 9875 lt_cv_dlopen="LoadLibrary" 9876 lt_cv_dlopen_libs= 9877 ;; 9878 9879 cygwin*) 9880 lt_cv_dlopen="dlopen" 9881 lt_cv_dlopen_libs= 9882 ;; 9883 9884 darwin*) 9885 # if libdl is installed we need to link against it 9886 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9887$as_echo_n "checking for dlopen in -ldl... " >&6; } 9888if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9889 $as_echo_n "(cached) " >&6 9890else 9891 ac_check_lib_save_LIBS=$LIBS 9892LIBS="-ldl $LIBS" 9893cat >conftest.$ac_ext <<_ACEOF 9894/* confdefs.h. */ 9895_ACEOF 9896cat confdefs.h >>conftest.$ac_ext 9897cat >>conftest.$ac_ext <<_ACEOF 9898/* end confdefs.h. */ 9899 9900/* Override any GCC internal prototype to avoid an error. 9901 Use char because int might match the return type of a GCC 9902 builtin and then its argument prototype would still apply. */ 9903#ifdef __cplusplus 9904extern "C" 9905#endif 9906char dlopen (); 9907int 9908main () 9909{ 9910return dlopen (); 9911 ; 9912 return 0; 9913} 9914_ACEOF 9915rm -f conftest.$ac_objext conftest$ac_exeext 9916if { (ac_try="$ac_link" 9917case "(($ac_try" in 9918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9919 *) ac_try_echo=$ac_try;; 9920esac 9921eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9922$as_echo "$ac_try_echo") >&5 9923 (eval "$ac_link") 2>conftest.er1 9924 ac_status=$? 9925 grep -v '^ *+' conftest.er1 >conftest.err 9926 rm -f conftest.er1 9927 cat conftest.err >&5 9928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9929 (exit $ac_status); } && { 9930 test -z "$ac_c_werror_flag" || 9931 test ! -s conftest.err 9932 } && test -s conftest$ac_exeext && { 9933 test "$cross_compiling" = yes || 9934 $as_test_x conftest$ac_exeext 9935 }; then 9936 ac_cv_lib_dl_dlopen=yes 9937else 9938 $as_echo "$as_me: failed program was:" >&5 9939sed 's/^/| /' conftest.$ac_ext >&5 9940 9941 ac_cv_lib_dl_dlopen=no 9942fi 9943 9944rm -rf conftest.dSYM 9945rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9946 conftest$ac_exeext conftest.$ac_ext 9947LIBS=$ac_check_lib_save_LIBS 9948fi 9949{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9950$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 9951if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 9952 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9953else 9954 9955 lt_cv_dlopen="dyld" 9956 lt_cv_dlopen_libs= 9957 lt_cv_dlopen_self=yes 9958 9959fi 9960 9961 ;; 9962 9963 *) 9964 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 9965$as_echo_n "checking for shl_load... " >&6; } 9966if test "${ac_cv_func_shl_load+set}" = set; then 9967 $as_echo_n "(cached) " >&6 9968else 9969 cat >conftest.$ac_ext <<_ACEOF 9970/* confdefs.h. */ 9971_ACEOF 9972cat confdefs.h >>conftest.$ac_ext 9973cat >>conftest.$ac_ext <<_ACEOF 9974/* end confdefs.h. */ 9975/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9976 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9977#define shl_load innocuous_shl_load 9978 9979/* System header to define __stub macros and hopefully few prototypes, 9980 which can conflict with char shl_load (); below. 9981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9982 <limits.h> exists even on freestanding compilers. */ 9983 9984#ifdef __STDC__ 9985# include <limits.h> 9986#else 9987# include <assert.h> 9988#endif 9989 9990#undef shl_load 9991 9992/* Override any GCC internal prototype to avoid an error. 9993 Use char because int might match the return type of a GCC 9994 builtin and then its argument prototype would still apply. */ 9995#ifdef __cplusplus 9996extern "C" 9997#endif 9998char shl_load (); 9999/* The GNU C library defines this for functions which it implements 10000 to always fail with ENOSYS. Some functions are actually named 10001 something starting with __ and the normal name is an alias. */ 10002#if defined __stub_shl_load || defined __stub___shl_load 10003choke me 10004#endif 10005 10006int 10007main () 10008{ 10009return shl_load (); 10010 ; 10011 return 0; 10012} 10013_ACEOF 10014rm -f conftest.$ac_objext conftest$ac_exeext 10015if { (ac_try="$ac_link" 10016case "(($ac_try" in 10017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10018 *) ac_try_echo=$ac_try;; 10019esac 10020eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10021$as_echo "$ac_try_echo") >&5 10022 (eval "$ac_link") 2>conftest.er1 10023 ac_status=$? 10024 grep -v '^ *+' conftest.er1 >conftest.err 10025 rm -f conftest.er1 10026 cat conftest.err >&5 10027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10028 (exit $ac_status); } && { 10029 test -z "$ac_c_werror_flag" || 10030 test ! -s conftest.err 10031 } && test -s conftest$ac_exeext && { 10032 test "$cross_compiling" = yes || 10033 $as_test_x conftest$ac_exeext 10034 }; then 10035 ac_cv_func_shl_load=yes 10036else 10037 $as_echo "$as_me: failed program was:" >&5 10038sed 's/^/| /' conftest.$ac_ext >&5 10039 10040 ac_cv_func_shl_load=no 10041fi 10042 10043rm -rf conftest.dSYM 10044rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10045 conftest$ac_exeext conftest.$ac_ext 10046fi 10047{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 10048$as_echo "$ac_cv_func_shl_load" >&6; } 10049if test "x$ac_cv_func_shl_load" = x""yes; then 10050 lt_cv_dlopen="shl_load" 10051else 10052 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10053$as_echo_n "checking for shl_load in -ldld... " >&6; } 10054if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10055 $as_echo_n "(cached) " >&6 10056else 10057 ac_check_lib_save_LIBS=$LIBS 10058LIBS="-ldld $LIBS" 10059cat >conftest.$ac_ext <<_ACEOF 10060/* confdefs.h. */ 10061_ACEOF 10062cat confdefs.h >>conftest.$ac_ext 10063cat >>conftest.$ac_ext <<_ACEOF 10064/* end confdefs.h. */ 10065 10066/* Override any GCC internal prototype to avoid an error. 10067 Use char because int might match the return type of a GCC 10068 builtin and then its argument prototype would still apply. */ 10069#ifdef __cplusplus 10070extern "C" 10071#endif 10072char shl_load (); 10073int 10074main () 10075{ 10076return shl_load (); 10077 ; 10078 return 0; 10079} 10080_ACEOF 10081rm -f conftest.$ac_objext conftest$ac_exeext 10082if { (ac_try="$ac_link" 10083case "(($ac_try" in 10084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10085 *) ac_try_echo=$ac_try;; 10086esac 10087eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10088$as_echo "$ac_try_echo") >&5 10089 (eval "$ac_link") 2>conftest.er1 10090 ac_status=$? 10091 grep -v '^ *+' conftest.er1 >conftest.err 10092 rm -f conftest.er1 10093 cat conftest.err >&5 10094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10095 (exit $ac_status); } && { 10096 test -z "$ac_c_werror_flag" || 10097 test ! -s conftest.err 10098 } && test -s conftest$ac_exeext && { 10099 test "$cross_compiling" = yes || 10100 $as_test_x conftest$ac_exeext 10101 }; then 10102 ac_cv_lib_dld_shl_load=yes 10103else 10104 $as_echo "$as_me: failed program was:" >&5 10105sed 's/^/| /' conftest.$ac_ext >&5 10106 10107 ac_cv_lib_dld_shl_load=no 10108fi 10109 10110rm -rf conftest.dSYM 10111rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10112 conftest$ac_exeext conftest.$ac_ext 10113LIBS=$ac_check_lib_save_LIBS 10114fi 10115{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10116$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10117if test "x$ac_cv_lib_dld_shl_load" = x""yes; then 10118 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10119else 10120 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 10121$as_echo_n "checking for dlopen... " >&6; } 10122if test "${ac_cv_func_dlopen+set}" = set; then 10123 $as_echo_n "(cached) " >&6 10124else 10125 cat >conftest.$ac_ext <<_ACEOF 10126/* confdefs.h. */ 10127_ACEOF 10128cat confdefs.h >>conftest.$ac_ext 10129cat >>conftest.$ac_ext <<_ACEOF 10130/* end confdefs.h. */ 10131/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10132 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10133#define dlopen innocuous_dlopen 10134 10135/* System header to define __stub macros and hopefully few prototypes, 10136 which can conflict with char dlopen (); below. 10137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10138 <limits.h> exists even on freestanding compilers. */ 10139 10140#ifdef __STDC__ 10141# include <limits.h> 10142#else 10143# include <assert.h> 10144#endif 10145 10146#undef dlopen 10147 10148/* Override any GCC internal prototype to avoid an error. 10149 Use char because int might match the return type of a GCC 10150 builtin and then its argument prototype would still apply. */ 10151#ifdef __cplusplus 10152extern "C" 10153#endif 10154char dlopen (); 10155/* The GNU C library defines this for functions which it implements 10156 to always fail with ENOSYS. Some functions are actually named 10157 something starting with __ and the normal name is an alias. */ 10158#if defined __stub_dlopen || defined __stub___dlopen 10159choke me 10160#endif 10161 10162int 10163main () 10164{ 10165return dlopen (); 10166 ; 10167 return 0; 10168} 10169_ACEOF 10170rm -f conftest.$ac_objext conftest$ac_exeext 10171if { (ac_try="$ac_link" 10172case "(($ac_try" in 10173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10174 *) ac_try_echo=$ac_try;; 10175esac 10176eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10177$as_echo "$ac_try_echo") >&5 10178 (eval "$ac_link") 2>conftest.er1 10179 ac_status=$? 10180 grep -v '^ *+' conftest.er1 >conftest.err 10181 rm -f conftest.er1 10182 cat conftest.err >&5 10183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10184 (exit $ac_status); } && { 10185 test -z "$ac_c_werror_flag" || 10186 test ! -s conftest.err 10187 } && test -s conftest$ac_exeext && { 10188 test "$cross_compiling" = yes || 10189 $as_test_x conftest$ac_exeext 10190 }; then 10191 ac_cv_func_dlopen=yes 10192else 10193 $as_echo "$as_me: failed program was:" >&5 10194sed 's/^/| /' conftest.$ac_ext >&5 10195 10196 ac_cv_func_dlopen=no 10197fi 10198 10199rm -rf conftest.dSYM 10200rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10201 conftest$ac_exeext conftest.$ac_ext 10202fi 10203{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10204$as_echo "$ac_cv_func_dlopen" >&6; } 10205if test "x$ac_cv_func_dlopen" = x""yes; then 10206 lt_cv_dlopen="dlopen" 10207else 10208 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10209$as_echo_n "checking for dlopen in -ldl... " >&6; } 10210if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10211 $as_echo_n "(cached) " >&6 10212else 10213 ac_check_lib_save_LIBS=$LIBS 10214LIBS="-ldl $LIBS" 10215cat >conftest.$ac_ext <<_ACEOF 10216/* confdefs.h. */ 10217_ACEOF 10218cat confdefs.h >>conftest.$ac_ext 10219cat >>conftest.$ac_ext <<_ACEOF 10220/* end confdefs.h. */ 10221 10222/* Override any GCC internal prototype to avoid an error. 10223 Use char because int might match the return type of a GCC 10224 builtin and then its argument prototype would still apply. */ 10225#ifdef __cplusplus 10226extern "C" 10227#endif 10228char dlopen (); 10229int 10230main () 10231{ 10232return dlopen (); 10233 ; 10234 return 0; 10235} 10236_ACEOF 10237rm -f conftest.$ac_objext conftest$ac_exeext 10238if { (ac_try="$ac_link" 10239case "(($ac_try" in 10240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10241 *) ac_try_echo=$ac_try;; 10242esac 10243eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10244$as_echo "$ac_try_echo") >&5 10245 (eval "$ac_link") 2>conftest.er1 10246 ac_status=$? 10247 grep -v '^ *+' conftest.er1 >conftest.err 10248 rm -f conftest.er1 10249 cat conftest.err >&5 10250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10251 (exit $ac_status); } && { 10252 test -z "$ac_c_werror_flag" || 10253 test ! -s conftest.err 10254 } && test -s conftest$ac_exeext && { 10255 test "$cross_compiling" = yes || 10256 $as_test_x conftest$ac_exeext 10257 }; then 10258 ac_cv_lib_dl_dlopen=yes 10259else 10260 $as_echo "$as_me: failed program was:" >&5 10261sed 's/^/| /' conftest.$ac_ext >&5 10262 10263 ac_cv_lib_dl_dlopen=no 10264fi 10265 10266rm -rf conftest.dSYM 10267rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10268 conftest$ac_exeext conftest.$ac_ext 10269LIBS=$ac_check_lib_save_LIBS 10270fi 10271{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10272$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10273if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 10274 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10275else 10276 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10277$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10278if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10279 $as_echo_n "(cached) " >&6 10280else 10281 ac_check_lib_save_LIBS=$LIBS 10282LIBS="-lsvld $LIBS" 10283cat >conftest.$ac_ext <<_ACEOF 10284/* confdefs.h. */ 10285_ACEOF 10286cat confdefs.h >>conftest.$ac_ext 10287cat >>conftest.$ac_ext <<_ACEOF 10288/* end confdefs.h. */ 10289 10290/* Override any GCC internal prototype to avoid an error. 10291 Use char because int might match the return type of a GCC 10292 builtin and then its argument prototype would still apply. */ 10293#ifdef __cplusplus 10294extern "C" 10295#endif 10296char dlopen (); 10297int 10298main () 10299{ 10300return dlopen (); 10301 ; 10302 return 0; 10303} 10304_ACEOF 10305rm -f conftest.$ac_objext conftest$ac_exeext 10306if { (ac_try="$ac_link" 10307case "(($ac_try" in 10308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10309 *) ac_try_echo=$ac_try;; 10310esac 10311eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10312$as_echo "$ac_try_echo") >&5 10313 (eval "$ac_link") 2>conftest.er1 10314 ac_status=$? 10315 grep -v '^ *+' conftest.er1 >conftest.err 10316 rm -f conftest.er1 10317 cat conftest.err >&5 10318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10319 (exit $ac_status); } && { 10320 test -z "$ac_c_werror_flag" || 10321 test ! -s conftest.err 10322 } && test -s conftest$ac_exeext && { 10323 test "$cross_compiling" = yes || 10324 $as_test_x conftest$ac_exeext 10325 }; then 10326 ac_cv_lib_svld_dlopen=yes 10327else 10328 $as_echo "$as_me: failed program was:" >&5 10329sed 's/^/| /' conftest.$ac_ext >&5 10330 10331 ac_cv_lib_svld_dlopen=no 10332fi 10333 10334rm -rf conftest.dSYM 10335rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10336 conftest$ac_exeext conftest.$ac_ext 10337LIBS=$ac_check_lib_save_LIBS 10338fi 10339{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10340$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10341if test "x$ac_cv_lib_svld_dlopen" = x""yes; then 10342 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10343else 10344 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10345$as_echo_n "checking for dld_link in -ldld... " >&6; } 10346if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10347 $as_echo_n "(cached) " >&6 10348else 10349 ac_check_lib_save_LIBS=$LIBS 10350LIBS="-ldld $LIBS" 10351cat >conftest.$ac_ext <<_ACEOF 10352/* confdefs.h. */ 10353_ACEOF 10354cat confdefs.h >>conftest.$ac_ext 10355cat >>conftest.$ac_ext <<_ACEOF 10356/* end confdefs.h. */ 10357 10358/* Override any GCC internal prototype to avoid an error. 10359 Use char because int might match the return type of a GCC 10360 builtin and then its argument prototype would still apply. */ 10361#ifdef __cplusplus 10362extern "C" 10363#endif 10364char dld_link (); 10365int 10366main () 10367{ 10368return dld_link (); 10369 ; 10370 return 0; 10371} 10372_ACEOF 10373rm -f conftest.$ac_objext conftest$ac_exeext 10374if { (ac_try="$ac_link" 10375case "(($ac_try" in 10376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10377 *) ac_try_echo=$ac_try;; 10378esac 10379eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10380$as_echo "$ac_try_echo") >&5 10381 (eval "$ac_link") 2>conftest.er1 10382 ac_status=$? 10383 grep -v '^ *+' conftest.er1 >conftest.err 10384 rm -f conftest.er1 10385 cat conftest.err >&5 10386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10387 (exit $ac_status); } && { 10388 test -z "$ac_c_werror_flag" || 10389 test ! -s conftest.err 10390 } && test -s conftest$ac_exeext && { 10391 test "$cross_compiling" = yes || 10392 $as_test_x conftest$ac_exeext 10393 }; then 10394 ac_cv_lib_dld_dld_link=yes 10395else 10396 $as_echo "$as_me: failed program was:" >&5 10397sed 's/^/| /' conftest.$ac_ext >&5 10398 10399 ac_cv_lib_dld_dld_link=no 10400fi 10401 10402rm -rf conftest.dSYM 10403rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10404 conftest$ac_exeext conftest.$ac_ext 10405LIBS=$ac_check_lib_save_LIBS 10406fi 10407{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10408$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10409if test "x$ac_cv_lib_dld_dld_link" = x""yes; then 10410 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10411fi 10412 10413 10414fi 10415 10416 10417fi 10418 10419 10420fi 10421 10422 10423fi 10424 10425 10426fi 10427 10428 ;; 10429 esac 10430 10431 if test "x$lt_cv_dlopen" != xno; then 10432 enable_dlopen=yes 10433 else 10434 enable_dlopen=no 10435 fi 10436 10437 case $lt_cv_dlopen in 10438 dlopen) 10439 save_CPPFLAGS="$CPPFLAGS" 10440 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10441 10442 save_LDFLAGS="$LDFLAGS" 10443 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10444 10445 save_LIBS="$LIBS" 10446 LIBS="$lt_cv_dlopen_libs $LIBS" 10447 10448 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10449$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10450if test "${lt_cv_dlopen_self+set}" = set; then 10451 $as_echo_n "(cached) " >&6 10452else 10453 if test "$cross_compiling" = yes; then : 10454 lt_cv_dlopen_self=cross 10455else 10456 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10457 lt_status=$lt_dlunknown 10458 cat > conftest.$ac_ext <<EOF 10459#line 10459 "configure" 10460#include "confdefs.h" 10461 10462#if HAVE_DLFCN_H 10463#include <dlfcn.h> 10464#endif 10465 10466#include <stdio.h> 10467 10468#ifdef RTLD_GLOBAL 10469# define LT_DLGLOBAL RTLD_GLOBAL 10470#else 10471# ifdef DL_GLOBAL 10472# define LT_DLGLOBAL DL_GLOBAL 10473# else 10474# define LT_DLGLOBAL 0 10475# endif 10476#endif 10477 10478/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10479 find out it does not work in some platform. */ 10480#ifndef LT_DLLAZY_OR_NOW 10481# ifdef RTLD_LAZY 10482# define LT_DLLAZY_OR_NOW RTLD_LAZY 10483# else 10484# ifdef DL_LAZY 10485# define LT_DLLAZY_OR_NOW DL_LAZY 10486# else 10487# ifdef RTLD_NOW 10488# define LT_DLLAZY_OR_NOW RTLD_NOW 10489# else 10490# ifdef DL_NOW 10491# define LT_DLLAZY_OR_NOW DL_NOW 10492# else 10493# define LT_DLLAZY_OR_NOW 0 10494# endif 10495# endif 10496# endif 10497# endif 10498#endif 10499 10500#ifdef __cplusplus 10501extern "C" void exit (int); 10502#endif 10503 10504void fnord() { int i=42;} 10505int main () 10506{ 10507 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10508 int status = $lt_dlunknown; 10509 10510 if (self) 10511 { 10512 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10513 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10514 /* dlclose (self); */ 10515 } 10516 else 10517 puts (dlerror ()); 10518 10519 exit (status); 10520} 10521EOF 10522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10523 (eval $ac_link) 2>&5 10524 ac_status=$? 10525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10526 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10527 (./conftest; exit; ) >&5 2>/dev/null 10528 lt_status=$? 10529 case x$lt_status in 10530 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10531 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10532 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10533 esac 10534 else : 10535 # compilation failed 10536 lt_cv_dlopen_self=no 10537 fi 10538fi 10539rm -fr conftest* 10540 10541 10542fi 10543{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10544$as_echo "$lt_cv_dlopen_self" >&6; } 10545 10546 if test "x$lt_cv_dlopen_self" = xyes; then 10547 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10548 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10549$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10550if test "${lt_cv_dlopen_self_static+set}" = set; then 10551 $as_echo_n "(cached) " >&6 10552else 10553 if test "$cross_compiling" = yes; then : 10554 lt_cv_dlopen_self_static=cross 10555else 10556 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10557 lt_status=$lt_dlunknown 10558 cat > conftest.$ac_ext <<EOF 10559#line 10559 "configure" 10560#include "confdefs.h" 10561 10562#if HAVE_DLFCN_H 10563#include <dlfcn.h> 10564#endif 10565 10566#include <stdio.h> 10567 10568#ifdef RTLD_GLOBAL 10569# define LT_DLGLOBAL RTLD_GLOBAL 10570#else 10571# ifdef DL_GLOBAL 10572# define LT_DLGLOBAL DL_GLOBAL 10573# else 10574# define LT_DLGLOBAL 0 10575# endif 10576#endif 10577 10578/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10579 find out it does not work in some platform. */ 10580#ifndef LT_DLLAZY_OR_NOW 10581# ifdef RTLD_LAZY 10582# define LT_DLLAZY_OR_NOW RTLD_LAZY 10583# else 10584# ifdef DL_LAZY 10585# define LT_DLLAZY_OR_NOW DL_LAZY 10586# else 10587# ifdef RTLD_NOW 10588# define LT_DLLAZY_OR_NOW RTLD_NOW 10589# else 10590# ifdef DL_NOW 10591# define LT_DLLAZY_OR_NOW DL_NOW 10592# else 10593# define LT_DLLAZY_OR_NOW 0 10594# endif 10595# endif 10596# endif 10597# endif 10598#endif 10599 10600#ifdef __cplusplus 10601extern "C" void exit (int); 10602#endif 10603 10604void fnord() { int i=42;} 10605int main () 10606{ 10607 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10608 int status = $lt_dlunknown; 10609 10610 if (self) 10611 { 10612 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10613 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10614 /* dlclose (self); */ 10615 } 10616 else 10617 puts (dlerror ()); 10618 10619 exit (status); 10620} 10621EOF 10622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10623 (eval $ac_link) 2>&5 10624 ac_status=$? 10625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10626 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10627 (./conftest; exit; ) >&5 2>/dev/null 10628 lt_status=$? 10629 case x$lt_status in 10630 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10631 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10632 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10633 esac 10634 else : 10635 # compilation failed 10636 lt_cv_dlopen_self_static=no 10637 fi 10638fi 10639rm -fr conftest* 10640 10641 10642fi 10643{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10644$as_echo "$lt_cv_dlopen_self_static" >&6; } 10645 fi 10646 10647 CPPFLAGS="$save_CPPFLAGS" 10648 LDFLAGS="$save_LDFLAGS" 10649 LIBS="$save_LIBS" 10650 ;; 10651 esac 10652 10653 case $lt_cv_dlopen_self in 10654 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10655 *) enable_dlopen_self=unknown ;; 10656 esac 10657 10658 case $lt_cv_dlopen_self_static in 10659 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10660 *) enable_dlopen_self_static=unknown ;; 10661 esac 10662fi 10663 10664 10665# Report which library types will actually be built 10666{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10667$as_echo_n "checking if libtool supports shared libraries... " >&6; } 10668{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 10669$as_echo "$can_build_shared" >&6; } 10670 10671{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10672$as_echo_n "checking whether to build shared libraries... " >&6; } 10673test "$can_build_shared" = "no" && enable_shared=no 10674 10675# On AIX, shared libraries and static libraries use the same namespace, and 10676# are all built from PIC. 10677case $host_os in 10678aix3*) 10679 test "$enable_shared" = yes && enable_static=no 10680 if test -n "$RANLIB"; then 10681 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10682 postinstall_cmds='$RANLIB $lib' 10683 fi 10684 ;; 10685 10686aix[4-9]*) 10687 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10688 test "$enable_shared" = yes && enable_static=no 10689 fi 10690 ;; 10691esac 10692{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 10693$as_echo "$enable_shared" >&6; } 10694 10695{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10696$as_echo_n "checking whether to build static libraries... " >&6; } 10697# Make sure either enable_shared or enable_static is yes. 10698test "$enable_shared" = yes || enable_static=yes 10699{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5 10700$as_echo "$enable_static" >&6; } 10701 10702# The else clause should only fire when bootstrapping the 10703# libtool distribution, otherwise you forgot to ship ltmain.sh 10704# with your package, and you will get complaints that there are 10705# no rules to generate ltmain.sh. 10706if test -f "$ltmain"; then 10707 # See if we are running on zsh, and set the options which allow our commands through 10708 # without removal of \ escapes. 10709 if test -n "${ZSH_VERSION+set}" ; then 10710 setopt NO_GLOB_SUBST 10711 fi 10712 # Now quote all the things that may contain metacharacters while being 10713 # careful not to overquote the AC_SUBSTed values. We take copies of the 10714 # variables and quote the copies for generation of the libtool script. 10715 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10716 SED SHELL STRIP \ 10717 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10718 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10719 deplibs_check_method reload_flag reload_cmds need_locks \ 10720 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10721 lt_cv_sys_global_symbol_to_c_name_address \ 10722 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10723 old_postinstall_cmds old_postuninstall_cmds \ 10724 compiler \ 10725 CC \ 10726 LD \ 10727 lt_prog_compiler_wl \ 10728 lt_prog_compiler_pic \ 10729 lt_prog_compiler_static \ 10730 lt_prog_compiler_no_builtin_flag \ 10731 export_dynamic_flag_spec \ 10732 thread_safe_flag_spec \ 10733 whole_archive_flag_spec \ 10734 enable_shared_with_static_runtimes \ 10735 old_archive_cmds \ 10736 old_archive_from_new_cmds \ 10737 predep_objects \ 10738 postdep_objects \ 10739 predeps \ 10740 postdeps \ 10741 compiler_lib_search_path \ 10742 compiler_lib_search_dirs \ 10743 archive_cmds \ 10744 archive_expsym_cmds \ 10745 postinstall_cmds \ 10746 postuninstall_cmds \ 10747 old_archive_from_expsyms_cmds \ 10748 allow_undefined_flag \ 10749 no_undefined_flag \ 10750 export_symbols_cmds \ 10751 hardcode_libdir_flag_spec \ 10752 hardcode_libdir_flag_spec_ld \ 10753 hardcode_libdir_separator \ 10754 hardcode_automatic \ 10755 module_cmds \ 10756 module_expsym_cmds \ 10757 lt_cv_prog_compiler_c_o \ 10758 fix_srcfile_path \ 10759 exclude_expsyms \ 10760 include_expsyms; do 10761 10762 case $var in 10763 old_archive_cmds | \ 10764 old_archive_from_new_cmds | \ 10765 archive_cmds | \ 10766 archive_expsym_cmds | \ 10767 module_cmds | \ 10768 module_expsym_cmds | \ 10769 old_archive_from_expsyms_cmds | \ 10770 export_symbols_cmds | \ 10771 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10772 postinstall_cmds | postuninstall_cmds | \ 10773 old_postinstall_cmds | old_postuninstall_cmds | \ 10774 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10775 # Double-quote double-evaled strings. 10776 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10777 ;; 10778 *) 10779 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10780 ;; 10781 esac 10782 done 10783 10784 case $lt_echo in 10785 *'\$0 --fallback-echo"') 10786 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10787 ;; 10788 esac 10789 10790cfgfile="${ofile}T" 10791 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10792 $rm -f "$cfgfile" 10793 { $as_echo "$as_me:$LINENO: creating $ofile" >&5 10794$as_echo "$as_me: creating $ofile" >&6;} 10795 10796 cat <<__EOF__ >> "$cfgfile" 10797#! $SHELL 10798 10799# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10800# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10801# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10802# 10803# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 10804# Free Software Foundation, Inc. 10805# 10806# This file is part of GNU Libtool: 10807# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10808# 10809# This program is free software; you can redistribute it and/or modify 10810# it under the terms of the GNU General Public License as published by 10811# the Free Software Foundation; either version 2 of the License, or 10812# (at your option) any later version. 10813# 10814# This program is distributed in the hope that it will be useful, but 10815# WITHOUT ANY WARRANTY; without even the implied warranty of 10816# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10817# General Public License for more details. 10818# 10819# You should have received a copy of the GNU General Public License 10820# along with this program; if not, write to the Free Software 10821# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10822# 10823# As a special exception to the GNU General Public License, if you 10824# distribute this file as part of a program that contains a 10825# configuration script generated by Autoconf, you may include it under 10826# the same distribution terms that you use for the rest of that program. 10827 10828# A sed program that does not truncate output. 10829SED=$lt_SED 10830 10831# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10832Xsed="$SED -e 1s/^X//" 10833 10834# The HP-UX ksh and POSIX shell print the target directory to stdout 10835# if CDPATH is set. 10836(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10837 10838# The names of the tagged configurations supported by this script. 10839available_tags= 10840 10841# ### BEGIN LIBTOOL CONFIG 10842 10843# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10844 10845# Shell to use when invoking shell scripts. 10846SHELL=$lt_SHELL 10847 10848# Whether or not to build shared libraries. 10849build_libtool_libs=$enable_shared 10850 10851# Whether or not to build static libraries. 10852build_old_libs=$enable_static 10853 10854# Whether or not to add -lc for building shared libraries. 10855build_libtool_need_lc=$archive_cmds_need_lc 10856 10857# Whether or not to disallow shared libs when runtime libs are static 10858allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10859 10860# Whether or not to optimize for fast installation. 10861fast_install=$enable_fast_install 10862 10863# The host system. 10864host_alias=$host_alias 10865host=$host 10866host_os=$host_os 10867 10868# The build system. 10869build_alias=$build_alias 10870build=$build 10871build_os=$build_os 10872 10873# An echo program that does not interpret backslashes. 10874echo=$lt_echo 10875 10876# The archiver. 10877AR=$lt_AR 10878AR_FLAGS=$lt_AR_FLAGS 10879 10880# A C compiler. 10881LTCC=$lt_LTCC 10882 10883# LTCC compiler flags. 10884LTCFLAGS=$lt_LTCFLAGS 10885 10886# A language-specific compiler. 10887CC=$lt_compiler 10888 10889# Is the compiler the GNU C compiler? 10890with_gcc=$GCC 10891 10892# An ERE matcher. 10893EGREP=$lt_EGREP 10894 10895# The linker used to build libraries. 10896LD=$lt_LD 10897 10898# Whether we need hard or soft links. 10899LN_S=$lt_LN_S 10900 10901# A BSD-compatible nm program. 10902NM=$lt_NM 10903 10904# A symbol stripping program 10905STRIP=$lt_STRIP 10906 10907# Used to examine libraries when file_magic_cmd begins "file" 10908MAGIC_CMD=$MAGIC_CMD 10909 10910# Used on cygwin: DLL creation program. 10911DLLTOOL="$DLLTOOL" 10912 10913# Used on cygwin: object dumper. 10914OBJDUMP="$OBJDUMP" 10915 10916# Used on cygwin: assembler. 10917AS="$AS" 10918 10919# The name of the directory that contains temporary libtool files. 10920objdir=$objdir 10921 10922# How to create reloadable object files. 10923reload_flag=$lt_reload_flag 10924reload_cmds=$lt_reload_cmds 10925 10926# How to pass a linker flag through the compiler. 10927wl=$lt_lt_prog_compiler_wl 10928 10929# Object file suffix (normally "o"). 10930objext="$ac_objext" 10931 10932# Old archive suffix (normally "a"). 10933libext="$libext" 10934 10935# Shared library suffix (normally ".so"). 10936shrext_cmds='$shrext_cmds' 10937 10938# Executable file suffix (normally ""). 10939exeext="$exeext" 10940 10941# Additional compiler flags for building library objects. 10942pic_flag=$lt_lt_prog_compiler_pic 10943pic_mode=$pic_mode 10944 10945# What is the maximum length of a command? 10946max_cmd_len=$lt_cv_sys_max_cmd_len 10947 10948# Does compiler simultaneously support -c and -o options? 10949compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10950 10951# Must we lock files when doing compilation? 10952need_locks=$lt_need_locks 10953 10954# Do we need the lib prefix for modules? 10955need_lib_prefix=$need_lib_prefix 10956 10957# Do we need a version for libraries? 10958need_version=$need_version 10959 10960# Whether dlopen is supported. 10961dlopen_support=$enable_dlopen 10962 10963# Whether dlopen of programs is supported. 10964dlopen_self=$enable_dlopen_self 10965 10966# Whether dlopen of statically linked programs is supported. 10967dlopen_self_static=$enable_dlopen_self_static 10968 10969# Compiler flag to prevent dynamic linking. 10970link_static_flag=$lt_lt_prog_compiler_static 10971 10972# Compiler flag to turn off builtin functions. 10973no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10974 10975# Compiler flag to allow reflexive dlopens. 10976export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10977 10978# Compiler flag to generate shared objects directly from archives. 10979whole_archive_flag_spec=$lt_whole_archive_flag_spec 10980 10981# Compiler flag to generate thread-safe objects. 10982thread_safe_flag_spec=$lt_thread_safe_flag_spec 10983 10984# Library versioning type. 10985version_type=$version_type 10986 10987# Format of library name prefix. 10988libname_spec=$lt_libname_spec 10989 10990# List of archive names. First name is the real one, the rest are links. 10991# The last name is the one that the linker finds with -lNAME. 10992library_names_spec=$lt_library_names_spec 10993 10994# The coded name of the library, if different from the real name. 10995soname_spec=$lt_soname_spec 10996 10997# Commands used to build and install an old-style archive. 10998RANLIB=$lt_RANLIB 10999old_archive_cmds=$lt_old_archive_cmds 11000old_postinstall_cmds=$lt_old_postinstall_cmds 11001old_postuninstall_cmds=$lt_old_postuninstall_cmds 11002 11003# Create an old-style archive from a shared archive. 11004old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 11005 11006# Create a temporary old-style archive to link instead of a shared archive. 11007old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 11008 11009# Commands used to build and install a shared archive. 11010archive_cmds=$lt_archive_cmds 11011archive_expsym_cmds=$lt_archive_expsym_cmds 11012postinstall_cmds=$lt_postinstall_cmds 11013postuninstall_cmds=$lt_postuninstall_cmds 11014 11015# Commands used to build a loadable module (assumed same as above if empty) 11016module_cmds=$lt_module_cmds 11017module_expsym_cmds=$lt_module_expsym_cmds 11018 11019# Commands to strip libraries. 11020old_striplib=$lt_old_striplib 11021striplib=$lt_striplib 11022 11023# Dependencies to place before the objects being linked to create a 11024# shared library. 11025predep_objects=$lt_predep_objects 11026 11027# Dependencies to place after the objects being linked to create a 11028# shared library. 11029postdep_objects=$lt_postdep_objects 11030 11031# Dependencies to place before the objects being linked to create a 11032# shared library. 11033predeps=$lt_predeps 11034 11035# Dependencies to place after the objects being linked to create a 11036# shared library. 11037postdeps=$lt_postdeps 11038 11039# The directories searched by this compiler when creating a shared 11040# library 11041compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 11042 11043# The library search path used internally by the compiler when linking 11044# a shared library. 11045compiler_lib_search_path=$lt_compiler_lib_search_path 11046 11047# Method to check whether dependent libraries are shared objects. 11048deplibs_check_method=$lt_deplibs_check_method 11049 11050# Command to use when deplibs_check_method == file_magic. 11051file_magic_cmd=$lt_file_magic_cmd 11052 11053# Flag that allows shared libraries with undefined symbols to be built. 11054allow_undefined_flag=$lt_allow_undefined_flag 11055 11056# Flag that forces no undefined symbols. 11057no_undefined_flag=$lt_no_undefined_flag 11058 11059# Commands used to finish a libtool library installation in a directory. 11060finish_cmds=$lt_finish_cmds 11061 11062# Same as above, but a single script fragment to be evaled but not shown. 11063finish_eval=$lt_finish_eval 11064 11065# Take the output of nm and produce a listing of raw symbols and C names. 11066global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 11067 11068# Transform the output of nm in a proper C declaration 11069global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 11070 11071# Transform the output of nm in a C name address pair 11072global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 11073 11074# This is the shared library runtime path variable. 11075runpath_var=$runpath_var 11076 11077# This is the shared library path variable. 11078shlibpath_var=$shlibpath_var 11079 11080# Is shlibpath searched before the hard-coded library search path? 11081shlibpath_overrides_runpath=$shlibpath_overrides_runpath 11082 11083# How to hardcode a shared library path into an executable. 11084hardcode_action=$hardcode_action 11085 11086# Whether we should hardcode library paths into libraries. 11087hardcode_into_libs=$hardcode_into_libs 11088 11089# Flag to hardcode \$libdir into a binary during linking. 11090# This must work even if \$libdir does not exist. 11091hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 11092 11093# If ld is used when linking, flag to hardcode \$libdir into 11094# a binary during linking. This must work even if \$libdir does 11095# not exist. 11096hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 11097 11098# Whether we need a single -rpath flag with a separated argument. 11099hardcode_libdir_separator=$lt_hardcode_libdir_separator 11100 11101# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 11102# resulting binary. 11103hardcode_direct=$hardcode_direct 11104 11105# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 11106# resulting binary. 11107hardcode_minus_L=$hardcode_minus_L 11108 11109# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 11110# the resulting binary. 11111hardcode_shlibpath_var=$hardcode_shlibpath_var 11112 11113# Set to yes if building a shared library automatically hardcodes DIR into the library 11114# and all subsequent libraries and executables linked against it. 11115hardcode_automatic=$hardcode_automatic 11116 11117# Variables whose values should be saved in libtool wrapper scripts and 11118# restored at relink time. 11119variables_saved_for_relink="$variables_saved_for_relink" 11120 11121# Whether libtool must link a program against all its dependency libraries. 11122link_all_deplibs=$link_all_deplibs 11123 11124# Compile-time system search path for libraries 11125sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 11126 11127# Run-time system search path for libraries 11128sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 11129 11130# Fix the shell variable \$srcfile for the compiler. 11131fix_srcfile_path=$lt_fix_srcfile_path 11132 11133# Set to yes if exported symbols are required. 11134always_export_symbols=$always_export_symbols 11135 11136# The commands to list exported symbols. 11137export_symbols_cmds=$lt_export_symbols_cmds 11138 11139# The commands to extract the exported symbol list from a shared archive. 11140extract_expsyms_cmds=$lt_extract_expsyms_cmds 11141 11142# Symbols that should not be listed in the preloaded symbols. 11143exclude_expsyms=$lt_exclude_expsyms 11144 11145# Symbols that must always be exported. 11146include_expsyms=$lt_include_expsyms 11147 11148# ### END LIBTOOL CONFIG 11149 11150__EOF__ 11151 11152 11153 case $host_os in 11154 aix3*) 11155 cat <<\EOF >> "$cfgfile" 11156 11157# AIX sometimes has problems with the GCC collect2 program. For some 11158# reason, if we set the COLLECT_NAMES environment variable, the problems 11159# vanish in a puff of smoke. 11160if test "X${COLLECT_NAMES+set}" != Xset; then 11161 COLLECT_NAMES= 11162 export COLLECT_NAMES 11163fi 11164EOF 11165 ;; 11166 esac 11167 11168 # We use sed instead of cat because bash on DJGPP gets confused if 11169 # if finds mixed CR/LF and LF-only lines. Since sed operates in 11170 # text mode, it properly converts lines to CR/LF. This bash problem 11171 # is reportedly fixed, but why not run on old versions too? 11172 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 11173 11174 mv -f "$cfgfile" "$ofile" || \ 11175 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 11176 chmod +x "$ofile" 11177 11178else 11179 # If there is no Makefile yet, we rely on a make rule to execute 11180 # `config.status --recheck' to rerun these tests and create the 11181 # libtool script then. 11182 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 11183 if test -f "$ltmain_in"; then 11184 test -f Makefile && make "$ltmain" 11185 fi 11186fi 11187 11188 11189ac_ext=c 11190ac_cpp='$CPP $CPPFLAGS' 11191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11193ac_compiler_gnu=$ac_cv_c_compiler_gnu 11194 11195CC="$lt_save_CC" 11196 11197 11198# Check whether --with-tags was given. 11199if test "${with_tags+set}" = set; then 11200 withval=$with_tags; tagnames="$withval" 11201fi 11202 11203 11204if test -f "$ltmain" && test -n "$tagnames"; then 11205 if test ! -f "${ofile}"; then 11206 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 11207$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 11208 fi 11209 11210 if test -z "$LTCC"; then 11211 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 11212 if test -z "$LTCC"; then 11213 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 11214$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 11215 else 11216 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 11217$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 11218 fi 11219 fi 11220 if test -z "$LTCFLAGS"; then 11221 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 11222 fi 11223 11224 # Extract list of available tagged configurations in $ofile. 11225 # Note that this assumes the entire list is on one line. 11226 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 11227 11228 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11229 for tagname in $tagnames; do 11230 IFS="$lt_save_ifs" 11231 # Check whether tagname contains only valid characters 11232 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 11233 "") ;; 11234 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 11235$as_echo "$as_me: error: invalid tag name: $tagname" >&2;} 11236 { (exit 1); exit 1; }; } 11237 ;; 11238 esac 11239 11240 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 11241 then 11242 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 11243$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 11244 { (exit 1); exit 1; }; } 11245 fi 11246 11247 # Update the list of available tags. 11248 if test -n "$tagname"; then 11249 echo appending configuration tag \"$tagname\" to $ofile 11250 11251 case $tagname in 11252 CXX) 11253 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11254 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11255 (test "X$CXX" != "Xg++"))) ; then 11256 ac_ext=cpp 11257ac_cpp='$CXXCPP $CPPFLAGS' 11258ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11259ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11260ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11261 11262 11263 11264 11265archive_cmds_need_lc_CXX=no 11266allow_undefined_flag_CXX= 11267always_export_symbols_CXX=no 11268archive_expsym_cmds_CXX= 11269export_dynamic_flag_spec_CXX= 11270hardcode_direct_CXX=no 11271hardcode_libdir_flag_spec_CXX= 11272hardcode_libdir_flag_spec_ld_CXX= 11273hardcode_libdir_separator_CXX= 11274hardcode_minus_L_CXX=no 11275hardcode_shlibpath_var_CXX=unsupported 11276hardcode_automatic_CXX=no 11277module_cmds_CXX= 11278module_expsym_cmds_CXX= 11279link_all_deplibs_CXX=unknown 11280old_archive_cmds_CXX=$old_archive_cmds 11281no_undefined_flag_CXX= 11282whole_archive_flag_spec_CXX= 11283enable_shared_with_static_runtimes_CXX=no 11284 11285# Dependencies to place before and after the object being linked: 11286predep_objects_CXX= 11287postdep_objects_CXX= 11288predeps_CXX= 11289postdeps_CXX= 11290compiler_lib_search_path_CXX= 11291compiler_lib_search_dirs_CXX= 11292 11293# Source file extension for C++ test sources. 11294ac_ext=cpp 11295 11296# Object file extension for compiled C++ test sources. 11297objext=o 11298objext_CXX=$objext 11299 11300# Code to be used in simple compile tests 11301lt_simple_compile_test_code="int some_variable = 0;" 11302 11303# Code to be used in simple link tests 11304lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 11305 11306# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11307 11308# If no C compiler was specified, use CC. 11309LTCC=${LTCC-"$CC"} 11310 11311# If no C compiler flags were specified, use CFLAGS. 11312LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11313 11314# Allow CC to be a program name with arguments. 11315compiler=$CC 11316 11317 11318# save warnings/boilerplate of simple test code 11319ac_outfile=conftest.$ac_objext 11320echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11321eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11322_lt_compiler_boilerplate=`cat conftest.err` 11323$rm conftest* 11324 11325ac_outfile=conftest.$ac_objext 11326echo "$lt_simple_link_test_code" >conftest.$ac_ext 11327eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11328_lt_linker_boilerplate=`cat conftest.err` 11329$rm -r conftest* 11330 11331 11332# Allow CC to be a program name with arguments. 11333lt_save_CC=$CC 11334lt_save_LD=$LD 11335lt_save_GCC=$GCC 11336GCC=$GXX 11337lt_save_with_gnu_ld=$with_gnu_ld 11338lt_save_path_LD=$lt_cv_path_LD 11339if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11340 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11341else 11342 $as_unset lt_cv_prog_gnu_ld 11343fi 11344if test -n "${lt_cv_path_LDCXX+set}"; then 11345 lt_cv_path_LD=$lt_cv_path_LDCXX 11346else 11347 $as_unset lt_cv_path_LD 11348fi 11349test -z "${LDCXX+set}" || LD=$LDCXX 11350CC=${CXX-"c++"} 11351compiler=$CC 11352compiler_CXX=$CC 11353for cc_temp in $compiler""; do 11354 case $cc_temp in 11355 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11356 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11357 \-*) ;; 11358 *) break;; 11359 esac 11360done 11361cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11362 11363 11364# We don't want -fno-exception wen compiling C++ code, so set the 11365# no_builtin_flag separately 11366if test "$GXX" = yes; then 11367 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11368else 11369 lt_prog_compiler_no_builtin_flag_CXX= 11370fi 11371 11372if test "$GXX" = yes; then 11373 # Set up default GNU C++ configuration 11374 11375 11376# Check whether --with-gnu-ld was given. 11377if test "${with_gnu_ld+set}" = set; then 11378 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11379else 11380 with_gnu_ld=no 11381fi 11382 11383ac_prog=ld 11384if test "$GCC" = yes; then 11385 # Check if gcc -print-prog-name=ld gives a path. 11386 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 11387$as_echo_n "checking for ld used by $CC... " >&6; } 11388 case $host in 11389 *-*-mingw*) 11390 # gcc leaves a trailing carriage return which upsets mingw 11391 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11392 *) 11393 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11394 esac 11395 case $ac_prog in 11396 # Accept absolute paths. 11397 [\\/]* | ?:[\\/]*) 11398 re_direlt='/[^/][^/]*/\.\./' 11399 # Canonicalize the pathname of ld 11400 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 11401 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11402 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 11403 done 11404 test -z "$LD" && LD="$ac_prog" 11405 ;; 11406 "") 11407 # If it fails, then pretend we aren't using GCC. 11408 ac_prog=ld 11409 ;; 11410 *) 11411 # If it is relative, then search for the first ld in PATH. 11412 with_gnu_ld=unknown 11413 ;; 11414 esac 11415elif test "$with_gnu_ld" = yes; then 11416 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 11417$as_echo_n "checking for GNU ld... " >&6; } 11418else 11419 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 11420$as_echo_n "checking for non-GNU ld... " >&6; } 11421fi 11422if test "${lt_cv_path_LD+set}" = set; then 11423 $as_echo_n "(cached) " >&6 11424else 11425 if test -z "$LD"; then 11426 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11427 for ac_dir in $PATH; do 11428 IFS="$lt_save_ifs" 11429 test -z "$ac_dir" && ac_dir=. 11430 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11431 lt_cv_path_LD="$ac_dir/$ac_prog" 11432 # Check to see if the program is GNU ld. I'd rather use --version, 11433 # but apparently some variants of GNU ld only accept -v. 11434 # Break only if it was the GNU/non-GNU ld that we prefer. 11435 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11436 *GNU* | *'with BFD'*) 11437 test "$with_gnu_ld" != no && break 11438 ;; 11439 *) 11440 test "$with_gnu_ld" != yes && break 11441 ;; 11442 esac 11443 fi 11444 done 11445 IFS="$lt_save_ifs" 11446else 11447 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11448fi 11449fi 11450 11451LD="$lt_cv_path_LD" 11452if test -n "$LD"; then 11453 { $as_echo "$as_me:$LINENO: result: $LD" >&5 11454$as_echo "$LD" >&6; } 11455else 11456 { $as_echo "$as_me:$LINENO: result: no" >&5 11457$as_echo "no" >&6; } 11458fi 11459test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 11460$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 11461 { (exit 1); exit 1; }; } 11462{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 11463$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11464if test "${lt_cv_prog_gnu_ld+set}" = set; then 11465 $as_echo_n "(cached) " >&6 11466else 11467 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11468case `$LD -v 2>&1 </dev/null` in 11469*GNU* | *'with BFD'*) 11470 lt_cv_prog_gnu_ld=yes 11471 ;; 11472*) 11473 lt_cv_prog_gnu_ld=no 11474 ;; 11475esac 11476fi 11477{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 11478$as_echo "$lt_cv_prog_gnu_ld" >&6; } 11479with_gnu_ld=$lt_cv_prog_gnu_ld 11480 11481 11482 11483 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11484 # archiving commands below assume that GNU ld is being used. 11485 if test "$with_gnu_ld" = yes; then 11486 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11487 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' 11488 11489 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11490 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11491 11492 # If archive_cmds runs LD, not CC, wlarc should be empty 11493 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11494 # investigate it a little bit more. (MM) 11495 wlarc='${wl}' 11496 11497 # ancient GNU ld didn't support --whole-archive et. al. 11498 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 11499 grep 'no-whole-archive' > /dev/null; then 11500 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11501 else 11502 whole_archive_flag_spec_CXX= 11503 fi 11504 else 11505 with_gnu_ld=no 11506 wlarc= 11507 11508 # A generic and very simple default shared library creation 11509 # command for GNU C++ for the case where it uses the native 11510 # linker, instead of GNU ld. If possible, this setting should 11511 # overridden to take advantage of the native linker features on 11512 # the platform it is being used on. 11513 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11514 fi 11515 11516 # Commands to make compiler produce verbose output that lists 11517 # what "hidden" libraries, object files and flags are used when 11518 # linking a shared library. 11519 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11520 11521else 11522 GXX=no 11523 with_gnu_ld=no 11524 wlarc= 11525fi 11526 11527# PORTME: fill in a description of your system's C++ link characteristics 11528{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11529$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11530ld_shlibs_CXX=yes 11531case $host_os in 11532 aix3*) 11533 # FIXME: insert proper C++ library support 11534 ld_shlibs_CXX=no 11535 ;; 11536 aix[4-9]*) 11537 if test "$host_cpu" = ia64; then 11538 # On IA64, the linker does run time linking by default, so we don't 11539 # have to do anything special. 11540 aix_use_runtimelinking=no 11541 exp_sym_flag='-Bexport' 11542 no_entry_flag="" 11543 else 11544 aix_use_runtimelinking=no 11545 11546 # Test if we are trying to use run time linking or normal 11547 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11548 # need to do runtime linking. 11549 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11550 for ld_flag in $LDFLAGS; do 11551 case $ld_flag in 11552 *-brtl*) 11553 aix_use_runtimelinking=yes 11554 break 11555 ;; 11556 esac 11557 done 11558 ;; 11559 esac 11560 11561 exp_sym_flag='-bexport' 11562 no_entry_flag='-bnoentry' 11563 fi 11564 11565 # When large executables or shared objects are built, AIX ld can 11566 # have problems creating the table of contents. If linking a library 11567 # or program results in "error TOC overflow" add -mminimal-toc to 11568 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11569 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11570 11571 archive_cmds_CXX='' 11572 hardcode_direct_CXX=yes 11573 hardcode_libdir_separator_CXX=':' 11574 link_all_deplibs_CXX=yes 11575 11576 if test "$GXX" = yes; then 11577 case $host_os in aix4.[012]|aix4.[012].*) 11578 # We only want to do this on AIX 4.2 and lower, the check 11579 # below for broken collect2 doesn't work under 4.3+ 11580 collect2name=`${CC} -print-prog-name=collect2` 11581 if test -f "$collect2name" && \ 11582 strings "$collect2name" | grep resolve_lib_name >/dev/null 11583 then 11584 # We have reworked collect2 11585 : 11586 else 11587 # We have old collect2 11588 hardcode_direct_CXX=unsupported 11589 # It fails to find uninstalled libraries when the uninstalled 11590 # path is not listed in the libpath. Setting hardcode_minus_L 11591 # to unsupported forces relinking 11592 hardcode_minus_L_CXX=yes 11593 hardcode_libdir_flag_spec_CXX='-L$libdir' 11594 hardcode_libdir_separator_CXX= 11595 fi 11596 ;; 11597 esac 11598 shared_flag='-shared' 11599 if test "$aix_use_runtimelinking" = yes; then 11600 shared_flag="$shared_flag "'${wl}-G' 11601 fi 11602 else 11603 # not using gcc 11604 if test "$host_cpu" = ia64; then 11605 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11606 # chokes on -Wl,-G. The following line is correct: 11607 shared_flag='-G' 11608 else 11609 if test "$aix_use_runtimelinking" = yes; then 11610 shared_flag='${wl}-G' 11611 else 11612 shared_flag='${wl}-bM:SRE' 11613 fi 11614 fi 11615 fi 11616 11617 # It seems that -bexpall does not export symbols beginning with 11618 # underscore (_), so it is better to generate a list of symbols to export. 11619 always_export_symbols_CXX=yes 11620 if test "$aix_use_runtimelinking" = yes; then 11621 # Warning - without using the other runtime loading flags (-brtl), 11622 # -berok will link without error, but may produce a broken library. 11623 allow_undefined_flag_CXX='-berok' 11624 # Determine the default libpath from the value encoded in an empty executable. 11625 cat >conftest.$ac_ext <<_ACEOF 11626/* confdefs.h. */ 11627_ACEOF 11628cat confdefs.h >>conftest.$ac_ext 11629cat >>conftest.$ac_ext <<_ACEOF 11630/* end confdefs.h. */ 11631 11632int 11633main () 11634{ 11635 11636 ; 11637 return 0; 11638} 11639_ACEOF 11640rm -f conftest.$ac_objext conftest$ac_exeext 11641if { (ac_try="$ac_link" 11642case "(($ac_try" in 11643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11644 *) ac_try_echo=$ac_try;; 11645esac 11646eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11647$as_echo "$ac_try_echo") >&5 11648 (eval "$ac_link") 2>conftest.er1 11649 ac_status=$? 11650 grep -v '^ *+' conftest.er1 >conftest.err 11651 rm -f conftest.er1 11652 cat conftest.err >&5 11653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11654 (exit $ac_status); } && { 11655 test -z "$ac_cxx_werror_flag" || 11656 test ! -s conftest.err 11657 } && test -s conftest$ac_exeext && { 11658 test "$cross_compiling" = yes || 11659 $as_test_x conftest$ac_exeext 11660 }; then 11661 11662lt_aix_libpath_sed=' 11663 /Import File Strings/,/^$/ { 11664 /^0/ { 11665 s/^0 *\(.*\)$/\1/ 11666 p 11667 } 11668 }' 11669aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11670# Check for a 64-bit object if we didn't find anything. 11671if test -z "$aix_libpath"; then 11672 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11673fi 11674else 11675 $as_echo "$as_me: failed program was:" >&5 11676sed 's/^/| /' conftest.$ac_ext >&5 11677 11678 11679fi 11680 11681rm -rf conftest.dSYM 11682rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11683 conftest$ac_exeext conftest.$ac_ext 11684if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11685 11686 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11687 11688 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" 11689 else 11690 if test "$host_cpu" = ia64; then 11691 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11692 allow_undefined_flag_CXX="-z nodefs" 11693 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" 11694 else 11695 # Determine the default libpath from the value encoded in an empty executable. 11696 cat >conftest.$ac_ext <<_ACEOF 11697/* confdefs.h. */ 11698_ACEOF 11699cat confdefs.h >>conftest.$ac_ext 11700cat >>conftest.$ac_ext <<_ACEOF 11701/* end confdefs.h. */ 11702 11703int 11704main () 11705{ 11706 11707 ; 11708 return 0; 11709} 11710_ACEOF 11711rm -f conftest.$ac_objext conftest$ac_exeext 11712if { (ac_try="$ac_link" 11713case "(($ac_try" in 11714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11715 *) ac_try_echo=$ac_try;; 11716esac 11717eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11718$as_echo "$ac_try_echo") >&5 11719 (eval "$ac_link") 2>conftest.er1 11720 ac_status=$? 11721 grep -v '^ *+' conftest.er1 >conftest.err 11722 rm -f conftest.er1 11723 cat conftest.err >&5 11724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11725 (exit $ac_status); } && { 11726 test -z "$ac_cxx_werror_flag" || 11727 test ! -s conftest.err 11728 } && test -s conftest$ac_exeext && { 11729 test "$cross_compiling" = yes || 11730 $as_test_x conftest$ac_exeext 11731 }; then 11732 11733lt_aix_libpath_sed=' 11734 /Import File Strings/,/^$/ { 11735 /^0/ { 11736 s/^0 *\(.*\)$/\1/ 11737 p 11738 } 11739 }' 11740aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11741# Check for a 64-bit object if we didn't find anything. 11742if test -z "$aix_libpath"; then 11743 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11744fi 11745else 11746 $as_echo "$as_me: failed program was:" >&5 11747sed 's/^/| /' conftest.$ac_ext >&5 11748 11749 11750fi 11751 11752rm -rf conftest.dSYM 11753rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11754 conftest$ac_exeext conftest.$ac_ext 11755if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11756 11757 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11758 # Warning - without using the other run time loading flags, 11759 # -berok will link without error, but may produce a broken library. 11760 no_undefined_flag_CXX=' ${wl}-bernotok' 11761 allow_undefined_flag_CXX=' ${wl}-berok' 11762 # Exported symbols can be pulled into shared objects from archives 11763 whole_archive_flag_spec_CXX='$convenience' 11764 archive_cmds_need_lc_CXX=yes 11765 # This is similar to how AIX traditionally builds its shared libraries. 11766 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' 11767 fi 11768 fi 11769 ;; 11770 11771 beos*) 11772 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11773 allow_undefined_flag_CXX=unsupported 11774 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11775 # support --undefined. This deserves some investigation. FIXME 11776 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11777 else 11778 ld_shlibs_CXX=no 11779 fi 11780 ;; 11781 11782 chorus*) 11783 case $cc_basename in 11784 *) 11785 # FIXME: insert proper C++ library support 11786 ld_shlibs_CXX=no 11787 ;; 11788 esac 11789 ;; 11790 11791 cygwin* | mingw* | pw32*) 11792 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11793 # as there is no search path for DLLs. 11794 hardcode_libdir_flag_spec_CXX='-L$libdir' 11795 allow_undefined_flag_CXX=unsupported 11796 always_export_symbols_CXX=no 11797 enable_shared_with_static_runtimes_CXX=yes 11798 11799 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11800 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' 11801 # If the export-symbols file already is a .def file (1st line 11802 # is EXPORTS), use it as is; otherwise, prepend... 11803 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11804 cp $export_symbols $output_objdir/$soname.def; 11805 else 11806 echo EXPORTS > $output_objdir/$soname.def; 11807 cat $export_symbols >> $output_objdir/$soname.def; 11808 fi~ 11809 $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' 11810 else 11811 ld_shlibs_CXX=no 11812 fi 11813 ;; 11814 darwin* | rhapsody*) 11815 archive_cmds_need_lc_CXX=no 11816 hardcode_direct_CXX=no 11817 hardcode_automatic_CXX=yes 11818 hardcode_shlibpath_var_CXX=unsupported 11819 whole_archive_flag_spec_CXX='' 11820 link_all_deplibs_CXX=yes 11821 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 11822 if test "$GXX" = yes ; then 11823 output_verbose_link_cmd='echo' 11824 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}" 11825 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 11826 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}" 11827 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}" 11828 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 11829 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}" 11830 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}" 11831 fi 11832 else 11833 case $cc_basename in 11834 xlc*) 11835 output_verbose_link_cmd='echo' 11836 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' 11837 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11838 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11839 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}' 11840 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}' 11841 ;; 11842 *) 11843 ld_shlibs_CXX=no 11844 ;; 11845 esac 11846 fi 11847 ;; 11848 11849 dgux*) 11850 case $cc_basename in 11851 ec++*) 11852 # FIXME: insert proper C++ library support 11853 ld_shlibs_CXX=no 11854 ;; 11855 ghcx*) 11856 # Green Hills C++ Compiler 11857 # FIXME: insert proper C++ library support 11858 ld_shlibs_CXX=no 11859 ;; 11860 *) 11861 # FIXME: insert proper C++ library support 11862 ld_shlibs_CXX=no 11863 ;; 11864 esac 11865 ;; 11866 freebsd[12]*) 11867 # C++ shared libraries reported to be fairly broken before switch to ELF 11868 ld_shlibs_CXX=no 11869 ;; 11870 freebsd-elf*) 11871 archive_cmds_need_lc_CXX=no 11872 ;; 11873 freebsd* | dragonfly*) 11874 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11875 # conventions 11876 ld_shlibs_CXX=yes 11877 ;; 11878 gnu*) 11879 ;; 11880 hpux9*) 11881 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11882 hardcode_libdir_separator_CXX=: 11883 export_dynamic_flag_spec_CXX='${wl}-E' 11884 hardcode_direct_CXX=yes 11885 hardcode_minus_L_CXX=yes # Not in the search PATH, 11886 # but as the default 11887 # location of the library. 11888 11889 case $cc_basename in 11890 CC*) 11891 # FIXME: insert proper C++ library support 11892 ld_shlibs_CXX=no 11893 ;; 11894 aCC*) 11895 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' 11896 # Commands to make compiler produce verbose output that lists 11897 # what "hidden" libraries, object files and flags are used when 11898 # linking a shared library. 11899 # 11900 # There doesn't appear to be a way to prevent this compiler from 11901 # explicitly linking system object files so we need to strip them 11902 # from the output so that they don't get included in the library 11903 # dependencies. 11904 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 11905 ;; 11906 *) 11907 if test "$GXX" = yes; then 11908 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' 11909 else 11910 # FIXME: insert proper C++ library support 11911 ld_shlibs_CXX=no 11912 fi 11913 ;; 11914 esac 11915 ;; 11916 hpux10*|hpux11*) 11917 if test $with_gnu_ld = no; then 11918 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11919 hardcode_libdir_separator_CXX=: 11920 11921 case $host_cpu in 11922 hppa*64*|ia64*) ;; 11923 *) 11924 export_dynamic_flag_spec_CXX='${wl}-E' 11925 ;; 11926 esac 11927 fi 11928 case $host_cpu in 11929 hppa*64*|ia64*) 11930 hardcode_direct_CXX=no 11931 hardcode_shlibpath_var_CXX=no 11932 ;; 11933 *) 11934 hardcode_direct_CXX=yes 11935 hardcode_minus_L_CXX=yes # Not in the search PATH, 11936 # but as the default 11937 # location of the library. 11938 ;; 11939 esac 11940 11941 case $cc_basename in 11942 CC*) 11943 # FIXME: insert proper C++ library support 11944 ld_shlibs_CXX=no 11945 ;; 11946 aCC*) 11947 case $host_cpu in 11948 hppa*64*) 11949 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11950 ;; 11951 ia64*) 11952 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11953 ;; 11954 *) 11955 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11956 ;; 11957 esac 11958 # Commands to make compiler produce verbose output that lists 11959 # what "hidden" libraries, object files and flags are used when 11960 # linking a shared library. 11961 # 11962 # There doesn't appear to be a way to prevent this compiler from 11963 # explicitly linking system object files so we need to strip them 11964 # from the output so that they don't get included in the library 11965 # dependencies. 11966 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' 11967 ;; 11968 *) 11969 if test "$GXX" = yes; then 11970 if test $with_gnu_ld = no; then 11971 case $host_cpu in 11972 hppa*64*) 11973 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11974 ;; 11975 ia64*) 11976 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11977 ;; 11978 *) 11979 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' 11980 ;; 11981 esac 11982 fi 11983 else 11984 # FIXME: insert proper C++ library support 11985 ld_shlibs_CXX=no 11986 fi 11987 ;; 11988 esac 11989 ;; 11990 interix[3-9]*) 11991 hardcode_direct_CXX=no 11992 hardcode_shlibpath_var_CXX=no 11993 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11994 export_dynamic_flag_spec_CXX='${wl}-E' 11995 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11996 # Instead, shared libraries are loaded at an image base (0x10000000 by 11997 # default) and relocated if they conflict, which is a slow very memory 11998 # consuming and fragmenting process. To avoid this, we pick a random, 11999 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12000 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12001 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' 12002 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' 12003 ;; 12004 irix5* | irix6*) 12005 case $cc_basename in 12006 CC*) 12007 # SGI C++ 12008 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' 12009 12010 # Archives containing C++ object files must be created using 12011 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 12012 # necessary to make sure instantiated templates are included 12013 # in the archive. 12014 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 12015 ;; 12016 *) 12017 if test "$GXX" = yes; then 12018 if test "$with_gnu_ld" = no; then 12019 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' 12020 else 12021 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' 12022 fi 12023 fi 12024 link_all_deplibs_CXX=yes 12025 ;; 12026 esac 12027 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12028 hardcode_libdir_separator_CXX=: 12029 ;; 12030 linux* | k*bsd*-gnu) 12031 case $cc_basename in 12032 KCC*) 12033 # Kuck and Associates, Inc. (KAI) C++ Compiler 12034 12035 # KCC will only create a shared library if the output file 12036 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12037 # to its proper name (with version) after linking. 12038 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' 12039 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' 12040 # Commands to make compiler produce verbose output that lists 12041 # what "hidden" libraries, object files and flags are used when 12042 # linking a shared library. 12043 # 12044 # There doesn't appear to be a way to prevent this compiler from 12045 # explicitly linking system object files so we need to strip them 12046 # from the output so that they don't get included in the library 12047 # dependencies. 12048 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' 12049 12050 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 12051 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12052 12053 # Archives containing C++ object files must be created using 12054 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12055 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12056 ;; 12057 icpc*) 12058 # Intel C++ 12059 with_gnu_ld=yes 12060 # version 8.0 and above of icpc choke on multiply defined symbols 12061 # if we add $predep_objects and $postdep_objects, however 7.1 and 12062 # earlier do not add the objects themselves. 12063 case `$CC -V 2>&1` in 12064 *"Version 7."*) 12065 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12066 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' 12067 ;; 12068 *) # Version 8.0 or newer 12069 tmp_idyn= 12070 case $host_cpu in 12071 ia64*) tmp_idyn=' -i_dynamic';; 12072 esac 12073 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12074 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' 12075 ;; 12076 esac 12077 archive_cmds_need_lc_CXX=no 12078 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12079 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12080 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12081 ;; 12082 pgCC* | pgcpp*) 12083 # Portland Group C++ compiler 12084 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12085 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' 12086 12087 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12088 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12089 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' 12090 ;; 12091 cxx*) 12092 # Compaq C++ 12093 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12094 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' 12095 12096 runpath_var=LD_RUN_PATH 12097 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12098 hardcode_libdir_separator_CXX=: 12099 12100 # Commands to make compiler produce verbose output that lists 12101 # what "hidden" libraries, object files and flags are used when 12102 # linking a shared library. 12103 # 12104 # There doesn't appear to be a way to prevent this compiler from 12105 # explicitly linking system object files so we need to strip them 12106 # from the output so that they don't get included in the library 12107 # dependencies. 12108 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' 12109 ;; 12110 *) 12111 case `$CC -V 2>&1 | sed 5q` in 12112 *Sun\ C*) 12113 # Sun C++ 5.9 12114 no_undefined_flag_CXX=' -zdefs' 12115 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12116 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' 12117 hardcode_libdir_flag_spec_CXX='-R$libdir' 12118 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' 12119 12120 # Not sure whether something based on 12121 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 12122 # would be better. 12123 output_verbose_link_cmd='echo' 12124 12125 # Archives containing C++ object files must be created using 12126 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12127 # necessary to make sure instantiated templates are included 12128 # in the archive. 12129 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12130 ;; 12131 esac 12132 ;; 12133 esac 12134 ;; 12135 lynxos*) 12136 # FIXME: insert proper C++ library support 12137 ld_shlibs_CXX=no 12138 ;; 12139 m88k*) 12140 # FIXME: insert proper C++ library support 12141 ld_shlibs_CXX=no 12142 ;; 12143 mvs*) 12144 case $cc_basename in 12145 cxx*) 12146 # FIXME: insert proper C++ library support 12147 ld_shlibs_CXX=no 12148 ;; 12149 *) 12150 # FIXME: insert proper C++ library support 12151 ld_shlibs_CXX=no 12152 ;; 12153 esac 12154 ;; 12155 netbsd*) 12156 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12157 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12158 wlarc= 12159 hardcode_libdir_flag_spec_CXX='-R$libdir' 12160 hardcode_direct_CXX=yes 12161 hardcode_shlibpath_var_CXX=no 12162 fi 12163 # Workaround some broken pre-1.5 toolchains 12164 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12165 ;; 12166 openbsd2*) 12167 # C++ shared libraries are fairly broken 12168 ld_shlibs_CXX=no 12169 ;; 12170 openbsd*) 12171 if test -f /usr/libexec/ld.so; then 12172 hardcode_direct_CXX=yes 12173 hardcode_shlibpath_var_CXX=no 12174 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12175 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12176 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12177 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12178 export_dynamic_flag_spec_CXX='${wl}-E' 12179 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12180 fi 12181 output_verbose_link_cmd='echo' 12182 else 12183 ld_shlibs_CXX=no 12184 fi 12185 ;; 12186 osf3*) 12187 case $cc_basename in 12188 KCC*) 12189 # Kuck and Associates, Inc. (KAI) C++ Compiler 12190 12191 # KCC will only create a shared library if the output file 12192 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12193 # to its proper name (with version) after linking. 12194 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' 12195 12196 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12197 hardcode_libdir_separator_CXX=: 12198 12199 # Archives containing C++ object files must be created using 12200 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12201 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12202 12203 ;; 12204 RCC*) 12205 # Rational C++ 2.4.1 12206 # FIXME: insert proper C++ library support 12207 ld_shlibs_CXX=no 12208 ;; 12209 cxx*) 12210 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12211 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' 12212 12213 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12214 hardcode_libdir_separator_CXX=: 12215 12216 # Commands to make compiler produce verbose output that lists 12217 # what "hidden" libraries, object files and flags are used when 12218 # linking a shared library. 12219 # 12220 # There doesn't appear to be a way to prevent this compiler from 12221 # explicitly linking system object files so we need to strip them 12222 # from the output so that they don't get included in the library 12223 # dependencies. 12224 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' 12225 ;; 12226 *) 12227 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12228 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12229 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' 12230 12231 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12232 hardcode_libdir_separator_CXX=: 12233 12234 # Commands to make compiler produce verbose output that lists 12235 # what "hidden" libraries, object files and flags are used when 12236 # linking a shared library. 12237 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12238 12239 else 12240 # FIXME: insert proper C++ library support 12241 ld_shlibs_CXX=no 12242 fi 12243 ;; 12244 esac 12245 ;; 12246 osf4* | osf5*) 12247 case $cc_basename in 12248 KCC*) 12249 # Kuck and Associates, Inc. (KAI) C++ Compiler 12250 12251 # KCC will only create a shared library if the output file 12252 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12253 # to its proper name (with version) after linking. 12254 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' 12255 12256 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12257 hardcode_libdir_separator_CXX=: 12258 12259 # Archives containing C++ object files must be created using 12260 # the KAI C++ compiler. 12261 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 12262 ;; 12263 RCC*) 12264 # Rational C++ 2.4.1 12265 # FIXME: insert proper C++ library support 12266 ld_shlibs_CXX=no 12267 ;; 12268 cxx*) 12269 allow_undefined_flag_CXX=' -expect_unresolved \*' 12270 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' 12271 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12272 echo "-hidden">> $lib.exp~ 12273 $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~ 12274 $rm $lib.exp' 12275 12276 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12277 hardcode_libdir_separator_CXX=: 12278 12279 # Commands to make compiler produce verbose output that lists 12280 # what "hidden" libraries, object files and flags are used when 12281 # linking a shared library. 12282 # 12283 # There doesn't appear to be a way to prevent this compiler from 12284 # explicitly linking system object files so we need to strip them 12285 # from the output so that they don't get included in the library 12286 # dependencies. 12287 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' 12288 ;; 12289 *) 12290 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12291 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12292 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' 12293 12294 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12295 hardcode_libdir_separator_CXX=: 12296 12297 # Commands to make compiler produce verbose output that lists 12298 # what "hidden" libraries, object files and flags are used when 12299 # linking a shared library. 12300 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12301 12302 else 12303 # FIXME: insert proper C++ library support 12304 ld_shlibs_CXX=no 12305 fi 12306 ;; 12307 esac 12308 ;; 12309 psos*) 12310 # FIXME: insert proper C++ library support 12311 ld_shlibs_CXX=no 12312 ;; 12313 sunos4*) 12314 case $cc_basename in 12315 CC*) 12316 # Sun C++ 4.x 12317 # FIXME: insert proper C++ library support 12318 ld_shlibs_CXX=no 12319 ;; 12320 lcc*) 12321 # Lucid 12322 # FIXME: insert proper C++ library support 12323 ld_shlibs_CXX=no 12324 ;; 12325 *) 12326 # FIXME: insert proper C++ library support 12327 ld_shlibs_CXX=no 12328 ;; 12329 esac 12330 ;; 12331 solaris*) 12332 case $cc_basename in 12333 CC*) 12334 # Sun C++ 4.2, 5.x and Centerline C++ 12335 archive_cmds_need_lc_CXX=yes 12336 no_undefined_flag_CXX=' -zdefs' 12337 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12338 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12339 $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' 12340 12341 hardcode_libdir_flag_spec_CXX='-R$libdir' 12342 hardcode_shlibpath_var_CXX=no 12343 case $host_os in 12344 solaris2.[0-5] | solaris2.[0-5].*) ;; 12345 *) 12346 # The compiler driver will combine and reorder linker options, 12347 # but understands `-z linker_flag'. 12348 # Supported since Solaris 2.6 (maybe 2.5.1?) 12349 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 12350 ;; 12351 esac 12352 link_all_deplibs_CXX=yes 12353 12354 output_verbose_link_cmd='echo' 12355 12356 # Archives containing C++ object files must be created using 12357 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12358 # necessary to make sure instantiated templates are included 12359 # in the archive. 12360 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12361 ;; 12362 gcx*) 12363 # Green Hills C++ Compiler 12364 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12365 12366 # The C++ compiler must be used to create the archive. 12367 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12368 ;; 12369 *) 12370 # GNU C++ compiler with Solaris linker 12371 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12372 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12373 if $CC --version | grep -v '^2\.7' > /dev/null; then 12374 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12375 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12376 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12377 12378 # Commands to make compiler produce verbose output that lists 12379 # what "hidden" libraries, object files and flags are used when 12380 # linking a shared library. 12381 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12382 else 12383 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12384 # platform. 12385 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12386 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12387 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12388 12389 # Commands to make compiler produce verbose output that lists 12390 # what "hidden" libraries, object files and flags are used when 12391 # linking a shared library. 12392 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12393 fi 12394 12395 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12396 case $host_os in 12397 solaris2.[0-5] | solaris2.[0-5].*) ;; 12398 *) 12399 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12400 ;; 12401 esac 12402 fi 12403 ;; 12404 esac 12405 ;; 12406 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12407 no_undefined_flag_CXX='${wl}-z,text' 12408 archive_cmds_need_lc_CXX=no 12409 hardcode_shlibpath_var_CXX=no 12410 runpath_var='LD_RUN_PATH' 12411 12412 case $cc_basename in 12413 CC*) 12414 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12415 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12416 ;; 12417 *) 12418 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12419 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12420 ;; 12421 esac 12422 ;; 12423 sysv5* | sco3.2v5* | sco5v6*) 12424 # Note: We can NOT use -z defs as we might desire, because we do not 12425 # link with -lc, and that would cause any symbols used from libc to 12426 # always be unresolved, which means just about no library would 12427 # ever link correctly. If we're not using GNU ld we use -z text 12428 # though, which does catch some bad symbols but isn't as heavy-handed 12429 # as -z defs. 12430 # For security reasons, it is highly recommended that you always 12431 # use absolute paths for naming shared libraries, and exclude the 12432 # DT_RUNPATH tag from executables and libraries. But doing so 12433 # requires that you compile everything twice, which is a pain. 12434 # So that behaviour is only enabled if SCOABSPATH is set to a 12435 # non-empty value in the environment. Most likely only useful for 12436 # creating official distributions of packages. 12437 # This is a hack until libtool officially supports absolute path 12438 # names for shared libraries. 12439 no_undefined_flag_CXX='${wl}-z,text' 12440 allow_undefined_flag_CXX='${wl}-z,nodefs' 12441 archive_cmds_need_lc_CXX=no 12442 hardcode_shlibpath_var_CXX=no 12443 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 12444 hardcode_libdir_separator_CXX=':' 12445 link_all_deplibs_CXX=yes 12446 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12447 runpath_var='LD_RUN_PATH' 12448 12449 case $cc_basename in 12450 CC*) 12451 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12452 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12453 ;; 12454 *) 12455 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12456 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12457 ;; 12458 esac 12459 ;; 12460 tandem*) 12461 case $cc_basename in 12462 NCC*) 12463 # NonStop-UX NCC 3.20 12464 # FIXME: insert proper C++ library support 12465 ld_shlibs_CXX=no 12466 ;; 12467 *) 12468 # FIXME: insert proper C++ library support 12469 ld_shlibs_CXX=no 12470 ;; 12471 esac 12472 ;; 12473 vxworks*) 12474 # FIXME: insert proper C++ library support 12475 ld_shlibs_CXX=no 12476 ;; 12477 *) 12478 # FIXME: insert proper C++ library support 12479 ld_shlibs_CXX=no 12480 ;; 12481esac 12482{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12483$as_echo "$ld_shlibs_CXX" >&6; } 12484test "$ld_shlibs_CXX" = no && can_build_shared=no 12485 12486GCC_CXX="$GXX" 12487LD_CXX="$LD" 12488 12489cat > conftest.$ac_ext <<EOF 12490class Foo 12491{ 12492public: 12493 Foo (void) { a = 0; } 12494private: 12495 int a; 12496}; 12497EOF 12498 12499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12500 (eval $ac_compile) 2>&5 12501 ac_status=$? 12502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12503 (exit $ac_status); }; then 12504 # Parse the compiler output and extract the necessary 12505 # objects, libraries and library flags. 12506 12507 # Sentinel used to keep track of whether or not we are before 12508 # the conftest object file. 12509 pre_test_object_deps_done=no 12510 12511 # The `*' in the case matches for architectures that use `case' in 12512 # $output_verbose_cmd can trigger glob expansion during the loop 12513 # eval without this substitution. 12514 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 12515 12516 for p in `eval $output_verbose_link_cmd`; do 12517 case $p in 12518 12519 -L* | -R* | -l*) 12520 # Some compilers place space between "-{L,R}" and the path. 12521 # Remove the space. 12522 if test $p = "-L" \ 12523 || test $p = "-R"; then 12524 prev=$p 12525 continue 12526 else 12527 prev= 12528 fi 12529 12530 if test "$pre_test_object_deps_done" = no; then 12531 case $p in 12532 -L* | -R*) 12533 # Internal compiler library paths should come after those 12534 # provided the user. The postdeps already come after the 12535 # user supplied libs so there is no need to process them. 12536 if test -z "$compiler_lib_search_path_CXX"; then 12537 compiler_lib_search_path_CXX="${prev}${p}" 12538 else 12539 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12540 fi 12541 ;; 12542 # The "-l" case would never come before the object being 12543 # linked, so don't bother handling this case. 12544 esac 12545 else 12546 if test -z "$postdeps_CXX"; then 12547 postdeps_CXX="${prev}${p}" 12548 else 12549 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12550 fi 12551 fi 12552 ;; 12553 12554 *.$objext) 12555 # This assumes that the test object file only shows up 12556 # once in the compiler output. 12557 if test "$p" = "conftest.$objext"; then 12558 pre_test_object_deps_done=yes 12559 continue 12560 fi 12561 12562 if test "$pre_test_object_deps_done" = no; then 12563 if test -z "$predep_objects_CXX"; then 12564 predep_objects_CXX="$p" 12565 else 12566 predep_objects_CXX="$predep_objects_CXX $p" 12567 fi 12568 else 12569 if test -z "$postdep_objects_CXX"; then 12570 postdep_objects_CXX="$p" 12571 else 12572 postdep_objects_CXX="$postdep_objects_CXX $p" 12573 fi 12574 fi 12575 ;; 12576 12577 *) ;; # Ignore the rest. 12578 12579 esac 12580 done 12581 12582 # Clean up. 12583 rm -f a.out a.exe 12584else 12585 echo "libtool.m4: error: problem compiling CXX test program" 12586fi 12587 12588$rm -f confest.$objext 12589 12590compiler_lib_search_dirs_CXX= 12591if test -n "$compiler_lib_search_path_CXX"; then 12592 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 12593fi 12594 12595# PORTME: override above test on systems where it is broken 12596case $host_os in 12597interix[3-9]*) 12598 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12599 # hack all around it, let's just trust "g++" to DTRT. 12600 predep_objects_CXX= 12601 postdep_objects_CXX= 12602 postdeps_CXX= 12603 ;; 12604 12605linux*) 12606 case `$CC -V 2>&1 | sed 5q` in 12607 *Sun\ C*) 12608 # Sun C++ 5.9 12609 # 12610 # The more standards-conforming stlport4 library is 12611 # incompatible with the Cstd library. Avoid specifying 12612 # it if it's in CXXFLAGS. Ignore libCrun as 12613 # -library=stlport4 depends on it. 12614 case " $CXX $CXXFLAGS " in 12615 *" -library=stlport4 "*) 12616 solaris_use_stlport4=yes 12617 ;; 12618 esac 12619 if test "$solaris_use_stlport4" != yes; then 12620 postdeps_CXX='-library=Cstd -library=Crun' 12621 fi 12622 ;; 12623 esac 12624 ;; 12625 12626solaris*) 12627 case $cc_basename in 12628 CC*) 12629 # The more standards-conforming stlport4 library is 12630 # incompatible with the Cstd library. Avoid specifying 12631 # it if it's in CXXFLAGS. Ignore libCrun as 12632 # -library=stlport4 depends on it. 12633 case " $CXX $CXXFLAGS " in 12634 *" -library=stlport4 "*) 12635 solaris_use_stlport4=yes 12636 ;; 12637 esac 12638 12639 # Adding this requires a known-good setup of shared libraries for 12640 # Sun compiler versions before 5.6, else PIC objects from an old 12641 # archive will be linked into the output, leading to subtle bugs. 12642 if test "$solaris_use_stlport4" != yes; then 12643 postdeps_CXX='-library=Cstd -library=Crun' 12644 fi 12645 ;; 12646 esac 12647 ;; 12648esac 12649 12650case " $postdeps_CXX " in 12651*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12652esac 12653 12654lt_prog_compiler_wl_CXX= 12655lt_prog_compiler_pic_CXX= 12656lt_prog_compiler_static_CXX= 12657 12658{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12659$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 12660 12661 # C++ specific cases for pic, static, wl, etc. 12662 if test "$GXX" = yes; then 12663 lt_prog_compiler_wl_CXX='-Wl,' 12664 lt_prog_compiler_static_CXX='-static' 12665 12666 case $host_os in 12667 aix*) 12668 # All AIX code is PIC. 12669 if test "$host_cpu" = ia64; then 12670 # AIX 5 now supports IA64 processor 12671 lt_prog_compiler_static_CXX='-Bstatic' 12672 fi 12673 ;; 12674 amigaos*) 12675 # FIXME: we need at least 68020 code to build shared libraries, but 12676 # adding the `-m68020' flag to GCC prevents building anything better, 12677 # like `-m68040'. 12678 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12679 ;; 12680 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12681 # PIC is the default for these OSes. 12682 ;; 12683 mingw* | cygwin* | os2* | pw32*) 12684 # This hack is so that the source file can tell whether it is being 12685 # built for inclusion in a dll (and should export symbols for example). 12686 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12687 # (--disable-auto-import) libraries 12688 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12689 ;; 12690 darwin* | rhapsody*) 12691 # PIC is the default on this platform 12692 # Common symbols not allowed in MH_DYLIB files 12693 lt_prog_compiler_pic_CXX='-fno-common' 12694 ;; 12695 *djgpp*) 12696 # DJGPP does not support shared libraries at all 12697 lt_prog_compiler_pic_CXX= 12698 ;; 12699 interix[3-9]*) 12700 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12701 # Instead, we relocate shared libraries at runtime. 12702 ;; 12703 sysv4*MP*) 12704 if test -d /usr/nec; then 12705 lt_prog_compiler_pic_CXX=-Kconform_pic 12706 fi 12707 ;; 12708 hpux*) 12709 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12710 # not for PA HP-UX. 12711 case $host_cpu in 12712 hppa*64*|ia64*) 12713 ;; 12714 *) 12715 lt_prog_compiler_pic_CXX='-fPIC' 12716 ;; 12717 esac 12718 ;; 12719 *) 12720 lt_prog_compiler_pic_CXX='-fPIC' 12721 ;; 12722 esac 12723 else 12724 case $host_os in 12725 aix[4-9]*) 12726 # All AIX code is PIC. 12727 if test "$host_cpu" = ia64; then 12728 # AIX 5 now supports IA64 processor 12729 lt_prog_compiler_static_CXX='-Bstatic' 12730 else 12731 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12732 fi 12733 ;; 12734 chorus*) 12735 case $cc_basename in 12736 cxch68*) 12737 # Green Hills C++ Compiler 12738 # _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" 12739 ;; 12740 esac 12741 ;; 12742 darwin*) 12743 # PIC is the default on this platform 12744 # Common symbols not allowed in MH_DYLIB files 12745 case $cc_basename in 12746 xlc*) 12747 lt_prog_compiler_pic_CXX='-qnocommon' 12748 lt_prog_compiler_wl_CXX='-Wl,' 12749 ;; 12750 esac 12751 ;; 12752 dgux*) 12753 case $cc_basename in 12754 ec++*) 12755 lt_prog_compiler_pic_CXX='-KPIC' 12756 ;; 12757 ghcx*) 12758 # Green Hills C++ Compiler 12759 lt_prog_compiler_pic_CXX='-pic' 12760 ;; 12761 *) 12762 ;; 12763 esac 12764 ;; 12765 freebsd* | dragonfly*) 12766 # FreeBSD uses GNU C++ 12767 ;; 12768 hpux9* | hpux10* | hpux11*) 12769 case $cc_basename in 12770 CC*) 12771 lt_prog_compiler_wl_CXX='-Wl,' 12772 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12773 if test "$host_cpu" != ia64; then 12774 lt_prog_compiler_pic_CXX='+Z' 12775 fi 12776 ;; 12777 aCC*) 12778 lt_prog_compiler_wl_CXX='-Wl,' 12779 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12780 case $host_cpu in 12781 hppa*64*|ia64*) 12782 # +Z the default 12783 ;; 12784 *) 12785 lt_prog_compiler_pic_CXX='+Z' 12786 ;; 12787 esac 12788 ;; 12789 *) 12790 ;; 12791 esac 12792 ;; 12793 interix*) 12794 # This is c89, which is MS Visual C++ (no shared libs) 12795 # Anyone wants to do a port? 12796 ;; 12797 irix5* | irix6* | nonstopux*) 12798 case $cc_basename in 12799 CC*) 12800 lt_prog_compiler_wl_CXX='-Wl,' 12801 lt_prog_compiler_static_CXX='-non_shared' 12802 # CC pic flag -KPIC is the default. 12803 ;; 12804 *) 12805 ;; 12806 esac 12807 ;; 12808 linux* | k*bsd*-gnu) 12809 case $cc_basename in 12810 KCC*) 12811 # KAI C++ Compiler 12812 lt_prog_compiler_wl_CXX='--backend -Wl,' 12813 lt_prog_compiler_pic_CXX='-fPIC' 12814 ;; 12815 icpc* | ecpc*) 12816 # Intel C++ 12817 lt_prog_compiler_wl_CXX='-Wl,' 12818 lt_prog_compiler_pic_CXX='-KPIC' 12819 lt_prog_compiler_static_CXX='-static' 12820 ;; 12821 pgCC* | pgcpp*) 12822 # Portland Group C++ compiler. 12823 lt_prog_compiler_wl_CXX='-Wl,' 12824 lt_prog_compiler_pic_CXX='-fpic' 12825 lt_prog_compiler_static_CXX='-Bstatic' 12826 ;; 12827 cxx*) 12828 # Compaq C++ 12829 # Make sure the PIC flag is empty. It appears that all Alpha 12830 # Linux and Compaq Tru64 Unix objects are PIC. 12831 lt_prog_compiler_pic_CXX= 12832 lt_prog_compiler_static_CXX='-non_shared' 12833 ;; 12834 *) 12835 case `$CC -V 2>&1 | sed 5q` in 12836 *Sun\ C*) 12837 # Sun C++ 5.9 12838 lt_prog_compiler_pic_CXX='-KPIC' 12839 lt_prog_compiler_static_CXX='-Bstatic' 12840 lt_prog_compiler_wl_CXX='-Qoption ld ' 12841 ;; 12842 esac 12843 ;; 12844 esac 12845 ;; 12846 lynxos*) 12847 ;; 12848 m88k*) 12849 ;; 12850 mvs*) 12851 case $cc_basename in 12852 cxx*) 12853 lt_prog_compiler_pic_CXX='-W c,exportall' 12854 ;; 12855 *) 12856 ;; 12857 esac 12858 ;; 12859 netbsd*) 12860 ;; 12861 osf3* | osf4* | osf5*) 12862 case $cc_basename in 12863 KCC*) 12864 lt_prog_compiler_wl_CXX='--backend -Wl,' 12865 ;; 12866 RCC*) 12867 # Rational C++ 2.4.1 12868 lt_prog_compiler_pic_CXX='-pic' 12869 ;; 12870 cxx*) 12871 # Digital/Compaq C++ 12872 lt_prog_compiler_wl_CXX='-Wl,' 12873 # Make sure the PIC flag is empty. It appears that all Alpha 12874 # Linux and Compaq Tru64 Unix objects are PIC. 12875 lt_prog_compiler_pic_CXX= 12876 lt_prog_compiler_static_CXX='-non_shared' 12877 ;; 12878 *) 12879 ;; 12880 esac 12881 ;; 12882 psos*) 12883 ;; 12884 solaris*) 12885 case $cc_basename in 12886 CC*) 12887 # Sun C++ 4.2, 5.x and Centerline C++ 12888 lt_prog_compiler_pic_CXX='-KPIC' 12889 lt_prog_compiler_static_CXX='-Bstatic' 12890 lt_prog_compiler_wl_CXX='-Qoption ld ' 12891 ;; 12892 gcx*) 12893 # Green Hills C++ Compiler 12894 lt_prog_compiler_pic_CXX='-PIC' 12895 ;; 12896 *) 12897 ;; 12898 esac 12899 ;; 12900 sunos4*) 12901 case $cc_basename in 12902 CC*) 12903 # Sun C++ 4.x 12904 lt_prog_compiler_pic_CXX='-pic' 12905 lt_prog_compiler_static_CXX='-Bstatic' 12906 ;; 12907 lcc*) 12908 # Lucid 12909 lt_prog_compiler_pic_CXX='-pic' 12910 ;; 12911 *) 12912 ;; 12913 esac 12914 ;; 12915 tandem*) 12916 case $cc_basename in 12917 NCC*) 12918 # NonStop-UX NCC 3.20 12919 lt_prog_compiler_pic_CXX='-KPIC' 12920 ;; 12921 *) 12922 ;; 12923 esac 12924 ;; 12925 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12926 case $cc_basename in 12927 CC*) 12928 lt_prog_compiler_wl_CXX='-Wl,' 12929 lt_prog_compiler_pic_CXX='-KPIC' 12930 lt_prog_compiler_static_CXX='-Bstatic' 12931 ;; 12932 esac 12933 ;; 12934 vxworks*) 12935 ;; 12936 *) 12937 lt_prog_compiler_can_build_shared_CXX=no 12938 ;; 12939 esac 12940 fi 12941 12942{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12943$as_echo "$lt_prog_compiler_pic_CXX" >&6; } 12944 12945# 12946# Check to make sure the PIC flag actually works. 12947# 12948if test -n "$lt_prog_compiler_pic_CXX"; then 12949 12950{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12951$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 12952if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then 12953 $as_echo_n "(cached) " >&6 12954else 12955 lt_cv_prog_compiler_pic_works_CXX=no 12956 ac_outfile=conftest.$ac_objext 12957 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12958 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12959 # Insert the option either (1) after the last *FLAGS variable, or 12960 # (2) before a word containing "conftest.", or (3) at the end. 12961 # Note that $ac_compile itself does not contain backslashes and begins 12962 # with a dollar sign (not a hyphen), so the echo should work correctly. 12963 # The option is referenced via a variable to avoid confusing sed. 12964 lt_compile=`echo "$ac_compile" | $SED \ 12965 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12966 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12967 -e 's:$: $lt_compiler_flag:'` 12968 (eval echo "\"\$as_me:12968: $lt_compile\"" >&5) 12969 (eval "$lt_compile" 2>conftest.err) 12970 ac_status=$? 12971 cat conftest.err >&5 12972 echo "$as_me:12972: \$? = $ac_status" >&5 12973 if (exit $ac_status) && test -s "$ac_outfile"; then 12974 # The compiler can only warn and ignore the option if not recognized 12975 # So say no if there are warnings other than the usual output. 12976 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12977 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12978 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12979 lt_cv_prog_compiler_pic_works_CXX=yes 12980 fi 12981 fi 12982 $rm conftest* 12983 12984fi 12985{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 12986$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 12987 12988if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 12989 case $lt_prog_compiler_pic_CXX in 12990 "" | " "*) ;; 12991 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12992 esac 12993else 12994 lt_prog_compiler_pic_CXX= 12995 lt_prog_compiler_can_build_shared_CXX=no 12996fi 12997 12998fi 12999case $host_os in 13000 # For platforms which do not support PIC, -DPIC is meaningless: 13001 *djgpp*) 13002 lt_prog_compiler_pic_CXX= 13003 ;; 13004 *) 13005 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 13006 ;; 13007esac 13008 13009# 13010# Check to make sure the static flag actually works. 13011# 13012wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 13013{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13014$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 13015if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then 13016 $as_echo_n "(cached) " >&6 13017else 13018 lt_cv_prog_compiler_static_works_CXX=no 13019 save_LDFLAGS="$LDFLAGS" 13020 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13021 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13022 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13023 # The linker can only warn and ignore the option if not recognized 13024 # So say no if there are warnings 13025 if test -s conftest.err; then 13026 # Append any errors to the config.log. 13027 cat conftest.err 1>&5 13028 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13029 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13030 if diff conftest.exp conftest.er2 >/dev/null; then 13031 lt_cv_prog_compiler_static_works_CXX=yes 13032 fi 13033 else 13034 lt_cv_prog_compiler_static_works_CXX=yes 13035 fi 13036 fi 13037 $rm -r conftest* 13038 LDFLAGS="$save_LDFLAGS" 13039 13040fi 13041{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5 13042$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 13043 13044if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 13045 : 13046else 13047 lt_prog_compiler_static_CXX= 13048fi 13049 13050 13051{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13052$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13053if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 13054 $as_echo_n "(cached) " >&6 13055else 13056 lt_cv_prog_compiler_c_o_CXX=no 13057 $rm -r conftest 2>/dev/null 13058 mkdir conftest 13059 cd conftest 13060 mkdir out 13061 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13062 13063 lt_compiler_flag="-o out/conftest2.$ac_objext" 13064 # Insert the option either (1) after the last *FLAGS variable, or 13065 # (2) before a word containing "conftest.", or (3) at the end. 13066 # Note that $ac_compile itself does not contain backslashes and begins 13067 # with a dollar sign (not a hyphen), so the echo should work correctly. 13068 lt_compile=`echo "$ac_compile" | $SED \ 13069 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13070 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13071 -e 's:$: $lt_compiler_flag:'` 13072 (eval echo "\"\$as_me:13072: $lt_compile\"" >&5) 13073 (eval "$lt_compile" 2>out/conftest.err) 13074 ac_status=$? 13075 cat out/conftest.err >&5 13076 echo "$as_me:13076: \$? = $ac_status" >&5 13077 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13078 then 13079 # The compiler can only warn and ignore the option if not recognized 13080 # So say no if there are warnings 13081 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13082 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13083 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13084 lt_cv_prog_compiler_c_o_CXX=yes 13085 fi 13086 fi 13087 chmod u+w . 2>&5 13088 $rm conftest* 13089 # SGI C++ compiler will create directory out/ii_files/ for 13090 # template instantiation 13091 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13092 $rm out/* && rmdir out 13093 cd .. 13094 rmdir conftest 13095 $rm conftest* 13096 13097fi 13098{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13099$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 13100 13101 13102hard_links="nottested" 13103if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 13104 # do not overwrite the value of need_locks provided by the user 13105 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13106$as_echo_n "checking if we can lock with hard links... " >&6; } 13107 hard_links=yes 13108 $rm conftest* 13109 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13110 touch conftest.a 13111 ln conftest.a conftest.b 2>&5 || hard_links=no 13112 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13113 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 13114$as_echo "$hard_links" >&6; } 13115 if test "$hard_links" = no; then 13116 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13117$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13118 need_locks=warn 13119 fi 13120else 13121 need_locks=no 13122fi 13123 13124{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13125$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13126 13127 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13128 case $host_os in 13129 aix[4-9]*) 13130 # If we're using GNU nm, then we don't want the "-C" option. 13131 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13132 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13133 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' 13134 else 13135 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' 13136 fi 13137 ;; 13138 pw32*) 13139 export_symbols_cmds_CXX="$ltdll_cmds" 13140 ;; 13141 cygwin* | mingw*) 13142 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' 13143 ;; 13144 *) 13145 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13146 ;; 13147 esac 13148 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 13149 13150{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 13151$as_echo "$ld_shlibs_CXX" >&6; } 13152test "$ld_shlibs_CXX" = no && can_build_shared=no 13153 13154# 13155# Do we need to explicitly link libc? 13156# 13157case "x$archive_cmds_need_lc_CXX" in 13158x|xyes) 13159 # Assume -lc should be added 13160 archive_cmds_need_lc_CXX=yes 13161 13162 if test "$enable_shared" = yes && test "$GCC" = yes; then 13163 case $archive_cmds_CXX in 13164 *'~'*) 13165 # FIXME: we may have to deal with multi-command sequences. 13166 ;; 13167 '$CC '*) 13168 # Test whether the compiler implicitly links with -lc since on some 13169 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13170 # to ld, don't add -lc before -lgcc. 13171 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 13172$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 13173 $rm conftest* 13174 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13175 13176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13177 (eval $ac_compile) 2>&5 13178 ac_status=$? 13179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13180 (exit $ac_status); } 2>conftest.err; then 13181 soname=conftest 13182 lib=conftest 13183 libobjs=conftest.$ac_objext 13184 deplibs= 13185 wl=$lt_prog_compiler_wl_CXX 13186 pic_flag=$lt_prog_compiler_pic_CXX 13187 compiler_flags=-v 13188 linker_flags=-v 13189 verstring= 13190 output_objdir=. 13191 libname=conftest 13192 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 13193 allow_undefined_flag_CXX= 13194 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 13195 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 13196 ac_status=$? 13197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13198 (exit $ac_status); } 13199 then 13200 archive_cmds_need_lc_CXX=no 13201 else 13202 archive_cmds_need_lc_CXX=yes 13203 fi 13204 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 13205 else 13206 cat conftest.err 1>&5 13207 fi 13208 $rm conftest* 13209 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 13210$as_echo "$archive_cmds_need_lc_CXX" >&6; } 13211 ;; 13212 esac 13213 fi 13214 ;; 13215esac 13216 13217{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 13218$as_echo_n "checking dynamic linker characteristics... " >&6; } 13219library_names_spec= 13220libname_spec='lib$name' 13221soname_spec= 13222shrext_cmds=".so" 13223postinstall_cmds= 13224postuninstall_cmds= 13225finish_cmds= 13226finish_eval= 13227shlibpath_var= 13228shlibpath_overrides_runpath=unknown 13229version_type=none 13230dynamic_linker="$host_os ld.so" 13231sys_lib_dlsearch_path_spec="/lib /usr/lib" 13232 13233need_lib_prefix=unknown 13234hardcode_into_libs=no 13235 13236# when you set need_version to no, make sure it does not cause -set_version 13237# flags to be left without arguments 13238need_version=unknown 13239 13240case $host_os in 13241aix3*) 13242 version_type=linux 13243 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13244 shlibpath_var=LIBPATH 13245 13246 # AIX 3 has no versioning support, so we append a major version to the name. 13247 soname_spec='${libname}${release}${shared_ext}$major' 13248 ;; 13249 13250aix[4-9]*) 13251 version_type=linux 13252 need_lib_prefix=no 13253 need_version=no 13254 hardcode_into_libs=yes 13255 if test "$host_cpu" = ia64; then 13256 # AIX 5 supports IA64 13257 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13258 shlibpath_var=LD_LIBRARY_PATH 13259 else 13260 # With GCC up to 2.95.x, collect2 would create an import file 13261 # for dependence libraries. The import file would start with 13262 # the line `#! .'. This would cause the generated library to 13263 # depend on `.', always an invalid library. This was fixed in 13264 # development snapshots of GCC prior to 3.0. 13265 case $host_os in 13266 aix4 | aix4.[01] | aix4.[01].*) 13267 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13268 echo ' yes ' 13269 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13270 : 13271 else 13272 can_build_shared=no 13273 fi 13274 ;; 13275 esac 13276 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13277 # soname into executable. Probably we can add versioning support to 13278 # collect2, so additional links can be useful in future. 13279 if test "$aix_use_runtimelinking" = yes; then 13280 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13281 # instead of lib<name>.a to let people know that these are not 13282 # typical AIX shared libraries. 13283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13284 else 13285 # We preserve .a as extension for shared libraries through AIX4.2 13286 # and later when we are not doing run time linking. 13287 library_names_spec='${libname}${release}.a $libname.a' 13288 soname_spec='${libname}${release}${shared_ext}$major' 13289 fi 13290 shlibpath_var=LIBPATH 13291 fi 13292 ;; 13293 13294amigaos*) 13295 library_names_spec='$libname.ixlibrary $libname.a' 13296 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13297 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' 13298 ;; 13299 13300beos*) 13301 library_names_spec='${libname}${shared_ext}' 13302 dynamic_linker="$host_os ld.so" 13303 shlibpath_var=LIBRARY_PATH 13304 ;; 13305 13306bsdi[45]*) 13307 version_type=linux 13308 need_version=no 13309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13310 soname_spec='${libname}${release}${shared_ext}$major' 13311 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13312 shlibpath_var=LD_LIBRARY_PATH 13313 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13314 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13315 # the default ld.so.conf also contains /usr/contrib/lib and 13316 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13317 # libtool to hard-code these into programs 13318 ;; 13319 13320cygwin* | mingw* | pw32*) 13321 version_type=windows 13322 shrext_cmds=".dll" 13323 need_version=no 13324 need_lib_prefix=no 13325 13326 case $GCC,$host_os in 13327 yes,cygwin* | yes,mingw* | yes,pw32*) 13328 library_names_spec='$libname.dll.a' 13329 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13330 postinstall_cmds='base_file=`basename \${file}`~ 13331 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13332 dldir=$destdir/`dirname \$dlpath`~ 13333 test -d \$dldir || mkdir -p \$dldir~ 13334 $install_prog $dir/$dlname \$dldir/$dlname~ 13335 chmod a+x \$dldir/$dlname' 13336 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13337 dlpath=$dir/\$dldll~ 13338 $rm \$dlpath' 13339 shlibpath_overrides_runpath=yes 13340 13341 case $host_os in 13342 cygwin*) 13343 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13344 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13345 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13346 ;; 13347 mingw*) 13348 # MinGW DLLs use traditional 'lib' prefix 13349 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13350 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13351 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13352 # It is most probably a Windows format PATH printed by 13353 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13354 # path with ; separators, and with drive letters. We can handle the 13355 # drive letters (cygwin fileutils understands them), so leave them, 13356 # especially as we might pass files found there to a mingw objdump, 13357 # which wouldn't understand a cygwinified path. Ahh. 13358 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13359 else 13360 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13361 fi 13362 ;; 13363 pw32*) 13364 # pw32 DLLs use 'pw' prefix rather than 'lib' 13365 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13366 ;; 13367 esac 13368 ;; 13369 13370 *) 13371 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13372 ;; 13373 esac 13374 dynamic_linker='Win32 ld.exe' 13375 # FIXME: first we should search . and the directory the executable is in 13376 shlibpath_var=PATH 13377 ;; 13378 13379darwin* | rhapsody*) 13380 dynamic_linker="$host_os dyld" 13381 version_type=darwin 13382 need_lib_prefix=no 13383 need_version=no 13384 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13385 soname_spec='${libname}${release}${major}$shared_ext' 13386 shlibpath_overrides_runpath=yes 13387 shlibpath_var=DYLD_LIBRARY_PATH 13388 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13389 13390 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13391 ;; 13392 13393dgux*) 13394 version_type=linux 13395 need_lib_prefix=no 13396 need_version=no 13397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13398 soname_spec='${libname}${release}${shared_ext}$major' 13399 shlibpath_var=LD_LIBRARY_PATH 13400 ;; 13401 13402freebsd1*) 13403 dynamic_linker=no 13404 ;; 13405 13406freebsd* | dragonfly*) 13407 # DragonFly does not have aout. When/if they implement a new 13408 # versioning mechanism, adjust this. 13409 if test -x /usr/bin/objformat; then 13410 objformat=`/usr/bin/objformat` 13411 else 13412 case $host_os in 13413 freebsd[123]*) objformat=aout ;; 13414 *) objformat=elf ;; 13415 esac 13416 fi 13417 version_type=freebsd-$objformat 13418 case $version_type in 13419 freebsd-elf*) 13420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13421 need_version=no 13422 need_lib_prefix=no 13423 ;; 13424 freebsd-*) 13425 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13426 need_version=yes 13427 ;; 13428 esac 13429 shlibpath_var=LD_LIBRARY_PATH 13430 case $host_os in 13431 freebsd2*) 13432 shlibpath_overrides_runpath=yes 13433 ;; 13434 freebsd3.[01]* | freebsdelf3.[01]*) 13435 shlibpath_overrides_runpath=yes 13436 hardcode_into_libs=yes 13437 ;; 13438 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13439 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13440 shlibpath_overrides_runpath=no 13441 hardcode_into_libs=yes 13442 ;; 13443 *) # from 4.6 on, and DragonFly 13444 shlibpath_overrides_runpath=yes 13445 hardcode_into_libs=yes 13446 ;; 13447 esac 13448 ;; 13449 13450gnu*) 13451 version_type=linux 13452 need_lib_prefix=no 13453 need_version=no 13454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13455 soname_spec='${libname}${release}${shared_ext}$major' 13456 shlibpath_var=LD_LIBRARY_PATH 13457 hardcode_into_libs=yes 13458 ;; 13459 13460hpux9* | hpux10* | hpux11*) 13461 # Give a soname corresponding to the major version so that dld.sl refuses to 13462 # link against other versions. 13463 version_type=sunos 13464 need_lib_prefix=no 13465 need_version=no 13466 case $host_cpu in 13467 ia64*) 13468 shrext_cmds='.so' 13469 hardcode_into_libs=yes 13470 dynamic_linker="$host_os dld.so" 13471 shlibpath_var=LD_LIBRARY_PATH 13472 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13474 soname_spec='${libname}${release}${shared_ext}$major' 13475 if test "X$HPUX_IA64_MODE" = X32; then 13476 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13477 else 13478 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13479 fi 13480 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13481 ;; 13482 hppa*64*) 13483 shrext_cmds='.sl' 13484 hardcode_into_libs=yes 13485 dynamic_linker="$host_os dld.sl" 13486 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13487 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13489 soname_spec='${libname}${release}${shared_ext}$major' 13490 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13491 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13492 ;; 13493 *) 13494 shrext_cmds='.sl' 13495 dynamic_linker="$host_os dld.sl" 13496 shlibpath_var=SHLIB_PATH 13497 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13499 soname_spec='${libname}${release}${shared_ext}$major' 13500 ;; 13501 esac 13502 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13503 postinstall_cmds='chmod 555 $lib' 13504 ;; 13505 13506interix[3-9]*) 13507 version_type=linux 13508 need_lib_prefix=no 13509 need_version=no 13510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13511 soname_spec='${libname}${release}${shared_ext}$major' 13512 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13513 shlibpath_var=LD_LIBRARY_PATH 13514 shlibpath_overrides_runpath=no 13515 hardcode_into_libs=yes 13516 ;; 13517 13518irix5* | irix6* | nonstopux*) 13519 case $host_os in 13520 nonstopux*) version_type=nonstopux ;; 13521 *) 13522 if test "$lt_cv_prog_gnu_ld" = yes; then 13523 version_type=linux 13524 else 13525 version_type=irix 13526 fi ;; 13527 esac 13528 need_lib_prefix=no 13529 need_version=no 13530 soname_spec='${libname}${release}${shared_ext}$major' 13531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13532 case $host_os in 13533 irix5* | nonstopux*) 13534 libsuff= shlibsuff= 13535 ;; 13536 *) 13537 case $LD in # libtool.m4 will add one of these switches to LD 13538 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13539 libsuff= shlibsuff= libmagic=32-bit;; 13540 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13541 libsuff=32 shlibsuff=N32 libmagic=N32;; 13542 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13543 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13544 *) libsuff= shlibsuff= libmagic=never-match;; 13545 esac 13546 ;; 13547 esac 13548 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13549 shlibpath_overrides_runpath=no 13550 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13551 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13552 hardcode_into_libs=yes 13553 ;; 13554 13555# No shared lib support for Linux oldld, aout, or coff. 13556linux*oldld* | linux*aout* | linux*coff*) 13557 dynamic_linker=no 13558 ;; 13559 13560# This must be Linux ELF. 13561linux* | k*bsd*-gnu) 13562 version_type=linux 13563 need_lib_prefix=no 13564 need_version=no 13565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13566 soname_spec='${libname}${release}${shared_ext}$major' 13567 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13568 shlibpath_var=LD_LIBRARY_PATH 13569 shlibpath_overrides_runpath=no 13570 # This implies no fast_install, which is unacceptable. 13571 # Some rework will be needed to allow for fast_install 13572 # before this can be enabled. 13573 hardcode_into_libs=yes 13574 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13575 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13576 13577 # Append ld.so.conf contents to the search path 13578 if test -f /etc/ld.so.conf; then 13579 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' ' '` 13580 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 13581 fi 13582 13583 # We used to test for /lib/ld.so.1 and disable shared libraries on 13584 # powerpc, because MkLinux only supported shared libraries with the 13585 # GNU dynamic linker. Since this was broken with cross compilers, 13586 # most powerpc-linux boxes support dynamic linking these days and 13587 # people can always --disable-shared, the test was removed, and we 13588 # assume the GNU/Linux dynamic linker is in use. 13589 dynamic_linker='GNU/Linux ld.so' 13590 ;; 13591 13592netbsd*) 13593 version_type=sunos 13594 need_lib_prefix=no 13595 need_version=no 13596 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13598 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13599 dynamic_linker='NetBSD (a.out) ld.so' 13600 else 13601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13602 soname_spec='${libname}${release}${shared_ext}$major' 13603 dynamic_linker='NetBSD ld.elf_so' 13604 fi 13605 shlibpath_var=LD_LIBRARY_PATH 13606 shlibpath_overrides_runpath=yes 13607 hardcode_into_libs=yes 13608 ;; 13609 13610newsos6) 13611 version_type=linux 13612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13613 shlibpath_var=LD_LIBRARY_PATH 13614 shlibpath_overrides_runpath=yes 13615 ;; 13616 13617nto-qnx*) 13618 version_type=linux 13619 need_lib_prefix=no 13620 need_version=no 13621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13622 soname_spec='${libname}${release}${shared_ext}$major' 13623 shlibpath_var=LD_LIBRARY_PATH 13624 shlibpath_overrides_runpath=yes 13625 ;; 13626 13627openbsd*) 13628 version_type=sunos 13629 sys_lib_dlsearch_path_spec="/usr/lib" 13630 need_lib_prefix=no 13631 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13632 case $host_os in 13633 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13634 *) need_version=no ;; 13635 esac 13636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13637 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13638 shlibpath_var=LD_LIBRARY_PATH 13639 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13640 case $host_os in 13641 openbsd2.[89] | openbsd2.[89].*) 13642 shlibpath_overrides_runpath=no 13643 ;; 13644 *) 13645 shlibpath_overrides_runpath=yes 13646 ;; 13647 esac 13648 else 13649 shlibpath_overrides_runpath=yes 13650 fi 13651 ;; 13652 13653os2*) 13654 libname_spec='$name' 13655 shrext_cmds=".dll" 13656 need_lib_prefix=no 13657 library_names_spec='$libname${shared_ext} $libname.a' 13658 dynamic_linker='OS/2 ld.exe' 13659 shlibpath_var=LIBPATH 13660 ;; 13661 13662osf3* | osf4* | osf5*) 13663 version_type=osf 13664 need_lib_prefix=no 13665 need_version=no 13666 soname_spec='${libname}${release}${shared_ext}$major' 13667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13668 shlibpath_var=LD_LIBRARY_PATH 13669 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13670 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13671 ;; 13672 13673rdos*) 13674 dynamic_linker=no 13675 ;; 13676 13677solaris*) 13678 version_type=linux 13679 need_lib_prefix=no 13680 need_version=no 13681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13682 soname_spec='${libname}${release}${shared_ext}$major' 13683 shlibpath_var=LD_LIBRARY_PATH 13684 shlibpath_overrides_runpath=yes 13685 hardcode_into_libs=yes 13686 # ldd complains unless libraries are executable 13687 postinstall_cmds='chmod +x $lib' 13688 ;; 13689 13690sunos4*) 13691 version_type=sunos 13692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13693 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13694 shlibpath_var=LD_LIBRARY_PATH 13695 shlibpath_overrides_runpath=yes 13696 if test "$with_gnu_ld" = yes; then 13697 need_lib_prefix=no 13698 fi 13699 need_version=yes 13700 ;; 13701 13702sysv4 | sysv4.3*) 13703 version_type=linux 13704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13705 soname_spec='${libname}${release}${shared_ext}$major' 13706 shlibpath_var=LD_LIBRARY_PATH 13707 case $host_vendor in 13708 sni) 13709 shlibpath_overrides_runpath=no 13710 need_lib_prefix=no 13711 export_dynamic_flag_spec='${wl}-Blargedynsym' 13712 runpath_var=LD_RUN_PATH 13713 ;; 13714 siemens) 13715 need_lib_prefix=no 13716 ;; 13717 motorola) 13718 need_lib_prefix=no 13719 need_version=no 13720 shlibpath_overrides_runpath=no 13721 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13722 ;; 13723 esac 13724 ;; 13725 13726sysv4*MP*) 13727 if test -d /usr/nec ;then 13728 version_type=linux 13729 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13730 soname_spec='$libname${shared_ext}.$major' 13731 shlibpath_var=LD_LIBRARY_PATH 13732 fi 13733 ;; 13734 13735sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13736 version_type=freebsd-elf 13737 need_lib_prefix=no 13738 need_version=no 13739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13740 soname_spec='${libname}${release}${shared_ext}$major' 13741 shlibpath_var=LD_LIBRARY_PATH 13742 hardcode_into_libs=yes 13743 if test "$with_gnu_ld" = yes; then 13744 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13745 shlibpath_overrides_runpath=no 13746 else 13747 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13748 shlibpath_overrides_runpath=yes 13749 case $host_os in 13750 sco3.2v5*) 13751 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13752 ;; 13753 esac 13754 fi 13755 sys_lib_dlsearch_path_spec='/usr/lib' 13756 ;; 13757 13758uts4*) 13759 version_type=linux 13760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13761 soname_spec='${libname}${release}${shared_ext}$major' 13762 shlibpath_var=LD_LIBRARY_PATH 13763 ;; 13764 13765*) 13766 dynamic_linker=no 13767 ;; 13768esac 13769{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13770$as_echo "$dynamic_linker" >&6; } 13771test "$dynamic_linker" = no && can_build_shared=no 13772 13773if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 13774 $as_echo_n "(cached) " >&6 13775else 13776 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 13777fi 13778 13779sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 13780if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 13781 $as_echo_n "(cached) " >&6 13782else 13783 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 13784fi 13785 13786sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 13787 13788variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13789if test "$GCC" = yes; then 13790 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13791fi 13792 13793{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13794$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13795hardcode_action_CXX= 13796if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13797 test -n "$runpath_var_CXX" || \ 13798 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13799 13800 # We can hardcode non-existant directories. 13801 if test "$hardcode_direct_CXX" != no && 13802 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13803 # have to relink, otherwise we might link with an installed library 13804 # when we should be linking with a yet-to-be-installed one 13805 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13806 test "$hardcode_minus_L_CXX" != no; then 13807 # Linking always hardcodes the temporary library directory. 13808 hardcode_action_CXX=relink 13809 else 13810 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13811 hardcode_action_CXX=immediate 13812 fi 13813else 13814 # We cannot hardcode anything, or else we can only hardcode existing 13815 # directories. 13816 hardcode_action_CXX=unsupported 13817fi 13818{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13819$as_echo "$hardcode_action_CXX" >&6; } 13820 13821if test "$hardcode_action_CXX" = relink; then 13822 # Fast installation is not supported 13823 enable_fast_install=no 13824elif test "$shlibpath_overrides_runpath" = yes || 13825 test "$enable_shared" = no; then 13826 # Fast installation is not necessary 13827 enable_fast_install=needless 13828fi 13829 13830 13831# The else clause should only fire when bootstrapping the 13832# libtool distribution, otherwise you forgot to ship ltmain.sh 13833# with your package, and you will get complaints that there are 13834# no rules to generate ltmain.sh. 13835if test -f "$ltmain"; then 13836 # See if we are running on zsh, and set the options which allow our commands through 13837 # without removal of \ escapes. 13838 if test -n "${ZSH_VERSION+set}" ; then 13839 setopt NO_GLOB_SUBST 13840 fi 13841 # Now quote all the things that may contain metacharacters while being 13842 # careful not to overquote the AC_SUBSTed values. We take copies of the 13843 # variables and quote the copies for generation of the libtool script. 13844 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13845 SED SHELL STRIP \ 13846 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13847 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13848 deplibs_check_method reload_flag reload_cmds need_locks \ 13849 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13850 lt_cv_sys_global_symbol_to_c_name_address \ 13851 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13852 old_postinstall_cmds old_postuninstall_cmds \ 13853 compiler_CXX \ 13854 CC_CXX \ 13855 LD_CXX \ 13856 lt_prog_compiler_wl_CXX \ 13857 lt_prog_compiler_pic_CXX \ 13858 lt_prog_compiler_static_CXX \ 13859 lt_prog_compiler_no_builtin_flag_CXX \ 13860 export_dynamic_flag_spec_CXX \ 13861 thread_safe_flag_spec_CXX \ 13862 whole_archive_flag_spec_CXX \ 13863 enable_shared_with_static_runtimes_CXX \ 13864 old_archive_cmds_CXX \ 13865 old_archive_from_new_cmds_CXX \ 13866 predep_objects_CXX \ 13867 postdep_objects_CXX \ 13868 predeps_CXX \ 13869 postdeps_CXX \ 13870 compiler_lib_search_path_CXX \ 13871 compiler_lib_search_dirs_CXX \ 13872 archive_cmds_CXX \ 13873 archive_expsym_cmds_CXX \ 13874 postinstall_cmds_CXX \ 13875 postuninstall_cmds_CXX \ 13876 old_archive_from_expsyms_cmds_CXX \ 13877 allow_undefined_flag_CXX \ 13878 no_undefined_flag_CXX \ 13879 export_symbols_cmds_CXX \ 13880 hardcode_libdir_flag_spec_CXX \ 13881 hardcode_libdir_flag_spec_ld_CXX \ 13882 hardcode_libdir_separator_CXX \ 13883 hardcode_automatic_CXX \ 13884 module_cmds_CXX \ 13885 module_expsym_cmds_CXX \ 13886 lt_cv_prog_compiler_c_o_CXX \ 13887 fix_srcfile_path_CXX \ 13888 exclude_expsyms_CXX \ 13889 include_expsyms_CXX; do 13890 13891 case $var in 13892 old_archive_cmds_CXX | \ 13893 old_archive_from_new_cmds_CXX | \ 13894 archive_cmds_CXX | \ 13895 archive_expsym_cmds_CXX | \ 13896 module_cmds_CXX | \ 13897 module_expsym_cmds_CXX | \ 13898 old_archive_from_expsyms_cmds_CXX | \ 13899 export_symbols_cmds_CXX | \ 13900 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13901 postinstall_cmds | postuninstall_cmds | \ 13902 old_postinstall_cmds | old_postuninstall_cmds | \ 13903 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13904 # Double-quote double-evaled strings. 13905 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13906 ;; 13907 *) 13908 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13909 ;; 13910 esac 13911 done 13912 13913 case $lt_echo in 13914 *'\$0 --fallback-echo"') 13915 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13916 ;; 13917 esac 13918 13919cfgfile="$ofile" 13920 13921 cat <<__EOF__ >> "$cfgfile" 13922# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13923 13924# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13925 13926# Shell to use when invoking shell scripts. 13927SHELL=$lt_SHELL 13928 13929# Whether or not to build shared libraries. 13930build_libtool_libs=$enable_shared 13931 13932# Whether or not to build static libraries. 13933build_old_libs=$enable_static 13934 13935# Whether or not to add -lc for building shared libraries. 13936build_libtool_need_lc=$archive_cmds_need_lc_CXX 13937 13938# Whether or not to disallow shared libs when runtime libs are static 13939allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13940 13941# Whether or not to optimize for fast installation. 13942fast_install=$enable_fast_install 13943 13944# The host system. 13945host_alias=$host_alias 13946host=$host 13947host_os=$host_os 13948 13949# The build system. 13950build_alias=$build_alias 13951build=$build 13952build_os=$build_os 13953 13954# An echo program that does not interpret backslashes. 13955echo=$lt_echo 13956 13957# The archiver. 13958AR=$lt_AR 13959AR_FLAGS=$lt_AR_FLAGS 13960 13961# A C compiler. 13962LTCC=$lt_LTCC 13963 13964# LTCC compiler flags. 13965LTCFLAGS=$lt_LTCFLAGS 13966 13967# A language-specific compiler. 13968CC=$lt_compiler_CXX 13969 13970# Is the compiler the GNU C compiler? 13971with_gcc=$GCC_CXX 13972 13973# An ERE matcher. 13974EGREP=$lt_EGREP 13975 13976# The linker used to build libraries. 13977LD=$lt_LD_CXX 13978 13979# Whether we need hard or soft links. 13980LN_S=$lt_LN_S 13981 13982# A BSD-compatible nm program. 13983NM=$lt_NM 13984 13985# A symbol stripping program 13986STRIP=$lt_STRIP 13987 13988# Used to examine libraries when file_magic_cmd begins "file" 13989MAGIC_CMD=$MAGIC_CMD 13990 13991# Used on cygwin: DLL creation program. 13992DLLTOOL="$DLLTOOL" 13993 13994# Used on cygwin: object dumper. 13995OBJDUMP="$OBJDUMP" 13996 13997# Used on cygwin: assembler. 13998AS="$AS" 13999 14000# The name of the directory that contains temporary libtool files. 14001objdir=$objdir 14002 14003# How to create reloadable object files. 14004reload_flag=$lt_reload_flag 14005reload_cmds=$lt_reload_cmds 14006 14007# How to pass a linker flag through the compiler. 14008wl=$lt_lt_prog_compiler_wl_CXX 14009 14010# Object file suffix (normally "o"). 14011objext="$ac_objext" 14012 14013# Old archive suffix (normally "a"). 14014libext="$libext" 14015 14016# Shared library suffix (normally ".so"). 14017shrext_cmds='$shrext_cmds' 14018 14019# Executable file suffix (normally ""). 14020exeext="$exeext" 14021 14022# Additional compiler flags for building library objects. 14023pic_flag=$lt_lt_prog_compiler_pic_CXX 14024pic_mode=$pic_mode 14025 14026# What is the maximum length of a command? 14027max_cmd_len=$lt_cv_sys_max_cmd_len 14028 14029# Does compiler simultaneously support -c and -o options? 14030compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 14031 14032# Must we lock files when doing compilation? 14033need_locks=$lt_need_locks 14034 14035# Do we need the lib prefix for modules? 14036need_lib_prefix=$need_lib_prefix 14037 14038# Do we need a version for libraries? 14039need_version=$need_version 14040 14041# Whether dlopen is supported. 14042dlopen_support=$enable_dlopen 14043 14044# Whether dlopen of programs is supported. 14045dlopen_self=$enable_dlopen_self 14046 14047# Whether dlopen of statically linked programs is supported. 14048dlopen_self_static=$enable_dlopen_self_static 14049 14050# Compiler flag to prevent dynamic linking. 14051link_static_flag=$lt_lt_prog_compiler_static_CXX 14052 14053# Compiler flag to turn off builtin functions. 14054no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 14055 14056# Compiler flag to allow reflexive dlopens. 14057export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 14058 14059# Compiler flag to generate shared objects directly from archives. 14060whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 14061 14062# Compiler flag to generate thread-safe objects. 14063thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 14064 14065# Library versioning type. 14066version_type=$version_type 14067 14068# Format of library name prefix. 14069libname_spec=$lt_libname_spec 14070 14071# List of archive names. First name is the real one, the rest are links. 14072# The last name is the one that the linker finds with -lNAME. 14073library_names_spec=$lt_library_names_spec 14074 14075# The coded name of the library, if different from the real name. 14076soname_spec=$lt_soname_spec 14077 14078# Commands used to build and install an old-style archive. 14079RANLIB=$lt_RANLIB 14080old_archive_cmds=$lt_old_archive_cmds_CXX 14081old_postinstall_cmds=$lt_old_postinstall_cmds 14082old_postuninstall_cmds=$lt_old_postuninstall_cmds 14083 14084# Create an old-style archive from a shared archive. 14085old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 14086 14087# Create a temporary old-style archive to link instead of a shared archive. 14088old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 14089 14090# Commands used to build and install a shared archive. 14091archive_cmds=$lt_archive_cmds_CXX 14092archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 14093postinstall_cmds=$lt_postinstall_cmds 14094postuninstall_cmds=$lt_postuninstall_cmds 14095 14096# Commands used to build a loadable module (assumed same as above if empty) 14097module_cmds=$lt_module_cmds_CXX 14098module_expsym_cmds=$lt_module_expsym_cmds_CXX 14099 14100# Commands to strip libraries. 14101old_striplib=$lt_old_striplib 14102striplib=$lt_striplib 14103 14104# Dependencies to place before the objects being linked to create a 14105# shared library. 14106predep_objects=$lt_predep_objects_CXX 14107 14108# Dependencies to place after the objects being linked to create a 14109# shared library. 14110postdep_objects=$lt_postdep_objects_CXX 14111 14112# Dependencies to place before the objects being linked to create a 14113# shared library. 14114predeps=$lt_predeps_CXX 14115 14116# Dependencies to place after the objects being linked to create a 14117# shared library. 14118postdeps=$lt_postdeps_CXX 14119 14120# The directories searched by this compiler when creating a shared 14121# library 14122compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 14123 14124# The library search path used internally by the compiler when linking 14125# a shared library. 14126compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 14127 14128# Method to check whether dependent libraries are shared objects. 14129deplibs_check_method=$lt_deplibs_check_method 14130 14131# Command to use when deplibs_check_method == file_magic. 14132file_magic_cmd=$lt_file_magic_cmd 14133 14134# Flag that allows shared libraries with undefined symbols to be built. 14135allow_undefined_flag=$lt_allow_undefined_flag_CXX 14136 14137# Flag that forces no undefined symbols. 14138no_undefined_flag=$lt_no_undefined_flag_CXX 14139 14140# Commands used to finish a libtool library installation in a directory. 14141finish_cmds=$lt_finish_cmds 14142 14143# Same as above, but a single script fragment to be evaled but not shown. 14144finish_eval=$lt_finish_eval 14145 14146# Take the output of nm and produce a listing of raw symbols and C names. 14147global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14148 14149# Transform the output of nm in a proper C declaration 14150global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14151 14152# Transform the output of nm in a C name address pair 14153global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14154 14155# This is the shared library runtime path variable. 14156runpath_var=$runpath_var 14157 14158# This is the shared library path variable. 14159shlibpath_var=$shlibpath_var 14160 14161# Is shlibpath searched before the hard-coded library search path? 14162shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14163 14164# How to hardcode a shared library path into an executable. 14165hardcode_action=$hardcode_action_CXX 14166 14167# Whether we should hardcode library paths into libraries. 14168hardcode_into_libs=$hardcode_into_libs 14169 14170# Flag to hardcode \$libdir into a binary during linking. 14171# This must work even if \$libdir does not exist. 14172hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 14173 14174# If ld is used when linking, flag to hardcode \$libdir into 14175# a binary during linking. This must work even if \$libdir does 14176# not exist. 14177hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 14178 14179# Whether we need a single -rpath flag with a separated argument. 14180hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 14181 14182# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 14183# resulting binary. 14184hardcode_direct=$hardcode_direct_CXX 14185 14186# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 14187# resulting binary. 14188hardcode_minus_L=$hardcode_minus_L_CXX 14189 14190# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 14191# the resulting binary. 14192hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 14193 14194# Set to yes if building a shared library automatically hardcodes DIR into the library 14195# and all subsequent libraries and executables linked against it. 14196hardcode_automatic=$hardcode_automatic_CXX 14197 14198# Variables whose values should be saved in libtool wrapper scripts and 14199# restored at relink time. 14200variables_saved_for_relink="$variables_saved_for_relink" 14201 14202# Whether libtool must link a program against all its dependency libraries. 14203link_all_deplibs=$link_all_deplibs_CXX 14204 14205# Compile-time system search path for libraries 14206sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14207 14208# Run-time system search path for libraries 14209sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14210 14211# Fix the shell variable \$srcfile for the compiler. 14212fix_srcfile_path=$lt_fix_srcfile_path 14213 14214# Set to yes if exported symbols are required. 14215always_export_symbols=$always_export_symbols_CXX 14216 14217# The commands to list exported symbols. 14218export_symbols_cmds=$lt_export_symbols_cmds_CXX 14219 14220# The commands to extract the exported symbol list from a shared archive. 14221extract_expsyms_cmds=$lt_extract_expsyms_cmds 14222 14223# Symbols that should not be listed in the preloaded symbols. 14224exclude_expsyms=$lt_exclude_expsyms_CXX 14225 14226# Symbols that must always be exported. 14227include_expsyms=$lt_include_expsyms_CXX 14228 14229# ### END LIBTOOL TAG CONFIG: $tagname 14230 14231__EOF__ 14232 14233 14234else 14235 # If there is no Makefile yet, we rely on a make rule to execute 14236 # `config.status --recheck' to rerun these tests and create the 14237 # libtool script then. 14238 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 14239 if test -f "$ltmain_in"; then 14240 test -f Makefile && make "$ltmain" 14241 fi 14242fi 14243 14244 14245ac_ext=c 14246ac_cpp='$CPP $CPPFLAGS' 14247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14249ac_compiler_gnu=$ac_cv_c_compiler_gnu 14250 14251CC=$lt_save_CC 14252LDCXX=$LD 14253LD=$lt_save_LD 14254GCC=$lt_save_GCC 14255with_gnu_ldcxx=$with_gnu_ld 14256with_gnu_ld=$lt_save_with_gnu_ld 14257lt_cv_path_LDCXX=$lt_cv_path_LD 14258lt_cv_path_LD=$lt_save_path_LD 14259lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14260lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14261 14262 else 14263 tagname="" 14264 fi 14265 ;; 14266 14267 F77) 14268 if test -n "$F77" && test "X$F77" != "Xno"; then 14269 14270ac_ext=f 14271ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 14272ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14273ac_compiler_gnu=$ac_cv_f77_compiler_gnu 14274 14275 14276archive_cmds_need_lc_F77=no 14277allow_undefined_flag_F77= 14278always_export_symbols_F77=no 14279archive_expsym_cmds_F77= 14280export_dynamic_flag_spec_F77= 14281hardcode_direct_F77=no 14282hardcode_libdir_flag_spec_F77= 14283hardcode_libdir_flag_spec_ld_F77= 14284hardcode_libdir_separator_F77= 14285hardcode_minus_L_F77=no 14286hardcode_automatic_F77=no 14287module_cmds_F77= 14288module_expsym_cmds_F77= 14289link_all_deplibs_F77=unknown 14290old_archive_cmds_F77=$old_archive_cmds 14291no_undefined_flag_F77= 14292whole_archive_flag_spec_F77= 14293enable_shared_with_static_runtimes_F77=no 14294 14295# Source file extension for f77 test sources. 14296ac_ext=f 14297 14298# Object file extension for compiled f77 test sources. 14299objext=o 14300objext_F77=$objext 14301 14302# Code to be used in simple compile tests 14303lt_simple_compile_test_code="\ 14304 subroutine t 14305 return 14306 end 14307" 14308 14309# Code to be used in simple link tests 14310lt_simple_link_test_code="\ 14311 program t 14312 end 14313" 14314 14315# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14316 14317# If no C compiler was specified, use CC. 14318LTCC=${LTCC-"$CC"} 14319 14320# If no C compiler flags were specified, use CFLAGS. 14321LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14322 14323# Allow CC to be a program name with arguments. 14324compiler=$CC 14325 14326 14327# save warnings/boilerplate of simple test code 14328ac_outfile=conftest.$ac_objext 14329echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14330eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14331_lt_compiler_boilerplate=`cat conftest.err` 14332$rm conftest* 14333 14334ac_outfile=conftest.$ac_objext 14335echo "$lt_simple_link_test_code" >conftest.$ac_ext 14336eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14337_lt_linker_boilerplate=`cat conftest.err` 14338$rm -r conftest* 14339 14340 14341# Allow CC to be a program name with arguments. 14342lt_save_CC="$CC" 14343CC=${F77-"f77"} 14344compiler=$CC 14345compiler_F77=$CC 14346for cc_temp in $compiler""; do 14347 case $cc_temp in 14348 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14349 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14350 \-*) ;; 14351 *) break;; 14352 esac 14353done 14354cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14355 14356 14357{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 14358$as_echo_n "checking if libtool supports shared libraries... " >&6; } 14359{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 14360$as_echo "$can_build_shared" >&6; } 14361 14362{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 14363$as_echo_n "checking whether to build shared libraries... " >&6; } 14364test "$can_build_shared" = "no" && enable_shared=no 14365 14366# On AIX, shared libraries and static libraries use the same namespace, and 14367# are all built from PIC. 14368case $host_os in 14369aix3*) 14370 test "$enable_shared" = yes && enable_static=no 14371 if test -n "$RANLIB"; then 14372 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14373 postinstall_cmds='$RANLIB $lib' 14374 fi 14375 ;; 14376aix[4-9]*) 14377 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14378 test "$enable_shared" = yes && enable_static=no 14379 fi 14380 ;; 14381esac 14382{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 14383$as_echo "$enable_shared" >&6; } 14384 14385{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 14386$as_echo_n "checking whether to build static libraries... " >&6; } 14387# Make sure either enable_shared or enable_static is yes. 14388test "$enable_shared" = yes || enable_static=yes 14389{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5 14390$as_echo "$enable_static" >&6; } 14391 14392GCC_F77="$G77" 14393LD_F77="$LD" 14394 14395lt_prog_compiler_wl_F77= 14396lt_prog_compiler_pic_F77= 14397lt_prog_compiler_static_F77= 14398 14399{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14400$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14401 14402 if test "$GCC" = yes; then 14403 lt_prog_compiler_wl_F77='-Wl,' 14404 lt_prog_compiler_static_F77='-static' 14405 14406 case $host_os in 14407 aix*) 14408 # All AIX code is PIC. 14409 if test "$host_cpu" = ia64; then 14410 # AIX 5 now supports IA64 processor 14411 lt_prog_compiler_static_F77='-Bstatic' 14412 fi 14413 ;; 14414 14415 amigaos*) 14416 # FIXME: we need at least 68020 code to build shared libraries, but 14417 # adding the `-m68020' flag to GCC prevents building anything better, 14418 # like `-m68040'. 14419 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14420 ;; 14421 14422 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14423 # PIC is the default for these OSes. 14424 ;; 14425 14426 mingw* | cygwin* | pw32* | os2*) 14427 # This hack is so that the source file can tell whether it is being 14428 # built for inclusion in a dll (and should export symbols for example). 14429 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14430 # (--disable-auto-import) libraries 14431 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14432 ;; 14433 14434 darwin* | rhapsody*) 14435 # PIC is the default on this platform 14436 # Common symbols not allowed in MH_DYLIB files 14437 lt_prog_compiler_pic_F77='-fno-common' 14438 ;; 14439 14440 interix[3-9]*) 14441 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14442 # Instead, we relocate shared libraries at runtime. 14443 ;; 14444 14445 msdosdjgpp*) 14446 # Just because we use GCC doesn't mean we suddenly get shared libraries 14447 # on systems that don't support them. 14448 lt_prog_compiler_can_build_shared_F77=no 14449 enable_shared=no 14450 ;; 14451 14452 sysv4*MP*) 14453 if test -d /usr/nec; then 14454 lt_prog_compiler_pic_F77=-Kconform_pic 14455 fi 14456 ;; 14457 14458 hpux*) 14459 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14460 # not for PA HP-UX. 14461 case $host_cpu in 14462 hppa*64*|ia64*) 14463 # +Z the default 14464 ;; 14465 *) 14466 lt_prog_compiler_pic_F77='-fPIC' 14467 ;; 14468 esac 14469 ;; 14470 14471 *) 14472 lt_prog_compiler_pic_F77='-fPIC' 14473 ;; 14474 esac 14475 else 14476 # PORTME Check for flag to pass linker flags through the system compiler. 14477 case $host_os in 14478 aix*) 14479 lt_prog_compiler_wl_F77='-Wl,' 14480 if test "$host_cpu" = ia64; then 14481 # AIX 5 now supports IA64 processor 14482 lt_prog_compiler_static_F77='-Bstatic' 14483 else 14484 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 14485 fi 14486 ;; 14487 darwin*) 14488 # PIC is the default on this platform 14489 # Common symbols not allowed in MH_DYLIB files 14490 case $cc_basename in 14491 xlc*) 14492 lt_prog_compiler_pic_F77='-qnocommon' 14493 lt_prog_compiler_wl_F77='-Wl,' 14494 ;; 14495 esac 14496 ;; 14497 14498 mingw* | cygwin* | pw32* | os2*) 14499 # This hack is so that the source file can tell whether it is being 14500 # built for inclusion in a dll (and should export symbols for example). 14501 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14502 ;; 14503 14504 hpux9* | hpux10* | hpux11*) 14505 lt_prog_compiler_wl_F77='-Wl,' 14506 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14507 # not for PA HP-UX. 14508 case $host_cpu in 14509 hppa*64*|ia64*) 14510 # +Z the default 14511 ;; 14512 *) 14513 lt_prog_compiler_pic_F77='+Z' 14514 ;; 14515 esac 14516 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14517 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 14518 ;; 14519 14520 irix5* | irix6* | nonstopux*) 14521 lt_prog_compiler_wl_F77='-Wl,' 14522 # PIC (with -KPIC) is the default. 14523 lt_prog_compiler_static_F77='-non_shared' 14524 ;; 14525 14526 newsos6) 14527 lt_prog_compiler_pic_F77='-KPIC' 14528 lt_prog_compiler_static_F77='-Bstatic' 14529 ;; 14530 14531 linux* | k*bsd*-gnu) 14532 case $cc_basename in 14533 icc* | ecc*) 14534 lt_prog_compiler_wl_F77='-Wl,' 14535 lt_prog_compiler_pic_F77='-KPIC' 14536 lt_prog_compiler_static_F77='-static' 14537 ;; 14538 pgcc* | pgf77* | pgf90* | pgf95*) 14539 # Portland Group compilers (*not* the Pentium gcc compiler, 14540 # which looks to be a dead project) 14541 lt_prog_compiler_wl_F77='-Wl,' 14542 lt_prog_compiler_pic_F77='-fpic' 14543 lt_prog_compiler_static_F77='-Bstatic' 14544 ;; 14545 ccc*) 14546 lt_prog_compiler_wl_F77='-Wl,' 14547 # All Alpha code is PIC. 14548 lt_prog_compiler_static_F77='-non_shared' 14549 ;; 14550 *) 14551 case `$CC -V 2>&1 | sed 5q` in 14552 *Sun\ C*) 14553 # Sun C 5.9 14554 lt_prog_compiler_pic_F77='-KPIC' 14555 lt_prog_compiler_static_F77='-Bstatic' 14556 lt_prog_compiler_wl_F77='-Wl,' 14557 ;; 14558 *Sun\ F*) 14559 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14560 lt_prog_compiler_pic_F77='-KPIC' 14561 lt_prog_compiler_static_F77='-Bstatic' 14562 lt_prog_compiler_wl_F77='' 14563 ;; 14564 esac 14565 ;; 14566 esac 14567 ;; 14568 14569 osf3* | osf4* | osf5*) 14570 lt_prog_compiler_wl_F77='-Wl,' 14571 # All OSF/1 code is PIC. 14572 lt_prog_compiler_static_F77='-non_shared' 14573 ;; 14574 14575 rdos*) 14576 lt_prog_compiler_static_F77='-non_shared' 14577 ;; 14578 14579 solaris*) 14580 lt_prog_compiler_pic_F77='-KPIC' 14581 lt_prog_compiler_static_F77='-Bstatic' 14582 case $cc_basename in 14583 f77* | f90* | f95*) 14584 lt_prog_compiler_wl_F77='-Qoption ld ';; 14585 *) 14586 lt_prog_compiler_wl_F77='-Wl,';; 14587 esac 14588 ;; 14589 14590 sunos4*) 14591 lt_prog_compiler_wl_F77='-Qoption ld ' 14592 lt_prog_compiler_pic_F77='-PIC' 14593 lt_prog_compiler_static_F77='-Bstatic' 14594 ;; 14595 14596 sysv4 | sysv4.2uw2* | sysv4.3*) 14597 lt_prog_compiler_wl_F77='-Wl,' 14598 lt_prog_compiler_pic_F77='-KPIC' 14599 lt_prog_compiler_static_F77='-Bstatic' 14600 ;; 14601 14602 sysv4*MP*) 14603 if test -d /usr/nec ;then 14604 lt_prog_compiler_pic_F77='-Kconform_pic' 14605 lt_prog_compiler_static_F77='-Bstatic' 14606 fi 14607 ;; 14608 14609 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14610 lt_prog_compiler_wl_F77='-Wl,' 14611 lt_prog_compiler_pic_F77='-KPIC' 14612 lt_prog_compiler_static_F77='-Bstatic' 14613 ;; 14614 14615 unicos*) 14616 lt_prog_compiler_wl_F77='-Wl,' 14617 lt_prog_compiler_can_build_shared_F77=no 14618 ;; 14619 14620 uts4*) 14621 lt_prog_compiler_pic_F77='-pic' 14622 lt_prog_compiler_static_F77='-Bstatic' 14623 ;; 14624 14625 *) 14626 lt_prog_compiler_can_build_shared_F77=no 14627 ;; 14628 esac 14629 fi 14630 14631{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14632$as_echo "$lt_prog_compiler_pic_F77" >&6; } 14633 14634# 14635# Check to make sure the PIC flag actually works. 14636# 14637if test -n "$lt_prog_compiler_pic_F77"; then 14638 14639{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14640$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; } 14641if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then 14642 $as_echo_n "(cached) " >&6 14643else 14644 lt_cv_prog_compiler_pic_works_F77=no 14645 ac_outfile=conftest.$ac_objext 14646 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14647 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14648 # Insert the option either (1) after the last *FLAGS variable, or 14649 # (2) before a word containing "conftest.", or (3) at the end. 14650 # Note that $ac_compile itself does not contain backslashes and begins 14651 # with a dollar sign (not a hyphen), so the echo should work correctly. 14652 # The option is referenced via a variable to avoid confusing sed. 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>conftest.err) 14659 ac_status=$? 14660 cat conftest.err >&5 14661 echo "$as_me:14661: \$? = $ac_status" >&5 14662 if (exit $ac_status) && test -s "$ac_outfile"; then 14663 # The compiler can only warn and ignore the option if not recognized 14664 # So say no if there are warnings other than the usual output. 14665 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14666 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14667 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14668 lt_cv_prog_compiler_pic_works_F77=yes 14669 fi 14670 fi 14671 $rm conftest* 14672 14673fi 14674{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5 14675$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; } 14676 14677if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then 14678 case $lt_prog_compiler_pic_F77 in 14679 "" | " "*) ;; 14680 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14681 esac 14682else 14683 lt_prog_compiler_pic_F77= 14684 lt_prog_compiler_can_build_shared_F77=no 14685fi 14686 14687fi 14688case $host_os in 14689 # For platforms which do not support PIC, -DPIC is meaningless: 14690 *djgpp*) 14691 lt_prog_compiler_pic_F77= 14692 ;; 14693 *) 14694 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14695 ;; 14696esac 14697 14698# 14699# Check to make sure the static flag actually works. 14700# 14701wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14702{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14703$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14704if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then 14705 $as_echo_n "(cached) " >&6 14706else 14707 lt_cv_prog_compiler_static_works_F77=no 14708 save_LDFLAGS="$LDFLAGS" 14709 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14710 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14711 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14712 # The linker can only warn and ignore the option if not recognized 14713 # So say no if there are warnings 14714 if test -s conftest.err; then 14715 # Append any errors to the config.log. 14716 cat conftest.err 1>&5 14717 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14718 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14719 if diff conftest.exp conftest.er2 >/dev/null; then 14720 lt_cv_prog_compiler_static_works_F77=yes 14721 fi 14722 else 14723 lt_cv_prog_compiler_static_works_F77=yes 14724 fi 14725 fi 14726 $rm -r conftest* 14727 LDFLAGS="$save_LDFLAGS" 14728 14729fi 14730{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5 14731$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; } 14732 14733if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then 14734 : 14735else 14736 lt_prog_compiler_static_F77= 14737fi 14738 14739 14740{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14741$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14742if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14743 $as_echo_n "(cached) " >&6 14744else 14745 lt_cv_prog_compiler_c_o_F77=no 14746 $rm -r conftest 2>/dev/null 14747 mkdir conftest 14748 cd conftest 14749 mkdir out 14750 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14751 14752 lt_compiler_flag="-o out/conftest2.$ac_objext" 14753 # Insert the option either (1) after the last *FLAGS variable, or 14754 # (2) before a word containing "conftest.", or (3) at the end. 14755 # Note that $ac_compile itself does not contain backslashes and begins 14756 # with a dollar sign (not a hyphen), so the echo should work correctly. 14757 lt_compile=`echo "$ac_compile" | $SED \ 14758 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14759 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14760 -e 's:$: $lt_compiler_flag:'` 14761 (eval echo "\"\$as_me:14761: $lt_compile\"" >&5) 14762 (eval "$lt_compile" 2>out/conftest.err) 14763 ac_status=$? 14764 cat out/conftest.err >&5 14765 echo "$as_me:14765: \$? = $ac_status" >&5 14766 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14767 then 14768 # The compiler can only warn and ignore the option if not recognized 14769 # So say no if there are warnings 14770 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14771 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14772 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14773 lt_cv_prog_compiler_c_o_F77=yes 14774 fi 14775 fi 14776 chmod u+w . 2>&5 14777 $rm conftest* 14778 # SGI C++ compiler will create directory out/ii_files/ for 14779 # template instantiation 14780 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14781 $rm out/* && rmdir out 14782 cd .. 14783 rmdir conftest 14784 $rm conftest* 14785 14786fi 14787{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14788$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; } 14789 14790 14791hard_links="nottested" 14792if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14793 # do not overwrite the value of need_locks provided by the user 14794 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14795$as_echo_n "checking if we can lock with hard links... " >&6; } 14796 hard_links=yes 14797 $rm conftest* 14798 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14799 touch conftest.a 14800 ln conftest.a conftest.b 2>&5 || hard_links=no 14801 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14802 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 14803$as_echo "$hard_links" >&6; } 14804 if test "$hard_links" = no; then 14805 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14806$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14807 need_locks=warn 14808 fi 14809else 14810 need_locks=no 14811fi 14812 14813{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14814$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14815 14816 runpath_var= 14817 allow_undefined_flag_F77= 14818 enable_shared_with_static_runtimes_F77=no 14819 archive_cmds_F77= 14820 archive_expsym_cmds_F77= 14821 old_archive_From_new_cmds_F77= 14822 old_archive_from_expsyms_cmds_F77= 14823 export_dynamic_flag_spec_F77= 14824 whole_archive_flag_spec_F77= 14825 thread_safe_flag_spec_F77= 14826 hardcode_libdir_flag_spec_F77= 14827 hardcode_libdir_flag_spec_ld_F77= 14828 hardcode_libdir_separator_F77= 14829 hardcode_direct_F77=no 14830 hardcode_minus_L_F77=no 14831 hardcode_shlibpath_var_F77=unsupported 14832 link_all_deplibs_F77=unknown 14833 hardcode_automatic_F77=no 14834 module_cmds_F77= 14835 module_expsym_cmds_F77= 14836 always_export_symbols_F77=no 14837 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14838 # include_expsyms should be a list of space-separated symbols to be *always* 14839 # included in the symbol list 14840 include_expsyms_F77= 14841 # exclude_expsyms can be an extended regexp of symbols to exclude 14842 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14843 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14844 # as well as any symbol that contains `d'. 14845 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14846 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14847 # platforms (ab)use it in PIC code, but their linkers get confused if 14848 # the symbol is explicitly referenced. Since portable code cannot 14849 # rely on this symbol name, it's probably fine to never include it in 14850 # preloaded symbol tables. 14851 # Exclude shared library initialization/finalization symbols. 14852 extract_expsyms_cmds= 14853 # Just being paranoid about ensuring that cc_basename is set. 14854 for cc_temp in $compiler""; do 14855 case $cc_temp in 14856 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14857 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14858 \-*) ;; 14859 *) break;; 14860 esac 14861done 14862cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14863 14864 case $host_os in 14865 cygwin* | mingw* | pw32*) 14866 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14867 # When not using gcc, we currently assume that we are using 14868 # Microsoft Visual C++. 14869 if test "$GCC" != yes; then 14870 with_gnu_ld=no 14871 fi 14872 ;; 14873 interix*) 14874 # we just hope/assume this is gcc and not c89 (= MSVC++) 14875 with_gnu_ld=yes 14876 ;; 14877 openbsd*) 14878 with_gnu_ld=no 14879 ;; 14880 esac 14881 14882 ld_shlibs_F77=yes 14883 if test "$with_gnu_ld" = yes; then 14884 # If archive_cmds runs LD, not CC, wlarc should be empty 14885 wlarc='${wl}' 14886 14887 # Set some defaults for GNU ld with shared library support. These 14888 # are reset later if shared libraries are not supported. Putting them 14889 # here allows them to be overridden if necessary. 14890 runpath_var=LD_RUN_PATH 14891 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14892 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14893 # ancient GNU ld didn't support --whole-archive et. al. 14894 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14895 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14896 else 14897 whole_archive_flag_spec_F77= 14898 fi 14899 supports_anon_versioning=no 14900 case `$LD -v 2>/dev/null` in 14901 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14902 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14903 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14904 *\ 2.11.*) ;; # other 2.11 versions 14905 *) supports_anon_versioning=yes ;; 14906 esac 14907 14908 # See if GNU ld supports shared libraries. 14909 case $host_os in 14910 aix[3-9]*) 14911 # On AIX/PPC, the GNU linker is very broken 14912 if test "$host_cpu" != ia64; then 14913 ld_shlibs_F77=no 14914 cat <<EOF 1>&2 14915 14916*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14917*** to be unable to reliably create shared libraries on AIX. 14918*** Therefore, libtool is disabling shared libraries support. If you 14919*** really care for shared libraries, you may want to modify your PATH 14920*** so that a non-GNU linker is found, and then restart. 14921 14922EOF 14923 fi 14924 ;; 14925 14926 amigaos*) 14927 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)' 14928 hardcode_libdir_flag_spec_F77='-L$libdir' 14929 hardcode_minus_L_F77=yes 14930 14931 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14932 # that the semantics of dynamic libraries on AmigaOS, at least up 14933 # to version 4, is to share data among multiple programs linked 14934 # with the same dynamic library. Since this doesn't match the 14935 # behavior of shared libraries on other platforms, we can't use 14936 # them. 14937 ld_shlibs_F77=no 14938 ;; 14939 14940 beos*) 14941 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14942 allow_undefined_flag_F77=unsupported 14943 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14944 # support --undefined. This deserves some investigation. FIXME 14945 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14946 else 14947 ld_shlibs_F77=no 14948 fi 14949 ;; 14950 14951 cygwin* | mingw* | pw32*) 14952 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14953 # as there is no search path for DLLs. 14954 hardcode_libdir_flag_spec_F77='-L$libdir' 14955 allow_undefined_flag_F77=unsupported 14956 always_export_symbols_F77=no 14957 enable_shared_with_static_runtimes_F77=yes 14958 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 14959 14960 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14961 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14962 # If the export-symbols file already is a .def file (1st line 14963 # is EXPORTS), use it as is; otherwise, prepend... 14964 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14965 cp $export_symbols $output_objdir/$soname.def; 14966 else 14967 echo EXPORTS > $output_objdir/$soname.def; 14968 cat $export_symbols >> $output_objdir/$soname.def; 14969 fi~ 14970 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14971 else 14972 ld_shlibs_F77=no 14973 fi 14974 ;; 14975 14976 interix[3-9]*) 14977 hardcode_direct_F77=no 14978 hardcode_shlibpath_var_F77=no 14979 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14980 export_dynamic_flag_spec_F77='${wl}-E' 14981 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14982 # Instead, shared libraries are loaded at an image base (0x10000000 by 14983 # default) and relocated if they conflict, which is a slow very memory 14984 # consuming and fragmenting process. To avoid this, we pick a random, 14985 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14986 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14987 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' 14988 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' 14989 ;; 14990 14991 gnu* | linux* | k*bsd*-gnu) 14992 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14993 tmp_addflag= 14994 case $cc_basename,$host_cpu in 14995 pgcc*) # Portland Group C compiler 14996 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' 14997 tmp_addflag=' $pic_flag' 14998 ;; 14999 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 15000 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' 15001 tmp_addflag=' $pic_flag -Mnomain' ;; 15002 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 15003 tmp_addflag=' -i_dynamic' ;; 15004 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 15005 tmp_addflag=' -i_dynamic -nofor_main' ;; 15006 ifc* | ifort*) # Intel Fortran compiler 15007 tmp_addflag=' -nofor_main' ;; 15008 esac 15009 case `$CC -V 2>&1 | sed 5q` in 15010 *Sun\ C*) # Sun C 5.9 15011 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' 15012 tmp_sharedflag='-G' ;; 15013 *Sun\ F*) # Sun Fortran 8.3 15014 tmp_sharedflag='-G' ;; 15015 *) 15016 tmp_sharedflag='-shared' ;; 15017 esac 15018 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15019 15020 if test $supports_anon_versioning = yes; then 15021 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 15022 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15023 $echo "local: *; };" >> $output_objdir/$libname.ver~ 15024 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 15025 fi 15026 else 15027 ld_shlibs_F77=no 15028 fi 15029 ;; 15030 15031 netbsd*) 15032 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15033 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15034 wlarc= 15035 else 15036 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15037 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15038 fi 15039 ;; 15040 15041 solaris*) 15042 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 15043 ld_shlibs_F77=no 15044 cat <<EOF 1>&2 15045 15046*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15047*** create shared libraries on Solaris systems. Therefore, libtool 15048*** is disabling shared libraries support. We urge you to upgrade GNU 15049*** binutils to release 2.9.1 or newer. Another option is to modify 15050*** your PATH or compiler configuration so that the native linker is 15051*** used, and then restart. 15052 15053EOF 15054 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15055 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15056 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15057 else 15058 ld_shlibs_F77=no 15059 fi 15060 ;; 15061 15062 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15063 case `$LD -v 2>&1` in 15064 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15065 ld_shlibs_F77=no 15066 cat <<_LT_EOF 1>&2 15067 15068*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 15069*** reliably create shared libraries on SCO systems. Therefore, libtool 15070*** is disabling shared libraries support. We urge you to upgrade GNU 15071*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15072*** your PATH or compiler configuration so that the native linker is 15073*** used, and then restart. 15074 15075_LT_EOF 15076 ;; 15077 *) 15078 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15079 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 15080 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 15081 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 15082 else 15083 ld_shlibs_F77=no 15084 fi 15085 ;; 15086 esac 15087 ;; 15088 15089 sunos4*) 15090 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15091 wlarc= 15092 hardcode_direct_F77=yes 15093 hardcode_shlibpath_var_F77=no 15094 ;; 15095 15096 *) 15097 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15098 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15099 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15100 else 15101 ld_shlibs_F77=no 15102 fi 15103 ;; 15104 esac 15105 15106 if test "$ld_shlibs_F77" = no; then 15107 runpath_var= 15108 hardcode_libdir_flag_spec_F77= 15109 export_dynamic_flag_spec_F77= 15110 whole_archive_flag_spec_F77= 15111 fi 15112 else 15113 # PORTME fill in a description of your system's linker (not GNU ld) 15114 case $host_os in 15115 aix3*) 15116 allow_undefined_flag_F77=unsupported 15117 always_export_symbols_F77=yes 15118 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' 15119 # Note: this linker hardcodes the directories in LIBPATH if there 15120 # are no directories specified by -L. 15121 hardcode_minus_L_F77=yes 15122 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 15123 # Neither direct hardcoding nor static linking is supported with a 15124 # broken collect2. 15125 hardcode_direct_F77=unsupported 15126 fi 15127 ;; 15128 15129 aix[4-9]*) 15130 if test "$host_cpu" = ia64; then 15131 # On IA64, the linker does run time linking by default, so we don't 15132 # have to do anything special. 15133 aix_use_runtimelinking=no 15134 exp_sym_flag='-Bexport' 15135 no_entry_flag="" 15136 else 15137 # If we're using GNU nm, then we don't want the "-C" option. 15138 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15139 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 15140 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' 15141 else 15142 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' 15143 fi 15144 aix_use_runtimelinking=no 15145 15146 # Test if we are trying to use run time linking or normal 15147 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15148 # need to do runtime linking. 15149 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15150 for ld_flag in $LDFLAGS; do 15151 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15152 aix_use_runtimelinking=yes 15153 break 15154 fi 15155 done 15156 ;; 15157 esac 15158 15159 exp_sym_flag='-bexport' 15160 no_entry_flag='-bnoentry' 15161 fi 15162 15163 # When large executables or shared objects are built, AIX ld can 15164 # have problems creating the table of contents. If linking a library 15165 # or program results in "error TOC overflow" add -mminimal-toc to 15166 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15167 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15168 15169 archive_cmds_F77='' 15170 hardcode_direct_F77=yes 15171 hardcode_libdir_separator_F77=':' 15172 link_all_deplibs_F77=yes 15173 15174 if test "$GCC" = yes; then 15175 case $host_os in aix4.[012]|aix4.[012].*) 15176 # We only want to do this on AIX 4.2 and lower, the check 15177 # below for broken collect2 doesn't work under 4.3+ 15178 collect2name=`${CC} -print-prog-name=collect2` 15179 if test -f "$collect2name" && \ 15180 strings "$collect2name" | grep resolve_lib_name >/dev/null 15181 then 15182 # We have reworked collect2 15183 : 15184 else 15185 # We have old collect2 15186 hardcode_direct_F77=unsupported 15187 # It fails to find uninstalled libraries when the uninstalled 15188 # path is not listed in the libpath. Setting hardcode_minus_L 15189 # to unsupported forces relinking 15190 hardcode_minus_L_F77=yes 15191 hardcode_libdir_flag_spec_F77='-L$libdir' 15192 hardcode_libdir_separator_F77= 15193 fi 15194 ;; 15195 esac 15196 shared_flag='-shared' 15197 if test "$aix_use_runtimelinking" = yes; then 15198 shared_flag="$shared_flag "'${wl}-G' 15199 fi 15200 else 15201 # not using gcc 15202 if test "$host_cpu" = ia64; then 15203 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15204 # chokes on -Wl,-G. The following line is correct: 15205 shared_flag='-G' 15206 else 15207 if test "$aix_use_runtimelinking" = yes; then 15208 shared_flag='${wl}-G' 15209 else 15210 shared_flag='${wl}-bM:SRE' 15211 fi 15212 fi 15213 fi 15214 15215 # It seems that -bexpall does not export symbols beginning with 15216 # underscore (_), so it is better to generate a list of symbols to export. 15217 always_export_symbols_F77=yes 15218 if test "$aix_use_runtimelinking" = yes; then 15219 # Warning - without using the other runtime loading flags (-brtl), 15220 # -berok will link without error, but may produce a broken library. 15221 allow_undefined_flag_F77='-berok' 15222 # Determine the default libpath from the value encoded in an empty executable. 15223 cat >conftest.$ac_ext <<_ACEOF 15224 program main 15225 15226 end 15227_ACEOF 15228rm -f conftest.$ac_objext conftest$ac_exeext 15229if { (ac_try="$ac_link" 15230case "(($ac_try" in 15231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15232 *) ac_try_echo=$ac_try;; 15233esac 15234eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15235$as_echo "$ac_try_echo") >&5 15236 (eval "$ac_link") 2>conftest.er1 15237 ac_status=$? 15238 grep -v '^ *+' conftest.er1 >conftest.err 15239 rm -f conftest.er1 15240 cat conftest.err >&5 15241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15242 (exit $ac_status); } && { 15243 test -z "$ac_f77_werror_flag" || 15244 test ! -s conftest.err 15245 } && test -s conftest$ac_exeext && { 15246 test "$cross_compiling" = yes || 15247 $as_test_x conftest$ac_exeext 15248 }; then 15249 15250lt_aix_libpath_sed=' 15251 /Import File Strings/,/^$/ { 15252 /^0/ { 15253 s/^0 *\(.*\)$/\1/ 15254 p 15255 } 15256 }' 15257aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15258# Check for a 64-bit object if we didn't find anything. 15259if test -z "$aix_libpath"; then 15260 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15261fi 15262else 15263 $as_echo "$as_me: failed program was:" >&5 15264sed 's/^/| /' conftest.$ac_ext >&5 15265 15266 15267fi 15268 15269rm -rf conftest.dSYM 15270rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15271 conftest$ac_exeext conftest.$ac_ext 15272if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15273 15274 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15275 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" 15276 else 15277 if test "$host_cpu" = ia64; then 15278 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 15279 allow_undefined_flag_F77="-z nodefs" 15280 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" 15281 else 15282 # Determine the default libpath from the value encoded in an empty executable. 15283 cat >conftest.$ac_ext <<_ACEOF 15284 program main 15285 15286 end 15287_ACEOF 15288rm -f conftest.$ac_objext conftest$ac_exeext 15289if { (ac_try="$ac_link" 15290case "(($ac_try" in 15291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15292 *) ac_try_echo=$ac_try;; 15293esac 15294eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15295$as_echo "$ac_try_echo") >&5 15296 (eval "$ac_link") 2>conftest.er1 15297 ac_status=$? 15298 grep -v '^ *+' conftest.er1 >conftest.err 15299 rm -f conftest.er1 15300 cat conftest.err >&5 15301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15302 (exit $ac_status); } && { 15303 test -z "$ac_f77_werror_flag" || 15304 test ! -s conftest.err 15305 } && test -s conftest$ac_exeext && { 15306 test "$cross_compiling" = yes || 15307 $as_test_x conftest$ac_exeext 15308 }; then 15309 15310lt_aix_libpath_sed=' 15311 /Import File Strings/,/^$/ { 15312 /^0/ { 15313 s/^0 *\(.*\)$/\1/ 15314 p 15315 } 15316 }' 15317aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15318# Check for a 64-bit object if we didn't find anything. 15319if test -z "$aix_libpath"; then 15320 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15321fi 15322else 15323 $as_echo "$as_me: failed program was:" >&5 15324sed 's/^/| /' conftest.$ac_ext >&5 15325 15326 15327fi 15328 15329rm -rf conftest.dSYM 15330rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15331 conftest$ac_exeext conftest.$ac_ext 15332if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15333 15334 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15335 # Warning - without using the other run time loading flags, 15336 # -berok will link without error, but may produce a broken library. 15337 no_undefined_flag_F77=' ${wl}-bernotok' 15338 allow_undefined_flag_F77=' ${wl}-berok' 15339 # Exported symbols can be pulled into shared objects from archives 15340 whole_archive_flag_spec_F77='$convenience' 15341 archive_cmds_need_lc_F77=yes 15342 # This is similar to how AIX traditionally builds its shared libraries. 15343 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' 15344 fi 15345 fi 15346 ;; 15347 15348 amigaos*) 15349 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)' 15350 hardcode_libdir_flag_spec_F77='-L$libdir' 15351 hardcode_minus_L_F77=yes 15352 # see comment about different semantics on the GNU ld section 15353 ld_shlibs_F77=no 15354 ;; 15355 15356 bsdi[45]*) 15357 export_dynamic_flag_spec_F77=-rdynamic 15358 ;; 15359 15360 cygwin* | mingw* | pw32*) 15361 # When not using gcc, we currently assume that we are using 15362 # Microsoft Visual C++. 15363 # hardcode_libdir_flag_spec is actually meaningless, as there is 15364 # no search path for DLLs. 15365 hardcode_libdir_flag_spec_F77=' ' 15366 allow_undefined_flag_F77=unsupported 15367 # Tell ltmain to make .lib files, not .a files. 15368 libext=lib 15369 # Tell ltmain to make .dll files, not .so files. 15370 shrext_cmds=".dll" 15371 # FIXME: Setting linknames here is a bad hack. 15372 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15373 # The linker will automatically build a .lib file if we build a DLL. 15374 old_archive_From_new_cmds_F77='true' 15375 # FIXME: Should let the user specify the lib program. 15376 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' 15377 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 15378 enable_shared_with_static_runtimes_F77=yes 15379 ;; 15380 15381 darwin* | rhapsody*) 15382 case $host_os in 15383 rhapsody* | darwin1.[012]) 15384 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 15385 ;; 15386 *) # Darwin 1.3 on 15387 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15388 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15389 else 15390 case ${MACOSX_DEPLOYMENT_TARGET} in 15391 10.[012]) 15392 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15393 ;; 15394 10.*) 15395 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 15396 ;; 15397 esac 15398 fi 15399 ;; 15400 esac 15401 archive_cmds_need_lc_F77=no 15402 hardcode_direct_F77=no 15403 hardcode_automatic_F77=yes 15404 hardcode_shlibpath_var_F77=unsupported 15405 whole_archive_flag_spec_F77='' 15406 link_all_deplibs_F77=yes 15407 if test "$GCC" = yes ; then 15408 output_verbose_link_cmd='echo' 15409 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}" 15410 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 15411 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}" 15412 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}" 15413 else 15414 case $cc_basename in 15415 xlc*) 15416 output_verbose_link_cmd='echo' 15417 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 15418 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15419 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15420 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}' 15421 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}' 15422 ;; 15423 *) 15424 ld_shlibs_F77=no 15425 ;; 15426 esac 15427 fi 15428 ;; 15429 15430 dgux*) 15431 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15432 hardcode_libdir_flag_spec_F77='-L$libdir' 15433 hardcode_shlibpath_var_F77=no 15434 ;; 15435 15436 freebsd1*) 15437 ld_shlibs_F77=no 15438 ;; 15439 15440 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15441 # support. Future versions do this automatically, but an explicit c++rt0.o 15442 # does not break anything, and helps significantly (at the cost of a little 15443 # extra space). 15444 freebsd2.2*) 15445 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15446 hardcode_libdir_flag_spec_F77='-R$libdir' 15447 hardcode_direct_F77=yes 15448 hardcode_shlibpath_var_F77=no 15449 ;; 15450 15451 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15452 freebsd2*) 15453 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15454 hardcode_direct_F77=yes 15455 hardcode_minus_L_F77=yes 15456 hardcode_shlibpath_var_F77=no 15457 ;; 15458 15459 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15460 freebsd* | dragonfly*) 15461 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15462 hardcode_libdir_flag_spec_F77='-R$libdir' 15463 hardcode_direct_F77=yes 15464 hardcode_shlibpath_var_F77=no 15465 ;; 15466 15467 hpux9*) 15468 if test "$GCC" = yes; then 15469 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' 15470 else 15471 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' 15472 fi 15473 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15474 hardcode_libdir_separator_F77=: 15475 hardcode_direct_F77=yes 15476 15477 # hardcode_minus_L: Not really in the search PATH, 15478 # but as the default location of the library. 15479 hardcode_minus_L_F77=yes 15480 export_dynamic_flag_spec_F77='${wl}-E' 15481 ;; 15482 15483 hpux10*) 15484 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15485 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15486 else 15487 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15488 fi 15489 if test "$with_gnu_ld" = no; then 15490 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15491 hardcode_libdir_separator_F77=: 15492 15493 hardcode_direct_F77=yes 15494 export_dynamic_flag_spec_F77='${wl}-E' 15495 15496 # hardcode_minus_L: Not really in the search PATH, 15497 # but as the default location of the library. 15498 hardcode_minus_L_F77=yes 15499 fi 15500 ;; 15501 15502 hpux11*) 15503 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15504 case $host_cpu in 15505 hppa*64*) 15506 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15507 ;; 15508 ia64*) 15509 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15510 ;; 15511 *) 15512 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15513 ;; 15514 esac 15515 else 15516 case $host_cpu in 15517 hppa*64*) 15518 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15519 ;; 15520 ia64*) 15521 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15522 ;; 15523 *) 15524 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15525 ;; 15526 esac 15527 fi 15528 if test "$with_gnu_ld" = no; then 15529 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15530 hardcode_libdir_separator_F77=: 15531 15532 case $host_cpu in 15533 hppa*64*|ia64*) 15534 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15535 hardcode_direct_F77=no 15536 hardcode_shlibpath_var_F77=no 15537 ;; 15538 *) 15539 hardcode_direct_F77=yes 15540 export_dynamic_flag_spec_F77='${wl}-E' 15541 15542 # hardcode_minus_L: Not really in the search PATH, 15543 # but as the default location of the library. 15544 hardcode_minus_L_F77=yes 15545 ;; 15546 esac 15547 fi 15548 ;; 15549 15550 irix5* | irix6* | nonstopux*) 15551 if test "$GCC" = yes; then 15552 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' 15553 else 15554 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' 15555 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 15556 fi 15557 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15558 hardcode_libdir_separator_F77=: 15559 link_all_deplibs_F77=yes 15560 ;; 15561 15562 netbsd*) 15563 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15564 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15565 else 15566 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15567 fi 15568 hardcode_libdir_flag_spec_F77='-R$libdir' 15569 hardcode_direct_F77=yes 15570 hardcode_shlibpath_var_F77=no 15571 ;; 15572 15573 newsos6) 15574 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15575 hardcode_direct_F77=yes 15576 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15577 hardcode_libdir_separator_F77=: 15578 hardcode_shlibpath_var_F77=no 15579 ;; 15580 15581 openbsd*) 15582 if test -f /usr/libexec/ld.so; then 15583 hardcode_direct_F77=yes 15584 hardcode_shlibpath_var_F77=no 15585 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15586 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15587 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15588 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15589 export_dynamic_flag_spec_F77='${wl}-E' 15590 else 15591 case $host_os in 15592 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15593 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15594 hardcode_libdir_flag_spec_F77='-R$libdir' 15595 ;; 15596 *) 15597 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15598 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15599 ;; 15600 esac 15601 fi 15602 else 15603 ld_shlibs_F77=no 15604 fi 15605 ;; 15606 15607 os2*) 15608 hardcode_libdir_flag_spec_F77='-L$libdir' 15609 hardcode_minus_L_F77=yes 15610 allow_undefined_flag_F77=unsupported 15611 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' 15612 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15613 ;; 15614 15615 osf3*) 15616 if test "$GCC" = yes; then 15617 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15618 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' 15619 else 15620 allow_undefined_flag_F77=' -expect_unresolved \*' 15621 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' 15622 fi 15623 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15624 hardcode_libdir_separator_F77=: 15625 ;; 15626 15627 osf4* | osf5*) # as osf3* with the addition of -msym flag 15628 if test "$GCC" = yes; then 15629 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15630 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' 15631 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15632 else 15633 allow_undefined_flag_F77=' -expect_unresolved \*' 15634 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' 15635 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~ 15636 $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' 15637 15638 # Both c and cxx compiler support -rpath directly 15639 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15640 fi 15641 hardcode_libdir_separator_F77=: 15642 ;; 15643 15644 solaris*) 15645 no_undefined_flag_F77=' -z text' 15646 if test "$GCC" = yes; then 15647 wlarc='${wl}' 15648 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15649 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15650 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15651 else 15652 wlarc='' 15653 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15654 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15655 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15656 fi 15657 hardcode_libdir_flag_spec_F77='-R$libdir' 15658 hardcode_shlibpath_var_F77=no 15659 case $host_os in 15660 solaris2.[0-5] | solaris2.[0-5].*) ;; 15661 *) 15662 # The compiler driver will combine and reorder linker options, 15663 # but understands `-z linker_flag'. GCC discards it without `$wl', 15664 # but is careful enough not to reorder. 15665 # Supported since Solaris 2.6 (maybe 2.5.1?) 15666 if test "$GCC" = yes; then 15667 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 15668 else 15669 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' 15670 fi 15671 ;; 15672 esac 15673 link_all_deplibs_F77=yes 15674 ;; 15675 15676 sunos4*) 15677 if test "x$host_vendor" = xsequent; then 15678 # Use $CC to link under sequent, because it throws in some extra .o 15679 # files that make .init and .fini sections work. 15680 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15681 else 15682 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15683 fi 15684 hardcode_libdir_flag_spec_F77='-L$libdir' 15685 hardcode_direct_F77=yes 15686 hardcode_minus_L_F77=yes 15687 hardcode_shlibpath_var_F77=no 15688 ;; 15689 15690 sysv4) 15691 case $host_vendor in 15692 sni) 15693 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15694 hardcode_direct_F77=yes # is this really true??? 15695 ;; 15696 siemens) 15697 ## LD is ld it makes a PLAMLIB 15698 ## CC just makes a GrossModule. 15699 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15700 reload_cmds_F77='$CC -r -o $output$reload_objs' 15701 hardcode_direct_F77=no 15702 ;; 15703 motorola) 15704 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15705 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15706 ;; 15707 esac 15708 runpath_var='LD_RUN_PATH' 15709 hardcode_shlibpath_var_F77=no 15710 ;; 15711 15712 sysv4.3*) 15713 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15714 hardcode_shlibpath_var_F77=no 15715 export_dynamic_flag_spec_F77='-Bexport' 15716 ;; 15717 15718 sysv4*MP*) 15719 if test -d /usr/nec; then 15720 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15721 hardcode_shlibpath_var_F77=no 15722 runpath_var=LD_RUN_PATH 15723 hardcode_runpath_var=yes 15724 ld_shlibs_F77=yes 15725 fi 15726 ;; 15727 15728 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15729 no_undefined_flag_F77='${wl}-z,text' 15730 archive_cmds_need_lc_F77=no 15731 hardcode_shlibpath_var_F77=no 15732 runpath_var='LD_RUN_PATH' 15733 15734 if test "$GCC" = yes; then 15735 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15736 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15737 else 15738 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15739 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15740 fi 15741 ;; 15742 15743 sysv5* | sco3.2v5* | sco5v6*) 15744 # Note: We can NOT use -z defs as we might desire, because we do not 15745 # link with -lc, and that would cause any symbols used from libc to 15746 # always be unresolved, which means just about no library would 15747 # ever link correctly. If we're not using GNU ld we use -z text 15748 # though, which does catch some bad symbols but isn't as heavy-handed 15749 # as -z defs. 15750 no_undefined_flag_F77='${wl}-z,text' 15751 allow_undefined_flag_F77='${wl}-z,nodefs' 15752 archive_cmds_need_lc_F77=no 15753 hardcode_shlibpath_var_F77=no 15754 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15755 hardcode_libdir_separator_F77=':' 15756 link_all_deplibs_F77=yes 15757 export_dynamic_flag_spec_F77='${wl}-Bexport' 15758 runpath_var='LD_RUN_PATH' 15759 15760 if test "$GCC" = yes; then 15761 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15762 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15763 else 15764 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15765 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15766 fi 15767 ;; 15768 15769 uts4*) 15770 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15771 hardcode_libdir_flag_spec_F77='-L$libdir' 15772 hardcode_shlibpath_var_F77=no 15773 ;; 15774 15775 *) 15776 ld_shlibs_F77=no 15777 ;; 15778 esac 15779 fi 15780 15781{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15782$as_echo "$ld_shlibs_F77" >&6; } 15783test "$ld_shlibs_F77" = no && can_build_shared=no 15784 15785# 15786# Do we need to explicitly link libc? 15787# 15788case "x$archive_cmds_need_lc_F77" in 15789x|xyes) 15790 # Assume -lc should be added 15791 archive_cmds_need_lc_F77=yes 15792 15793 if test "$enable_shared" = yes && test "$GCC" = yes; then 15794 case $archive_cmds_F77 in 15795 *'~'*) 15796 # FIXME: we may have to deal with multi-command sequences. 15797 ;; 15798 '$CC '*) 15799 # Test whether the compiler implicitly links with -lc since on some 15800 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15801 # to ld, don't add -lc before -lgcc. 15802 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15803$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15804 $rm conftest* 15805 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15806 15807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15808 (eval $ac_compile) 2>&5 15809 ac_status=$? 15810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15811 (exit $ac_status); } 2>conftest.err; then 15812 soname=conftest 15813 lib=conftest 15814 libobjs=conftest.$ac_objext 15815 deplibs= 15816 wl=$lt_prog_compiler_wl_F77 15817 pic_flag=$lt_prog_compiler_pic_F77 15818 compiler_flags=-v 15819 linker_flags=-v 15820 verstring= 15821 output_objdir=. 15822 libname=conftest 15823 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15824 allow_undefined_flag_F77= 15825 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15826 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15827 ac_status=$? 15828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15829 (exit $ac_status); } 15830 then 15831 archive_cmds_need_lc_F77=no 15832 else 15833 archive_cmds_need_lc_F77=yes 15834 fi 15835 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15836 else 15837 cat conftest.err 1>&5 15838 fi 15839 $rm conftest* 15840 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15841$as_echo "$archive_cmds_need_lc_F77" >&6; } 15842 ;; 15843 esac 15844 fi 15845 ;; 15846esac 15847 15848{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15849$as_echo_n "checking dynamic linker characteristics... " >&6; } 15850library_names_spec= 15851libname_spec='lib$name' 15852soname_spec= 15853shrext_cmds=".so" 15854postinstall_cmds= 15855postuninstall_cmds= 15856finish_cmds= 15857finish_eval= 15858shlibpath_var= 15859shlibpath_overrides_runpath=unknown 15860version_type=none 15861dynamic_linker="$host_os ld.so" 15862sys_lib_dlsearch_path_spec="/lib /usr/lib" 15863 15864need_lib_prefix=unknown 15865hardcode_into_libs=no 15866 15867# when you set need_version to no, make sure it does not cause -set_version 15868# flags to be left without arguments 15869need_version=unknown 15870 15871case $host_os in 15872aix3*) 15873 version_type=linux 15874 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15875 shlibpath_var=LIBPATH 15876 15877 # AIX 3 has no versioning support, so we append a major version to the name. 15878 soname_spec='${libname}${release}${shared_ext}$major' 15879 ;; 15880 15881aix[4-9]*) 15882 version_type=linux 15883 need_lib_prefix=no 15884 need_version=no 15885 hardcode_into_libs=yes 15886 if test "$host_cpu" = ia64; then 15887 # AIX 5 supports IA64 15888 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15889 shlibpath_var=LD_LIBRARY_PATH 15890 else 15891 # With GCC up to 2.95.x, collect2 would create an import file 15892 # for dependence libraries. The import file would start with 15893 # the line `#! .'. This would cause the generated library to 15894 # depend on `.', always an invalid library. This was fixed in 15895 # development snapshots of GCC prior to 3.0. 15896 case $host_os in 15897 aix4 | aix4.[01] | aix4.[01].*) 15898 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15899 echo ' yes ' 15900 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15901 : 15902 else 15903 can_build_shared=no 15904 fi 15905 ;; 15906 esac 15907 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15908 # soname into executable. Probably we can add versioning support to 15909 # collect2, so additional links can be useful in future. 15910 if test "$aix_use_runtimelinking" = yes; then 15911 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15912 # instead of lib<name>.a to let people know that these are not 15913 # typical AIX shared libraries. 15914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15915 else 15916 # We preserve .a as extension for shared libraries through AIX4.2 15917 # and later when we are not doing run time linking. 15918 library_names_spec='${libname}${release}.a $libname.a' 15919 soname_spec='${libname}${release}${shared_ext}$major' 15920 fi 15921 shlibpath_var=LIBPATH 15922 fi 15923 ;; 15924 15925amigaos*) 15926 library_names_spec='$libname.ixlibrary $libname.a' 15927 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15928 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' 15929 ;; 15930 15931beos*) 15932 library_names_spec='${libname}${shared_ext}' 15933 dynamic_linker="$host_os ld.so" 15934 shlibpath_var=LIBRARY_PATH 15935 ;; 15936 15937bsdi[45]*) 15938 version_type=linux 15939 need_version=no 15940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15941 soname_spec='${libname}${release}${shared_ext}$major' 15942 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15943 shlibpath_var=LD_LIBRARY_PATH 15944 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15945 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15946 # the default ld.so.conf also contains /usr/contrib/lib and 15947 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15948 # libtool to hard-code these into programs 15949 ;; 15950 15951cygwin* | mingw* | pw32*) 15952 version_type=windows 15953 shrext_cmds=".dll" 15954 need_version=no 15955 need_lib_prefix=no 15956 15957 case $GCC,$host_os in 15958 yes,cygwin* | yes,mingw* | yes,pw32*) 15959 library_names_spec='$libname.dll.a' 15960 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15961 postinstall_cmds='base_file=`basename \${file}`~ 15962 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15963 dldir=$destdir/`dirname \$dlpath`~ 15964 test -d \$dldir || mkdir -p \$dldir~ 15965 $install_prog $dir/$dlname \$dldir/$dlname~ 15966 chmod a+x \$dldir/$dlname' 15967 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15968 dlpath=$dir/\$dldll~ 15969 $rm \$dlpath' 15970 shlibpath_overrides_runpath=yes 15971 15972 case $host_os in 15973 cygwin*) 15974 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15975 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15976 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15977 ;; 15978 mingw*) 15979 # MinGW DLLs use traditional 'lib' prefix 15980 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15981 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15982 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15983 # It is most probably a Windows format PATH printed by 15984 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15985 # path with ; separators, and with drive letters. We can handle the 15986 # drive letters (cygwin fileutils understands them), so leave them, 15987 # especially as we might pass files found there to a mingw objdump, 15988 # which wouldn't understand a cygwinified path. Ahh. 15989 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15990 else 15991 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15992 fi 15993 ;; 15994 pw32*) 15995 # pw32 DLLs use 'pw' prefix rather than 'lib' 15996 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15997 ;; 15998 esac 15999 ;; 16000 16001 *) 16002 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 16003 ;; 16004 esac 16005 dynamic_linker='Win32 ld.exe' 16006 # FIXME: first we should search . and the directory the executable is in 16007 shlibpath_var=PATH 16008 ;; 16009 16010darwin* | rhapsody*) 16011 dynamic_linker="$host_os dyld" 16012 version_type=darwin 16013 need_lib_prefix=no 16014 need_version=no 16015 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16016 soname_spec='${libname}${release}${major}$shared_ext' 16017 shlibpath_overrides_runpath=yes 16018 shlibpath_var=DYLD_LIBRARY_PATH 16019 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16020 16021 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16022 ;; 16023 16024dgux*) 16025 version_type=linux 16026 need_lib_prefix=no 16027 need_version=no 16028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16029 soname_spec='${libname}${release}${shared_ext}$major' 16030 shlibpath_var=LD_LIBRARY_PATH 16031 ;; 16032 16033freebsd1*) 16034 dynamic_linker=no 16035 ;; 16036 16037freebsd* | dragonfly*) 16038 # DragonFly does not have aout. When/if they implement a new 16039 # versioning mechanism, adjust this. 16040 if test -x /usr/bin/objformat; then 16041 objformat=`/usr/bin/objformat` 16042 else 16043 case $host_os in 16044 freebsd[123]*) objformat=aout ;; 16045 *) objformat=elf ;; 16046 esac 16047 fi 16048 version_type=freebsd-$objformat 16049 case $version_type in 16050 freebsd-elf*) 16051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16052 need_version=no 16053 need_lib_prefix=no 16054 ;; 16055 freebsd-*) 16056 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 16057 need_version=yes 16058 ;; 16059 esac 16060 shlibpath_var=LD_LIBRARY_PATH 16061 case $host_os in 16062 freebsd2*) 16063 shlibpath_overrides_runpath=yes 16064 ;; 16065 freebsd3.[01]* | freebsdelf3.[01]*) 16066 shlibpath_overrides_runpath=yes 16067 hardcode_into_libs=yes 16068 ;; 16069 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16070 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16071 shlibpath_overrides_runpath=no 16072 hardcode_into_libs=yes 16073 ;; 16074 *) # from 4.6 on, and DragonFly 16075 shlibpath_overrides_runpath=yes 16076 hardcode_into_libs=yes 16077 ;; 16078 esac 16079 ;; 16080 16081gnu*) 16082 version_type=linux 16083 need_lib_prefix=no 16084 need_version=no 16085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16086 soname_spec='${libname}${release}${shared_ext}$major' 16087 shlibpath_var=LD_LIBRARY_PATH 16088 hardcode_into_libs=yes 16089 ;; 16090 16091hpux9* | hpux10* | hpux11*) 16092 # Give a soname corresponding to the major version so that dld.sl refuses to 16093 # link against other versions. 16094 version_type=sunos 16095 need_lib_prefix=no 16096 need_version=no 16097 case $host_cpu in 16098 ia64*) 16099 shrext_cmds='.so' 16100 hardcode_into_libs=yes 16101 dynamic_linker="$host_os dld.so" 16102 shlibpath_var=LD_LIBRARY_PATH 16103 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16105 soname_spec='${libname}${release}${shared_ext}$major' 16106 if test "X$HPUX_IA64_MODE" = X32; then 16107 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16108 else 16109 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16110 fi 16111 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16112 ;; 16113 hppa*64*) 16114 shrext_cmds='.sl' 16115 hardcode_into_libs=yes 16116 dynamic_linker="$host_os dld.sl" 16117 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16118 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16120 soname_spec='${libname}${release}${shared_ext}$major' 16121 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16122 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16123 ;; 16124 *) 16125 shrext_cmds='.sl' 16126 dynamic_linker="$host_os dld.sl" 16127 shlibpath_var=SHLIB_PATH 16128 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16130 soname_spec='${libname}${release}${shared_ext}$major' 16131 ;; 16132 esac 16133 # HP-UX runs *really* slowly unless shared libraries are mode 555. 16134 postinstall_cmds='chmod 555 $lib' 16135 ;; 16136 16137interix[3-9]*) 16138 version_type=linux 16139 need_lib_prefix=no 16140 need_version=no 16141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16142 soname_spec='${libname}${release}${shared_ext}$major' 16143 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16144 shlibpath_var=LD_LIBRARY_PATH 16145 shlibpath_overrides_runpath=no 16146 hardcode_into_libs=yes 16147 ;; 16148 16149irix5* | irix6* | nonstopux*) 16150 case $host_os in 16151 nonstopux*) version_type=nonstopux ;; 16152 *) 16153 if test "$lt_cv_prog_gnu_ld" = yes; then 16154 version_type=linux 16155 else 16156 version_type=irix 16157 fi ;; 16158 esac 16159 need_lib_prefix=no 16160 need_version=no 16161 soname_spec='${libname}${release}${shared_ext}$major' 16162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16163 case $host_os in 16164 irix5* | nonstopux*) 16165 libsuff= shlibsuff= 16166 ;; 16167 *) 16168 case $LD in # libtool.m4 will add one of these switches to LD 16169 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16170 libsuff= shlibsuff= libmagic=32-bit;; 16171 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16172 libsuff=32 shlibsuff=N32 libmagic=N32;; 16173 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16174 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16175 *) libsuff= shlibsuff= libmagic=never-match;; 16176 esac 16177 ;; 16178 esac 16179 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16180 shlibpath_overrides_runpath=no 16181 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16182 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16183 hardcode_into_libs=yes 16184 ;; 16185 16186# No shared lib support for Linux oldld, aout, or coff. 16187linux*oldld* | linux*aout* | linux*coff*) 16188 dynamic_linker=no 16189 ;; 16190 16191# This must be Linux ELF. 16192linux* | k*bsd*-gnu) 16193 version_type=linux 16194 need_lib_prefix=no 16195 need_version=no 16196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16197 soname_spec='${libname}${release}${shared_ext}$major' 16198 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16199 shlibpath_var=LD_LIBRARY_PATH 16200 shlibpath_overrides_runpath=no 16201 # This implies no fast_install, which is unacceptable. 16202 # Some rework will be needed to allow for fast_install 16203 # before this can be enabled. 16204 hardcode_into_libs=yes 16205 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16206 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16207 16208 # Append ld.so.conf contents to the search path 16209 if test -f /etc/ld.so.conf; then 16210 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' ' '` 16211 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 16212 fi 16213 16214 # We used to test for /lib/ld.so.1 and disable shared libraries on 16215 # powerpc, because MkLinux only supported shared libraries with the 16216 # GNU dynamic linker. Since this was broken with cross compilers, 16217 # most powerpc-linux boxes support dynamic linking these days and 16218 # people can always --disable-shared, the test was removed, and we 16219 # assume the GNU/Linux dynamic linker is in use. 16220 dynamic_linker='GNU/Linux ld.so' 16221 ;; 16222 16223netbsd*) 16224 version_type=sunos 16225 need_lib_prefix=no 16226 need_version=no 16227 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16229 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16230 dynamic_linker='NetBSD (a.out) ld.so' 16231 else 16232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16233 soname_spec='${libname}${release}${shared_ext}$major' 16234 dynamic_linker='NetBSD ld.elf_so' 16235 fi 16236 shlibpath_var=LD_LIBRARY_PATH 16237 shlibpath_overrides_runpath=yes 16238 hardcode_into_libs=yes 16239 ;; 16240 16241newsos6) 16242 version_type=linux 16243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16244 shlibpath_var=LD_LIBRARY_PATH 16245 shlibpath_overrides_runpath=yes 16246 ;; 16247 16248nto-qnx*) 16249 version_type=linux 16250 need_lib_prefix=no 16251 need_version=no 16252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16253 soname_spec='${libname}${release}${shared_ext}$major' 16254 shlibpath_var=LD_LIBRARY_PATH 16255 shlibpath_overrides_runpath=yes 16256 ;; 16257 16258openbsd*) 16259 version_type=sunos 16260 sys_lib_dlsearch_path_spec="/usr/lib" 16261 need_lib_prefix=no 16262 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16263 case $host_os in 16264 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16265 *) need_version=no ;; 16266 esac 16267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16268 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16269 shlibpath_var=LD_LIBRARY_PATH 16270 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16271 case $host_os in 16272 openbsd2.[89] | openbsd2.[89].*) 16273 shlibpath_overrides_runpath=no 16274 ;; 16275 *) 16276 shlibpath_overrides_runpath=yes 16277 ;; 16278 esac 16279 else 16280 shlibpath_overrides_runpath=yes 16281 fi 16282 ;; 16283 16284os2*) 16285 libname_spec='$name' 16286 shrext_cmds=".dll" 16287 need_lib_prefix=no 16288 library_names_spec='$libname${shared_ext} $libname.a' 16289 dynamic_linker='OS/2 ld.exe' 16290 shlibpath_var=LIBPATH 16291 ;; 16292 16293osf3* | osf4* | osf5*) 16294 version_type=osf 16295 need_lib_prefix=no 16296 need_version=no 16297 soname_spec='${libname}${release}${shared_ext}$major' 16298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16299 shlibpath_var=LD_LIBRARY_PATH 16300 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16301 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16302 ;; 16303 16304rdos*) 16305 dynamic_linker=no 16306 ;; 16307 16308solaris*) 16309 version_type=linux 16310 need_lib_prefix=no 16311 need_version=no 16312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16313 soname_spec='${libname}${release}${shared_ext}$major' 16314 shlibpath_var=LD_LIBRARY_PATH 16315 shlibpath_overrides_runpath=yes 16316 hardcode_into_libs=yes 16317 # ldd complains unless libraries are executable 16318 postinstall_cmds='chmod +x $lib' 16319 ;; 16320 16321sunos4*) 16322 version_type=sunos 16323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16324 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16325 shlibpath_var=LD_LIBRARY_PATH 16326 shlibpath_overrides_runpath=yes 16327 if test "$with_gnu_ld" = yes; then 16328 need_lib_prefix=no 16329 fi 16330 need_version=yes 16331 ;; 16332 16333sysv4 | sysv4.3*) 16334 version_type=linux 16335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16336 soname_spec='${libname}${release}${shared_ext}$major' 16337 shlibpath_var=LD_LIBRARY_PATH 16338 case $host_vendor in 16339 sni) 16340 shlibpath_overrides_runpath=no 16341 need_lib_prefix=no 16342 export_dynamic_flag_spec='${wl}-Blargedynsym' 16343 runpath_var=LD_RUN_PATH 16344 ;; 16345 siemens) 16346 need_lib_prefix=no 16347 ;; 16348 motorola) 16349 need_lib_prefix=no 16350 need_version=no 16351 shlibpath_overrides_runpath=no 16352 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16353 ;; 16354 esac 16355 ;; 16356 16357sysv4*MP*) 16358 if test -d /usr/nec ;then 16359 version_type=linux 16360 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16361 soname_spec='$libname${shared_ext}.$major' 16362 shlibpath_var=LD_LIBRARY_PATH 16363 fi 16364 ;; 16365 16366sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16367 version_type=freebsd-elf 16368 need_lib_prefix=no 16369 need_version=no 16370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16371 soname_spec='${libname}${release}${shared_ext}$major' 16372 shlibpath_var=LD_LIBRARY_PATH 16373 hardcode_into_libs=yes 16374 if test "$with_gnu_ld" = yes; then 16375 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16376 shlibpath_overrides_runpath=no 16377 else 16378 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16379 shlibpath_overrides_runpath=yes 16380 case $host_os in 16381 sco3.2v5*) 16382 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16383 ;; 16384 esac 16385 fi 16386 sys_lib_dlsearch_path_spec='/usr/lib' 16387 ;; 16388 16389uts4*) 16390 version_type=linux 16391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16392 soname_spec='${libname}${release}${shared_ext}$major' 16393 shlibpath_var=LD_LIBRARY_PATH 16394 ;; 16395 16396*) 16397 dynamic_linker=no 16398 ;; 16399esac 16400{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16401$as_echo "$dynamic_linker" >&6; } 16402test "$dynamic_linker" = no && can_build_shared=no 16403 16404if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 16405 $as_echo_n "(cached) " >&6 16406else 16407 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 16408fi 16409 16410sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 16411if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 16412 $as_echo_n "(cached) " >&6 16413else 16414 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 16415fi 16416 16417sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 16418 16419variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16420if test "$GCC" = yes; then 16421 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16422fi 16423 16424{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16425$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16426hardcode_action_F77= 16427if test -n "$hardcode_libdir_flag_spec_F77" || \ 16428 test -n "$runpath_var_F77" || \ 16429 test "X$hardcode_automatic_F77" = "Xyes" ; then 16430 16431 # We can hardcode non-existant directories. 16432 if test "$hardcode_direct_F77" != no && 16433 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16434 # have to relink, otherwise we might link with an installed library 16435 # when we should be linking with a yet-to-be-installed one 16436 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 16437 test "$hardcode_minus_L_F77" != no; then 16438 # Linking always hardcodes the temporary library directory. 16439 hardcode_action_F77=relink 16440 else 16441 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16442 hardcode_action_F77=immediate 16443 fi 16444else 16445 # We cannot hardcode anything, or else we can only hardcode existing 16446 # directories. 16447 hardcode_action_F77=unsupported 16448fi 16449{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 16450$as_echo "$hardcode_action_F77" >&6; } 16451 16452if test "$hardcode_action_F77" = relink; then 16453 # Fast installation is not supported 16454 enable_fast_install=no 16455elif test "$shlibpath_overrides_runpath" = yes || 16456 test "$enable_shared" = no; then 16457 # Fast installation is not necessary 16458 enable_fast_install=needless 16459fi 16460 16461 16462# The else clause should only fire when bootstrapping the 16463# libtool distribution, otherwise you forgot to ship ltmain.sh 16464# with your package, and you will get complaints that there are 16465# no rules to generate ltmain.sh. 16466if test -f "$ltmain"; then 16467 # See if we are running on zsh, and set the options which allow our commands through 16468 # without removal of \ escapes. 16469 if test -n "${ZSH_VERSION+set}" ; then 16470 setopt NO_GLOB_SUBST 16471 fi 16472 # Now quote all the things that may contain metacharacters while being 16473 # careful not to overquote the AC_SUBSTed values. We take copies of the 16474 # variables and quote the copies for generation of the libtool script. 16475 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 16476 SED SHELL STRIP \ 16477 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16478 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16479 deplibs_check_method reload_flag reload_cmds need_locks \ 16480 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16481 lt_cv_sys_global_symbol_to_c_name_address \ 16482 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16483 old_postinstall_cmds old_postuninstall_cmds \ 16484 compiler_F77 \ 16485 CC_F77 \ 16486 LD_F77 \ 16487 lt_prog_compiler_wl_F77 \ 16488 lt_prog_compiler_pic_F77 \ 16489 lt_prog_compiler_static_F77 \ 16490 lt_prog_compiler_no_builtin_flag_F77 \ 16491 export_dynamic_flag_spec_F77 \ 16492 thread_safe_flag_spec_F77 \ 16493 whole_archive_flag_spec_F77 \ 16494 enable_shared_with_static_runtimes_F77 \ 16495 old_archive_cmds_F77 \ 16496 old_archive_from_new_cmds_F77 \ 16497 predep_objects_F77 \ 16498 postdep_objects_F77 \ 16499 predeps_F77 \ 16500 postdeps_F77 \ 16501 compiler_lib_search_path_F77 \ 16502 compiler_lib_search_dirs_F77 \ 16503 archive_cmds_F77 \ 16504 archive_expsym_cmds_F77 \ 16505 postinstall_cmds_F77 \ 16506 postuninstall_cmds_F77 \ 16507 old_archive_from_expsyms_cmds_F77 \ 16508 allow_undefined_flag_F77 \ 16509 no_undefined_flag_F77 \ 16510 export_symbols_cmds_F77 \ 16511 hardcode_libdir_flag_spec_F77 \ 16512 hardcode_libdir_flag_spec_ld_F77 \ 16513 hardcode_libdir_separator_F77 \ 16514 hardcode_automatic_F77 \ 16515 module_cmds_F77 \ 16516 module_expsym_cmds_F77 \ 16517 lt_cv_prog_compiler_c_o_F77 \ 16518 fix_srcfile_path_F77 \ 16519 exclude_expsyms_F77 \ 16520 include_expsyms_F77; do 16521 16522 case $var in 16523 old_archive_cmds_F77 | \ 16524 old_archive_from_new_cmds_F77 | \ 16525 archive_cmds_F77 | \ 16526 archive_expsym_cmds_F77 | \ 16527 module_cmds_F77 | \ 16528 module_expsym_cmds_F77 | \ 16529 old_archive_from_expsyms_cmds_F77 | \ 16530 export_symbols_cmds_F77 | \ 16531 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16532 postinstall_cmds | postuninstall_cmds | \ 16533 old_postinstall_cmds | old_postuninstall_cmds | \ 16534 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16535 # Double-quote double-evaled strings. 16536 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16537 ;; 16538 *) 16539 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16540 ;; 16541 esac 16542 done 16543 16544 case $lt_echo in 16545 *'\$0 --fallback-echo"') 16546 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16547 ;; 16548 esac 16549 16550cfgfile="$ofile" 16551 16552 cat <<__EOF__ >> "$cfgfile" 16553# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16554 16555# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16556 16557# Shell to use when invoking shell scripts. 16558SHELL=$lt_SHELL 16559 16560# Whether or not to build shared libraries. 16561build_libtool_libs=$enable_shared 16562 16563# Whether or not to build static libraries. 16564build_old_libs=$enable_static 16565 16566# Whether or not to add -lc for building shared libraries. 16567build_libtool_need_lc=$archive_cmds_need_lc_F77 16568 16569# Whether or not to disallow shared libs when runtime libs are static 16570allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 16571 16572# Whether or not to optimize for fast installation. 16573fast_install=$enable_fast_install 16574 16575# The host system. 16576host_alias=$host_alias 16577host=$host 16578host_os=$host_os 16579 16580# The build system. 16581build_alias=$build_alias 16582build=$build 16583build_os=$build_os 16584 16585# An echo program that does not interpret backslashes. 16586echo=$lt_echo 16587 16588# The archiver. 16589AR=$lt_AR 16590AR_FLAGS=$lt_AR_FLAGS 16591 16592# A C compiler. 16593LTCC=$lt_LTCC 16594 16595# LTCC compiler flags. 16596LTCFLAGS=$lt_LTCFLAGS 16597 16598# A language-specific compiler. 16599CC=$lt_compiler_F77 16600 16601# Is the compiler the GNU C compiler? 16602with_gcc=$GCC_F77 16603 16604# An ERE matcher. 16605EGREP=$lt_EGREP 16606 16607# The linker used to build libraries. 16608LD=$lt_LD_F77 16609 16610# Whether we need hard or soft links. 16611LN_S=$lt_LN_S 16612 16613# A BSD-compatible nm program. 16614NM=$lt_NM 16615 16616# A symbol stripping program 16617STRIP=$lt_STRIP 16618 16619# Used to examine libraries when file_magic_cmd begins "file" 16620MAGIC_CMD=$MAGIC_CMD 16621 16622# Used on cygwin: DLL creation program. 16623DLLTOOL="$DLLTOOL" 16624 16625# Used on cygwin: object dumper. 16626OBJDUMP="$OBJDUMP" 16627 16628# Used on cygwin: assembler. 16629AS="$AS" 16630 16631# The name of the directory that contains temporary libtool files. 16632objdir=$objdir 16633 16634# How to create reloadable object files. 16635reload_flag=$lt_reload_flag 16636reload_cmds=$lt_reload_cmds 16637 16638# How to pass a linker flag through the compiler. 16639wl=$lt_lt_prog_compiler_wl_F77 16640 16641# Object file suffix (normally "o"). 16642objext="$ac_objext" 16643 16644# Old archive suffix (normally "a"). 16645libext="$libext" 16646 16647# Shared library suffix (normally ".so"). 16648shrext_cmds='$shrext_cmds' 16649 16650# Executable file suffix (normally ""). 16651exeext="$exeext" 16652 16653# Additional compiler flags for building library objects. 16654pic_flag=$lt_lt_prog_compiler_pic_F77 16655pic_mode=$pic_mode 16656 16657# What is the maximum length of a command? 16658max_cmd_len=$lt_cv_sys_max_cmd_len 16659 16660# Does compiler simultaneously support -c and -o options? 16661compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16662 16663# Must we lock files when doing compilation? 16664need_locks=$lt_need_locks 16665 16666# Do we need the lib prefix for modules? 16667need_lib_prefix=$need_lib_prefix 16668 16669# Do we need a version for libraries? 16670need_version=$need_version 16671 16672# Whether dlopen is supported. 16673dlopen_support=$enable_dlopen 16674 16675# Whether dlopen of programs is supported. 16676dlopen_self=$enable_dlopen_self 16677 16678# Whether dlopen of statically linked programs is supported. 16679dlopen_self_static=$enable_dlopen_self_static 16680 16681# Compiler flag to prevent dynamic linking. 16682link_static_flag=$lt_lt_prog_compiler_static_F77 16683 16684# Compiler flag to turn off builtin functions. 16685no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16686 16687# Compiler flag to allow reflexive dlopens. 16688export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16689 16690# Compiler flag to generate shared objects directly from archives. 16691whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16692 16693# Compiler flag to generate thread-safe objects. 16694thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16695 16696# Library versioning type. 16697version_type=$version_type 16698 16699# Format of library name prefix. 16700libname_spec=$lt_libname_spec 16701 16702# List of archive names. First name is the real one, the rest are links. 16703# The last name is the one that the linker finds with -lNAME. 16704library_names_spec=$lt_library_names_spec 16705 16706# The coded name of the library, if different from the real name. 16707soname_spec=$lt_soname_spec 16708 16709# Commands used to build and install an old-style archive. 16710RANLIB=$lt_RANLIB 16711old_archive_cmds=$lt_old_archive_cmds_F77 16712old_postinstall_cmds=$lt_old_postinstall_cmds 16713old_postuninstall_cmds=$lt_old_postuninstall_cmds 16714 16715# Create an old-style archive from a shared archive. 16716old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16717 16718# Create a temporary old-style archive to link instead of a shared archive. 16719old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16720 16721# Commands used to build and install a shared archive. 16722archive_cmds=$lt_archive_cmds_F77 16723archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16724postinstall_cmds=$lt_postinstall_cmds 16725postuninstall_cmds=$lt_postuninstall_cmds 16726 16727# Commands used to build a loadable module (assumed same as above if empty) 16728module_cmds=$lt_module_cmds_F77 16729module_expsym_cmds=$lt_module_expsym_cmds_F77 16730 16731# Commands to strip libraries. 16732old_striplib=$lt_old_striplib 16733striplib=$lt_striplib 16734 16735# Dependencies to place before the objects being linked to create a 16736# shared library. 16737predep_objects=$lt_predep_objects_F77 16738 16739# Dependencies to place after the objects being linked to create a 16740# shared library. 16741postdep_objects=$lt_postdep_objects_F77 16742 16743# Dependencies to place before the objects being linked to create a 16744# shared library. 16745predeps=$lt_predeps_F77 16746 16747# Dependencies to place after the objects being linked to create a 16748# shared library. 16749postdeps=$lt_postdeps_F77 16750 16751# The directories searched by this compiler when creating a shared 16752# library 16753compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77 16754 16755# The library search path used internally by the compiler when linking 16756# a shared library. 16757compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16758 16759# Method to check whether dependent libraries are shared objects. 16760deplibs_check_method=$lt_deplibs_check_method 16761 16762# Command to use when deplibs_check_method == file_magic. 16763file_magic_cmd=$lt_file_magic_cmd 16764 16765# Flag that allows shared libraries with undefined symbols to be built. 16766allow_undefined_flag=$lt_allow_undefined_flag_F77 16767 16768# Flag that forces no undefined symbols. 16769no_undefined_flag=$lt_no_undefined_flag_F77 16770 16771# Commands used to finish a libtool library installation in a directory. 16772finish_cmds=$lt_finish_cmds 16773 16774# Same as above, but a single script fragment to be evaled but not shown. 16775finish_eval=$lt_finish_eval 16776 16777# Take the output of nm and produce a listing of raw symbols and C names. 16778global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16779 16780# Transform the output of nm in a proper C declaration 16781global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16782 16783# Transform the output of nm in a C name address pair 16784global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16785 16786# This is the shared library runtime path variable. 16787runpath_var=$runpath_var 16788 16789# This is the shared library path variable. 16790shlibpath_var=$shlibpath_var 16791 16792# Is shlibpath searched before the hard-coded library search path? 16793shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16794 16795# How to hardcode a shared library path into an executable. 16796hardcode_action=$hardcode_action_F77 16797 16798# Whether we should hardcode library paths into libraries. 16799hardcode_into_libs=$hardcode_into_libs 16800 16801# Flag to hardcode \$libdir into a binary during linking. 16802# This must work even if \$libdir does not exist. 16803hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16804 16805# If ld is used when linking, flag to hardcode \$libdir into 16806# a binary during linking. This must work even if \$libdir does 16807# not exist. 16808hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16809 16810# Whether we need a single -rpath flag with a separated argument. 16811hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16812 16813# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16814# resulting binary. 16815hardcode_direct=$hardcode_direct_F77 16816 16817# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16818# resulting binary. 16819hardcode_minus_L=$hardcode_minus_L_F77 16820 16821# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16822# the resulting binary. 16823hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16824 16825# Set to yes if building a shared library automatically hardcodes DIR into the library 16826# and all subsequent libraries and executables linked against it. 16827hardcode_automatic=$hardcode_automatic_F77 16828 16829# Variables whose values should be saved in libtool wrapper scripts and 16830# restored at relink time. 16831variables_saved_for_relink="$variables_saved_for_relink" 16832 16833# Whether libtool must link a program against all its dependency libraries. 16834link_all_deplibs=$link_all_deplibs_F77 16835 16836# Compile-time system search path for libraries 16837sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16838 16839# Run-time system search path for libraries 16840sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16841 16842# Fix the shell variable \$srcfile for the compiler. 16843fix_srcfile_path=$lt_fix_srcfile_path 16844 16845# Set to yes if exported symbols are required. 16846always_export_symbols=$always_export_symbols_F77 16847 16848# The commands to list exported symbols. 16849export_symbols_cmds=$lt_export_symbols_cmds_F77 16850 16851# The commands to extract the exported symbol list from a shared archive. 16852extract_expsyms_cmds=$lt_extract_expsyms_cmds 16853 16854# Symbols that should not be listed in the preloaded symbols. 16855exclude_expsyms=$lt_exclude_expsyms_F77 16856 16857# Symbols that must always be exported. 16858include_expsyms=$lt_include_expsyms_F77 16859 16860# ### END LIBTOOL TAG CONFIG: $tagname 16861 16862__EOF__ 16863 16864 16865else 16866 # If there is no Makefile yet, we rely on a make rule to execute 16867 # `config.status --recheck' to rerun these tests and create the 16868 # libtool script then. 16869 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16870 if test -f "$ltmain_in"; then 16871 test -f Makefile && make "$ltmain" 16872 fi 16873fi 16874 16875 16876ac_ext=c 16877ac_cpp='$CPP $CPPFLAGS' 16878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16880ac_compiler_gnu=$ac_cv_c_compiler_gnu 16881 16882CC="$lt_save_CC" 16883 16884 else 16885 tagname="" 16886 fi 16887 ;; 16888 16889 GCJ) 16890 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16891 16892 16893# Source file extension for Java test sources. 16894ac_ext=java 16895 16896# Object file extension for compiled Java test sources. 16897objext=o 16898objext_GCJ=$objext 16899 16900# Code to be used in simple compile tests 16901lt_simple_compile_test_code="class foo {}" 16902 16903# Code to be used in simple link tests 16904lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' 16905 16906# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16907 16908# If no C compiler was specified, use CC. 16909LTCC=${LTCC-"$CC"} 16910 16911# If no C compiler flags were specified, use CFLAGS. 16912LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16913 16914# Allow CC to be a program name with arguments. 16915compiler=$CC 16916 16917 16918# save warnings/boilerplate of simple test code 16919ac_outfile=conftest.$ac_objext 16920echo "$lt_simple_compile_test_code" >conftest.$ac_ext 16921eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16922_lt_compiler_boilerplate=`cat conftest.err` 16923$rm conftest* 16924 16925ac_outfile=conftest.$ac_objext 16926echo "$lt_simple_link_test_code" >conftest.$ac_ext 16927eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16928_lt_linker_boilerplate=`cat conftest.err` 16929$rm -r conftest* 16930 16931 16932# Allow CC to be a program name with arguments. 16933lt_save_CC="$CC" 16934CC=${GCJ-"gcj"} 16935compiler=$CC 16936compiler_GCJ=$CC 16937for cc_temp in $compiler""; do 16938 case $cc_temp in 16939 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16940 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16941 \-*) ;; 16942 *) break;; 16943 esac 16944done 16945cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16946 16947 16948# GCJ did not exist at the time GCC didn't implicitly link libc in. 16949archive_cmds_need_lc_GCJ=no 16950 16951old_archive_cmds_GCJ=$old_archive_cmds 16952 16953 16954lt_prog_compiler_no_builtin_flag_GCJ= 16955 16956if test "$GCC" = yes; then 16957 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16958 16959 16960{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16961$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 16962if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16963 $as_echo_n "(cached) " >&6 16964else 16965 lt_cv_prog_compiler_rtti_exceptions=no 16966 ac_outfile=conftest.$ac_objext 16967 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16968 lt_compiler_flag="-fno-rtti -fno-exceptions" 16969 # Insert the option either (1) after the last *FLAGS variable, or 16970 # (2) before a word containing "conftest.", or (3) at the end. 16971 # Note that $ac_compile itself does not contain backslashes and begins 16972 # with a dollar sign (not a hyphen), so the echo should work correctly. 16973 # The option is referenced via a variable to avoid confusing sed. 16974 lt_compile=`echo "$ac_compile" | $SED \ 16975 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16976 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16977 -e 's:$: $lt_compiler_flag:'` 16978 (eval echo "\"\$as_me:16978: $lt_compile\"" >&5) 16979 (eval "$lt_compile" 2>conftest.err) 16980 ac_status=$? 16981 cat conftest.err >&5 16982 echo "$as_me:16982: \$? = $ac_status" >&5 16983 if (exit $ac_status) && test -s "$ac_outfile"; then 16984 # The compiler can only warn and ignore the option if not recognized 16985 # So say no if there are warnings other than the usual output. 16986 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16987 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16988 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16989 lt_cv_prog_compiler_rtti_exceptions=yes 16990 fi 16991 fi 16992 $rm conftest* 16993 16994fi 16995{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16996$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16997 16998if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16999 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 17000else 17001 : 17002fi 17003 17004fi 17005 17006lt_prog_compiler_wl_GCJ= 17007lt_prog_compiler_pic_GCJ= 17008lt_prog_compiler_static_GCJ= 17009 17010{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 17011$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 17012 17013 if test "$GCC" = yes; then 17014 lt_prog_compiler_wl_GCJ='-Wl,' 17015 lt_prog_compiler_static_GCJ='-static' 17016 17017 case $host_os in 17018 aix*) 17019 # All AIX code is PIC. 17020 if test "$host_cpu" = ia64; then 17021 # AIX 5 now supports IA64 processor 17022 lt_prog_compiler_static_GCJ='-Bstatic' 17023 fi 17024 ;; 17025 17026 amigaos*) 17027 # FIXME: we need at least 68020 code to build shared libraries, but 17028 # adding the `-m68020' flag to GCC prevents building anything better, 17029 # like `-m68040'. 17030 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 17031 ;; 17032 17033 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 17034 # PIC is the default for these OSes. 17035 ;; 17036 17037 mingw* | cygwin* | pw32* | os2*) 17038 # This hack is so that the source file can tell whether it is being 17039 # built for inclusion in a dll (and should export symbols for example). 17040 # Although the cygwin gcc ignores -fPIC, still need this for old-style 17041 # (--disable-auto-import) libraries 17042 17043 ;; 17044 17045 darwin* | rhapsody*) 17046 # PIC is the default on this platform 17047 # Common symbols not allowed in MH_DYLIB files 17048 lt_prog_compiler_pic_GCJ='-fno-common' 17049 ;; 17050 17051 interix[3-9]*) 17052 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 17053 # Instead, we relocate shared libraries at runtime. 17054 ;; 17055 17056 msdosdjgpp*) 17057 # Just because we use GCC doesn't mean we suddenly get shared libraries 17058 # on systems that don't support them. 17059 lt_prog_compiler_can_build_shared_GCJ=no 17060 enable_shared=no 17061 ;; 17062 17063 sysv4*MP*) 17064 if test -d /usr/nec; then 17065 lt_prog_compiler_pic_GCJ=-Kconform_pic 17066 fi 17067 ;; 17068 17069 hpux*) 17070 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17071 # not for PA HP-UX. 17072 case $host_cpu in 17073 hppa*64*|ia64*) 17074 # +Z the default 17075 ;; 17076 *) 17077 lt_prog_compiler_pic_GCJ='-fPIC' 17078 ;; 17079 esac 17080 ;; 17081 17082 *) 17083 lt_prog_compiler_pic_GCJ='-fPIC' 17084 ;; 17085 esac 17086 else 17087 # PORTME Check for flag to pass linker flags through the system compiler. 17088 case $host_os in 17089 aix*) 17090 lt_prog_compiler_wl_GCJ='-Wl,' 17091 if test "$host_cpu" = ia64; then 17092 # AIX 5 now supports IA64 processor 17093 lt_prog_compiler_static_GCJ='-Bstatic' 17094 else 17095 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 17096 fi 17097 ;; 17098 darwin*) 17099 # PIC is the default on this platform 17100 # Common symbols not allowed in MH_DYLIB files 17101 case $cc_basename in 17102 xlc*) 17103 lt_prog_compiler_pic_GCJ='-qnocommon' 17104 lt_prog_compiler_wl_GCJ='-Wl,' 17105 ;; 17106 esac 17107 ;; 17108 17109 mingw* | cygwin* | pw32* | os2*) 17110 # This hack is so that the source file can tell whether it is being 17111 # built for inclusion in a dll (and should export symbols for example). 17112 17113 ;; 17114 17115 hpux9* | hpux10* | hpux11*) 17116 lt_prog_compiler_wl_GCJ='-Wl,' 17117 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17118 # not for PA HP-UX. 17119 case $host_cpu in 17120 hppa*64*|ia64*) 17121 # +Z the default 17122 ;; 17123 *) 17124 lt_prog_compiler_pic_GCJ='+Z' 17125 ;; 17126 esac 17127 # Is there a better lt_prog_compiler_static that works with the bundled CC? 17128 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 17129 ;; 17130 17131 irix5* | irix6* | nonstopux*) 17132 lt_prog_compiler_wl_GCJ='-Wl,' 17133 # PIC (with -KPIC) is the default. 17134 lt_prog_compiler_static_GCJ='-non_shared' 17135 ;; 17136 17137 newsos6) 17138 lt_prog_compiler_pic_GCJ='-KPIC' 17139 lt_prog_compiler_static_GCJ='-Bstatic' 17140 ;; 17141 17142 linux* | k*bsd*-gnu) 17143 case $cc_basename in 17144 icc* | ecc*) 17145 lt_prog_compiler_wl_GCJ='-Wl,' 17146 lt_prog_compiler_pic_GCJ='-KPIC' 17147 lt_prog_compiler_static_GCJ='-static' 17148 ;; 17149 pgcc* | pgf77* | pgf90* | pgf95*) 17150 # Portland Group compilers (*not* the Pentium gcc compiler, 17151 # which looks to be a dead project) 17152 lt_prog_compiler_wl_GCJ='-Wl,' 17153 lt_prog_compiler_pic_GCJ='-fpic' 17154 lt_prog_compiler_static_GCJ='-Bstatic' 17155 ;; 17156 ccc*) 17157 lt_prog_compiler_wl_GCJ='-Wl,' 17158 # All Alpha code is PIC. 17159 lt_prog_compiler_static_GCJ='-non_shared' 17160 ;; 17161 *) 17162 case `$CC -V 2>&1 | sed 5q` in 17163 *Sun\ C*) 17164 # Sun C 5.9 17165 lt_prog_compiler_pic_GCJ='-KPIC' 17166 lt_prog_compiler_static_GCJ='-Bstatic' 17167 lt_prog_compiler_wl_GCJ='-Wl,' 17168 ;; 17169 *Sun\ F*) 17170 # Sun Fortran 8.3 passes all unrecognized flags to the linker 17171 lt_prog_compiler_pic_GCJ='-KPIC' 17172 lt_prog_compiler_static_GCJ='-Bstatic' 17173 lt_prog_compiler_wl_GCJ='' 17174 ;; 17175 esac 17176 ;; 17177 esac 17178 ;; 17179 17180 osf3* | osf4* | osf5*) 17181 lt_prog_compiler_wl_GCJ='-Wl,' 17182 # All OSF/1 code is PIC. 17183 lt_prog_compiler_static_GCJ='-non_shared' 17184 ;; 17185 17186 rdos*) 17187 lt_prog_compiler_static_GCJ='-non_shared' 17188 ;; 17189 17190 solaris*) 17191 lt_prog_compiler_pic_GCJ='-KPIC' 17192 lt_prog_compiler_static_GCJ='-Bstatic' 17193 case $cc_basename in 17194 f77* | f90* | f95*) 17195 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 17196 *) 17197 lt_prog_compiler_wl_GCJ='-Wl,';; 17198 esac 17199 ;; 17200 17201 sunos4*) 17202 lt_prog_compiler_wl_GCJ='-Qoption ld ' 17203 lt_prog_compiler_pic_GCJ='-PIC' 17204 lt_prog_compiler_static_GCJ='-Bstatic' 17205 ;; 17206 17207 sysv4 | sysv4.2uw2* | sysv4.3*) 17208 lt_prog_compiler_wl_GCJ='-Wl,' 17209 lt_prog_compiler_pic_GCJ='-KPIC' 17210 lt_prog_compiler_static_GCJ='-Bstatic' 17211 ;; 17212 17213 sysv4*MP*) 17214 if test -d /usr/nec ;then 17215 lt_prog_compiler_pic_GCJ='-Kconform_pic' 17216 lt_prog_compiler_static_GCJ='-Bstatic' 17217 fi 17218 ;; 17219 17220 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 17221 lt_prog_compiler_wl_GCJ='-Wl,' 17222 lt_prog_compiler_pic_GCJ='-KPIC' 17223 lt_prog_compiler_static_GCJ='-Bstatic' 17224 ;; 17225 17226 unicos*) 17227 lt_prog_compiler_wl_GCJ='-Wl,' 17228 lt_prog_compiler_can_build_shared_GCJ=no 17229 ;; 17230 17231 uts4*) 17232 lt_prog_compiler_pic_GCJ='-pic' 17233 lt_prog_compiler_static_GCJ='-Bstatic' 17234 ;; 17235 17236 *) 17237 lt_prog_compiler_can_build_shared_GCJ=no 17238 ;; 17239 esac 17240 fi 17241 17242{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 17243$as_echo "$lt_prog_compiler_pic_GCJ" >&6; } 17244 17245# 17246# Check to make sure the PIC flag actually works. 17247# 17248if test -n "$lt_prog_compiler_pic_GCJ"; then 17249 17250{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 17251$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; } 17252if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then 17253 $as_echo_n "(cached) " >&6 17254else 17255 lt_cv_prog_compiler_pic_works_GCJ=no 17256 ac_outfile=conftest.$ac_objext 17257 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17258 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 17259 # Insert the option either (1) after the last *FLAGS variable, or 17260 # (2) before a word containing "conftest.", or (3) at the end. 17261 # Note that $ac_compile itself does not contain backslashes and begins 17262 # with a dollar sign (not a hyphen), so the echo should work correctly. 17263 # The option is referenced via a variable to avoid confusing sed. 17264 lt_compile=`echo "$ac_compile" | $SED \ 17265 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17266 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17267 -e 's:$: $lt_compiler_flag:'` 17268 (eval echo "\"\$as_me:17268: $lt_compile\"" >&5) 17269 (eval "$lt_compile" 2>conftest.err) 17270 ac_status=$? 17271 cat conftest.err >&5 17272 echo "$as_me:17272: \$? = $ac_status" >&5 17273 if (exit $ac_status) && test -s "$ac_outfile"; then 17274 # The compiler can only warn and ignore the option if not recognized 17275 # So say no if there are warnings other than the usual output. 17276 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17277 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17278 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17279 lt_cv_prog_compiler_pic_works_GCJ=yes 17280 fi 17281 fi 17282 $rm conftest* 17283 17284fi 17285{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5 17286$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; } 17287 17288if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then 17289 case $lt_prog_compiler_pic_GCJ in 17290 "" | " "*) ;; 17291 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 17292 esac 17293else 17294 lt_prog_compiler_pic_GCJ= 17295 lt_prog_compiler_can_build_shared_GCJ=no 17296fi 17297 17298fi 17299case $host_os in 17300 # For platforms which do not support PIC, -DPIC is meaningless: 17301 *djgpp*) 17302 lt_prog_compiler_pic_GCJ= 17303 ;; 17304 *) 17305 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 17306 ;; 17307esac 17308 17309# 17310# Check to make sure the static flag actually works. 17311# 17312wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 17313{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17314$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 17315if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then 17316 $as_echo_n "(cached) " >&6 17317else 17318 lt_cv_prog_compiler_static_works_GCJ=no 17319 save_LDFLAGS="$LDFLAGS" 17320 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17321 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17322 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17323 # The linker can only warn and ignore the option if not recognized 17324 # So say no if there are warnings 17325 if test -s conftest.err; then 17326 # Append any errors to the config.log. 17327 cat conftest.err 1>&5 17328 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 17329 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17330 if diff conftest.exp conftest.er2 >/dev/null; then 17331 lt_cv_prog_compiler_static_works_GCJ=yes 17332 fi 17333 else 17334 lt_cv_prog_compiler_static_works_GCJ=yes 17335 fi 17336 fi 17337 $rm -r conftest* 17338 LDFLAGS="$save_LDFLAGS" 17339 17340fi 17341{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5 17342$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; } 17343 17344if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then 17345 : 17346else 17347 lt_prog_compiler_static_GCJ= 17348fi 17349 17350 17351{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 17352$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17353if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 17354 $as_echo_n "(cached) " >&6 17355else 17356 lt_cv_prog_compiler_c_o_GCJ=no 17357 $rm -r conftest 2>/dev/null 17358 mkdir conftest 17359 cd conftest 17360 mkdir out 17361 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17362 17363 lt_compiler_flag="-o out/conftest2.$ac_objext" 17364 # Insert the option either (1) after the last *FLAGS variable, or 17365 # (2) before a word containing "conftest.", or (3) at the end. 17366 # Note that $ac_compile itself does not contain backslashes and begins 17367 # with a dollar sign (not a hyphen), so the echo should work correctly. 17368 lt_compile=`echo "$ac_compile" | $SED \ 17369 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17370 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17371 -e 's:$: $lt_compiler_flag:'` 17372 (eval echo "\"\$as_me:17372: $lt_compile\"" >&5) 17373 (eval "$lt_compile" 2>out/conftest.err) 17374 ac_status=$? 17375 cat out/conftest.err >&5 17376 echo "$as_me:17376: \$? = $ac_status" >&5 17377 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17378 then 17379 # The compiler can only warn and ignore the option if not recognized 17380 # So say no if there are warnings 17381 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 17382 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17383 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17384 lt_cv_prog_compiler_c_o_GCJ=yes 17385 fi 17386 fi 17387 chmod u+w . 2>&5 17388 $rm conftest* 17389 # SGI C++ compiler will create directory out/ii_files/ for 17390 # template instantiation 17391 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 17392 $rm out/* && rmdir out 17393 cd .. 17394 rmdir conftest 17395 $rm conftest* 17396 17397fi 17398{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 17399$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; } 17400 17401 17402hard_links="nottested" 17403if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 17404 # do not overwrite the value of need_locks provided by the user 17405 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 17406$as_echo_n "checking if we can lock with hard links... " >&6; } 17407 hard_links=yes 17408 $rm conftest* 17409 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17410 touch conftest.a 17411 ln conftest.a conftest.b 2>&5 || hard_links=no 17412 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17413 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 17414$as_echo "$hard_links" >&6; } 17415 if test "$hard_links" = no; then 17416 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17417$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17418 need_locks=warn 17419 fi 17420else 17421 need_locks=no 17422fi 17423 17424{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17425$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 17426 17427 runpath_var= 17428 allow_undefined_flag_GCJ= 17429 enable_shared_with_static_runtimes_GCJ=no 17430 archive_cmds_GCJ= 17431 archive_expsym_cmds_GCJ= 17432 old_archive_From_new_cmds_GCJ= 17433 old_archive_from_expsyms_cmds_GCJ= 17434 export_dynamic_flag_spec_GCJ= 17435 whole_archive_flag_spec_GCJ= 17436 thread_safe_flag_spec_GCJ= 17437 hardcode_libdir_flag_spec_GCJ= 17438 hardcode_libdir_flag_spec_ld_GCJ= 17439 hardcode_libdir_separator_GCJ= 17440 hardcode_direct_GCJ=no 17441 hardcode_minus_L_GCJ=no 17442 hardcode_shlibpath_var_GCJ=unsupported 17443 link_all_deplibs_GCJ=unknown 17444 hardcode_automatic_GCJ=no 17445 module_cmds_GCJ= 17446 module_expsym_cmds_GCJ= 17447 always_export_symbols_GCJ=no 17448 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17449 # include_expsyms should be a list of space-separated symbols to be *always* 17450 # included in the symbol list 17451 include_expsyms_GCJ= 17452 # exclude_expsyms can be an extended regexp of symbols to exclude 17453 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17454 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17455 # as well as any symbol that contains `d'. 17456 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 17457 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17458 # platforms (ab)use it in PIC code, but their linkers get confused if 17459 # the symbol is explicitly referenced. Since portable code cannot 17460 # rely on this symbol name, it's probably fine to never include it in 17461 # preloaded symbol tables. 17462 # Exclude shared library initialization/finalization symbols. 17463 extract_expsyms_cmds= 17464 # Just being paranoid about ensuring that cc_basename is set. 17465 for cc_temp in $compiler""; do 17466 case $cc_temp in 17467 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17468 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17469 \-*) ;; 17470 *) break;; 17471 esac 17472done 17473cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17474 17475 case $host_os in 17476 cygwin* | mingw* | pw32*) 17477 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17478 # When not using gcc, we currently assume that we are using 17479 # Microsoft Visual C++. 17480 if test "$GCC" != yes; then 17481 with_gnu_ld=no 17482 fi 17483 ;; 17484 interix*) 17485 # we just hope/assume this is gcc and not c89 (= MSVC++) 17486 with_gnu_ld=yes 17487 ;; 17488 openbsd*) 17489 with_gnu_ld=no 17490 ;; 17491 esac 17492 17493 ld_shlibs_GCJ=yes 17494 if test "$with_gnu_ld" = yes; then 17495 # If archive_cmds runs LD, not CC, wlarc should be empty 17496 wlarc='${wl}' 17497 17498 # Set some defaults for GNU ld with shared library support. These 17499 # are reset later if shared libraries are not supported. Putting them 17500 # here allows them to be overridden if necessary. 17501 runpath_var=LD_RUN_PATH 17502 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 17503 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 17504 # ancient GNU ld didn't support --whole-archive et. al. 17505 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17506 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17507 else 17508 whole_archive_flag_spec_GCJ= 17509 fi 17510 supports_anon_versioning=no 17511 case `$LD -v 2>/dev/null` in 17512 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17513 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17514 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17515 *\ 2.11.*) ;; # other 2.11 versions 17516 *) supports_anon_versioning=yes ;; 17517 esac 17518 17519 # See if GNU ld supports shared libraries. 17520 case $host_os in 17521 aix[3-9]*) 17522 # On AIX/PPC, the GNU linker is very broken 17523 if test "$host_cpu" != ia64; then 17524 ld_shlibs_GCJ=no 17525 cat <<EOF 1>&2 17526 17527*** Warning: the GNU linker, at least up to release 2.9.1, is reported 17528*** to be unable to reliably create shared libraries on AIX. 17529*** Therefore, libtool is disabling shared libraries support. If you 17530*** really care for shared libraries, you may want to modify your PATH 17531*** so that a non-GNU linker is found, and then restart. 17532 17533EOF 17534 fi 17535 ;; 17536 17537 amigaos*) 17538 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)' 17539 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17540 hardcode_minus_L_GCJ=yes 17541 17542 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 17543 # that the semantics of dynamic libraries on AmigaOS, at least up 17544 # to version 4, is to share data among multiple programs linked 17545 # with the same dynamic library. Since this doesn't match the 17546 # behavior of shared libraries on other platforms, we can't use 17547 # them. 17548 ld_shlibs_GCJ=no 17549 ;; 17550 17551 beos*) 17552 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17553 allow_undefined_flag_GCJ=unsupported 17554 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17555 # support --undefined. This deserves some investigation. FIXME 17556 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17557 else 17558 ld_shlibs_GCJ=no 17559 fi 17560 ;; 17561 17562 cygwin* | mingw* | pw32*) 17563 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 17564 # as there is no search path for DLLs. 17565 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17566 allow_undefined_flag_GCJ=unsupported 17567 always_export_symbols_GCJ=no 17568 enable_shared_with_static_runtimes_GCJ=yes 17569 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 17570 17571 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17572 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17573 # If the export-symbols file already is a .def file (1st line 17574 # is EXPORTS), use it as is; otherwise, prepend... 17575 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17576 cp $export_symbols $output_objdir/$soname.def; 17577 else 17578 echo EXPORTS > $output_objdir/$soname.def; 17579 cat $export_symbols >> $output_objdir/$soname.def; 17580 fi~ 17581 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17582 else 17583 ld_shlibs_GCJ=no 17584 fi 17585 ;; 17586 17587 interix[3-9]*) 17588 hardcode_direct_GCJ=no 17589 hardcode_shlibpath_var_GCJ=no 17590 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17591 export_dynamic_flag_spec_GCJ='${wl}-E' 17592 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17593 # Instead, shared libraries are loaded at an image base (0x10000000 by 17594 # default) and relocated if they conflict, which is a slow very memory 17595 # consuming and fragmenting process. To avoid this, we pick a random, 17596 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17597 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17598 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' 17599 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' 17600 ;; 17601 17602 gnu* | linux* | k*bsd*-gnu) 17603 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17604 tmp_addflag= 17605 case $cc_basename,$host_cpu in 17606 pgcc*) # Portland Group C compiler 17607 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' 17608 tmp_addflag=' $pic_flag' 17609 ;; 17610 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17611 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' 17612 tmp_addflag=' $pic_flag -Mnomain' ;; 17613 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17614 tmp_addflag=' -i_dynamic' ;; 17615 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17616 tmp_addflag=' -i_dynamic -nofor_main' ;; 17617 ifc* | ifort*) # Intel Fortran compiler 17618 tmp_addflag=' -nofor_main' ;; 17619 esac 17620 case `$CC -V 2>&1 | sed 5q` in 17621 *Sun\ C*) # Sun C 5.9 17622 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' 17623 tmp_sharedflag='-G' ;; 17624 *Sun\ F*) # Sun Fortran 8.3 17625 tmp_sharedflag='-G' ;; 17626 *) 17627 tmp_sharedflag='-shared' ;; 17628 esac 17629 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17630 17631 if test $supports_anon_versioning = yes; then 17632 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17633 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17634 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17635 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17636 fi 17637 else 17638 ld_shlibs_GCJ=no 17639 fi 17640 ;; 17641 17642 netbsd*) 17643 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17644 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17645 wlarc= 17646 else 17647 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17648 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17649 fi 17650 ;; 17651 17652 solaris*) 17653 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17654 ld_shlibs_GCJ=no 17655 cat <<EOF 1>&2 17656 17657*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17658*** create shared libraries on Solaris systems. Therefore, libtool 17659*** is disabling shared libraries support. We urge you to upgrade GNU 17660*** binutils to release 2.9.1 or newer. Another option is to modify 17661*** your PATH or compiler configuration so that the native linker is 17662*** used, and then restart. 17663 17664EOF 17665 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17666 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17667 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17668 else 17669 ld_shlibs_GCJ=no 17670 fi 17671 ;; 17672 17673 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17674 case `$LD -v 2>&1` in 17675 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17676 ld_shlibs_GCJ=no 17677 cat <<_LT_EOF 1>&2 17678 17679*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17680*** reliably create shared libraries on SCO systems. Therefore, libtool 17681*** is disabling shared libraries support. We urge you to upgrade GNU 17682*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17683*** your PATH or compiler configuration so that the native linker is 17684*** used, and then restart. 17685 17686_LT_EOF 17687 ;; 17688 *) 17689 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17690 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17691 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17692 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17693 else 17694 ld_shlibs_GCJ=no 17695 fi 17696 ;; 17697 esac 17698 ;; 17699 17700 sunos4*) 17701 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17702 wlarc= 17703 hardcode_direct_GCJ=yes 17704 hardcode_shlibpath_var_GCJ=no 17705 ;; 17706 17707 *) 17708 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17709 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17710 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17711 else 17712 ld_shlibs_GCJ=no 17713 fi 17714 ;; 17715 esac 17716 17717 if test "$ld_shlibs_GCJ" = no; then 17718 runpath_var= 17719 hardcode_libdir_flag_spec_GCJ= 17720 export_dynamic_flag_spec_GCJ= 17721 whole_archive_flag_spec_GCJ= 17722 fi 17723 else 17724 # PORTME fill in a description of your system's linker (not GNU ld) 17725 case $host_os in 17726 aix3*) 17727 allow_undefined_flag_GCJ=unsupported 17728 always_export_symbols_GCJ=yes 17729 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' 17730 # Note: this linker hardcodes the directories in LIBPATH if there 17731 # are no directories specified by -L. 17732 hardcode_minus_L_GCJ=yes 17733 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17734 # Neither direct hardcoding nor static linking is supported with a 17735 # broken collect2. 17736 hardcode_direct_GCJ=unsupported 17737 fi 17738 ;; 17739 17740 aix[4-9]*) 17741 if test "$host_cpu" = ia64; then 17742 # On IA64, the linker does run time linking by default, so we don't 17743 # have to do anything special. 17744 aix_use_runtimelinking=no 17745 exp_sym_flag='-Bexport' 17746 no_entry_flag="" 17747 else 17748 # If we're using GNU nm, then we don't want the "-C" option. 17749 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17750 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17751 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' 17752 else 17753 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' 17754 fi 17755 aix_use_runtimelinking=no 17756 17757 # Test if we are trying to use run time linking or normal 17758 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17759 # need to do runtime linking. 17760 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 17761 for ld_flag in $LDFLAGS; do 17762 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17763 aix_use_runtimelinking=yes 17764 break 17765 fi 17766 done 17767 ;; 17768 esac 17769 17770 exp_sym_flag='-bexport' 17771 no_entry_flag='-bnoentry' 17772 fi 17773 17774 # When large executables or shared objects are built, AIX ld can 17775 # have problems creating the table of contents. If linking a library 17776 # or program results in "error TOC overflow" add -mminimal-toc to 17777 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17778 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17779 17780 archive_cmds_GCJ='' 17781 hardcode_direct_GCJ=yes 17782 hardcode_libdir_separator_GCJ=':' 17783 link_all_deplibs_GCJ=yes 17784 17785 if test "$GCC" = yes; then 17786 case $host_os in aix4.[012]|aix4.[012].*) 17787 # We only want to do this on AIX 4.2 and lower, the check 17788 # below for broken collect2 doesn't work under 4.3+ 17789 collect2name=`${CC} -print-prog-name=collect2` 17790 if test -f "$collect2name" && \ 17791 strings "$collect2name" | grep resolve_lib_name >/dev/null 17792 then 17793 # We have reworked collect2 17794 : 17795 else 17796 # We have old collect2 17797 hardcode_direct_GCJ=unsupported 17798 # It fails to find uninstalled libraries when the uninstalled 17799 # path is not listed in the libpath. Setting hardcode_minus_L 17800 # to unsupported forces relinking 17801 hardcode_minus_L_GCJ=yes 17802 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17803 hardcode_libdir_separator_GCJ= 17804 fi 17805 ;; 17806 esac 17807 shared_flag='-shared' 17808 if test "$aix_use_runtimelinking" = yes; then 17809 shared_flag="$shared_flag "'${wl}-G' 17810 fi 17811 else 17812 # not using gcc 17813 if test "$host_cpu" = ia64; then 17814 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17815 # chokes on -Wl,-G. The following line is correct: 17816 shared_flag='-G' 17817 else 17818 if test "$aix_use_runtimelinking" = yes; then 17819 shared_flag='${wl}-G' 17820 else 17821 shared_flag='${wl}-bM:SRE' 17822 fi 17823 fi 17824 fi 17825 17826 # It seems that -bexpall does not export symbols beginning with 17827 # underscore (_), so it is better to generate a list of symbols to export. 17828 always_export_symbols_GCJ=yes 17829 if test "$aix_use_runtimelinking" = yes; then 17830 # Warning - without using the other runtime loading flags (-brtl), 17831 # -berok will link without error, but may produce a broken library. 17832 allow_undefined_flag_GCJ='-berok' 17833 # Determine the default libpath from the value encoded in an empty executable. 17834 cat >conftest.$ac_ext <<_ACEOF 17835/* confdefs.h. */ 17836_ACEOF 17837cat confdefs.h >>conftest.$ac_ext 17838cat >>conftest.$ac_ext <<_ACEOF 17839/* end confdefs.h. */ 17840 17841int 17842main () 17843{ 17844 17845 ; 17846 return 0; 17847} 17848_ACEOF 17849rm -f conftest.$ac_objext conftest$ac_exeext 17850if { (ac_try="$ac_link" 17851case "(($ac_try" in 17852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17853 *) ac_try_echo=$ac_try;; 17854esac 17855eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17856$as_echo "$ac_try_echo") >&5 17857 (eval "$ac_link") 2>conftest.er1 17858 ac_status=$? 17859 grep -v '^ *+' conftest.er1 >conftest.err 17860 rm -f conftest.er1 17861 cat conftest.err >&5 17862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17863 (exit $ac_status); } && { 17864 test -z "$ac_c_werror_flag" || 17865 test ! -s conftest.err 17866 } && test -s conftest$ac_exeext && { 17867 test "$cross_compiling" = yes || 17868 $as_test_x conftest$ac_exeext 17869 }; then 17870 17871lt_aix_libpath_sed=' 17872 /Import File Strings/,/^$/ { 17873 /^0/ { 17874 s/^0 *\(.*\)$/\1/ 17875 p 17876 } 17877 }' 17878aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17879# Check for a 64-bit object if we didn't find anything. 17880if test -z "$aix_libpath"; then 17881 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17882fi 17883else 17884 $as_echo "$as_me: failed program was:" >&5 17885sed 's/^/| /' conftest.$ac_ext >&5 17886 17887 17888fi 17889 17890rm -rf conftest.dSYM 17891rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17892 conftest$ac_exeext conftest.$ac_ext 17893if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17894 17895 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17896 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" 17897 else 17898 if test "$host_cpu" = ia64; then 17899 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17900 allow_undefined_flag_GCJ="-z nodefs" 17901 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" 17902 else 17903 # Determine the default libpath from the value encoded in an empty executable. 17904 cat >conftest.$ac_ext <<_ACEOF 17905/* confdefs.h. */ 17906_ACEOF 17907cat confdefs.h >>conftest.$ac_ext 17908cat >>conftest.$ac_ext <<_ACEOF 17909/* end confdefs.h. */ 17910 17911int 17912main () 17913{ 17914 17915 ; 17916 return 0; 17917} 17918_ACEOF 17919rm -f conftest.$ac_objext conftest$ac_exeext 17920if { (ac_try="$ac_link" 17921case "(($ac_try" in 17922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17923 *) ac_try_echo=$ac_try;; 17924esac 17925eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17926$as_echo "$ac_try_echo") >&5 17927 (eval "$ac_link") 2>conftest.er1 17928 ac_status=$? 17929 grep -v '^ *+' conftest.er1 >conftest.err 17930 rm -f conftest.er1 17931 cat conftest.err >&5 17932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17933 (exit $ac_status); } && { 17934 test -z "$ac_c_werror_flag" || 17935 test ! -s conftest.err 17936 } && test -s conftest$ac_exeext && { 17937 test "$cross_compiling" = yes || 17938 $as_test_x conftest$ac_exeext 17939 }; then 17940 17941lt_aix_libpath_sed=' 17942 /Import File Strings/,/^$/ { 17943 /^0/ { 17944 s/^0 *\(.*\)$/\1/ 17945 p 17946 } 17947 }' 17948aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17949# Check for a 64-bit object if we didn't find anything. 17950if test -z "$aix_libpath"; then 17951 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17952fi 17953else 17954 $as_echo "$as_me: failed program was:" >&5 17955sed 's/^/| /' conftest.$ac_ext >&5 17956 17957 17958fi 17959 17960rm -rf conftest.dSYM 17961rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17962 conftest$ac_exeext conftest.$ac_ext 17963if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17964 17965 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17966 # Warning - without using the other run time loading flags, 17967 # -berok will link without error, but may produce a broken library. 17968 no_undefined_flag_GCJ=' ${wl}-bernotok' 17969 allow_undefined_flag_GCJ=' ${wl}-berok' 17970 # Exported symbols can be pulled into shared objects from archives 17971 whole_archive_flag_spec_GCJ='$convenience' 17972 archive_cmds_need_lc_GCJ=yes 17973 # This is similar to how AIX traditionally builds its shared libraries. 17974 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' 17975 fi 17976 fi 17977 ;; 17978 17979 amigaos*) 17980 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)' 17981 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17982 hardcode_minus_L_GCJ=yes 17983 # see comment about different semantics on the GNU ld section 17984 ld_shlibs_GCJ=no 17985 ;; 17986 17987 bsdi[45]*) 17988 export_dynamic_flag_spec_GCJ=-rdynamic 17989 ;; 17990 17991 cygwin* | mingw* | pw32*) 17992 # When not using gcc, we currently assume that we are using 17993 # Microsoft Visual C++. 17994 # hardcode_libdir_flag_spec is actually meaningless, as there is 17995 # no search path for DLLs. 17996 hardcode_libdir_flag_spec_GCJ=' ' 17997 allow_undefined_flag_GCJ=unsupported 17998 # Tell ltmain to make .lib files, not .a files. 17999 libext=lib 18000 # Tell ltmain to make .dll files, not .so files. 18001 shrext_cmds=".dll" 18002 # FIXME: Setting linknames here is a bad hack. 18003 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 18004 # The linker will automatically build a .lib file if we build a DLL. 18005 old_archive_From_new_cmds_GCJ='true' 18006 # FIXME: Should let the user specify the lib program. 18007 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' 18008 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 18009 enable_shared_with_static_runtimes_GCJ=yes 18010 ;; 18011 18012 darwin* | rhapsody*) 18013 case $host_os in 18014 rhapsody* | darwin1.[012]) 18015 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 18016 ;; 18017 *) # Darwin 1.3 on 18018 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 18019 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 18020 else 18021 case ${MACOSX_DEPLOYMENT_TARGET} in 18022 10.[012]) 18023 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 18024 ;; 18025 10.*) 18026 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 18027 ;; 18028 esac 18029 fi 18030 ;; 18031 esac 18032 archive_cmds_need_lc_GCJ=no 18033 hardcode_direct_GCJ=no 18034 hardcode_automatic_GCJ=yes 18035 hardcode_shlibpath_var_GCJ=unsupported 18036 whole_archive_flag_spec_GCJ='' 18037 link_all_deplibs_GCJ=yes 18038 if test "$GCC" = yes ; then 18039 output_verbose_link_cmd='echo' 18040 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}" 18041 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 18042 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}" 18043 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}" 18044 else 18045 case $cc_basename in 18046 xlc*) 18047 output_verbose_link_cmd='echo' 18048 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 18049 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 18050 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 18051 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}' 18052 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}' 18053 ;; 18054 *) 18055 ld_shlibs_GCJ=no 18056 ;; 18057 esac 18058 fi 18059 ;; 18060 18061 dgux*) 18062 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18063 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18064 hardcode_shlibpath_var_GCJ=no 18065 ;; 18066 18067 freebsd1*) 18068 ld_shlibs_GCJ=no 18069 ;; 18070 18071 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 18072 # support. Future versions do this automatically, but an explicit c++rt0.o 18073 # does not break anything, and helps significantly (at the cost of a little 18074 # extra space). 18075 freebsd2.2*) 18076 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 18077 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18078 hardcode_direct_GCJ=yes 18079 hardcode_shlibpath_var_GCJ=no 18080 ;; 18081 18082 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 18083 freebsd2*) 18084 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18085 hardcode_direct_GCJ=yes 18086 hardcode_minus_L_GCJ=yes 18087 hardcode_shlibpath_var_GCJ=no 18088 ;; 18089 18090 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 18091 freebsd* | dragonfly*) 18092 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 18093 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18094 hardcode_direct_GCJ=yes 18095 hardcode_shlibpath_var_GCJ=no 18096 ;; 18097 18098 hpux9*) 18099 if test "$GCC" = yes; then 18100 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' 18101 else 18102 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' 18103 fi 18104 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18105 hardcode_libdir_separator_GCJ=: 18106 hardcode_direct_GCJ=yes 18107 18108 # hardcode_minus_L: Not really in the search PATH, 18109 # but as the default location of the library. 18110 hardcode_minus_L_GCJ=yes 18111 export_dynamic_flag_spec_GCJ='${wl}-E' 18112 ;; 18113 18114 hpux10*) 18115 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18116 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18117 else 18118 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 18119 fi 18120 if test "$with_gnu_ld" = no; then 18121 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18122 hardcode_libdir_separator_GCJ=: 18123 18124 hardcode_direct_GCJ=yes 18125 export_dynamic_flag_spec_GCJ='${wl}-E' 18126 18127 # hardcode_minus_L: Not really in the search PATH, 18128 # but as the default location of the library. 18129 hardcode_minus_L_GCJ=yes 18130 fi 18131 ;; 18132 18133 hpux11*) 18134 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18135 case $host_cpu in 18136 hppa*64*) 18137 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18138 ;; 18139 ia64*) 18140 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18141 ;; 18142 *) 18143 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18144 ;; 18145 esac 18146 else 18147 case $host_cpu in 18148 hppa*64*) 18149 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18150 ;; 18151 ia64*) 18152 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18153 ;; 18154 *) 18155 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18156 ;; 18157 esac 18158 fi 18159 if test "$with_gnu_ld" = no; then 18160 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18161 hardcode_libdir_separator_GCJ=: 18162 18163 case $host_cpu in 18164 hppa*64*|ia64*) 18165 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 18166 hardcode_direct_GCJ=no 18167 hardcode_shlibpath_var_GCJ=no 18168 ;; 18169 *) 18170 hardcode_direct_GCJ=yes 18171 export_dynamic_flag_spec_GCJ='${wl}-E' 18172 18173 # hardcode_minus_L: Not really in the search PATH, 18174 # but as the default location of the library. 18175 hardcode_minus_L_GCJ=yes 18176 ;; 18177 esac 18178 fi 18179 ;; 18180 18181 irix5* | irix6* | nonstopux*) 18182 if test "$GCC" = yes; then 18183 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' 18184 else 18185 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' 18186 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 18187 fi 18188 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18189 hardcode_libdir_separator_GCJ=: 18190 link_all_deplibs_GCJ=yes 18191 ;; 18192 18193 netbsd*) 18194 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18195 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 18196 else 18197 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 18198 fi 18199 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18200 hardcode_direct_GCJ=yes 18201 hardcode_shlibpath_var_GCJ=no 18202 ;; 18203 18204 newsos6) 18205 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18206 hardcode_direct_GCJ=yes 18207 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18208 hardcode_libdir_separator_GCJ=: 18209 hardcode_shlibpath_var_GCJ=no 18210 ;; 18211 18212 openbsd*) 18213 if test -f /usr/libexec/ld.so; then 18214 hardcode_direct_GCJ=yes 18215 hardcode_shlibpath_var_GCJ=no 18216 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18217 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18218 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 18219 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18220 export_dynamic_flag_spec_GCJ='${wl}-E' 18221 else 18222 case $host_os in 18223 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 18224 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18225 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18226 ;; 18227 *) 18228 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18229 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18230 ;; 18231 esac 18232 fi 18233 else 18234 ld_shlibs_GCJ=no 18235 fi 18236 ;; 18237 18238 os2*) 18239 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18240 hardcode_minus_L_GCJ=yes 18241 allow_undefined_flag_GCJ=unsupported 18242 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' 18243 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 18244 ;; 18245 18246 osf3*) 18247 if test "$GCC" = yes; then 18248 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18249 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' 18250 else 18251 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18252 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' 18253 fi 18254 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18255 hardcode_libdir_separator_GCJ=: 18256 ;; 18257 18258 osf4* | osf5*) # as osf3* with the addition of -msym flag 18259 if test "$GCC" = yes; then 18260 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18261 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' 18262 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18263 else 18264 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18265 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' 18266 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~ 18267 $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' 18268 18269 # Both c and cxx compiler support -rpath directly 18270 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 18271 fi 18272 hardcode_libdir_separator_GCJ=: 18273 ;; 18274 18275 solaris*) 18276 no_undefined_flag_GCJ=' -z text' 18277 if test "$GCC" = yes; then 18278 wlarc='${wl}' 18279 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18280 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18281 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 18282 else 18283 wlarc='' 18284 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 18285 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18286 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 18287 fi 18288 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18289 hardcode_shlibpath_var_GCJ=no 18290 case $host_os in 18291 solaris2.[0-5] | solaris2.[0-5].*) ;; 18292 *) 18293 # The compiler driver will combine and reorder linker options, 18294 # but understands `-z linker_flag'. GCC discards it without `$wl', 18295 # but is careful enough not to reorder. 18296 # Supported since Solaris 2.6 (maybe 2.5.1?) 18297 if test "$GCC" = yes; then 18298 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 18299 else 18300 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' 18301 fi 18302 ;; 18303 esac 18304 link_all_deplibs_GCJ=yes 18305 ;; 18306 18307 sunos4*) 18308 if test "x$host_vendor" = xsequent; then 18309 # Use $CC to link under sequent, because it throws in some extra .o 18310 # files that make .init and .fini sections work. 18311 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 18312 else 18313 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 18314 fi 18315 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18316 hardcode_direct_GCJ=yes 18317 hardcode_minus_L_GCJ=yes 18318 hardcode_shlibpath_var_GCJ=no 18319 ;; 18320 18321 sysv4) 18322 case $host_vendor in 18323 sni) 18324 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18325 hardcode_direct_GCJ=yes # is this really true??? 18326 ;; 18327 siemens) 18328 ## LD is ld it makes a PLAMLIB 18329 ## CC just makes a GrossModule. 18330 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18331 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 18332 hardcode_direct_GCJ=no 18333 ;; 18334 motorola) 18335 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18336 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 18337 ;; 18338 esac 18339 runpath_var='LD_RUN_PATH' 18340 hardcode_shlibpath_var_GCJ=no 18341 ;; 18342 18343 sysv4.3*) 18344 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18345 hardcode_shlibpath_var_GCJ=no 18346 export_dynamic_flag_spec_GCJ='-Bexport' 18347 ;; 18348 18349 sysv4*MP*) 18350 if test -d /usr/nec; then 18351 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18352 hardcode_shlibpath_var_GCJ=no 18353 runpath_var=LD_RUN_PATH 18354 hardcode_runpath_var=yes 18355 ld_shlibs_GCJ=yes 18356 fi 18357 ;; 18358 18359 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 18360 no_undefined_flag_GCJ='${wl}-z,text' 18361 archive_cmds_need_lc_GCJ=no 18362 hardcode_shlibpath_var_GCJ=no 18363 runpath_var='LD_RUN_PATH' 18364 18365 if test "$GCC" = yes; then 18366 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18367 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18368 else 18369 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18370 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18371 fi 18372 ;; 18373 18374 sysv5* | sco3.2v5* | sco5v6*) 18375 # Note: We can NOT use -z defs as we might desire, because we do not 18376 # link with -lc, and that would cause any symbols used from libc to 18377 # always be unresolved, which means just about no library would 18378 # ever link correctly. If we're not using GNU ld we use -z text 18379 # though, which does catch some bad symbols but isn't as heavy-handed 18380 # as -z defs. 18381 no_undefined_flag_GCJ='${wl}-z,text' 18382 allow_undefined_flag_GCJ='${wl}-z,nodefs' 18383 archive_cmds_need_lc_GCJ=no 18384 hardcode_shlibpath_var_GCJ=no 18385 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 18386 hardcode_libdir_separator_GCJ=':' 18387 link_all_deplibs_GCJ=yes 18388 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 18389 runpath_var='LD_RUN_PATH' 18390 18391 if test "$GCC" = yes; then 18392 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18393 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18394 else 18395 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18396 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18397 fi 18398 ;; 18399 18400 uts4*) 18401 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18402 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18403 hardcode_shlibpath_var_GCJ=no 18404 ;; 18405 18406 *) 18407 ld_shlibs_GCJ=no 18408 ;; 18409 esac 18410 fi 18411 18412{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 18413$as_echo "$ld_shlibs_GCJ" >&6; } 18414test "$ld_shlibs_GCJ" = no && can_build_shared=no 18415 18416# 18417# Do we need to explicitly link libc? 18418# 18419case "x$archive_cmds_need_lc_GCJ" in 18420x|xyes) 18421 # Assume -lc should be added 18422 archive_cmds_need_lc_GCJ=yes 18423 18424 if test "$enable_shared" = yes && test "$GCC" = yes; then 18425 case $archive_cmds_GCJ in 18426 *'~'*) 18427 # FIXME: we may have to deal with multi-command sequences. 18428 ;; 18429 '$CC '*) 18430 # Test whether the compiler implicitly links with -lc since on some 18431 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18432 # to ld, don't add -lc before -lgcc. 18433 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 18434$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 18435 $rm conftest* 18436 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18437 18438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18439 (eval $ac_compile) 2>&5 18440 ac_status=$? 18441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18442 (exit $ac_status); } 2>conftest.err; then 18443 soname=conftest 18444 lib=conftest 18445 libobjs=conftest.$ac_objext 18446 deplibs= 18447 wl=$lt_prog_compiler_wl_GCJ 18448 pic_flag=$lt_prog_compiler_pic_GCJ 18449 compiler_flags=-v 18450 linker_flags=-v 18451 verstring= 18452 output_objdir=. 18453 libname=conftest 18454 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 18455 allow_undefined_flag_GCJ= 18456 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 18457 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18458 ac_status=$? 18459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18460 (exit $ac_status); } 18461 then 18462 archive_cmds_need_lc_GCJ=no 18463 else 18464 archive_cmds_need_lc_GCJ=yes 18465 fi 18466 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 18467 else 18468 cat conftest.err 1>&5 18469 fi 18470 $rm conftest* 18471 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 18472$as_echo "$archive_cmds_need_lc_GCJ" >&6; } 18473 ;; 18474 esac 18475 fi 18476 ;; 18477esac 18478 18479{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 18480$as_echo_n "checking dynamic linker characteristics... " >&6; } 18481library_names_spec= 18482libname_spec='lib$name' 18483soname_spec= 18484shrext_cmds=".so" 18485postinstall_cmds= 18486postuninstall_cmds= 18487finish_cmds= 18488finish_eval= 18489shlibpath_var= 18490shlibpath_overrides_runpath=unknown 18491version_type=none 18492dynamic_linker="$host_os ld.so" 18493sys_lib_dlsearch_path_spec="/lib /usr/lib" 18494 18495need_lib_prefix=unknown 18496hardcode_into_libs=no 18497 18498# when you set need_version to no, make sure it does not cause -set_version 18499# flags to be left without arguments 18500need_version=unknown 18501 18502case $host_os in 18503aix3*) 18504 version_type=linux 18505 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18506 shlibpath_var=LIBPATH 18507 18508 # AIX 3 has no versioning support, so we append a major version to the name. 18509 soname_spec='${libname}${release}${shared_ext}$major' 18510 ;; 18511 18512aix[4-9]*) 18513 version_type=linux 18514 need_lib_prefix=no 18515 need_version=no 18516 hardcode_into_libs=yes 18517 if test "$host_cpu" = ia64; then 18518 # AIX 5 supports IA64 18519 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18520 shlibpath_var=LD_LIBRARY_PATH 18521 else 18522 # With GCC up to 2.95.x, collect2 would create an import file 18523 # for dependence libraries. The import file would start with 18524 # the line `#! .'. This would cause the generated library to 18525 # depend on `.', always an invalid library. This was fixed in 18526 # development snapshots of GCC prior to 3.0. 18527 case $host_os in 18528 aix4 | aix4.[01] | aix4.[01].*) 18529 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18530 echo ' yes ' 18531 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 18532 : 18533 else 18534 can_build_shared=no 18535 fi 18536 ;; 18537 esac 18538 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18539 # soname into executable. Probably we can add versioning support to 18540 # collect2, so additional links can be useful in future. 18541 if test "$aix_use_runtimelinking" = yes; then 18542 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18543 # instead of lib<name>.a to let people know that these are not 18544 # typical AIX shared libraries. 18545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18546 else 18547 # We preserve .a as extension for shared libraries through AIX4.2 18548 # and later when we are not doing run time linking. 18549 library_names_spec='${libname}${release}.a $libname.a' 18550 soname_spec='${libname}${release}${shared_ext}$major' 18551 fi 18552 shlibpath_var=LIBPATH 18553 fi 18554 ;; 18555 18556amigaos*) 18557 library_names_spec='$libname.ixlibrary $libname.a' 18558 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18559 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' 18560 ;; 18561 18562beos*) 18563 library_names_spec='${libname}${shared_ext}' 18564 dynamic_linker="$host_os ld.so" 18565 shlibpath_var=LIBRARY_PATH 18566 ;; 18567 18568bsdi[45]*) 18569 version_type=linux 18570 need_version=no 18571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18572 soname_spec='${libname}${release}${shared_ext}$major' 18573 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18574 shlibpath_var=LD_LIBRARY_PATH 18575 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18576 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18577 # the default ld.so.conf also contains /usr/contrib/lib and 18578 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18579 # libtool to hard-code these into programs 18580 ;; 18581 18582cygwin* | mingw* | pw32*) 18583 version_type=windows 18584 shrext_cmds=".dll" 18585 need_version=no 18586 need_lib_prefix=no 18587 18588 case $GCC,$host_os in 18589 yes,cygwin* | yes,mingw* | yes,pw32*) 18590 library_names_spec='$libname.dll.a' 18591 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18592 postinstall_cmds='base_file=`basename \${file}`~ 18593 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18594 dldir=$destdir/`dirname \$dlpath`~ 18595 test -d \$dldir || mkdir -p \$dldir~ 18596 $install_prog $dir/$dlname \$dldir/$dlname~ 18597 chmod a+x \$dldir/$dlname' 18598 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18599 dlpath=$dir/\$dldll~ 18600 $rm \$dlpath' 18601 shlibpath_overrides_runpath=yes 18602 18603 case $host_os in 18604 cygwin*) 18605 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18606 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18607 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 18608 ;; 18609 mingw*) 18610 # MinGW DLLs use traditional 'lib' prefix 18611 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18612 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18613 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18614 # It is most probably a Windows format PATH printed by 18615 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18616 # path with ; separators, and with drive letters. We can handle the 18617 # drive letters (cygwin fileutils understands them), so leave them, 18618 # especially as we might pass files found there to a mingw objdump, 18619 # which wouldn't understand a cygwinified path. Ahh. 18620 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18621 else 18622 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18623 fi 18624 ;; 18625 pw32*) 18626 # pw32 DLLs use 'pw' prefix rather than 'lib' 18627 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18628 ;; 18629 esac 18630 ;; 18631 18632 *) 18633 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18634 ;; 18635 esac 18636 dynamic_linker='Win32 ld.exe' 18637 # FIXME: first we should search . and the directory the executable is in 18638 shlibpath_var=PATH 18639 ;; 18640 18641darwin* | rhapsody*) 18642 dynamic_linker="$host_os dyld" 18643 version_type=darwin 18644 need_lib_prefix=no 18645 need_version=no 18646 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18647 soname_spec='${libname}${release}${major}$shared_ext' 18648 shlibpath_overrides_runpath=yes 18649 shlibpath_var=DYLD_LIBRARY_PATH 18650 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18651 18652 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18653 ;; 18654 18655dgux*) 18656 version_type=linux 18657 need_lib_prefix=no 18658 need_version=no 18659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18660 soname_spec='${libname}${release}${shared_ext}$major' 18661 shlibpath_var=LD_LIBRARY_PATH 18662 ;; 18663 18664freebsd1*) 18665 dynamic_linker=no 18666 ;; 18667 18668freebsd* | dragonfly*) 18669 # DragonFly does not have aout. When/if they implement a new 18670 # versioning mechanism, adjust this. 18671 if test -x /usr/bin/objformat; then 18672 objformat=`/usr/bin/objformat` 18673 else 18674 case $host_os in 18675 freebsd[123]*) objformat=aout ;; 18676 *) objformat=elf ;; 18677 esac 18678 fi 18679 version_type=freebsd-$objformat 18680 case $version_type in 18681 freebsd-elf*) 18682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18683 need_version=no 18684 need_lib_prefix=no 18685 ;; 18686 freebsd-*) 18687 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18688 need_version=yes 18689 ;; 18690 esac 18691 shlibpath_var=LD_LIBRARY_PATH 18692 case $host_os in 18693 freebsd2*) 18694 shlibpath_overrides_runpath=yes 18695 ;; 18696 freebsd3.[01]* | freebsdelf3.[01]*) 18697 shlibpath_overrides_runpath=yes 18698 hardcode_into_libs=yes 18699 ;; 18700 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18701 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18702 shlibpath_overrides_runpath=no 18703 hardcode_into_libs=yes 18704 ;; 18705 *) # from 4.6 on, and DragonFly 18706 shlibpath_overrides_runpath=yes 18707 hardcode_into_libs=yes 18708 ;; 18709 esac 18710 ;; 18711 18712gnu*) 18713 version_type=linux 18714 need_lib_prefix=no 18715 need_version=no 18716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18717 soname_spec='${libname}${release}${shared_ext}$major' 18718 shlibpath_var=LD_LIBRARY_PATH 18719 hardcode_into_libs=yes 18720 ;; 18721 18722hpux9* | hpux10* | hpux11*) 18723 # Give a soname corresponding to the major version so that dld.sl refuses to 18724 # link against other versions. 18725 version_type=sunos 18726 need_lib_prefix=no 18727 need_version=no 18728 case $host_cpu in 18729 ia64*) 18730 shrext_cmds='.so' 18731 hardcode_into_libs=yes 18732 dynamic_linker="$host_os dld.so" 18733 shlibpath_var=LD_LIBRARY_PATH 18734 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18736 soname_spec='${libname}${release}${shared_ext}$major' 18737 if test "X$HPUX_IA64_MODE" = X32; then 18738 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18739 else 18740 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18741 fi 18742 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18743 ;; 18744 hppa*64*) 18745 shrext_cmds='.sl' 18746 hardcode_into_libs=yes 18747 dynamic_linker="$host_os dld.sl" 18748 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18749 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18751 soname_spec='${libname}${release}${shared_ext}$major' 18752 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18753 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18754 ;; 18755 *) 18756 shrext_cmds='.sl' 18757 dynamic_linker="$host_os dld.sl" 18758 shlibpath_var=SHLIB_PATH 18759 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18761 soname_spec='${libname}${release}${shared_ext}$major' 18762 ;; 18763 esac 18764 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18765 postinstall_cmds='chmod 555 $lib' 18766 ;; 18767 18768interix[3-9]*) 18769 version_type=linux 18770 need_lib_prefix=no 18771 need_version=no 18772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18773 soname_spec='${libname}${release}${shared_ext}$major' 18774 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18775 shlibpath_var=LD_LIBRARY_PATH 18776 shlibpath_overrides_runpath=no 18777 hardcode_into_libs=yes 18778 ;; 18779 18780irix5* | irix6* | nonstopux*) 18781 case $host_os in 18782 nonstopux*) version_type=nonstopux ;; 18783 *) 18784 if test "$lt_cv_prog_gnu_ld" = yes; then 18785 version_type=linux 18786 else 18787 version_type=irix 18788 fi ;; 18789 esac 18790 need_lib_prefix=no 18791 need_version=no 18792 soname_spec='${libname}${release}${shared_ext}$major' 18793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18794 case $host_os in 18795 irix5* | nonstopux*) 18796 libsuff= shlibsuff= 18797 ;; 18798 *) 18799 case $LD in # libtool.m4 will add one of these switches to LD 18800 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18801 libsuff= shlibsuff= libmagic=32-bit;; 18802 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18803 libsuff=32 shlibsuff=N32 libmagic=N32;; 18804 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18805 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18806 *) libsuff= shlibsuff= libmagic=never-match;; 18807 esac 18808 ;; 18809 esac 18810 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18811 shlibpath_overrides_runpath=no 18812 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18813 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18814 hardcode_into_libs=yes 18815 ;; 18816 18817# No shared lib support for Linux oldld, aout, or coff. 18818linux*oldld* | linux*aout* | linux*coff*) 18819 dynamic_linker=no 18820 ;; 18821 18822# This must be Linux ELF. 18823linux* | k*bsd*-gnu) 18824 version_type=linux 18825 need_lib_prefix=no 18826 need_version=no 18827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18828 soname_spec='${libname}${release}${shared_ext}$major' 18829 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18830 shlibpath_var=LD_LIBRARY_PATH 18831 shlibpath_overrides_runpath=no 18832 # This implies no fast_install, which is unacceptable. 18833 # Some rework will be needed to allow for fast_install 18834 # before this can be enabled. 18835 hardcode_into_libs=yes 18836 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18837 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18838 18839 # Append ld.so.conf contents to the search path 18840 if test -f /etc/ld.so.conf; then 18841 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' ' '` 18842 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 18843 fi 18844 18845 # We used to test for /lib/ld.so.1 and disable shared libraries on 18846 # powerpc, because MkLinux only supported shared libraries with the 18847 # GNU dynamic linker. Since this was broken with cross compilers, 18848 # most powerpc-linux boxes support dynamic linking these days and 18849 # people can always --disable-shared, the test was removed, and we 18850 # assume the GNU/Linux dynamic linker is in use. 18851 dynamic_linker='GNU/Linux ld.so' 18852 ;; 18853 18854netbsd*) 18855 version_type=sunos 18856 need_lib_prefix=no 18857 need_version=no 18858 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18860 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18861 dynamic_linker='NetBSD (a.out) ld.so' 18862 else 18863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18864 soname_spec='${libname}${release}${shared_ext}$major' 18865 dynamic_linker='NetBSD ld.elf_so' 18866 fi 18867 shlibpath_var=LD_LIBRARY_PATH 18868 shlibpath_overrides_runpath=yes 18869 hardcode_into_libs=yes 18870 ;; 18871 18872newsos6) 18873 version_type=linux 18874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18875 shlibpath_var=LD_LIBRARY_PATH 18876 shlibpath_overrides_runpath=yes 18877 ;; 18878 18879nto-qnx*) 18880 version_type=linux 18881 need_lib_prefix=no 18882 need_version=no 18883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18884 soname_spec='${libname}${release}${shared_ext}$major' 18885 shlibpath_var=LD_LIBRARY_PATH 18886 shlibpath_overrides_runpath=yes 18887 ;; 18888 18889openbsd*) 18890 version_type=sunos 18891 sys_lib_dlsearch_path_spec="/usr/lib" 18892 need_lib_prefix=no 18893 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18894 case $host_os in 18895 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18896 *) need_version=no ;; 18897 esac 18898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18899 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18900 shlibpath_var=LD_LIBRARY_PATH 18901 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18902 case $host_os in 18903 openbsd2.[89] | openbsd2.[89].*) 18904 shlibpath_overrides_runpath=no 18905 ;; 18906 *) 18907 shlibpath_overrides_runpath=yes 18908 ;; 18909 esac 18910 else 18911 shlibpath_overrides_runpath=yes 18912 fi 18913 ;; 18914 18915os2*) 18916 libname_spec='$name' 18917 shrext_cmds=".dll" 18918 need_lib_prefix=no 18919 library_names_spec='$libname${shared_ext} $libname.a' 18920 dynamic_linker='OS/2 ld.exe' 18921 shlibpath_var=LIBPATH 18922 ;; 18923 18924osf3* | osf4* | osf5*) 18925 version_type=osf 18926 need_lib_prefix=no 18927 need_version=no 18928 soname_spec='${libname}${release}${shared_ext}$major' 18929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18930 shlibpath_var=LD_LIBRARY_PATH 18931 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18932 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18933 ;; 18934 18935rdos*) 18936 dynamic_linker=no 18937 ;; 18938 18939solaris*) 18940 version_type=linux 18941 need_lib_prefix=no 18942 need_version=no 18943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18944 soname_spec='${libname}${release}${shared_ext}$major' 18945 shlibpath_var=LD_LIBRARY_PATH 18946 shlibpath_overrides_runpath=yes 18947 hardcode_into_libs=yes 18948 # ldd complains unless libraries are executable 18949 postinstall_cmds='chmod +x $lib' 18950 ;; 18951 18952sunos4*) 18953 version_type=sunos 18954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18955 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18956 shlibpath_var=LD_LIBRARY_PATH 18957 shlibpath_overrides_runpath=yes 18958 if test "$with_gnu_ld" = yes; then 18959 need_lib_prefix=no 18960 fi 18961 need_version=yes 18962 ;; 18963 18964sysv4 | sysv4.3*) 18965 version_type=linux 18966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18967 soname_spec='${libname}${release}${shared_ext}$major' 18968 shlibpath_var=LD_LIBRARY_PATH 18969 case $host_vendor in 18970 sni) 18971 shlibpath_overrides_runpath=no 18972 need_lib_prefix=no 18973 export_dynamic_flag_spec='${wl}-Blargedynsym' 18974 runpath_var=LD_RUN_PATH 18975 ;; 18976 siemens) 18977 need_lib_prefix=no 18978 ;; 18979 motorola) 18980 need_lib_prefix=no 18981 need_version=no 18982 shlibpath_overrides_runpath=no 18983 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18984 ;; 18985 esac 18986 ;; 18987 18988sysv4*MP*) 18989 if test -d /usr/nec ;then 18990 version_type=linux 18991 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18992 soname_spec='$libname${shared_ext}.$major' 18993 shlibpath_var=LD_LIBRARY_PATH 18994 fi 18995 ;; 18996 18997sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18998 version_type=freebsd-elf 18999 need_lib_prefix=no 19000 need_version=no 19001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 19002 soname_spec='${libname}${release}${shared_ext}$major' 19003 shlibpath_var=LD_LIBRARY_PATH 19004 hardcode_into_libs=yes 19005 if test "$with_gnu_ld" = yes; then 19006 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 19007 shlibpath_overrides_runpath=no 19008 else 19009 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 19010 shlibpath_overrides_runpath=yes 19011 case $host_os in 19012 sco3.2v5*) 19013 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 19014 ;; 19015 esac 19016 fi 19017 sys_lib_dlsearch_path_spec='/usr/lib' 19018 ;; 19019 19020uts4*) 19021 version_type=linux 19022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19023 soname_spec='${libname}${release}${shared_ext}$major' 19024 shlibpath_var=LD_LIBRARY_PATH 19025 ;; 19026 19027*) 19028 dynamic_linker=no 19029 ;; 19030esac 19031{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 19032$as_echo "$dynamic_linker" >&6; } 19033test "$dynamic_linker" = no && can_build_shared=no 19034 19035if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 19036 $as_echo_n "(cached) " >&6 19037else 19038 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 19039fi 19040 19041sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 19042if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 19043 $as_echo_n "(cached) " >&6 19044else 19045 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 19046fi 19047 19048sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 19049 19050variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 19051if test "$GCC" = yes; then 19052 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 19053fi 19054 19055{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 19056$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 19057hardcode_action_GCJ= 19058if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 19059 test -n "$runpath_var_GCJ" || \ 19060 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 19061 19062 # We can hardcode non-existant directories. 19063 if test "$hardcode_direct_GCJ" != no && 19064 # If the only mechanism to avoid hardcoding is shlibpath_var, we 19065 # have to relink, otherwise we might link with an installed library 19066 # when we should be linking with a yet-to-be-installed one 19067 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 19068 test "$hardcode_minus_L_GCJ" != no; then 19069 # Linking always hardcodes the temporary library directory. 19070 hardcode_action_GCJ=relink 19071 else 19072 # We can link without hardcoding, and we can hardcode nonexisting dirs. 19073 hardcode_action_GCJ=immediate 19074 fi 19075else 19076 # We cannot hardcode anything, or else we can only hardcode existing 19077 # directories. 19078 hardcode_action_GCJ=unsupported 19079fi 19080{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 19081$as_echo "$hardcode_action_GCJ" >&6; } 19082 19083if test "$hardcode_action_GCJ" = relink; then 19084 # Fast installation is not supported 19085 enable_fast_install=no 19086elif test "$shlibpath_overrides_runpath" = yes || 19087 test "$enable_shared" = no; then 19088 # Fast installation is not necessary 19089 enable_fast_install=needless 19090fi 19091 19092 19093# The else clause should only fire when bootstrapping the 19094# libtool distribution, otherwise you forgot to ship ltmain.sh 19095# with your package, and you will get complaints that there are 19096# no rules to generate ltmain.sh. 19097if test -f "$ltmain"; then 19098 # See if we are running on zsh, and set the options which allow our commands through 19099 # without removal of \ escapes. 19100 if test -n "${ZSH_VERSION+set}" ; then 19101 setopt NO_GLOB_SUBST 19102 fi 19103 # Now quote all the things that may contain metacharacters while being 19104 # careful not to overquote the AC_SUBSTed values. We take copies of the 19105 # variables and quote the copies for generation of the libtool script. 19106 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19107 SED SHELL STRIP \ 19108 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19109 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19110 deplibs_check_method reload_flag reload_cmds need_locks \ 19111 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19112 lt_cv_sys_global_symbol_to_c_name_address \ 19113 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19114 old_postinstall_cmds old_postuninstall_cmds \ 19115 compiler_GCJ \ 19116 CC_GCJ \ 19117 LD_GCJ \ 19118 lt_prog_compiler_wl_GCJ \ 19119 lt_prog_compiler_pic_GCJ \ 19120 lt_prog_compiler_static_GCJ \ 19121 lt_prog_compiler_no_builtin_flag_GCJ \ 19122 export_dynamic_flag_spec_GCJ \ 19123 thread_safe_flag_spec_GCJ \ 19124 whole_archive_flag_spec_GCJ \ 19125 enable_shared_with_static_runtimes_GCJ \ 19126 old_archive_cmds_GCJ \ 19127 old_archive_from_new_cmds_GCJ \ 19128 predep_objects_GCJ \ 19129 postdep_objects_GCJ \ 19130 predeps_GCJ \ 19131 postdeps_GCJ \ 19132 compiler_lib_search_path_GCJ \ 19133 compiler_lib_search_dirs_GCJ \ 19134 archive_cmds_GCJ \ 19135 archive_expsym_cmds_GCJ \ 19136 postinstall_cmds_GCJ \ 19137 postuninstall_cmds_GCJ \ 19138 old_archive_from_expsyms_cmds_GCJ \ 19139 allow_undefined_flag_GCJ \ 19140 no_undefined_flag_GCJ \ 19141 export_symbols_cmds_GCJ \ 19142 hardcode_libdir_flag_spec_GCJ \ 19143 hardcode_libdir_flag_spec_ld_GCJ \ 19144 hardcode_libdir_separator_GCJ \ 19145 hardcode_automatic_GCJ \ 19146 module_cmds_GCJ \ 19147 module_expsym_cmds_GCJ \ 19148 lt_cv_prog_compiler_c_o_GCJ \ 19149 fix_srcfile_path_GCJ \ 19150 exclude_expsyms_GCJ \ 19151 include_expsyms_GCJ; do 19152 19153 case $var in 19154 old_archive_cmds_GCJ | \ 19155 old_archive_from_new_cmds_GCJ | \ 19156 archive_cmds_GCJ | \ 19157 archive_expsym_cmds_GCJ | \ 19158 module_cmds_GCJ | \ 19159 module_expsym_cmds_GCJ | \ 19160 old_archive_from_expsyms_cmds_GCJ | \ 19161 export_symbols_cmds_GCJ | \ 19162 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19163 postinstall_cmds | postuninstall_cmds | \ 19164 old_postinstall_cmds | old_postuninstall_cmds | \ 19165 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19166 # Double-quote double-evaled strings. 19167 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19168 ;; 19169 *) 19170 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19171 ;; 19172 esac 19173 done 19174 19175 case $lt_echo in 19176 *'\$0 --fallback-echo"') 19177 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19178 ;; 19179 esac 19180 19181cfgfile="$ofile" 19182 19183 cat <<__EOF__ >> "$cfgfile" 19184# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19185 19186# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19187 19188# Shell to use when invoking shell scripts. 19189SHELL=$lt_SHELL 19190 19191# Whether or not to build shared libraries. 19192build_libtool_libs=$enable_shared 19193 19194# Whether or not to build static libraries. 19195build_old_libs=$enable_static 19196 19197# Whether or not to add -lc for building shared libraries. 19198build_libtool_need_lc=$archive_cmds_need_lc_GCJ 19199 19200# Whether or not to disallow shared libs when runtime libs are static 19201allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 19202 19203# Whether or not to optimize for fast installation. 19204fast_install=$enable_fast_install 19205 19206# The host system. 19207host_alias=$host_alias 19208host=$host 19209host_os=$host_os 19210 19211# The build system. 19212build_alias=$build_alias 19213build=$build 19214build_os=$build_os 19215 19216# An echo program that does not interpret backslashes. 19217echo=$lt_echo 19218 19219# The archiver. 19220AR=$lt_AR 19221AR_FLAGS=$lt_AR_FLAGS 19222 19223# A C compiler. 19224LTCC=$lt_LTCC 19225 19226# LTCC compiler flags. 19227LTCFLAGS=$lt_LTCFLAGS 19228 19229# A language-specific compiler. 19230CC=$lt_compiler_GCJ 19231 19232# Is the compiler the GNU C compiler? 19233with_gcc=$GCC_GCJ 19234 19235# An ERE matcher. 19236EGREP=$lt_EGREP 19237 19238# The linker used to build libraries. 19239LD=$lt_LD_GCJ 19240 19241# Whether we need hard or soft links. 19242LN_S=$lt_LN_S 19243 19244# A BSD-compatible nm program. 19245NM=$lt_NM 19246 19247# A symbol stripping program 19248STRIP=$lt_STRIP 19249 19250# Used to examine libraries when file_magic_cmd begins "file" 19251MAGIC_CMD=$MAGIC_CMD 19252 19253# Used on cygwin: DLL creation program. 19254DLLTOOL="$DLLTOOL" 19255 19256# Used on cygwin: object dumper. 19257OBJDUMP="$OBJDUMP" 19258 19259# Used on cygwin: assembler. 19260AS="$AS" 19261 19262# The name of the directory that contains temporary libtool files. 19263objdir=$objdir 19264 19265# How to create reloadable object files. 19266reload_flag=$lt_reload_flag 19267reload_cmds=$lt_reload_cmds 19268 19269# How to pass a linker flag through the compiler. 19270wl=$lt_lt_prog_compiler_wl_GCJ 19271 19272# Object file suffix (normally "o"). 19273objext="$ac_objext" 19274 19275# Old archive suffix (normally "a"). 19276libext="$libext" 19277 19278# Shared library suffix (normally ".so"). 19279shrext_cmds='$shrext_cmds' 19280 19281# Executable file suffix (normally ""). 19282exeext="$exeext" 19283 19284# Additional compiler flags for building library objects. 19285pic_flag=$lt_lt_prog_compiler_pic_GCJ 19286pic_mode=$pic_mode 19287 19288# What is the maximum length of a command? 19289max_cmd_len=$lt_cv_sys_max_cmd_len 19290 19291# Does compiler simultaneously support -c and -o options? 19292compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 19293 19294# Must we lock files when doing compilation? 19295need_locks=$lt_need_locks 19296 19297# Do we need the lib prefix for modules? 19298need_lib_prefix=$need_lib_prefix 19299 19300# Do we need a version for libraries? 19301need_version=$need_version 19302 19303# Whether dlopen is supported. 19304dlopen_support=$enable_dlopen 19305 19306# Whether dlopen of programs is supported. 19307dlopen_self=$enable_dlopen_self 19308 19309# Whether dlopen of statically linked programs is supported. 19310dlopen_self_static=$enable_dlopen_self_static 19311 19312# Compiler flag to prevent dynamic linking. 19313link_static_flag=$lt_lt_prog_compiler_static_GCJ 19314 19315# Compiler flag to turn off builtin functions. 19316no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19317 19318# Compiler flag to allow reflexive dlopens. 19319export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19320 19321# Compiler flag to generate shared objects directly from archives. 19322whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19323 19324# Compiler flag to generate thread-safe objects. 19325thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19326 19327# Library versioning type. 19328version_type=$version_type 19329 19330# Format of library name prefix. 19331libname_spec=$lt_libname_spec 19332 19333# List of archive names. First name is the real one, the rest are links. 19334# The last name is the one that the linker finds with -lNAME. 19335library_names_spec=$lt_library_names_spec 19336 19337# The coded name of the library, if different from the real name. 19338soname_spec=$lt_soname_spec 19339 19340# Commands used to build and install an old-style archive. 19341RANLIB=$lt_RANLIB 19342old_archive_cmds=$lt_old_archive_cmds_GCJ 19343old_postinstall_cmds=$lt_old_postinstall_cmds 19344old_postuninstall_cmds=$lt_old_postuninstall_cmds 19345 19346# Create an old-style archive from a shared archive. 19347old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19348 19349# Create a temporary old-style archive to link instead of a shared archive. 19350old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19351 19352# Commands used to build and install a shared archive. 19353archive_cmds=$lt_archive_cmds_GCJ 19354archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19355postinstall_cmds=$lt_postinstall_cmds 19356postuninstall_cmds=$lt_postuninstall_cmds 19357 19358# Commands used to build a loadable module (assumed same as above if empty) 19359module_cmds=$lt_module_cmds_GCJ 19360module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19361 19362# Commands to strip libraries. 19363old_striplib=$lt_old_striplib 19364striplib=$lt_striplib 19365 19366# Dependencies to place before the objects being linked to create a 19367# shared library. 19368predep_objects=$lt_predep_objects_GCJ 19369 19370# Dependencies to place after the objects being linked to create a 19371# shared library. 19372postdep_objects=$lt_postdep_objects_GCJ 19373 19374# Dependencies to place before the objects being linked to create a 19375# shared library. 19376predeps=$lt_predeps_GCJ 19377 19378# Dependencies to place after the objects being linked to create a 19379# shared library. 19380postdeps=$lt_postdeps_GCJ 19381 19382# The directories searched by this compiler when creating a shared 19383# library 19384compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ 19385 19386# The library search path used internally by the compiler when linking 19387# a shared library. 19388compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19389 19390# Method to check whether dependent libraries are shared objects. 19391deplibs_check_method=$lt_deplibs_check_method 19392 19393# Command to use when deplibs_check_method == file_magic. 19394file_magic_cmd=$lt_file_magic_cmd 19395 19396# Flag that allows shared libraries with undefined symbols to be built. 19397allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19398 19399# Flag that forces no undefined symbols. 19400no_undefined_flag=$lt_no_undefined_flag_GCJ 19401 19402# Commands used to finish a libtool library installation in a directory. 19403finish_cmds=$lt_finish_cmds 19404 19405# Same as above, but a single script fragment to be evaled but not shown. 19406finish_eval=$lt_finish_eval 19407 19408# Take the output of nm and produce a listing of raw symbols and C names. 19409global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19410 19411# Transform the output of nm in a proper C declaration 19412global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19413 19414# Transform the output of nm in a C name address pair 19415global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19416 19417# This is the shared library runtime path variable. 19418runpath_var=$runpath_var 19419 19420# This is the shared library path variable. 19421shlibpath_var=$shlibpath_var 19422 19423# Is shlibpath searched before the hard-coded library search path? 19424shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19425 19426# How to hardcode a shared library path into an executable. 19427hardcode_action=$hardcode_action_GCJ 19428 19429# Whether we should hardcode library paths into libraries. 19430hardcode_into_libs=$hardcode_into_libs 19431 19432# Flag to hardcode \$libdir into a binary during linking. 19433# This must work even if \$libdir does not exist. 19434hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19435 19436# If ld is used when linking, flag to hardcode \$libdir into 19437# a binary during linking. This must work even if \$libdir does 19438# not exist. 19439hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19440 19441# Whether we need a single -rpath flag with a separated argument. 19442hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19443 19444# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19445# resulting binary. 19446hardcode_direct=$hardcode_direct_GCJ 19447 19448# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19449# resulting binary. 19450hardcode_minus_L=$hardcode_minus_L_GCJ 19451 19452# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19453# the resulting binary. 19454hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19455 19456# Set to yes if building a shared library automatically hardcodes DIR into the library 19457# and all subsequent libraries and executables linked against it. 19458hardcode_automatic=$hardcode_automatic_GCJ 19459 19460# Variables whose values should be saved in libtool wrapper scripts and 19461# restored at relink time. 19462variables_saved_for_relink="$variables_saved_for_relink" 19463 19464# Whether libtool must link a program against all its dependency libraries. 19465link_all_deplibs=$link_all_deplibs_GCJ 19466 19467# Compile-time system search path for libraries 19468sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19469 19470# Run-time system search path for libraries 19471sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19472 19473# Fix the shell variable \$srcfile for the compiler. 19474fix_srcfile_path=$lt_fix_srcfile_path 19475 19476# Set to yes if exported symbols are required. 19477always_export_symbols=$always_export_symbols_GCJ 19478 19479# The commands to list exported symbols. 19480export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19481 19482# The commands to extract the exported symbol list from a shared archive. 19483extract_expsyms_cmds=$lt_extract_expsyms_cmds 19484 19485# Symbols that should not be listed in the preloaded symbols. 19486exclude_expsyms=$lt_exclude_expsyms_GCJ 19487 19488# Symbols that must always be exported. 19489include_expsyms=$lt_include_expsyms_GCJ 19490 19491# ### END LIBTOOL TAG CONFIG: $tagname 19492 19493__EOF__ 19494 19495 19496else 19497 # If there is no Makefile yet, we rely on a make rule to execute 19498 # `config.status --recheck' to rerun these tests and create the 19499 # libtool script then. 19500 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19501 if test -f "$ltmain_in"; then 19502 test -f Makefile && make "$ltmain" 19503 fi 19504fi 19505 19506 19507ac_ext=c 19508ac_cpp='$CPP $CPPFLAGS' 19509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19511ac_compiler_gnu=$ac_cv_c_compiler_gnu 19512 19513CC="$lt_save_CC" 19514 19515 else 19516 tagname="" 19517 fi 19518 ;; 19519 19520 RC) 19521 19522 19523# Source file extension for RC test sources. 19524ac_ext=rc 19525 19526# Object file extension for compiled RC test sources. 19527objext=o 19528objext_RC=$objext 19529 19530# Code to be used in simple compile tests 19531lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 19532 19533# Code to be used in simple link tests 19534lt_simple_link_test_code="$lt_simple_compile_test_code" 19535 19536# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19537 19538# If no C compiler was specified, use CC. 19539LTCC=${LTCC-"$CC"} 19540 19541# If no C compiler flags were specified, use CFLAGS. 19542LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19543 19544# Allow CC to be a program name with arguments. 19545compiler=$CC 19546 19547 19548# save warnings/boilerplate of simple test code 19549ac_outfile=conftest.$ac_objext 19550echo "$lt_simple_compile_test_code" >conftest.$ac_ext 19551eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19552_lt_compiler_boilerplate=`cat conftest.err` 19553$rm conftest* 19554 19555ac_outfile=conftest.$ac_objext 19556echo "$lt_simple_link_test_code" >conftest.$ac_ext 19557eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19558_lt_linker_boilerplate=`cat conftest.err` 19559$rm -r conftest* 19560 19561 19562# Allow CC to be a program name with arguments. 19563lt_save_CC="$CC" 19564CC=${RC-"windres"} 19565compiler=$CC 19566compiler_RC=$CC 19567for cc_temp in $compiler""; do 19568 case $cc_temp in 19569 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19570 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19571 \-*) ;; 19572 *) break;; 19573 esac 19574done 19575cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19576 19577lt_cv_prog_compiler_c_o_RC=yes 19578 19579# The else clause should only fire when bootstrapping the 19580# libtool distribution, otherwise you forgot to ship ltmain.sh 19581# with your package, and you will get complaints that there are 19582# no rules to generate ltmain.sh. 19583if test -f "$ltmain"; then 19584 # See if we are running on zsh, and set the options which allow our commands through 19585 # without removal of \ escapes. 19586 if test -n "${ZSH_VERSION+set}" ; then 19587 setopt NO_GLOB_SUBST 19588 fi 19589 # Now quote all the things that may contain metacharacters while being 19590 # careful not to overquote the AC_SUBSTed values. We take copies of the 19591 # variables and quote the copies for generation of the libtool script. 19592 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19593 SED SHELL STRIP \ 19594 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19595 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19596 deplibs_check_method reload_flag reload_cmds need_locks \ 19597 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19598 lt_cv_sys_global_symbol_to_c_name_address \ 19599 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19600 old_postinstall_cmds old_postuninstall_cmds \ 19601 compiler_RC \ 19602 CC_RC \ 19603 LD_RC \ 19604 lt_prog_compiler_wl_RC \ 19605 lt_prog_compiler_pic_RC \ 19606 lt_prog_compiler_static_RC \ 19607 lt_prog_compiler_no_builtin_flag_RC \ 19608 export_dynamic_flag_spec_RC \ 19609 thread_safe_flag_spec_RC \ 19610 whole_archive_flag_spec_RC \ 19611 enable_shared_with_static_runtimes_RC \ 19612 old_archive_cmds_RC \ 19613 old_archive_from_new_cmds_RC \ 19614 predep_objects_RC \ 19615 postdep_objects_RC \ 19616 predeps_RC \ 19617 postdeps_RC \ 19618 compiler_lib_search_path_RC \ 19619 compiler_lib_search_dirs_RC \ 19620 archive_cmds_RC \ 19621 archive_expsym_cmds_RC \ 19622 postinstall_cmds_RC \ 19623 postuninstall_cmds_RC \ 19624 old_archive_from_expsyms_cmds_RC \ 19625 allow_undefined_flag_RC \ 19626 no_undefined_flag_RC \ 19627 export_symbols_cmds_RC \ 19628 hardcode_libdir_flag_spec_RC \ 19629 hardcode_libdir_flag_spec_ld_RC \ 19630 hardcode_libdir_separator_RC \ 19631 hardcode_automatic_RC \ 19632 module_cmds_RC \ 19633 module_expsym_cmds_RC \ 19634 lt_cv_prog_compiler_c_o_RC \ 19635 fix_srcfile_path_RC \ 19636 exclude_expsyms_RC \ 19637 include_expsyms_RC; do 19638 19639 case $var in 19640 old_archive_cmds_RC | \ 19641 old_archive_from_new_cmds_RC | \ 19642 archive_cmds_RC | \ 19643 archive_expsym_cmds_RC | \ 19644 module_cmds_RC | \ 19645 module_expsym_cmds_RC | \ 19646 old_archive_from_expsyms_cmds_RC | \ 19647 export_symbols_cmds_RC | \ 19648 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19649 postinstall_cmds | postuninstall_cmds | \ 19650 old_postinstall_cmds | old_postuninstall_cmds | \ 19651 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19652 # Double-quote double-evaled strings. 19653 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19654 ;; 19655 *) 19656 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19657 ;; 19658 esac 19659 done 19660 19661 case $lt_echo in 19662 *'\$0 --fallback-echo"') 19663 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19664 ;; 19665 esac 19666 19667cfgfile="$ofile" 19668 19669 cat <<__EOF__ >> "$cfgfile" 19670# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19671 19672# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19673 19674# Shell to use when invoking shell scripts. 19675SHELL=$lt_SHELL 19676 19677# Whether or not to build shared libraries. 19678build_libtool_libs=$enable_shared 19679 19680# Whether or not to build static libraries. 19681build_old_libs=$enable_static 19682 19683# Whether or not to add -lc for building shared libraries. 19684build_libtool_need_lc=$archive_cmds_need_lc_RC 19685 19686# Whether or not to disallow shared libs when runtime libs are static 19687allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19688 19689# Whether or not to optimize for fast installation. 19690fast_install=$enable_fast_install 19691 19692# The host system. 19693host_alias=$host_alias 19694host=$host 19695host_os=$host_os 19696 19697# The build system. 19698build_alias=$build_alias 19699build=$build 19700build_os=$build_os 19701 19702# An echo program that does not interpret backslashes. 19703echo=$lt_echo 19704 19705# The archiver. 19706AR=$lt_AR 19707AR_FLAGS=$lt_AR_FLAGS 19708 19709# A C compiler. 19710LTCC=$lt_LTCC 19711 19712# LTCC compiler flags. 19713LTCFLAGS=$lt_LTCFLAGS 19714 19715# A language-specific compiler. 19716CC=$lt_compiler_RC 19717 19718# Is the compiler the GNU C compiler? 19719with_gcc=$GCC_RC 19720 19721# An ERE matcher. 19722EGREP=$lt_EGREP 19723 19724# The linker used to build libraries. 19725LD=$lt_LD_RC 19726 19727# Whether we need hard or soft links. 19728LN_S=$lt_LN_S 19729 19730# A BSD-compatible nm program. 19731NM=$lt_NM 19732 19733# A symbol stripping program 19734STRIP=$lt_STRIP 19735 19736# Used to examine libraries when file_magic_cmd begins "file" 19737MAGIC_CMD=$MAGIC_CMD 19738 19739# Used on cygwin: DLL creation program. 19740DLLTOOL="$DLLTOOL" 19741 19742# Used on cygwin: object dumper. 19743OBJDUMP="$OBJDUMP" 19744 19745# Used on cygwin: assembler. 19746AS="$AS" 19747 19748# The name of the directory that contains temporary libtool files. 19749objdir=$objdir 19750 19751# How to create reloadable object files. 19752reload_flag=$lt_reload_flag 19753reload_cmds=$lt_reload_cmds 19754 19755# How to pass a linker flag through the compiler. 19756wl=$lt_lt_prog_compiler_wl_RC 19757 19758# Object file suffix (normally "o"). 19759objext="$ac_objext" 19760 19761# Old archive suffix (normally "a"). 19762libext="$libext" 19763 19764# Shared library suffix (normally ".so"). 19765shrext_cmds='$shrext_cmds' 19766 19767# Executable file suffix (normally ""). 19768exeext="$exeext" 19769 19770# Additional compiler flags for building library objects. 19771pic_flag=$lt_lt_prog_compiler_pic_RC 19772pic_mode=$pic_mode 19773 19774# What is the maximum length of a command? 19775max_cmd_len=$lt_cv_sys_max_cmd_len 19776 19777# Does compiler simultaneously support -c and -o options? 19778compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19779 19780# Must we lock files when doing compilation? 19781need_locks=$lt_need_locks 19782 19783# Do we need the lib prefix for modules? 19784need_lib_prefix=$need_lib_prefix 19785 19786# Do we need a version for libraries? 19787need_version=$need_version 19788 19789# Whether dlopen is supported. 19790dlopen_support=$enable_dlopen 19791 19792# Whether dlopen of programs is supported. 19793dlopen_self=$enable_dlopen_self 19794 19795# Whether dlopen of statically linked programs is supported. 19796dlopen_self_static=$enable_dlopen_self_static 19797 19798# Compiler flag to prevent dynamic linking. 19799link_static_flag=$lt_lt_prog_compiler_static_RC 19800 19801# Compiler flag to turn off builtin functions. 19802no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19803 19804# Compiler flag to allow reflexive dlopens. 19805export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19806 19807# Compiler flag to generate shared objects directly from archives. 19808whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19809 19810# Compiler flag to generate thread-safe objects. 19811thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19812 19813# Library versioning type. 19814version_type=$version_type 19815 19816# Format of library name prefix. 19817libname_spec=$lt_libname_spec 19818 19819# List of archive names. First name is the real one, the rest are links. 19820# The last name is the one that the linker finds with -lNAME. 19821library_names_spec=$lt_library_names_spec 19822 19823# The coded name of the library, if different from the real name. 19824soname_spec=$lt_soname_spec 19825 19826# Commands used to build and install an old-style archive. 19827RANLIB=$lt_RANLIB 19828old_archive_cmds=$lt_old_archive_cmds_RC 19829old_postinstall_cmds=$lt_old_postinstall_cmds 19830old_postuninstall_cmds=$lt_old_postuninstall_cmds 19831 19832# Create an old-style archive from a shared archive. 19833old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19834 19835# Create a temporary old-style archive to link instead of a shared archive. 19836old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19837 19838# Commands used to build and install a shared archive. 19839archive_cmds=$lt_archive_cmds_RC 19840archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19841postinstall_cmds=$lt_postinstall_cmds 19842postuninstall_cmds=$lt_postuninstall_cmds 19843 19844# Commands used to build a loadable module (assumed same as above if empty) 19845module_cmds=$lt_module_cmds_RC 19846module_expsym_cmds=$lt_module_expsym_cmds_RC 19847 19848# Commands to strip libraries. 19849old_striplib=$lt_old_striplib 19850striplib=$lt_striplib 19851 19852# Dependencies to place before the objects being linked to create a 19853# shared library. 19854predep_objects=$lt_predep_objects_RC 19855 19856# Dependencies to place after the objects being linked to create a 19857# shared library. 19858postdep_objects=$lt_postdep_objects_RC 19859 19860# Dependencies to place before the objects being linked to create a 19861# shared library. 19862predeps=$lt_predeps_RC 19863 19864# Dependencies to place after the objects being linked to create a 19865# shared library. 19866postdeps=$lt_postdeps_RC 19867 19868# The directories searched by this compiler when creating a shared 19869# library 19870compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC 19871 19872# The library search path used internally by the compiler when linking 19873# a shared library. 19874compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19875 19876# Method to check whether dependent libraries are shared objects. 19877deplibs_check_method=$lt_deplibs_check_method 19878 19879# Command to use when deplibs_check_method == file_magic. 19880file_magic_cmd=$lt_file_magic_cmd 19881 19882# Flag that allows shared libraries with undefined symbols to be built. 19883allow_undefined_flag=$lt_allow_undefined_flag_RC 19884 19885# Flag that forces no undefined symbols. 19886no_undefined_flag=$lt_no_undefined_flag_RC 19887 19888# Commands used to finish a libtool library installation in a directory. 19889finish_cmds=$lt_finish_cmds 19890 19891# Same as above, but a single script fragment to be evaled but not shown. 19892finish_eval=$lt_finish_eval 19893 19894# Take the output of nm and produce a listing of raw symbols and C names. 19895global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19896 19897# Transform the output of nm in a proper C declaration 19898global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19899 19900# Transform the output of nm in a C name address pair 19901global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19902 19903# This is the shared library runtime path variable. 19904runpath_var=$runpath_var 19905 19906# This is the shared library path variable. 19907shlibpath_var=$shlibpath_var 19908 19909# Is shlibpath searched before the hard-coded library search path? 19910shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19911 19912# How to hardcode a shared library path into an executable. 19913hardcode_action=$hardcode_action_RC 19914 19915# Whether we should hardcode library paths into libraries. 19916hardcode_into_libs=$hardcode_into_libs 19917 19918# Flag to hardcode \$libdir into a binary during linking. 19919# This must work even if \$libdir does not exist. 19920hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19921 19922# If ld is used when linking, flag to hardcode \$libdir into 19923# a binary during linking. This must work even if \$libdir does 19924# not exist. 19925hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19926 19927# Whether we need a single -rpath flag with a separated argument. 19928hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19929 19930# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19931# resulting binary. 19932hardcode_direct=$hardcode_direct_RC 19933 19934# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19935# resulting binary. 19936hardcode_minus_L=$hardcode_minus_L_RC 19937 19938# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19939# the resulting binary. 19940hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19941 19942# Set to yes if building a shared library automatically hardcodes DIR into the library 19943# and all subsequent libraries and executables linked against it. 19944hardcode_automatic=$hardcode_automatic_RC 19945 19946# Variables whose values should be saved in libtool wrapper scripts and 19947# restored at relink time. 19948variables_saved_for_relink="$variables_saved_for_relink" 19949 19950# Whether libtool must link a program against all its dependency libraries. 19951link_all_deplibs=$link_all_deplibs_RC 19952 19953# Compile-time system search path for libraries 19954sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19955 19956# Run-time system search path for libraries 19957sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19958 19959# Fix the shell variable \$srcfile for the compiler. 19960fix_srcfile_path=$lt_fix_srcfile_path 19961 19962# Set to yes if exported symbols are required. 19963always_export_symbols=$always_export_symbols_RC 19964 19965# The commands to list exported symbols. 19966export_symbols_cmds=$lt_export_symbols_cmds_RC 19967 19968# The commands to extract the exported symbol list from a shared archive. 19969extract_expsyms_cmds=$lt_extract_expsyms_cmds 19970 19971# Symbols that should not be listed in the preloaded symbols. 19972exclude_expsyms=$lt_exclude_expsyms_RC 19973 19974# Symbols that must always be exported. 19975include_expsyms=$lt_include_expsyms_RC 19976 19977# ### END LIBTOOL TAG CONFIG: $tagname 19978 19979__EOF__ 19980 19981 19982else 19983 # If there is no Makefile yet, we rely on a make rule to execute 19984 # `config.status --recheck' to rerun these tests and create the 19985 # libtool script then. 19986 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19987 if test -f "$ltmain_in"; then 19988 test -f Makefile && make "$ltmain" 19989 fi 19990fi 19991 19992 19993ac_ext=c 19994ac_cpp='$CPP $CPPFLAGS' 19995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19997ac_compiler_gnu=$ac_cv_c_compiler_gnu 19998 19999CC="$lt_save_CC" 20000 20001 ;; 20002 20003 *) 20004 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 20005$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 20006 { (exit 1); exit 1; }; } 20007 ;; 20008 esac 20009 20010 # Append the new tag name to the list of available tags. 20011 if test -n "$tagname" ; then 20012 available_tags="$available_tags $tagname" 20013 fi 20014 fi 20015 done 20016 IFS="$lt_save_ifs" 20017 20018 # Now substitute the updated list of available tags. 20019 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 20020 mv "${ofile}T" "$ofile" 20021 chmod +x "$ofile" 20022 else 20023 rm -f "${ofile}T" 20024 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 20025$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 20026 { (exit 1); exit 1; }; } 20027 fi 20028fi 20029 20030 20031 20032# This can be used to rebuild libtool when needed 20033LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 20034 20035# Always use our own libtool. 20036LIBTOOL='$(SHELL) $(top_builddir)/libtool' 20037 20038# Prevent multiple expansion 20039 20040 20041 20042 20043 20044 20045 20046 20047 20048 20049 20050 20051 20052 20053 20054 20055 20056 20057 20058 20059ac_ext=c 20060ac_cpp='$CPP $CPPFLAGS' 20061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20063ac_compiler_gnu=$ac_cv_c_compiler_gnu 20064if test -n "$ac_tool_prefix"; then 20065 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 20066set dummy ${ac_tool_prefix}gcc; ac_word=$2 20067{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20068$as_echo_n "checking for $ac_word... " >&6; } 20069if test "${ac_cv_prog_CC+set}" = set; then 20070 $as_echo_n "(cached) " >&6 20071else 20072 if test -n "$CC"; then 20073 ac_cv_prog_CC="$CC" # Let the user override the test. 20074else 20075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20076for as_dir in $PATH 20077do 20078 IFS=$as_save_IFS 20079 test -z "$as_dir" && as_dir=. 20080 for ac_exec_ext in '' $ac_executable_extensions; do 20081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20082 ac_cv_prog_CC="${ac_tool_prefix}gcc" 20083 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20084 break 2 20085 fi 20086done 20087done 20088IFS=$as_save_IFS 20089 20090fi 20091fi 20092CC=$ac_cv_prog_CC 20093if test -n "$CC"; then 20094 { $as_echo "$as_me:$LINENO: result: $CC" >&5 20095$as_echo "$CC" >&6; } 20096else 20097 { $as_echo "$as_me:$LINENO: result: no" >&5 20098$as_echo "no" >&6; } 20099fi 20100 20101 20102fi 20103if test -z "$ac_cv_prog_CC"; then 20104 ac_ct_CC=$CC 20105 # Extract the first word of "gcc", so it can be a program name with args. 20106set dummy gcc; ac_word=$2 20107{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20108$as_echo_n "checking for $ac_word... " >&6; } 20109if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 20110 $as_echo_n "(cached) " >&6 20111else 20112 if test -n "$ac_ct_CC"; then 20113 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 20114else 20115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20116for as_dir in $PATH 20117do 20118 IFS=$as_save_IFS 20119 test -z "$as_dir" && as_dir=. 20120 for ac_exec_ext in '' $ac_executable_extensions; do 20121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20122 ac_cv_prog_ac_ct_CC="gcc" 20123 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20124 break 2 20125 fi 20126done 20127done 20128IFS=$as_save_IFS 20129 20130fi 20131fi 20132ac_ct_CC=$ac_cv_prog_ac_ct_CC 20133if test -n "$ac_ct_CC"; then 20134 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 20135$as_echo "$ac_ct_CC" >&6; } 20136else 20137 { $as_echo "$as_me:$LINENO: result: no" >&5 20138$as_echo "no" >&6; } 20139fi 20140 20141 if test "x$ac_ct_CC" = x; then 20142 CC="" 20143 else 20144 case $cross_compiling:$ac_tool_warned in 20145yes:) 20146{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 20147$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 20148ac_tool_warned=yes ;; 20149esac 20150 CC=$ac_ct_CC 20151 fi 20152else 20153 CC="$ac_cv_prog_CC" 20154fi 20155 20156if test -z "$CC"; then 20157 if test -n "$ac_tool_prefix"; then 20158 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 20159set dummy ${ac_tool_prefix}cc; ac_word=$2 20160{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20161$as_echo_n "checking for $ac_word... " >&6; } 20162if test "${ac_cv_prog_CC+set}" = set; then 20163 $as_echo_n "(cached) " >&6 20164else 20165 if test -n "$CC"; then 20166 ac_cv_prog_CC="$CC" # Let the user override the test. 20167else 20168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20169for as_dir in $PATH 20170do 20171 IFS=$as_save_IFS 20172 test -z "$as_dir" && as_dir=. 20173 for ac_exec_ext in '' $ac_executable_extensions; do 20174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20175 ac_cv_prog_CC="${ac_tool_prefix}cc" 20176 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20177 break 2 20178 fi 20179done 20180done 20181IFS=$as_save_IFS 20182 20183fi 20184fi 20185CC=$ac_cv_prog_CC 20186if test -n "$CC"; then 20187 { $as_echo "$as_me:$LINENO: result: $CC" >&5 20188$as_echo "$CC" >&6; } 20189else 20190 { $as_echo "$as_me:$LINENO: result: no" >&5 20191$as_echo "no" >&6; } 20192fi 20193 20194 20195 fi 20196fi 20197if test -z "$CC"; then 20198 # Extract the first word of "cc", so it can be a program name with args. 20199set dummy cc; ac_word=$2 20200{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20201$as_echo_n "checking for $ac_word... " >&6; } 20202if test "${ac_cv_prog_CC+set}" = set; then 20203 $as_echo_n "(cached) " >&6 20204else 20205 if test -n "$CC"; then 20206 ac_cv_prog_CC="$CC" # Let the user override the test. 20207else 20208 ac_prog_rejected=no 20209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20210for as_dir in $PATH 20211do 20212 IFS=$as_save_IFS 20213 test -z "$as_dir" && as_dir=. 20214 for ac_exec_ext in '' $ac_executable_extensions; do 20215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20216 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 20217 ac_prog_rejected=yes 20218 continue 20219 fi 20220 ac_cv_prog_CC="cc" 20221 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20222 break 2 20223 fi 20224done 20225done 20226IFS=$as_save_IFS 20227 20228if test $ac_prog_rejected = yes; then 20229 # We found a bogon in the path, so make sure we never use it. 20230 set dummy $ac_cv_prog_CC 20231 shift 20232 if test $# != 0; then 20233 # We chose a different compiler from the bogus one. 20234 # However, it has the same basename, so the bogon will be chosen 20235 # first if we set CC to just the basename; use the full file name. 20236 shift 20237 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 20238 fi 20239fi 20240fi 20241fi 20242CC=$ac_cv_prog_CC 20243if test -n "$CC"; then 20244 { $as_echo "$as_me:$LINENO: result: $CC" >&5 20245$as_echo "$CC" >&6; } 20246else 20247 { $as_echo "$as_me:$LINENO: result: no" >&5 20248$as_echo "no" >&6; } 20249fi 20250 20251 20252fi 20253if test -z "$CC"; then 20254 if test -n "$ac_tool_prefix"; then 20255 for ac_prog in cl.exe 20256 do 20257 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 20258set dummy $ac_tool_prefix$ac_prog; ac_word=$2 20259{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20260$as_echo_n "checking for $ac_word... " >&6; } 20261if test "${ac_cv_prog_CC+set}" = set; then 20262 $as_echo_n "(cached) " >&6 20263else 20264 if test -n "$CC"; then 20265 ac_cv_prog_CC="$CC" # Let the user override the test. 20266else 20267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20268for as_dir in $PATH 20269do 20270 IFS=$as_save_IFS 20271 test -z "$as_dir" && as_dir=. 20272 for ac_exec_ext in '' $ac_executable_extensions; do 20273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20274 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 20275 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20276 break 2 20277 fi 20278done 20279done 20280IFS=$as_save_IFS 20281 20282fi 20283fi 20284CC=$ac_cv_prog_CC 20285if test -n "$CC"; then 20286 { $as_echo "$as_me:$LINENO: result: $CC" >&5 20287$as_echo "$CC" >&6; } 20288else 20289 { $as_echo "$as_me:$LINENO: result: no" >&5 20290$as_echo "no" >&6; } 20291fi 20292 20293 20294 test -n "$CC" && break 20295 done 20296fi 20297if test -z "$CC"; then 20298 ac_ct_CC=$CC 20299 for ac_prog in cl.exe 20300do 20301 # Extract the first word of "$ac_prog", so it can be a program name with args. 20302set dummy $ac_prog; ac_word=$2 20303{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20304$as_echo_n "checking for $ac_word... " >&6; } 20305if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 20306 $as_echo_n "(cached) " >&6 20307else 20308 if test -n "$ac_ct_CC"; then 20309 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 20310else 20311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20312for as_dir in $PATH 20313do 20314 IFS=$as_save_IFS 20315 test -z "$as_dir" && as_dir=. 20316 for ac_exec_ext in '' $ac_executable_extensions; do 20317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20318 ac_cv_prog_ac_ct_CC="$ac_prog" 20319 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20320 break 2 20321 fi 20322done 20323done 20324IFS=$as_save_IFS 20325 20326fi 20327fi 20328ac_ct_CC=$ac_cv_prog_ac_ct_CC 20329if test -n "$ac_ct_CC"; then 20330 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 20331$as_echo "$ac_ct_CC" >&6; } 20332else 20333 { $as_echo "$as_me:$LINENO: result: no" >&5 20334$as_echo "no" >&6; } 20335fi 20336 20337 20338 test -n "$ac_ct_CC" && break 20339done 20340 20341 if test "x$ac_ct_CC" = x; then 20342 CC="" 20343 else 20344 case $cross_compiling:$ac_tool_warned in 20345yes:) 20346{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 20347$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 20348ac_tool_warned=yes ;; 20349esac 20350 CC=$ac_ct_CC 20351 fi 20352fi 20353 20354fi 20355 20356 20357test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 20358$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20359{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 20360See \`config.log' for more details." >&5 20361$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 20362See \`config.log' for more details." >&2;} 20363 { (exit 1); exit 1; }; }; } 20364 20365# Provide some information about the compiler. 20366$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 20367set X $ac_compile 20368ac_compiler=$2 20369{ (ac_try="$ac_compiler --version >&5" 20370case "(($ac_try" in 20371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20372 *) ac_try_echo=$ac_try;; 20373esac 20374eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20375$as_echo "$ac_try_echo") >&5 20376 (eval "$ac_compiler --version >&5") 2>&5 20377 ac_status=$? 20378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20379 (exit $ac_status); } 20380{ (ac_try="$ac_compiler -v >&5" 20381case "(($ac_try" in 20382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20383 *) ac_try_echo=$ac_try;; 20384esac 20385eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20386$as_echo "$ac_try_echo") >&5 20387 (eval "$ac_compiler -v >&5") 2>&5 20388 ac_status=$? 20389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20390 (exit $ac_status); } 20391{ (ac_try="$ac_compiler -V >&5" 20392case "(($ac_try" in 20393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20394 *) ac_try_echo=$ac_try;; 20395esac 20396eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20397$as_echo "$ac_try_echo") >&5 20398 (eval "$ac_compiler -V >&5") 2>&5 20399 ac_status=$? 20400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20401 (exit $ac_status); } 20402 20403{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 20404$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 20405if test "${ac_cv_c_compiler_gnu+set}" = set; then 20406 $as_echo_n "(cached) " >&6 20407else 20408 cat >conftest.$ac_ext <<_ACEOF 20409/* confdefs.h. */ 20410_ACEOF 20411cat confdefs.h >>conftest.$ac_ext 20412cat >>conftest.$ac_ext <<_ACEOF 20413/* end confdefs.h. */ 20414 20415int 20416main () 20417{ 20418#ifndef __GNUC__ 20419 choke me 20420#endif 20421 20422 ; 20423 return 0; 20424} 20425_ACEOF 20426rm -f conftest.$ac_objext 20427if { (ac_try="$ac_compile" 20428case "(($ac_try" in 20429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20430 *) ac_try_echo=$ac_try;; 20431esac 20432eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20433$as_echo "$ac_try_echo") >&5 20434 (eval "$ac_compile") 2>conftest.er1 20435 ac_status=$? 20436 grep -v '^ *+' conftest.er1 >conftest.err 20437 rm -f conftest.er1 20438 cat conftest.err >&5 20439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20440 (exit $ac_status); } && { 20441 test -z "$ac_c_werror_flag" || 20442 test ! -s conftest.err 20443 } && test -s conftest.$ac_objext; then 20444 ac_compiler_gnu=yes 20445else 20446 $as_echo "$as_me: failed program was:" >&5 20447sed 's/^/| /' conftest.$ac_ext >&5 20448 20449 ac_compiler_gnu=no 20450fi 20451 20452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20453ac_cv_c_compiler_gnu=$ac_compiler_gnu 20454 20455fi 20456{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 20457$as_echo "$ac_cv_c_compiler_gnu" >&6; } 20458if test $ac_compiler_gnu = yes; then 20459 GCC=yes 20460else 20461 GCC= 20462fi 20463ac_test_CFLAGS=${CFLAGS+set} 20464ac_save_CFLAGS=$CFLAGS 20465{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 20466$as_echo_n "checking whether $CC accepts -g... " >&6; } 20467if test "${ac_cv_prog_cc_g+set}" = set; then 20468 $as_echo_n "(cached) " >&6 20469else 20470 ac_save_c_werror_flag=$ac_c_werror_flag 20471 ac_c_werror_flag=yes 20472 ac_cv_prog_cc_g=no 20473 CFLAGS="-g" 20474 cat >conftest.$ac_ext <<_ACEOF 20475/* confdefs.h. */ 20476_ACEOF 20477cat confdefs.h >>conftest.$ac_ext 20478cat >>conftest.$ac_ext <<_ACEOF 20479/* end confdefs.h. */ 20480 20481int 20482main () 20483{ 20484 20485 ; 20486 return 0; 20487} 20488_ACEOF 20489rm -f conftest.$ac_objext 20490if { (ac_try="$ac_compile" 20491case "(($ac_try" in 20492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20493 *) ac_try_echo=$ac_try;; 20494esac 20495eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20496$as_echo "$ac_try_echo") >&5 20497 (eval "$ac_compile") 2>conftest.er1 20498 ac_status=$? 20499 grep -v '^ *+' conftest.er1 >conftest.err 20500 rm -f conftest.er1 20501 cat conftest.err >&5 20502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20503 (exit $ac_status); } && { 20504 test -z "$ac_c_werror_flag" || 20505 test ! -s conftest.err 20506 } && test -s conftest.$ac_objext; then 20507 ac_cv_prog_cc_g=yes 20508else 20509 $as_echo "$as_me: failed program was:" >&5 20510sed 's/^/| /' conftest.$ac_ext >&5 20511 20512 CFLAGS="" 20513 cat >conftest.$ac_ext <<_ACEOF 20514/* confdefs.h. */ 20515_ACEOF 20516cat confdefs.h >>conftest.$ac_ext 20517cat >>conftest.$ac_ext <<_ACEOF 20518/* end confdefs.h. */ 20519 20520int 20521main () 20522{ 20523 20524 ; 20525 return 0; 20526} 20527_ACEOF 20528rm -f conftest.$ac_objext 20529if { (ac_try="$ac_compile" 20530case "(($ac_try" in 20531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20532 *) ac_try_echo=$ac_try;; 20533esac 20534eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20535$as_echo "$ac_try_echo") >&5 20536 (eval "$ac_compile") 2>conftest.er1 20537 ac_status=$? 20538 grep -v '^ *+' conftest.er1 >conftest.err 20539 rm -f conftest.er1 20540 cat conftest.err >&5 20541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20542 (exit $ac_status); } && { 20543 test -z "$ac_c_werror_flag" || 20544 test ! -s conftest.err 20545 } && test -s conftest.$ac_objext; then 20546 : 20547else 20548 $as_echo "$as_me: failed program was:" >&5 20549sed 's/^/| /' conftest.$ac_ext >&5 20550 20551 ac_c_werror_flag=$ac_save_c_werror_flag 20552 CFLAGS="-g" 20553 cat >conftest.$ac_ext <<_ACEOF 20554/* confdefs.h. */ 20555_ACEOF 20556cat confdefs.h >>conftest.$ac_ext 20557cat >>conftest.$ac_ext <<_ACEOF 20558/* end confdefs.h. */ 20559 20560int 20561main () 20562{ 20563 20564 ; 20565 return 0; 20566} 20567_ACEOF 20568rm -f conftest.$ac_objext 20569if { (ac_try="$ac_compile" 20570case "(($ac_try" in 20571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20572 *) ac_try_echo=$ac_try;; 20573esac 20574eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20575$as_echo "$ac_try_echo") >&5 20576 (eval "$ac_compile") 2>conftest.er1 20577 ac_status=$? 20578 grep -v '^ *+' conftest.er1 >conftest.err 20579 rm -f conftest.er1 20580 cat conftest.err >&5 20581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20582 (exit $ac_status); } && { 20583 test -z "$ac_c_werror_flag" || 20584 test ! -s conftest.err 20585 } && test -s conftest.$ac_objext; then 20586 ac_cv_prog_cc_g=yes 20587else 20588 $as_echo "$as_me: failed program was:" >&5 20589sed 's/^/| /' conftest.$ac_ext >&5 20590 20591 20592fi 20593 20594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20595fi 20596 20597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20598fi 20599 20600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20601 ac_c_werror_flag=$ac_save_c_werror_flag 20602fi 20603{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 20604$as_echo "$ac_cv_prog_cc_g" >&6; } 20605if test "$ac_test_CFLAGS" = set; then 20606 CFLAGS=$ac_save_CFLAGS 20607elif test $ac_cv_prog_cc_g = yes; then 20608 if test "$GCC" = yes; then 20609 CFLAGS="-g -O2" 20610 else 20611 CFLAGS="-g" 20612 fi 20613else 20614 if test "$GCC" = yes; then 20615 CFLAGS="-O2" 20616 else 20617 CFLAGS= 20618 fi 20619fi 20620{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 20621$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 20622if test "${ac_cv_prog_cc_c89+set}" = set; then 20623 $as_echo_n "(cached) " >&6 20624else 20625 ac_cv_prog_cc_c89=no 20626ac_save_CC=$CC 20627cat >conftest.$ac_ext <<_ACEOF 20628/* confdefs.h. */ 20629_ACEOF 20630cat confdefs.h >>conftest.$ac_ext 20631cat >>conftest.$ac_ext <<_ACEOF 20632/* end confdefs.h. */ 20633#include <stdarg.h> 20634#include <stdio.h> 20635#include <sys/types.h> 20636#include <sys/stat.h> 20637/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 20638struct buf { int x; }; 20639FILE * (*rcsopen) (struct buf *, struct stat *, int); 20640static char *e (p, i) 20641 char **p; 20642 int i; 20643{ 20644 return p[i]; 20645} 20646static char *f (char * (*g) (char **, int), char **p, ...) 20647{ 20648 char *s; 20649 va_list v; 20650 va_start (v,p); 20651 s = g (p, va_arg (v,int)); 20652 va_end (v); 20653 return s; 20654} 20655 20656/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 20657 function prototypes and stuff, but not '\xHH' hex character constants. 20658 These don't provoke an error unfortunately, instead are silently treated 20659 as 'x'. The following induces an error, until -std is added to get 20660 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 20661 array size at least. It's necessary to write '\x00'==0 to get something 20662 that's true only with -std. */ 20663int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 20664 20665/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 20666 inside strings and character constants. */ 20667#define FOO(x) 'x' 20668int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 20669 20670int test (int i, double x); 20671struct s1 {int (*f) (int a);}; 20672struct s2 {int (*f) (double a);}; 20673int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 20674int argc; 20675char **argv; 20676int 20677main () 20678{ 20679return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 20680 ; 20681 return 0; 20682} 20683_ACEOF 20684for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 20685 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 20686do 20687 CC="$ac_save_CC $ac_arg" 20688 rm -f conftest.$ac_objext 20689if { (ac_try="$ac_compile" 20690case "(($ac_try" in 20691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20692 *) ac_try_echo=$ac_try;; 20693esac 20694eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20695$as_echo "$ac_try_echo") >&5 20696 (eval "$ac_compile") 2>conftest.er1 20697 ac_status=$? 20698 grep -v '^ *+' conftest.er1 >conftest.err 20699 rm -f conftest.er1 20700 cat conftest.err >&5 20701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20702 (exit $ac_status); } && { 20703 test -z "$ac_c_werror_flag" || 20704 test ! -s conftest.err 20705 } && test -s conftest.$ac_objext; then 20706 ac_cv_prog_cc_c89=$ac_arg 20707else 20708 $as_echo "$as_me: failed program was:" >&5 20709sed 's/^/| /' conftest.$ac_ext >&5 20710 20711 20712fi 20713 20714rm -f core conftest.err conftest.$ac_objext 20715 test "x$ac_cv_prog_cc_c89" != "xno" && break 20716done 20717rm -f conftest.$ac_ext 20718CC=$ac_save_CC 20719 20720fi 20721# AC_CACHE_VAL 20722case "x$ac_cv_prog_cc_c89" in 20723 x) 20724 { $as_echo "$as_me:$LINENO: result: none needed" >&5 20725$as_echo "none needed" >&6; } ;; 20726 xno) 20727 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 20728$as_echo "unsupported" >&6; } ;; 20729 *) 20730 CC="$CC $ac_cv_prog_cc_c89" 20731 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 20732$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 20733esac 20734 20735 20736ac_ext=c 20737ac_cpp='$CPP $CPPFLAGS' 20738ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20739ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20740ac_compiler_gnu=$ac_cv_c_compiler_gnu 20741 20742depcc="$CC" am_compiler_list= 20743 20744{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 20745$as_echo_n "checking dependency style of $depcc... " >&6; } 20746if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 20747 $as_echo_n "(cached) " >&6 20748else 20749 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 20750 # We make a subdir and do the tests there. Otherwise we can end up 20751 # making bogus files that we don't know about and never remove. For 20752 # instance it was reported that on HP-UX the gcc test will end up 20753 # making a dummy file named `D' -- because `-MD' means `put the output 20754 # in D'. 20755 mkdir conftest.dir 20756 # Copy depcomp to subdir because otherwise we won't find it if we're 20757 # using a relative directory. 20758 cp "$am_depcomp" conftest.dir 20759 cd conftest.dir 20760 # We will build objects and dependencies in a subdirectory because 20761 # it helps to detect inapplicable dependency modes. For instance 20762 # both Tru64's cc and ICC support -MD to output dependencies as a 20763 # side effect of compilation, but ICC will put the dependencies in 20764 # the current directory while Tru64 will put them in the object 20765 # directory. 20766 mkdir sub 20767 20768 am_cv_CC_dependencies_compiler_type=none 20769 if test "$am_compiler_list" = ""; then 20770 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 20771 fi 20772 am__universal=false 20773 case " $depcc " in #( 20774 *\ -arch\ *\ -arch\ *) am__universal=true ;; 20775 esac 20776 20777 for depmode in $am_compiler_list; do 20778 # Setup a source with many dependencies, because some compilers 20779 # like to wrap large dependency lists on column 80 (with \), and 20780 # we should not choose a depcomp mode which is confused by this. 20781 # 20782 # We need to recreate these files for each test, as the compiler may 20783 # overwrite some of them when testing with obscure command lines. 20784 # This happens at least with the AIX C compiler. 20785 : > sub/conftest.c 20786 for i in 1 2 3 4 5 6; do 20787 echo '#include "conftst'$i'.h"' >> sub/conftest.c 20788 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 20789 # Solaris 8's {/usr,}/bin/sh. 20790 touch sub/conftst$i.h 20791 done 20792 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 20793 20794 # We check with `-c' and `-o' for the sake of the "dashmstdout" 20795 # mode. It turns out that the SunPro C++ compiler does not properly 20796 # handle `-M -o', and we need to detect this. Also, some Intel 20797 # versions had trouble with output in subdirs 20798 am__obj=sub/conftest.${OBJEXT-o} 20799 am__minus_obj="-o $am__obj" 20800 case $depmode in 20801 gcc) 20802 # This depmode causes a compiler race in universal mode. 20803 test "$am__universal" = false || continue 20804 ;; 20805 nosideeffect) 20806 # after this tag, mechanisms are not by side-effect, so they'll 20807 # only be used when explicitly requested 20808 if test "x$enable_dependency_tracking" = xyes; then 20809 continue 20810 else 20811 break 20812 fi 20813 ;; 20814 msvisualcpp | msvcmsys) 20815 # This compiler won't grok `-c -o', but also, the minuso test has 20816 # not run yet. These depmodes are late enough in the game, and 20817 # so weak that their functioning should not be impacted. 20818 am__obj=conftest.${OBJEXT-o} 20819 am__minus_obj= 20820 ;; 20821 none) break ;; 20822 esac 20823 if depmode=$depmode \ 20824 source=sub/conftest.c object=$am__obj \ 20825 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 20826 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 20827 >/dev/null 2>conftest.err && 20828 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 20829 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 20830 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 20831 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 20832 # icc doesn't choke on unknown options, it will just issue warnings 20833 # or remarks (even with -Werror). So we grep stderr for any message 20834 # that says an option was ignored or not supported. 20835 # When given -MP, icc 7.0 and 7.1 complain thusly: 20836 # icc: Command line warning: ignoring option '-M'; no argument required 20837 # The diagnosis changed in icc 8.0: 20838 # icc: Command line remark: option '-MP' not supported 20839 if (grep 'ignoring option' conftest.err || 20840 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 20841 am_cv_CC_dependencies_compiler_type=$depmode 20842 break 20843 fi 20844 fi 20845 done 20846 20847 cd .. 20848 rm -rf conftest.dir 20849else 20850 am_cv_CC_dependencies_compiler_type=none 20851fi 20852 20853fi 20854{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 20855$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 20856CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 20857 20858 if 20859 test "x$enable_dependency_tracking" != xno \ 20860 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 20861 am__fastdepCC_TRUE= 20862 am__fastdepCC_FALSE='#' 20863else 20864 am__fastdepCC_TRUE='#' 20865 am__fastdepCC_FALSE= 20866fi 20867 20868 20869 20870 20871 20872 20873 20874# Check whether --with-xorg-module-dir was given. 20875if test "${with_xorg_module_dir+set}" = set; then 20876 withval=$with_xorg_module_dir; moduledir="$withval" 20877else 20878 moduledir="$libdir/xorg/modules" 20879fi 20880 20881 20882# Checks for extensions 20883 20884 SAVE_CFLAGS="$CFLAGS" 20885 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 20886 cat >conftest.$ac_ext <<_ACEOF 20887/* confdefs.h. */ 20888_ACEOF 20889cat confdefs.h >>conftest.$ac_ext 20890cat >>conftest.$ac_ext <<_ACEOF 20891/* end confdefs.h. */ 20892 20893#include "xorg-server.h" 20894#if !defined RANDR 20895#error RANDR not defined 20896#endif 20897 20898int 20899main () 20900{ 20901 20902 ; 20903 return 0; 20904} 20905_ACEOF 20906rm -f conftest.$ac_objext 20907if { (ac_try="$ac_compile" 20908case "(($ac_try" in 20909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20910 *) ac_try_echo=$ac_try;; 20911esac 20912eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20913$as_echo "$ac_try_echo") >&5 20914 (eval "$ac_compile") 2>conftest.er1 20915 ac_status=$? 20916 grep -v '^ *+' conftest.er1 >conftest.err 20917 rm -f conftest.er1 20918 cat conftest.err >&5 20919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20920 (exit $ac_status); } && { 20921 test -z "$ac_c_werror_flag" || 20922 test ! -s conftest.err 20923 } && test -s conftest.$ac_objext; then 20924 _EXT_CHECK=yes 20925else 20926 $as_echo "$as_me: failed program was:" >&5 20927sed 's/^/| /' conftest.$ac_ext >&5 20928 20929 _EXT_CHECK=no 20930fi 20931 20932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20933 CFLAGS="$SAVE_CFLAGS" 20934 { $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5 20935$as_echo_n "checking if RANDR is defined... " >&6; } 20936 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 20937$as_echo "$_EXT_CHECK" >&6; } 20938 if test "$_EXT_CHECK" != no; then 20939 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 20940 fi 20941 20942 20943 SAVE_CFLAGS="$CFLAGS" 20944 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 20945 cat >conftest.$ac_ext <<_ACEOF 20946/* confdefs.h. */ 20947_ACEOF 20948cat confdefs.h >>conftest.$ac_ext 20949cat >>conftest.$ac_ext <<_ACEOF 20950/* end confdefs.h. */ 20951 20952#include "xorg-server.h" 20953#if !defined RENDER 20954#error RENDER not defined 20955#endif 20956 20957int 20958main () 20959{ 20960 20961 ; 20962 return 0; 20963} 20964_ACEOF 20965rm -f conftest.$ac_objext 20966if { (ac_try="$ac_compile" 20967case "(($ac_try" in 20968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20969 *) ac_try_echo=$ac_try;; 20970esac 20971eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20972$as_echo "$ac_try_echo") >&5 20973 (eval "$ac_compile") 2>conftest.er1 20974 ac_status=$? 20975 grep -v '^ *+' conftest.er1 >conftest.err 20976 rm -f conftest.er1 20977 cat conftest.err >&5 20978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20979 (exit $ac_status); } && { 20980 test -z "$ac_c_werror_flag" || 20981 test ! -s conftest.err 20982 } && test -s conftest.$ac_objext; then 20983 _EXT_CHECK=yes 20984else 20985 $as_echo "$as_me: failed program was:" >&5 20986sed 's/^/| /' conftest.$ac_ext >&5 20987 20988 _EXT_CHECK=no 20989fi 20990 20991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20992 CFLAGS="$SAVE_CFLAGS" 20993 { $as_echo "$as_me:$LINENO: checking if RENDER is defined" >&5 20994$as_echo_n "checking if RENDER is defined... " >&6; } 20995 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 20996$as_echo "$_EXT_CHECK" >&6; } 20997 if test "$_EXT_CHECK" != no; then 20998 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 20999 fi 21000 21001 21002 SAVE_CFLAGS="$CFLAGS" 21003 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 21004 cat >conftest.$ac_ext <<_ACEOF 21005/* confdefs.h. */ 21006_ACEOF 21007cat confdefs.h >>conftest.$ac_ext 21008cat >>conftest.$ac_ext <<_ACEOF 21009/* end confdefs.h. */ 21010 21011#include "xorg-server.h" 21012#if !defined XV 21013#error XV not defined 21014#endif 21015 21016int 21017main () 21018{ 21019 21020 ; 21021 return 0; 21022} 21023_ACEOF 21024rm -f conftest.$ac_objext 21025if { (ac_try="$ac_compile" 21026case "(($ac_try" in 21027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21028 *) ac_try_echo=$ac_try;; 21029esac 21030eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21031$as_echo "$ac_try_echo") >&5 21032 (eval "$ac_compile") 2>conftest.er1 21033 ac_status=$? 21034 grep -v '^ *+' conftest.er1 >conftest.err 21035 rm -f conftest.er1 21036 cat conftest.err >&5 21037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21038 (exit $ac_status); } && { 21039 test -z "$ac_c_werror_flag" || 21040 test ! -s conftest.err 21041 } && test -s conftest.$ac_objext; then 21042 _EXT_CHECK=yes 21043else 21044 $as_echo "$as_me: failed program was:" >&5 21045sed 's/^/| /' conftest.$ac_ext >&5 21046 21047 _EXT_CHECK=no 21048fi 21049 21050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21051 CFLAGS="$SAVE_CFLAGS" 21052 { $as_echo "$as_me:$LINENO: checking if XV is defined" >&5 21053$as_echo_n "checking if XV is defined... " >&6; } 21054 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 21055$as_echo "$_EXT_CHECK" >&6; } 21056 if test "$_EXT_CHECK" != no; then 21057 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 21058 fi 21059 21060 21061 SAVE_CFLAGS="$CFLAGS" 21062 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 21063 cat >conftest.$ac_ext <<_ACEOF 21064/* confdefs.h. */ 21065_ACEOF 21066cat confdefs.h >>conftest.$ac_ext 21067cat >>conftest.$ac_ext <<_ACEOF 21068/* end confdefs.h. */ 21069 21070#include "xorg-server.h" 21071#if !defined DPMSExtension 21072#error DPMSExtension not defined 21073#endif 21074 21075int 21076main () 21077{ 21078 21079 ; 21080 return 0; 21081} 21082_ACEOF 21083rm -f conftest.$ac_objext 21084if { (ac_try="$ac_compile" 21085case "(($ac_try" in 21086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21087 *) ac_try_echo=$ac_try;; 21088esac 21089eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21090$as_echo "$ac_try_echo") >&5 21091 (eval "$ac_compile") 2>conftest.er1 21092 ac_status=$? 21093 grep -v '^ *+' conftest.er1 >conftest.err 21094 rm -f conftest.er1 21095 cat conftest.err >&5 21096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21097 (exit $ac_status); } && { 21098 test -z "$ac_c_werror_flag" || 21099 test ! -s conftest.err 21100 } && test -s conftest.$ac_objext; then 21101 _EXT_CHECK=yes 21102else 21103 $as_echo "$as_me: failed program was:" >&5 21104sed 's/^/| /' conftest.$ac_ext >&5 21105 21106 _EXT_CHECK=no 21107fi 21108 21109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21110 CFLAGS="$SAVE_CFLAGS" 21111 { $as_echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5 21112$as_echo_n "checking if DPMSExtension is defined... " >&6; } 21113 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 21114$as_echo "$_EXT_CHECK" >&6; } 21115 if test "$_EXT_CHECK" != no; then 21116 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 21117 fi 21118 21119 21120 SAVE_CFLAGS="$CFLAGS" 21121 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 21122 cat >conftest.$ac_ext <<_ACEOF 21123/* confdefs.h. */ 21124_ACEOF 21125cat confdefs.h >>conftest.$ac_ext 21126cat >>conftest.$ac_ext <<_ACEOF 21127/* end confdefs.h. */ 21128 21129#include "xorg-server.h" 21130#if !defined XFreeXDGA 21131#error XFreeXDGA not defined 21132#endif 21133 21134int 21135main () 21136{ 21137 21138 ; 21139 return 0; 21140} 21141_ACEOF 21142rm -f conftest.$ac_objext 21143if { (ac_try="$ac_compile" 21144case "(($ac_try" in 21145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21146 *) ac_try_echo=$ac_try;; 21147esac 21148eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21149$as_echo "$ac_try_echo") >&5 21150 (eval "$ac_compile") 2>conftest.er1 21151 ac_status=$? 21152 grep -v '^ *+' conftest.er1 >conftest.err 21153 rm -f conftest.er1 21154 cat conftest.err >&5 21155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21156 (exit $ac_status); } && { 21157 test -z "$ac_c_werror_flag" || 21158 test ! -s conftest.err 21159 } && test -s conftest.$ac_objext; then 21160 _EXT_CHECK=yes 21161else 21162 $as_echo "$as_me: failed program was:" >&5 21163sed 's/^/| /' conftest.$ac_ext >&5 21164 21165 _EXT_CHECK=no 21166fi 21167 21168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21169 CFLAGS="$SAVE_CFLAGS" 21170 { $as_echo "$as_me:$LINENO: checking if XFreeXDGA is defined" >&5 21171$as_echo_n "checking if XFreeXDGA is defined... " >&6; } 21172 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 21173$as_echo "$_EXT_CHECK" >&6; } 21174 if test "$_EXT_CHECK" != no; then 21175 REQUIRED_MODULES="$REQUIRED_MODULES xf86dgaproto" 21176 fi 21177 21178 21179# Checks for pkg-config packages 21180 21181 21182if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 21183 if test -n "$ac_tool_prefix"; then 21184 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 21185set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 21186{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 21187$as_echo_n "checking for $ac_word... " >&6; } 21188if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 21189 $as_echo_n "(cached) " >&6 21190else 21191 case $PKG_CONFIG in 21192 [\\/]* | ?:[\\/]*) 21193 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 21194 ;; 21195 *) 21196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21197for as_dir in $PATH 21198do 21199 IFS=$as_save_IFS 21200 test -z "$as_dir" && as_dir=. 21201 for ac_exec_ext in '' $ac_executable_extensions; do 21202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21203 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 21204 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21205 break 2 21206 fi 21207done 21208done 21209IFS=$as_save_IFS 21210 21211 ;; 21212esac 21213fi 21214PKG_CONFIG=$ac_cv_path_PKG_CONFIG 21215if test -n "$PKG_CONFIG"; then 21216 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 21217$as_echo "$PKG_CONFIG" >&6; } 21218else 21219 { $as_echo "$as_me:$LINENO: result: no" >&5 21220$as_echo "no" >&6; } 21221fi 21222 21223 21224fi 21225if test -z "$ac_cv_path_PKG_CONFIG"; then 21226 ac_pt_PKG_CONFIG=$PKG_CONFIG 21227 # Extract the first word of "pkg-config", so it can be a program name with args. 21228set dummy pkg-config; ac_word=$2 21229{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 21230$as_echo_n "checking for $ac_word... " >&6; } 21231if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 21232 $as_echo_n "(cached) " >&6 21233else 21234 case $ac_pt_PKG_CONFIG in 21235 [\\/]* | ?:[\\/]*) 21236 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 21237 ;; 21238 *) 21239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21240for as_dir in $PATH 21241do 21242 IFS=$as_save_IFS 21243 test -z "$as_dir" && as_dir=. 21244 for ac_exec_ext in '' $ac_executable_extensions; do 21245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21246 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 21247 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21248 break 2 21249 fi 21250done 21251done 21252IFS=$as_save_IFS 21253 21254 ;; 21255esac 21256fi 21257ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 21258if test -n "$ac_pt_PKG_CONFIG"; then 21259 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 21260$as_echo "$ac_pt_PKG_CONFIG" >&6; } 21261else 21262 { $as_echo "$as_me:$LINENO: result: no" >&5 21263$as_echo "no" >&6; } 21264fi 21265 21266 if test "x$ac_pt_PKG_CONFIG" = x; then 21267 PKG_CONFIG="" 21268 else 21269 case $cross_compiling:$ac_tool_warned in 21270yes:) 21271{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 21272$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 21273ac_tool_warned=yes ;; 21274esac 21275 PKG_CONFIG=$ac_pt_PKG_CONFIG 21276 fi 21277else 21278 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 21279fi 21280 21281fi 21282if test -n "$PKG_CONFIG"; then 21283 _pkg_min_version=0.9.0 21284 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 21285$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 21286 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 21287 { $as_echo "$as_me:$LINENO: result: yes" >&5 21288$as_echo "yes" >&6; } 21289 else 21290 { $as_echo "$as_me:$LINENO: result: no" >&5 21291$as_echo "no" >&6; } 21292 PKG_CONFIG="" 21293 fi 21294 21295fi 21296 21297pkg_failed=no 21298{ $as_echo "$as_me:$LINENO: checking for XORG" >&5 21299$as_echo_n "checking for XORG... " >&6; } 21300 21301if test -n "$XORG_CFLAGS"; then 21302 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 21303 elif test -n "$PKG_CONFIG"; then 21304 if test -n "$PKG_CONFIG" && \ 21305 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5 21306 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 21307 ac_status=$? 21308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21309 (exit $ac_status); }; then 21310 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 21311else 21312 pkg_failed=yes 21313fi 21314 else 21315 pkg_failed=untried 21316fi 21317if test -n "$XORG_LIBS"; then 21318 pkg_cv_XORG_LIBS="$XORG_LIBS" 21319 elif test -n "$PKG_CONFIG"; then 21320 if test -n "$PKG_CONFIG" && \ 21321 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5 21322 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 21323 ac_status=$? 21324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21325 (exit $ac_status); }; then 21326 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 21327else 21328 pkg_failed=yes 21329fi 21330 else 21331 pkg_failed=untried 21332fi 21333 21334 21335 21336if test $pkg_failed = yes; then 21337 21338if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21339 _pkg_short_errors_supported=yes 21340else 21341 _pkg_short_errors_supported=no 21342fi 21343 if test $_pkg_short_errors_supported = yes; then 21344 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 21345 else 21346 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 21347 fi 21348 # Put the nasty error message in config.log where it belongs 21349 echo "$XORG_PKG_ERRORS" >&5 21350 21351 { { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met: 21352 21353$XORG_PKG_ERRORS 21354 21355Consider adjusting the PKG_CONFIG_PATH environment variable if you 21356installed software in a non-standard prefix. 21357 21358Alternatively, you may set the environment variables XORG_CFLAGS 21359and XORG_LIBS to avoid the need to call pkg-config. 21360See the pkg-config man page for more details. 21361" >&5 21362$as_echo "$as_me: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met: 21363 21364$XORG_PKG_ERRORS 21365 21366Consider adjusting the PKG_CONFIG_PATH environment variable if you 21367installed software in a non-standard prefix. 21368 21369Alternatively, you may set the environment variables XORG_CFLAGS 21370and XORG_LIBS to avoid the need to call pkg-config. 21371See the pkg-config man page for more details. 21372" >&2;} 21373 { (exit 1); exit 1; }; } 21374elif test $pkg_failed = untried; then 21375 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 21376$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21377{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 21378is in your PATH or set the PKG_CONFIG environment variable to the full 21379path to pkg-config. 21380 21381Alternatively, you may set the environment variables XORG_CFLAGS 21382and XORG_LIBS to avoid the need to call pkg-config. 21383See the pkg-config man page for more details. 21384 21385To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21386See \`config.log' for more details." >&5 21387$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 21388is in your PATH or set the PKG_CONFIG environment variable to the full 21389path to pkg-config. 21390 21391Alternatively, you may set the environment variables XORG_CFLAGS 21392and XORG_LIBS to avoid the need to call pkg-config. 21393See the pkg-config man page for more details. 21394 21395To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21396See \`config.log' for more details." >&2;} 21397 { (exit 1); exit 1; }; }; } 21398else 21399 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 21400 XORG_LIBS=$pkg_cv_XORG_LIBS 21401 { $as_echo "$as_me:$LINENO: result: yes" >&5 21402$as_echo "yes" >&6; } 21403 : 21404fi 21405 21406pkg_failed=no 21407{ $as_echo "$as_me:$LINENO: checking for XEXT" >&5 21408$as_echo_n "checking for XEXT... " >&6; } 21409 21410if test -n "$XEXT_CFLAGS"; then 21411 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS" 21412 elif test -n "$PKG_CONFIG"; then 21413 if test -n "$PKG_CONFIG" && \ 21414 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\"") >&5 21415 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 21416 ac_status=$? 21417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21418 (exit $ac_status); }; then 21419 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null` 21420else 21421 pkg_failed=yes 21422fi 21423 else 21424 pkg_failed=untried 21425fi 21426if test -n "$XEXT_LIBS"; then 21427 pkg_cv_XEXT_LIBS="$XEXT_LIBS" 21428 elif test -n "$PKG_CONFIG"; then 21429 if test -n "$PKG_CONFIG" && \ 21430 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\"") >&5 21431 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 21432 ac_status=$? 21433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21434 (exit $ac_status); }; then 21435 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null` 21436else 21437 pkg_failed=yes 21438fi 21439 else 21440 pkg_failed=untried 21441fi 21442 21443 21444 21445if test $pkg_failed = yes; then 21446 21447if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21448 _pkg_short_errors_supported=yes 21449else 21450 _pkg_short_errors_supported=no 21451fi 21452 if test $_pkg_short_errors_supported = yes; then 21453 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xextproto >= 7.0.99.1" 2>&1` 21454 else 21455 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xextproto >= 7.0.99.1" 2>&1` 21456 fi 21457 # Put the nasty error message in config.log where it belongs 21458 echo "$XEXT_PKG_ERRORS" >&5 21459 21460 { $as_echo "$as_me:$LINENO: result: no" >&5 21461$as_echo "no" >&6; } 21462 HAVE_XEXTPROTO_71="no" 21463elif test $pkg_failed = untried; then 21464 HAVE_XEXTPROTO_71="no" 21465else 21466 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS 21467 XEXT_LIBS=$pkg_cv_XEXT_LIBS 21468 { $as_echo "$as_me:$LINENO: result: yes" >&5 21469$as_echo "yes" >&6; } 21470 HAVE_XEXTPROTO_71="yes"; 21471cat >>confdefs.h <<\_ACEOF 21472#define HAVE_XEXTPROTO_71 1 21473_ACEOF 21474 21475fi 21476 if test "$HAVE_XEXTPROTO_71" = "yes" ; then 21477 HAVE_XEXTPROTO_71_TRUE= 21478 HAVE_XEXTPROTO_71_FALSE='#' 21479else 21480 HAVE_XEXTPROTO_71_TRUE='#' 21481 HAVE_XEXTPROTO_71_FALSE= 21482fi 21483 21484sdkdir=$(pkg-config --variable=sdkdir xorg-server) 21485 21486# Checks for libraries. 21487SAVE_CPPFLAGS="$CPPFLAGS" 21488CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 21489{ $as_echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5 21490$as_echo_n "checking whether XSERVER_LIBPCIACCESS is declared... " >&6; } 21491if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then 21492 $as_echo_n "(cached) " >&6 21493else 21494 cat >conftest.$ac_ext <<_ACEOF 21495/* confdefs.h. */ 21496_ACEOF 21497cat confdefs.h >>conftest.$ac_ext 21498cat >>conftest.$ac_ext <<_ACEOF 21499/* end confdefs.h. */ 21500#include "xorg-server.h" 21501 21502int 21503main () 21504{ 21505#ifndef XSERVER_LIBPCIACCESS 21506 (void) XSERVER_LIBPCIACCESS; 21507#endif 21508 21509 ; 21510 return 0; 21511} 21512_ACEOF 21513rm -f conftest.$ac_objext 21514if { (ac_try="$ac_compile" 21515case "(($ac_try" in 21516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21517 *) ac_try_echo=$ac_try;; 21518esac 21519eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21520$as_echo "$ac_try_echo") >&5 21521 (eval "$ac_compile") 2>conftest.er1 21522 ac_status=$? 21523 grep -v '^ *+' conftest.er1 >conftest.err 21524 rm -f conftest.er1 21525 cat conftest.err >&5 21526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21527 (exit $ac_status); } && { 21528 test -z "$ac_c_werror_flag" || 21529 test ! -s conftest.err 21530 } && test -s conftest.$ac_objext; then 21531 ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes 21532else 21533 $as_echo "$as_me: failed program was:" >&5 21534sed 's/^/| /' conftest.$ac_ext >&5 21535 21536 ac_cv_have_decl_XSERVER_LIBPCIACCESS=no 21537fi 21538 21539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21540fi 21541{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5 21542$as_echo "$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; } 21543if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then 21544 XSERVER_LIBPCIACCESS=yes 21545else 21546 XSERVER_LIBPCIACCESS=no 21547fi 21548 21549if test "${ac_cv_header_xf1bpp_h+set}" = set; then 21550 { $as_echo "$as_me:$LINENO: checking for xf1bpp.h" >&5 21551$as_echo_n "checking for xf1bpp.h... " >&6; } 21552if test "${ac_cv_header_xf1bpp_h+set}" = set; then 21553 $as_echo_n "(cached) " >&6 21554fi 21555{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf1bpp_h" >&5 21556$as_echo "$ac_cv_header_xf1bpp_h" >&6; } 21557else 21558 # Is the header compilable? 21559{ $as_echo "$as_me:$LINENO: checking xf1bpp.h usability" >&5 21560$as_echo_n "checking xf1bpp.h usability... " >&6; } 21561cat >conftest.$ac_ext <<_ACEOF 21562/* confdefs.h. */ 21563_ACEOF 21564cat confdefs.h >>conftest.$ac_ext 21565cat >>conftest.$ac_ext <<_ACEOF 21566/* end confdefs.h. */ 21567$ac_includes_default 21568#include <xf1bpp.h> 21569_ACEOF 21570rm -f conftest.$ac_objext 21571if { (ac_try="$ac_compile" 21572case "(($ac_try" in 21573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21574 *) ac_try_echo=$ac_try;; 21575esac 21576eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21577$as_echo "$ac_try_echo") >&5 21578 (eval "$ac_compile") 2>conftest.er1 21579 ac_status=$? 21580 grep -v '^ *+' conftest.er1 >conftest.err 21581 rm -f conftest.er1 21582 cat conftest.err >&5 21583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21584 (exit $ac_status); } && { 21585 test -z "$ac_c_werror_flag" || 21586 test ! -s conftest.err 21587 } && test -s conftest.$ac_objext; then 21588 ac_header_compiler=yes 21589else 21590 $as_echo "$as_me: failed program was:" >&5 21591sed 's/^/| /' conftest.$ac_ext >&5 21592 21593 ac_header_compiler=no 21594fi 21595 21596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21597{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21598$as_echo "$ac_header_compiler" >&6; } 21599 21600# Is the header present? 21601{ $as_echo "$as_me:$LINENO: checking xf1bpp.h presence" >&5 21602$as_echo_n "checking xf1bpp.h presence... " >&6; } 21603cat >conftest.$ac_ext <<_ACEOF 21604/* confdefs.h. */ 21605_ACEOF 21606cat confdefs.h >>conftest.$ac_ext 21607cat >>conftest.$ac_ext <<_ACEOF 21608/* end confdefs.h. */ 21609#include <xf1bpp.h> 21610_ACEOF 21611if { (ac_try="$ac_cpp conftest.$ac_ext" 21612case "(($ac_try" in 21613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21614 *) ac_try_echo=$ac_try;; 21615esac 21616eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21617$as_echo "$ac_try_echo") >&5 21618 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 21619 ac_status=$? 21620 grep -v '^ *+' conftest.er1 >conftest.err 21621 rm -f conftest.er1 21622 cat conftest.err >&5 21623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21624 (exit $ac_status); } >/dev/null && { 21625 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 21626 test ! -s conftest.err 21627 }; then 21628 ac_header_preproc=yes 21629else 21630 $as_echo "$as_me: failed program was:" >&5 21631sed 's/^/| /' conftest.$ac_ext >&5 21632 21633 ac_header_preproc=no 21634fi 21635 21636rm -f conftest.err conftest.$ac_ext 21637{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21638$as_echo "$ac_header_preproc" >&6; } 21639 21640# So? What about this header? 21641case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21642 yes:no: ) 21643 { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: accepted by the compiler, rejected by the preprocessor!" >&5 21644$as_echo "$as_me: WARNING: xf1bpp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 21645 { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: proceeding with the compiler's result" >&5 21646$as_echo "$as_me: WARNING: xf1bpp.h: proceeding with the compiler's result" >&2;} 21647 ac_header_preproc=yes 21648 ;; 21649 no:yes:* ) 21650 { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: present but cannot be compiled" >&5 21651$as_echo "$as_me: WARNING: xf1bpp.h: present but cannot be compiled" >&2;} 21652 { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: check for missing prerequisite headers?" >&5 21653$as_echo "$as_me: WARNING: xf1bpp.h: check for missing prerequisite headers?" >&2;} 21654 { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: see the Autoconf documentation" >&5 21655$as_echo "$as_me: WARNING: xf1bpp.h: see the Autoconf documentation" >&2;} 21656 { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: section \"Present But Cannot Be Compiled\"" >&5 21657$as_echo "$as_me: WARNING: xf1bpp.h: section \"Present But Cannot Be Compiled\"" >&2;} 21658 { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: proceeding with the preprocessor's result" >&5 21659$as_echo "$as_me: WARNING: xf1bpp.h: proceeding with the preprocessor's result" >&2;} 21660 { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: in the future, the compiler will take precedence" >&5 21661$as_echo "$as_me: WARNING: xf1bpp.h: in the future, the compiler will take precedence" >&2;} 21662 ( cat <<\_ASBOX 21663## ---------------------------------------------------------------------- ## 21664## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 21665## ---------------------------------------------------------------------- ## 21666_ASBOX 21667 ) | sed "s/^/$as_me: WARNING: /" >&2 21668 ;; 21669esac 21670{ $as_echo "$as_me:$LINENO: checking for xf1bpp.h" >&5 21671$as_echo_n "checking for xf1bpp.h... " >&6; } 21672if test "${ac_cv_header_xf1bpp_h+set}" = set; then 21673 $as_echo_n "(cached) " >&6 21674else 21675 ac_cv_header_xf1bpp_h=$ac_header_preproc 21676fi 21677{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf1bpp_h" >&5 21678$as_echo "$ac_cv_header_xf1bpp_h" >&6; } 21679 21680fi 21681if test "x$ac_cv_header_xf1bpp_h" = x""yes; then 21682 21683cat >>confdefs.h <<\_ACEOF 21684#define HAVE_XF1BPP 1 21685_ACEOF 21686 21687fi 21688 21689 21690if test "${ac_cv_header_xf4bpp_h+set}" = set; then 21691 { $as_echo "$as_me:$LINENO: checking for xf4bpp.h" >&5 21692$as_echo_n "checking for xf4bpp.h... " >&6; } 21693if test "${ac_cv_header_xf4bpp_h+set}" = set; then 21694 $as_echo_n "(cached) " >&6 21695fi 21696{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf4bpp_h" >&5 21697$as_echo "$ac_cv_header_xf4bpp_h" >&6; } 21698else 21699 # Is the header compilable? 21700{ $as_echo "$as_me:$LINENO: checking xf4bpp.h usability" >&5 21701$as_echo_n "checking xf4bpp.h usability... " >&6; } 21702cat >conftest.$ac_ext <<_ACEOF 21703/* confdefs.h. */ 21704_ACEOF 21705cat confdefs.h >>conftest.$ac_ext 21706cat >>conftest.$ac_ext <<_ACEOF 21707/* end confdefs.h. */ 21708$ac_includes_default 21709#include <xf4bpp.h> 21710_ACEOF 21711rm -f conftest.$ac_objext 21712if { (ac_try="$ac_compile" 21713case "(($ac_try" in 21714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21715 *) ac_try_echo=$ac_try;; 21716esac 21717eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21718$as_echo "$ac_try_echo") >&5 21719 (eval "$ac_compile") 2>conftest.er1 21720 ac_status=$? 21721 grep -v '^ *+' conftest.er1 >conftest.err 21722 rm -f conftest.er1 21723 cat conftest.err >&5 21724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21725 (exit $ac_status); } && { 21726 test -z "$ac_c_werror_flag" || 21727 test ! -s conftest.err 21728 } && test -s conftest.$ac_objext; then 21729 ac_header_compiler=yes 21730else 21731 $as_echo "$as_me: failed program was:" >&5 21732sed 's/^/| /' conftest.$ac_ext >&5 21733 21734 ac_header_compiler=no 21735fi 21736 21737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21738{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21739$as_echo "$ac_header_compiler" >&6; } 21740 21741# Is the header present? 21742{ $as_echo "$as_me:$LINENO: checking xf4bpp.h presence" >&5 21743$as_echo_n "checking xf4bpp.h presence... " >&6; } 21744cat >conftest.$ac_ext <<_ACEOF 21745/* confdefs.h. */ 21746_ACEOF 21747cat confdefs.h >>conftest.$ac_ext 21748cat >>conftest.$ac_ext <<_ACEOF 21749/* end confdefs.h. */ 21750#include <xf4bpp.h> 21751_ACEOF 21752if { (ac_try="$ac_cpp conftest.$ac_ext" 21753case "(($ac_try" in 21754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21755 *) ac_try_echo=$ac_try;; 21756esac 21757eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21758$as_echo "$ac_try_echo") >&5 21759 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 21760 ac_status=$? 21761 grep -v '^ *+' conftest.er1 >conftest.err 21762 rm -f conftest.er1 21763 cat conftest.err >&5 21764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21765 (exit $ac_status); } >/dev/null && { 21766 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 21767 test ! -s conftest.err 21768 }; then 21769 ac_header_preproc=yes 21770else 21771 $as_echo "$as_me: failed program was:" >&5 21772sed 's/^/| /' conftest.$ac_ext >&5 21773 21774 ac_header_preproc=no 21775fi 21776 21777rm -f conftest.err conftest.$ac_ext 21778{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21779$as_echo "$ac_header_preproc" >&6; } 21780 21781# So? What about this header? 21782case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21783 yes:no: ) 21784 { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: accepted by the compiler, rejected by the preprocessor!" >&5 21785$as_echo "$as_me: WARNING: xf4bpp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 21786 { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: proceeding with the compiler's result" >&5 21787$as_echo "$as_me: WARNING: xf4bpp.h: proceeding with the compiler's result" >&2;} 21788 ac_header_preproc=yes 21789 ;; 21790 no:yes:* ) 21791 { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: present but cannot be compiled" >&5 21792$as_echo "$as_me: WARNING: xf4bpp.h: present but cannot be compiled" >&2;} 21793 { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: check for missing prerequisite headers?" >&5 21794$as_echo "$as_me: WARNING: xf4bpp.h: check for missing prerequisite headers?" >&2;} 21795 { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: see the Autoconf documentation" >&5 21796$as_echo "$as_me: WARNING: xf4bpp.h: see the Autoconf documentation" >&2;} 21797 { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: section \"Present But Cannot Be Compiled\"" >&5 21798$as_echo "$as_me: WARNING: xf4bpp.h: section \"Present But Cannot Be Compiled\"" >&2;} 21799 { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: proceeding with the preprocessor's result" >&5 21800$as_echo "$as_me: WARNING: xf4bpp.h: proceeding with the preprocessor's result" >&2;} 21801 { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: in the future, the compiler will take precedence" >&5 21802$as_echo "$as_me: WARNING: xf4bpp.h: in the future, the compiler will take precedence" >&2;} 21803 ( cat <<\_ASBOX 21804## ---------------------------------------------------------------------- ## 21805## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 21806## ---------------------------------------------------------------------- ## 21807_ASBOX 21808 ) | sed "s/^/$as_me: WARNING: /" >&2 21809 ;; 21810esac 21811{ $as_echo "$as_me:$LINENO: checking for xf4bpp.h" >&5 21812$as_echo_n "checking for xf4bpp.h... " >&6; } 21813if test "${ac_cv_header_xf4bpp_h+set}" = set; then 21814 $as_echo_n "(cached) " >&6 21815else 21816 ac_cv_header_xf4bpp_h=$ac_header_preproc 21817fi 21818{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf4bpp_h" >&5 21819$as_echo "$ac_cv_header_xf4bpp_h" >&6; } 21820 21821fi 21822if test "x$ac_cv_header_xf4bpp_h" = x""yes; then 21823 21824cat >>confdefs.h <<\_ACEOF 21825#define HAVE_XF4BPP 1 21826_ACEOF 21827 21828fi 21829 21830 21831CPPFLAGS="$SAVE_CPPFLAGS" 21832 21833if test "x$XSERVER_LIBPCIACCESS" = xyes; then 21834 21835pkg_failed=no 21836{ $as_echo "$as_me:$LINENO: checking for PCIACCESS" >&5 21837$as_echo_n "checking for PCIACCESS... " >&6; } 21838 21839if test -n "$PCIACCESS_CFLAGS"; then 21840 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 21841 elif test -n "$PKG_CONFIG"; then 21842 if test -n "$PKG_CONFIG" && \ 21843 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5 21844 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 21845 ac_status=$? 21846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21847 (exit $ac_status); }; then 21848 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null` 21849else 21850 pkg_failed=yes 21851fi 21852 else 21853 pkg_failed=untried 21854fi 21855if test -n "$PCIACCESS_LIBS"; then 21856 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 21857 elif test -n "$PKG_CONFIG"; then 21858 if test -n "$PKG_CONFIG" && \ 21859 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5 21860 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 21861 ac_status=$? 21862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21863 (exit $ac_status); }; then 21864 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null` 21865else 21866 pkg_failed=yes 21867fi 21868 else 21869 pkg_failed=untried 21870fi 21871 21872 21873 21874if test $pkg_failed = yes; then 21875 21876if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21877 _pkg_short_errors_supported=yes 21878else 21879 _pkg_short_errors_supported=no 21880fi 21881 if test $_pkg_short_errors_supported = yes; then 21882 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1` 21883 else 21884 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1` 21885 fi 21886 # Put the nasty error message in config.log where it belongs 21887 echo "$PCIACCESS_PKG_ERRORS" >&5 21888 21889 { { $as_echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.8.0) were not met: 21890 21891$PCIACCESS_PKG_ERRORS 21892 21893Consider adjusting the PKG_CONFIG_PATH environment variable if you 21894installed software in a non-standard prefix. 21895 21896Alternatively, you may set the environment variables PCIACCESS_CFLAGS 21897and PCIACCESS_LIBS to avoid the need to call pkg-config. 21898See the pkg-config man page for more details. 21899" >&5 21900$as_echo "$as_me: error: Package requirements (pciaccess >= 0.8.0) were not met: 21901 21902$PCIACCESS_PKG_ERRORS 21903 21904Consider adjusting the PKG_CONFIG_PATH environment variable if you 21905installed software in a non-standard prefix. 21906 21907Alternatively, you may set the environment variables PCIACCESS_CFLAGS 21908and PCIACCESS_LIBS to avoid the need to call pkg-config. 21909See the pkg-config man page for more details. 21910" >&2;} 21911 { (exit 1); exit 1; }; } 21912elif test $pkg_failed = untried; then 21913 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 21914$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21915{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 21916is in your PATH or set the PKG_CONFIG environment variable to the full 21917path to pkg-config. 21918 21919Alternatively, you may set the environment variables PCIACCESS_CFLAGS 21920and PCIACCESS_LIBS to avoid the need to call pkg-config. 21921See the pkg-config man page for more details. 21922 21923To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21924See \`config.log' for more details." >&5 21925$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 21926is in your PATH or set the PKG_CONFIG environment variable to the full 21927path to pkg-config. 21928 21929Alternatively, you may set the environment variables PCIACCESS_CFLAGS 21930and PCIACCESS_LIBS to avoid the need to call pkg-config. 21931See the pkg-config man page for more details. 21932 21933To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21934See \`config.log' for more details." >&2;} 21935 { (exit 1); exit 1; }; }; } 21936else 21937 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 21938 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 21939 { $as_echo "$as_me:$LINENO: result: yes" >&5 21940$as_echo "yes" >&6; } 21941 : 21942fi 21943 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS" 21944fi 21945 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 21946 XSERVER_LIBPCIACCESS_TRUE= 21947 XSERVER_LIBPCIACCESS_FALSE='#' 21948else 21949 XSERVER_LIBPCIACCESS_TRUE='#' 21950 XSERVER_LIBPCIACCESS_FALSE= 21951fi 21952 21953 21954# Checks for header files. 21955{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 21956$as_echo_n "checking for ANSI C header files... " >&6; } 21957if test "${ac_cv_header_stdc+set}" = set; then 21958 $as_echo_n "(cached) " >&6 21959else 21960 cat >conftest.$ac_ext <<_ACEOF 21961/* confdefs.h. */ 21962_ACEOF 21963cat confdefs.h >>conftest.$ac_ext 21964cat >>conftest.$ac_ext <<_ACEOF 21965/* end confdefs.h. */ 21966#include <stdlib.h> 21967#include <stdarg.h> 21968#include <string.h> 21969#include <float.h> 21970 21971int 21972main () 21973{ 21974 21975 ; 21976 return 0; 21977} 21978_ACEOF 21979rm -f conftest.$ac_objext 21980if { (ac_try="$ac_compile" 21981case "(($ac_try" in 21982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21983 *) ac_try_echo=$ac_try;; 21984esac 21985eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21986$as_echo "$ac_try_echo") >&5 21987 (eval "$ac_compile") 2>conftest.er1 21988 ac_status=$? 21989 grep -v '^ *+' conftest.er1 >conftest.err 21990 rm -f conftest.er1 21991 cat conftest.err >&5 21992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21993 (exit $ac_status); } && { 21994 test -z "$ac_c_werror_flag" || 21995 test ! -s conftest.err 21996 } && test -s conftest.$ac_objext; then 21997 ac_cv_header_stdc=yes 21998else 21999 $as_echo "$as_me: failed program was:" >&5 22000sed 's/^/| /' conftest.$ac_ext >&5 22001 22002 ac_cv_header_stdc=no 22003fi 22004 22005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22006 22007if test $ac_cv_header_stdc = yes; then 22008 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 22009 cat >conftest.$ac_ext <<_ACEOF 22010/* confdefs.h. */ 22011_ACEOF 22012cat confdefs.h >>conftest.$ac_ext 22013cat >>conftest.$ac_ext <<_ACEOF 22014/* end confdefs.h. */ 22015#include <string.h> 22016 22017_ACEOF 22018if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22019 $EGREP "memchr" >/dev/null 2>&1; then 22020 : 22021else 22022 ac_cv_header_stdc=no 22023fi 22024rm -f conftest* 22025 22026fi 22027 22028if test $ac_cv_header_stdc = yes; then 22029 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 22030 cat >conftest.$ac_ext <<_ACEOF 22031/* confdefs.h. */ 22032_ACEOF 22033cat confdefs.h >>conftest.$ac_ext 22034cat >>conftest.$ac_ext <<_ACEOF 22035/* end confdefs.h. */ 22036#include <stdlib.h> 22037 22038_ACEOF 22039if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22040 $EGREP "free" >/dev/null 2>&1; then 22041 : 22042else 22043 ac_cv_header_stdc=no 22044fi 22045rm -f conftest* 22046 22047fi 22048 22049if test $ac_cv_header_stdc = yes; then 22050 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 22051 if test "$cross_compiling" = yes; then 22052 : 22053else 22054 cat >conftest.$ac_ext <<_ACEOF 22055/* confdefs.h. */ 22056_ACEOF 22057cat confdefs.h >>conftest.$ac_ext 22058cat >>conftest.$ac_ext <<_ACEOF 22059/* end confdefs.h. */ 22060#include <ctype.h> 22061#include <stdlib.h> 22062#if ((' ' & 0x0FF) == 0x020) 22063# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 22064# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 22065#else 22066# define ISLOWER(c) \ 22067 (('a' <= (c) && (c) <= 'i') \ 22068 || ('j' <= (c) && (c) <= 'r') \ 22069 || ('s' <= (c) && (c) <= 'z')) 22070# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 22071#endif 22072 22073#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 22074int 22075main () 22076{ 22077 int i; 22078 for (i = 0; i < 256; i++) 22079 if (XOR (islower (i), ISLOWER (i)) 22080 || toupper (i) != TOUPPER (i)) 22081 return 2; 22082 return 0; 22083} 22084_ACEOF 22085rm -f conftest$ac_exeext 22086if { (ac_try="$ac_link" 22087case "(($ac_try" in 22088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22089 *) ac_try_echo=$ac_try;; 22090esac 22091eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 22092$as_echo "$ac_try_echo") >&5 22093 (eval "$ac_link") 2>&5 22094 ac_status=$? 22095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22096 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 22097 { (case "(($ac_try" in 22098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22099 *) ac_try_echo=$ac_try;; 22100esac 22101eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 22102$as_echo "$ac_try_echo") >&5 22103 (eval "$ac_try") 2>&5 22104 ac_status=$? 22105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22106 (exit $ac_status); }; }; then 22107 : 22108else 22109 $as_echo "$as_me: program exited with status $ac_status" >&5 22110$as_echo "$as_me: failed program was:" >&5 22111sed 's/^/| /' conftest.$ac_ext >&5 22112 22113( exit $ac_status ) 22114ac_cv_header_stdc=no 22115fi 22116rm -rf conftest.dSYM 22117rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 22118fi 22119 22120 22121fi 22122fi 22123{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 22124$as_echo "$ac_cv_header_stdc" >&6; } 22125if test $ac_cv_header_stdc = yes; then 22126 22127cat >>confdefs.h <<\_ACEOF 22128#define STDC_HEADERS 1 22129_ACEOF 22130 22131fi 22132 22133 22134 22135 22136 22137DRIVER_NAME=tga 22138 22139 22140 22141 22142 22143if test x$APP_MAN_SUFFIX = x ; then 22144 APP_MAN_SUFFIX=1 22145fi 22146if test x$APP_MAN_DIR = x ; then 22147 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 22148fi 22149 22150if test x$LIB_MAN_SUFFIX = x ; then 22151 LIB_MAN_SUFFIX=3 22152fi 22153if test x$LIB_MAN_DIR = x ; then 22154 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 22155fi 22156 22157if test x$FILE_MAN_SUFFIX = x ; then 22158 case $host_os in 22159 solaris*) FILE_MAN_SUFFIX=4 ;; 22160 *) FILE_MAN_SUFFIX=5 ;; 22161 esac 22162fi 22163if test x$FILE_MAN_DIR = x ; then 22164 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 22165fi 22166 22167if test x$MISC_MAN_SUFFIX = x ; then 22168 case $host_os in 22169 solaris*) MISC_MAN_SUFFIX=5 ;; 22170 *) MISC_MAN_SUFFIX=7 ;; 22171 esac 22172fi 22173if test x$MISC_MAN_DIR = x ; then 22174 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 22175fi 22176 22177if test x$DRIVER_MAN_SUFFIX = x ; then 22178 case $host_os in 22179 solaris*) DRIVER_MAN_SUFFIX=7 ;; 22180 *) DRIVER_MAN_SUFFIX=4 ;; 22181 esac 22182fi 22183if test x$DRIVER_MAN_DIR = x ; then 22184 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 22185fi 22186 22187if test x$ADMIN_MAN_SUFFIX = x ; then 22188 case $host_os in 22189 solaris*) ADMIN_MAN_SUFFIX=1m ;; 22190 *) ADMIN_MAN_SUFFIX=8 ;; 22191 esac 22192fi 22193if test x$ADMIN_MAN_DIR = x ; then 22194 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 22195fi 22196 22197 22198 22199 22200 22201 22202 22203 22204 22205 22206 22207 22208 22209 22210 22211 22212 22213# Check whether --with-release-version was given. 22214if test "${with_release_version+set}" = set; then 22215 withval=$with_release_version; RELEASE_VERSION="$withval" 22216else 22217 RELEASE_VERSION="" 22218fi 22219 22220 if test "x$RELEASE_VERSION" != "x"; then 22221 PACKAGE="$PACKAGE-$RELEASE_VERSION" 22222 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 22223 { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 22224$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;} 22225 fi 22226 22227cat >>confdefs.h <<_ACEOF 22228#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 22229_ACEOF 22230 22231 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 22232 if test "x$PVM" = "x"; then 22233 PVM="0" 22234 fi 22235 22236cat >>confdefs.h <<_ACEOF 22237#define PACKAGE_VERSION_MINOR $PVM 22238_ACEOF 22239 22240 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 22241 if test "x$PVP" = "x"; then 22242 PVP="0" 22243 fi 22244 22245cat >>confdefs.h <<_ACEOF 22246#define PACKAGE_VERSION_PATCHLEVEL $PVP 22247_ACEOF 22248 22249 22250 22251 22252if test x$XORG_SGML_PATH = x ; then 22253 XORG_SGML_PATH=$prefix/share/sgml 22254fi 22255HAVE_DEFS_ENT= 22256 22257if test x"$cross_compiling" = x"yes" ; then 22258 HAVE_DEFS_ENT=no 22259else 22260 as_ac_File=`$as_echo "ac_cv_file_$XORG_SGML_PATH/X11/defs.ent" | $as_tr_sh` 22261{ $as_echo "$as_me:$LINENO: checking for $XORG_SGML_PATH/X11/defs.ent" >&5 22262$as_echo_n "checking for $XORG_SGML_PATH/X11/defs.ent... " >&6; } 22263if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then 22264 $as_echo_n "(cached) " >&6 22265else 22266 test "$cross_compiling" = yes && 22267 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 22268$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 22269 { (exit 1); exit 1; }; } 22270if test -r "$XORG_SGML_PATH/X11/defs.ent"; then 22271 eval "$as_ac_File=yes" 22272else 22273 eval "$as_ac_File=no" 22274fi 22275fi 22276ac_res=`eval 'as_val=${'$as_ac_File'} 22277 $as_echo "$as_val"'` 22278 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 22279$as_echo "$ac_res" >&6; } 22280as_val=`eval 'as_val=${'$as_ac_File'} 22281 $as_echo "$as_val"'` 22282 if test "x$as_val" = x""yes; then 22283 HAVE_DEFS_ENT=yes 22284fi 22285 22286fi 22287 22288# Extract the first word of "linuxdoc", so it can be a program name with args. 22289set dummy linuxdoc; ac_word=$2 22290{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 22291$as_echo_n "checking for $ac_word... " >&6; } 22292if test "${ac_cv_path_LINUXDOC+set}" = set; then 22293 $as_echo_n "(cached) " >&6 22294else 22295 case $LINUXDOC in 22296 [\\/]* | ?:[\\/]*) 22297 ac_cv_path_LINUXDOC="$LINUXDOC" # Let the user override the test with a path. 22298 ;; 22299 *) 22300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22301for as_dir in $PATH 22302do 22303 IFS=$as_save_IFS 22304 test -z "$as_dir" && as_dir=. 22305 for ac_exec_ext in '' $ac_executable_extensions; do 22306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 22307 ac_cv_path_LINUXDOC="$as_dir/$ac_word$ac_exec_ext" 22308 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 22309 break 2 22310 fi 22311done 22312done 22313IFS=$as_save_IFS 22314 22315 ;; 22316esac 22317fi 22318LINUXDOC=$ac_cv_path_LINUXDOC 22319if test -n "$LINUXDOC"; then 22320 { $as_echo "$as_me:$LINENO: result: $LINUXDOC" >&5 22321$as_echo "$LINUXDOC" >&6; } 22322else 22323 { $as_echo "$as_me:$LINENO: result: no" >&5 22324$as_echo "no" >&6; } 22325fi 22326 22327 22328# Extract the first word of "ps2pdf", so it can be a program name with args. 22329set dummy ps2pdf; ac_word=$2 22330{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 22331$as_echo_n "checking for $ac_word... " >&6; } 22332if test "${ac_cv_path_PS2PDF+set}" = set; then 22333 $as_echo_n "(cached) " >&6 22334else 22335 case $PS2PDF in 22336 [\\/]* | ?:[\\/]*) 22337 ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path. 22338 ;; 22339 *) 22340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22341for as_dir in $PATH 22342do 22343 IFS=$as_save_IFS 22344 test -z "$as_dir" && as_dir=. 22345 for ac_exec_ext in '' $ac_executable_extensions; do 22346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 22347 ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext" 22348 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 22349 break 2 22350 fi 22351done 22352done 22353IFS=$as_save_IFS 22354 22355 ;; 22356esac 22357fi 22358PS2PDF=$ac_cv_path_PS2PDF 22359if test -n "$PS2PDF"; then 22360 { $as_echo "$as_me:$LINENO: result: $PS2PDF" >&5 22361$as_echo "$PS2PDF" >&6; } 22362else 22363 { $as_echo "$as_me:$LINENO: result: no" >&5 22364$as_echo "no" >&6; } 22365fi 22366 22367 22368 22369{ $as_echo "$as_me:$LINENO: checking Whether to build documentation" >&5 22370$as_echo_n "checking Whether to build documentation... " >&6; } 22371 22372if test x$HAVE_DEFS_ENT != x && test x$LINUXDOC != x ; then 22373 BUILDDOC=yes 22374else 22375 BUILDDOC=no 22376fi 22377 22378 if test x$BUILDDOC = xyes; then 22379 BUILD_LINUXDOC_TRUE= 22380 BUILD_LINUXDOC_FALSE='#' 22381else 22382 BUILD_LINUXDOC_TRUE='#' 22383 BUILD_LINUXDOC_FALSE= 22384fi 22385 22386 22387{ $as_echo "$as_me:$LINENO: result: $BUILDDOC" >&5 22388$as_echo "$BUILDDOC" >&6; } 22389 22390{ $as_echo "$as_me:$LINENO: checking Whether to build pdf documentation" >&5 22391$as_echo_n "checking Whether to build pdf documentation... " >&6; } 22392 22393if test x$PS2PDF != x && test x$BUILD_PDFDOC != xno; then 22394 BUILDPDFDOC=yes 22395else 22396 BUILDPDFDOC=no 22397fi 22398 22399 if test x$BUILDPDFDOC = xyes; then 22400 BUILD_PDFDOC_TRUE= 22401 BUILD_PDFDOC_FALSE='#' 22402else 22403 BUILD_PDFDOC_TRUE='#' 22404 BUILD_PDFDOC_FALSE= 22405fi 22406 22407 22408{ $as_echo "$as_me:$LINENO: result: $BUILDPDFDOC" >&5 22409$as_echo "$BUILDPDFDOC" >&6; } 22410 22411MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt" 22412MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps" 22413MAKE_PDF="$PS2PDF" 22414MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B html --split=0" 22415 22416 22417 22418 22419 22420 22421 22422ac_config_files="$ac_config_files Makefile src/Makefile" 22423 22424cat >confcache <<\_ACEOF 22425# This file is a shell script that caches the results of configure 22426# tests run on this system so they can be shared between configure 22427# scripts and configure runs, see configure's option --config-cache. 22428# It is not useful on other systems. If it contains results you don't 22429# want to keep, you may remove or edit it. 22430# 22431# config.status only pays attention to the cache file if you give it 22432# the --recheck option to rerun configure. 22433# 22434# `ac_cv_env_foo' variables (set or unset) will be overridden when 22435# loading this file, other *unset* `ac_cv_foo' will be assigned the 22436# following values. 22437 22438_ACEOF 22439 22440# The following way of writing the cache mishandles newlines in values, 22441# but we know of no workaround that is simple, portable, and efficient. 22442# So, we kill variables containing newlines. 22443# Ultrix sh set writes to stderr and can't be redirected directly, 22444# and sets the high bit in the cache file unless we assign to the vars. 22445( 22446 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 22447 eval ac_val=\$$ac_var 22448 case $ac_val in #( 22449 *${as_nl}*) 22450 case $ac_var in #( 22451 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 22452$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 22453 esac 22454 case $ac_var in #( 22455 _ | IFS | as_nl) ;; #( 22456 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 22457 *) $as_unset $ac_var ;; 22458 esac ;; 22459 esac 22460 done 22461 22462 (set) 2>&1 | 22463 case $as_nl`(ac_space=' '; set) 2>&1` in #( 22464 *${as_nl}ac_space=\ *) 22465 # `set' does not quote correctly, so add quotes (double-quote 22466 # substitution turns \\\\ into \\, and sed turns \\ into \). 22467 sed -n \ 22468 "s/'/'\\\\''/g; 22469 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 22470 ;; #( 22471 *) 22472 # `set' quotes correctly as required by POSIX, so do not add quotes. 22473 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 22474 ;; 22475 esac | 22476 sort 22477) | 22478 sed ' 22479 /^ac_cv_env_/b end 22480 t clear 22481 :clear 22482 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 22483 t end 22484 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 22485 :end' >>confcache 22486if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 22487 if test -w "$cache_file"; then 22488 test "x$cache_file" != "x/dev/null" && 22489 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 22490$as_echo "$as_me: updating cache $cache_file" >&6;} 22491 cat confcache >$cache_file 22492 else 22493 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 22494$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 22495 fi 22496fi 22497rm -f confcache 22498 22499test "x$prefix" = xNONE && prefix=$ac_default_prefix 22500# Let make expand exec_prefix. 22501test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 22502 22503DEFS=-DHAVE_CONFIG_H 22504 22505ac_libobjs= 22506ac_ltlibobjs= 22507for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 22508 # 1. Remove the extension, and $U if already installed. 22509 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 22510 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 22511 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 22512 # will be set to the directory where LIBOBJS objects are built. 22513 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 22514 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 22515done 22516LIBOBJS=$ac_libobjs 22517 22518LTLIBOBJS=$ac_ltlibobjs 22519 22520 22521 if test -n "$EXEEXT"; then 22522 am__EXEEXT_TRUE= 22523 am__EXEEXT_FALSE='#' 22524else 22525 am__EXEEXT_TRUE='#' 22526 am__EXEEXT_FALSE= 22527fi 22528 22529if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 22530 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 22531Usually this means the macro was only invoked conditionally." >&5 22532$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 22533Usually this means the macro was only invoked conditionally." >&2;} 22534 { (exit 1); exit 1; }; } 22535fi 22536if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 22537 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 22538Usually this means the macro was only invoked conditionally." >&5 22539$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 22540Usually this means the macro was only invoked conditionally." >&2;} 22541 { (exit 1); exit 1; }; } 22542fi 22543if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22544 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 22545Usually this means the macro was only invoked conditionally." >&5 22546$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 22547Usually this means the macro was only invoked conditionally." >&2;} 22548 { (exit 1); exit 1; }; } 22549fi 22550if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 22551 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 22552Usually this means the macro was only invoked conditionally." >&5 22553$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 22554Usually this means the macro was only invoked conditionally." >&2;} 22555 { (exit 1); exit 1; }; } 22556fi 22557if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22558 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 22559Usually this means the macro was only invoked conditionally." >&5 22560$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 22561Usually this means the macro was only invoked conditionally." >&2;} 22562 { (exit 1); exit 1; }; } 22563fi 22564if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then 22565 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_XEXTPROTO_71\" was never defined. 22566Usually this means the macro was only invoked conditionally." >&5 22567$as_echo "$as_me: error: conditional \"HAVE_XEXTPROTO_71\" was never defined. 22568Usually this means the macro was only invoked conditionally." >&2;} 22569 { (exit 1); exit 1; }; } 22570fi 22571if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then 22572 { { $as_echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined. 22573Usually this means the macro was only invoked conditionally." >&5 22574$as_echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined. 22575Usually this means the macro was only invoked conditionally." >&2;} 22576 { (exit 1); exit 1; }; } 22577fi 22578if test -z "${BUILD_LINUXDOC_TRUE}" && test -z "${BUILD_LINUXDOC_FALSE}"; then 22579 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_LINUXDOC\" was never defined. 22580Usually this means the macro was only invoked conditionally." >&5 22581$as_echo "$as_me: error: conditional \"BUILD_LINUXDOC\" was never defined. 22582Usually this means the macro was only invoked conditionally." >&2;} 22583 { (exit 1); exit 1; }; } 22584fi 22585if test -z "${BUILD_PDFDOC_TRUE}" && test -z "${BUILD_PDFDOC_FALSE}"; then 22586 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_PDFDOC\" was never defined. 22587Usually this means the macro was only invoked conditionally." >&5 22588$as_echo "$as_me: error: conditional \"BUILD_PDFDOC\" was never defined. 22589Usually this means the macro was only invoked conditionally." >&2;} 22590 { (exit 1); exit 1; }; } 22591fi 22592 22593: ${CONFIG_STATUS=./config.status} 22594ac_write_fail=0 22595ac_clean_files_save=$ac_clean_files 22596ac_clean_files="$ac_clean_files $CONFIG_STATUS" 22597{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 22598$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 22599cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22600#! $SHELL 22601# Generated by $as_me. 22602# Run this file to recreate the current configuration. 22603# Compiler output produced by configure, useful for debugging 22604# configure, is in config.log if it exists. 22605 22606debug=false 22607ac_cs_recheck=false 22608ac_cs_silent=false 22609SHELL=\${CONFIG_SHELL-$SHELL} 22610_ACEOF 22611 22612cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22613## --------------------- ## 22614## M4sh Initialization. ## 22615## --------------------- ## 22616 22617# Be more Bourne compatible 22618DUALCASE=1; export DUALCASE # for MKS sh 22619if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 22620 emulate sh 22621 NULLCMD=: 22622 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 22623 # is contrary to our usage. Disable this feature. 22624 alias -g '${1+"$@"}'='"$@"' 22625 setopt NO_GLOB_SUBST 22626else 22627 case `(set -o) 2>/dev/null` in 22628 *posix*) set -o posix ;; 22629esac 22630 22631fi 22632 22633 22634 22635 22636# PATH needs CR 22637# Avoid depending upon Character Ranges. 22638as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22639as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22640as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22641as_cr_digits='0123456789' 22642as_cr_alnum=$as_cr_Letters$as_cr_digits 22643 22644as_nl=' 22645' 22646export as_nl 22647# Printing a long string crashes Solaris 7 /usr/bin/printf. 22648as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 22649as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 22650as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 22651if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 22652 as_echo='printf %s\n' 22653 as_echo_n='printf %s' 22654else 22655 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 22656 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 22657 as_echo_n='/usr/ucb/echo -n' 22658 else 22659 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 22660 as_echo_n_body='eval 22661 arg=$1; 22662 case $arg in 22663 *"$as_nl"*) 22664 expr "X$arg" : "X\\(.*\\)$as_nl"; 22665 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 22666 esac; 22667 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 22668 ' 22669 export as_echo_n_body 22670 as_echo_n='sh -c $as_echo_n_body as_echo' 22671 fi 22672 export as_echo_body 22673 as_echo='sh -c $as_echo_body as_echo' 22674fi 22675 22676# The user is always right. 22677if test "${PATH_SEPARATOR+set}" != set; then 22678 PATH_SEPARATOR=: 22679 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 22680 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 22681 PATH_SEPARATOR=';' 22682 } 22683fi 22684 22685# Support unset when possible. 22686if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 22687 as_unset=unset 22688else 22689 as_unset=false 22690fi 22691 22692 22693# IFS 22694# We need space, tab and new line, in precisely that order. Quoting is 22695# there to prevent editors from complaining about space-tab. 22696# (If _AS_PATH_WALK were called with IFS unset, it would disable word 22697# splitting by setting IFS to empty value.) 22698IFS=" "" $as_nl" 22699 22700# Find who we are. Look in the path if we contain no directory separator. 22701case $0 in 22702 *[\\/]* ) as_myself=$0 ;; 22703 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22704for as_dir in $PATH 22705do 22706 IFS=$as_save_IFS 22707 test -z "$as_dir" && as_dir=. 22708 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 22709done 22710IFS=$as_save_IFS 22711 22712 ;; 22713esac 22714# We did not find ourselves, most probably we were run as `sh COMMAND' 22715# in which case we are not to be found in the path. 22716if test "x$as_myself" = x; then 22717 as_myself=$0 22718fi 22719if test ! -f "$as_myself"; then 22720 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 22721 { (exit 1); exit 1; } 22722fi 22723 22724# Work around bugs in pre-3.0 UWIN ksh. 22725for as_var in ENV MAIL MAILPATH 22726do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 22727done 22728PS1='$ ' 22729PS2='> ' 22730PS4='+ ' 22731 22732# NLS nuisances. 22733LC_ALL=C 22734export LC_ALL 22735LANGUAGE=C 22736export LANGUAGE 22737 22738# Required to use basename. 22739if expr a : '\(a\)' >/dev/null 2>&1 && 22740 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22741 as_expr=expr 22742else 22743 as_expr=false 22744fi 22745 22746if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 22747 as_basename=basename 22748else 22749 as_basename=false 22750fi 22751 22752 22753# Name of the executable. 22754as_me=`$as_basename -- "$0" || 22755$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22756 X"$0" : 'X\(//\)$' \| \ 22757 X"$0" : 'X\(/\)' \| . 2>/dev/null || 22758$as_echo X/"$0" | 22759 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22760 s//\1/ 22761 q 22762 } 22763 /^X\/\(\/\/\)$/{ 22764 s//\1/ 22765 q 22766 } 22767 /^X\/\(\/\).*/{ 22768 s//\1/ 22769 q 22770 } 22771 s/.*/./; q'` 22772 22773# CDPATH. 22774$as_unset CDPATH 22775 22776 22777 22778 as_lineno_1=$LINENO 22779 as_lineno_2=$LINENO 22780 test "x$as_lineno_1" != "x$as_lineno_2" && 22781 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 22782 22783 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 22784 # uniformly replaced by the line number. The first 'sed' inserts a 22785 # line-number line after each line using $LINENO; the second 'sed' 22786 # does the real work. The second script uses 'N' to pair each 22787 # line-number line with the line containing $LINENO, and appends 22788 # trailing '-' during substitution so that $LINENO is not a special 22789 # case at line end. 22790 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 22791 # scripts with optimization help from Paolo Bonzini. Blame Lee 22792 # E. McMahon (1931-1989) for sed's syntax. :-) 22793 sed -n ' 22794 p 22795 /[$]LINENO/= 22796 ' <$as_myself | 22797 sed ' 22798 s/[$]LINENO.*/&-/ 22799 t lineno 22800 b 22801 :lineno 22802 N 22803 :loop 22804 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 22805 t loop 22806 s/-\n.*// 22807 ' >$as_me.lineno && 22808 chmod +x "$as_me.lineno" || 22809 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 22810 { (exit 1); exit 1; }; } 22811 22812 # Don't try to exec as it changes $[0], causing all sort of problems 22813 # (the dirname of $[0] is not the place where we might find the 22814 # original and so on. Autoconf is especially sensitive to this). 22815 . "./$as_me.lineno" 22816 # Exit status is that of the last command. 22817 exit 22818} 22819 22820 22821if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22822 as_dirname=dirname 22823else 22824 as_dirname=false 22825fi 22826 22827ECHO_C= ECHO_N= ECHO_T= 22828case `echo -n x` in 22829-n*) 22830 case `echo 'x\c'` in 22831 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 22832 *) ECHO_C='\c';; 22833 esac;; 22834*) 22835 ECHO_N='-n';; 22836esac 22837if expr a : '\(a\)' >/dev/null 2>&1 && 22838 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22839 as_expr=expr 22840else 22841 as_expr=false 22842fi 22843 22844rm -f conf$$ conf$$.exe conf$$.file 22845if test -d conf$$.dir; then 22846 rm -f conf$$.dir/conf$$.file 22847else 22848 rm -f conf$$.dir 22849 mkdir conf$$.dir 2>/dev/null 22850fi 22851if (echo >conf$$.file) 2>/dev/null; then 22852 if ln -s conf$$.file conf$$ 2>/dev/null; then 22853 as_ln_s='ln -s' 22854 # ... but there are two gotchas: 22855 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 22856 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 22857 # In both cases, we have to default to `cp -p'. 22858 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 22859 as_ln_s='cp -p' 22860 elif ln conf$$.file conf$$ 2>/dev/null; then 22861 as_ln_s=ln 22862 else 22863 as_ln_s='cp -p' 22864 fi 22865else 22866 as_ln_s='cp -p' 22867fi 22868rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 22869rmdir conf$$.dir 2>/dev/null 22870 22871if mkdir -p . 2>/dev/null; then 22872 as_mkdir_p=: 22873else 22874 test -d ./-p && rmdir ./-p 22875 as_mkdir_p=false 22876fi 22877 22878if test -x / >/dev/null 2>&1; then 22879 as_test_x='test -x' 22880else 22881 if ls -dL / >/dev/null 2>&1; then 22882 as_ls_L_option=L 22883 else 22884 as_ls_L_option= 22885 fi 22886 as_test_x=' 22887 eval sh -c '\'' 22888 if test -d "$1"; then 22889 test -d "$1/."; 22890 else 22891 case $1 in 22892 -*)set "./$1";; 22893 esac; 22894 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 22895 ???[sx]*):;;*)false;;esac;fi 22896 '\'' sh 22897 ' 22898fi 22899as_executable_p=$as_test_x 22900 22901# Sed expression to map a string onto a valid CPP name. 22902as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 22903 22904# Sed expression to map a string onto a valid variable name. 22905as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 22906 22907 22908exec 6>&1 22909 22910# Save the log message, to keep $[0] and so on meaningful, and to 22911# report actual input values of CONFIG_FILES etc. instead of their 22912# values after options handling. 22913ac_log=" 22914This file was extended by xf86-video-tga $as_me 1.2.1, which was 22915generated by GNU Autoconf 2.63. Invocation command line was 22916 22917 CONFIG_FILES = $CONFIG_FILES 22918 CONFIG_HEADERS = $CONFIG_HEADERS 22919 CONFIG_LINKS = $CONFIG_LINKS 22920 CONFIG_COMMANDS = $CONFIG_COMMANDS 22921 $ $0 $@ 22922 22923on `(hostname || uname -n) 2>/dev/null | sed 1q` 22924" 22925 22926_ACEOF 22927 22928case $ac_config_files in *" 22929"*) set x $ac_config_files; shift; ac_config_files=$*;; 22930esac 22931 22932case $ac_config_headers in *" 22933"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 22934esac 22935 22936 22937cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22938# Files that config.status was made for. 22939config_files="$ac_config_files" 22940config_headers="$ac_config_headers" 22941config_commands="$ac_config_commands" 22942 22943_ACEOF 22944 22945cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22946ac_cs_usage="\ 22947\`$as_me' instantiates files from templates according to the 22948current configuration. 22949 22950Usage: $0 [OPTION]... [FILE]... 22951 22952 -h, --help print this help, then exit 22953 -V, --version print version number and configuration settings, then exit 22954 -q, --quiet, --silent 22955 do not print progress messages 22956 -d, --debug don't remove temporary files 22957 --recheck update $as_me by reconfiguring in the same conditions 22958 --file=FILE[:TEMPLATE] 22959 instantiate the configuration file FILE 22960 --header=FILE[:TEMPLATE] 22961 instantiate the configuration header FILE 22962 22963Configuration files: 22964$config_files 22965 22966Configuration headers: 22967$config_headers 22968 22969Configuration commands: 22970$config_commands 22971 22972Report bugs to <bug-autoconf@gnu.org>." 22973 22974_ACEOF 22975cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22976ac_cs_version="\\ 22977xf86-video-tga config.status 1.2.1 22978configured by $0, generated by GNU Autoconf 2.63, 22979 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 22980 22981Copyright (C) 2008 Free Software Foundation, Inc. 22982This config.status script is free software; the Free Software Foundation 22983gives unlimited permission to copy, distribute and modify it." 22984 22985ac_pwd='$ac_pwd' 22986srcdir='$srcdir' 22987INSTALL='$INSTALL' 22988MKDIR_P='$MKDIR_P' 22989AWK='$AWK' 22990test -n "\$AWK" || AWK=awk 22991_ACEOF 22992 22993cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22994# The default lists apply if the user does not specify any file. 22995ac_need_defaults=: 22996while test $# != 0 22997do 22998 case $1 in 22999 --*=*) 23000 ac_option=`expr "X$1" : 'X\([^=]*\)='` 23001 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 23002 ac_shift=: 23003 ;; 23004 *) 23005 ac_option=$1 23006 ac_optarg=$2 23007 ac_shift=shift 23008 ;; 23009 esac 23010 23011 case $ac_option in 23012 # Handling of the options. 23013 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 23014 ac_cs_recheck=: ;; 23015 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 23016 $as_echo "$ac_cs_version"; exit ;; 23017 --debug | --debu | --deb | --de | --d | -d ) 23018 debug=: ;; 23019 --file | --fil | --fi | --f ) 23020 $ac_shift 23021 case $ac_optarg in 23022 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 23023 esac 23024 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 23025 ac_need_defaults=false;; 23026 --header | --heade | --head | --hea ) 23027 $ac_shift 23028 case $ac_optarg in 23029 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 23030 esac 23031 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 23032 ac_need_defaults=false;; 23033 --he | --h) 23034 # Conflict between --help and --header 23035 { $as_echo "$as_me: error: ambiguous option: $1 23036Try \`$0 --help' for more information." >&2 23037 { (exit 1); exit 1; }; };; 23038 --help | --hel | -h ) 23039 $as_echo "$ac_cs_usage"; exit ;; 23040 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 23041 | -silent | --silent | --silen | --sile | --sil | --si | --s) 23042 ac_cs_silent=: ;; 23043 23044 # This is an error. 23045 -*) { $as_echo "$as_me: error: unrecognized option: $1 23046Try \`$0 --help' for more information." >&2 23047 { (exit 1); exit 1; }; } ;; 23048 23049 *) ac_config_targets="$ac_config_targets $1" 23050 ac_need_defaults=false ;; 23051 23052 esac 23053 shift 23054done 23055 23056ac_configure_extra_args= 23057 23058if $ac_cs_silent; then 23059 exec 6>/dev/null 23060 ac_configure_extra_args="$ac_configure_extra_args --silent" 23061fi 23062 23063_ACEOF 23064cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23065if \$ac_cs_recheck; then 23066 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 23067 shift 23068 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 23069 CONFIG_SHELL='$SHELL' 23070 export CONFIG_SHELL 23071 exec "\$@" 23072fi 23073 23074_ACEOF 23075cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23076exec 5>>config.log 23077{ 23078 echo 23079 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 23080## Running $as_me. ## 23081_ASBOX 23082 $as_echo "$ac_log" 23083} >&5 23084 23085_ACEOF 23086cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23087# 23088# INIT-COMMANDS 23089# 23090AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 23091 23092_ACEOF 23093 23094cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23095 23096# Handling of arguments. 23097for ac_config_target in $ac_config_targets 23098do 23099 case $ac_config_target in 23100 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 23101 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 23102 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 23103 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 23104 23105 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 23106$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 23107 { (exit 1); exit 1; }; };; 23108 esac 23109done 23110 23111 23112# If the user did not use the arguments to specify the items to instantiate, 23113# then the envvar interface is used. Set only those that are not. 23114# We use the long form for the default assignment because of an extremely 23115# bizarre bug on SunOS 4.1.3. 23116if $ac_need_defaults; then 23117 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 23118 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 23119 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 23120fi 23121 23122# Have a temporary directory for convenience. Make it in the build tree 23123# simply because there is no reason against having it here, and in addition, 23124# creating and moving files from /tmp can sometimes cause problems. 23125# Hook for its removal unless debugging. 23126# Note that there is a small window in which the directory will not be cleaned: 23127# after its creation but before its name has been assigned to `$tmp'. 23128$debug || 23129{ 23130 tmp= 23131 trap 'exit_status=$? 23132 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 23133' 0 23134 trap '{ (exit 1); exit 1; }' 1 2 13 15 23135} 23136# Create a (secure) tmp directory for tmp files. 23137 23138{ 23139 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 23140 test -n "$tmp" && test -d "$tmp" 23141} || 23142{ 23143 tmp=./conf$$-$RANDOM 23144 (umask 077 && mkdir "$tmp") 23145} || 23146{ 23147 $as_echo "$as_me: cannot create a temporary directory in ." >&2 23148 { (exit 1); exit 1; } 23149} 23150 23151# Set up the scripts for CONFIG_FILES section. 23152# No need to generate them if there are no CONFIG_FILES. 23153# This happens for instance with `./config.status config.h'. 23154if test -n "$CONFIG_FILES"; then 23155 23156 23157ac_cr=' 23158' 23159ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 23160if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 23161 ac_cs_awk_cr='\\r' 23162else 23163 ac_cs_awk_cr=$ac_cr 23164fi 23165 23166echo 'BEGIN {' >"$tmp/subs1.awk" && 23167_ACEOF 23168 23169 23170{ 23171 echo "cat >conf$$subs.awk <<_ACEOF" && 23172 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 23173 echo "_ACEOF" 23174} >conf$$subs.sh || 23175 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 23176$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 23177 { (exit 1); exit 1; }; } 23178ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 23179ac_delim='%!_!# ' 23180for ac_last_try in false false false false false :; do 23181 . ./conf$$subs.sh || 23182 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 23183$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 23184 { (exit 1); exit 1; }; } 23185 23186 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 23187 if test $ac_delim_n = $ac_delim_num; then 23188 break 23189 elif $ac_last_try; then 23190 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 23191$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 23192 { (exit 1); exit 1; }; } 23193 else 23194 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23195 fi 23196done 23197rm -f conf$$subs.sh 23198 23199cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23200cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 23201_ACEOF 23202sed -n ' 23203h 23204s/^/S["/; s/!.*/"]=/ 23205p 23206g 23207s/^[^!]*!// 23208:repl 23209t repl 23210s/'"$ac_delim"'$// 23211t delim 23212:nl 23213h 23214s/\(.\{148\}\).*/\1/ 23215t more1 23216s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 23217p 23218n 23219b repl 23220:more1 23221s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 23222p 23223g 23224s/.\{148\}// 23225t nl 23226:delim 23227h 23228s/\(.\{148\}\).*/\1/ 23229t more2 23230s/["\\]/\\&/g; s/^/"/; s/$/"/ 23231p 23232b 23233:more2 23234s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 23235p 23236g 23237s/.\{148\}// 23238t delim 23239' <conf$$subs.awk | sed ' 23240/^[^""]/{ 23241 N 23242 s/\n// 23243} 23244' >>$CONFIG_STATUS || ac_write_fail=1 23245rm -f conf$$subs.awk 23246cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23247_ACAWK 23248cat >>"\$tmp/subs1.awk" <<_ACAWK && 23249 for (key in S) S_is_set[key] = 1 23250 FS = "" 23251 23252} 23253{ 23254 line = $ 0 23255 nfields = split(line, field, "@") 23256 substed = 0 23257 len = length(field[1]) 23258 for (i = 2; i < nfields; i++) { 23259 key = field[i] 23260 keylen = length(key) 23261 if (S_is_set[key]) { 23262 value = S[key] 23263 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 23264 len += length(value) + length(field[++i]) 23265 substed = 1 23266 } else 23267 len += 1 + keylen 23268 } 23269 23270 print line 23271} 23272 23273_ACAWK 23274_ACEOF 23275cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23276if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 23277 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 23278else 23279 cat 23280fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 23281 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 23282$as_echo "$as_me: error: could not setup config files machinery" >&2;} 23283 { (exit 1); exit 1; }; } 23284_ACEOF 23285 23286# VPATH may cause trouble with some makes, so we remove $(srcdir), 23287# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 23288# trailing colons and then remove the whole line if VPATH becomes empty 23289# (actually we leave an empty line to preserve line numbers). 23290if test "x$srcdir" = x.; then 23291 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 23292s/:*\$(srcdir):*/:/ 23293s/:*\${srcdir}:*/:/ 23294s/:*@srcdir@:*/:/ 23295s/^\([^=]*=[ ]*\):*/\1/ 23296s/:*$// 23297s/^[^=]*=[ ]*$// 23298}' 23299fi 23300 23301cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23302fi # test -n "$CONFIG_FILES" 23303 23304# Set up the scripts for CONFIG_HEADERS section. 23305# No need to generate them if there are no CONFIG_HEADERS. 23306# This happens for instance with `./config.status Makefile'. 23307if test -n "$CONFIG_HEADERS"; then 23308cat >"$tmp/defines.awk" <<\_ACAWK || 23309BEGIN { 23310_ACEOF 23311 23312# Transform confdefs.h into an awk script `defines.awk', embedded as 23313# here-document in config.status, that substitutes the proper values into 23314# config.h.in to produce config.h. 23315 23316# Create a delimiter string that does not exist in confdefs.h, to ease 23317# handling of long lines. 23318ac_delim='%!_!# ' 23319for ac_last_try in false false :; do 23320 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 23321 if test -z "$ac_t"; then 23322 break 23323 elif $ac_last_try; then 23324 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 23325$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 23326 { (exit 1); exit 1; }; } 23327 else 23328 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23329 fi 23330done 23331 23332# For the awk script, D is an array of macro values keyed by name, 23333# likewise P contains macro parameters if any. Preserve backslash 23334# newline sequences. 23335 23336ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 23337sed -n ' 23338s/.\{148\}/&'"$ac_delim"'/g 23339t rset 23340:rset 23341s/^[ ]*#[ ]*define[ ][ ]*/ / 23342t def 23343d 23344:def 23345s/\\$// 23346t bsnl 23347s/["\\]/\\&/g 23348s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23349D["\1"]=" \3"/p 23350s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 23351d 23352:bsnl 23353s/["\\]/\\&/g 23354s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23355D["\1"]=" \3\\\\\\n"\\/p 23356t cont 23357s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 23358t cont 23359d 23360:cont 23361n 23362s/.\{148\}/&'"$ac_delim"'/g 23363t clear 23364:clear 23365s/\\$// 23366t bsnlc 23367s/["\\]/\\&/g; s/^/"/; s/$/"/p 23368d 23369:bsnlc 23370s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 23371b cont 23372' <confdefs.h | sed ' 23373s/'"$ac_delim"'/"\\\ 23374"/g' >>$CONFIG_STATUS || ac_write_fail=1 23375 23376cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23377 for (key in D) D_is_set[key] = 1 23378 FS = "" 23379} 23380/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 23381 line = \$ 0 23382 split(line, arg, " ") 23383 if (arg[1] == "#") { 23384 defundef = arg[2] 23385 mac1 = arg[3] 23386 } else { 23387 defundef = substr(arg[1], 2) 23388 mac1 = arg[2] 23389 } 23390 split(mac1, mac2, "(") #) 23391 macro = mac2[1] 23392 prefix = substr(line, 1, index(line, defundef) - 1) 23393 if (D_is_set[macro]) { 23394 # Preserve the white space surrounding the "#". 23395 print prefix "define", macro P[macro] D[macro] 23396 next 23397 } else { 23398 # Replace #undef with comments. This is necessary, for example, 23399 # in the case of _POSIX_SOURCE, which is predefined and required 23400 # on some systems where configure will not decide to define it. 23401 if (defundef == "undef") { 23402 print "/*", prefix defundef, macro, "*/" 23403 next 23404 } 23405 } 23406} 23407{ print } 23408_ACAWK 23409_ACEOF 23410cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23411 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 23412$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 23413 { (exit 1); exit 1; }; } 23414fi # test -n "$CONFIG_HEADERS" 23415 23416 23417eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 23418shift 23419for ac_tag 23420do 23421 case $ac_tag in 23422 :[FHLC]) ac_mode=$ac_tag; continue;; 23423 esac 23424 case $ac_mode$ac_tag in 23425 :[FHL]*:*);; 23426 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 23427$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 23428 { (exit 1); exit 1; }; };; 23429 :[FH]-) ac_tag=-:-;; 23430 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 23431 esac 23432 ac_save_IFS=$IFS 23433 IFS=: 23434 set x $ac_tag 23435 IFS=$ac_save_IFS 23436 shift 23437 ac_file=$1 23438 shift 23439 23440 case $ac_mode in 23441 :L) ac_source=$1;; 23442 :[FH]) 23443 ac_file_inputs= 23444 for ac_f 23445 do 23446 case $ac_f in 23447 -) ac_f="$tmp/stdin";; 23448 *) # Look for the file first in the build tree, then in the source tree 23449 # (if the path is not absolute). The absolute path cannot be DOS-style, 23450 # because $ac_f cannot contain `:'. 23451 test -f "$ac_f" || 23452 case $ac_f in 23453 [\\/$]*) false;; 23454 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 23455 esac || 23456 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 23457$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 23458 { (exit 1); exit 1; }; };; 23459 esac 23460 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 23461 ac_file_inputs="$ac_file_inputs '$ac_f'" 23462 done 23463 23464 # Let's still pretend it is `configure' which instantiates (i.e., don't 23465 # use $as_me), people would be surprised to read: 23466 # /* config.h. Generated by config.status. */ 23467 configure_input='Generated from '` 23468 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 23469 `' by configure.' 23470 if test x"$ac_file" != x-; then 23471 configure_input="$ac_file. $configure_input" 23472 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 23473$as_echo "$as_me: creating $ac_file" >&6;} 23474 fi 23475 # Neutralize special characters interpreted by sed in replacement strings. 23476 case $configure_input in #( 23477 *\&* | *\|* | *\\* ) 23478 ac_sed_conf_input=`$as_echo "$configure_input" | 23479 sed 's/[\\\\&|]/\\\\&/g'`;; #( 23480 *) ac_sed_conf_input=$configure_input;; 23481 esac 23482 23483 case $ac_tag in 23484 *:-:* | *:-) cat >"$tmp/stdin" \ 23485 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 23486$as_echo "$as_me: error: could not create $ac_file" >&2;} 23487 { (exit 1); exit 1; }; } ;; 23488 esac 23489 ;; 23490 esac 23491 23492 ac_dir=`$as_dirname -- "$ac_file" || 23493$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23494 X"$ac_file" : 'X\(//\)[^/]' \| \ 23495 X"$ac_file" : 'X\(//\)$' \| \ 23496 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 23497$as_echo X"$ac_file" | 23498 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23499 s//\1/ 23500 q 23501 } 23502 /^X\(\/\/\)[^/].*/{ 23503 s//\1/ 23504 q 23505 } 23506 /^X\(\/\/\)$/{ 23507 s//\1/ 23508 q 23509 } 23510 /^X\(\/\).*/{ 23511 s//\1/ 23512 q 23513 } 23514 s/.*/./; q'` 23515 { as_dir="$ac_dir" 23516 case $as_dir in #( 23517 -*) as_dir=./$as_dir;; 23518 esac 23519 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 23520 as_dirs= 23521 while :; do 23522 case $as_dir in #( 23523 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 23524 *) as_qdir=$as_dir;; 23525 esac 23526 as_dirs="'$as_qdir' $as_dirs" 23527 as_dir=`$as_dirname -- "$as_dir" || 23528$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23529 X"$as_dir" : 'X\(//\)[^/]' \| \ 23530 X"$as_dir" : 'X\(//\)$' \| \ 23531 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23532$as_echo X"$as_dir" | 23533 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23534 s//\1/ 23535 q 23536 } 23537 /^X\(\/\/\)[^/].*/{ 23538 s//\1/ 23539 q 23540 } 23541 /^X\(\/\/\)$/{ 23542 s//\1/ 23543 q 23544 } 23545 /^X\(\/\).*/{ 23546 s//\1/ 23547 q 23548 } 23549 s/.*/./; q'` 23550 test -d "$as_dir" && break 23551 done 23552 test -z "$as_dirs" || eval "mkdir $as_dirs" 23553 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 23554$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 23555 { (exit 1); exit 1; }; }; } 23556 ac_builddir=. 23557 23558case "$ac_dir" in 23559.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23560*) 23561 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 23562 # A ".." for each directory in $ac_dir_suffix. 23563 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 23564 case $ac_top_builddir_sub in 23565 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23566 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23567 esac ;; 23568esac 23569ac_abs_top_builddir=$ac_pwd 23570ac_abs_builddir=$ac_pwd$ac_dir_suffix 23571# for backward compatibility: 23572ac_top_builddir=$ac_top_build_prefix 23573 23574case $srcdir in 23575 .) # We are building in place. 23576 ac_srcdir=. 23577 ac_top_srcdir=$ac_top_builddir_sub 23578 ac_abs_top_srcdir=$ac_pwd ;; 23579 [\\/]* | ?:[\\/]* ) # Absolute name. 23580 ac_srcdir=$srcdir$ac_dir_suffix; 23581 ac_top_srcdir=$srcdir 23582 ac_abs_top_srcdir=$srcdir ;; 23583 *) # Relative name. 23584 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23585 ac_top_srcdir=$ac_top_build_prefix$srcdir 23586 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23587esac 23588ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23589 23590 23591 case $ac_mode in 23592 :F) 23593 # 23594 # CONFIG_FILE 23595 # 23596 23597 case $INSTALL in 23598 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23599 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 23600 esac 23601 ac_MKDIR_P=$MKDIR_P 23602 case $MKDIR_P in 23603 [\\/$]* | ?:[\\/]* ) ;; 23604 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 23605 esac 23606_ACEOF 23607 23608cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23609# If the template does not know about datarootdir, expand it. 23610# FIXME: This hack should be removed a few years after 2.60. 23611ac_datarootdir_hack=; ac_datarootdir_seen= 23612 23613ac_sed_dataroot=' 23614/datarootdir/ { 23615 p 23616 q 23617} 23618/@datadir@/p 23619/@docdir@/p 23620/@infodir@/p 23621/@localedir@/p 23622/@mandir@/p 23623' 23624case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 23625*datarootdir*) ac_datarootdir_seen=yes;; 23626*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 23627 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 23628$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 23629_ACEOF 23630cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23631 ac_datarootdir_hack=' 23632 s&@datadir@&$datadir&g 23633 s&@docdir@&$docdir&g 23634 s&@infodir@&$infodir&g 23635 s&@localedir@&$localedir&g 23636 s&@mandir@&$mandir&g 23637 s&\\\${datarootdir}&$datarootdir&g' ;; 23638esac 23639_ACEOF 23640 23641# Neutralize VPATH when `$srcdir' = `.'. 23642# Shell code in configure.ac might set extrasub. 23643# FIXME: do we really want to maintain this feature? 23644cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23645ac_sed_extra="$ac_vpsub 23646$extrasub 23647_ACEOF 23648cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23649:t 23650/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23651s|@configure_input@|$ac_sed_conf_input|;t t 23652s&@top_builddir@&$ac_top_builddir_sub&;t t 23653s&@top_build_prefix@&$ac_top_build_prefix&;t t 23654s&@srcdir@&$ac_srcdir&;t t 23655s&@abs_srcdir@&$ac_abs_srcdir&;t t 23656s&@top_srcdir@&$ac_top_srcdir&;t t 23657s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 23658s&@builddir@&$ac_builddir&;t t 23659s&@abs_builddir@&$ac_abs_builddir&;t t 23660s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 23661s&@INSTALL@&$ac_INSTALL&;t t 23662s&@MKDIR_P@&$ac_MKDIR_P&;t t 23663$ac_datarootdir_hack 23664" 23665eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 23666 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 23667$as_echo "$as_me: error: could not create $ac_file" >&2;} 23668 { (exit 1); exit 1; }; } 23669 23670test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 23671 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 23672 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 23673 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23674which seems to be undefined. Please make sure it is defined." >&5 23675$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23676which seems to be undefined. Please make sure it is defined." >&2;} 23677 23678 rm -f "$tmp/stdin" 23679 case $ac_file in 23680 -) cat "$tmp/out" && rm -f "$tmp/out";; 23681 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 23682 esac \ 23683 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 23684$as_echo "$as_me: error: could not create $ac_file" >&2;} 23685 { (exit 1); exit 1; }; } 23686 ;; 23687 :H) 23688 # 23689 # CONFIG_HEADER 23690 # 23691 if test x"$ac_file" != x-; then 23692 { 23693 $as_echo "/* $configure_input */" \ 23694 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 23695 } >"$tmp/config.h" \ 23696 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 23697$as_echo "$as_me: error: could not create $ac_file" >&2;} 23698 { (exit 1); exit 1; }; } 23699 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 23700 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 23701$as_echo "$as_me: $ac_file is unchanged" >&6;} 23702 else 23703 rm -f "$ac_file" 23704 mv "$tmp/config.h" "$ac_file" \ 23705 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 23706$as_echo "$as_me: error: could not create $ac_file" >&2;} 23707 { (exit 1); exit 1; }; } 23708 fi 23709 else 23710 $as_echo "/* $configure_input */" \ 23711 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 23712 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 23713$as_echo "$as_me: error: could not create -" >&2;} 23714 { (exit 1); exit 1; }; } 23715 fi 23716# Compute "$ac_file"'s index in $config_headers. 23717_am_arg="$ac_file" 23718_am_stamp_count=1 23719for _am_header in $config_headers :; do 23720 case $_am_header in 23721 $_am_arg | $_am_arg:* ) 23722 break ;; 23723 * ) 23724 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 23725 esac 23726done 23727echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 23728$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23729 X"$_am_arg" : 'X\(//\)[^/]' \| \ 23730 X"$_am_arg" : 'X\(//\)$' \| \ 23731 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 23732$as_echo X"$_am_arg" | 23733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23734 s//\1/ 23735 q 23736 } 23737 /^X\(\/\/\)[^/].*/{ 23738 s//\1/ 23739 q 23740 } 23741 /^X\(\/\/\)$/{ 23742 s//\1/ 23743 q 23744 } 23745 /^X\(\/\).*/{ 23746 s//\1/ 23747 q 23748 } 23749 s/.*/./; q'`/stamp-h$_am_stamp_count 23750 ;; 23751 23752 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 23753$as_echo "$as_me: executing $ac_file commands" >&6;} 23754 ;; 23755 esac 23756 23757 23758 case $ac_file$ac_mode in 23759 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 23760 # Autoconf 2.62 quotes --file arguments for eval, but not when files 23761 # are listed without --file. Let's play safe and only enable the eval 23762 # if we detect the quoting. 23763 case $CONFIG_FILES in 23764 *\'*) eval set x "$CONFIG_FILES" ;; 23765 *) set x $CONFIG_FILES ;; 23766 esac 23767 shift 23768 for mf 23769 do 23770 # Strip MF so we end up with the name of the file. 23771 mf=`echo "$mf" | sed -e 's/:.*$//'` 23772 # Check whether this is an Automake generated Makefile or not. 23773 # We used to match only the files named `Makefile.in', but 23774 # some people rename them; so instead we look at the file content. 23775 # Grep'ing the first line is not enough: some people post-process 23776 # each Makefile.in and add a new line on top of each file to say so. 23777 # Grep'ing the whole file is not good either: AIX grep has a line 23778 # limit of 2048, but all sed's we know have understand at least 4000. 23779 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 23780 dirpart=`$as_dirname -- "$mf" || 23781$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23782 X"$mf" : 'X\(//\)[^/]' \| \ 23783 X"$mf" : 'X\(//\)$' \| \ 23784 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 23785$as_echo X"$mf" | 23786 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23787 s//\1/ 23788 q 23789 } 23790 /^X\(\/\/\)[^/].*/{ 23791 s//\1/ 23792 q 23793 } 23794 /^X\(\/\/\)$/{ 23795 s//\1/ 23796 q 23797 } 23798 /^X\(\/\).*/{ 23799 s//\1/ 23800 q 23801 } 23802 s/.*/./; q'` 23803 else 23804 continue 23805 fi 23806 # Extract the definition of DEPDIR, am__include, and am__quote 23807 # from the Makefile without running `make'. 23808 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 23809 test -z "$DEPDIR" && continue 23810 am__include=`sed -n 's/^am__include = //p' < "$mf"` 23811 test -z "am__include" && continue 23812 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 23813 # When using ansi2knr, U may be empty or an underscore; expand it 23814 U=`sed -n 's/^U = //p' < "$mf"` 23815 # Find all dependency output files, they are included files with 23816 # $(DEPDIR) in their names. We invoke sed twice because it is the 23817 # simplest approach to changing $(DEPDIR) to its actual value in the 23818 # expansion. 23819 for file in `sed -n " 23820 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 23821 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 23822 # Make sure the directory exists. 23823 test -f "$dirpart/$file" && continue 23824 fdir=`$as_dirname -- "$file" || 23825$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23826 X"$file" : 'X\(//\)[^/]' \| \ 23827 X"$file" : 'X\(//\)$' \| \ 23828 X"$file" : 'X\(/\)' \| . 2>/dev/null || 23829$as_echo X"$file" | 23830 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23831 s//\1/ 23832 q 23833 } 23834 /^X\(\/\/\)[^/].*/{ 23835 s//\1/ 23836 q 23837 } 23838 /^X\(\/\/\)$/{ 23839 s//\1/ 23840 q 23841 } 23842 /^X\(\/\).*/{ 23843 s//\1/ 23844 q 23845 } 23846 s/.*/./; q'` 23847 { as_dir=$dirpart/$fdir 23848 case $as_dir in #( 23849 -*) as_dir=./$as_dir;; 23850 esac 23851 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 23852 as_dirs= 23853 while :; do 23854 case $as_dir in #( 23855 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 23856 *) as_qdir=$as_dir;; 23857 esac 23858 as_dirs="'$as_qdir' $as_dirs" 23859 as_dir=`$as_dirname -- "$as_dir" || 23860$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23861 X"$as_dir" : 'X\(//\)[^/]' \| \ 23862 X"$as_dir" : 'X\(//\)$' \| \ 23863 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23864$as_echo X"$as_dir" | 23865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23866 s//\1/ 23867 q 23868 } 23869 /^X\(\/\/\)[^/].*/{ 23870 s//\1/ 23871 q 23872 } 23873 /^X\(\/\/\)$/{ 23874 s//\1/ 23875 q 23876 } 23877 /^X\(\/\).*/{ 23878 s//\1/ 23879 q 23880 } 23881 s/.*/./; q'` 23882 test -d "$as_dir" && break 23883 done 23884 test -z "$as_dirs" || eval "mkdir $as_dirs" 23885 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 23886$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 23887 { (exit 1); exit 1; }; }; } 23888 # echo "creating $dirpart/$file" 23889 echo '# dummy' > "$dirpart/$file" 23890 done 23891 done 23892} 23893 ;; 23894 23895 esac 23896done # for ac_tag 23897 23898 23899{ (exit 0); exit 0; } 23900_ACEOF 23901chmod +x $CONFIG_STATUS 23902ac_clean_files=$ac_clean_files_save 23903 23904test $ac_write_fail = 0 || 23905 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 23906$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 23907 { (exit 1); exit 1; }; } 23908 23909 23910# configure is writing to config.log, and then calls config.status. 23911# config.status does its own redirection, appending to config.log. 23912# Unfortunately, on DOS this fails, as config.log is still kept open 23913# by configure, so config.status won't be able to write to it; its 23914# output is simply discarded. So we exec the FD to /dev/null, 23915# effectively closing config.log, so it can be properly (re)opened and 23916# appended to by config.status. When coming back to configure, we 23917# need to make the FD available again. 23918if test "$no_create" != yes; then 23919 ac_cs_success=: 23920 ac_config_status_args= 23921 test "$silent" = yes && 23922 ac_config_status_args="$ac_config_status_args --quiet" 23923 exec 5>/dev/null 23924 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23925 exec 5>>config.log 23926 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23927 # would make configure fail if this is the last instruction. 23928 $ac_cs_success || { (exit 1); exit 1; } 23929fi 23930if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 23931 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 23932$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 23933fi 23934 23935