configure revision 962c3257
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.63 for xf86-video-tseng 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-tseng' 752PACKAGE_TARNAME='xf86-video-tseng' 753PACKAGE_VERSION='1.2.1' 754PACKAGE_STRING='xf86-video-tseng 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='LTLIBOBJS 795LIBOBJS 796ADMIN_MAN_DIR 797DRIVER_MAN_DIR 798MISC_MAN_DIR 799FILE_MAN_DIR 800LIB_MAN_DIR 801APP_MAN_DIR 802ADMIN_MAN_SUFFIX 803DRIVER_MAN_SUFFIX 804MISC_MAN_SUFFIX 805FILE_MAN_SUFFIX 806LIB_MAN_SUFFIX 807APP_MAN_SUFFIX 808DRIVER_NAME 809moduledir 810XSERVER_LIBPCIACCESS_FALSE 811XSERVER_LIBPCIACCESS_TRUE 812PCIACCESS_LIBS 813PCIACCESS_CFLAGS 814XORG_LIBS 815XORG_CFLAGS 816PKG_CONFIG 817LIBTOOL 818ac_ct_F77 819FFLAGS 820F77 821CXXCPP 822am__fastdepCXX_FALSE 823am__fastdepCXX_TRUE 824CXXDEPMODE 825ac_ct_CXX 826CXXFLAGS 827CXX 828CPP 829NMEDIT 830DSYMUTIL 831RANLIB 832AR 833ECHO 834LN_S 835EGREP 836GREP 837SED 838am__fastdepCC_FALSE 839am__fastdepCC_TRUE 840CCDEPMODE 841AMDEPBACKSLASH 842AMDEP_FALSE 843AMDEP_TRUE 844am__quote 845am__include 846DEPDIR 847OBJEXT 848EXEEXT 849ac_ct_CC 850CPPFLAGS 851LDFLAGS 852CFLAGS 853CC 854host_os 855host_vendor 856host_cpu 857host 858build_os 859build_vendor 860build_cpu 861build 862MAINT 863MAINTAINER_MODE_FALSE 864MAINTAINER_MODE_TRUE 865am__untar 866am__tar 867AMTAR 868am__leading_dot 869SET_MAKE 870AWK 871mkdir_p 872MKDIR_P 873INSTALL_STRIP_PROGRAM 874STRIP 875install_sh 876MAKEINFO 877AUTOHEADER 878AUTOMAKE 879AUTOCONF 880ACLOCAL 881VERSION 882PACKAGE 883CYGPATH_W 884am__isrc 885INSTALL_DATA 886INSTALL_SCRIPT 887INSTALL_PROGRAM 888target_alias 889host_alias 890build_alias 891LIBS 892ECHO_T 893ECHO_N 894ECHO_C 895DEFS 896mandir 897localedir 898libdir 899psdir 900pdfdir 901dvidir 902htmldir 903infodir 904docdir 905oldincludedir 906includedir 907localstatedir 908sharedstatedir 909sysconfdir 910datadir 911datarootdir 912libexecdir 913sbindir 914bindir 915program_transform_name 916prefix 917exec_prefix 918PACKAGE_BUGREPORT 919PACKAGE_STRING 920PACKAGE_VERSION 921PACKAGE_TARNAME 922PACKAGE_NAME 923PATH_SEPARATOR 924SHELL' 925ac_subst_files='' 926ac_user_opts=' 927enable_option_checking 928enable_maintainer_mode 929enable_static 930enable_shared 931enable_fast_install 932enable_dependency_tracking 933with_gnu_ld 934enable_libtool_lock 935with_pic 936with_tags 937with_xorg_module_dir 938with_release_version 939' 940 ac_precious_vars='build_alias 941host_alias 942target_alias 943CC 944CFLAGS 945LDFLAGS 946LIBS 947CPPFLAGS 948CPP 949CXX 950CXXFLAGS 951CCC 952CXXCPP 953F77 954FFLAGS 955PKG_CONFIG 956XORG_CFLAGS 957XORG_LIBS 958PCIACCESS_CFLAGS 959PCIACCESS_LIBS' 960 961 962# Initialize some variables set by options. 963ac_init_help= 964ac_init_version=false 965ac_unrecognized_opts= 966ac_unrecognized_sep= 967# The variables have the same names as the options, with 968# dashes changed to underlines. 969cache_file=/dev/null 970exec_prefix=NONE 971no_create= 972no_recursion= 973prefix=NONE 974program_prefix=NONE 975program_suffix=NONE 976program_transform_name=s,x,x, 977silent= 978site= 979srcdir= 980verbose= 981x_includes=NONE 982x_libraries=NONE 983 984# Installation directory options. 985# These are left unexpanded so users can "make install exec_prefix=/foo" 986# and all the variables that are supposed to be based on exec_prefix 987# by default will actually change. 988# Use braces instead of parens because sh, perl, etc. also accept them. 989# (The list follows the same order as the GNU Coding Standards.) 990bindir='${exec_prefix}/bin' 991sbindir='${exec_prefix}/sbin' 992libexecdir='${exec_prefix}/libexec' 993datarootdir='${prefix}/share' 994datadir='${datarootdir}' 995sysconfdir='${prefix}/etc' 996sharedstatedir='${prefix}/com' 997localstatedir='${prefix}/var' 998includedir='${prefix}/include' 999oldincludedir='/usr/include' 1000docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1001infodir='${datarootdir}/info' 1002htmldir='${docdir}' 1003dvidir='${docdir}' 1004pdfdir='${docdir}' 1005psdir='${docdir}' 1006libdir='${exec_prefix}/lib' 1007localedir='${datarootdir}/locale' 1008mandir='${datarootdir}/man' 1009 1010ac_prev= 1011ac_dashdash= 1012for ac_option 1013do 1014 # If the previous option needs an argument, assign it. 1015 if test -n "$ac_prev"; then 1016 eval $ac_prev=\$ac_option 1017 ac_prev= 1018 continue 1019 fi 1020 1021 case $ac_option in 1022 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1023 *) ac_optarg=yes ;; 1024 esac 1025 1026 # Accept the important Cygnus configure options, so we can diagnose typos. 1027 1028 case $ac_dashdash$ac_option in 1029 --) 1030 ac_dashdash=yes ;; 1031 1032 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1033 ac_prev=bindir ;; 1034 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1035 bindir=$ac_optarg ;; 1036 1037 -build | --build | --buil | --bui | --bu) 1038 ac_prev=build_alias ;; 1039 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1040 build_alias=$ac_optarg ;; 1041 1042 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1043 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1044 ac_prev=cache_file ;; 1045 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1046 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1047 cache_file=$ac_optarg ;; 1048 1049 --config-cache | -C) 1050 cache_file=config.cache ;; 1051 1052 -datadir | --datadir | --datadi | --datad) 1053 ac_prev=datadir ;; 1054 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1055 datadir=$ac_optarg ;; 1056 1057 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1058 | --dataroo | --dataro | --datar) 1059 ac_prev=datarootdir ;; 1060 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1061 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1062 datarootdir=$ac_optarg ;; 1063 1064 -disable-* | --disable-*) 1065 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1066 # Reject names that are not valid shell variable names. 1067 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1068 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1069 { (exit 1); exit 1; }; } 1070 ac_useropt_orig=$ac_useropt 1071 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1072 case $ac_user_opts in 1073 *" 1074"enable_$ac_useropt" 1075"*) ;; 1076 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1077 ac_unrecognized_sep=', ';; 1078 esac 1079 eval enable_$ac_useropt=no ;; 1080 1081 -docdir | --docdir | --docdi | --doc | --do) 1082 ac_prev=docdir ;; 1083 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1084 docdir=$ac_optarg ;; 1085 1086 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1087 ac_prev=dvidir ;; 1088 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1089 dvidir=$ac_optarg ;; 1090 1091 -enable-* | --enable-*) 1092 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1093 # Reject names that are not valid shell variable names. 1094 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1095 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1096 { (exit 1); exit 1; }; } 1097 ac_useropt_orig=$ac_useropt 1098 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1099 case $ac_user_opts in 1100 *" 1101"enable_$ac_useropt" 1102"*) ;; 1103 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1104 ac_unrecognized_sep=', ';; 1105 esac 1106 eval enable_$ac_useropt=\$ac_optarg ;; 1107 1108 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1109 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1110 | --exec | --exe | --ex) 1111 ac_prev=exec_prefix ;; 1112 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1113 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1114 | --exec=* | --exe=* | --ex=*) 1115 exec_prefix=$ac_optarg ;; 1116 1117 -gas | --gas | --ga | --g) 1118 # Obsolete; use --with-gas. 1119 with_gas=yes ;; 1120 1121 -help | --help | --hel | --he | -h) 1122 ac_init_help=long ;; 1123 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1124 ac_init_help=recursive ;; 1125 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1126 ac_init_help=short ;; 1127 1128 -host | --host | --hos | --ho) 1129 ac_prev=host_alias ;; 1130 -host=* | --host=* | --hos=* | --ho=*) 1131 host_alias=$ac_optarg ;; 1132 1133 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1134 ac_prev=htmldir ;; 1135 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1136 | --ht=*) 1137 htmldir=$ac_optarg ;; 1138 1139 -includedir | --includedir | --includedi | --included | --include \ 1140 | --includ | --inclu | --incl | --inc) 1141 ac_prev=includedir ;; 1142 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1143 | --includ=* | --inclu=* | --incl=* | --inc=*) 1144 includedir=$ac_optarg ;; 1145 1146 -infodir | --infodir | --infodi | --infod | --info | --inf) 1147 ac_prev=infodir ;; 1148 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1149 infodir=$ac_optarg ;; 1150 1151 -libdir | --libdir | --libdi | --libd) 1152 ac_prev=libdir ;; 1153 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1154 libdir=$ac_optarg ;; 1155 1156 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1157 | --libexe | --libex | --libe) 1158 ac_prev=libexecdir ;; 1159 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1160 | --libexe=* | --libex=* | --libe=*) 1161 libexecdir=$ac_optarg ;; 1162 1163 -localedir | --localedir | --localedi | --localed | --locale) 1164 ac_prev=localedir ;; 1165 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1166 localedir=$ac_optarg ;; 1167 1168 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1169 | --localstate | --localstat | --localsta | --localst | --locals) 1170 ac_prev=localstatedir ;; 1171 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1172 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1173 localstatedir=$ac_optarg ;; 1174 1175 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1176 ac_prev=mandir ;; 1177 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1178 mandir=$ac_optarg ;; 1179 1180 -nfp | --nfp | --nf) 1181 # Obsolete; use --without-fp. 1182 with_fp=no ;; 1183 1184 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1185 | --no-cr | --no-c | -n) 1186 no_create=yes ;; 1187 1188 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1189 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1190 no_recursion=yes ;; 1191 1192 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1193 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1194 | --oldin | --oldi | --old | --ol | --o) 1195 ac_prev=oldincludedir ;; 1196 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1197 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1198 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1199 oldincludedir=$ac_optarg ;; 1200 1201 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1202 ac_prev=prefix ;; 1203 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1204 prefix=$ac_optarg ;; 1205 1206 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1207 | --program-pre | --program-pr | --program-p) 1208 ac_prev=program_prefix ;; 1209 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1210 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1211 program_prefix=$ac_optarg ;; 1212 1213 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1214 | --program-suf | --program-su | --program-s) 1215 ac_prev=program_suffix ;; 1216 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1217 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1218 program_suffix=$ac_optarg ;; 1219 1220 -program-transform-name | --program-transform-name \ 1221 | --program-transform-nam | --program-transform-na \ 1222 | --program-transform-n | --program-transform- \ 1223 | --program-transform | --program-transfor \ 1224 | --program-transfo | --program-transf \ 1225 | --program-trans | --program-tran \ 1226 | --progr-tra | --program-tr | --program-t) 1227 ac_prev=program_transform_name ;; 1228 -program-transform-name=* | --program-transform-name=* \ 1229 | --program-transform-nam=* | --program-transform-na=* \ 1230 | --program-transform-n=* | --program-transform-=* \ 1231 | --program-transform=* | --program-transfor=* \ 1232 | --program-transfo=* | --program-transf=* \ 1233 | --program-trans=* | --program-tran=* \ 1234 | --progr-tra=* | --program-tr=* | --program-t=*) 1235 program_transform_name=$ac_optarg ;; 1236 1237 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1238 ac_prev=pdfdir ;; 1239 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1240 pdfdir=$ac_optarg ;; 1241 1242 -psdir | --psdir | --psdi | --psd | --ps) 1243 ac_prev=psdir ;; 1244 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1245 psdir=$ac_optarg ;; 1246 1247 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1248 | -silent | --silent | --silen | --sile | --sil) 1249 silent=yes ;; 1250 1251 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1252 ac_prev=sbindir ;; 1253 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1254 | --sbi=* | --sb=*) 1255 sbindir=$ac_optarg ;; 1256 1257 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1258 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1259 | --sharedst | --shareds | --shared | --share | --shar \ 1260 | --sha | --sh) 1261 ac_prev=sharedstatedir ;; 1262 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1263 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1264 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1265 | --sha=* | --sh=*) 1266 sharedstatedir=$ac_optarg ;; 1267 1268 -site | --site | --sit) 1269 ac_prev=site ;; 1270 -site=* | --site=* | --sit=*) 1271 site=$ac_optarg ;; 1272 1273 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1274 ac_prev=srcdir ;; 1275 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1276 srcdir=$ac_optarg ;; 1277 1278 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1279 | --syscon | --sysco | --sysc | --sys | --sy) 1280 ac_prev=sysconfdir ;; 1281 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1282 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1283 sysconfdir=$ac_optarg ;; 1284 1285 -target | --target | --targe | --targ | --tar | --ta | --t) 1286 ac_prev=target_alias ;; 1287 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1288 target_alias=$ac_optarg ;; 1289 1290 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1291 verbose=yes ;; 1292 1293 -version | --version | --versio | --versi | --vers | -V) 1294 ac_init_version=: ;; 1295 1296 -with-* | --with-*) 1297 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1298 # Reject names that are not valid shell variable names. 1299 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1300 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1301 { (exit 1); exit 1; }; } 1302 ac_useropt_orig=$ac_useropt 1303 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1304 case $ac_user_opts in 1305 *" 1306"with_$ac_useropt" 1307"*) ;; 1308 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1309 ac_unrecognized_sep=', ';; 1310 esac 1311 eval with_$ac_useropt=\$ac_optarg ;; 1312 1313 -without-* | --without-*) 1314 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1315 # Reject names that are not valid shell variable names. 1316 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1317 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1318 { (exit 1); exit 1; }; } 1319 ac_useropt_orig=$ac_useropt 1320 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1321 case $ac_user_opts in 1322 *" 1323"with_$ac_useropt" 1324"*) ;; 1325 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1326 ac_unrecognized_sep=', ';; 1327 esac 1328 eval with_$ac_useropt=no ;; 1329 1330 --x) 1331 # Obsolete; use --with-x. 1332 with_x=yes ;; 1333 1334 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1335 | --x-incl | --x-inc | --x-in | --x-i) 1336 ac_prev=x_includes ;; 1337 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1338 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1339 x_includes=$ac_optarg ;; 1340 1341 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1342 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1343 ac_prev=x_libraries ;; 1344 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1345 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1346 x_libraries=$ac_optarg ;; 1347 1348 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1349Try \`$0 --help' for more information." >&2 1350 { (exit 1); exit 1; }; } 1351 ;; 1352 1353 *=*) 1354 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1355 # Reject names that are not valid shell variable names. 1356 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1357 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1358 { (exit 1); exit 1; }; } 1359 eval $ac_envvar=\$ac_optarg 1360 export $ac_envvar ;; 1361 1362 *) 1363 # FIXME: should be removed in autoconf 3.0. 1364 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1365 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1366 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1367 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1368 ;; 1369 1370 esac 1371done 1372 1373if test -n "$ac_prev"; then 1374 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1375 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1376 { (exit 1); exit 1; }; } 1377fi 1378 1379if test -n "$ac_unrecognized_opts"; then 1380 case $enable_option_checking in 1381 no) ;; 1382 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1383 { (exit 1); exit 1; }; } ;; 1384 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1385 esac 1386fi 1387 1388# Check all directory arguments for consistency. 1389for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1390 datadir sysconfdir sharedstatedir localstatedir includedir \ 1391 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1392 libdir localedir mandir 1393do 1394 eval ac_val=\$$ac_var 1395 # Remove trailing slashes. 1396 case $ac_val in 1397 */ ) 1398 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1399 eval $ac_var=\$ac_val;; 1400 esac 1401 # Be sure to have absolute directory names. 1402 case $ac_val in 1403 [\\/$]* | ?:[\\/]* ) continue;; 1404 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1405 esac 1406 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1407 { (exit 1); exit 1; }; } 1408done 1409 1410# There might be people who depend on the old broken behavior: `$host' 1411# used to hold the argument of --host etc. 1412# FIXME: To remove some day. 1413build=$build_alias 1414host=$host_alias 1415target=$target_alias 1416 1417# FIXME: To remove some day. 1418if test "x$host_alias" != x; then 1419 if test "x$build_alias" = x; then 1420 cross_compiling=maybe 1421 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1422 If a cross compiler is detected then cross compile mode will be used." >&2 1423 elif test "x$build_alias" != "x$host_alias"; then 1424 cross_compiling=yes 1425 fi 1426fi 1427 1428ac_tool_prefix= 1429test -n "$host_alias" && ac_tool_prefix=$host_alias- 1430 1431test "$silent" = yes && exec 6>/dev/null 1432 1433 1434ac_pwd=`pwd` && test -n "$ac_pwd" && 1435ac_ls_di=`ls -di .` && 1436ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1437 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1438 { (exit 1); exit 1; }; } 1439test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1440 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1441 { (exit 1); exit 1; }; } 1442 1443 1444# Find the source files, if location was not specified. 1445if test -z "$srcdir"; then 1446 ac_srcdir_defaulted=yes 1447 # Try the directory containing this script, then the parent directory. 1448 ac_confdir=`$as_dirname -- "$as_myself" || 1449$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1450 X"$as_myself" : 'X\(//\)[^/]' \| \ 1451 X"$as_myself" : 'X\(//\)$' \| \ 1452 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1453$as_echo X"$as_myself" | 1454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1455 s//\1/ 1456 q 1457 } 1458 /^X\(\/\/\)[^/].*/{ 1459 s//\1/ 1460 q 1461 } 1462 /^X\(\/\/\)$/{ 1463 s//\1/ 1464 q 1465 } 1466 /^X\(\/\).*/{ 1467 s//\1/ 1468 q 1469 } 1470 s/.*/./; q'` 1471 srcdir=$ac_confdir 1472 if test ! -r "$srcdir/$ac_unique_file"; then 1473 srcdir=.. 1474 fi 1475else 1476 ac_srcdir_defaulted=no 1477fi 1478if test ! -r "$srcdir/$ac_unique_file"; then 1479 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1480 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1481 { (exit 1); exit 1; }; } 1482fi 1483ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1484ac_abs_confdir=`( 1485 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1486 { (exit 1); exit 1; }; } 1487 pwd)` 1488# When building in place, set srcdir=. 1489if test "$ac_abs_confdir" = "$ac_pwd"; then 1490 srcdir=. 1491fi 1492# Remove unnecessary trailing slashes from srcdir. 1493# Double slashes in file names in object file debugging info 1494# mess up M-x gdb in Emacs. 1495case $srcdir in 1496*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1497esac 1498for ac_var in $ac_precious_vars; do 1499 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1500 eval ac_env_${ac_var}_value=\$${ac_var} 1501 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1502 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1503done 1504 1505# 1506# Report the --help message. 1507# 1508if test "$ac_init_help" = "long"; then 1509 # Omit some internal or obsolete options to make the list less imposing. 1510 # This message is too long to be a string in the A/UX 3.1 sh. 1511 cat <<_ACEOF 1512\`configure' configures xf86-video-tseng 1.2.1 to adapt to many kinds of systems. 1513 1514Usage: $0 [OPTION]... [VAR=VALUE]... 1515 1516To assign environment variables (e.g., CC, CFLAGS...), specify them as 1517VAR=VALUE. See below for descriptions of some of the useful variables. 1518 1519Defaults for the options are specified in brackets. 1520 1521Configuration: 1522 -h, --help display this help and exit 1523 --help=short display options specific to this package 1524 --help=recursive display the short help of all the included packages 1525 -V, --version display version information and exit 1526 -q, --quiet, --silent do not print \`checking...' messages 1527 --cache-file=FILE cache test results in FILE [disabled] 1528 -C, --config-cache alias for \`--cache-file=config.cache' 1529 -n, --no-create do not create output files 1530 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1531 1532Installation directories: 1533 --prefix=PREFIX install architecture-independent files in PREFIX 1534 [$ac_default_prefix] 1535 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1536 [PREFIX] 1537 1538By default, \`make install' will install all the files in 1539\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1540an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1541for instance \`--prefix=\$HOME'. 1542 1543For better control, use the options below. 1544 1545Fine tuning of the installation directories: 1546 --bindir=DIR user executables [EPREFIX/bin] 1547 --sbindir=DIR system admin executables [EPREFIX/sbin] 1548 --libexecdir=DIR program executables [EPREFIX/libexec] 1549 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1550 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1551 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1552 --libdir=DIR object code libraries [EPREFIX/lib] 1553 --includedir=DIR C header files [PREFIX/include] 1554 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1555 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1556 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1557 --infodir=DIR info documentation [DATAROOTDIR/info] 1558 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1559 --mandir=DIR man documentation [DATAROOTDIR/man] 1560 --docdir=DIR documentation root 1561 [DATAROOTDIR/doc/xf86-video-tseng] 1562 --htmldir=DIR html documentation [DOCDIR] 1563 --dvidir=DIR dvi documentation [DOCDIR] 1564 --pdfdir=DIR pdf documentation [DOCDIR] 1565 --psdir=DIR ps documentation [DOCDIR] 1566_ACEOF 1567 1568 cat <<\_ACEOF 1569 1570Program names: 1571 --program-prefix=PREFIX prepend PREFIX to installed program names 1572 --program-suffix=SUFFIX append SUFFIX to installed program names 1573 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1574 1575System types: 1576 --build=BUILD configure for building on BUILD [guessed] 1577 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1578_ACEOF 1579fi 1580 1581if test -n "$ac_init_help"; then 1582 case $ac_init_help in 1583 short | recursive ) echo "Configuration of xf86-video-tseng 1.2.1:";; 1584 esac 1585 cat <<\_ACEOF 1586 1587Optional Features: 1588 --disable-option-checking ignore unrecognized --enable/--with options 1589 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1590 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1591 --enable-maintainer-mode enable make rules and dependencies not useful 1592 (and sometimes confusing) to the casual installer 1593 --enable-static[=PKGS] build static libraries [default=no] 1594 --enable-shared[=PKGS] build shared libraries [default=yes] 1595 --enable-fast-install[=PKGS] 1596 optimize for fast installation [default=yes] 1597 --disable-dependency-tracking speeds up one-time build 1598 --enable-dependency-tracking do not reject slow dependency extractors 1599 --disable-libtool-lock avoid locking (might break parallel builds) 1600 1601Optional Packages: 1602 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1603 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1604 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1605 --with-pic try to use only PIC/non-PIC objects [default=use 1606 both] 1607 --with-tags[=TAGS] include additional configurations [automatic] 1608 --with-xorg-module-dir=DIR 1609 Default xorg module directory 1610 [default=$libdir/xorg/modules] 1611 --with-release-version=STRING 1612 Use release version string in package name 1613 1614Some influential environment variables: 1615 CC C compiler command 1616 CFLAGS C compiler flags 1617 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1618 nonstandard directory <lib dir> 1619 LIBS libraries to pass to the linker, e.g. -l<library> 1620 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1621 you have headers in a nonstandard directory <include dir> 1622 CPP C preprocessor 1623 CXX C++ compiler command 1624 CXXFLAGS C++ compiler flags 1625 CXXCPP C++ preprocessor 1626 F77 Fortran 77 compiler command 1627 FFLAGS Fortran 77 compiler flags 1628 PKG_CONFIG path to pkg-config utility 1629 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1630 XORG_LIBS linker flags for XORG, overriding pkg-config 1631 PCIACCESS_CFLAGS 1632 C compiler flags for PCIACCESS, overriding pkg-config 1633 PCIACCESS_LIBS 1634 linker flags for PCIACCESS, overriding pkg-config 1635 1636Use these variables to override the choices made by `configure' or to help 1637it to find libraries and programs with nonstandard names/locations. 1638 1639Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1640_ACEOF 1641ac_status=$? 1642fi 1643 1644if test "$ac_init_help" = "recursive"; then 1645 # If there are subdirs, report their specific --help. 1646 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1647 test -d "$ac_dir" || 1648 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1649 continue 1650 ac_builddir=. 1651 1652case "$ac_dir" in 1653.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1654*) 1655 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1656 # A ".." for each directory in $ac_dir_suffix. 1657 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1658 case $ac_top_builddir_sub in 1659 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1660 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1661 esac ;; 1662esac 1663ac_abs_top_builddir=$ac_pwd 1664ac_abs_builddir=$ac_pwd$ac_dir_suffix 1665# for backward compatibility: 1666ac_top_builddir=$ac_top_build_prefix 1667 1668case $srcdir in 1669 .) # We are building in place. 1670 ac_srcdir=. 1671 ac_top_srcdir=$ac_top_builddir_sub 1672 ac_abs_top_srcdir=$ac_pwd ;; 1673 [\\/]* | ?:[\\/]* ) # Absolute name. 1674 ac_srcdir=$srcdir$ac_dir_suffix; 1675 ac_top_srcdir=$srcdir 1676 ac_abs_top_srcdir=$srcdir ;; 1677 *) # Relative name. 1678 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1679 ac_top_srcdir=$ac_top_build_prefix$srcdir 1680 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1681esac 1682ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1683 1684 cd "$ac_dir" || { ac_status=$?; continue; } 1685 # Check for guested configure. 1686 if test -f "$ac_srcdir/configure.gnu"; then 1687 echo && 1688 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1689 elif test -f "$ac_srcdir/configure"; then 1690 echo && 1691 $SHELL "$ac_srcdir/configure" --help=recursive 1692 else 1693 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1694 fi || ac_status=$? 1695 cd "$ac_pwd" || { ac_status=$?; break; } 1696 done 1697fi 1698 1699test -n "$ac_init_help" && exit $ac_status 1700if $ac_init_version; then 1701 cat <<\_ACEOF 1702xf86-video-tseng configure 1.2.1 1703generated by GNU Autoconf 2.63 1704 1705Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 17062002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1707This configure script is free software; the Free Software Foundation 1708gives unlimited permission to copy, distribute and modify it. 1709_ACEOF 1710 exit 1711fi 1712cat >config.log <<_ACEOF 1713This file contains any messages produced by compilers while 1714running configure, to aid debugging if configure makes a mistake. 1715 1716It was created by xf86-video-tseng $as_me 1.2.1, which was 1717generated by GNU Autoconf 2.63. Invocation command line was 1718 1719 $ $0 $@ 1720 1721_ACEOF 1722exec 5>>config.log 1723{ 1724cat <<_ASUNAME 1725## --------- ## 1726## Platform. ## 1727## --------- ## 1728 1729hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1730uname -m = `(uname -m) 2>/dev/null || echo unknown` 1731uname -r = `(uname -r) 2>/dev/null || echo unknown` 1732uname -s = `(uname -s) 2>/dev/null || echo unknown` 1733uname -v = `(uname -v) 2>/dev/null || echo unknown` 1734 1735/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1736/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1737 1738/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1739/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1740/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1741/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1742/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1743/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1744/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1745 1746_ASUNAME 1747 1748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1749for as_dir in $PATH 1750do 1751 IFS=$as_save_IFS 1752 test -z "$as_dir" && as_dir=. 1753 $as_echo "PATH: $as_dir" 1754done 1755IFS=$as_save_IFS 1756 1757} >&5 1758 1759cat >&5 <<_ACEOF 1760 1761 1762## ----------- ## 1763## Core tests. ## 1764## ----------- ## 1765 1766_ACEOF 1767 1768 1769# Keep a trace of the command line. 1770# Strip out --no-create and --no-recursion so they do not pile up. 1771# Strip out --silent because we don't want to record it for future runs. 1772# Also quote any args containing shell meta-characters. 1773# Make two passes to allow for proper duplicate-argument suppression. 1774ac_configure_args= 1775ac_configure_args0= 1776ac_configure_args1= 1777ac_must_keep_next=false 1778for ac_pass in 1 2 1779do 1780 for ac_arg 1781 do 1782 case $ac_arg in 1783 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1784 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1785 | -silent | --silent | --silen | --sile | --sil) 1786 continue ;; 1787 *\'*) 1788 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1789 esac 1790 case $ac_pass in 1791 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1792 2) 1793 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1794 if test $ac_must_keep_next = true; then 1795 ac_must_keep_next=false # Got value, back to normal. 1796 else 1797 case $ac_arg in 1798 *=* | --config-cache | -C | -disable-* | --disable-* \ 1799 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1800 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1801 | -with-* | --with-* | -without-* | --without-* | --x) 1802 case "$ac_configure_args0 " in 1803 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1804 esac 1805 ;; 1806 -* ) ac_must_keep_next=true ;; 1807 esac 1808 fi 1809 ac_configure_args="$ac_configure_args '$ac_arg'" 1810 ;; 1811 esac 1812 done 1813done 1814$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1815$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1816 1817# When interrupted or exit'd, cleanup temporary files, and complete 1818# config.log. We remove comments because anyway the quotes in there 1819# would cause problems or look ugly. 1820# WARNING: Use '\'' to represent an apostrophe within the trap. 1821# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1822trap 'exit_status=$? 1823 # Save into config.log some information that might help in debugging. 1824 { 1825 echo 1826 1827 cat <<\_ASBOX 1828## ---------------- ## 1829## Cache variables. ## 1830## ---------------- ## 1831_ASBOX 1832 echo 1833 # The following way of writing the cache mishandles newlines in values, 1834( 1835 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1836 eval ac_val=\$$ac_var 1837 case $ac_val in #( 1838 *${as_nl}*) 1839 case $ac_var in #( 1840 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1841$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1842 esac 1843 case $ac_var in #( 1844 _ | IFS | as_nl) ;; #( 1845 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1846 *) $as_unset $ac_var ;; 1847 esac ;; 1848 esac 1849 done 1850 (set) 2>&1 | 1851 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1852 *${as_nl}ac_space=\ *) 1853 sed -n \ 1854 "s/'\''/'\''\\\\'\'''\''/g; 1855 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1856 ;; #( 1857 *) 1858 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1859 ;; 1860 esac | 1861 sort 1862) 1863 echo 1864 1865 cat <<\_ASBOX 1866## ----------------- ## 1867## Output variables. ## 1868## ----------------- ## 1869_ASBOX 1870 echo 1871 for ac_var in $ac_subst_vars 1872 do 1873 eval ac_val=\$$ac_var 1874 case $ac_val in 1875 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1876 esac 1877 $as_echo "$ac_var='\''$ac_val'\''" 1878 done | sort 1879 echo 1880 1881 if test -n "$ac_subst_files"; then 1882 cat <<\_ASBOX 1883## ------------------- ## 1884## File substitutions. ## 1885## ------------------- ## 1886_ASBOX 1887 echo 1888 for ac_var in $ac_subst_files 1889 do 1890 eval ac_val=\$$ac_var 1891 case $ac_val in 1892 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1893 esac 1894 $as_echo "$ac_var='\''$ac_val'\''" 1895 done | sort 1896 echo 1897 fi 1898 1899 if test -s confdefs.h; then 1900 cat <<\_ASBOX 1901## ----------- ## 1902## confdefs.h. ## 1903## ----------- ## 1904_ASBOX 1905 echo 1906 cat confdefs.h 1907 echo 1908 fi 1909 test "$ac_signal" != 0 && 1910 $as_echo "$as_me: caught signal $ac_signal" 1911 $as_echo "$as_me: exit $exit_status" 1912 } >&5 1913 rm -f core *.core core.conftest.* && 1914 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1915 exit $exit_status 1916' 0 1917for ac_signal in 1 2 13 15; do 1918 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1919done 1920ac_signal=0 1921 1922# confdefs.h avoids OS command line length limits that DEFS can exceed. 1923rm -f -r conftest* confdefs.h 1924 1925# Predefined preprocessor variables. 1926 1927cat >>confdefs.h <<_ACEOF 1928#define PACKAGE_NAME "$PACKAGE_NAME" 1929_ACEOF 1930 1931 1932cat >>confdefs.h <<_ACEOF 1933#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1934_ACEOF 1935 1936 1937cat >>confdefs.h <<_ACEOF 1938#define PACKAGE_VERSION "$PACKAGE_VERSION" 1939_ACEOF 1940 1941 1942cat >>confdefs.h <<_ACEOF 1943#define PACKAGE_STRING "$PACKAGE_STRING" 1944_ACEOF 1945 1946 1947cat >>confdefs.h <<_ACEOF 1948#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1949_ACEOF 1950 1951 1952# Let the site file select an alternate cache file if it wants to. 1953# Prefer an explicitly selected file to automatically selected ones. 1954ac_site_file1=NONE 1955ac_site_file2=NONE 1956if test -n "$CONFIG_SITE"; then 1957 ac_site_file1=$CONFIG_SITE 1958elif test "x$prefix" != xNONE; then 1959 ac_site_file1=$prefix/share/config.site 1960 ac_site_file2=$prefix/etc/config.site 1961else 1962 ac_site_file1=$ac_default_prefix/share/config.site 1963 ac_site_file2=$ac_default_prefix/etc/config.site 1964fi 1965for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1966do 1967 test "x$ac_site_file" = xNONE && continue 1968 if test -r "$ac_site_file"; then 1969 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1970$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1971 sed 's/^/| /' "$ac_site_file" >&5 1972 . "$ac_site_file" 1973 fi 1974done 1975 1976if test -r "$cache_file"; then 1977 # Some versions of bash will fail to source /dev/null (special 1978 # files actually), so we avoid doing that. 1979 if test -f "$cache_file"; then 1980 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1981$as_echo "$as_me: loading cache $cache_file" >&6;} 1982 case $cache_file in 1983 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1984 *) . "./$cache_file";; 1985 esac 1986 fi 1987else 1988 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1989$as_echo "$as_me: creating cache $cache_file" >&6;} 1990 >$cache_file 1991fi 1992 1993# Check that the precious variables saved in the cache have kept the same 1994# value. 1995ac_cache_corrupted=false 1996for ac_var in $ac_precious_vars; do 1997 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1998 eval ac_new_set=\$ac_env_${ac_var}_set 1999 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2000 eval ac_new_val=\$ac_env_${ac_var}_value 2001 case $ac_old_set,$ac_new_set in 2002 set,) 2003 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2004$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2005 ac_cache_corrupted=: ;; 2006 ,set) 2007 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 2008$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2009 ac_cache_corrupted=: ;; 2010 ,);; 2011 *) 2012 if test "x$ac_old_val" != "x$ac_new_val"; then 2013 # differences in whitespace do not lead to failure. 2014 ac_old_val_w=`echo x $ac_old_val` 2015 ac_new_val_w=`echo x $ac_new_val` 2016 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2017 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 2018$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2019 ac_cache_corrupted=: 2020 else 2021 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2022$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2023 eval $ac_var=\$ac_old_val 2024 fi 2025 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 2026$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2027 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 2028$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2029 fi;; 2030 esac 2031 # Pass precious variables to config.status. 2032 if test "$ac_new_set" = set; then 2033 case $ac_new_val in 2034 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2035 *) ac_arg=$ac_var=$ac_new_val ;; 2036 esac 2037 case " $ac_configure_args " in 2038 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2039 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2040 esac 2041 fi 2042done 2043if $ac_cache_corrupted; then 2044 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2045$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2046 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2047$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2048 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2049$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2050 { (exit 1); exit 1; }; } 2051fi 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077ac_ext=c 2078ac_cpp='$CPP $CPPFLAGS' 2079ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2080ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2081ac_compiler_gnu=$ac_cv_c_compiler_gnu 2082 2083 2084 2085 2086ac_config_headers="$ac_config_headers config.h" 2087 2088ac_aux_dir= 2089for ac_dir in . "$srcdir"/.; do 2090 if test -f "$ac_dir/install-sh"; then 2091 ac_aux_dir=$ac_dir 2092 ac_install_sh="$ac_aux_dir/install-sh -c" 2093 break 2094 elif test -f "$ac_dir/install.sh"; then 2095 ac_aux_dir=$ac_dir 2096 ac_install_sh="$ac_aux_dir/install.sh -c" 2097 break 2098 elif test -f "$ac_dir/shtool"; then 2099 ac_aux_dir=$ac_dir 2100 ac_install_sh="$ac_aux_dir/shtool install -c" 2101 break 2102 fi 2103done 2104if test -z "$ac_aux_dir"; then 2105 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5 2106$as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;} 2107 { (exit 1); exit 1; }; } 2108fi 2109 2110# These three variables are undocumented and unsupported, 2111# and are intended to be withdrawn in a future Autoconf release. 2112# They can cause serious problems if a builder's source tree is in a directory 2113# whose full name contains unusual characters. 2114ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2115ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2116ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2117 2118 2119 2120am__api_version='1.10' 2121 2122# Find a good install program. We prefer a C program (faster), 2123# so one script is as good as another. But avoid the broken or 2124# incompatible versions: 2125# SysV /etc/install, /usr/sbin/install 2126# SunOS /usr/etc/install 2127# IRIX /sbin/install 2128# AIX /bin/install 2129# AmigaOS /C/install, which installs bootblocks on floppy discs 2130# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2131# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2132# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2133# OS/2's system install, which has a completely different semantic 2134# ./install, which can be erroneously created by make from ./install.sh. 2135# Reject install programs that cannot install multiple files. 2136{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2137$as_echo_n "checking for a BSD-compatible install... " >&6; } 2138if test -z "$INSTALL"; then 2139if test "${ac_cv_path_install+set}" = set; then 2140 $as_echo_n "(cached) " >&6 2141else 2142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2143for as_dir in $PATH 2144do 2145 IFS=$as_save_IFS 2146 test -z "$as_dir" && as_dir=. 2147 # Account for people who put trailing slashes in PATH elements. 2148case $as_dir/ in 2149 ./ | .// | /cC/* | \ 2150 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2151 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2152 /usr/ucb/* ) ;; 2153 *) 2154 # OSF1 and SCO ODT 3.0 have their own names for install. 2155 # Don't use installbsd from OSF since it installs stuff as root 2156 # by default. 2157 for ac_prog in ginstall scoinst install; do 2158 for ac_exec_ext in '' $ac_executable_extensions; do 2159 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2160 if test $ac_prog = install && 2161 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2162 # AIX install. It has an incompatible calling convention. 2163 : 2164 elif test $ac_prog = install && 2165 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2166 # program-specific install script used by HP pwplus--don't use. 2167 : 2168 else 2169 rm -rf conftest.one conftest.two conftest.dir 2170 echo one > conftest.one 2171 echo two > conftest.two 2172 mkdir conftest.dir 2173 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2174 test -s conftest.one && test -s conftest.two && 2175 test -s conftest.dir/conftest.one && 2176 test -s conftest.dir/conftest.two 2177 then 2178 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2179 break 3 2180 fi 2181 fi 2182 fi 2183 done 2184 done 2185 ;; 2186esac 2187 2188done 2189IFS=$as_save_IFS 2190 2191rm -rf conftest.one conftest.two conftest.dir 2192 2193fi 2194 if test "${ac_cv_path_install+set}" = set; then 2195 INSTALL=$ac_cv_path_install 2196 else 2197 # As a last resort, use the slow shell script. Don't cache a 2198 # value for INSTALL within a source directory, because that will 2199 # break other packages using the cache if that directory is 2200 # removed, or if the value is a relative name. 2201 INSTALL=$ac_install_sh 2202 fi 2203fi 2204{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2205$as_echo "$INSTALL" >&6; } 2206 2207# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2208# It thinks the first close brace ends the variable substitution. 2209test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2210 2211test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2212 2213test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2214 2215{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2216$as_echo_n "checking whether build environment is sane... " >&6; } 2217# Just in case 2218sleep 1 2219echo timestamp > conftest.file 2220# Do `set' in a subshell so we don't clobber the current shell's 2221# arguments. Must try -L first in case configure is actually a 2222# symlink; some systems play weird games with the mod time of symlinks 2223# (eg FreeBSD returns the mod time of the symlink's containing 2224# directory). 2225if ( 2226 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2227 if test "$*" = "X"; then 2228 # -L didn't work. 2229 set X `ls -t $srcdir/configure conftest.file` 2230 fi 2231 rm -f conftest.file 2232 if test "$*" != "X $srcdir/configure conftest.file" \ 2233 && test "$*" != "X conftest.file $srcdir/configure"; then 2234 2235 # If neither matched, then we have a broken ls. This can happen 2236 # if, for instance, CONFIG_SHELL is bash and it inherits a 2237 # broken ls alias from the environment. This has actually 2238 # happened. Such a system could not be considered "sane". 2239 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2240alias in your environment" >&5 2241$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2242alias in your environment" >&2;} 2243 { (exit 1); exit 1; }; } 2244 fi 2245 2246 test "$2" = conftest.file 2247 ) 2248then 2249 # Ok. 2250 : 2251else 2252 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2253Check your system clock" >&5 2254$as_echo "$as_me: error: newly created file is older than distributed files! 2255Check your system clock" >&2;} 2256 { (exit 1); exit 1; }; } 2257fi 2258{ $as_echo "$as_me:$LINENO: result: yes" >&5 2259$as_echo "yes" >&6; } 2260test "$program_prefix" != NONE && 2261 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2262# Use a double $ so make ignores it. 2263test "$program_suffix" != NONE && 2264 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2265# Double any \ or $. 2266# By default was `s,x,x', remove it if useless. 2267ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2268program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2269 2270# expand $ac_aux_dir to an absolute path 2271am_aux_dir=`cd $ac_aux_dir && pwd` 2272 2273test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2274# Use eval to expand $SHELL 2275if eval "$MISSING --run true"; then 2276 am_missing_run="$MISSING --run " 2277else 2278 am_missing_run= 2279 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2280$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2281fi 2282 2283{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2284$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2285if test -z "$MKDIR_P"; then 2286 if test "${ac_cv_path_mkdir+set}" = set; then 2287 $as_echo_n "(cached) " >&6 2288else 2289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2290for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2291do 2292 IFS=$as_save_IFS 2293 test -z "$as_dir" && as_dir=. 2294 for ac_prog in mkdir gmkdir; do 2295 for ac_exec_ext in '' $ac_executable_extensions; do 2296 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2297 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2298 'mkdir (GNU coreutils) '* | \ 2299 'mkdir (coreutils) '* | \ 2300 'mkdir (fileutils) '4.1*) 2301 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2302 break 3;; 2303 esac 2304 done 2305 done 2306done 2307IFS=$as_save_IFS 2308 2309fi 2310 2311 if test "${ac_cv_path_mkdir+set}" = set; then 2312 MKDIR_P="$ac_cv_path_mkdir -p" 2313 else 2314 # As a last resort, use the slow shell script. Don't cache a 2315 # value for MKDIR_P within a source directory, because that will 2316 # break other packages using the cache if that directory is 2317 # removed, or if the value is a relative name. 2318 test -d ./--version && rmdir ./--version 2319 MKDIR_P="$ac_install_sh -d" 2320 fi 2321fi 2322{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2323$as_echo "$MKDIR_P" >&6; } 2324 2325mkdir_p="$MKDIR_P" 2326case $mkdir_p in 2327 [\\/$]* | ?:[\\/]*) ;; 2328 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2329esac 2330 2331for ac_prog in gawk mawk nawk awk 2332do 2333 # Extract the first word of "$ac_prog", so it can be a program name with args. 2334set dummy $ac_prog; ac_word=$2 2335{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2336$as_echo_n "checking for $ac_word... " >&6; } 2337if test "${ac_cv_prog_AWK+set}" = set; then 2338 $as_echo_n "(cached) " >&6 2339else 2340 if test -n "$AWK"; then 2341 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2342else 2343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2344for as_dir in $PATH 2345do 2346 IFS=$as_save_IFS 2347 test -z "$as_dir" && as_dir=. 2348 for ac_exec_ext in '' $ac_executable_extensions; do 2349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2350 ac_cv_prog_AWK="$ac_prog" 2351 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2352 break 2 2353 fi 2354done 2355done 2356IFS=$as_save_IFS 2357 2358fi 2359fi 2360AWK=$ac_cv_prog_AWK 2361if test -n "$AWK"; then 2362 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2363$as_echo "$AWK" >&6; } 2364else 2365 { $as_echo "$as_me:$LINENO: result: no" >&5 2366$as_echo "no" >&6; } 2367fi 2368 2369 2370 test -n "$AWK" && break 2371done 2372 2373{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2374$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2375set x ${MAKE-make} 2376ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2377if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2378 $as_echo_n "(cached) " >&6 2379else 2380 cat >conftest.make <<\_ACEOF 2381SHELL = /bin/sh 2382all: 2383 @echo '@@@%%%=$(MAKE)=@@@%%%' 2384_ACEOF 2385# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2386case `${MAKE-make} -f conftest.make 2>/dev/null` in 2387 *@@@%%%=?*=@@@%%%*) 2388 eval ac_cv_prog_make_${ac_make}_set=yes;; 2389 *) 2390 eval ac_cv_prog_make_${ac_make}_set=no;; 2391esac 2392rm -f conftest.make 2393fi 2394if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2395 { $as_echo "$as_me:$LINENO: result: yes" >&5 2396$as_echo "yes" >&6; } 2397 SET_MAKE= 2398else 2399 { $as_echo "$as_me:$LINENO: result: no" >&5 2400$as_echo "no" >&6; } 2401 SET_MAKE="MAKE=${MAKE-make}" 2402fi 2403 2404rm -rf .tst 2>/dev/null 2405mkdir .tst 2>/dev/null 2406if test -d .tst; then 2407 am__leading_dot=. 2408else 2409 am__leading_dot=_ 2410fi 2411rmdir .tst 2>/dev/null 2412 2413if test "`cd $srcdir && pwd`" != "`pwd`"; then 2414 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2415 # is not polluted with repeated "-I." 2416 am__isrc=' -I$(srcdir)' 2417 # test to see if srcdir already configured 2418 if test -f $srcdir/config.status; then 2419 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2420$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2421 { (exit 1); exit 1; }; } 2422 fi 2423fi 2424 2425# test whether we have cygpath 2426if test -z "$CYGPATH_W"; then 2427 if (cygpath --version) >/dev/null 2>/dev/null; then 2428 CYGPATH_W='cygpath -w' 2429 else 2430 CYGPATH_W=echo 2431 fi 2432fi 2433 2434 2435# Define the identity of the package. 2436 PACKAGE='xf86-video-tseng' 2437 VERSION='1.2.1' 2438 2439 2440cat >>confdefs.h <<_ACEOF 2441#define PACKAGE "$PACKAGE" 2442_ACEOF 2443 2444 2445cat >>confdefs.h <<_ACEOF 2446#define VERSION "$VERSION" 2447_ACEOF 2448 2449# Some tools Automake needs. 2450 2451ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2452 2453 2454AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2455 2456 2457AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2458 2459 2460AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2461 2462 2463MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2464 2465install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2466 2467# Installed binaries are usually stripped using `strip' when the user 2468# run `make install-strip'. However `strip' might not be the right 2469# tool to use in cross-compilation environments, therefore Automake 2470# will honor the `STRIP' environment variable to overrule this program. 2471if test "$cross_compiling" != no; then 2472 if test -n "$ac_tool_prefix"; then 2473 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2474set dummy ${ac_tool_prefix}strip; ac_word=$2 2475{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2476$as_echo_n "checking for $ac_word... " >&6; } 2477if test "${ac_cv_prog_STRIP+set}" = set; then 2478 $as_echo_n "(cached) " >&6 2479else 2480 if test -n "$STRIP"; then 2481 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2482else 2483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2484for as_dir in $PATH 2485do 2486 IFS=$as_save_IFS 2487 test -z "$as_dir" && as_dir=. 2488 for ac_exec_ext in '' $ac_executable_extensions; do 2489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2490 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2491 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2492 break 2 2493 fi 2494done 2495done 2496IFS=$as_save_IFS 2497 2498fi 2499fi 2500STRIP=$ac_cv_prog_STRIP 2501if test -n "$STRIP"; then 2502 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2503$as_echo "$STRIP" >&6; } 2504else 2505 { $as_echo "$as_me:$LINENO: result: no" >&5 2506$as_echo "no" >&6; } 2507fi 2508 2509 2510fi 2511if test -z "$ac_cv_prog_STRIP"; then 2512 ac_ct_STRIP=$STRIP 2513 # Extract the first word of "strip", so it can be a program name with args. 2514set dummy strip; ac_word=$2 2515{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2516$as_echo_n "checking for $ac_word... " >&6; } 2517if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2518 $as_echo_n "(cached) " >&6 2519else 2520 if test -n "$ac_ct_STRIP"; then 2521 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2522else 2523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2524for as_dir in $PATH 2525do 2526 IFS=$as_save_IFS 2527 test -z "$as_dir" && as_dir=. 2528 for ac_exec_ext in '' $ac_executable_extensions; do 2529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2530 ac_cv_prog_ac_ct_STRIP="strip" 2531 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2532 break 2 2533 fi 2534done 2535done 2536IFS=$as_save_IFS 2537 2538fi 2539fi 2540ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2541if test -n "$ac_ct_STRIP"; then 2542 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2543$as_echo "$ac_ct_STRIP" >&6; } 2544else 2545 { $as_echo "$as_me:$LINENO: result: no" >&5 2546$as_echo "no" >&6; } 2547fi 2548 2549 if test "x$ac_ct_STRIP" = x; then 2550 STRIP=":" 2551 else 2552 case $cross_compiling:$ac_tool_warned in 2553yes:) 2554{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2555$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2556ac_tool_warned=yes ;; 2557esac 2558 STRIP=$ac_ct_STRIP 2559 fi 2560else 2561 STRIP="$ac_cv_prog_STRIP" 2562fi 2563 2564fi 2565INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2566 2567# We need awk for the "check" target. The system "awk" is bad on 2568# some platforms. 2569# Always define AMTAR for backward compatibility. 2570 2571AMTAR=${AMTAR-"${am_missing_run}tar"} 2572 2573am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2574 2575 2576 2577 2578 2579 2580{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2581$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2582 # Check whether --enable-maintainer-mode was given. 2583if test "${enable_maintainer_mode+set}" = set; then 2584 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2585else 2586 USE_MAINTAINER_MODE=no 2587fi 2588 2589 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2590$as_echo "$USE_MAINTAINER_MODE" >&6; } 2591 if test $USE_MAINTAINER_MODE = yes; then 2592 MAINTAINER_MODE_TRUE= 2593 MAINTAINER_MODE_FALSE='#' 2594else 2595 MAINTAINER_MODE_TRUE='#' 2596 MAINTAINER_MODE_FALSE= 2597fi 2598 2599 MAINT=$MAINTAINER_MODE_TRUE 2600 2601 2602 2603# Checks for programs. 2604# Check whether --enable-static was given. 2605if test "${enable_static+set}" = set; then 2606 enableval=$enable_static; p=${PACKAGE-default} 2607 case $enableval in 2608 yes) enable_static=yes ;; 2609 no) enable_static=no ;; 2610 *) 2611 enable_static=no 2612 # Look at the argument we got. We use all the common list separators. 2613 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2614 for pkg in $enableval; do 2615 IFS="$lt_save_ifs" 2616 if test "X$pkg" = "X$p"; then 2617 enable_static=yes 2618 fi 2619 done 2620 IFS="$lt_save_ifs" 2621 ;; 2622 esac 2623else 2624 enable_static=no 2625fi 2626 2627 2628 2629# Check whether --enable-shared was given. 2630if test "${enable_shared+set}" = set; then 2631 enableval=$enable_shared; p=${PACKAGE-default} 2632 case $enableval in 2633 yes) enable_shared=yes ;; 2634 no) enable_shared=no ;; 2635 *) 2636 enable_shared=no 2637 # Look at the argument we got. We use all the common list separators. 2638 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2639 for pkg in $enableval; do 2640 IFS="$lt_save_ifs" 2641 if test "X$pkg" = "X$p"; then 2642 enable_shared=yes 2643 fi 2644 done 2645 IFS="$lt_save_ifs" 2646 ;; 2647 esac 2648else 2649 enable_shared=yes 2650fi 2651 2652 2653# Check whether --enable-fast-install was given. 2654if test "${enable_fast_install+set}" = set; then 2655 enableval=$enable_fast_install; p=${PACKAGE-default} 2656 case $enableval in 2657 yes) enable_fast_install=yes ;; 2658 no) enable_fast_install=no ;; 2659 *) 2660 enable_fast_install=no 2661 # Look at the argument we got. We use all the common list separators. 2662 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2663 for pkg in $enableval; do 2664 IFS="$lt_save_ifs" 2665 if test "X$pkg" = "X$p"; then 2666 enable_fast_install=yes 2667 fi 2668 done 2669 IFS="$lt_save_ifs" 2670 ;; 2671 esac 2672else 2673 enable_fast_install=yes 2674fi 2675 2676 2677# Make sure we can run config.sub. 2678$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2679 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2680$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2681 { (exit 1); exit 1; }; } 2682 2683{ $as_echo "$as_me:$LINENO: checking build system type" >&5 2684$as_echo_n "checking build system type... " >&6; } 2685if test "${ac_cv_build+set}" = set; then 2686 $as_echo_n "(cached) " >&6 2687else 2688 ac_build_alias=$build_alias 2689test "x$ac_build_alias" = x && 2690 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2691test "x$ac_build_alias" = x && 2692 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2693$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2694 { (exit 1); exit 1; }; } 2695ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2696 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2697$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2698 { (exit 1); exit 1; }; } 2699 2700fi 2701{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2702$as_echo "$ac_cv_build" >&6; } 2703case $ac_cv_build in 2704*-*-*) ;; 2705*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2706$as_echo "$as_me: error: invalid value of canonical build" >&2;} 2707 { (exit 1); exit 1; }; };; 2708esac 2709build=$ac_cv_build 2710ac_save_IFS=$IFS; IFS='-' 2711set x $ac_cv_build 2712shift 2713build_cpu=$1 2714build_vendor=$2 2715shift; shift 2716# Remember, the first character of IFS is used to create $*, 2717# except with old shells: 2718build_os=$* 2719IFS=$ac_save_IFS 2720case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2721 2722 2723{ $as_echo "$as_me:$LINENO: checking host system type" >&5 2724$as_echo_n "checking host system type... " >&6; } 2725if test "${ac_cv_host+set}" = set; then 2726 $as_echo_n "(cached) " >&6 2727else 2728 if test "x$host_alias" = x; then 2729 ac_cv_host=$ac_cv_build 2730else 2731 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2732 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2733$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2734 { (exit 1); exit 1; }; } 2735fi 2736 2737fi 2738{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2739$as_echo "$ac_cv_host" >&6; } 2740case $ac_cv_host in 2741*-*-*) ;; 2742*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2743$as_echo "$as_me: error: invalid value of canonical host" >&2;} 2744 { (exit 1); exit 1; }; };; 2745esac 2746host=$ac_cv_host 2747ac_save_IFS=$IFS; IFS='-' 2748set x $ac_cv_host 2749shift 2750host_cpu=$1 2751host_vendor=$2 2752shift; shift 2753# Remember, the first character of IFS is used to create $*, 2754# except with old shells: 2755host_os=$* 2756IFS=$ac_save_IFS 2757case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2758 2759 2760DEPDIR="${am__leading_dot}deps" 2761 2762ac_config_commands="$ac_config_commands depfiles" 2763 2764 2765am_make=${MAKE-make} 2766cat > confinc << 'END' 2767am__doit: 2768 @echo done 2769.PHONY: am__doit 2770END 2771# If we don't find an include directive, just comment out the code. 2772{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2773$as_echo_n "checking for style of include used by $am_make... " >&6; } 2774am__include="#" 2775am__quote= 2776_am_result=none 2777# First try GNU make style include. 2778echo "include confinc" > confmf 2779# We grep out `Entering directory' and `Leaving directory' 2780# messages which can occur if `w' ends up in MAKEFLAGS. 2781# In particular we don't look at `^make:' because GNU make might 2782# be invoked under some other name (usually "gmake"), in which 2783# case it prints its new name instead of `make'. 2784if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2785 am__include=include 2786 am__quote= 2787 _am_result=GNU 2788fi 2789# Now try BSD make style include. 2790if test "$am__include" = "#"; then 2791 echo '.include "confinc"' > confmf 2792 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2793 am__include=.include 2794 am__quote="\"" 2795 _am_result=BSD 2796 fi 2797fi 2798 2799 2800{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 2801$as_echo "$_am_result" >&6; } 2802rm -f confinc confmf 2803 2804# Check whether --enable-dependency-tracking was given. 2805if test "${enable_dependency_tracking+set}" = set; then 2806 enableval=$enable_dependency_tracking; 2807fi 2808 2809if test "x$enable_dependency_tracking" != xno; then 2810 am_depcomp="$ac_aux_dir/depcomp" 2811 AMDEPBACKSLASH='\' 2812fi 2813 if test "x$enable_dependency_tracking" != xno; then 2814 AMDEP_TRUE= 2815 AMDEP_FALSE='#' 2816else 2817 AMDEP_TRUE='#' 2818 AMDEP_FALSE= 2819fi 2820 2821 2822ac_ext=c 2823ac_cpp='$CPP $CPPFLAGS' 2824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2826ac_compiler_gnu=$ac_cv_c_compiler_gnu 2827if test -n "$ac_tool_prefix"; then 2828 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2829set dummy ${ac_tool_prefix}gcc; ac_word=$2 2830{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2831$as_echo_n "checking for $ac_word... " >&6; } 2832if test "${ac_cv_prog_CC+set}" = set; then 2833 $as_echo_n "(cached) " >&6 2834else 2835 if test -n "$CC"; then 2836 ac_cv_prog_CC="$CC" # Let the user override the test. 2837else 2838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2839for as_dir in $PATH 2840do 2841 IFS=$as_save_IFS 2842 test -z "$as_dir" && as_dir=. 2843 for ac_exec_ext in '' $ac_executable_extensions; do 2844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2845 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2846 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2847 break 2 2848 fi 2849done 2850done 2851IFS=$as_save_IFS 2852 2853fi 2854fi 2855CC=$ac_cv_prog_CC 2856if test -n "$CC"; then 2857 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2858$as_echo "$CC" >&6; } 2859else 2860 { $as_echo "$as_me:$LINENO: result: no" >&5 2861$as_echo "no" >&6; } 2862fi 2863 2864 2865fi 2866if test -z "$ac_cv_prog_CC"; then 2867 ac_ct_CC=$CC 2868 # Extract the first word of "gcc", so it can be a program name with args. 2869set dummy gcc; ac_word=$2 2870{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2871$as_echo_n "checking for $ac_word... " >&6; } 2872if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2873 $as_echo_n "(cached) " >&6 2874else 2875 if test -n "$ac_ct_CC"; then 2876 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2877else 2878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2879for as_dir in $PATH 2880do 2881 IFS=$as_save_IFS 2882 test -z "$as_dir" && as_dir=. 2883 for ac_exec_ext in '' $ac_executable_extensions; do 2884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2885 ac_cv_prog_ac_ct_CC="gcc" 2886 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2887 break 2 2888 fi 2889done 2890done 2891IFS=$as_save_IFS 2892 2893fi 2894fi 2895ac_ct_CC=$ac_cv_prog_ac_ct_CC 2896if test -n "$ac_ct_CC"; then 2897 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2898$as_echo "$ac_ct_CC" >&6; } 2899else 2900 { $as_echo "$as_me:$LINENO: result: no" >&5 2901$as_echo "no" >&6; } 2902fi 2903 2904 if test "x$ac_ct_CC" = x; then 2905 CC="" 2906 else 2907 case $cross_compiling:$ac_tool_warned in 2908yes:) 2909{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2910$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2911ac_tool_warned=yes ;; 2912esac 2913 CC=$ac_ct_CC 2914 fi 2915else 2916 CC="$ac_cv_prog_CC" 2917fi 2918 2919if test -z "$CC"; then 2920 if test -n "$ac_tool_prefix"; then 2921 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2922set dummy ${ac_tool_prefix}cc; ac_word=$2 2923{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2924$as_echo_n "checking for $ac_word... " >&6; } 2925if test "${ac_cv_prog_CC+set}" = set; then 2926 $as_echo_n "(cached) " >&6 2927else 2928 if test -n "$CC"; then 2929 ac_cv_prog_CC="$CC" # Let the user override the test. 2930else 2931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2932for as_dir in $PATH 2933do 2934 IFS=$as_save_IFS 2935 test -z "$as_dir" && as_dir=. 2936 for ac_exec_ext in '' $ac_executable_extensions; do 2937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2938 ac_cv_prog_CC="${ac_tool_prefix}cc" 2939 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2940 break 2 2941 fi 2942done 2943done 2944IFS=$as_save_IFS 2945 2946fi 2947fi 2948CC=$ac_cv_prog_CC 2949if test -n "$CC"; then 2950 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2951$as_echo "$CC" >&6; } 2952else 2953 { $as_echo "$as_me:$LINENO: result: no" >&5 2954$as_echo "no" >&6; } 2955fi 2956 2957 2958 fi 2959fi 2960if test -z "$CC"; then 2961 # Extract the first word of "cc", so it can be a program name with args. 2962set dummy cc; ac_word=$2 2963{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2964$as_echo_n "checking for $ac_word... " >&6; } 2965if test "${ac_cv_prog_CC+set}" = set; then 2966 $as_echo_n "(cached) " >&6 2967else 2968 if test -n "$CC"; then 2969 ac_cv_prog_CC="$CC" # Let the user override the test. 2970else 2971 ac_prog_rejected=no 2972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2973for as_dir in $PATH 2974do 2975 IFS=$as_save_IFS 2976 test -z "$as_dir" && as_dir=. 2977 for ac_exec_ext in '' $ac_executable_extensions; do 2978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2979 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2980 ac_prog_rejected=yes 2981 continue 2982 fi 2983 ac_cv_prog_CC="cc" 2984 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2985 break 2 2986 fi 2987done 2988done 2989IFS=$as_save_IFS 2990 2991if test $ac_prog_rejected = yes; then 2992 # We found a bogon in the path, so make sure we never use it. 2993 set dummy $ac_cv_prog_CC 2994 shift 2995 if test $# != 0; then 2996 # We chose a different compiler from the bogus one. 2997 # However, it has the same basename, so the bogon will be chosen 2998 # first if we set CC to just the basename; use the full file name. 2999 shift 3000 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3001 fi 3002fi 3003fi 3004fi 3005CC=$ac_cv_prog_CC 3006if test -n "$CC"; then 3007 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3008$as_echo "$CC" >&6; } 3009else 3010 { $as_echo "$as_me:$LINENO: result: no" >&5 3011$as_echo "no" >&6; } 3012fi 3013 3014 3015fi 3016if test -z "$CC"; then 3017 if test -n "$ac_tool_prefix"; then 3018 for ac_prog in cl.exe 3019 do 3020 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3021set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3022{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3023$as_echo_n "checking for $ac_word... " >&6; } 3024if test "${ac_cv_prog_CC+set}" = set; then 3025 $as_echo_n "(cached) " >&6 3026else 3027 if test -n "$CC"; then 3028 ac_cv_prog_CC="$CC" # Let the user override the test. 3029else 3030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3031for as_dir in $PATH 3032do 3033 IFS=$as_save_IFS 3034 test -z "$as_dir" && as_dir=. 3035 for ac_exec_ext in '' $ac_executable_extensions; do 3036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3037 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3038 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3039 break 2 3040 fi 3041done 3042done 3043IFS=$as_save_IFS 3044 3045fi 3046fi 3047CC=$ac_cv_prog_CC 3048if test -n "$CC"; then 3049 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3050$as_echo "$CC" >&6; } 3051else 3052 { $as_echo "$as_me:$LINENO: result: no" >&5 3053$as_echo "no" >&6; } 3054fi 3055 3056 3057 test -n "$CC" && break 3058 done 3059fi 3060if test -z "$CC"; then 3061 ac_ct_CC=$CC 3062 for ac_prog in cl.exe 3063do 3064 # Extract the first word of "$ac_prog", so it can be a program name with args. 3065set dummy $ac_prog; ac_word=$2 3066{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3067$as_echo_n "checking for $ac_word... " >&6; } 3068if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3069 $as_echo_n "(cached) " >&6 3070else 3071 if test -n "$ac_ct_CC"; then 3072 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3073else 3074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3075for as_dir in $PATH 3076do 3077 IFS=$as_save_IFS 3078 test -z "$as_dir" && as_dir=. 3079 for ac_exec_ext in '' $ac_executable_extensions; do 3080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3081 ac_cv_prog_ac_ct_CC="$ac_prog" 3082 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3083 break 2 3084 fi 3085done 3086done 3087IFS=$as_save_IFS 3088 3089fi 3090fi 3091ac_ct_CC=$ac_cv_prog_ac_ct_CC 3092if test -n "$ac_ct_CC"; then 3093 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3094$as_echo "$ac_ct_CC" >&6; } 3095else 3096 { $as_echo "$as_me:$LINENO: result: no" >&5 3097$as_echo "no" >&6; } 3098fi 3099 3100 3101 test -n "$ac_ct_CC" && break 3102done 3103 3104 if test "x$ac_ct_CC" = x; then 3105 CC="" 3106 else 3107 case $cross_compiling:$ac_tool_warned in 3108yes:) 3109{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 3110$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3111ac_tool_warned=yes ;; 3112esac 3113 CC=$ac_ct_CC 3114 fi 3115fi 3116 3117fi 3118 3119 3120test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3121$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3122{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3123See \`config.log' for more details." >&5 3124$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 3125See \`config.log' for more details." >&2;} 3126 { (exit 1); exit 1; }; }; } 3127 3128# Provide some information about the compiler. 3129$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 3130set X $ac_compile 3131ac_compiler=$2 3132{ (ac_try="$ac_compiler --version >&5" 3133case "(($ac_try" in 3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3135 *) ac_try_echo=$ac_try;; 3136esac 3137eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3138$as_echo "$ac_try_echo") >&5 3139 (eval "$ac_compiler --version >&5") 2>&5 3140 ac_status=$? 3141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3142 (exit $ac_status); } 3143{ (ac_try="$ac_compiler -v >&5" 3144case "(($ac_try" in 3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3146 *) ac_try_echo=$ac_try;; 3147esac 3148eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3149$as_echo "$ac_try_echo") >&5 3150 (eval "$ac_compiler -v >&5") 2>&5 3151 ac_status=$? 3152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3153 (exit $ac_status); } 3154{ (ac_try="$ac_compiler -V >&5" 3155case "(($ac_try" in 3156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3157 *) ac_try_echo=$ac_try;; 3158esac 3159eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3160$as_echo "$ac_try_echo") >&5 3161 (eval "$ac_compiler -V >&5") 2>&5 3162 ac_status=$? 3163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3164 (exit $ac_status); } 3165 3166cat >conftest.$ac_ext <<_ACEOF 3167/* confdefs.h. */ 3168_ACEOF 3169cat confdefs.h >>conftest.$ac_ext 3170cat >>conftest.$ac_ext <<_ACEOF 3171/* end confdefs.h. */ 3172 3173int 3174main () 3175{ 3176 3177 ; 3178 return 0; 3179} 3180_ACEOF 3181ac_clean_files_save=$ac_clean_files 3182ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3183# Try to create an executable without -o first, disregard a.out. 3184# It will help us diagnose broken compilers, and finding out an intuition 3185# of exeext. 3186{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3187$as_echo_n "checking for C compiler default output file name... " >&6; } 3188ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3189 3190# The possible output files: 3191ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3192 3193ac_rmfiles= 3194for ac_file in $ac_files 3195do 3196 case $ac_file in 3197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3198 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3199 esac 3200done 3201rm -f $ac_rmfiles 3202 3203if { (ac_try="$ac_link_default" 3204case "(($ac_try" in 3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3206 *) ac_try_echo=$ac_try;; 3207esac 3208eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3209$as_echo "$ac_try_echo") >&5 3210 (eval "$ac_link_default") 2>&5 3211 ac_status=$? 3212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3213 (exit $ac_status); }; then 3214 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3215# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3216# in a Makefile. We should not override ac_cv_exeext if it was cached, 3217# so that the user can short-circuit this test for compilers unknown to 3218# Autoconf. 3219for ac_file in $ac_files '' 3220do 3221 test -f "$ac_file" || continue 3222 case $ac_file in 3223 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3224 ;; 3225 [ab].out ) 3226 # We found the default executable, but exeext='' is most 3227 # certainly right. 3228 break;; 3229 *.* ) 3230 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3231 then :; else 3232 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3233 fi 3234 # We set ac_cv_exeext here because the later test for it is not 3235 # safe: cross compilers may not add the suffix if given an `-o' 3236 # argument, so we may need to know it at that point already. 3237 # Even if this section looks crufty: it has the advantage of 3238 # actually working. 3239 break;; 3240 * ) 3241 break;; 3242 esac 3243done 3244test "$ac_cv_exeext" = no && ac_cv_exeext= 3245 3246else 3247 ac_file='' 3248fi 3249 3250{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 3251$as_echo "$ac_file" >&6; } 3252if test -z "$ac_file"; then 3253 $as_echo "$as_me: failed program was:" >&5 3254sed 's/^/| /' conftest.$ac_ext >&5 3255 3256{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3257$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3258{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 3259See \`config.log' for more details." >&5 3260$as_echo "$as_me: error: C compiler cannot create executables 3261See \`config.log' for more details." >&2;} 3262 { (exit 77); exit 77; }; }; } 3263fi 3264 3265ac_exeext=$ac_cv_exeext 3266 3267# Check that the compiler produces executables we can run. If not, either 3268# the compiler is broken, or we cross compile. 3269{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3270$as_echo_n "checking whether the C compiler works... " >&6; } 3271# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3272# If not cross compiling, check that we can run a simple program. 3273if test "$cross_compiling" != yes; then 3274 if { ac_try='./$ac_file' 3275 { (case "(($ac_try" in 3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3277 *) ac_try_echo=$ac_try;; 3278esac 3279eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3280$as_echo "$ac_try_echo") >&5 3281 (eval "$ac_try") 2>&5 3282 ac_status=$? 3283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3284 (exit $ac_status); }; }; then 3285 cross_compiling=no 3286 else 3287 if test "$cross_compiling" = maybe; then 3288 cross_compiling=yes 3289 else 3290 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3291$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3292{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 3293If you meant to cross compile, use \`--host'. 3294See \`config.log' for more details." >&5 3295$as_echo "$as_me: error: cannot run C compiled programs. 3296If you meant to cross compile, use \`--host'. 3297See \`config.log' for more details." >&2;} 3298 { (exit 1); exit 1; }; }; } 3299 fi 3300 fi 3301fi 3302{ $as_echo "$as_me:$LINENO: result: yes" >&5 3303$as_echo "yes" >&6; } 3304 3305rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3306ac_clean_files=$ac_clean_files_save 3307# Check that the compiler produces executables we can run. If not, either 3308# the compiler is broken, or we cross compile. 3309{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3310$as_echo_n "checking whether we are cross compiling... " >&6; } 3311{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 3312$as_echo "$cross_compiling" >&6; } 3313 3314{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 3315$as_echo_n "checking for suffix of executables... " >&6; } 3316if { (ac_try="$ac_link" 3317case "(($ac_try" in 3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3319 *) ac_try_echo=$ac_try;; 3320esac 3321eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3322$as_echo "$ac_try_echo") >&5 3323 (eval "$ac_link") 2>&5 3324 ac_status=$? 3325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3326 (exit $ac_status); }; then 3327 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3328# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3329# work properly (i.e., refer to `conftest.exe'), while it won't with 3330# `rm'. 3331for ac_file in conftest.exe conftest conftest.*; do 3332 test -f "$ac_file" || continue 3333 case $ac_file in 3334 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3335 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3336 break;; 3337 * ) break;; 3338 esac 3339done 3340else 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 compute suffix of executables: cannot compile and link 3344See \`config.log' for more details." >&5 3345$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3346See \`config.log' for more details." >&2;} 3347 { (exit 1); exit 1; }; }; } 3348fi 3349 3350rm -f conftest$ac_cv_exeext 3351{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3352$as_echo "$ac_cv_exeext" >&6; } 3353 3354rm -f conftest.$ac_ext 3355EXEEXT=$ac_cv_exeext 3356ac_exeext=$EXEEXT 3357{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 3358$as_echo_n "checking for suffix of object files... " >&6; } 3359if test "${ac_cv_objext+set}" = set; then 3360 $as_echo_n "(cached) " >&6 3361else 3362 cat >conftest.$ac_ext <<_ACEOF 3363/* confdefs.h. */ 3364_ACEOF 3365cat confdefs.h >>conftest.$ac_ext 3366cat >>conftest.$ac_ext <<_ACEOF 3367/* end confdefs.h. */ 3368 3369int 3370main () 3371{ 3372 3373 ; 3374 return 0; 3375} 3376_ACEOF 3377rm -f conftest.o conftest.obj 3378if { (ac_try="$ac_compile" 3379case "(($ac_try" in 3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3381 *) ac_try_echo=$ac_try;; 3382esac 3383eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3384$as_echo "$ac_try_echo") >&5 3385 (eval "$ac_compile") 2>&5 3386 ac_status=$? 3387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3388 (exit $ac_status); }; then 3389 for ac_file in conftest.o conftest.obj conftest.*; do 3390 test -f "$ac_file" || continue; 3391 case $ac_file in 3392 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3393 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3394 break;; 3395 esac 3396done 3397else 3398 $as_echo "$as_me: failed program was:" >&5 3399sed 's/^/| /' conftest.$ac_ext >&5 3400 3401{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3402$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3403{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3404See \`config.log' for more details." >&5 3405$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3406See \`config.log' for more details." >&2;} 3407 { (exit 1); exit 1; }; }; } 3408fi 3409 3410rm -f conftest.$ac_cv_objext conftest.$ac_ext 3411fi 3412{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3413$as_echo "$ac_cv_objext" >&6; } 3414OBJEXT=$ac_cv_objext 3415ac_objext=$OBJEXT 3416{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3417$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3418if test "${ac_cv_c_compiler_gnu+set}" = set; then 3419 $as_echo_n "(cached) " >&6 3420else 3421 cat >conftest.$ac_ext <<_ACEOF 3422/* confdefs.h. */ 3423_ACEOF 3424cat confdefs.h >>conftest.$ac_ext 3425cat >>conftest.$ac_ext <<_ACEOF 3426/* end confdefs.h. */ 3427 3428int 3429main () 3430{ 3431#ifndef __GNUC__ 3432 choke me 3433#endif 3434 3435 ; 3436 return 0; 3437} 3438_ACEOF 3439rm -f conftest.$ac_objext 3440if { (ac_try="$ac_compile" 3441case "(($ac_try" in 3442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3443 *) ac_try_echo=$ac_try;; 3444esac 3445eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3446$as_echo "$ac_try_echo") >&5 3447 (eval "$ac_compile") 2>conftest.er1 3448 ac_status=$? 3449 grep -v '^ *+' conftest.er1 >conftest.err 3450 rm -f conftest.er1 3451 cat conftest.err >&5 3452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3453 (exit $ac_status); } && { 3454 test -z "$ac_c_werror_flag" || 3455 test ! -s conftest.err 3456 } && test -s conftest.$ac_objext; then 3457 ac_compiler_gnu=yes 3458else 3459 $as_echo "$as_me: failed program was:" >&5 3460sed 's/^/| /' conftest.$ac_ext >&5 3461 3462 ac_compiler_gnu=no 3463fi 3464 3465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3466ac_cv_c_compiler_gnu=$ac_compiler_gnu 3467 3468fi 3469{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3470$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3471if test $ac_compiler_gnu = yes; then 3472 GCC=yes 3473else 3474 GCC= 3475fi 3476ac_test_CFLAGS=${CFLAGS+set} 3477ac_save_CFLAGS=$CFLAGS 3478{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3479$as_echo_n "checking whether $CC accepts -g... " >&6; } 3480if test "${ac_cv_prog_cc_g+set}" = set; then 3481 $as_echo_n "(cached) " >&6 3482else 3483 ac_save_c_werror_flag=$ac_c_werror_flag 3484 ac_c_werror_flag=yes 3485 ac_cv_prog_cc_g=no 3486 CFLAGS="-g" 3487 cat >conftest.$ac_ext <<_ACEOF 3488/* confdefs.h. */ 3489_ACEOF 3490cat confdefs.h >>conftest.$ac_ext 3491cat >>conftest.$ac_ext <<_ACEOF 3492/* end confdefs.h. */ 3493 3494int 3495main () 3496{ 3497 3498 ; 3499 return 0; 3500} 3501_ACEOF 3502rm -f conftest.$ac_objext 3503if { (ac_try="$ac_compile" 3504case "(($ac_try" in 3505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3506 *) ac_try_echo=$ac_try;; 3507esac 3508eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3509$as_echo "$ac_try_echo") >&5 3510 (eval "$ac_compile") 2>conftest.er1 3511 ac_status=$? 3512 grep -v '^ *+' conftest.er1 >conftest.err 3513 rm -f conftest.er1 3514 cat conftest.err >&5 3515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3516 (exit $ac_status); } && { 3517 test -z "$ac_c_werror_flag" || 3518 test ! -s conftest.err 3519 } && test -s conftest.$ac_objext; then 3520 ac_cv_prog_cc_g=yes 3521else 3522 $as_echo "$as_me: failed program was:" >&5 3523sed 's/^/| /' conftest.$ac_ext >&5 3524 3525 CFLAGS="" 3526 cat >conftest.$ac_ext <<_ACEOF 3527/* confdefs.h. */ 3528_ACEOF 3529cat confdefs.h >>conftest.$ac_ext 3530cat >>conftest.$ac_ext <<_ACEOF 3531/* end confdefs.h. */ 3532 3533int 3534main () 3535{ 3536 3537 ; 3538 return 0; 3539} 3540_ACEOF 3541rm -f conftest.$ac_objext 3542if { (ac_try="$ac_compile" 3543case "(($ac_try" in 3544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3545 *) ac_try_echo=$ac_try;; 3546esac 3547eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3548$as_echo "$ac_try_echo") >&5 3549 (eval "$ac_compile") 2>conftest.er1 3550 ac_status=$? 3551 grep -v '^ *+' conftest.er1 >conftest.err 3552 rm -f conftest.er1 3553 cat conftest.err >&5 3554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3555 (exit $ac_status); } && { 3556 test -z "$ac_c_werror_flag" || 3557 test ! -s conftest.err 3558 } && test -s conftest.$ac_objext; then 3559 : 3560else 3561 $as_echo "$as_me: failed program was:" >&5 3562sed 's/^/| /' conftest.$ac_ext >&5 3563 3564 ac_c_werror_flag=$ac_save_c_werror_flag 3565 CFLAGS="-g" 3566 cat >conftest.$ac_ext <<_ACEOF 3567/* confdefs.h. */ 3568_ACEOF 3569cat confdefs.h >>conftest.$ac_ext 3570cat >>conftest.$ac_ext <<_ACEOF 3571/* end confdefs.h. */ 3572 3573int 3574main () 3575{ 3576 3577 ; 3578 return 0; 3579} 3580_ACEOF 3581rm -f conftest.$ac_objext 3582if { (ac_try="$ac_compile" 3583case "(($ac_try" in 3584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3585 *) ac_try_echo=$ac_try;; 3586esac 3587eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3588$as_echo "$ac_try_echo") >&5 3589 (eval "$ac_compile") 2>conftest.er1 3590 ac_status=$? 3591 grep -v '^ *+' conftest.er1 >conftest.err 3592 rm -f conftest.er1 3593 cat conftest.err >&5 3594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3595 (exit $ac_status); } && { 3596 test -z "$ac_c_werror_flag" || 3597 test ! -s conftest.err 3598 } && test -s conftest.$ac_objext; then 3599 ac_cv_prog_cc_g=yes 3600else 3601 $as_echo "$as_me: failed program was:" >&5 3602sed 's/^/| /' conftest.$ac_ext >&5 3603 3604 3605fi 3606 3607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3608fi 3609 3610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3611fi 3612 3613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3614 ac_c_werror_flag=$ac_save_c_werror_flag 3615fi 3616{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3617$as_echo "$ac_cv_prog_cc_g" >&6; } 3618if test "$ac_test_CFLAGS" = set; then 3619 CFLAGS=$ac_save_CFLAGS 3620elif test $ac_cv_prog_cc_g = yes; then 3621 if test "$GCC" = yes; then 3622 CFLAGS="-g -O2" 3623 else 3624 CFLAGS="-g" 3625 fi 3626else 3627 if test "$GCC" = yes; then 3628 CFLAGS="-O2" 3629 else 3630 CFLAGS= 3631 fi 3632fi 3633{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3634$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3635if test "${ac_cv_prog_cc_c89+set}" = set; then 3636 $as_echo_n "(cached) " >&6 3637else 3638 ac_cv_prog_cc_c89=no 3639ac_save_CC=$CC 3640cat >conftest.$ac_ext <<_ACEOF 3641/* confdefs.h. */ 3642_ACEOF 3643cat confdefs.h >>conftest.$ac_ext 3644cat >>conftest.$ac_ext <<_ACEOF 3645/* end confdefs.h. */ 3646#include <stdarg.h> 3647#include <stdio.h> 3648#include <sys/types.h> 3649#include <sys/stat.h> 3650/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3651struct buf { int x; }; 3652FILE * (*rcsopen) (struct buf *, struct stat *, int); 3653static char *e (p, i) 3654 char **p; 3655 int i; 3656{ 3657 return p[i]; 3658} 3659static char *f (char * (*g) (char **, int), char **p, ...) 3660{ 3661 char *s; 3662 va_list v; 3663 va_start (v,p); 3664 s = g (p, va_arg (v,int)); 3665 va_end (v); 3666 return s; 3667} 3668 3669/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3670 function prototypes and stuff, but not '\xHH' hex character constants. 3671 These don't provoke an error unfortunately, instead are silently treated 3672 as 'x'. The following induces an error, until -std is added to get 3673 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3674 array size at least. It's necessary to write '\x00'==0 to get something 3675 that's true only with -std. */ 3676int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3677 3678/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3679 inside strings and character constants. */ 3680#define FOO(x) 'x' 3681int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3682 3683int test (int i, double x); 3684struct s1 {int (*f) (int a);}; 3685struct s2 {int (*f) (double a);}; 3686int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3687int argc; 3688char **argv; 3689int 3690main () 3691{ 3692return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3693 ; 3694 return 0; 3695} 3696_ACEOF 3697for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3698 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3699do 3700 CC="$ac_save_CC $ac_arg" 3701 rm -f conftest.$ac_objext 3702if { (ac_try="$ac_compile" 3703case "(($ac_try" in 3704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3705 *) ac_try_echo=$ac_try;; 3706esac 3707eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3708$as_echo "$ac_try_echo") >&5 3709 (eval "$ac_compile") 2>conftest.er1 3710 ac_status=$? 3711 grep -v '^ *+' conftest.er1 >conftest.err 3712 rm -f conftest.er1 3713 cat conftest.err >&5 3714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3715 (exit $ac_status); } && { 3716 test -z "$ac_c_werror_flag" || 3717 test ! -s conftest.err 3718 } && test -s conftest.$ac_objext; then 3719 ac_cv_prog_cc_c89=$ac_arg 3720else 3721 $as_echo "$as_me: failed program was:" >&5 3722sed 's/^/| /' conftest.$ac_ext >&5 3723 3724 3725fi 3726 3727rm -f core conftest.err conftest.$ac_objext 3728 test "x$ac_cv_prog_cc_c89" != "xno" && break 3729done 3730rm -f conftest.$ac_ext 3731CC=$ac_save_CC 3732 3733fi 3734# AC_CACHE_VAL 3735case "x$ac_cv_prog_cc_c89" in 3736 x) 3737 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3738$as_echo "none needed" >&6; } ;; 3739 xno) 3740 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3741$as_echo "unsupported" >&6; } ;; 3742 *) 3743 CC="$CC $ac_cv_prog_cc_c89" 3744 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3745$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3746esac 3747 3748 3749ac_ext=c 3750ac_cpp='$CPP $CPPFLAGS' 3751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3753ac_compiler_gnu=$ac_cv_c_compiler_gnu 3754 3755depcc="$CC" am_compiler_list= 3756 3757{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3758$as_echo_n "checking dependency style of $depcc... " >&6; } 3759if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3760 $as_echo_n "(cached) " >&6 3761else 3762 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3763 # We make a subdir and do the tests there. Otherwise we can end up 3764 # making bogus files that we don't know about and never remove. For 3765 # instance it was reported that on HP-UX the gcc test will end up 3766 # making a dummy file named `D' -- because `-MD' means `put the output 3767 # in D'. 3768 mkdir conftest.dir 3769 # Copy depcomp to subdir because otherwise we won't find it if we're 3770 # using a relative directory. 3771 cp "$am_depcomp" conftest.dir 3772 cd conftest.dir 3773 # We will build objects and dependencies in a subdirectory because 3774 # it helps to detect inapplicable dependency modes. For instance 3775 # both Tru64's cc and ICC support -MD to output dependencies as a 3776 # side effect of compilation, but ICC will put the dependencies in 3777 # the current directory while Tru64 will put them in the object 3778 # directory. 3779 mkdir sub 3780 3781 am_cv_CC_dependencies_compiler_type=none 3782 if test "$am_compiler_list" = ""; then 3783 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3784 fi 3785 for depmode in $am_compiler_list; do 3786 # Setup a source with many dependencies, because some compilers 3787 # like to wrap large dependency lists on column 80 (with \), and 3788 # we should not choose a depcomp mode which is confused by this. 3789 # 3790 # We need to recreate these files for each test, as the compiler may 3791 # overwrite some of them when testing with obscure command lines. 3792 # This happens at least with the AIX C compiler. 3793 : > sub/conftest.c 3794 for i in 1 2 3 4 5 6; do 3795 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3796 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3797 # Solaris 8's {/usr,}/bin/sh. 3798 touch sub/conftst$i.h 3799 done 3800 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3801 3802 case $depmode in 3803 nosideeffect) 3804 # after this tag, mechanisms are not by side-effect, so they'll 3805 # only be used when explicitly requested 3806 if test "x$enable_dependency_tracking" = xyes; then 3807 continue 3808 else 3809 break 3810 fi 3811 ;; 3812 none) break ;; 3813 esac 3814 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3815 # mode. It turns out that the SunPro C++ compiler does not properly 3816 # handle `-M -o', and we need to detect this. 3817 if depmode=$depmode \ 3818 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3819 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3820 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3821 >/dev/null 2>conftest.err && 3822 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3823 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3824 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3825 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3826 # icc doesn't choke on unknown options, it will just issue warnings 3827 # or remarks (even with -Werror). So we grep stderr for any message 3828 # that says an option was ignored or not supported. 3829 # When given -MP, icc 7.0 and 7.1 complain thusly: 3830 # icc: Command line warning: ignoring option '-M'; no argument required 3831 # The diagnosis changed in icc 8.0: 3832 # icc: Command line remark: option '-MP' not supported 3833 if (grep 'ignoring option' conftest.err || 3834 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3835 am_cv_CC_dependencies_compiler_type=$depmode 3836 break 3837 fi 3838 fi 3839 done 3840 3841 cd .. 3842 rm -rf conftest.dir 3843else 3844 am_cv_CC_dependencies_compiler_type=none 3845fi 3846 3847fi 3848{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3849$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3850CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3851 3852 if 3853 test "x$enable_dependency_tracking" != xno \ 3854 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3855 am__fastdepCC_TRUE= 3856 am__fastdepCC_FALSE='#' 3857else 3858 am__fastdepCC_TRUE='#' 3859 am__fastdepCC_FALSE= 3860fi 3861 3862 3863{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3864$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3865if test "${lt_cv_path_SED+set}" = set; then 3866 $as_echo_n "(cached) " >&6 3867else 3868 # Loop through the user's path and test for sed and gsed. 3869# Then use that list of sed's as ones to test for truncation. 3870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3871for as_dir in $PATH 3872do 3873 IFS=$as_save_IFS 3874 test -z "$as_dir" && as_dir=. 3875 for lt_ac_prog in sed gsed; do 3876 for ac_exec_ext in '' $ac_executable_extensions; do 3877 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then 3878 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3879 fi 3880 done 3881 done 3882done 3883IFS=$as_save_IFS 3884lt_ac_max=0 3885lt_ac_count=0 3886# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3887# along with /bin/sed that truncates output. 3888for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3889 test ! -f $lt_ac_sed && continue 3890 cat /dev/null > conftest.in 3891 lt_ac_count=0 3892 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3893 # Check for GNU sed and select it if it is found. 3894 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3895 lt_cv_path_SED=$lt_ac_sed 3896 break 3897 fi 3898 while true; do 3899 cat conftest.in conftest.in >conftest.tmp 3900 mv conftest.tmp conftest.in 3901 cp conftest.in conftest.nl 3902 echo >>conftest.nl 3903 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3904 cmp -s conftest.out conftest.nl || break 3905 # 10000 chars as input seems more than enough 3906 test $lt_ac_count -gt 10 && break 3907 lt_ac_count=`expr $lt_ac_count + 1` 3908 if test $lt_ac_count -gt $lt_ac_max; then 3909 lt_ac_max=$lt_ac_count 3910 lt_cv_path_SED=$lt_ac_sed 3911 fi 3912 done 3913done 3914 3915fi 3916 3917SED=$lt_cv_path_SED 3918 3919{ $as_echo "$as_me:$LINENO: result: $SED" >&5 3920$as_echo "$SED" >&6; } 3921 3922{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3923$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3924if test "${ac_cv_path_GREP+set}" = set; then 3925 $as_echo_n "(cached) " >&6 3926else 3927 if test -z "$GREP"; then 3928 ac_path_GREP_found=false 3929 # Loop through the user's path and test for each of PROGNAME-LIST 3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3931for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3932do 3933 IFS=$as_save_IFS 3934 test -z "$as_dir" && as_dir=. 3935 for ac_prog in grep ggrep; do 3936 for ac_exec_ext in '' $ac_executable_extensions; do 3937 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3938 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3939# Check for GNU ac_path_GREP and select it if it is found. 3940 # Check for GNU $ac_path_GREP 3941case `"$ac_path_GREP" --version 2>&1` in 3942*GNU*) 3943 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3944*) 3945 ac_count=0 3946 $as_echo_n 0123456789 >"conftest.in" 3947 while : 3948 do 3949 cat "conftest.in" "conftest.in" >"conftest.tmp" 3950 mv "conftest.tmp" "conftest.in" 3951 cp "conftest.in" "conftest.nl" 3952 $as_echo 'GREP' >> "conftest.nl" 3953 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3954 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3955 ac_count=`expr $ac_count + 1` 3956 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3957 # Best one so far, save it but keep looking for a better one 3958 ac_cv_path_GREP="$ac_path_GREP" 3959 ac_path_GREP_max=$ac_count 3960 fi 3961 # 10*(2^10) chars as input seems more than enough 3962 test $ac_count -gt 10 && break 3963 done 3964 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3965esac 3966 3967 $ac_path_GREP_found && break 3 3968 done 3969 done 3970done 3971IFS=$as_save_IFS 3972 if test -z "$ac_cv_path_GREP"; then 3973 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3974$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3975 { (exit 1); exit 1; }; } 3976 fi 3977else 3978 ac_cv_path_GREP=$GREP 3979fi 3980 3981fi 3982{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3983$as_echo "$ac_cv_path_GREP" >&6; } 3984 GREP="$ac_cv_path_GREP" 3985 3986 3987{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 3988$as_echo_n "checking for egrep... " >&6; } 3989if test "${ac_cv_path_EGREP+set}" = set; then 3990 $as_echo_n "(cached) " >&6 3991else 3992 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3993 then ac_cv_path_EGREP="$GREP -E" 3994 else 3995 if test -z "$EGREP"; then 3996 ac_path_EGREP_found=false 3997 # Loop through the user's path and test for each of PROGNAME-LIST 3998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3999for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4000do 4001 IFS=$as_save_IFS 4002 test -z "$as_dir" && as_dir=. 4003 for ac_prog in egrep; do 4004 for ac_exec_ext in '' $ac_executable_extensions; do 4005 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4006 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4007# Check for GNU ac_path_EGREP and select it if it is found. 4008 # Check for GNU $ac_path_EGREP 4009case `"$ac_path_EGREP" --version 2>&1` in 4010*GNU*) 4011 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4012*) 4013 ac_count=0 4014 $as_echo_n 0123456789 >"conftest.in" 4015 while : 4016 do 4017 cat "conftest.in" "conftest.in" >"conftest.tmp" 4018 mv "conftest.tmp" "conftest.in" 4019 cp "conftest.in" "conftest.nl" 4020 $as_echo 'EGREP' >> "conftest.nl" 4021 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4022 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4023 ac_count=`expr $ac_count + 1` 4024 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4025 # Best one so far, save it but keep looking for a better one 4026 ac_cv_path_EGREP="$ac_path_EGREP" 4027 ac_path_EGREP_max=$ac_count 4028 fi 4029 # 10*(2^10) chars as input seems more than enough 4030 test $ac_count -gt 10 && break 4031 done 4032 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4033esac 4034 4035 $ac_path_EGREP_found && break 3 4036 done 4037 done 4038done 4039IFS=$as_save_IFS 4040 if test -z "$ac_cv_path_EGREP"; then 4041 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4042$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4043 { (exit 1); exit 1; }; } 4044 fi 4045else 4046 ac_cv_path_EGREP=$EGREP 4047fi 4048 4049 fi 4050fi 4051{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4052$as_echo "$ac_cv_path_EGREP" >&6; } 4053 EGREP="$ac_cv_path_EGREP" 4054 4055 4056 4057# Check whether --with-gnu-ld was given. 4058if test "${with_gnu_ld+set}" = set; then 4059 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4060else 4061 with_gnu_ld=no 4062fi 4063 4064ac_prog=ld 4065if test "$GCC" = yes; then 4066 # Check if gcc -print-prog-name=ld gives a path. 4067 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4068$as_echo_n "checking for ld used by $CC... " >&6; } 4069 case $host in 4070 *-*-mingw*) 4071 # gcc leaves a trailing carriage return which upsets mingw 4072 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4073 *) 4074 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4075 esac 4076 case $ac_prog in 4077 # Accept absolute paths. 4078 [\\/]* | ?:[\\/]*) 4079 re_direlt='/[^/][^/]*/\.\./' 4080 # Canonicalize the pathname of ld 4081 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 4082 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4083 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 4084 done 4085 test -z "$LD" && LD="$ac_prog" 4086 ;; 4087 "") 4088 # If it fails, then pretend we aren't using GCC. 4089 ac_prog=ld 4090 ;; 4091 *) 4092 # If it is relative, then search for the first ld in PATH. 4093 with_gnu_ld=unknown 4094 ;; 4095 esac 4096elif test "$with_gnu_ld" = yes; then 4097 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 4098$as_echo_n "checking for GNU ld... " >&6; } 4099else 4100 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4101$as_echo_n "checking for non-GNU ld... " >&6; } 4102fi 4103if test "${lt_cv_path_LD+set}" = set; then 4104 $as_echo_n "(cached) " >&6 4105else 4106 if test -z "$LD"; then 4107 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4108 for ac_dir in $PATH; do 4109 IFS="$lt_save_ifs" 4110 test -z "$ac_dir" && ac_dir=. 4111 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4112 lt_cv_path_LD="$ac_dir/$ac_prog" 4113 # Check to see if the program is GNU ld. I'd rather use --version, 4114 # but apparently some variants of GNU ld only accept -v. 4115 # Break only if it was the GNU/non-GNU ld that we prefer. 4116 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4117 *GNU* | *'with BFD'*) 4118 test "$with_gnu_ld" != no && break 4119 ;; 4120 *) 4121 test "$with_gnu_ld" != yes && break 4122 ;; 4123 esac 4124 fi 4125 done 4126 IFS="$lt_save_ifs" 4127else 4128 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4129fi 4130fi 4131 4132LD="$lt_cv_path_LD" 4133if test -n "$LD"; then 4134 { $as_echo "$as_me:$LINENO: result: $LD" >&5 4135$as_echo "$LD" >&6; } 4136else 4137 { $as_echo "$as_me:$LINENO: result: no" >&5 4138$as_echo "no" >&6; } 4139fi 4140test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4141$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4142 { (exit 1); exit 1; }; } 4143{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4144$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4145if test "${lt_cv_prog_gnu_ld+set}" = set; then 4146 $as_echo_n "(cached) " >&6 4147else 4148 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4149case `$LD -v 2>&1 </dev/null` in 4150*GNU* | *'with BFD'*) 4151 lt_cv_prog_gnu_ld=yes 4152 ;; 4153*) 4154 lt_cv_prog_gnu_ld=no 4155 ;; 4156esac 4157fi 4158{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4159$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4160with_gnu_ld=$lt_cv_prog_gnu_ld 4161 4162 4163{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4164$as_echo_n "checking for $LD option to reload object files... " >&6; } 4165if test "${lt_cv_ld_reload_flag+set}" = set; then 4166 $as_echo_n "(cached) " >&6 4167else 4168 lt_cv_ld_reload_flag='-r' 4169fi 4170{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4171$as_echo "$lt_cv_ld_reload_flag" >&6; } 4172reload_flag=$lt_cv_ld_reload_flag 4173case $reload_flag in 4174"" | " "*) ;; 4175*) reload_flag=" $reload_flag" ;; 4176esac 4177reload_cmds='$LD$reload_flag -o $output$reload_objs' 4178case $host_os in 4179 darwin*) 4180 if test "$GCC" = yes; then 4181 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4182 else 4183 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4184 fi 4185 ;; 4186esac 4187 4188{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4189$as_echo_n "checking for BSD-compatible nm... " >&6; } 4190if test "${lt_cv_path_NM+set}" = set; then 4191 $as_echo_n "(cached) " >&6 4192else 4193 if test -n "$NM"; then 4194 # Let the user override the test. 4195 lt_cv_path_NM="$NM" 4196else 4197 lt_nm_to_check="${ac_tool_prefix}nm" 4198 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4199 lt_nm_to_check="$lt_nm_to_check nm" 4200 fi 4201 for lt_tmp_nm in $lt_nm_to_check; do 4202 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4203 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4204 IFS="$lt_save_ifs" 4205 test -z "$ac_dir" && ac_dir=. 4206 tmp_nm="$ac_dir/$lt_tmp_nm" 4207 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4208 # Check to see if the nm accepts a BSD-compat flag. 4209 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4210 # nm: unknown option "B" ignored 4211 # Tru64's nm complains that /dev/null is an invalid object file 4212 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4213 */dev/null* | *'Invalid file or object type'*) 4214 lt_cv_path_NM="$tmp_nm -B" 4215 break 4216 ;; 4217 *) 4218 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4219 */dev/null*) 4220 lt_cv_path_NM="$tmp_nm -p" 4221 break 4222 ;; 4223 *) 4224 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4225 continue # so that we can try to find one that supports BSD flags 4226 ;; 4227 esac 4228 ;; 4229 esac 4230 fi 4231 done 4232 IFS="$lt_save_ifs" 4233 done 4234 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4235fi 4236fi 4237{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4238$as_echo "$lt_cv_path_NM" >&6; } 4239NM="$lt_cv_path_NM" 4240 4241{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 4242$as_echo_n "checking whether ln -s works... " >&6; } 4243LN_S=$as_ln_s 4244if test "$LN_S" = "ln -s"; then 4245 { $as_echo "$as_me:$LINENO: result: yes" >&5 4246$as_echo "yes" >&6; } 4247else 4248 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4249$as_echo "no, using $LN_S" >&6; } 4250fi 4251 4252{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 4253$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4254if test "${lt_cv_deplibs_check_method+set}" = set; then 4255 $as_echo_n "(cached) " >&6 4256else 4257 lt_cv_file_magic_cmd='$MAGIC_CMD' 4258lt_cv_file_magic_test_file= 4259lt_cv_deplibs_check_method='unknown' 4260# Need to set the preceding variable on all platforms that support 4261# interlibrary dependencies. 4262# 'none' -- dependencies not supported. 4263# `unknown' -- same as none, but documents that we really don't know. 4264# 'pass_all' -- all dependencies passed with no checks. 4265# 'test_compile' -- check by making test program. 4266# 'file_magic [[regex]]' -- check by looking for files in library path 4267# which responds to the $file_magic_cmd with a given extended regex. 4268# If you have `file' or equivalent on your system and you're not sure 4269# whether `pass_all' will *always* work, you probably want this one. 4270 4271case $host_os in 4272aix[4-9]*) 4273 lt_cv_deplibs_check_method=pass_all 4274 ;; 4275 4276beos*) 4277 lt_cv_deplibs_check_method=pass_all 4278 ;; 4279 4280bsdi[45]*) 4281 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4282 lt_cv_file_magic_cmd='/usr/bin/file -L' 4283 lt_cv_file_magic_test_file=/shlib/libc.so 4284 ;; 4285 4286cygwin*) 4287 # func_win32_libid is a shell function defined in ltmain.sh 4288 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4289 lt_cv_file_magic_cmd='func_win32_libid' 4290 ;; 4291 4292mingw* | pw32*) 4293 # Base MSYS/MinGW do not provide the 'file' command needed by 4294 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4295 # unless we find 'file', for example because we are cross-compiling. 4296 if ( file / ) >/dev/null 2>&1; then 4297 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4298 lt_cv_file_magic_cmd='func_win32_libid' 4299 else 4300 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4301 lt_cv_file_magic_cmd='$OBJDUMP -f' 4302 fi 4303 ;; 4304 4305darwin* | rhapsody*) 4306 lt_cv_deplibs_check_method=pass_all 4307 ;; 4308 4309freebsd* | dragonfly*) 4310 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4311 case $host_cpu in 4312 i*86 ) 4313 # Not sure whether the presence of OpenBSD here was a mistake. 4314 # Let's accept both of them until this is cleared up. 4315 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4316 lt_cv_file_magic_cmd=/usr/bin/file 4317 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4318 ;; 4319 esac 4320 else 4321 lt_cv_deplibs_check_method=pass_all 4322 fi 4323 ;; 4324 4325gnu*) 4326 lt_cv_deplibs_check_method=pass_all 4327 ;; 4328 4329hpux10.20* | hpux11*) 4330 lt_cv_file_magic_cmd=/usr/bin/file 4331 case $host_cpu in 4332 ia64*) 4333 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4334 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4335 ;; 4336 hppa*64*) 4337 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]' 4338 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4339 ;; 4340 *) 4341 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4342 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4343 ;; 4344 esac 4345 ;; 4346 4347interix[3-9]*) 4348 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4349 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4350 ;; 4351 4352irix5* | irix6* | nonstopux*) 4353 case $LD in 4354 *-32|*"-32 ") libmagic=32-bit;; 4355 *-n32|*"-n32 ") libmagic=N32;; 4356 *-64|*"-64 ") libmagic=64-bit;; 4357 *) libmagic=never-match;; 4358 esac 4359 lt_cv_deplibs_check_method=pass_all 4360 ;; 4361 4362# This must be Linux ELF. 4363linux* | k*bsd*-gnu) 4364 lt_cv_deplibs_check_method=pass_all 4365 ;; 4366 4367netbsd*) 4368 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4369 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4370 else 4371 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4372 fi 4373 ;; 4374 4375newos6*) 4376 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4377 lt_cv_file_magic_cmd=/usr/bin/file 4378 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4379 ;; 4380 4381nto-qnx*) 4382 lt_cv_deplibs_check_method=unknown 4383 ;; 4384 4385openbsd*) 4386 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4387 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4388 else 4389 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4390 fi 4391 ;; 4392 4393osf3* | osf4* | osf5*) 4394 lt_cv_deplibs_check_method=pass_all 4395 ;; 4396 4397rdos*) 4398 lt_cv_deplibs_check_method=pass_all 4399 ;; 4400 4401solaris*) 4402 lt_cv_deplibs_check_method=pass_all 4403 ;; 4404 4405sysv4 | sysv4.3*) 4406 case $host_vendor in 4407 motorola) 4408 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]' 4409 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4410 ;; 4411 ncr) 4412 lt_cv_deplibs_check_method=pass_all 4413 ;; 4414 sequent) 4415 lt_cv_file_magic_cmd='/bin/file' 4416 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4417 ;; 4418 sni) 4419 lt_cv_file_magic_cmd='/bin/file' 4420 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4421 lt_cv_file_magic_test_file=/lib/libc.so 4422 ;; 4423 siemens) 4424 lt_cv_deplibs_check_method=pass_all 4425 ;; 4426 pc) 4427 lt_cv_deplibs_check_method=pass_all 4428 ;; 4429 esac 4430 ;; 4431 4432sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4433 lt_cv_deplibs_check_method=pass_all 4434 ;; 4435esac 4436 4437fi 4438{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4439$as_echo "$lt_cv_deplibs_check_method" >&6; } 4440file_magic_cmd=$lt_cv_file_magic_cmd 4441deplibs_check_method=$lt_cv_deplibs_check_method 4442test -z "$deplibs_check_method" && deplibs_check_method=unknown 4443 4444 4445 4446 4447# If no C compiler was specified, use CC. 4448LTCC=${LTCC-"$CC"} 4449 4450# If no C compiler flags were specified, use CFLAGS. 4451LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4452 4453# Allow CC to be a program name with arguments. 4454compiler=$CC 4455 4456 4457# Check whether --enable-libtool-lock was given. 4458if test "${enable_libtool_lock+set}" = set; then 4459 enableval=$enable_libtool_lock; 4460fi 4461 4462test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4463 4464# Some flags need to be propagated to the compiler or linker for good 4465# libtool support. 4466case $host in 4467ia64-*-hpux*) 4468 # Find out which ABI we are using. 4469 echo 'int i;' > conftest.$ac_ext 4470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4471 (eval $ac_compile) 2>&5 4472 ac_status=$? 4473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4474 (exit $ac_status); }; then 4475 case `/usr/bin/file conftest.$ac_objext` in 4476 *ELF-32*) 4477 HPUX_IA64_MODE="32" 4478 ;; 4479 *ELF-64*) 4480 HPUX_IA64_MODE="64" 4481 ;; 4482 esac 4483 fi 4484 rm -rf conftest* 4485 ;; 4486*-*-irix6*) 4487 # Find out which ABI we are using. 4488 echo '#line 4488 "configure"' > conftest.$ac_ext 4489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4490 (eval $ac_compile) 2>&5 4491 ac_status=$? 4492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4493 (exit $ac_status); }; then 4494 if test "$lt_cv_prog_gnu_ld" = yes; then 4495 case `/usr/bin/file conftest.$ac_objext` in 4496 *32-bit*) 4497 LD="${LD-ld} -melf32bsmip" 4498 ;; 4499 *N32*) 4500 LD="${LD-ld} -melf32bmipn32" 4501 ;; 4502 *64-bit*) 4503 LD="${LD-ld} -melf64bmip" 4504 ;; 4505 esac 4506 else 4507 case `/usr/bin/file conftest.$ac_objext` in 4508 *32-bit*) 4509 LD="${LD-ld} -32" 4510 ;; 4511 *N32*) 4512 LD="${LD-ld} -n32" 4513 ;; 4514 *64-bit*) 4515 LD="${LD-ld} -64" 4516 ;; 4517 esac 4518 fi 4519 fi 4520 rm -rf conftest* 4521 ;; 4522 4523x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 4524s390*-*linux*|sparc*-*linux*) 4525 # Find out which ABI we are using. 4526 echo 'int i;' > conftest.$ac_ext 4527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4528 (eval $ac_compile) 2>&5 4529 ac_status=$? 4530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4531 (exit $ac_status); }; then 4532 case `/usr/bin/file conftest.o` in 4533 *32-bit*) 4534 case $host in 4535 x86_64-*kfreebsd*-gnu) 4536 LD="${LD-ld} -m elf_i386_fbsd" 4537 ;; 4538 x86_64-*linux*) 4539 LD="${LD-ld} -m elf_i386" 4540 ;; 4541 ppc64-*linux*|powerpc64-*linux*) 4542 LD="${LD-ld} -m elf32ppclinux" 4543 ;; 4544 s390x-*linux*) 4545 LD="${LD-ld} -m elf_s390" 4546 ;; 4547 sparc64-*linux*) 4548 LD="${LD-ld} -m elf32_sparc" 4549 ;; 4550 esac 4551 ;; 4552 *64-bit*) 4553 libsuff=64 4554 case $host in 4555 x86_64-*kfreebsd*-gnu) 4556 LD="${LD-ld} -m elf_x86_64_fbsd" 4557 ;; 4558 x86_64-*linux*) 4559 LD="${LD-ld} -m elf_x86_64" 4560 ;; 4561 ppc*-*linux*|powerpc*-*linux*) 4562 LD="${LD-ld} -m elf64ppc" 4563 ;; 4564 s390*-*linux*) 4565 LD="${LD-ld} -m elf64_s390" 4566 ;; 4567 sparc*-*linux*) 4568 LD="${LD-ld} -m elf64_sparc" 4569 ;; 4570 esac 4571 ;; 4572 esac 4573 fi 4574 rm -rf conftest* 4575 ;; 4576 4577*-*-sco3.2v5*) 4578 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4579 SAVE_CFLAGS="$CFLAGS" 4580 CFLAGS="$CFLAGS -belf" 4581 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4582$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 4583if test "${lt_cv_cc_needs_belf+set}" = set; then 4584 $as_echo_n "(cached) " >&6 4585else 4586 ac_ext=c 4587ac_cpp='$CPP $CPPFLAGS' 4588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4590ac_compiler_gnu=$ac_cv_c_compiler_gnu 4591 4592 cat >conftest.$ac_ext <<_ACEOF 4593/* confdefs.h. */ 4594_ACEOF 4595cat confdefs.h >>conftest.$ac_ext 4596cat >>conftest.$ac_ext <<_ACEOF 4597/* end confdefs.h. */ 4598 4599int 4600main () 4601{ 4602 4603 ; 4604 return 0; 4605} 4606_ACEOF 4607rm -f conftest.$ac_objext conftest$ac_exeext 4608if { (ac_try="$ac_link" 4609case "(($ac_try" in 4610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4611 *) ac_try_echo=$ac_try;; 4612esac 4613eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4614$as_echo "$ac_try_echo") >&5 4615 (eval "$ac_link") 2>conftest.er1 4616 ac_status=$? 4617 grep -v '^ *+' conftest.er1 >conftest.err 4618 rm -f conftest.er1 4619 cat conftest.err >&5 4620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4621 (exit $ac_status); } && { 4622 test -z "$ac_c_werror_flag" || 4623 test ! -s conftest.err 4624 } && test -s conftest$ac_exeext && { 4625 test "$cross_compiling" = yes || 4626 $as_test_x conftest$ac_exeext 4627 }; then 4628 lt_cv_cc_needs_belf=yes 4629else 4630 $as_echo "$as_me: failed program was:" >&5 4631sed 's/^/| /' conftest.$ac_ext >&5 4632 4633 lt_cv_cc_needs_belf=no 4634fi 4635 4636rm -rf conftest.dSYM 4637rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4638 conftest$ac_exeext conftest.$ac_ext 4639 ac_ext=c 4640ac_cpp='$CPP $CPPFLAGS' 4641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4643ac_compiler_gnu=$ac_cv_c_compiler_gnu 4644 4645fi 4646{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4647$as_echo "$lt_cv_cc_needs_belf" >&6; } 4648 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4649 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4650 CFLAGS="$SAVE_CFLAGS" 4651 fi 4652 ;; 4653sparc*-*solaris*) 4654 # Find out which ABI we are using. 4655 echo 'int i;' > conftest.$ac_ext 4656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4657 (eval $ac_compile) 2>&5 4658 ac_status=$? 4659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4660 (exit $ac_status); }; then 4661 case `/usr/bin/file conftest.o` in 4662 *64-bit*) 4663 case $lt_cv_prog_gnu_ld in 4664 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4665 *) 4666 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 4667 LD="${LD-ld} -64" 4668 fi 4669 ;; 4670 esac 4671 ;; 4672 esac 4673 fi 4674 rm -rf conftest* 4675 ;; 4676 4677 4678esac 4679 4680need_locks="$enable_libtool_lock" 4681 4682 4683ac_ext=c 4684ac_cpp='$CPP $CPPFLAGS' 4685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4687ac_compiler_gnu=$ac_cv_c_compiler_gnu 4688{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4689$as_echo_n "checking how to run the C preprocessor... " >&6; } 4690# On Suns, sometimes $CPP names a directory. 4691if test -n "$CPP" && test -d "$CPP"; then 4692 CPP= 4693fi 4694if test -z "$CPP"; then 4695 if test "${ac_cv_prog_CPP+set}" = set; then 4696 $as_echo_n "(cached) " >&6 4697else 4698 # Double quotes because CPP needs to be expanded 4699 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4700 do 4701 ac_preproc_ok=false 4702for ac_c_preproc_warn_flag in '' yes 4703do 4704 # Use a header file that comes with gcc, so configuring glibc 4705 # with a fresh cross-compiler works. 4706 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4707 # <limits.h> exists even on freestanding compilers. 4708 # On the NeXT, cc -E runs the code through the compiler's parser, 4709 # not just through cpp. "Syntax error" is here to catch this case. 4710 cat >conftest.$ac_ext <<_ACEOF 4711/* confdefs.h. */ 4712_ACEOF 4713cat confdefs.h >>conftest.$ac_ext 4714cat >>conftest.$ac_ext <<_ACEOF 4715/* end confdefs.h. */ 4716#ifdef __STDC__ 4717# include <limits.h> 4718#else 4719# include <assert.h> 4720#endif 4721 Syntax error 4722_ACEOF 4723if { (ac_try="$ac_cpp conftest.$ac_ext" 4724case "(($ac_try" in 4725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4726 *) ac_try_echo=$ac_try;; 4727esac 4728eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4729$as_echo "$ac_try_echo") >&5 4730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4731 ac_status=$? 4732 grep -v '^ *+' conftest.er1 >conftest.err 4733 rm -f conftest.er1 4734 cat conftest.err >&5 4735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4736 (exit $ac_status); } >/dev/null && { 4737 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4738 test ! -s conftest.err 4739 }; then 4740 : 4741else 4742 $as_echo "$as_me: failed program was:" >&5 4743sed 's/^/| /' conftest.$ac_ext >&5 4744 4745 # Broken: fails on valid input. 4746continue 4747fi 4748 4749rm -f conftest.err conftest.$ac_ext 4750 4751 # OK, works on sane cases. Now check whether nonexistent headers 4752 # can be detected and how. 4753 cat >conftest.$ac_ext <<_ACEOF 4754/* confdefs.h. */ 4755_ACEOF 4756cat confdefs.h >>conftest.$ac_ext 4757cat >>conftest.$ac_ext <<_ACEOF 4758/* end confdefs.h. */ 4759#include <ac_nonexistent.h> 4760_ACEOF 4761if { (ac_try="$ac_cpp conftest.$ac_ext" 4762case "(($ac_try" in 4763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4764 *) ac_try_echo=$ac_try;; 4765esac 4766eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4767$as_echo "$ac_try_echo") >&5 4768 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4769 ac_status=$? 4770 grep -v '^ *+' conftest.er1 >conftest.err 4771 rm -f conftest.er1 4772 cat conftest.err >&5 4773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4774 (exit $ac_status); } >/dev/null && { 4775 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4776 test ! -s conftest.err 4777 }; then 4778 # Broken: success on invalid input. 4779continue 4780else 4781 $as_echo "$as_me: failed program was:" >&5 4782sed 's/^/| /' conftest.$ac_ext >&5 4783 4784 # Passes both tests. 4785ac_preproc_ok=: 4786break 4787fi 4788 4789rm -f conftest.err conftest.$ac_ext 4790 4791done 4792# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4793rm -f conftest.err conftest.$ac_ext 4794if $ac_preproc_ok; then 4795 break 4796fi 4797 4798 done 4799 ac_cv_prog_CPP=$CPP 4800 4801fi 4802 CPP=$ac_cv_prog_CPP 4803else 4804 ac_cv_prog_CPP=$CPP 4805fi 4806{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 4807$as_echo "$CPP" >&6; } 4808ac_preproc_ok=false 4809for ac_c_preproc_warn_flag in '' yes 4810do 4811 # Use a header file that comes with gcc, so configuring glibc 4812 # with a fresh cross-compiler works. 4813 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4814 # <limits.h> exists even on freestanding compilers. 4815 # On the NeXT, cc -E runs the code through the compiler's parser, 4816 # not just through cpp. "Syntax error" is here to catch this case. 4817 cat >conftest.$ac_ext <<_ACEOF 4818/* confdefs.h. */ 4819_ACEOF 4820cat confdefs.h >>conftest.$ac_ext 4821cat >>conftest.$ac_ext <<_ACEOF 4822/* end confdefs.h. */ 4823#ifdef __STDC__ 4824# include <limits.h> 4825#else 4826# include <assert.h> 4827#endif 4828 Syntax error 4829_ACEOF 4830if { (ac_try="$ac_cpp conftest.$ac_ext" 4831case "(($ac_try" in 4832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4833 *) ac_try_echo=$ac_try;; 4834esac 4835eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4836$as_echo "$ac_try_echo") >&5 4837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4838 ac_status=$? 4839 grep -v '^ *+' conftest.er1 >conftest.err 4840 rm -f conftest.er1 4841 cat conftest.err >&5 4842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4843 (exit $ac_status); } >/dev/null && { 4844 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4845 test ! -s conftest.err 4846 }; then 4847 : 4848else 4849 $as_echo "$as_me: failed program was:" >&5 4850sed 's/^/| /' conftest.$ac_ext >&5 4851 4852 # Broken: fails on valid input. 4853continue 4854fi 4855 4856rm -f conftest.err conftest.$ac_ext 4857 4858 # OK, works on sane cases. Now check whether nonexistent headers 4859 # can be detected and how. 4860 cat >conftest.$ac_ext <<_ACEOF 4861/* confdefs.h. */ 4862_ACEOF 4863cat confdefs.h >>conftest.$ac_ext 4864cat >>conftest.$ac_ext <<_ACEOF 4865/* end confdefs.h. */ 4866#include <ac_nonexistent.h> 4867_ACEOF 4868if { (ac_try="$ac_cpp conftest.$ac_ext" 4869case "(($ac_try" in 4870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4871 *) ac_try_echo=$ac_try;; 4872esac 4873eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4874$as_echo "$ac_try_echo") >&5 4875 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4876 ac_status=$? 4877 grep -v '^ *+' conftest.er1 >conftest.err 4878 rm -f conftest.er1 4879 cat conftest.err >&5 4880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4881 (exit $ac_status); } >/dev/null && { 4882 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4883 test ! -s conftest.err 4884 }; then 4885 # Broken: success on invalid input. 4886continue 4887else 4888 $as_echo "$as_me: failed program was:" >&5 4889sed 's/^/| /' conftest.$ac_ext >&5 4890 4891 # Passes both tests. 4892ac_preproc_ok=: 4893break 4894fi 4895 4896rm -f conftest.err conftest.$ac_ext 4897 4898done 4899# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4900rm -f conftest.err conftest.$ac_ext 4901if $ac_preproc_ok; then 4902 : 4903else 4904 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 4905$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4906{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4907See \`config.log' for more details." >&5 4908$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4909See \`config.log' for more details." >&2;} 4910 { (exit 1); exit 1; }; }; } 4911fi 4912 4913ac_ext=c 4914ac_cpp='$CPP $CPPFLAGS' 4915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4917ac_compiler_gnu=$ac_cv_c_compiler_gnu 4918 4919 4920{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4921$as_echo_n "checking for ANSI C header files... " >&6; } 4922if test "${ac_cv_header_stdc+set}" = set; then 4923 $as_echo_n "(cached) " >&6 4924else 4925 cat >conftest.$ac_ext <<_ACEOF 4926/* confdefs.h. */ 4927_ACEOF 4928cat confdefs.h >>conftest.$ac_ext 4929cat >>conftest.$ac_ext <<_ACEOF 4930/* end confdefs.h. */ 4931#include <stdlib.h> 4932#include <stdarg.h> 4933#include <string.h> 4934#include <float.h> 4935 4936int 4937main () 4938{ 4939 4940 ; 4941 return 0; 4942} 4943_ACEOF 4944rm -f conftest.$ac_objext 4945if { (ac_try="$ac_compile" 4946case "(($ac_try" in 4947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4948 *) ac_try_echo=$ac_try;; 4949esac 4950eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4951$as_echo "$ac_try_echo") >&5 4952 (eval "$ac_compile") 2>conftest.er1 4953 ac_status=$? 4954 grep -v '^ *+' conftest.er1 >conftest.err 4955 rm -f conftest.er1 4956 cat conftest.err >&5 4957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4958 (exit $ac_status); } && { 4959 test -z "$ac_c_werror_flag" || 4960 test ! -s conftest.err 4961 } && test -s conftest.$ac_objext; then 4962 ac_cv_header_stdc=yes 4963else 4964 $as_echo "$as_me: failed program was:" >&5 4965sed 's/^/| /' conftest.$ac_ext >&5 4966 4967 ac_cv_header_stdc=no 4968fi 4969 4970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4971 4972if test $ac_cv_header_stdc = yes; then 4973 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4974 cat >conftest.$ac_ext <<_ACEOF 4975/* confdefs.h. */ 4976_ACEOF 4977cat confdefs.h >>conftest.$ac_ext 4978cat >>conftest.$ac_ext <<_ACEOF 4979/* end confdefs.h. */ 4980#include <string.h> 4981 4982_ACEOF 4983if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4984 $EGREP "memchr" >/dev/null 2>&1; then 4985 : 4986else 4987 ac_cv_header_stdc=no 4988fi 4989rm -f conftest* 4990 4991fi 4992 4993if test $ac_cv_header_stdc = yes; then 4994 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 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 5003_ACEOF 5004if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5005 $EGREP "free" >/dev/null 2>&1; then 5006 : 5007else 5008 ac_cv_header_stdc=no 5009fi 5010rm -f conftest* 5011 5012fi 5013 5014if test $ac_cv_header_stdc = yes; then 5015 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5016 if test "$cross_compiling" = yes; then 5017 : 5018else 5019 cat >conftest.$ac_ext <<_ACEOF 5020/* confdefs.h. */ 5021_ACEOF 5022cat confdefs.h >>conftest.$ac_ext 5023cat >>conftest.$ac_ext <<_ACEOF 5024/* end confdefs.h. */ 5025#include <ctype.h> 5026#include <stdlib.h> 5027#if ((' ' & 0x0FF) == 0x020) 5028# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5029# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5030#else 5031# define ISLOWER(c) \ 5032 (('a' <= (c) && (c) <= 'i') \ 5033 || ('j' <= (c) && (c) <= 'r') \ 5034 || ('s' <= (c) && (c) <= 'z')) 5035# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5036#endif 5037 5038#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5039int 5040main () 5041{ 5042 int i; 5043 for (i = 0; i < 256; i++) 5044 if (XOR (islower (i), ISLOWER (i)) 5045 || toupper (i) != TOUPPER (i)) 5046 return 2; 5047 return 0; 5048} 5049_ACEOF 5050rm -f conftest$ac_exeext 5051if { (ac_try="$ac_link" 5052case "(($ac_try" in 5053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5054 *) ac_try_echo=$ac_try;; 5055esac 5056eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5057$as_echo "$ac_try_echo") >&5 5058 (eval "$ac_link") 2>&5 5059 ac_status=$? 5060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5062 { (case "(($ac_try" in 5063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5064 *) ac_try_echo=$ac_try;; 5065esac 5066eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5067$as_echo "$ac_try_echo") >&5 5068 (eval "$ac_try") 2>&5 5069 ac_status=$? 5070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5071 (exit $ac_status); }; }; then 5072 : 5073else 5074 $as_echo "$as_me: program exited with status $ac_status" >&5 5075$as_echo "$as_me: failed program was:" >&5 5076sed 's/^/| /' conftest.$ac_ext >&5 5077 5078( exit $ac_status ) 5079ac_cv_header_stdc=no 5080fi 5081rm -rf conftest.dSYM 5082rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5083fi 5084 5085 5086fi 5087fi 5088{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5089$as_echo "$ac_cv_header_stdc" >&6; } 5090if test $ac_cv_header_stdc = yes; then 5091 5092cat >>confdefs.h <<\_ACEOF 5093#define STDC_HEADERS 1 5094_ACEOF 5095 5096fi 5097 5098# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5109 inttypes.h stdint.h unistd.h 5110do 5111as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5112{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5113$as_echo_n "checking for $ac_header... " >&6; } 5114if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5115 $as_echo_n "(cached) " >&6 5116else 5117 cat >conftest.$ac_ext <<_ACEOF 5118/* confdefs.h. */ 5119_ACEOF 5120cat confdefs.h >>conftest.$ac_ext 5121cat >>conftest.$ac_ext <<_ACEOF 5122/* end confdefs.h. */ 5123$ac_includes_default 5124 5125#include <$ac_header> 5126_ACEOF 5127rm -f conftest.$ac_objext 5128if { (ac_try="$ac_compile" 5129case "(($ac_try" in 5130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5131 *) ac_try_echo=$ac_try;; 5132esac 5133eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5134$as_echo "$ac_try_echo") >&5 5135 (eval "$ac_compile") 2>conftest.er1 5136 ac_status=$? 5137 grep -v '^ *+' conftest.er1 >conftest.err 5138 rm -f conftest.er1 5139 cat conftest.err >&5 5140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5141 (exit $ac_status); } && { 5142 test -z "$ac_c_werror_flag" || 5143 test ! -s conftest.err 5144 } && test -s conftest.$ac_objext; then 5145 eval "$as_ac_Header=yes" 5146else 5147 $as_echo "$as_me: failed program was:" >&5 5148sed 's/^/| /' conftest.$ac_ext >&5 5149 5150 eval "$as_ac_Header=no" 5151fi 5152 5153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5154fi 5155ac_res=`eval 'as_val=${'$as_ac_Header'} 5156 $as_echo "$as_val"'` 5157 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5158$as_echo "$ac_res" >&6; } 5159as_val=`eval 'as_val=${'$as_ac_Header'} 5160 $as_echo "$as_val"'` 5161 if test "x$as_val" = x""yes; then 5162 cat >>confdefs.h <<_ACEOF 5163#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5164_ACEOF 5165 5166fi 5167 5168done 5169 5170 5171 5172for ac_header in dlfcn.h 5173do 5174as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5175if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5176 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5177$as_echo_n "checking for $ac_header... " >&6; } 5178if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5179 $as_echo_n "(cached) " >&6 5180fi 5181ac_res=`eval 'as_val=${'$as_ac_Header'} 5182 $as_echo "$as_val"'` 5183 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5184$as_echo "$ac_res" >&6; } 5185else 5186 # Is the header compilable? 5187{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 5188$as_echo_n "checking $ac_header usability... " >&6; } 5189cat >conftest.$ac_ext <<_ACEOF 5190/* confdefs.h. */ 5191_ACEOF 5192cat confdefs.h >>conftest.$ac_ext 5193cat >>conftest.$ac_ext <<_ACEOF 5194/* end confdefs.h. */ 5195$ac_includes_default 5196#include <$ac_header> 5197_ACEOF 5198rm -f conftest.$ac_objext 5199if { (ac_try="$ac_compile" 5200case "(($ac_try" in 5201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5202 *) ac_try_echo=$ac_try;; 5203esac 5204eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5205$as_echo "$ac_try_echo") >&5 5206 (eval "$ac_compile") 2>conftest.er1 5207 ac_status=$? 5208 grep -v '^ *+' conftest.er1 >conftest.err 5209 rm -f conftest.er1 5210 cat conftest.err >&5 5211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5212 (exit $ac_status); } && { 5213 test -z "$ac_c_werror_flag" || 5214 test ! -s conftest.err 5215 } && test -s conftest.$ac_objext; then 5216 ac_header_compiler=yes 5217else 5218 $as_echo "$as_me: failed program was:" >&5 5219sed 's/^/| /' conftest.$ac_ext >&5 5220 5221 ac_header_compiler=no 5222fi 5223 5224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5225{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5226$as_echo "$ac_header_compiler" >&6; } 5227 5228# Is the header present? 5229{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 5230$as_echo_n "checking $ac_header presence... " >&6; } 5231cat >conftest.$ac_ext <<_ACEOF 5232/* confdefs.h. */ 5233_ACEOF 5234cat confdefs.h >>conftest.$ac_ext 5235cat >>conftest.$ac_ext <<_ACEOF 5236/* end confdefs.h. */ 5237#include <$ac_header> 5238_ACEOF 5239if { (ac_try="$ac_cpp conftest.$ac_ext" 5240case "(($ac_try" in 5241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5242 *) ac_try_echo=$ac_try;; 5243esac 5244eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5245$as_echo "$ac_try_echo") >&5 5246 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5247 ac_status=$? 5248 grep -v '^ *+' conftest.er1 >conftest.err 5249 rm -f conftest.er1 5250 cat conftest.err >&5 5251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5252 (exit $ac_status); } >/dev/null && { 5253 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5254 test ! -s conftest.err 5255 }; then 5256 ac_header_preproc=yes 5257else 5258 $as_echo "$as_me: failed program was:" >&5 5259sed 's/^/| /' conftest.$ac_ext >&5 5260 5261 ac_header_preproc=no 5262fi 5263 5264rm -f conftest.err conftest.$ac_ext 5265{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5266$as_echo "$ac_header_preproc" >&6; } 5267 5268# So? What about this header? 5269case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5270 yes:no: ) 5271 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5272$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5273 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5274$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5275 ac_header_preproc=yes 5276 ;; 5277 no:yes:* ) 5278 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5279$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5280 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5281$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5282 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5283$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5284 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5285$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5286 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5287$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5288 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5289$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5290 ( cat <<\_ASBOX 5291## ---------------------------------------------------------------------- ## 5292## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 5293## ---------------------------------------------------------------------- ## 5294_ASBOX 5295 ) | sed "s/^/$as_me: WARNING: /" >&2 5296 ;; 5297esac 5298{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5299$as_echo_n "checking for $ac_header... " >&6; } 5300if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5301 $as_echo_n "(cached) " >&6 5302else 5303 eval "$as_ac_Header=\$ac_header_preproc" 5304fi 5305ac_res=`eval 'as_val=${'$as_ac_Header'} 5306 $as_echo "$as_val"'` 5307 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5308$as_echo "$ac_res" >&6; } 5309 5310fi 5311as_val=`eval 'as_val=${'$as_ac_Header'} 5312 $as_echo "$as_val"'` 5313 if test "x$as_val" = x""yes; then 5314 cat >>confdefs.h <<_ACEOF 5315#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5316_ACEOF 5317 5318fi 5319 5320done 5321 5322ac_ext=cpp 5323ac_cpp='$CXXCPP $CPPFLAGS' 5324ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5325ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5326ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5327if test -z "$CXX"; then 5328 if test -n "$CCC"; then 5329 CXX=$CCC 5330 else 5331 if test -n "$ac_tool_prefix"; then 5332 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5333 do 5334 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5335set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5336{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5337$as_echo_n "checking for $ac_word... " >&6; } 5338if test "${ac_cv_prog_CXX+set}" = set; then 5339 $as_echo_n "(cached) " >&6 5340else 5341 if test -n "$CXX"; then 5342 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5343else 5344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5345for as_dir in $PATH 5346do 5347 IFS=$as_save_IFS 5348 test -z "$as_dir" && as_dir=. 5349 for ac_exec_ext in '' $ac_executable_extensions; do 5350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5351 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5352 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5353 break 2 5354 fi 5355done 5356done 5357IFS=$as_save_IFS 5358 5359fi 5360fi 5361CXX=$ac_cv_prog_CXX 5362if test -n "$CXX"; then 5363 { $as_echo "$as_me:$LINENO: result: $CXX" >&5 5364$as_echo "$CXX" >&6; } 5365else 5366 { $as_echo "$as_me:$LINENO: result: no" >&5 5367$as_echo "no" >&6; } 5368fi 5369 5370 5371 test -n "$CXX" && break 5372 done 5373fi 5374if test -z "$CXX"; then 5375 ac_ct_CXX=$CXX 5376 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5377do 5378 # Extract the first word of "$ac_prog", so it can be a program name with args. 5379set dummy $ac_prog; ac_word=$2 5380{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5381$as_echo_n "checking for $ac_word... " >&6; } 5382if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5383 $as_echo_n "(cached) " >&6 5384else 5385 if test -n "$ac_ct_CXX"; then 5386 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5387else 5388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5389for as_dir in $PATH 5390do 5391 IFS=$as_save_IFS 5392 test -z "$as_dir" && as_dir=. 5393 for ac_exec_ext in '' $ac_executable_extensions; do 5394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5395 ac_cv_prog_ac_ct_CXX="$ac_prog" 5396 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5397 break 2 5398 fi 5399done 5400done 5401IFS=$as_save_IFS 5402 5403fi 5404fi 5405ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5406if test -n "$ac_ct_CXX"; then 5407 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5408$as_echo "$ac_ct_CXX" >&6; } 5409else 5410 { $as_echo "$as_me:$LINENO: result: no" >&5 5411$as_echo "no" >&6; } 5412fi 5413 5414 5415 test -n "$ac_ct_CXX" && break 5416done 5417 5418 if test "x$ac_ct_CXX" = x; then 5419 CXX="g++" 5420 else 5421 case $cross_compiling:$ac_tool_warned in 5422yes:) 5423{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5424$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5425ac_tool_warned=yes ;; 5426esac 5427 CXX=$ac_ct_CXX 5428 fi 5429fi 5430 5431 fi 5432fi 5433# Provide some information about the compiler. 5434$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5435set X $ac_compile 5436ac_compiler=$2 5437{ (ac_try="$ac_compiler --version >&5" 5438case "(($ac_try" in 5439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5440 *) ac_try_echo=$ac_try;; 5441esac 5442eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5443$as_echo "$ac_try_echo") >&5 5444 (eval "$ac_compiler --version >&5") 2>&5 5445 ac_status=$? 5446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5447 (exit $ac_status); } 5448{ (ac_try="$ac_compiler -v >&5" 5449case "(($ac_try" in 5450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5451 *) ac_try_echo=$ac_try;; 5452esac 5453eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5454$as_echo "$ac_try_echo") >&5 5455 (eval "$ac_compiler -v >&5") 2>&5 5456 ac_status=$? 5457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5458 (exit $ac_status); } 5459{ (ac_try="$ac_compiler -V >&5" 5460case "(($ac_try" in 5461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5462 *) ac_try_echo=$ac_try;; 5463esac 5464eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5465$as_echo "$ac_try_echo") >&5 5466 (eval "$ac_compiler -V >&5") 2>&5 5467 ac_status=$? 5468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5469 (exit $ac_status); } 5470 5471{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5472$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 5473if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5474 $as_echo_n "(cached) " >&6 5475else 5476 cat >conftest.$ac_ext <<_ACEOF 5477/* confdefs.h. */ 5478_ACEOF 5479cat confdefs.h >>conftest.$ac_ext 5480cat >>conftest.$ac_ext <<_ACEOF 5481/* end confdefs.h. */ 5482 5483int 5484main () 5485{ 5486#ifndef __GNUC__ 5487 choke me 5488#endif 5489 5490 ; 5491 return 0; 5492} 5493_ACEOF 5494rm -f conftest.$ac_objext 5495if { (ac_try="$ac_compile" 5496case "(($ac_try" in 5497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5498 *) ac_try_echo=$ac_try;; 5499esac 5500eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5501$as_echo "$ac_try_echo") >&5 5502 (eval "$ac_compile") 2>conftest.er1 5503 ac_status=$? 5504 grep -v '^ *+' conftest.er1 >conftest.err 5505 rm -f conftest.er1 5506 cat conftest.err >&5 5507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5508 (exit $ac_status); } && { 5509 test -z "$ac_cxx_werror_flag" || 5510 test ! -s conftest.err 5511 } && test -s conftest.$ac_objext; then 5512 ac_compiler_gnu=yes 5513else 5514 $as_echo "$as_me: failed program was:" >&5 5515sed 's/^/| /' conftest.$ac_ext >&5 5516 5517 ac_compiler_gnu=no 5518fi 5519 5520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5521ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5522 5523fi 5524{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5525$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 5526if test $ac_compiler_gnu = yes; then 5527 GXX=yes 5528else 5529 GXX= 5530fi 5531ac_test_CXXFLAGS=${CXXFLAGS+set} 5532ac_save_CXXFLAGS=$CXXFLAGS 5533{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5534$as_echo_n "checking whether $CXX accepts -g... " >&6; } 5535if test "${ac_cv_prog_cxx_g+set}" = set; then 5536 $as_echo_n "(cached) " >&6 5537else 5538 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5539 ac_cxx_werror_flag=yes 5540 ac_cv_prog_cxx_g=no 5541 CXXFLAGS="-g" 5542 cat >conftest.$ac_ext <<_ACEOF 5543/* confdefs.h. */ 5544_ACEOF 5545cat confdefs.h >>conftest.$ac_ext 5546cat >>conftest.$ac_ext <<_ACEOF 5547/* end confdefs.h. */ 5548 5549int 5550main () 5551{ 5552 5553 ; 5554 return 0; 5555} 5556_ACEOF 5557rm -f conftest.$ac_objext 5558if { (ac_try="$ac_compile" 5559case "(($ac_try" in 5560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5561 *) ac_try_echo=$ac_try;; 5562esac 5563eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5564$as_echo "$ac_try_echo") >&5 5565 (eval "$ac_compile") 2>conftest.er1 5566 ac_status=$? 5567 grep -v '^ *+' conftest.er1 >conftest.err 5568 rm -f conftest.er1 5569 cat conftest.err >&5 5570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5571 (exit $ac_status); } && { 5572 test -z "$ac_cxx_werror_flag" || 5573 test ! -s conftest.err 5574 } && test -s conftest.$ac_objext; then 5575 ac_cv_prog_cxx_g=yes 5576else 5577 $as_echo "$as_me: failed program was:" >&5 5578sed 's/^/| /' conftest.$ac_ext >&5 5579 5580 CXXFLAGS="" 5581 cat >conftest.$ac_ext <<_ACEOF 5582/* confdefs.h. */ 5583_ACEOF 5584cat confdefs.h >>conftest.$ac_ext 5585cat >>conftest.$ac_ext <<_ACEOF 5586/* end confdefs.h. */ 5587 5588int 5589main () 5590{ 5591 5592 ; 5593 return 0; 5594} 5595_ACEOF 5596rm -f conftest.$ac_objext 5597if { (ac_try="$ac_compile" 5598case "(($ac_try" in 5599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5600 *) ac_try_echo=$ac_try;; 5601esac 5602eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5603$as_echo "$ac_try_echo") >&5 5604 (eval "$ac_compile") 2>conftest.er1 5605 ac_status=$? 5606 grep -v '^ *+' conftest.er1 >conftest.err 5607 rm -f conftest.er1 5608 cat conftest.err >&5 5609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5610 (exit $ac_status); } && { 5611 test -z "$ac_cxx_werror_flag" || 5612 test ! -s conftest.err 5613 } && test -s conftest.$ac_objext; then 5614 : 5615else 5616 $as_echo "$as_me: failed program was:" >&5 5617sed 's/^/| /' conftest.$ac_ext >&5 5618 5619 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5620 CXXFLAGS="-g" 5621 cat >conftest.$ac_ext <<_ACEOF 5622/* confdefs.h. */ 5623_ACEOF 5624cat confdefs.h >>conftest.$ac_ext 5625cat >>conftest.$ac_ext <<_ACEOF 5626/* end confdefs.h. */ 5627 5628int 5629main () 5630{ 5631 5632 ; 5633 return 0; 5634} 5635_ACEOF 5636rm -f conftest.$ac_objext 5637if { (ac_try="$ac_compile" 5638case "(($ac_try" in 5639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5640 *) ac_try_echo=$ac_try;; 5641esac 5642eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5643$as_echo "$ac_try_echo") >&5 5644 (eval "$ac_compile") 2>conftest.er1 5645 ac_status=$? 5646 grep -v '^ *+' conftest.er1 >conftest.err 5647 rm -f conftest.er1 5648 cat conftest.err >&5 5649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5650 (exit $ac_status); } && { 5651 test -z "$ac_cxx_werror_flag" || 5652 test ! -s conftest.err 5653 } && test -s conftest.$ac_objext; then 5654 ac_cv_prog_cxx_g=yes 5655else 5656 $as_echo "$as_me: failed program was:" >&5 5657sed 's/^/| /' conftest.$ac_ext >&5 5658 5659 5660fi 5661 5662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5663fi 5664 5665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5666fi 5667 5668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5669 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5670fi 5671{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5672$as_echo "$ac_cv_prog_cxx_g" >&6; } 5673if test "$ac_test_CXXFLAGS" = set; then 5674 CXXFLAGS=$ac_save_CXXFLAGS 5675elif test $ac_cv_prog_cxx_g = yes; then 5676 if test "$GXX" = yes; then 5677 CXXFLAGS="-g -O2" 5678 else 5679 CXXFLAGS="-g" 5680 fi 5681else 5682 if test "$GXX" = yes; then 5683 CXXFLAGS="-O2" 5684 else 5685 CXXFLAGS= 5686 fi 5687fi 5688ac_ext=cpp 5689ac_cpp='$CXXCPP $CPPFLAGS' 5690ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5691ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5692ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5693 5694depcc="$CXX" am_compiler_list= 5695 5696{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5697$as_echo_n "checking dependency style of $depcc... " >&6; } 5698if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5699 $as_echo_n "(cached) " >&6 5700else 5701 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5702 # We make a subdir and do the tests there. Otherwise we can end up 5703 # making bogus files that we don't know about and never remove. For 5704 # instance it was reported that on HP-UX the gcc test will end up 5705 # making a dummy file named `D' -- because `-MD' means `put the output 5706 # in D'. 5707 mkdir conftest.dir 5708 # Copy depcomp to subdir because otherwise we won't find it if we're 5709 # using a relative directory. 5710 cp "$am_depcomp" conftest.dir 5711 cd conftest.dir 5712 # We will build objects and dependencies in a subdirectory because 5713 # it helps to detect inapplicable dependency modes. For instance 5714 # both Tru64's cc and ICC support -MD to output dependencies as a 5715 # side effect of compilation, but ICC will put the dependencies in 5716 # the current directory while Tru64 will put them in the object 5717 # directory. 5718 mkdir sub 5719 5720 am_cv_CXX_dependencies_compiler_type=none 5721 if test "$am_compiler_list" = ""; then 5722 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5723 fi 5724 for depmode in $am_compiler_list; do 5725 # Setup a source with many dependencies, because some compilers 5726 # like to wrap large dependency lists on column 80 (with \), and 5727 # we should not choose a depcomp mode which is confused by this. 5728 # 5729 # We need to recreate these files for each test, as the compiler may 5730 # overwrite some of them when testing with obscure command lines. 5731 # This happens at least with the AIX C compiler. 5732 : > sub/conftest.c 5733 for i in 1 2 3 4 5 6; do 5734 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5735 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5736 # Solaris 8's {/usr,}/bin/sh. 5737 touch sub/conftst$i.h 5738 done 5739 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5740 5741 case $depmode in 5742 nosideeffect) 5743 # after this tag, mechanisms are not by side-effect, so they'll 5744 # only be used when explicitly requested 5745 if test "x$enable_dependency_tracking" = xyes; then 5746 continue 5747 else 5748 break 5749 fi 5750 ;; 5751 none) break ;; 5752 esac 5753 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5754 # mode. It turns out that the SunPro C++ compiler does not properly 5755 # handle `-M -o', and we need to detect this. 5756 if depmode=$depmode \ 5757 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5758 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5759 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5760 >/dev/null 2>conftest.err && 5761 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5762 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5763 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5764 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5765 # icc doesn't choke on unknown options, it will just issue warnings 5766 # or remarks (even with -Werror). So we grep stderr for any message 5767 # that says an option was ignored or not supported. 5768 # When given -MP, icc 7.0 and 7.1 complain thusly: 5769 # icc: Command line warning: ignoring option '-M'; no argument required 5770 # The diagnosis changed in icc 8.0: 5771 # icc: Command line remark: option '-MP' not supported 5772 if (grep 'ignoring option' conftest.err || 5773 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5774 am_cv_CXX_dependencies_compiler_type=$depmode 5775 break 5776 fi 5777 fi 5778 done 5779 5780 cd .. 5781 rm -rf conftest.dir 5782else 5783 am_cv_CXX_dependencies_compiler_type=none 5784fi 5785 5786fi 5787{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5788$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 5789CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5790 5791 if 5792 test "x$enable_dependency_tracking" != xno \ 5793 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5794 am__fastdepCXX_TRUE= 5795 am__fastdepCXX_FALSE='#' 5796else 5797 am__fastdepCXX_TRUE='#' 5798 am__fastdepCXX_FALSE= 5799fi 5800 5801 5802 5803 5804if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5805 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5806 (test "X$CXX" != "Xg++"))) ; then 5807 ac_ext=cpp 5808ac_cpp='$CXXCPP $CPPFLAGS' 5809ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5810ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5811ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5812{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5813$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 5814if test -z "$CXXCPP"; then 5815 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5816 $as_echo_n "(cached) " >&6 5817else 5818 # Double quotes because CXXCPP needs to be expanded 5819 for CXXCPP in "$CXX -E" "/lib/cpp" 5820 do 5821 ac_preproc_ok=false 5822for ac_cxx_preproc_warn_flag in '' yes 5823do 5824 # Use a header file that comes with gcc, so configuring glibc 5825 # with a fresh cross-compiler works. 5826 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5827 # <limits.h> exists even on freestanding compilers. 5828 # On the NeXT, cc -E runs the code through the compiler's parser, 5829 # not just through cpp. "Syntax error" is here to catch this case. 5830 cat >conftest.$ac_ext <<_ACEOF 5831/* confdefs.h. */ 5832_ACEOF 5833cat confdefs.h >>conftest.$ac_ext 5834cat >>conftest.$ac_ext <<_ACEOF 5835/* end confdefs.h. */ 5836#ifdef __STDC__ 5837# include <limits.h> 5838#else 5839# include <assert.h> 5840#endif 5841 Syntax error 5842_ACEOF 5843if { (ac_try="$ac_cpp conftest.$ac_ext" 5844case "(($ac_try" in 5845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5846 *) ac_try_echo=$ac_try;; 5847esac 5848eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5849$as_echo "$ac_try_echo") >&5 5850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5851 ac_status=$? 5852 grep -v '^ *+' conftest.er1 >conftest.err 5853 rm -f conftest.er1 5854 cat conftest.err >&5 5855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5856 (exit $ac_status); } >/dev/null && { 5857 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5858 test ! -s conftest.err 5859 }; then 5860 : 5861else 5862 $as_echo "$as_me: failed program was:" >&5 5863sed 's/^/| /' conftest.$ac_ext >&5 5864 5865 # Broken: fails on valid input. 5866continue 5867fi 5868 5869rm -f conftest.err conftest.$ac_ext 5870 5871 # OK, works on sane cases. Now check whether nonexistent headers 5872 # can be detected and how. 5873 cat >conftest.$ac_ext <<_ACEOF 5874/* confdefs.h. */ 5875_ACEOF 5876cat confdefs.h >>conftest.$ac_ext 5877cat >>conftest.$ac_ext <<_ACEOF 5878/* end confdefs.h. */ 5879#include <ac_nonexistent.h> 5880_ACEOF 5881if { (ac_try="$ac_cpp conftest.$ac_ext" 5882case "(($ac_try" in 5883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5884 *) ac_try_echo=$ac_try;; 5885esac 5886eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5887$as_echo "$ac_try_echo") >&5 5888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5889 ac_status=$? 5890 grep -v '^ *+' conftest.er1 >conftest.err 5891 rm -f conftest.er1 5892 cat conftest.err >&5 5893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5894 (exit $ac_status); } >/dev/null && { 5895 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5896 test ! -s conftest.err 5897 }; then 5898 # Broken: success on invalid input. 5899continue 5900else 5901 $as_echo "$as_me: failed program was:" >&5 5902sed 's/^/| /' conftest.$ac_ext >&5 5903 5904 # Passes both tests. 5905ac_preproc_ok=: 5906break 5907fi 5908 5909rm -f conftest.err conftest.$ac_ext 5910 5911done 5912# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5913rm -f conftest.err conftest.$ac_ext 5914if $ac_preproc_ok; then 5915 break 5916fi 5917 5918 done 5919 ac_cv_prog_CXXCPP=$CXXCPP 5920 5921fi 5922 CXXCPP=$ac_cv_prog_CXXCPP 5923else 5924 ac_cv_prog_CXXCPP=$CXXCPP 5925fi 5926{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5 5927$as_echo "$CXXCPP" >&6; } 5928ac_preproc_ok=false 5929for ac_cxx_preproc_warn_flag in '' yes 5930do 5931 # Use a header file that comes with gcc, so configuring glibc 5932 # with a fresh cross-compiler works. 5933 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5934 # <limits.h> exists even on freestanding compilers. 5935 # On the NeXT, cc -E runs the code through the compiler's parser, 5936 # not just through cpp. "Syntax error" is here to catch this case. 5937 cat >conftest.$ac_ext <<_ACEOF 5938/* confdefs.h. */ 5939_ACEOF 5940cat confdefs.h >>conftest.$ac_ext 5941cat >>conftest.$ac_ext <<_ACEOF 5942/* end confdefs.h. */ 5943#ifdef __STDC__ 5944# include <limits.h> 5945#else 5946# include <assert.h> 5947#endif 5948 Syntax error 5949_ACEOF 5950if { (ac_try="$ac_cpp conftest.$ac_ext" 5951case "(($ac_try" in 5952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5953 *) ac_try_echo=$ac_try;; 5954esac 5955eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5956$as_echo "$ac_try_echo") >&5 5957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5958 ac_status=$? 5959 grep -v '^ *+' conftest.er1 >conftest.err 5960 rm -f conftest.er1 5961 cat conftest.err >&5 5962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5963 (exit $ac_status); } >/dev/null && { 5964 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5965 test ! -s conftest.err 5966 }; then 5967 : 5968else 5969 $as_echo "$as_me: failed program was:" >&5 5970sed 's/^/| /' conftest.$ac_ext >&5 5971 5972 # Broken: fails on valid input. 5973continue 5974fi 5975 5976rm -f conftest.err conftest.$ac_ext 5977 5978 # OK, works on sane cases. Now check whether nonexistent headers 5979 # can be detected and how. 5980 cat >conftest.$ac_ext <<_ACEOF 5981/* confdefs.h. */ 5982_ACEOF 5983cat confdefs.h >>conftest.$ac_ext 5984cat >>conftest.$ac_ext <<_ACEOF 5985/* end confdefs.h. */ 5986#include <ac_nonexistent.h> 5987_ACEOF 5988if { (ac_try="$ac_cpp conftest.$ac_ext" 5989case "(($ac_try" in 5990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5991 *) ac_try_echo=$ac_try;; 5992esac 5993eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5994$as_echo "$ac_try_echo") >&5 5995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5996 ac_status=$? 5997 grep -v '^ *+' conftest.er1 >conftest.err 5998 rm -f conftest.er1 5999 cat conftest.err >&5 6000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6001 (exit $ac_status); } >/dev/null && { 6002 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6003 test ! -s conftest.err 6004 }; then 6005 # Broken: success on invalid input. 6006continue 6007else 6008 $as_echo "$as_me: failed program was:" >&5 6009sed 's/^/| /' conftest.$ac_ext >&5 6010 6011 # Passes both tests. 6012ac_preproc_ok=: 6013break 6014fi 6015 6016rm -f conftest.err conftest.$ac_ext 6017 6018done 6019# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6020rm -f conftest.err conftest.$ac_ext 6021if $ac_preproc_ok; then 6022 : 6023else 6024 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 6025$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6026{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6027See \`config.log' for more details." >&5 6028$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6029See \`config.log' for more details." >&2;} 6030 { (exit 1); exit 1; }; }; } 6031fi 6032 6033ac_ext=cpp 6034ac_cpp='$CXXCPP $CPPFLAGS' 6035ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6036ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6037ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6038 6039fi 6040 6041 6042ac_ext=f 6043ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6044ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6045ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6046if test -n "$ac_tool_prefix"; then 6047 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 6048 do 6049 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6050set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6051{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6052$as_echo_n "checking for $ac_word... " >&6; } 6053if test "${ac_cv_prog_F77+set}" = set; then 6054 $as_echo_n "(cached) " >&6 6055else 6056 if test -n "$F77"; then 6057 ac_cv_prog_F77="$F77" # Let the user override the test. 6058else 6059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6060for as_dir in $PATH 6061do 6062 IFS=$as_save_IFS 6063 test -z "$as_dir" && as_dir=. 6064 for ac_exec_ext in '' $ac_executable_extensions; do 6065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6066 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 6067 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6068 break 2 6069 fi 6070done 6071done 6072IFS=$as_save_IFS 6073 6074fi 6075fi 6076F77=$ac_cv_prog_F77 6077if test -n "$F77"; then 6078 { $as_echo "$as_me:$LINENO: result: $F77" >&5 6079$as_echo "$F77" >&6; } 6080else 6081 { $as_echo "$as_me:$LINENO: result: no" >&5 6082$as_echo "no" >&6; } 6083fi 6084 6085 6086 test -n "$F77" && break 6087 done 6088fi 6089if test -z "$F77"; then 6090 ac_ct_F77=$F77 6091 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 6092do 6093 # Extract the first word of "$ac_prog", so it can be a program name with args. 6094set dummy $ac_prog; ac_word=$2 6095{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6096$as_echo_n "checking for $ac_word... " >&6; } 6097if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 6098 $as_echo_n "(cached) " >&6 6099else 6100 if test -n "$ac_ct_F77"; then 6101 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 6102else 6103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6104for as_dir in $PATH 6105do 6106 IFS=$as_save_IFS 6107 test -z "$as_dir" && as_dir=. 6108 for ac_exec_ext in '' $ac_executable_extensions; do 6109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6110 ac_cv_prog_ac_ct_F77="$ac_prog" 6111 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6112 break 2 6113 fi 6114done 6115done 6116IFS=$as_save_IFS 6117 6118fi 6119fi 6120ac_ct_F77=$ac_cv_prog_ac_ct_F77 6121if test -n "$ac_ct_F77"; then 6122 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 6123$as_echo "$ac_ct_F77" >&6; } 6124else 6125 { $as_echo "$as_me:$LINENO: result: no" >&5 6126$as_echo "no" >&6; } 6127fi 6128 6129 6130 test -n "$ac_ct_F77" && break 6131done 6132 6133 if test "x$ac_ct_F77" = x; then 6134 F77="" 6135 else 6136 case $cross_compiling:$ac_tool_warned in 6137yes:) 6138{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6139$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6140ac_tool_warned=yes ;; 6141esac 6142 F77=$ac_ct_F77 6143 fi 6144fi 6145 6146 6147# Provide some information about the compiler. 6148$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 6149set X $ac_compile 6150ac_compiler=$2 6151{ (ac_try="$ac_compiler --version >&5" 6152case "(($ac_try" in 6153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6154 *) ac_try_echo=$ac_try;; 6155esac 6156eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6157$as_echo "$ac_try_echo") >&5 6158 (eval "$ac_compiler --version >&5") 2>&5 6159 ac_status=$? 6160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6161 (exit $ac_status); } 6162{ (ac_try="$ac_compiler -v >&5" 6163case "(($ac_try" in 6164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6165 *) ac_try_echo=$ac_try;; 6166esac 6167eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6168$as_echo "$ac_try_echo") >&5 6169 (eval "$ac_compiler -v >&5") 2>&5 6170 ac_status=$? 6171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6172 (exit $ac_status); } 6173{ (ac_try="$ac_compiler -V >&5" 6174case "(($ac_try" in 6175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6176 *) ac_try_echo=$ac_try;; 6177esac 6178eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6179$as_echo "$ac_try_echo") >&5 6180 (eval "$ac_compiler -V >&5") 2>&5 6181 ac_status=$? 6182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6183 (exit $ac_status); } 6184rm -f a.out 6185 6186# If we don't use `.F' as extension, the preprocessor is not run on the 6187# input file. (Note that this only needs to work for GNU compilers.) 6188ac_save_ext=$ac_ext 6189ac_ext=F 6190{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6191$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; } 6192if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6193 $as_echo_n "(cached) " >&6 6194else 6195 cat >conftest.$ac_ext <<_ACEOF 6196 program main 6197#ifndef __GNUC__ 6198 choke me 6199#endif 6200 6201 end 6202_ACEOF 6203rm -f conftest.$ac_objext 6204if { (ac_try="$ac_compile" 6205case "(($ac_try" in 6206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6207 *) ac_try_echo=$ac_try;; 6208esac 6209eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6210$as_echo "$ac_try_echo") >&5 6211 (eval "$ac_compile") 2>conftest.er1 6212 ac_status=$? 6213 grep -v '^ *+' conftest.er1 >conftest.err 6214 rm -f conftest.er1 6215 cat conftest.err >&5 6216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6217 (exit $ac_status); } && { 6218 test -z "$ac_f77_werror_flag" || 6219 test ! -s conftest.err 6220 } && test -s conftest.$ac_objext; then 6221 ac_compiler_gnu=yes 6222else 6223 $as_echo "$as_me: failed program was:" >&5 6224sed 's/^/| /' conftest.$ac_ext >&5 6225 6226 ac_compiler_gnu=no 6227fi 6228 6229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6230ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6231 6232fi 6233{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6234$as_echo "$ac_cv_f77_compiler_gnu" >&6; } 6235ac_ext=$ac_save_ext 6236ac_test_FFLAGS=${FFLAGS+set} 6237ac_save_FFLAGS=$FFLAGS 6238FFLAGS= 6239{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6240$as_echo_n "checking whether $F77 accepts -g... " >&6; } 6241if test "${ac_cv_prog_f77_g+set}" = set; then 6242 $as_echo_n "(cached) " >&6 6243else 6244 FFLAGS=-g 6245cat >conftest.$ac_ext <<_ACEOF 6246 program main 6247 6248 end 6249_ACEOF 6250rm -f conftest.$ac_objext 6251if { (ac_try="$ac_compile" 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_compile") 2>conftest.er1 6259 ac_status=$? 6260 grep -v '^ *+' conftest.er1 >conftest.err 6261 rm -f conftest.er1 6262 cat conftest.err >&5 6263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6264 (exit $ac_status); } && { 6265 test -z "$ac_f77_werror_flag" || 6266 test ! -s conftest.err 6267 } && test -s conftest.$ac_objext; then 6268 ac_cv_prog_f77_g=yes 6269else 6270 $as_echo "$as_me: failed program was:" >&5 6271sed 's/^/| /' conftest.$ac_ext >&5 6272 6273 ac_cv_prog_f77_g=no 6274fi 6275 6276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6277 6278fi 6279{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6280$as_echo "$ac_cv_prog_f77_g" >&6; } 6281if test "$ac_test_FFLAGS" = set; then 6282 FFLAGS=$ac_save_FFLAGS 6283elif test $ac_cv_prog_f77_g = yes; then 6284 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6285 FFLAGS="-g -O2" 6286 else 6287 FFLAGS="-g" 6288 fi 6289else 6290 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6291 FFLAGS="-O2" 6292 else 6293 FFLAGS= 6294 fi 6295fi 6296 6297if test $ac_compiler_gnu = yes; then 6298 G77=yes 6299else 6300 G77= 6301fi 6302ac_ext=c 6303ac_cpp='$CPP $CPPFLAGS' 6304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6306ac_compiler_gnu=$ac_cv_c_compiler_gnu 6307 6308 6309 6310# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6311# find the maximum length of command line arguments 6312{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6313$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6314if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6315 $as_echo_n "(cached) " >&6 6316else 6317 i=0 6318 teststring="ABCD" 6319 6320 case $build_os in 6321 msdosdjgpp*) 6322 # On DJGPP, this test can blow up pretty badly due to problems in libc 6323 # (any single argument exceeding 2000 bytes causes a buffer overrun 6324 # during glob expansion). Even if it were fixed, the result of this 6325 # check would be larger than it should be. 6326 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6327 ;; 6328 6329 gnu*) 6330 # Under GNU Hurd, this test is not required because there is 6331 # no limit to the length of command line arguments. 6332 # Libtool will interpret -1 as no limit whatsoever 6333 lt_cv_sys_max_cmd_len=-1; 6334 ;; 6335 6336 cygwin* | mingw*) 6337 # On Win9x/ME, this test blows up -- it succeeds, but takes 6338 # about 5 minutes as the teststring grows exponentially. 6339 # Worse, since 9x/ME are not pre-emptively multitasking, 6340 # you end up with a "frozen" computer, even though with patience 6341 # the test eventually succeeds (with a max line length of 256k). 6342 # Instead, let's just punt: use the minimum linelength reported by 6343 # all of the supported platforms: 8192 (on NT/2K/XP). 6344 lt_cv_sys_max_cmd_len=8192; 6345 ;; 6346 6347 amigaos*) 6348 # On AmigaOS with pdksh, this test takes hours, literally. 6349 # So we just punt and use a minimum line length of 8192. 6350 lt_cv_sys_max_cmd_len=8192; 6351 ;; 6352 6353 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6354 # This has been around since 386BSD, at least. Likely further. 6355 if test -x /sbin/sysctl; then 6356 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6357 elif test -x /usr/sbin/sysctl; then 6358 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6359 else 6360 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6361 fi 6362 # And add a safety zone 6363 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6364 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6365 ;; 6366 6367 interix*) 6368 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6369 lt_cv_sys_max_cmd_len=196608 6370 ;; 6371 6372 osf*) 6373 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6374 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6375 # nice to cause kernel panics so lets avoid the loop below. 6376 # First set a reasonable default. 6377 lt_cv_sys_max_cmd_len=16384 6378 # 6379 if test -x /sbin/sysconfig; then 6380 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6381 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6382 esac 6383 fi 6384 ;; 6385 sco3.2v5*) 6386 lt_cv_sys_max_cmd_len=102400 6387 ;; 6388 sysv5* | sco5v6* | sysv4.2uw2*) 6389 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6390 if test -n "$kargmax"; then 6391 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6392 else 6393 lt_cv_sys_max_cmd_len=32768 6394 fi 6395 ;; 6396 *) 6397 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6398 if test -n "$lt_cv_sys_max_cmd_len"; then 6399 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6400 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6401 else 6402 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6403 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6404 = "XX$teststring") >/dev/null 2>&1 && 6405 new_result=`expr "X$teststring" : ".*" 2>&1` && 6406 lt_cv_sys_max_cmd_len=$new_result && 6407 test $i != 17 # 1/2 MB should be enough 6408 do 6409 i=`expr $i + 1` 6410 teststring=$teststring$teststring 6411 done 6412 teststring= 6413 # Add a significant safety factor because C++ compilers can tack on massive 6414 # amounts of additional arguments before passing them to the linker. 6415 # It appears as though 1/2 is a usable value. 6416 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6417 fi 6418 ;; 6419 esac 6420 6421fi 6422 6423if test -n $lt_cv_sys_max_cmd_len ; then 6424 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6425$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6426else 6427 { $as_echo "$as_me:$LINENO: result: none" >&5 6428$as_echo "none" >&6; } 6429fi 6430 6431 6432 6433 6434 6435# Check for command to grab the raw symbol name followed by C symbol from nm. 6436{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6437$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6438if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6439 $as_echo_n "(cached) " >&6 6440else 6441 6442# These are sane defaults that work on at least a few old systems. 6443# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6444 6445# Character class describing NM global symbol codes. 6446symcode='[BCDEGRST]' 6447 6448# Regexp to match symbols that can be accessed directly from C. 6449sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6450 6451# Transform an extracted symbol line into a proper C declaration 6452lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6453 6454# Transform an extracted symbol line into symbol name and symbol address 6455lt_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'" 6456 6457# Define system-specific variables. 6458case $host_os in 6459aix*) 6460 symcode='[BCDT]' 6461 ;; 6462cygwin* | mingw* | pw32*) 6463 symcode='[ABCDGISTW]' 6464 ;; 6465hpux*) # Its linker distinguishes data from code symbols 6466 if test "$host_cpu" = ia64; then 6467 symcode='[ABCDEGRST]' 6468 fi 6469 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6470 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'" 6471 ;; 6472linux* | k*bsd*-gnu) 6473 if test "$host_cpu" = ia64; then 6474 symcode='[ABCDGIRSTW]' 6475 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6476 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'" 6477 fi 6478 ;; 6479irix* | nonstopux*) 6480 symcode='[BCDEGRST]' 6481 ;; 6482osf*) 6483 symcode='[BCDEGQRST]' 6484 ;; 6485solaris*) 6486 symcode='[BDRT]' 6487 ;; 6488sco3.2v5*) 6489 symcode='[DT]' 6490 ;; 6491sysv4.2uw2*) 6492 symcode='[DT]' 6493 ;; 6494sysv5* | sco5v6* | unixware* | OpenUNIX*) 6495 symcode='[ABDT]' 6496 ;; 6497sysv4) 6498 symcode='[DFNSTU]' 6499 ;; 6500esac 6501 6502# Handle CRLF in mingw tool chain 6503opt_cr= 6504case $build_os in 6505mingw*) 6506 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6507 ;; 6508esac 6509 6510# If we're using GNU nm, then use its standard symbol codes. 6511case `$NM -V 2>&1` in 6512*GNU* | *'with BFD'*) 6513 symcode='[ABCDGIRSTW]' ;; 6514esac 6515 6516# Try without a prefix undercore, then with it. 6517for ac_symprfx in "" "_"; do 6518 6519 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6520 symxfrm="\\1 $ac_symprfx\\2 \\2" 6521 6522 # Write the raw and C identifiers. 6523 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6524 6525 # Check to see that the pipe works correctly. 6526 pipe_works=no 6527 6528 rm -f conftest* 6529 cat > conftest.$ac_ext <<EOF 6530#ifdef __cplusplus 6531extern "C" { 6532#endif 6533char nm_test_var; 6534void nm_test_func(){} 6535#ifdef __cplusplus 6536} 6537#endif 6538int main(){nm_test_var='a';nm_test_func();return(0);} 6539EOF 6540 6541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6542 (eval $ac_compile) 2>&5 6543 ac_status=$? 6544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6545 (exit $ac_status); }; then 6546 # Now try to grab the symbols. 6547 nlist=conftest.nm 6548 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6549 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6550 ac_status=$? 6551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6552 (exit $ac_status); } && test -s "$nlist"; then 6553 # Try sorting and uniquifying the output. 6554 if sort "$nlist" | uniq > "$nlist"T; then 6555 mv -f "$nlist"T "$nlist" 6556 else 6557 rm -f "$nlist"T 6558 fi 6559 6560 # Make sure that we snagged all the symbols we need. 6561 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6562 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6563 cat <<EOF > conftest.$ac_ext 6564#ifdef __cplusplus 6565extern "C" { 6566#endif 6567 6568EOF 6569 # Now generate the symbol file. 6570 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6571 6572 cat <<EOF >> conftest.$ac_ext 6573#if defined (__STDC__) && __STDC__ 6574# define lt_ptr_t void * 6575#else 6576# define lt_ptr_t char * 6577# define const 6578#endif 6579 6580/* The mapping between symbol names and symbols. */ 6581const struct { 6582 const char *name; 6583 lt_ptr_t address; 6584} 6585lt_preloaded_symbols[] = 6586{ 6587EOF 6588 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6589 cat <<\EOF >> conftest.$ac_ext 6590 {0, (lt_ptr_t) 0} 6591}; 6592 6593#ifdef __cplusplus 6594} 6595#endif 6596EOF 6597 # Now try linking the two files. 6598 mv conftest.$ac_objext conftstm.$ac_objext 6599 lt_save_LIBS="$LIBS" 6600 lt_save_CFLAGS="$CFLAGS" 6601 LIBS="conftstm.$ac_objext" 6602 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6604 (eval $ac_link) 2>&5 6605 ac_status=$? 6606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6607 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6608 pipe_works=yes 6609 fi 6610 LIBS="$lt_save_LIBS" 6611 CFLAGS="$lt_save_CFLAGS" 6612 else 6613 echo "cannot find nm_test_func in $nlist" >&5 6614 fi 6615 else 6616 echo "cannot find nm_test_var in $nlist" >&5 6617 fi 6618 else 6619 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6620 fi 6621 else 6622 echo "$progname: failed program was:" >&5 6623 cat conftest.$ac_ext >&5 6624 fi 6625 rm -rf conftest* conftst* 6626 6627 # Do not use the global_symbol_pipe unless it works. 6628 if test "$pipe_works" = yes; then 6629 break 6630 else 6631 lt_cv_sys_global_symbol_pipe= 6632 fi 6633done 6634 6635fi 6636 6637if test -z "$lt_cv_sys_global_symbol_pipe"; then 6638 lt_cv_sys_global_symbol_to_cdecl= 6639fi 6640if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6641 { $as_echo "$as_me:$LINENO: result: failed" >&5 6642$as_echo "failed" >&6; } 6643else 6644 { $as_echo "$as_me:$LINENO: result: ok" >&5 6645$as_echo "ok" >&6; } 6646fi 6647 6648{ $as_echo "$as_me:$LINENO: checking for objdir" >&5 6649$as_echo_n "checking for objdir... " >&6; } 6650if test "${lt_cv_objdir+set}" = set; then 6651 $as_echo_n "(cached) " >&6 6652else 6653 rm -f .libs 2>/dev/null 6654mkdir .libs 2>/dev/null 6655if test -d .libs; then 6656 lt_cv_objdir=.libs 6657else 6658 # MS-DOS does not allow filenames that begin with a dot. 6659 lt_cv_objdir=_libs 6660fi 6661rmdir .libs 2>/dev/null 6662fi 6663{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6664$as_echo "$lt_cv_objdir" >&6; } 6665objdir=$lt_cv_objdir 6666 6667 6668 6669 6670 6671case $host_os in 6672aix3*) 6673 # AIX sometimes has problems with the GCC collect2 program. For some 6674 # reason, if we set the COLLECT_NAMES environment variable, the problems 6675 # vanish in a puff of smoke. 6676 if test "X${COLLECT_NAMES+set}" != Xset; then 6677 COLLECT_NAMES= 6678 export COLLECT_NAMES 6679 fi 6680 ;; 6681esac 6682 6683# Sed substitution that helps us do robust quoting. It backslashifies 6684# metacharacters that are still active within double-quoted strings. 6685Xsed='sed -e 1s/^X//' 6686sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6687 6688# Same as above, but do not quote variable references. 6689double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6690 6691# Sed substitution to delay expansion of an escaped shell variable in a 6692# double_quote_subst'ed string. 6693delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6694 6695# Sed substitution to avoid accidental globbing in evaled expressions 6696no_glob_subst='s/\*/\\\*/g' 6697 6698# Constants: 6699rm="rm -f" 6700 6701# Global variables: 6702default_ofile=libtool 6703can_build_shared=yes 6704 6705# All known linkers require a `.a' archive for static linking (except MSVC, 6706# which needs '.lib'). 6707libext=a 6708ltmain="$ac_aux_dir/ltmain.sh" 6709ofile="$default_ofile" 6710with_gnu_ld="$lt_cv_prog_gnu_ld" 6711 6712if test -n "$ac_tool_prefix"; then 6713 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6714set dummy ${ac_tool_prefix}ar; ac_word=$2 6715{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6716$as_echo_n "checking for $ac_word... " >&6; } 6717if test "${ac_cv_prog_AR+set}" = set; then 6718 $as_echo_n "(cached) " >&6 6719else 6720 if test -n "$AR"; then 6721 ac_cv_prog_AR="$AR" # Let the user override the test. 6722else 6723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6724for as_dir in $PATH 6725do 6726 IFS=$as_save_IFS 6727 test -z "$as_dir" && as_dir=. 6728 for ac_exec_ext in '' $ac_executable_extensions; do 6729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6730 ac_cv_prog_AR="${ac_tool_prefix}ar" 6731 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6732 break 2 6733 fi 6734done 6735done 6736IFS=$as_save_IFS 6737 6738fi 6739fi 6740AR=$ac_cv_prog_AR 6741if test -n "$AR"; then 6742 { $as_echo "$as_me:$LINENO: result: $AR" >&5 6743$as_echo "$AR" >&6; } 6744else 6745 { $as_echo "$as_me:$LINENO: result: no" >&5 6746$as_echo "no" >&6; } 6747fi 6748 6749 6750fi 6751if test -z "$ac_cv_prog_AR"; then 6752 ac_ct_AR=$AR 6753 # Extract the first word of "ar", so it can be a program name with args. 6754set dummy ar; ac_word=$2 6755{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6756$as_echo_n "checking for $ac_word... " >&6; } 6757if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6758 $as_echo_n "(cached) " >&6 6759else 6760 if test -n "$ac_ct_AR"; then 6761 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6762else 6763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6764for as_dir in $PATH 6765do 6766 IFS=$as_save_IFS 6767 test -z "$as_dir" && as_dir=. 6768 for ac_exec_ext in '' $ac_executable_extensions; do 6769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6770 ac_cv_prog_ac_ct_AR="ar" 6771 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6772 break 2 6773 fi 6774done 6775done 6776IFS=$as_save_IFS 6777 6778fi 6779fi 6780ac_ct_AR=$ac_cv_prog_ac_ct_AR 6781if test -n "$ac_ct_AR"; then 6782 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6783$as_echo "$ac_ct_AR" >&6; } 6784else 6785 { $as_echo "$as_me:$LINENO: result: no" >&5 6786$as_echo "no" >&6; } 6787fi 6788 6789 if test "x$ac_ct_AR" = x; then 6790 AR="false" 6791 else 6792 case $cross_compiling:$ac_tool_warned in 6793yes:) 6794{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6795$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6796ac_tool_warned=yes ;; 6797esac 6798 AR=$ac_ct_AR 6799 fi 6800else 6801 AR="$ac_cv_prog_AR" 6802fi 6803 6804if test -n "$ac_tool_prefix"; then 6805 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6806set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6807{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6808$as_echo_n "checking for $ac_word... " >&6; } 6809if test "${ac_cv_prog_RANLIB+set}" = set; then 6810 $as_echo_n "(cached) " >&6 6811else 6812 if test -n "$RANLIB"; then 6813 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6814else 6815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6816for as_dir in $PATH 6817do 6818 IFS=$as_save_IFS 6819 test -z "$as_dir" && as_dir=. 6820 for ac_exec_ext in '' $ac_executable_extensions; do 6821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6822 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6823 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6824 break 2 6825 fi 6826done 6827done 6828IFS=$as_save_IFS 6829 6830fi 6831fi 6832RANLIB=$ac_cv_prog_RANLIB 6833if test -n "$RANLIB"; then 6834 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 6835$as_echo "$RANLIB" >&6; } 6836else 6837 { $as_echo "$as_me:$LINENO: result: no" >&5 6838$as_echo "no" >&6; } 6839fi 6840 6841 6842fi 6843if test -z "$ac_cv_prog_RANLIB"; then 6844 ac_ct_RANLIB=$RANLIB 6845 # Extract the first word of "ranlib", so it can be a program name with args. 6846set dummy ranlib; ac_word=$2 6847{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6848$as_echo_n "checking for $ac_word... " >&6; } 6849if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6850 $as_echo_n "(cached) " >&6 6851else 6852 if test -n "$ac_ct_RANLIB"; then 6853 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6854else 6855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6856for as_dir in $PATH 6857do 6858 IFS=$as_save_IFS 6859 test -z "$as_dir" && as_dir=. 6860 for ac_exec_ext in '' $ac_executable_extensions; do 6861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6862 ac_cv_prog_ac_ct_RANLIB="ranlib" 6863 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6864 break 2 6865 fi 6866done 6867done 6868IFS=$as_save_IFS 6869 6870fi 6871fi 6872ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6873if test -n "$ac_ct_RANLIB"; then 6874 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6875$as_echo "$ac_ct_RANLIB" >&6; } 6876else 6877 { $as_echo "$as_me:$LINENO: result: no" >&5 6878$as_echo "no" >&6; } 6879fi 6880 6881 if test "x$ac_ct_RANLIB" = x; then 6882 RANLIB=":" 6883 else 6884 case $cross_compiling:$ac_tool_warned in 6885yes:) 6886{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6887$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6888ac_tool_warned=yes ;; 6889esac 6890 RANLIB=$ac_ct_RANLIB 6891 fi 6892else 6893 RANLIB="$ac_cv_prog_RANLIB" 6894fi 6895 6896if test -n "$ac_tool_prefix"; then 6897 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6898set dummy ${ac_tool_prefix}strip; ac_word=$2 6899{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6900$as_echo_n "checking for $ac_word... " >&6; } 6901if test "${ac_cv_prog_STRIP+set}" = set; then 6902 $as_echo_n "(cached) " >&6 6903else 6904 if test -n "$STRIP"; then 6905 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6906else 6907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6908for as_dir in $PATH 6909do 6910 IFS=$as_save_IFS 6911 test -z "$as_dir" && as_dir=. 6912 for ac_exec_ext in '' $ac_executable_extensions; do 6913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6914 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6915 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6916 break 2 6917 fi 6918done 6919done 6920IFS=$as_save_IFS 6921 6922fi 6923fi 6924STRIP=$ac_cv_prog_STRIP 6925if test -n "$STRIP"; then 6926 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 6927$as_echo "$STRIP" >&6; } 6928else 6929 { $as_echo "$as_me:$LINENO: result: no" >&5 6930$as_echo "no" >&6; } 6931fi 6932 6933 6934fi 6935if test -z "$ac_cv_prog_STRIP"; then 6936 ac_ct_STRIP=$STRIP 6937 # Extract the first word of "strip", so it can be a program name with args. 6938set dummy strip; ac_word=$2 6939{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6940$as_echo_n "checking for $ac_word... " >&6; } 6941if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6942 $as_echo_n "(cached) " >&6 6943else 6944 if test -n "$ac_ct_STRIP"; then 6945 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6946else 6947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6948for as_dir in $PATH 6949do 6950 IFS=$as_save_IFS 6951 test -z "$as_dir" && as_dir=. 6952 for ac_exec_ext in '' $ac_executable_extensions; do 6953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6954 ac_cv_prog_ac_ct_STRIP="strip" 6955 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6956 break 2 6957 fi 6958done 6959done 6960IFS=$as_save_IFS 6961 6962fi 6963fi 6964ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6965if test -n "$ac_ct_STRIP"; then 6966 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6967$as_echo "$ac_ct_STRIP" >&6; } 6968else 6969 { $as_echo "$as_me:$LINENO: result: no" >&5 6970$as_echo "no" >&6; } 6971fi 6972 6973 if test "x$ac_ct_STRIP" = x; then 6974 STRIP=":" 6975 else 6976 case $cross_compiling:$ac_tool_warned in 6977yes:) 6978{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6979$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6980ac_tool_warned=yes ;; 6981esac 6982 STRIP=$ac_ct_STRIP 6983 fi 6984else 6985 STRIP="$ac_cv_prog_STRIP" 6986fi 6987 6988 6989old_CC="$CC" 6990old_CFLAGS="$CFLAGS" 6991 6992# Set sane defaults for various variables 6993test -z "$AR" && AR=ar 6994test -z "$AR_FLAGS" && AR_FLAGS=cru 6995test -z "$AS" && AS=as 6996test -z "$CC" && CC=cc 6997test -z "$LTCC" && LTCC=$CC 6998test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6999test -z "$DLLTOOL" && DLLTOOL=dlltool 7000test -z "$LD" && LD=ld 7001test -z "$LN_S" && LN_S="ln -s" 7002test -z "$MAGIC_CMD" && MAGIC_CMD=file 7003test -z "$NM" && NM=nm 7004test -z "$SED" && SED=sed 7005test -z "$OBJDUMP" && OBJDUMP=objdump 7006test -z "$RANLIB" && RANLIB=: 7007test -z "$STRIP" && STRIP=: 7008test -z "$ac_objext" && ac_objext=o 7009 7010# Determine commands to create old-style static archives. 7011old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7012old_postinstall_cmds='chmod 644 $oldlib' 7013old_postuninstall_cmds= 7014 7015if test -n "$RANLIB"; then 7016 case $host_os in 7017 openbsd*) 7018 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7019 ;; 7020 *) 7021 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7022 ;; 7023 esac 7024 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7025fi 7026 7027for cc_temp in $compiler""; do 7028 case $cc_temp in 7029 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7030 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7031 \-*) ;; 7032 *) break;; 7033 esac 7034done 7035cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7036 7037 7038# Only perform the check for file, if the check method requires it 7039case $deplibs_check_method in 7040file_magic*) 7041 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7042 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7043$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7044if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7045 $as_echo_n "(cached) " >&6 7046else 7047 case $MAGIC_CMD in 7048[\\/*] | ?:[\\/]*) 7049 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7050 ;; 7051*) 7052 lt_save_MAGIC_CMD="$MAGIC_CMD" 7053 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7054 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7055 for ac_dir in $ac_dummy; do 7056 IFS="$lt_save_ifs" 7057 test -z "$ac_dir" && ac_dir=. 7058 if test -f $ac_dir/${ac_tool_prefix}file; then 7059 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7060 if test -n "$file_magic_test_file"; then 7061 case $deplibs_check_method in 7062 "file_magic "*) 7063 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7064 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7065 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7066 $EGREP "$file_magic_regex" > /dev/null; then 7067 : 7068 else 7069 cat <<EOF 1>&2 7070 7071*** Warning: the command libtool uses to detect shared libraries, 7072*** $file_magic_cmd, produces output that libtool cannot recognize. 7073*** The result is that libtool may fail to recognize shared libraries 7074*** as such. This will affect the creation of libtool libraries that 7075*** depend on shared libraries, but programs linked with such libtool 7076*** libraries will work regardless of this problem. Nevertheless, you 7077*** may want to report the problem to your system manager and/or to 7078*** bug-libtool@gnu.org 7079 7080EOF 7081 fi ;; 7082 esac 7083 fi 7084 break 7085 fi 7086 done 7087 IFS="$lt_save_ifs" 7088 MAGIC_CMD="$lt_save_MAGIC_CMD" 7089 ;; 7090esac 7091fi 7092 7093MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7094if test -n "$MAGIC_CMD"; then 7095 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7096$as_echo "$MAGIC_CMD" >&6; } 7097else 7098 { $as_echo "$as_me:$LINENO: result: no" >&5 7099$as_echo "no" >&6; } 7100fi 7101 7102if test -z "$lt_cv_path_MAGIC_CMD"; then 7103 if test -n "$ac_tool_prefix"; then 7104 { $as_echo "$as_me:$LINENO: checking for file" >&5 7105$as_echo_n "checking for file... " >&6; } 7106if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7107 $as_echo_n "(cached) " >&6 7108else 7109 case $MAGIC_CMD in 7110[\\/*] | ?:[\\/]*) 7111 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7112 ;; 7113*) 7114 lt_save_MAGIC_CMD="$MAGIC_CMD" 7115 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7116 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7117 for ac_dir in $ac_dummy; do 7118 IFS="$lt_save_ifs" 7119 test -z "$ac_dir" && ac_dir=. 7120 if test -f $ac_dir/file; then 7121 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7122 if test -n "$file_magic_test_file"; then 7123 case $deplibs_check_method in 7124 "file_magic "*) 7125 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7126 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7127 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7128 $EGREP "$file_magic_regex" > /dev/null; then 7129 : 7130 else 7131 cat <<EOF 1>&2 7132 7133*** Warning: the command libtool uses to detect shared libraries, 7134*** $file_magic_cmd, produces output that libtool cannot recognize. 7135*** The result is that libtool may fail to recognize shared libraries 7136*** as such. This will affect the creation of libtool libraries that 7137*** depend on shared libraries, but programs linked with such libtool 7138*** libraries will work regardless of this problem. Nevertheless, you 7139*** may want to report the problem to your system manager and/or to 7140*** bug-libtool@gnu.org 7141 7142EOF 7143 fi ;; 7144 esac 7145 fi 7146 break 7147 fi 7148 done 7149 IFS="$lt_save_ifs" 7150 MAGIC_CMD="$lt_save_MAGIC_CMD" 7151 ;; 7152esac 7153fi 7154 7155MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7156if test -n "$MAGIC_CMD"; then 7157 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7158$as_echo "$MAGIC_CMD" >&6; } 7159else 7160 { $as_echo "$as_me:$LINENO: result: no" >&5 7161$as_echo "no" >&6; } 7162fi 7163 7164 else 7165 MAGIC_CMD=: 7166 fi 7167fi 7168 7169 fi 7170 ;; 7171esac 7172 7173 7174 case $host_os in 7175 rhapsody* | darwin*) 7176 if test -n "$ac_tool_prefix"; then 7177 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7178set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7179{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7180$as_echo_n "checking for $ac_word... " >&6; } 7181if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 7182 $as_echo_n "(cached) " >&6 7183else 7184 if test -n "$DSYMUTIL"; then 7185 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7186else 7187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7188for as_dir in $PATH 7189do 7190 IFS=$as_save_IFS 7191 test -z "$as_dir" && as_dir=. 7192 for ac_exec_ext in '' $ac_executable_extensions; do 7193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7194 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7195 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7196 break 2 7197 fi 7198done 7199done 7200IFS=$as_save_IFS 7201 7202fi 7203fi 7204DSYMUTIL=$ac_cv_prog_DSYMUTIL 7205if test -n "$DSYMUTIL"; then 7206 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 7207$as_echo "$DSYMUTIL" >&6; } 7208else 7209 { $as_echo "$as_me:$LINENO: result: no" >&5 7210$as_echo "no" >&6; } 7211fi 7212 7213 7214fi 7215if test -z "$ac_cv_prog_DSYMUTIL"; then 7216 ac_ct_DSYMUTIL=$DSYMUTIL 7217 # Extract the first word of "dsymutil", so it can be a program name with args. 7218set dummy dsymutil; ac_word=$2 7219{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7220$as_echo_n "checking for $ac_word... " >&6; } 7221if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 7222 $as_echo_n "(cached) " >&6 7223else 7224 if test -n "$ac_ct_DSYMUTIL"; then 7225 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7226else 7227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7228for as_dir in $PATH 7229do 7230 IFS=$as_save_IFS 7231 test -z "$as_dir" && as_dir=. 7232 for ac_exec_ext in '' $ac_executable_extensions; do 7233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7234 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7235 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7236 break 2 7237 fi 7238done 7239done 7240IFS=$as_save_IFS 7241 7242fi 7243fi 7244ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7245if test -n "$ac_ct_DSYMUTIL"; then 7246 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 7247$as_echo "$ac_ct_DSYMUTIL" >&6; } 7248else 7249 { $as_echo "$as_me:$LINENO: result: no" >&5 7250$as_echo "no" >&6; } 7251fi 7252 7253 if test "x$ac_ct_DSYMUTIL" = x; then 7254 DSYMUTIL=":" 7255 else 7256 case $cross_compiling:$ac_tool_warned in 7257yes:) 7258{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7259$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7260ac_tool_warned=yes ;; 7261esac 7262 DSYMUTIL=$ac_ct_DSYMUTIL 7263 fi 7264else 7265 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7266fi 7267 7268 if test -n "$ac_tool_prefix"; then 7269 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7270set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7271{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7272$as_echo_n "checking for $ac_word... " >&6; } 7273if test "${ac_cv_prog_NMEDIT+set}" = set; then 7274 $as_echo_n "(cached) " >&6 7275else 7276 if test -n "$NMEDIT"; then 7277 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7278else 7279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7280for as_dir in $PATH 7281do 7282 IFS=$as_save_IFS 7283 test -z "$as_dir" && as_dir=. 7284 for ac_exec_ext in '' $ac_executable_extensions; do 7285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7286 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7287 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7288 break 2 7289 fi 7290done 7291done 7292IFS=$as_save_IFS 7293 7294fi 7295fi 7296NMEDIT=$ac_cv_prog_NMEDIT 7297if test -n "$NMEDIT"; then 7298 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 7299$as_echo "$NMEDIT" >&6; } 7300else 7301 { $as_echo "$as_me:$LINENO: result: no" >&5 7302$as_echo "no" >&6; } 7303fi 7304 7305 7306fi 7307if test -z "$ac_cv_prog_NMEDIT"; then 7308 ac_ct_NMEDIT=$NMEDIT 7309 # Extract the first word of "nmedit", so it can be a program name with args. 7310set dummy nmedit; ac_word=$2 7311{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7312$as_echo_n "checking for $ac_word... " >&6; } 7313if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 7314 $as_echo_n "(cached) " >&6 7315else 7316 if test -n "$ac_ct_NMEDIT"; then 7317 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7318else 7319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7320for as_dir in $PATH 7321do 7322 IFS=$as_save_IFS 7323 test -z "$as_dir" && as_dir=. 7324 for ac_exec_ext in '' $ac_executable_extensions; do 7325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7326 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7327 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7328 break 2 7329 fi 7330done 7331done 7332IFS=$as_save_IFS 7333 7334fi 7335fi 7336ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7337if test -n "$ac_ct_NMEDIT"; then 7338 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 7339$as_echo "$ac_ct_NMEDIT" >&6; } 7340else 7341 { $as_echo "$as_me:$LINENO: result: no" >&5 7342$as_echo "no" >&6; } 7343fi 7344 7345 if test "x$ac_ct_NMEDIT" = x; then 7346 NMEDIT=":" 7347 else 7348 case $cross_compiling:$ac_tool_warned in 7349yes:) 7350{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7351$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7352ac_tool_warned=yes ;; 7353esac 7354 NMEDIT=$ac_ct_NMEDIT 7355 fi 7356else 7357 NMEDIT="$ac_cv_prog_NMEDIT" 7358fi 7359 7360 7361 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 7362$as_echo_n "checking for -single_module linker flag... " >&6; } 7363if test "${lt_cv_apple_cc_single_mod+set}" = set; then 7364 $as_echo_n "(cached) " >&6 7365else 7366 lt_cv_apple_cc_single_mod=no 7367 if test -z "${LT_MULTI_MODULE}"; then 7368 # By default we will add the -single_module flag. You can override 7369 # by either setting the environment variable LT_MULTI_MODULE 7370 # non-empty at configure time, or by adding -multi_module to the 7371 # link flags. 7372 echo "int foo(void){return 1;}" > conftest.c 7373 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7374 -dynamiclib ${wl}-single_module conftest.c 7375 if test -f libconftest.dylib; then 7376 lt_cv_apple_cc_single_mod=yes 7377 rm -rf libconftest.dylib* 7378 fi 7379 rm conftest.c 7380 fi 7381fi 7382{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 7383$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7384 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 7385$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7386if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 7387 $as_echo_n "(cached) " >&6 7388else 7389 lt_cv_ld_exported_symbols_list=no 7390 save_LDFLAGS=$LDFLAGS 7391 echo "_main" > conftest.sym 7392 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7393 cat >conftest.$ac_ext <<_ACEOF 7394/* confdefs.h. */ 7395_ACEOF 7396cat confdefs.h >>conftest.$ac_ext 7397cat >>conftest.$ac_ext <<_ACEOF 7398/* end confdefs.h. */ 7399 7400int 7401main () 7402{ 7403 7404 ; 7405 return 0; 7406} 7407_ACEOF 7408rm -f conftest.$ac_objext conftest$ac_exeext 7409if { (ac_try="$ac_link" 7410case "(($ac_try" in 7411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7412 *) ac_try_echo=$ac_try;; 7413esac 7414eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7415$as_echo "$ac_try_echo") >&5 7416 (eval "$ac_link") 2>conftest.er1 7417 ac_status=$? 7418 grep -v '^ *+' conftest.er1 >conftest.err 7419 rm -f conftest.er1 7420 cat conftest.err >&5 7421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7422 (exit $ac_status); } && { 7423 test -z "$ac_c_werror_flag" || 7424 test ! -s conftest.err 7425 } && test -s conftest$ac_exeext && { 7426 test "$cross_compiling" = yes || 7427 $as_test_x conftest$ac_exeext 7428 }; then 7429 lt_cv_ld_exported_symbols_list=yes 7430else 7431 $as_echo "$as_me: failed program was:" >&5 7432sed 's/^/| /' conftest.$ac_ext >&5 7433 7434 lt_cv_ld_exported_symbols_list=no 7435fi 7436 7437rm -rf conftest.dSYM 7438rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7439 conftest$ac_exeext conftest.$ac_ext 7440 LDFLAGS="$save_LDFLAGS" 7441 7442fi 7443{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 7444$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7445 case $host_os in 7446 rhapsody* | darwin1.[0123]) 7447 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7448 darwin1.*) 7449 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7450 darwin*) 7451 # if running on 10.5 or later, the deployment target defaults 7452 # to the OS version, if on x86, and 10.4, the deployment 7453 # target defaults to 10.4. Don't you love it? 7454 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7455 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7456 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7457 10.[012]*) 7458 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7459 10.*) 7460 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7461 esac 7462 ;; 7463 esac 7464 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7465 _lt_dar_single_mod='$single_module' 7466 fi 7467 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7468 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7469 else 7470 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}" 7471 fi 7472 if test "$DSYMUTIL" != ":"; then 7473 _lt_dsymutil="~$DSYMUTIL \$lib || :" 7474 else 7475 _lt_dsymutil= 7476 fi 7477 ;; 7478 esac 7479 7480 7481enable_dlopen=no 7482enable_win32_dll=no 7483 7484# Check whether --enable-libtool-lock was given. 7485if test "${enable_libtool_lock+set}" = set; then 7486 enableval=$enable_libtool_lock; 7487fi 7488 7489test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7490 7491 7492# Check whether --with-pic was given. 7493if test "${with_pic+set}" = set; then 7494 withval=$with_pic; pic_mode="$withval" 7495else 7496 pic_mode=default 7497fi 7498 7499test -z "$pic_mode" && pic_mode=default 7500 7501# Use C for the default configuration in the libtool script 7502tagname= 7503lt_save_CC="$CC" 7504ac_ext=c 7505ac_cpp='$CPP $CPPFLAGS' 7506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7508ac_compiler_gnu=$ac_cv_c_compiler_gnu 7509 7510 7511# Source file extension for C test sources. 7512ac_ext=c 7513 7514# Object file extension for compiled C test sources. 7515objext=o 7516objext=$objext 7517 7518# Code to be used in simple compile tests 7519lt_simple_compile_test_code="int some_variable = 0;" 7520 7521# Code to be used in simple link tests 7522lt_simple_link_test_code='int main(){return(0);}' 7523 7524 7525# If no C compiler was specified, use CC. 7526LTCC=${LTCC-"$CC"} 7527 7528# If no C compiler flags were specified, use CFLAGS. 7529LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7530 7531# Allow CC to be a program name with arguments. 7532compiler=$CC 7533 7534 7535# save warnings/boilerplate of simple test code 7536ac_outfile=conftest.$ac_objext 7537echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7538eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7539_lt_compiler_boilerplate=`cat conftest.err` 7540$rm conftest* 7541 7542ac_outfile=conftest.$ac_objext 7543echo "$lt_simple_link_test_code" >conftest.$ac_ext 7544eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7545_lt_linker_boilerplate=`cat conftest.err` 7546$rm -r conftest* 7547 7548 7549 7550lt_prog_compiler_no_builtin_flag= 7551 7552if test "$GCC" = yes; then 7553 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7554 7555 7556{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7557$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7558if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7559 $as_echo_n "(cached) " >&6 7560else 7561 lt_cv_prog_compiler_rtti_exceptions=no 7562 ac_outfile=conftest.$ac_objext 7563 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7564 lt_compiler_flag="-fno-rtti -fno-exceptions" 7565 # Insert the option either (1) after the last *FLAGS variable, or 7566 # (2) before a word containing "conftest.", or (3) at the end. 7567 # Note that $ac_compile itself does not contain backslashes and begins 7568 # with a dollar sign (not a hyphen), so the echo should work correctly. 7569 # The option is referenced via a variable to avoid confusing sed. 7570 lt_compile=`echo "$ac_compile" | $SED \ 7571 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7572 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7573 -e 's:$: $lt_compiler_flag:'` 7574 (eval echo "\"\$as_me:7574: $lt_compile\"" >&5) 7575 (eval "$lt_compile" 2>conftest.err) 7576 ac_status=$? 7577 cat conftest.err >&5 7578 echo "$as_me:7578: \$? = $ac_status" >&5 7579 if (exit $ac_status) && test -s "$ac_outfile"; then 7580 # The compiler can only warn and ignore the option if not recognized 7581 # So say no if there are warnings other than the usual output. 7582 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7583 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7584 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7585 lt_cv_prog_compiler_rtti_exceptions=yes 7586 fi 7587 fi 7588 $rm conftest* 7589 7590fi 7591{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7592$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7593 7594if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7595 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7596else 7597 : 7598fi 7599 7600fi 7601 7602lt_prog_compiler_wl= 7603lt_prog_compiler_pic= 7604lt_prog_compiler_static= 7605 7606{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7607$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7608 7609 if test "$GCC" = yes; then 7610 lt_prog_compiler_wl='-Wl,' 7611 lt_prog_compiler_static='-static' 7612 7613 case $host_os in 7614 aix*) 7615 # All AIX code is PIC. 7616 if test "$host_cpu" = ia64; then 7617 # AIX 5 now supports IA64 processor 7618 lt_prog_compiler_static='-Bstatic' 7619 fi 7620 ;; 7621 7622 amigaos*) 7623 # FIXME: we need at least 68020 code to build shared libraries, but 7624 # adding the `-m68020' flag to GCC prevents building anything better, 7625 # like `-m68040'. 7626 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7627 ;; 7628 7629 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7630 # PIC is the default for these OSes. 7631 ;; 7632 7633 mingw* | cygwin* | pw32* | os2*) 7634 # This hack is so that the source file can tell whether it is being 7635 # built for inclusion in a dll (and should export symbols for example). 7636 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7637 # (--disable-auto-import) libraries 7638 lt_prog_compiler_pic='-DDLL_EXPORT' 7639 ;; 7640 7641 darwin* | rhapsody*) 7642 # PIC is the default on this platform 7643 # Common symbols not allowed in MH_DYLIB files 7644 lt_prog_compiler_pic='-fno-common' 7645 ;; 7646 7647 interix[3-9]*) 7648 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7649 # Instead, we relocate shared libraries at runtime. 7650 ;; 7651 7652 msdosdjgpp*) 7653 # Just because we use GCC doesn't mean we suddenly get shared libraries 7654 # on systems that don't support them. 7655 lt_prog_compiler_can_build_shared=no 7656 enable_shared=no 7657 ;; 7658 7659 sysv4*MP*) 7660 if test -d /usr/nec; then 7661 lt_prog_compiler_pic=-Kconform_pic 7662 fi 7663 ;; 7664 7665 hpux*) 7666 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7667 # not for PA HP-UX. 7668 case $host_cpu in 7669 hppa*64*|ia64*) 7670 # +Z the default 7671 ;; 7672 *) 7673 lt_prog_compiler_pic='-fPIC' 7674 ;; 7675 esac 7676 ;; 7677 7678 *) 7679 lt_prog_compiler_pic='-fPIC' 7680 ;; 7681 esac 7682 else 7683 # PORTME Check for flag to pass linker flags through the system compiler. 7684 case $host_os in 7685 aix*) 7686 lt_prog_compiler_wl='-Wl,' 7687 if test "$host_cpu" = ia64; then 7688 # AIX 5 now supports IA64 processor 7689 lt_prog_compiler_static='-Bstatic' 7690 else 7691 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7692 fi 7693 ;; 7694 darwin*) 7695 # PIC is the default on this platform 7696 # Common symbols not allowed in MH_DYLIB files 7697 case $cc_basename in 7698 xlc*) 7699 lt_prog_compiler_pic='-qnocommon' 7700 lt_prog_compiler_wl='-Wl,' 7701 ;; 7702 esac 7703 ;; 7704 7705 mingw* | cygwin* | pw32* | os2*) 7706 # This hack is so that the source file can tell whether it is being 7707 # built for inclusion in a dll (and should export symbols for example). 7708 lt_prog_compiler_pic='-DDLL_EXPORT' 7709 ;; 7710 7711 hpux9* | hpux10* | hpux11*) 7712 lt_prog_compiler_wl='-Wl,' 7713 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7714 # not for PA HP-UX. 7715 case $host_cpu in 7716 hppa*64*|ia64*) 7717 # +Z the default 7718 ;; 7719 *) 7720 lt_prog_compiler_pic='+Z' 7721 ;; 7722 esac 7723 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7724 lt_prog_compiler_static='${wl}-a ${wl}archive' 7725 ;; 7726 7727 irix5* | irix6* | nonstopux*) 7728 lt_prog_compiler_wl='-Wl,' 7729 # PIC (with -KPIC) is the default. 7730 lt_prog_compiler_static='-non_shared' 7731 ;; 7732 7733 newsos6) 7734 lt_prog_compiler_pic='-KPIC' 7735 lt_prog_compiler_static='-Bstatic' 7736 ;; 7737 7738 linux* | k*bsd*-gnu) 7739 case $cc_basename in 7740 icc* | ecc*) 7741 lt_prog_compiler_wl='-Wl,' 7742 lt_prog_compiler_pic='-KPIC' 7743 lt_prog_compiler_static='-static' 7744 ;; 7745 pgcc* | pgf77* | pgf90* | pgf95*) 7746 # Portland Group compilers (*not* the Pentium gcc compiler, 7747 # which looks to be a dead project) 7748 lt_prog_compiler_wl='-Wl,' 7749 lt_prog_compiler_pic='-fpic' 7750 lt_prog_compiler_static='-Bstatic' 7751 ;; 7752 ccc*) 7753 lt_prog_compiler_wl='-Wl,' 7754 # All Alpha code is PIC. 7755 lt_prog_compiler_static='-non_shared' 7756 ;; 7757 *) 7758 case `$CC -V 2>&1 | sed 5q` in 7759 *Sun\ C*) 7760 # Sun C 5.9 7761 lt_prog_compiler_pic='-KPIC' 7762 lt_prog_compiler_static='-Bstatic' 7763 lt_prog_compiler_wl='-Wl,' 7764 ;; 7765 *Sun\ F*) 7766 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7767 lt_prog_compiler_pic='-KPIC' 7768 lt_prog_compiler_static='-Bstatic' 7769 lt_prog_compiler_wl='' 7770 ;; 7771 esac 7772 ;; 7773 esac 7774 ;; 7775 7776 osf3* | osf4* | osf5*) 7777 lt_prog_compiler_wl='-Wl,' 7778 # All OSF/1 code is PIC. 7779 lt_prog_compiler_static='-non_shared' 7780 ;; 7781 7782 rdos*) 7783 lt_prog_compiler_static='-non_shared' 7784 ;; 7785 7786 solaris*) 7787 lt_prog_compiler_pic='-KPIC' 7788 lt_prog_compiler_static='-Bstatic' 7789 case $cc_basename in 7790 f77* | f90* | f95*) 7791 lt_prog_compiler_wl='-Qoption ld ';; 7792 *) 7793 lt_prog_compiler_wl='-Wl,';; 7794 esac 7795 ;; 7796 7797 sunos4*) 7798 lt_prog_compiler_wl='-Qoption ld ' 7799 lt_prog_compiler_pic='-PIC' 7800 lt_prog_compiler_static='-Bstatic' 7801 ;; 7802 7803 sysv4 | sysv4.2uw2* | sysv4.3*) 7804 lt_prog_compiler_wl='-Wl,' 7805 lt_prog_compiler_pic='-KPIC' 7806 lt_prog_compiler_static='-Bstatic' 7807 ;; 7808 7809 sysv4*MP*) 7810 if test -d /usr/nec ;then 7811 lt_prog_compiler_pic='-Kconform_pic' 7812 lt_prog_compiler_static='-Bstatic' 7813 fi 7814 ;; 7815 7816 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7817 lt_prog_compiler_wl='-Wl,' 7818 lt_prog_compiler_pic='-KPIC' 7819 lt_prog_compiler_static='-Bstatic' 7820 ;; 7821 7822 unicos*) 7823 lt_prog_compiler_wl='-Wl,' 7824 lt_prog_compiler_can_build_shared=no 7825 ;; 7826 7827 uts4*) 7828 lt_prog_compiler_pic='-pic' 7829 lt_prog_compiler_static='-Bstatic' 7830 ;; 7831 7832 *) 7833 lt_prog_compiler_can_build_shared=no 7834 ;; 7835 esac 7836 fi 7837 7838{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7839$as_echo "$lt_prog_compiler_pic" >&6; } 7840 7841# 7842# Check to make sure the PIC flag actually works. 7843# 7844if test -n "$lt_prog_compiler_pic"; then 7845 7846{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7847$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7848if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 7849 $as_echo_n "(cached) " >&6 7850else 7851 lt_cv_prog_compiler_pic_works=no 7852 ac_outfile=conftest.$ac_objext 7853 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7854 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7855 # Insert the option either (1) after the last *FLAGS variable, or 7856 # (2) before a word containing "conftest.", or (3) at the end. 7857 # Note that $ac_compile itself does not contain backslashes and begins 7858 # with a dollar sign (not a hyphen), so the echo should work correctly. 7859 # The option is referenced via a variable to avoid confusing sed. 7860 lt_compile=`echo "$ac_compile" | $SED \ 7861 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7862 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7863 -e 's:$: $lt_compiler_flag:'` 7864 (eval echo "\"\$as_me:7864: $lt_compile\"" >&5) 7865 (eval "$lt_compile" 2>conftest.err) 7866 ac_status=$? 7867 cat conftest.err >&5 7868 echo "$as_me:7868: \$? = $ac_status" >&5 7869 if (exit $ac_status) && test -s "$ac_outfile"; then 7870 # The compiler can only warn and ignore the option if not recognized 7871 # So say no if there are warnings other than the usual output. 7872 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7873 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7874 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7875 lt_cv_prog_compiler_pic_works=yes 7876 fi 7877 fi 7878 $rm conftest* 7879 7880fi 7881{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 7882$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7883 7884if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7885 case $lt_prog_compiler_pic in 7886 "" | " "*) ;; 7887 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7888 esac 7889else 7890 lt_prog_compiler_pic= 7891 lt_prog_compiler_can_build_shared=no 7892fi 7893 7894fi 7895case $host_os in 7896 # For platforms which do not support PIC, -DPIC is meaningless: 7897 *djgpp*) 7898 lt_prog_compiler_pic= 7899 ;; 7900 *) 7901 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7902 ;; 7903esac 7904 7905# 7906# Check to make sure the static flag actually works. 7907# 7908wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7909{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7910$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7911if test "${lt_cv_prog_compiler_static_works+set}" = set; then 7912 $as_echo_n "(cached) " >&6 7913else 7914 lt_cv_prog_compiler_static_works=no 7915 save_LDFLAGS="$LDFLAGS" 7916 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7917 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7918 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7919 # The linker can only warn and ignore the option if not recognized 7920 # So say no if there are warnings 7921 if test -s conftest.err; then 7922 # Append any errors to the config.log. 7923 cat conftest.err 1>&5 7924 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7925 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7926 if diff conftest.exp conftest.er2 >/dev/null; then 7927 lt_cv_prog_compiler_static_works=yes 7928 fi 7929 else 7930 lt_cv_prog_compiler_static_works=yes 7931 fi 7932 fi 7933 $rm -r conftest* 7934 LDFLAGS="$save_LDFLAGS" 7935 7936fi 7937{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 7938$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 7939 7940if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7941 : 7942else 7943 lt_prog_compiler_static= 7944fi 7945 7946 7947{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7948$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7949if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7950 $as_echo_n "(cached) " >&6 7951else 7952 lt_cv_prog_compiler_c_o=no 7953 $rm -r conftest 2>/dev/null 7954 mkdir conftest 7955 cd conftest 7956 mkdir out 7957 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7958 7959 lt_compiler_flag="-o out/conftest2.$ac_objext" 7960 # Insert the option either (1) after the last *FLAGS variable, or 7961 # (2) before a word containing "conftest.", or (3) at the end. 7962 # Note that $ac_compile itself does not contain backslashes and begins 7963 # with a dollar sign (not a hyphen), so the echo should work correctly. 7964 lt_compile=`echo "$ac_compile" | $SED \ 7965 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7966 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7967 -e 's:$: $lt_compiler_flag:'` 7968 (eval echo "\"\$as_me:7968: $lt_compile\"" >&5) 7969 (eval "$lt_compile" 2>out/conftest.err) 7970 ac_status=$? 7971 cat out/conftest.err >&5 7972 echo "$as_me:7972: \$? = $ac_status" >&5 7973 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7974 then 7975 # The compiler can only warn and ignore the option if not recognized 7976 # So say no if there are warnings 7977 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7978 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7979 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7980 lt_cv_prog_compiler_c_o=yes 7981 fi 7982 fi 7983 chmod u+w . 2>&5 7984 $rm conftest* 7985 # SGI C++ compiler will create directory out/ii_files/ for 7986 # template instantiation 7987 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7988 $rm out/* && rmdir out 7989 cd .. 7990 rmdir conftest 7991 $rm conftest* 7992 7993fi 7994{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7995$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7996 7997 7998hard_links="nottested" 7999if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8000 # do not overwrite the value of need_locks provided by the user 8001 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8002$as_echo_n "checking if we can lock with hard links... " >&6; } 8003 hard_links=yes 8004 $rm conftest* 8005 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8006 touch conftest.a 8007 ln conftest.a conftest.b 2>&5 || hard_links=no 8008 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8009 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 8010$as_echo "$hard_links" >&6; } 8011 if test "$hard_links" = no; then 8012 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8013$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8014 need_locks=warn 8015 fi 8016else 8017 need_locks=no 8018fi 8019 8020{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8021$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8022 8023 runpath_var= 8024 allow_undefined_flag= 8025 enable_shared_with_static_runtimes=no 8026 archive_cmds= 8027 archive_expsym_cmds= 8028 old_archive_From_new_cmds= 8029 old_archive_from_expsyms_cmds= 8030 export_dynamic_flag_spec= 8031 whole_archive_flag_spec= 8032 thread_safe_flag_spec= 8033 hardcode_libdir_flag_spec= 8034 hardcode_libdir_flag_spec_ld= 8035 hardcode_libdir_separator= 8036 hardcode_direct=no 8037 hardcode_minus_L=no 8038 hardcode_shlibpath_var=unsupported 8039 link_all_deplibs=unknown 8040 hardcode_automatic=no 8041 module_cmds= 8042 module_expsym_cmds= 8043 always_export_symbols=no 8044 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8045 # include_expsyms should be a list of space-separated symbols to be *always* 8046 # included in the symbol list 8047 include_expsyms= 8048 # exclude_expsyms can be an extended regexp of symbols to exclude 8049 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8050 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8051 # as well as any symbol that contains `d'. 8052 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8053 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8054 # platforms (ab)use it in PIC code, but their linkers get confused if 8055 # the symbol is explicitly referenced. Since portable code cannot 8056 # rely on this symbol name, it's probably fine to never include it in 8057 # preloaded symbol tables. 8058 # Exclude shared library initialization/finalization symbols. 8059 extract_expsyms_cmds= 8060 # Just being paranoid about ensuring that cc_basename is set. 8061 for cc_temp in $compiler""; do 8062 case $cc_temp in 8063 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8064 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8065 \-*) ;; 8066 *) break;; 8067 esac 8068done 8069cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8070 8071 case $host_os in 8072 cygwin* | mingw* | pw32*) 8073 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8074 # When not using gcc, we currently assume that we are using 8075 # Microsoft Visual C++. 8076 if test "$GCC" != yes; then 8077 with_gnu_ld=no 8078 fi 8079 ;; 8080 interix*) 8081 # we just hope/assume this is gcc and not c89 (= MSVC++) 8082 with_gnu_ld=yes 8083 ;; 8084 openbsd*) 8085 with_gnu_ld=no 8086 ;; 8087 esac 8088 8089 ld_shlibs=yes 8090 if test "$with_gnu_ld" = yes; then 8091 # If archive_cmds runs LD, not CC, wlarc should be empty 8092 wlarc='${wl}' 8093 8094 # Set some defaults for GNU ld with shared library support. These 8095 # are reset later if shared libraries are not supported. Putting them 8096 # here allows them to be overridden if necessary. 8097 runpath_var=LD_RUN_PATH 8098 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 8099 export_dynamic_flag_spec='${wl}--export-dynamic' 8100 # ancient GNU ld didn't support --whole-archive et. al. 8101 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 8102 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8103 else 8104 whole_archive_flag_spec= 8105 fi 8106 supports_anon_versioning=no 8107 case `$LD -v 2>/dev/null` in 8108 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8109 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8110 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8111 *\ 2.11.*) ;; # other 2.11 versions 8112 *) supports_anon_versioning=yes ;; 8113 esac 8114 8115 # See if GNU ld supports shared libraries. 8116 case $host_os in 8117 aix[3-9]*) 8118 # On AIX/PPC, the GNU linker is very broken 8119 if test "$host_cpu" != ia64; then 8120 ld_shlibs=no 8121 cat <<EOF 1>&2 8122 8123*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8124*** to be unable to reliably create shared libraries on AIX. 8125*** Therefore, libtool is disabling shared libraries support. If you 8126*** really care for shared libraries, you may want to modify your PATH 8127*** so that a non-GNU linker is found, and then restart. 8128 8129EOF 8130 fi 8131 ;; 8132 8133 amigaos*) 8134 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)' 8135 hardcode_libdir_flag_spec='-L$libdir' 8136 hardcode_minus_L=yes 8137 8138 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 8139 # that the semantics of dynamic libraries on AmigaOS, at least up 8140 # to version 4, is to share data among multiple programs linked 8141 # with the same dynamic library. Since this doesn't match the 8142 # behavior of shared libraries on other platforms, we can't use 8143 # them. 8144 ld_shlibs=no 8145 ;; 8146 8147 beos*) 8148 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8149 allow_undefined_flag=unsupported 8150 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8151 # support --undefined. This deserves some investigation. FIXME 8152 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8153 else 8154 ld_shlibs=no 8155 fi 8156 ;; 8157 8158 cygwin* | mingw* | pw32*) 8159 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8160 # as there is no search path for DLLs. 8161 hardcode_libdir_flag_spec='-L$libdir' 8162 allow_undefined_flag=unsupported 8163 always_export_symbols=no 8164 enable_shared_with_static_runtimes=yes 8165 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8166 8167 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 8168 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8169 # If the export-symbols file already is a .def file (1st line 8170 # is EXPORTS), use it as is; otherwise, prepend... 8171 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8172 cp $export_symbols $output_objdir/$soname.def; 8173 else 8174 echo EXPORTS > $output_objdir/$soname.def; 8175 cat $export_symbols >> $output_objdir/$soname.def; 8176 fi~ 8177 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8178 else 8179 ld_shlibs=no 8180 fi 8181 ;; 8182 8183 interix[3-9]*) 8184 hardcode_direct=no 8185 hardcode_shlibpath_var=no 8186 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8187 export_dynamic_flag_spec='${wl}-E' 8188 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8189 # Instead, shared libraries are loaded at an image base (0x10000000 by 8190 # default) and relocated if they conflict, which is a slow very memory 8191 # consuming and fragmenting process. To avoid this, we pick a random, 8192 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8193 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8194 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8195 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' 8196 ;; 8197 8198 gnu* | linux* | k*bsd*-gnu) 8199 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8200 tmp_addflag= 8201 case $cc_basename,$host_cpu in 8202 pgcc*) # Portland Group C compiler 8203 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' 8204 tmp_addflag=' $pic_flag' 8205 ;; 8206 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8207 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' 8208 tmp_addflag=' $pic_flag -Mnomain' ;; 8209 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8210 tmp_addflag=' -i_dynamic' ;; 8211 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8212 tmp_addflag=' -i_dynamic -nofor_main' ;; 8213 ifc* | ifort*) # Intel Fortran compiler 8214 tmp_addflag=' -nofor_main' ;; 8215 esac 8216 case `$CC -V 2>&1 | sed 5q` in 8217 *Sun\ C*) # Sun C 5.9 8218 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' 8219 tmp_sharedflag='-G' ;; 8220 *Sun\ F*) # Sun Fortran 8.3 8221 tmp_sharedflag='-G' ;; 8222 *) 8223 tmp_sharedflag='-shared' ;; 8224 esac 8225 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8226 8227 if test $supports_anon_versioning = yes; then 8228 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8229 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8230 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8231 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8232 fi 8233 else 8234 ld_shlibs=no 8235 fi 8236 ;; 8237 8238 netbsd*) 8239 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8240 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8241 wlarc= 8242 else 8243 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8244 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8245 fi 8246 ;; 8247 8248 solaris*) 8249 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8250 ld_shlibs=no 8251 cat <<EOF 1>&2 8252 8253*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8254*** create shared libraries on Solaris systems. Therefore, libtool 8255*** is disabling shared libraries support. We urge you to upgrade GNU 8256*** binutils to release 2.9.1 or newer. Another option is to modify 8257*** your PATH or compiler configuration so that the native linker is 8258*** used, and then restart. 8259 8260EOF 8261 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8262 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8263 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8264 else 8265 ld_shlibs=no 8266 fi 8267 ;; 8268 8269 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8270 case `$LD -v 2>&1` in 8271 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8272 ld_shlibs=no 8273 cat <<_LT_EOF 1>&2 8274 8275*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8276*** reliably create shared libraries on SCO systems. Therefore, libtool 8277*** is disabling shared libraries support. We urge you to upgrade GNU 8278*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8279*** your PATH or compiler configuration so that the native linker is 8280*** used, and then restart. 8281 8282_LT_EOF 8283 ;; 8284 *) 8285 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8286 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 8287 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 8288 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 8289 else 8290 ld_shlibs=no 8291 fi 8292 ;; 8293 esac 8294 ;; 8295 8296 sunos4*) 8297 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8298 wlarc= 8299 hardcode_direct=yes 8300 hardcode_shlibpath_var=no 8301 ;; 8302 8303 *) 8304 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8305 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8306 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8307 else 8308 ld_shlibs=no 8309 fi 8310 ;; 8311 esac 8312 8313 if test "$ld_shlibs" = no; then 8314 runpath_var= 8315 hardcode_libdir_flag_spec= 8316 export_dynamic_flag_spec= 8317 whole_archive_flag_spec= 8318 fi 8319 else 8320 # PORTME fill in a description of your system's linker (not GNU ld) 8321 case $host_os in 8322 aix3*) 8323 allow_undefined_flag=unsupported 8324 always_export_symbols=yes 8325 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' 8326 # Note: this linker hardcodes the directories in LIBPATH if there 8327 # are no directories specified by -L. 8328 hardcode_minus_L=yes 8329 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8330 # Neither direct hardcoding nor static linking is supported with a 8331 # broken collect2. 8332 hardcode_direct=unsupported 8333 fi 8334 ;; 8335 8336 aix[4-9]*) 8337 if test "$host_cpu" = ia64; then 8338 # On IA64, the linker does run time linking by default, so we don't 8339 # have to do anything special. 8340 aix_use_runtimelinking=no 8341 exp_sym_flag='-Bexport' 8342 no_entry_flag="" 8343 else 8344 # If we're using GNU nm, then we don't want the "-C" option. 8345 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8346 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 8347 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' 8348 else 8349 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' 8350 fi 8351 aix_use_runtimelinking=no 8352 8353 # Test if we are trying to use run time linking or normal 8354 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8355 # need to do runtime linking. 8356 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8357 for ld_flag in $LDFLAGS; do 8358 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8359 aix_use_runtimelinking=yes 8360 break 8361 fi 8362 done 8363 ;; 8364 esac 8365 8366 exp_sym_flag='-bexport' 8367 no_entry_flag='-bnoentry' 8368 fi 8369 8370 # When large executables or shared objects are built, AIX ld can 8371 # have problems creating the table of contents. If linking a library 8372 # or program results in "error TOC overflow" add -mminimal-toc to 8373 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8374 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8375 8376 archive_cmds='' 8377 hardcode_direct=yes 8378 hardcode_libdir_separator=':' 8379 link_all_deplibs=yes 8380 8381 if test "$GCC" = yes; then 8382 case $host_os in aix4.[012]|aix4.[012].*) 8383 # We only want to do this on AIX 4.2 and lower, the check 8384 # below for broken collect2 doesn't work under 4.3+ 8385 collect2name=`${CC} -print-prog-name=collect2` 8386 if test -f "$collect2name" && \ 8387 strings "$collect2name" | grep resolve_lib_name >/dev/null 8388 then 8389 # We have reworked collect2 8390 : 8391 else 8392 # We have old collect2 8393 hardcode_direct=unsupported 8394 # It fails to find uninstalled libraries when the uninstalled 8395 # path is not listed in the libpath. Setting hardcode_minus_L 8396 # to unsupported forces relinking 8397 hardcode_minus_L=yes 8398 hardcode_libdir_flag_spec='-L$libdir' 8399 hardcode_libdir_separator= 8400 fi 8401 ;; 8402 esac 8403 shared_flag='-shared' 8404 if test "$aix_use_runtimelinking" = yes; then 8405 shared_flag="$shared_flag "'${wl}-G' 8406 fi 8407 else 8408 # not using gcc 8409 if test "$host_cpu" = ia64; then 8410 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8411 # chokes on -Wl,-G. The following line is correct: 8412 shared_flag='-G' 8413 else 8414 if test "$aix_use_runtimelinking" = yes; then 8415 shared_flag='${wl}-G' 8416 else 8417 shared_flag='${wl}-bM:SRE' 8418 fi 8419 fi 8420 fi 8421 8422 # It seems that -bexpall does not export symbols beginning with 8423 # underscore (_), so it is better to generate a list of symbols to export. 8424 always_export_symbols=yes 8425 if test "$aix_use_runtimelinking" = yes; then 8426 # Warning - without using the other runtime loading flags (-brtl), 8427 # -berok will link without error, but may produce a broken library. 8428 allow_undefined_flag='-berok' 8429 # Determine the default libpath from the value encoded in an empty executable. 8430 cat >conftest.$ac_ext <<_ACEOF 8431/* confdefs.h. */ 8432_ACEOF 8433cat confdefs.h >>conftest.$ac_ext 8434cat >>conftest.$ac_ext <<_ACEOF 8435/* end confdefs.h. */ 8436 8437int 8438main () 8439{ 8440 8441 ; 8442 return 0; 8443} 8444_ACEOF 8445rm -f conftest.$ac_objext conftest$ac_exeext 8446if { (ac_try="$ac_link" 8447case "(($ac_try" in 8448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8449 *) ac_try_echo=$ac_try;; 8450esac 8451eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8452$as_echo "$ac_try_echo") >&5 8453 (eval "$ac_link") 2>conftest.er1 8454 ac_status=$? 8455 grep -v '^ *+' conftest.er1 >conftest.err 8456 rm -f conftest.er1 8457 cat conftest.err >&5 8458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8459 (exit $ac_status); } && { 8460 test -z "$ac_c_werror_flag" || 8461 test ! -s conftest.err 8462 } && test -s conftest$ac_exeext && { 8463 test "$cross_compiling" = yes || 8464 $as_test_x conftest$ac_exeext 8465 }; then 8466 8467lt_aix_libpath_sed=' 8468 /Import File Strings/,/^$/ { 8469 /^0/ { 8470 s/^0 *\(.*\)$/\1/ 8471 p 8472 } 8473 }' 8474aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8475# Check for a 64-bit object if we didn't find anything. 8476if test -z "$aix_libpath"; then 8477 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8478fi 8479else 8480 $as_echo "$as_me: failed program was:" >&5 8481sed 's/^/| /' conftest.$ac_ext >&5 8482 8483 8484fi 8485 8486rm -rf conftest.dSYM 8487rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8488 conftest$ac_exeext conftest.$ac_ext 8489if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8490 8491 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8492 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" 8493 else 8494 if test "$host_cpu" = ia64; then 8495 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8496 allow_undefined_flag="-z nodefs" 8497 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" 8498 else 8499 # Determine the default libpath from the value encoded in an empty executable. 8500 cat >conftest.$ac_ext <<_ACEOF 8501/* confdefs.h. */ 8502_ACEOF 8503cat confdefs.h >>conftest.$ac_ext 8504cat >>conftest.$ac_ext <<_ACEOF 8505/* end confdefs.h. */ 8506 8507int 8508main () 8509{ 8510 8511 ; 8512 return 0; 8513} 8514_ACEOF 8515rm -f conftest.$ac_objext conftest$ac_exeext 8516if { (ac_try="$ac_link" 8517case "(($ac_try" in 8518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8519 *) ac_try_echo=$ac_try;; 8520esac 8521eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8522$as_echo "$ac_try_echo") >&5 8523 (eval "$ac_link") 2>conftest.er1 8524 ac_status=$? 8525 grep -v '^ *+' conftest.er1 >conftest.err 8526 rm -f conftest.er1 8527 cat conftest.err >&5 8528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8529 (exit $ac_status); } && { 8530 test -z "$ac_c_werror_flag" || 8531 test ! -s conftest.err 8532 } && test -s conftest$ac_exeext && { 8533 test "$cross_compiling" = yes || 8534 $as_test_x conftest$ac_exeext 8535 }; then 8536 8537lt_aix_libpath_sed=' 8538 /Import File Strings/,/^$/ { 8539 /^0/ { 8540 s/^0 *\(.*\)$/\1/ 8541 p 8542 } 8543 }' 8544aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8545# Check for a 64-bit object if we didn't find anything. 8546if test -z "$aix_libpath"; then 8547 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8548fi 8549else 8550 $as_echo "$as_me: failed program was:" >&5 8551sed 's/^/| /' conftest.$ac_ext >&5 8552 8553 8554fi 8555 8556rm -rf conftest.dSYM 8557rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8558 conftest$ac_exeext conftest.$ac_ext 8559if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8560 8561 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8562 # Warning - without using the other run time loading flags, 8563 # -berok will link without error, but may produce a broken library. 8564 no_undefined_flag=' ${wl}-bernotok' 8565 allow_undefined_flag=' ${wl}-berok' 8566 # Exported symbols can be pulled into shared objects from archives 8567 whole_archive_flag_spec='$convenience' 8568 archive_cmds_need_lc=yes 8569 # This is similar to how AIX traditionally builds its shared libraries. 8570 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' 8571 fi 8572 fi 8573 ;; 8574 8575 amigaos*) 8576 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)' 8577 hardcode_libdir_flag_spec='-L$libdir' 8578 hardcode_minus_L=yes 8579 # see comment about different semantics on the GNU ld section 8580 ld_shlibs=no 8581 ;; 8582 8583 bsdi[45]*) 8584 export_dynamic_flag_spec=-rdynamic 8585 ;; 8586 8587 cygwin* | mingw* | pw32*) 8588 # When not using gcc, we currently assume that we are using 8589 # Microsoft Visual C++. 8590 # hardcode_libdir_flag_spec is actually meaningless, as there is 8591 # no search path for DLLs. 8592 hardcode_libdir_flag_spec=' ' 8593 allow_undefined_flag=unsupported 8594 # Tell ltmain to make .lib files, not .a files. 8595 libext=lib 8596 # Tell ltmain to make .dll files, not .so files. 8597 shrext_cmds=".dll" 8598 # FIXME: Setting linknames here is a bad hack. 8599 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8600 # The linker will automatically build a .lib file if we build a DLL. 8601 old_archive_From_new_cmds='true' 8602 # FIXME: Should let the user specify the lib program. 8603 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8604 fix_srcfile_path='`cygpath -w "$srcfile"`' 8605 enable_shared_with_static_runtimes=yes 8606 ;; 8607 8608 darwin* | rhapsody*) 8609 case $host_os in 8610 rhapsody* | darwin1.[012]) 8611 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8612 ;; 8613 *) # Darwin 1.3 on 8614 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8615 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8616 else 8617 case ${MACOSX_DEPLOYMENT_TARGET} in 8618 10.[012]) 8619 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8620 ;; 8621 10.*) 8622 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8623 ;; 8624 esac 8625 fi 8626 ;; 8627 esac 8628 archive_cmds_need_lc=no 8629 hardcode_direct=no 8630 hardcode_automatic=yes 8631 hardcode_shlibpath_var=unsupported 8632 whole_archive_flag_spec='' 8633 link_all_deplibs=yes 8634 if test "$GCC" = yes ; then 8635 output_verbose_link_cmd='echo' 8636 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8637 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8638 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}" 8639 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}" 8640 else 8641 case $cc_basename in 8642 xlc*) 8643 output_verbose_link_cmd='echo' 8644 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 8645 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8646 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8647 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}' 8648 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}' 8649 ;; 8650 *) 8651 ld_shlibs=no 8652 ;; 8653 esac 8654 fi 8655 ;; 8656 8657 dgux*) 8658 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8659 hardcode_libdir_flag_spec='-L$libdir' 8660 hardcode_shlibpath_var=no 8661 ;; 8662 8663 freebsd1*) 8664 ld_shlibs=no 8665 ;; 8666 8667 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8668 # support. Future versions do this automatically, but an explicit c++rt0.o 8669 # does not break anything, and helps significantly (at the cost of a little 8670 # extra space). 8671 freebsd2.2*) 8672 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8673 hardcode_libdir_flag_spec='-R$libdir' 8674 hardcode_direct=yes 8675 hardcode_shlibpath_var=no 8676 ;; 8677 8678 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8679 freebsd2*) 8680 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8681 hardcode_direct=yes 8682 hardcode_minus_L=yes 8683 hardcode_shlibpath_var=no 8684 ;; 8685 8686 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8687 freebsd* | dragonfly*) 8688 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8689 hardcode_libdir_flag_spec='-R$libdir' 8690 hardcode_direct=yes 8691 hardcode_shlibpath_var=no 8692 ;; 8693 8694 hpux9*) 8695 if test "$GCC" = yes; then 8696 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' 8697 else 8698 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' 8699 fi 8700 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8701 hardcode_libdir_separator=: 8702 hardcode_direct=yes 8703 8704 # hardcode_minus_L: Not really in the search PATH, 8705 # but as the default location of the library. 8706 hardcode_minus_L=yes 8707 export_dynamic_flag_spec='${wl}-E' 8708 ;; 8709 8710 hpux10*) 8711 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8712 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8713 else 8714 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8715 fi 8716 if test "$with_gnu_ld" = no; then 8717 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8718 hardcode_libdir_separator=: 8719 8720 hardcode_direct=yes 8721 export_dynamic_flag_spec='${wl}-E' 8722 8723 # hardcode_minus_L: Not really in the search PATH, 8724 # but as the default location of the library. 8725 hardcode_minus_L=yes 8726 fi 8727 ;; 8728 8729 hpux11*) 8730 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8731 case $host_cpu in 8732 hppa*64*) 8733 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8734 ;; 8735 ia64*) 8736 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8737 ;; 8738 *) 8739 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8740 ;; 8741 esac 8742 else 8743 case $host_cpu in 8744 hppa*64*) 8745 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8746 ;; 8747 ia64*) 8748 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8749 ;; 8750 *) 8751 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8752 ;; 8753 esac 8754 fi 8755 if test "$with_gnu_ld" = no; then 8756 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8757 hardcode_libdir_separator=: 8758 8759 case $host_cpu in 8760 hppa*64*|ia64*) 8761 hardcode_libdir_flag_spec_ld='+b $libdir' 8762 hardcode_direct=no 8763 hardcode_shlibpath_var=no 8764 ;; 8765 *) 8766 hardcode_direct=yes 8767 export_dynamic_flag_spec='${wl}-E' 8768 8769 # hardcode_minus_L: Not really in the search PATH, 8770 # but as the default location of the library. 8771 hardcode_minus_L=yes 8772 ;; 8773 esac 8774 fi 8775 ;; 8776 8777 irix5* | irix6* | nonstopux*) 8778 if test "$GCC" = yes; then 8779 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' 8780 else 8781 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' 8782 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8783 fi 8784 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8785 hardcode_libdir_separator=: 8786 link_all_deplibs=yes 8787 ;; 8788 8789 netbsd*) 8790 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8791 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8792 else 8793 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8794 fi 8795 hardcode_libdir_flag_spec='-R$libdir' 8796 hardcode_direct=yes 8797 hardcode_shlibpath_var=no 8798 ;; 8799 8800 newsos6) 8801 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8802 hardcode_direct=yes 8803 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8804 hardcode_libdir_separator=: 8805 hardcode_shlibpath_var=no 8806 ;; 8807 8808 openbsd*) 8809 if test -f /usr/libexec/ld.so; then 8810 hardcode_direct=yes 8811 hardcode_shlibpath_var=no 8812 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8813 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8814 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8815 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8816 export_dynamic_flag_spec='${wl}-E' 8817 else 8818 case $host_os in 8819 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8820 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8821 hardcode_libdir_flag_spec='-R$libdir' 8822 ;; 8823 *) 8824 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8825 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8826 ;; 8827 esac 8828 fi 8829 else 8830 ld_shlibs=no 8831 fi 8832 ;; 8833 8834 os2*) 8835 hardcode_libdir_flag_spec='-L$libdir' 8836 hardcode_minus_L=yes 8837 allow_undefined_flag=unsupported 8838 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' 8839 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8840 ;; 8841 8842 osf3*) 8843 if test "$GCC" = yes; then 8844 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8845 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' 8846 else 8847 allow_undefined_flag=' -expect_unresolved \*' 8848 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' 8849 fi 8850 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8851 hardcode_libdir_separator=: 8852 ;; 8853 8854 osf4* | osf5*) # as osf3* with the addition of -msym flag 8855 if test "$GCC" = yes; then 8856 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8857 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' 8858 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8859 else 8860 allow_undefined_flag=' -expect_unresolved \*' 8861 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' 8862 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8863 $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' 8864 8865 # Both c and cxx compiler support -rpath directly 8866 hardcode_libdir_flag_spec='-rpath $libdir' 8867 fi 8868 hardcode_libdir_separator=: 8869 ;; 8870 8871 solaris*) 8872 no_undefined_flag=' -z text' 8873 if test "$GCC" = yes; then 8874 wlarc='${wl}' 8875 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8876 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8877 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8878 else 8879 wlarc='' 8880 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8881 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8882 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8883 fi 8884 hardcode_libdir_flag_spec='-R$libdir' 8885 hardcode_shlibpath_var=no 8886 case $host_os in 8887 solaris2.[0-5] | solaris2.[0-5].*) ;; 8888 *) 8889 # The compiler driver will combine and reorder linker options, 8890 # but understands `-z linker_flag'. GCC discards it without `$wl', 8891 # but is careful enough not to reorder. 8892 # Supported since Solaris 2.6 (maybe 2.5.1?) 8893 if test "$GCC" = yes; then 8894 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8895 else 8896 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8897 fi 8898 ;; 8899 esac 8900 link_all_deplibs=yes 8901 ;; 8902 8903 sunos4*) 8904 if test "x$host_vendor" = xsequent; then 8905 # Use $CC to link under sequent, because it throws in some extra .o 8906 # files that make .init and .fini sections work. 8907 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8908 else 8909 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8910 fi 8911 hardcode_libdir_flag_spec='-L$libdir' 8912 hardcode_direct=yes 8913 hardcode_minus_L=yes 8914 hardcode_shlibpath_var=no 8915 ;; 8916 8917 sysv4) 8918 case $host_vendor in 8919 sni) 8920 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8921 hardcode_direct=yes # is this really true??? 8922 ;; 8923 siemens) 8924 ## LD is ld it makes a PLAMLIB 8925 ## CC just makes a GrossModule. 8926 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8927 reload_cmds='$CC -r -o $output$reload_objs' 8928 hardcode_direct=no 8929 ;; 8930 motorola) 8931 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8932 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8933 ;; 8934 esac 8935 runpath_var='LD_RUN_PATH' 8936 hardcode_shlibpath_var=no 8937 ;; 8938 8939 sysv4.3*) 8940 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8941 hardcode_shlibpath_var=no 8942 export_dynamic_flag_spec='-Bexport' 8943 ;; 8944 8945 sysv4*MP*) 8946 if test -d /usr/nec; then 8947 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8948 hardcode_shlibpath_var=no 8949 runpath_var=LD_RUN_PATH 8950 hardcode_runpath_var=yes 8951 ld_shlibs=yes 8952 fi 8953 ;; 8954 8955 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 8956 no_undefined_flag='${wl}-z,text' 8957 archive_cmds_need_lc=no 8958 hardcode_shlibpath_var=no 8959 runpath_var='LD_RUN_PATH' 8960 8961 if test "$GCC" = yes; then 8962 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8963 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8964 else 8965 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8966 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8967 fi 8968 ;; 8969 8970 sysv5* | sco3.2v5* | sco5v6*) 8971 # Note: We can NOT use -z defs as we might desire, because we do not 8972 # link with -lc, and that would cause any symbols used from libc to 8973 # always be unresolved, which means just about no library would 8974 # ever link correctly. If we're not using GNU ld we use -z text 8975 # though, which does catch some bad symbols but isn't as heavy-handed 8976 # as -z defs. 8977 no_undefined_flag='${wl}-z,text' 8978 allow_undefined_flag='${wl}-z,nodefs' 8979 archive_cmds_need_lc=no 8980 hardcode_shlibpath_var=no 8981 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8982 hardcode_libdir_separator=':' 8983 link_all_deplibs=yes 8984 export_dynamic_flag_spec='${wl}-Bexport' 8985 runpath_var='LD_RUN_PATH' 8986 8987 if test "$GCC" = yes; then 8988 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8989 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8990 else 8991 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8992 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8993 fi 8994 ;; 8995 8996 uts4*) 8997 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8998 hardcode_libdir_flag_spec='-L$libdir' 8999 hardcode_shlibpath_var=no 9000 ;; 9001 9002 *) 9003 ld_shlibs=no 9004 ;; 9005 esac 9006 fi 9007 9008{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9009$as_echo "$ld_shlibs" >&6; } 9010test "$ld_shlibs" = no && can_build_shared=no 9011 9012# 9013# Do we need to explicitly link libc? 9014# 9015case "x$archive_cmds_need_lc" in 9016x|xyes) 9017 # Assume -lc should be added 9018 archive_cmds_need_lc=yes 9019 9020 if test "$enable_shared" = yes && test "$GCC" = yes; then 9021 case $archive_cmds in 9022 *'~'*) 9023 # FIXME: we may have to deal with multi-command sequences. 9024 ;; 9025 '$CC '*) 9026 # Test whether the compiler implicitly links with -lc since on some 9027 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9028 # to ld, don't add -lc before -lgcc. 9029 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9030$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9031 $rm conftest* 9032 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9033 9034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9035 (eval $ac_compile) 2>&5 9036 ac_status=$? 9037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9038 (exit $ac_status); } 2>conftest.err; then 9039 soname=conftest 9040 lib=conftest 9041 libobjs=conftest.$ac_objext 9042 deplibs= 9043 wl=$lt_prog_compiler_wl 9044 pic_flag=$lt_prog_compiler_pic 9045 compiler_flags=-v 9046 linker_flags=-v 9047 verstring= 9048 output_objdir=. 9049 libname=conftest 9050 lt_save_allow_undefined_flag=$allow_undefined_flag 9051 allow_undefined_flag= 9052 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 9053 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 9054 ac_status=$? 9055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9056 (exit $ac_status); } 9057 then 9058 archive_cmds_need_lc=no 9059 else 9060 archive_cmds_need_lc=yes 9061 fi 9062 allow_undefined_flag=$lt_save_allow_undefined_flag 9063 else 9064 cat conftest.err 1>&5 9065 fi 9066 $rm conftest* 9067 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9068$as_echo "$archive_cmds_need_lc" >&6; } 9069 ;; 9070 esac 9071 fi 9072 ;; 9073esac 9074 9075{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9076$as_echo_n "checking dynamic linker characteristics... " >&6; } 9077library_names_spec= 9078libname_spec='lib$name' 9079soname_spec= 9080shrext_cmds=".so" 9081postinstall_cmds= 9082postuninstall_cmds= 9083finish_cmds= 9084finish_eval= 9085shlibpath_var= 9086shlibpath_overrides_runpath=unknown 9087version_type=none 9088dynamic_linker="$host_os ld.so" 9089sys_lib_dlsearch_path_spec="/lib /usr/lib" 9090 9091if test "$GCC" = yes; then 9092 case $host_os in 9093 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9094 *) lt_awk_arg="/^libraries:/" ;; 9095 esac 9096 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9097 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 9098 # if the path contains ";" then we assume it to be the separator 9099 # otherwise default to the standard path separator (i.e. ":") - it is 9100 # assumed that no part of a normal pathname contains ";" but that should 9101 # okay in the real world where ";" in dirpaths is itself problematic. 9102 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9103 else 9104 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9105 fi 9106 # Ok, now we have the path, separated by spaces, we can step through it 9107 # and add multilib dir if necessary. 9108 lt_tmp_lt_search_path_spec= 9109 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9110 for lt_sys_path in $lt_search_path_spec; do 9111 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9112 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9113 else 9114 test -d "$lt_sys_path" && \ 9115 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9116 fi 9117 done 9118 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 9119BEGIN {RS=" "; FS="/|\n";} { 9120 lt_foo=""; 9121 lt_count=0; 9122 for (lt_i = NF; lt_i > 0; lt_i--) { 9123 if ($lt_i != "" && $lt_i != ".") { 9124 if ($lt_i == "..") { 9125 lt_count++; 9126 } else { 9127 if (lt_count == 0) { 9128 lt_foo="/" $lt_i lt_foo; 9129 } else { 9130 lt_count--; 9131 } 9132 } 9133 } 9134 } 9135 if (lt_foo != "") { lt_freq[lt_foo]++; } 9136 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9137}'` 9138 sys_lib_search_path_spec=`echo $lt_search_path_spec` 9139else 9140 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9141fi 9142need_lib_prefix=unknown 9143hardcode_into_libs=no 9144 9145# when you set need_version to no, make sure it does not cause -set_version 9146# flags to be left without arguments 9147need_version=unknown 9148 9149case $host_os in 9150aix3*) 9151 version_type=linux 9152 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9153 shlibpath_var=LIBPATH 9154 9155 # AIX 3 has no versioning support, so we append a major version to the name. 9156 soname_spec='${libname}${release}${shared_ext}$major' 9157 ;; 9158 9159aix[4-9]*) 9160 version_type=linux 9161 need_lib_prefix=no 9162 need_version=no 9163 hardcode_into_libs=yes 9164 if test "$host_cpu" = ia64; then 9165 # AIX 5 supports IA64 9166 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9167 shlibpath_var=LD_LIBRARY_PATH 9168 else 9169 # With GCC up to 2.95.x, collect2 would create an import file 9170 # for dependence libraries. The import file would start with 9171 # the line `#! .'. This would cause the generated library to 9172 # depend on `.', always an invalid library. This was fixed in 9173 # development snapshots of GCC prior to 3.0. 9174 case $host_os in 9175 aix4 | aix4.[01] | aix4.[01].*) 9176 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9177 echo ' yes ' 9178 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 9179 : 9180 else 9181 can_build_shared=no 9182 fi 9183 ;; 9184 esac 9185 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9186 # soname into executable. Probably we can add versioning support to 9187 # collect2, so additional links can be useful in future. 9188 if test "$aix_use_runtimelinking" = yes; then 9189 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9190 # instead of lib<name>.a to let people know that these are not 9191 # typical AIX shared libraries. 9192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9193 else 9194 # We preserve .a as extension for shared libraries through AIX4.2 9195 # and later when we are not doing run time linking. 9196 library_names_spec='${libname}${release}.a $libname.a' 9197 soname_spec='${libname}${release}${shared_ext}$major' 9198 fi 9199 shlibpath_var=LIBPATH 9200 fi 9201 ;; 9202 9203amigaos*) 9204 library_names_spec='$libname.ixlibrary $libname.a' 9205 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9206 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' 9207 ;; 9208 9209beos*) 9210 library_names_spec='${libname}${shared_ext}' 9211 dynamic_linker="$host_os ld.so" 9212 shlibpath_var=LIBRARY_PATH 9213 ;; 9214 9215bsdi[45]*) 9216 version_type=linux 9217 need_version=no 9218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9219 soname_spec='${libname}${release}${shared_ext}$major' 9220 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9221 shlibpath_var=LD_LIBRARY_PATH 9222 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9223 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9224 # the default ld.so.conf also contains /usr/contrib/lib and 9225 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9226 # libtool to hard-code these into programs 9227 ;; 9228 9229cygwin* | mingw* | pw32*) 9230 version_type=windows 9231 shrext_cmds=".dll" 9232 need_version=no 9233 need_lib_prefix=no 9234 9235 case $GCC,$host_os in 9236 yes,cygwin* | yes,mingw* | yes,pw32*) 9237 library_names_spec='$libname.dll.a' 9238 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9239 postinstall_cmds='base_file=`basename \${file}`~ 9240 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9241 dldir=$destdir/`dirname \$dlpath`~ 9242 test -d \$dldir || mkdir -p \$dldir~ 9243 $install_prog $dir/$dlname \$dldir/$dlname~ 9244 chmod a+x \$dldir/$dlname' 9245 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9246 dlpath=$dir/\$dldll~ 9247 $rm \$dlpath' 9248 shlibpath_overrides_runpath=yes 9249 9250 case $host_os in 9251 cygwin*) 9252 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9253 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9254 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9255 ;; 9256 mingw*) 9257 # MinGW DLLs use traditional 'lib' prefix 9258 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9259 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9260 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9261 # It is most probably a Windows format PATH printed by 9262 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9263 # path with ; separators, and with drive letters. We can handle the 9264 # drive letters (cygwin fileutils understands them), so leave them, 9265 # especially as we might pass files found there to a mingw objdump, 9266 # which wouldn't understand a cygwinified path. Ahh. 9267 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9268 else 9269 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9270 fi 9271 ;; 9272 pw32*) 9273 # pw32 DLLs use 'pw' prefix rather than 'lib' 9274 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9275 ;; 9276 esac 9277 ;; 9278 9279 *) 9280 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9281 ;; 9282 esac 9283 dynamic_linker='Win32 ld.exe' 9284 # FIXME: first we should search . and the directory the executable is in 9285 shlibpath_var=PATH 9286 ;; 9287 9288darwin* | rhapsody*) 9289 dynamic_linker="$host_os dyld" 9290 version_type=darwin 9291 need_lib_prefix=no 9292 need_version=no 9293 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9294 soname_spec='${libname}${release}${major}$shared_ext' 9295 shlibpath_overrides_runpath=yes 9296 shlibpath_var=DYLD_LIBRARY_PATH 9297 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9298 9299 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9300 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9301 ;; 9302 9303dgux*) 9304 version_type=linux 9305 need_lib_prefix=no 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 shlibpath_var=LD_LIBRARY_PATH 9310 ;; 9311 9312freebsd1*) 9313 dynamic_linker=no 9314 ;; 9315 9316freebsd* | dragonfly*) 9317 # DragonFly does not have aout. When/if they implement a new 9318 # versioning mechanism, adjust this. 9319 if test -x /usr/bin/objformat; then 9320 objformat=`/usr/bin/objformat` 9321 else 9322 case $host_os in 9323 freebsd[123]*) objformat=aout ;; 9324 *) objformat=elf ;; 9325 esac 9326 fi 9327 version_type=freebsd-$objformat 9328 case $version_type in 9329 freebsd-elf*) 9330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9331 need_version=no 9332 need_lib_prefix=no 9333 ;; 9334 freebsd-*) 9335 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9336 need_version=yes 9337 ;; 9338 esac 9339 shlibpath_var=LD_LIBRARY_PATH 9340 case $host_os in 9341 freebsd2*) 9342 shlibpath_overrides_runpath=yes 9343 ;; 9344 freebsd3.[01]* | freebsdelf3.[01]*) 9345 shlibpath_overrides_runpath=yes 9346 hardcode_into_libs=yes 9347 ;; 9348 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9349 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9350 shlibpath_overrides_runpath=no 9351 hardcode_into_libs=yes 9352 ;; 9353 *) # from 4.6 on, and DragonFly 9354 shlibpath_overrides_runpath=yes 9355 hardcode_into_libs=yes 9356 ;; 9357 esac 9358 ;; 9359 9360gnu*) 9361 version_type=linux 9362 need_lib_prefix=no 9363 need_version=no 9364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9365 soname_spec='${libname}${release}${shared_ext}$major' 9366 shlibpath_var=LD_LIBRARY_PATH 9367 hardcode_into_libs=yes 9368 ;; 9369 9370hpux9* | hpux10* | hpux11*) 9371 # Give a soname corresponding to the major version so that dld.sl refuses to 9372 # link against other versions. 9373 version_type=sunos 9374 need_lib_prefix=no 9375 need_version=no 9376 case $host_cpu in 9377 ia64*) 9378 shrext_cmds='.so' 9379 hardcode_into_libs=yes 9380 dynamic_linker="$host_os dld.so" 9381 shlibpath_var=LD_LIBRARY_PATH 9382 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9384 soname_spec='${libname}${release}${shared_ext}$major' 9385 if test "X$HPUX_IA64_MODE" = X32; then 9386 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9387 else 9388 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9389 fi 9390 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9391 ;; 9392 hppa*64*) 9393 shrext_cmds='.sl' 9394 hardcode_into_libs=yes 9395 dynamic_linker="$host_os dld.sl" 9396 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9397 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9399 soname_spec='${libname}${release}${shared_ext}$major' 9400 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9401 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9402 ;; 9403 *) 9404 shrext_cmds='.sl' 9405 dynamic_linker="$host_os dld.sl" 9406 shlibpath_var=SHLIB_PATH 9407 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9409 soname_spec='${libname}${release}${shared_ext}$major' 9410 ;; 9411 esac 9412 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9413 postinstall_cmds='chmod 555 $lib' 9414 ;; 9415 9416interix[3-9]*) 9417 version_type=linux 9418 need_lib_prefix=no 9419 need_version=no 9420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9421 soname_spec='${libname}${release}${shared_ext}$major' 9422 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9423 shlibpath_var=LD_LIBRARY_PATH 9424 shlibpath_overrides_runpath=no 9425 hardcode_into_libs=yes 9426 ;; 9427 9428irix5* | irix6* | nonstopux*) 9429 case $host_os in 9430 nonstopux*) version_type=nonstopux ;; 9431 *) 9432 if test "$lt_cv_prog_gnu_ld" = yes; then 9433 version_type=linux 9434 else 9435 version_type=irix 9436 fi ;; 9437 esac 9438 need_lib_prefix=no 9439 need_version=no 9440 soname_spec='${libname}${release}${shared_ext}$major' 9441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9442 case $host_os in 9443 irix5* | nonstopux*) 9444 libsuff= shlibsuff= 9445 ;; 9446 *) 9447 case $LD in # libtool.m4 will add one of these switches to LD 9448 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9449 libsuff= shlibsuff= libmagic=32-bit;; 9450 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9451 libsuff=32 shlibsuff=N32 libmagic=N32;; 9452 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9453 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9454 *) libsuff= shlibsuff= libmagic=never-match;; 9455 esac 9456 ;; 9457 esac 9458 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9459 shlibpath_overrides_runpath=no 9460 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9461 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9462 hardcode_into_libs=yes 9463 ;; 9464 9465# No shared lib support for Linux oldld, aout, or coff. 9466linux*oldld* | linux*aout* | linux*coff*) 9467 dynamic_linker=no 9468 ;; 9469 9470# This must be Linux ELF. 9471linux* | k*bsd*-gnu) 9472 version_type=linux 9473 need_lib_prefix=no 9474 need_version=no 9475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9476 soname_spec='${libname}${release}${shared_ext}$major' 9477 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9478 shlibpath_var=LD_LIBRARY_PATH 9479 shlibpath_overrides_runpath=no 9480 # This implies no fast_install, which is unacceptable. 9481 # Some rework will be needed to allow for fast_install 9482 # before this can be enabled. 9483 hardcode_into_libs=yes 9484 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9485 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9486 9487 # Append ld.so.conf contents to the search path 9488 if test -f /etc/ld.so.conf; then 9489 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' ' '` 9490 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 9491 fi 9492 9493 # We used to test for /lib/ld.so.1 and disable shared libraries on 9494 # powerpc, because MkLinux only supported shared libraries with the 9495 # GNU dynamic linker. Since this was broken with cross compilers, 9496 # most powerpc-linux boxes support dynamic linking these days and 9497 # people can always --disable-shared, the test was removed, and we 9498 # assume the GNU/Linux dynamic linker is in use. 9499 dynamic_linker='GNU/Linux ld.so' 9500 ;; 9501 9502netbsd*) 9503 version_type=sunos 9504 need_lib_prefix=no 9505 need_version=no 9506 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9508 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9509 dynamic_linker='NetBSD (a.out) ld.so' 9510 else 9511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9512 soname_spec='${libname}${release}${shared_ext}$major' 9513 dynamic_linker='NetBSD ld.elf_so' 9514 fi 9515 shlibpath_var=LD_LIBRARY_PATH 9516 shlibpath_overrides_runpath=yes 9517 hardcode_into_libs=yes 9518 ;; 9519 9520newsos6) 9521 version_type=linux 9522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9523 shlibpath_var=LD_LIBRARY_PATH 9524 shlibpath_overrides_runpath=yes 9525 ;; 9526 9527nto-qnx*) 9528 version_type=linux 9529 need_lib_prefix=no 9530 need_version=no 9531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9532 soname_spec='${libname}${release}${shared_ext}$major' 9533 shlibpath_var=LD_LIBRARY_PATH 9534 shlibpath_overrides_runpath=yes 9535 ;; 9536 9537openbsd*) 9538 version_type=sunos 9539 sys_lib_dlsearch_path_spec="/usr/lib" 9540 need_lib_prefix=no 9541 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9542 case $host_os in 9543 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9544 *) need_version=no ;; 9545 esac 9546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9547 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9548 shlibpath_var=LD_LIBRARY_PATH 9549 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9550 case $host_os in 9551 openbsd2.[89] | openbsd2.[89].*) 9552 shlibpath_overrides_runpath=no 9553 ;; 9554 *) 9555 shlibpath_overrides_runpath=yes 9556 ;; 9557 esac 9558 else 9559 shlibpath_overrides_runpath=yes 9560 fi 9561 ;; 9562 9563os2*) 9564 libname_spec='$name' 9565 shrext_cmds=".dll" 9566 need_lib_prefix=no 9567 library_names_spec='$libname${shared_ext} $libname.a' 9568 dynamic_linker='OS/2 ld.exe' 9569 shlibpath_var=LIBPATH 9570 ;; 9571 9572osf3* | osf4* | osf5*) 9573 version_type=osf 9574 need_lib_prefix=no 9575 need_version=no 9576 soname_spec='${libname}${release}${shared_ext}$major' 9577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9578 shlibpath_var=LD_LIBRARY_PATH 9579 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9580 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9581 ;; 9582 9583rdos*) 9584 dynamic_linker=no 9585 ;; 9586 9587solaris*) 9588 version_type=linux 9589 need_lib_prefix=no 9590 need_version=no 9591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9592 soname_spec='${libname}${release}${shared_ext}$major' 9593 shlibpath_var=LD_LIBRARY_PATH 9594 shlibpath_overrides_runpath=yes 9595 hardcode_into_libs=yes 9596 # ldd complains unless libraries are executable 9597 postinstall_cmds='chmod +x $lib' 9598 ;; 9599 9600sunos4*) 9601 version_type=sunos 9602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9603 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9604 shlibpath_var=LD_LIBRARY_PATH 9605 shlibpath_overrides_runpath=yes 9606 if test "$with_gnu_ld" = yes; then 9607 need_lib_prefix=no 9608 fi 9609 need_version=yes 9610 ;; 9611 9612sysv4 | sysv4.3*) 9613 version_type=linux 9614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9615 soname_spec='${libname}${release}${shared_ext}$major' 9616 shlibpath_var=LD_LIBRARY_PATH 9617 case $host_vendor in 9618 sni) 9619 shlibpath_overrides_runpath=no 9620 need_lib_prefix=no 9621 export_dynamic_flag_spec='${wl}-Blargedynsym' 9622 runpath_var=LD_RUN_PATH 9623 ;; 9624 siemens) 9625 need_lib_prefix=no 9626 ;; 9627 motorola) 9628 need_lib_prefix=no 9629 need_version=no 9630 shlibpath_overrides_runpath=no 9631 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9632 ;; 9633 esac 9634 ;; 9635 9636sysv4*MP*) 9637 if test -d /usr/nec ;then 9638 version_type=linux 9639 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9640 soname_spec='$libname${shared_ext}.$major' 9641 shlibpath_var=LD_LIBRARY_PATH 9642 fi 9643 ;; 9644 9645sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9646 version_type=freebsd-elf 9647 need_lib_prefix=no 9648 need_version=no 9649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9650 soname_spec='${libname}${release}${shared_ext}$major' 9651 shlibpath_var=LD_LIBRARY_PATH 9652 hardcode_into_libs=yes 9653 if test "$with_gnu_ld" = yes; then 9654 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9655 shlibpath_overrides_runpath=no 9656 else 9657 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9658 shlibpath_overrides_runpath=yes 9659 case $host_os in 9660 sco3.2v5*) 9661 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9662 ;; 9663 esac 9664 fi 9665 sys_lib_dlsearch_path_spec='/usr/lib' 9666 ;; 9667 9668uts4*) 9669 version_type=linux 9670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9671 soname_spec='${libname}${release}${shared_ext}$major' 9672 shlibpath_var=LD_LIBRARY_PATH 9673 ;; 9674 9675*) 9676 dynamic_linker=no 9677 ;; 9678esac 9679{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9680$as_echo "$dynamic_linker" >&6; } 9681test "$dynamic_linker" = no && can_build_shared=no 9682 9683if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 9684 $as_echo_n "(cached) " >&6 9685else 9686 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 9687fi 9688 9689sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 9690if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 9691 $as_echo_n "(cached) " >&6 9692else 9693 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 9694fi 9695 9696sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 9697 9698variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9699if test "$GCC" = yes; then 9700 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9701fi 9702 9703{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9704$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 9705hardcode_action= 9706if test -n "$hardcode_libdir_flag_spec" || \ 9707 test -n "$runpath_var" || \ 9708 test "X$hardcode_automatic" = "Xyes" ; then 9709 9710 # We can hardcode non-existant directories. 9711 if test "$hardcode_direct" != no && 9712 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9713 # have to relink, otherwise we might link with an installed library 9714 # when we should be linking with a yet-to-be-installed one 9715 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9716 test "$hardcode_minus_L" != no; then 9717 # Linking always hardcodes the temporary library directory. 9718 hardcode_action=relink 9719 else 9720 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9721 hardcode_action=immediate 9722 fi 9723else 9724 # We cannot hardcode anything, or else we can only hardcode existing 9725 # directories. 9726 hardcode_action=unsupported 9727fi 9728{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 9729$as_echo "$hardcode_action" >&6; } 9730 9731if test "$hardcode_action" = relink; then 9732 # Fast installation is not supported 9733 enable_fast_install=no 9734elif test "$shlibpath_overrides_runpath" = yes || 9735 test "$enable_shared" = no; then 9736 # Fast installation is not necessary 9737 enable_fast_install=needless 9738fi 9739 9740striplib= 9741old_striplib= 9742{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9743$as_echo_n "checking whether stripping libraries is possible... " >&6; } 9744if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9745 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9746 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9747 { $as_echo "$as_me:$LINENO: result: yes" >&5 9748$as_echo "yes" >&6; } 9749else 9750# FIXME - insert some real tests, host_os isn't really good enough 9751 case $host_os in 9752 darwin*) 9753 if test -n "$STRIP" ; then 9754 striplib="$STRIP -x" 9755 old_striplib="$STRIP -S" 9756 { $as_echo "$as_me:$LINENO: result: yes" >&5 9757$as_echo "yes" >&6; } 9758 else 9759 { $as_echo "$as_me:$LINENO: result: no" >&5 9760$as_echo "no" >&6; } 9761fi 9762 ;; 9763 *) 9764 { $as_echo "$as_me:$LINENO: result: no" >&5 9765$as_echo "no" >&6; } 9766 ;; 9767 esac 9768fi 9769 9770if test "x$enable_dlopen" != xyes; then 9771 enable_dlopen=unknown 9772 enable_dlopen_self=unknown 9773 enable_dlopen_self_static=unknown 9774else 9775 lt_cv_dlopen=no 9776 lt_cv_dlopen_libs= 9777 9778 case $host_os in 9779 beos*) 9780 lt_cv_dlopen="load_add_on" 9781 lt_cv_dlopen_libs= 9782 lt_cv_dlopen_self=yes 9783 ;; 9784 9785 mingw* | pw32*) 9786 lt_cv_dlopen="LoadLibrary" 9787 lt_cv_dlopen_libs= 9788 ;; 9789 9790 cygwin*) 9791 lt_cv_dlopen="dlopen" 9792 lt_cv_dlopen_libs= 9793 ;; 9794 9795 darwin*) 9796 # if libdl is installed we need to link against it 9797 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9798$as_echo_n "checking for dlopen in -ldl... " >&6; } 9799if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9800 $as_echo_n "(cached) " >&6 9801else 9802 ac_check_lib_save_LIBS=$LIBS 9803LIBS="-ldl $LIBS" 9804cat >conftest.$ac_ext <<_ACEOF 9805/* confdefs.h. */ 9806_ACEOF 9807cat confdefs.h >>conftest.$ac_ext 9808cat >>conftest.$ac_ext <<_ACEOF 9809/* end confdefs.h. */ 9810 9811/* Override any GCC internal prototype to avoid an error. 9812 Use char because int might match the return type of a GCC 9813 builtin and then its argument prototype would still apply. */ 9814#ifdef __cplusplus 9815extern "C" 9816#endif 9817char dlopen (); 9818int 9819main () 9820{ 9821return dlopen (); 9822 ; 9823 return 0; 9824} 9825_ACEOF 9826rm -f conftest.$ac_objext conftest$ac_exeext 9827if { (ac_try="$ac_link" 9828case "(($ac_try" in 9829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9830 *) ac_try_echo=$ac_try;; 9831esac 9832eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9833$as_echo "$ac_try_echo") >&5 9834 (eval "$ac_link") 2>conftest.er1 9835 ac_status=$? 9836 grep -v '^ *+' conftest.er1 >conftest.err 9837 rm -f conftest.er1 9838 cat conftest.err >&5 9839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9840 (exit $ac_status); } && { 9841 test -z "$ac_c_werror_flag" || 9842 test ! -s conftest.err 9843 } && test -s conftest$ac_exeext && { 9844 test "$cross_compiling" = yes || 9845 $as_test_x conftest$ac_exeext 9846 }; then 9847 ac_cv_lib_dl_dlopen=yes 9848else 9849 $as_echo "$as_me: failed program was:" >&5 9850sed 's/^/| /' conftest.$ac_ext >&5 9851 9852 ac_cv_lib_dl_dlopen=no 9853fi 9854 9855rm -rf conftest.dSYM 9856rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9857 conftest$ac_exeext conftest.$ac_ext 9858LIBS=$ac_check_lib_save_LIBS 9859fi 9860{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9861$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 9862if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 9863 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9864else 9865 9866 lt_cv_dlopen="dyld" 9867 lt_cv_dlopen_libs= 9868 lt_cv_dlopen_self=yes 9869 9870fi 9871 9872 ;; 9873 9874 *) 9875 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 9876$as_echo_n "checking for shl_load... " >&6; } 9877if test "${ac_cv_func_shl_load+set}" = set; then 9878 $as_echo_n "(cached) " >&6 9879else 9880 cat >conftest.$ac_ext <<_ACEOF 9881/* confdefs.h. */ 9882_ACEOF 9883cat confdefs.h >>conftest.$ac_ext 9884cat >>conftest.$ac_ext <<_ACEOF 9885/* end confdefs.h. */ 9886/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9887 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9888#define shl_load innocuous_shl_load 9889 9890/* System header to define __stub macros and hopefully few prototypes, 9891 which can conflict with char shl_load (); below. 9892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9893 <limits.h> exists even on freestanding compilers. */ 9894 9895#ifdef __STDC__ 9896# include <limits.h> 9897#else 9898# include <assert.h> 9899#endif 9900 9901#undef shl_load 9902 9903/* Override any GCC internal prototype to avoid an error. 9904 Use char because int might match the return type of a GCC 9905 builtin and then its argument prototype would still apply. */ 9906#ifdef __cplusplus 9907extern "C" 9908#endif 9909char shl_load (); 9910/* The GNU C library defines this for functions which it implements 9911 to always fail with ENOSYS. Some functions are actually named 9912 something starting with __ and the normal name is an alias. */ 9913#if defined __stub_shl_load || defined __stub___shl_load 9914choke me 9915#endif 9916 9917int 9918main () 9919{ 9920return shl_load (); 9921 ; 9922 return 0; 9923} 9924_ACEOF 9925rm -f conftest.$ac_objext conftest$ac_exeext 9926if { (ac_try="$ac_link" 9927case "(($ac_try" in 9928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9929 *) ac_try_echo=$ac_try;; 9930esac 9931eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9932$as_echo "$ac_try_echo") >&5 9933 (eval "$ac_link") 2>conftest.er1 9934 ac_status=$? 9935 grep -v '^ *+' conftest.er1 >conftest.err 9936 rm -f conftest.er1 9937 cat conftest.err >&5 9938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9939 (exit $ac_status); } && { 9940 test -z "$ac_c_werror_flag" || 9941 test ! -s conftest.err 9942 } && test -s conftest$ac_exeext && { 9943 test "$cross_compiling" = yes || 9944 $as_test_x conftest$ac_exeext 9945 }; then 9946 ac_cv_func_shl_load=yes 9947else 9948 $as_echo "$as_me: failed program was:" >&5 9949sed 's/^/| /' conftest.$ac_ext >&5 9950 9951 ac_cv_func_shl_load=no 9952fi 9953 9954rm -rf conftest.dSYM 9955rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9956 conftest$ac_exeext conftest.$ac_ext 9957fi 9958{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9959$as_echo "$ac_cv_func_shl_load" >&6; } 9960if test "x$ac_cv_func_shl_load" = x""yes; then 9961 lt_cv_dlopen="shl_load" 9962else 9963 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9964$as_echo_n "checking for shl_load in -ldld... " >&6; } 9965if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9966 $as_echo_n "(cached) " >&6 9967else 9968 ac_check_lib_save_LIBS=$LIBS 9969LIBS="-ldld $LIBS" 9970cat >conftest.$ac_ext <<_ACEOF 9971/* confdefs.h. */ 9972_ACEOF 9973cat confdefs.h >>conftest.$ac_ext 9974cat >>conftest.$ac_ext <<_ACEOF 9975/* end confdefs.h. */ 9976 9977/* Override any GCC internal prototype to avoid an error. 9978 Use char because int might match the return type of a GCC 9979 builtin and then its argument prototype would still apply. */ 9980#ifdef __cplusplus 9981extern "C" 9982#endif 9983char shl_load (); 9984int 9985main () 9986{ 9987return shl_load (); 9988 ; 9989 return 0; 9990} 9991_ACEOF 9992rm -f conftest.$ac_objext conftest$ac_exeext 9993if { (ac_try="$ac_link" 9994case "(($ac_try" in 9995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9996 *) ac_try_echo=$ac_try;; 9997esac 9998eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9999$as_echo "$ac_try_echo") >&5 10000 (eval "$ac_link") 2>conftest.er1 10001 ac_status=$? 10002 grep -v '^ *+' conftest.er1 >conftest.err 10003 rm -f conftest.er1 10004 cat conftest.err >&5 10005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10006 (exit $ac_status); } && { 10007 test -z "$ac_c_werror_flag" || 10008 test ! -s conftest.err 10009 } && test -s conftest$ac_exeext && { 10010 test "$cross_compiling" = yes || 10011 $as_test_x conftest$ac_exeext 10012 }; then 10013 ac_cv_lib_dld_shl_load=yes 10014else 10015 $as_echo "$as_me: failed program was:" >&5 10016sed 's/^/| /' conftest.$ac_ext >&5 10017 10018 ac_cv_lib_dld_shl_load=no 10019fi 10020 10021rm -rf conftest.dSYM 10022rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10023 conftest$ac_exeext conftest.$ac_ext 10024LIBS=$ac_check_lib_save_LIBS 10025fi 10026{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10027$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10028if test "x$ac_cv_lib_dld_shl_load" = x""yes; then 10029 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10030else 10031 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 10032$as_echo_n "checking for dlopen... " >&6; } 10033if test "${ac_cv_func_dlopen+set}" = set; then 10034 $as_echo_n "(cached) " >&6 10035else 10036 cat >conftest.$ac_ext <<_ACEOF 10037/* confdefs.h. */ 10038_ACEOF 10039cat confdefs.h >>conftest.$ac_ext 10040cat >>conftest.$ac_ext <<_ACEOF 10041/* end confdefs.h. */ 10042/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10043 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10044#define dlopen innocuous_dlopen 10045 10046/* System header to define __stub macros and hopefully few prototypes, 10047 which can conflict with char dlopen (); below. 10048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10049 <limits.h> exists even on freestanding compilers. */ 10050 10051#ifdef __STDC__ 10052# include <limits.h> 10053#else 10054# include <assert.h> 10055#endif 10056 10057#undef dlopen 10058 10059/* Override any GCC internal prototype to avoid an error. 10060 Use char because int might match the return type of a GCC 10061 builtin and then its argument prototype would still apply. */ 10062#ifdef __cplusplus 10063extern "C" 10064#endif 10065char dlopen (); 10066/* The GNU C library defines this for functions which it implements 10067 to always fail with ENOSYS. Some functions are actually named 10068 something starting with __ and the normal name is an alias. */ 10069#if defined __stub_dlopen || defined __stub___dlopen 10070choke me 10071#endif 10072 10073int 10074main () 10075{ 10076return dlopen (); 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_func_dlopen=yes 10103else 10104 $as_echo "$as_me: failed program was:" >&5 10105sed 's/^/| /' conftest.$ac_ext >&5 10106 10107 ac_cv_func_dlopen=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 10113fi 10114{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10115$as_echo "$ac_cv_func_dlopen" >&6; } 10116if test "x$ac_cv_func_dlopen" = x""yes; then 10117 lt_cv_dlopen="dlopen" 10118else 10119 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10120$as_echo_n "checking for dlopen in -ldl... " >&6; } 10121if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10122 $as_echo_n "(cached) " >&6 10123else 10124 ac_check_lib_save_LIBS=$LIBS 10125LIBS="-ldl $LIBS" 10126cat >conftest.$ac_ext <<_ACEOF 10127/* confdefs.h. */ 10128_ACEOF 10129cat confdefs.h >>conftest.$ac_ext 10130cat >>conftest.$ac_ext <<_ACEOF 10131/* end confdefs.h. */ 10132 10133/* Override any GCC internal prototype to avoid an error. 10134 Use char because int might match the return type of a GCC 10135 builtin and then its argument prototype would still apply. */ 10136#ifdef __cplusplus 10137extern "C" 10138#endif 10139char dlopen (); 10140int 10141main () 10142{ 10143return dlopen (); 10144 ; 10145 return 0; 10146} 10147_ACEOF 10148rm -f conftest.$ac_objext conftest$ac_exeext 10149if { (ac_try="$ac_link" 10150case "(($ac_try" in 10151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10152 *) ac_try_echo=$ac_try;; 10153esac 10154eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10155$as_echo "$ac_try_echo") >&5 10156 (eval "$ac_link") 2>conftest.er1 10157 ac_status=$? 10158 grep -v '^ *+' conftest.er1 >conftest.err 10159 rm -f conftest.er1 10160 cat conftest.err >&5 10161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10162 (exit $ac_status); } && { 10163 test -z "$ac_c_werror_flag" || 10164 test ! -s conftest.err 10165 } && test -s conftest$ac_exeext && { 10166 test "$cross_compiling" = yes || 10167 $as_test_x conftest$ac_exeext 10168 }; then 10169 ac_cv_lib_dl_dlopen=yes 10170else 10171 $as_echo "$as_me: failed program was:" >&5 10172sed 's/^/| /' conftest.$ac_ext >&5 10173 10174 ac_cv_lib_dl_dlopen=no 10175fi 10176 10177rm -rf conftest.dSYM 10178rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10179 conftest$ac_exeext conftest.$ac_ext 10180LIBS=$ac_check_lib_save_LIBS 10181fi 10182{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10183$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10184if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 10185 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10186else 10187 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10188$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10189if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10190 $as_echo_n "(cached) " >&6 10191else 10192 ac_check_lib_save_LIBS=$LIBS 10193LIBS="-lsvld $LIBS" 10194cat >conftest.$ac_ext <<_ACEOF 10195/* confdefs.h. */ 10196_ACEOF 10197cat confdefs.h >>conftest.$ac_ext 10198cat >>conftest.$ac_ext <<_ACEOF 10199/* end confdefs.h. */ 10200 10201/* Override any GCC internal prototype to avoid an error. 10202 Use char because int might match the return type of a GCC 10203 builtin and then its argument prototype would still apply. */ 10204#ifdef __cplusplus 10205extern "C" 10206#endif 10207char dlopen (); 10208int 10209main () 10210{ 10211return dlopen (); 10212 ; 10213 return 0; 10214} 10215_ACEOF 10216rm -f conftest.$ac_objext conftest$ac_exeext 10217if { (ac_try="$ac_link" 10218case "(($ac_try" in 10219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10220 *) ac_try_echo=$ac_try;; 10221esac 10222eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10223$as_echo "$ac_try_echo") >&5 10224 (eval "$ac_link") 2>conftest.er1 10225 ac_status=$? 10226 grep -v '^ *+' conftest.er1 >conftest.err 10227 rm -f conftest.er1 10228 cat conftest.err >&5 10229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10230 (exit $ac_status); } && { 10231 test -z "$ac_c_werror_flag" || 10232 test ! -s conftest.err 10233 } && test -s conftest$ac_exeext && { 10234 test "$cross_compiling" = yes || 10235 $as_test_x conftest$ac_exeext 10236 }; then 10237 ac_cv_lib_svld_dlopen=yes 10238else 10239 $as_echo "$as_me: failed program was:" >&5 10240sed 's/^/| /' conftest.$ac_ext >&5 10241 10242 ac_cv_lib_svld_dlopen=no 10243fi 10244 10245rm -rf conftest.dSYM 10246rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10247 conftest$ac_exeext conftest.$ac_ext 10248LIBS=$ac_check_lib_save_LIBS 10249fi 10250{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10251$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10252if test "x$ac_cv_lib_svld_dlopen" = x""yes; then 10253 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10254else 10255 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10256$as_echo_n "checking for dld_link in -ldld... " >&6; } 10257if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10258 $as_echo_n "(cached) " >&6 10259else 10260 ac_check_lib_save_LIBS=$LIBS 10261LIBS="-ldld $LIBS" 10262cat >conftest.$ac_ext <<_ACEOF 10263/* confdefs.h. */ 10264_ACEOF 10265cat confdefs.h >>conftest.$ac_ext 10266cat >>conftest.$ac_ext <<_ACEOF 10267/* end confdefs.h. */ 10268 10269/* Override any GCC internal prototype to avoid an error. 10270 Use char because int might match the return type of a GCC 10271 builtin and then its argument prototype would still apply. */ 10272#ifdef __cplusplus 10273extern "C" 10274#endif 10275char dld_link (); 10276int 10277main () 10278{ 10279return dld_link (); 10280 ; 10281 return 0; 10282} 10283_ACEOF 10284rm -f conftest.$ac_objext conftest$ac_exeext 10285if { (ac_try="$ac_link" 10286case "(($ac_try" in 10287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10288 *) ac_try_echo=$ac_try;; 10289esac 10290eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10291$as_echo "$ac_try_echo") >&5 10292 (eval "$ac_link") 2>conftest.er1 10293 ac_status=$? 10294 grep -v '^ *+' conftest.er1 >conftest.err 10295 rm -f conftest.er1 10296 cat conftest.err >&5 10297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10298 (exit $ac_status); } && { 10299 test -z "$ac_c_werror_flag" || 10300 test ! -s conftest.err 10301 } && test -s conftest$ac_exeext && { 10302 test "$cross_compiling" = yes || 10303 $as_test_x conftest$ac_exeext 10304 }; then 10305 ac_cv_lib_dld_dld_link=yes 10306else 10307 $as_echo "$as_me: failed program was:" >&5 10308sed 's/^/| /' conftest.$ac_ext >&5 10309 10310 ac_cv_lib_dld_dld_link=no 10311fi 10312 10313rm -rf conftest.dSYM 10314rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10315 conftest$ac_exeext conftest.$ac_ext 10316LIBS=$ac_check_lib_save_LIBS 10317fi 10318{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10319$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10320if test "x$ac_cv_lib_dld_dld_link" = x""yes; then 10321 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10322fi 10323 10324 10325fi 10326 10327 10328fi 10329 10330 10331fi 10332 10333 10334fi 10335 10336 10337fi 10338 10339 ;; 10340 esac 10341 10342 if test "x$lt_cv_dlopen" != xno; then 10343 enable_dlopen=yes 10344 else 10345 enable_dlopen=no 10346 fi 10347 10348 case $lt_cv_dlopen in 10349 dlopen) 10350 save_CPPFLAGS="$CPPFLAGS" 10351 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10352 10353 save_LDFLAGS="$LDFLAGS" 10354 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10355 10356 save_LIBS="$LIBS" 10357 LIBS="$lt_cv_dlopen_libs $LIBS" 10358 10359 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10360$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10361if test "${lt_cv_dlopen_self+set}" = set; then 10362 $as_echo_n "(cached) " >&6 10363else 10364 if test "$cross_compiling" = yes; then : 10365 lt_cv_dlopen_self=cross 10366else 10367 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10368 lt_status=$lt_dlunknown 10369 cat > conftest.$ac_ext <<EOF 10370#line 10370 "configure" 10371#include "confdefs.h" 10372 10373#if HAVE_DLFCN_H 10374#include <dlfcn.h> 10375#endif 10376 10377#include <stdio.h> 10378 10379#ifdef RTLD_GLOBAL 10380# define LT_DLGLOBAL RTLD_GLOBAL 10381#else 10382# ifdef DL_GLOBAL 10383# define LT_DLGLOBAL DL_GLOBAL 10384# else 10385# define LT_DLGLOBAL 0 10386# endif 10387#endif 10388 10389/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10390 find out it does not work in some platform. */ 10391#ifndef LT_DLLAZY_OR_NOW 10392# ifdef RTLD_LAZY 10393# define LT_DLLAZY_OR_NOW RTLD_LAZY 10394# else 10395# ifdef DL_LAZY 10396# define LT_DLLAZY_OR_NOW DL_LAZY 10397# else 10398# ifdef RTLD_NOW 10399# define LT_DLLAZY_OR_NOW RTLD_NOW 10400# else 10401# ifdef DL_NOW 10402# define LT_DLLAZY_OR_NOW DL_NOW 10403# else 10404# define LT_DLLAZY_OR_NOW 0 10405# endif 10406# endif 10407# endif 10408# endif 10409#endif 10410 10411#ifdef __cplusplus 10412extern "C" void exit (int); 10413#endif 10414 10415void fnord() { int i=42;} 10416int main () 10417{ 10418 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10419 int status = $lt_dlunknown; 10420 10421 if (self) 10422 { 10423 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10424 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10425 /* dlclose (self); */ 10426 } 10427 else 10428 puts (dlerror ()); 10429 10430 exit (status); 10431} 10432EOF 10433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10434 (eval $ac_link) 2>&5 10435 ac_status=$? 10436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10437 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10438 (./conftest; exit; ) >&5 2>/dev/null 10439 lt_status=$? 10440 case x$lt_status in 10441 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10442 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10443 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10444 esac 10445 else : 10446 # compilation failed 10447 lt_cv_dlopen_self=no 10448 fi 10449fi 10450rm -fr conftest* 10451 10452 10453fi 10454{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10455$as_echo "$lt_cv_dlopen_self" >&6; } 10456 10457 if test "x$lt_cv_dlopen_self" = xyes; then 10458 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10459 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10460$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10461if test "${lt_cv_dlopen_self_static+set}" = set; then 10462 $as_echo_n "(cached) " >&6 10463else 10464 if test "$cross_compiling" = yes; then : 10465 lt_cv_dlopen_self_static=cross 10466else 10467 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10468 lt_status=$lt_dlunknown 10469 cat > conftest.$ac_ext <<EOF 10470#line 10470 "configure" 10471#include "confdefs.h" 10472 10473#if HAVE_DLFCN_H 10474#include <dlfcn.h> 10475#endif 10476 10477#include <stdio.h> 10478 10479#ifdef RTLD_GLOBAL 10480# define LT_DLGLOBAL RTLD_GLOBAL 10481#else 10482# ifdef DL_GLOBAL 10483# define LT_DLGLOBAL DL_GLOBAL 10484# else 10485# define LT_DLGLOBAL 0 10486# endif 10487#endif 10488 10489/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10490 find out it does not work in some platform. */ 10491#ifndef LT_DLLAZY_OR_NOW 10492# ifdef RTLD_LAZY 10493# define LT_DLLAZY_OR_NOW RTLD_LAZY 10494# else 10495# ifdef DL_LAZY 10496# define LT_DLLAZY_OR_NOW DL_LAZY 10497# else 10498# ifdef RTLD_NOW 10499# define LT_DLLAZY_OR_NOW RTLD_NOW 10500# else 10501# ifdef DL_NOW 10502# define LT_DLLAZY_OR_NOW DL_NOW 10503# else 10504# define LT_DLLAZY_OR_NOW 0 10505# endif 10506# endif 10507# endif 10508# endif 10509#endif 10510 10511#ifdef __cplusplus 10512extern "C" void exit (int); 10513#endif 10514 10515void fnord() { int i=42;} 10516int main () 10517{ 10518 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10519 int status = $lt_dlunknown; 10520 10521 if (self) 10522 { 10523 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10524 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10525 /* dlclose (self); */ 10526 } 10527 else 10528 puts (dlerror ()); 10529 10530 exit (status); 10531} 10532EOF 10533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10534 (eval $ac_link) 2>&5 10535 ac_status=$? 10536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10537 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10538 (./conftest; exit; ) >&5 2>/dev/null 10539 lt_status=$? 10540 case x$lt_status in 10541 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10542 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10543 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10544 esac 10545 else : 10546 # compilation failed 10547 lt_cv_dlopen_self_static=no 10548 fi 10549fi 10550rm -fr conftest* 10551 10552 10553fi 10554{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10555$as_echo "$lt_cv_dlopen_self_static" >&6; } 10556 fi 10557 10558 CPPFLAGS="$save_CPPFLAGS" 10559 LDFLAGS="$save_LDFLAGS" 10560 LIBS="$save_LIBS" 10561 ;; 10562 esac 10563 10564 case $lt_cv_dlopen_self in 10565 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10566 *) enable_dlopen_self=unknown ;; 10567 esac 10568 10569 case $lt_cv_dlopen_self_static in 10570 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10571 *) enable_dlopen_self_static=unknown ;; 10572 esac 10573fi 10574 10575 10576# Report which library types will actually be built 10577{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10578$as_echo_n "checking if libtool supports shared libraries... " >&6; } 10579{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 10580$as_echo "$can_build_shared" >&6; } 10581 10582{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10583$as_echo_n "checking whether to build shared libraries... " >&6; } 10584test "$can_build_shared" = "no" && enable_shared=no 10585 10586# On AIX, shared libraries and static libraries use the same namespace, and 10587# are all built from PIC. 10588case $host_os in 10589aix3*) 10590 test "$enable_shared" = yes && enable_static=no 10591 if test -n "$RANLIB"; then 10592 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10593 postinstall_cmds='$RANLIB $lib' 10594 fi 10595 ;; 10596 10597aix[4-9]*) 10598 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10599 test "$enable_shared" = yes && enable_static=no 10600 fi 10601 ;; 10602esac 10603{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 10604$as_echo "$enable_shared" >&6; } 10605 10606{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10607$as_echo_n "checking whether to build static libraries... " >&6; } 10608# Make sure either enable_shared or enable_static is yes. 10609test "$enable_shared" = yes || enable_static=yes 10610{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5 10611$as_echo "$enable_static" >&6; } 10612 10613# The else clause should only fire when bootstrapping the 10614# libtool distribution, otherwise you forgot to ship ltmain.sh 10615# with your package, and you will get complaints that there are 10616# no rules to generate ltmain.sh. 10617if test -f "$ltmain"; then 10618 # See if we are running on zsh, and set the options which allow our commands through 10619 # without removal of \ escapes. 10620 if test -n "${ZSH_VERSION+set}" ; then 10621 setopt NO_GLOB_SUBST 10622 fi 10623 # Now quote all the things that may contain metacharacters while being 10624 # careful not to overquote the AC_SUBSTed values. We take copies of the 10625 # variables and quote the copies for generation of the libtool script. 10626 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10627 SED SHELL STRIP \ 10628 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10629 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10630 deplibs_check_method reload_flag reload_cmds need_locks \ 10631 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10632 lt_cv_sys_global_symbol_to_c_name_address \ 10633 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10634 old_postinstall_cmds old_postuninstall_cmds \ 10635 compiler \ 10636 CC \ 10637 LD \ 10638 lt_prog_compiler_wl \ 10639 lt_prog_compiler_pic \ 10640 lt_prog_compiler_static \ 10641 lt_prog_compiler_no_builtin_flag \ 10642 export_dynamic_flag_spec \ 10643 thread_safe_flag_spec \ 10644 whole_archive_flag_spec \ 10645 enable_shared_with_static_runtimes \ 10646 old_archive_cmds \ 10647 old_archive_from_new_cmds \ 10648 predep_objects \ 10649 postdep_objects \ 10650 predeps \ 10651 postdeps \ 10652 compiler_lib_search_path \ 10653 compiler_lib_search_dirs \ 10654 archive_cmds \ 10655 archive_expsym_cmds \ 10656 postinstall_cmds \ 10657 postuninstall_cmds \ 10658 old_archive_from_expsyms_cmds \ 10659 allow_undefined_flag \ 10660 no_undefined_flag \ 10661 export_symbols_cmds \ 10662 hardcode_libdir_flag_spec \ 10663 hardcode_libdir_flag_spec_ld \ 10664 hardcode_libdir_separator \ 10665 hardcode_automatic \ 10666 module_cmds \ 10667 module_expsym_cmds \ 10668 lt_cv_prog_compiler_c_o \ 10669 fix_srcfile_path \ 10670 exclude_expsyms \ 10671 include_expsyms; do 10672 10673 case $var in 10674 old_archive_cmds | \ 10675 old_archive_from_new_cmds | \ 10676 archive_cmds | \ 10677 archive_expsym_cmds | \ 10678 module_cmds | \ 10679 module_expsym_cmds | \ 10680 old_archive_from_expsyms_cmds | \ 10681 export_symbols_cmds | \ 10682 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10683 postinstall_cmds | postuninstall_cmds | \ 10684 old_postinstall_cmds | old_postuninstall_cmds | \ 10685 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10686 # Double-quote double-evaled strings. 10687 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10688 ;; 10689 *) 10690 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10691 ;; 10692 esac 10693 done 10694 10695 case $lt_echo in 10696 *'\$0 --fallback-echo"') 10697 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10698 ;; 10699 esac 10700 10701cfgfile="${ofile}T" 10702 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10703 $rm -f "$cfgfile" 10704 { $as_echo "$as_me:$LINENO: creating $ofile" >&5 10705$as_echo "$as_me: creating $ofile" >&6;} 10706 10707 cat <<__EOF__ >> "$cfgfile" 10708#! $SHELL 10709 10710# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10711# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10712# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10713# 10714# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 10715# Free Software Foundation, Inc. 10716# 10717# This file is part of GNU Libtool: 10718# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10719# 10720# This program is free software; you can redistribute it and/or modify 10721# it under the terms of the GNU General Public License as published by 10722# the Free Software Foundation; either version 2 of the License, or 10723# (at your option) any later version. 10724# 10725# This program is distributed in the hope that it will be useful, but 10726# WITHOUT ANY WARRANTY; without even the implied warranty of 10727# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10728# General Public License for more details. 10729# 10730# You should have received a copy of the GNU General Public License 10731# along with this program; if not, write to the Free Software 10732# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10733# 10734# As a special exception to the GNU General Public License, if you 10735# distribute this file as part of a program that contains a 10736# configuration script generated by Autoconf, you may include it under 10737# the same distribution terms that you use for the rest of that program. 10738 10739# A sed program that does not truncate output. 10740SED=$lt_SED 10741 10742# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10743Xsed="$SED -e 1s/^X//" 10744 10745# The HP-UX ksh and POSIX shell print the target directory to stdout 10746# if CDPATH is set. 10747(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10748 10749# The names of the tagged configurations supported by this script. 10750available_tags= 10751 10752# ### BEGIN LIBTOOL CONFIG 10753 10754# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10755 10756# Shell to use when invoking shell scripts. 10757SHELL=$lt_SHELL 10758 10759# Whether or not to build shared libraries. 10760build_libtool_libs=$enable_shared 10761 10762# Whether or not to build static libraries. 10763build_old_libs=$enable_static 10764 10765# Whether or not to add -lc for building shared libraries. 10766build_libtool_need_lc=$archive_cmds_need_lc 10767 10768# Whether or not to disallow shared libs when runtime libs are static 10769allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10770 10771# Whether or not to optimize for fast installation. 10772fast_install=$enable_fast_install 10773 10774# The host system. 10775host_alias=$host_alias 10776host=$host 10777host_os=$host_os 10778 10779# The build system. 10780build_alias=$build_alias 10781build=$build 10782build_os=$build_os 10783 10784# An echo program that does not interpret backslashes. 10785echo=$lt_echo 10786 10787# The archiver. 10788AR=$lt_AR 10789AR_FLAGS=$lt_AR_FLAGS 10790 10791# A C compiler. 10792LTCC=$lt_LTCC 10793 10794# LTCC compiler flags. 10795LTCFLAGS=$lt_LTCFLAGS 10796 10797# A language-specific compiler. 10798CC=$lt_compiler 10799 10800# Is the compiler the GNU C compiler? 10801with_gcc=$GCC 10802 10803# An ERE matcher. 10804EGREP=$lt_EGREP 10805 10806# The linker used to build libraries. 10807LD=$lt_LD 10808 10809# Whether we need hard or soft links. 10810LN_S=$lt_LN_S 10811 10812# A BSD-compatible nm program. 10813NM=$lt_NM 10814 10815# A symbol stripping program 10816STRIP=$lt_STRIP 10817 10818# Used to examine libraries when file_magic_cmd begins "file" 10819MAGIC_CMD=$MAGIC_CMD 10820 10821# Used on cygwin: DLL creation program. 10822DLLTOOL="$DLLTOOL" 10823 10824# Used on cygwin: object dumper. 10825OBJDUMP="$OBJDUMP" 10826 10827# Used on cygwin: assembler. 10828AS="$AS" 10829 10830# The name of the directory that contains temporary libtool files. 10831objdir=$objdir 10832 10833# How to create reloadable object files. 10834reload_flag=$lt_reload_flag 10835reload_cmds=$lt_reload_cmds 10836 10837# How to pass a linker flag through the compiler. 10838wl=$lt_lt_prog_compiler_wl 10839 10840# Object file suffix (normally "o"). 10841objext="$ac_objext" 10842 10843# Old archive suffix (normally "a"). 10844libext="$libext" 10845 10846# Shared library suffix (normally ".so"). 10847shrext_cmds='$shrext_cmds' 10848 10849# Executable file suffix (normally ""). 10850exeext="$exeext" 10851 10852# Additional compiler flags for building library objects. 10853pic_flag=$lt_lt_prog_compiler_pic 10854pic_mode=$pic_mode 10855 10856# What is the maximum length of a command? 10857max_cmd_len=$lt_cv_sys_max_cmd_len 10858 10859# Does compiler simultaneously support -c and -o options? 10860compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10861 10862# Must we lock files when doing compilation? 10863need_locks=$lt_need_locks 10864 10865# Do we need the lib prefix for modules? 10866need_lib_prefix=$need_lib_prefix 10867 10868# Do we need a version for libraries? 10869need_version=$need_version 10870 10871# Whether dlopen is supported. 10872dlopen_support=$enable_dlopen 10873 10874# Whether dlopen of programs is supported. 10875dlopen_self=$enable_dlopen_self 10876 10877# Whether dlopen of statically linked programs is supported. 10878dlopen_self_static=$enable_dlopen_self_static 10879 10880# Compiler flag to prevent dynamic linking. 10881link_static_flag=$lt_lt_prog_compiler_static 10882 10883# Compiler flag to turn off builtin functions. 10884no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10885 10886# Compiler flag to allow reflexive dlopens. 10887export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10888 10889# Compiler flag to generate shared objects directly from archives. 10890whole_archive_flag_spec=$lt_whole_archive_flag_spec 10891 10892# Compiler flag to generate thread-safe objects. 10893thread_safe_flag_spec=$lt_thread_safe_flag_spec 10894 10895# Library versioning type. 10896version_type=$version_type 10897 10898# Format of library name prefix. 10899libname_spec=$lt_libname_spec 10900 10901# List of archive names. First name is the real one, the rest are links. 10902# The last name is the one that the linker finds with -lNAME. 10903library_names_spec=$lt_library_names_spec 10904 10905# The coded name of the library, if different from the real name. 10906soname_spec=$lt_soname_spec 10907 10908# Commands used to build and install an old-style archive. 10909RANLIB=$lt_RANLIB 10910old_archive_cmds=$lt_old_archive_cmds 10911old_postinstall_cmds=$lt_old_postinstall_cmds 10912old_postuninstall_cmds=$lt_old_postuninstall_cmds 10913 10914# Create an old-style archive from a shared archive. 10915old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10916 10917# Create a temporary old-style archive to link instead of a shared archive. 10918old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10919 10920# Commands used to build and install a shared archive. 10921archive_cmds=$lt_archive_cmds 10922archive_expsym_cmds=$lt_archive_expsym_cmds 10923postinstall_cmds=$lt_postinstall_cmds 10924postuninstall_cmds=$lt_postuninstall_cmds 10925 10926# Commands used to build a loadable module (assumed same as above if empty) 10927module_cmds=$lt_module_cmds 10928module_expsym_cmds=$lt_module_expsym_cmds 10929 10930# Commands to strip libraries. 10931old_striplib=$lt_old_striplib 10932striplib=$lt_striplib 10933 10934# Dependencies to place before the objects being linked to create a 10935# shared library. 10936predep_objects=$lt_predep_objects 10937 10938# Dependencies to place after the objects being linked to create a 10939# shared library. 10940postdep_objects=$lt_postdep_objects 10941 10942# Dependencies to place before the objects being linked to create a 10943# shared library. 10944predeps=$lt_predeps 10945 10946# Dependencies to place after the objects being linked to create a 10947# shared library. 10948postdeps=$lt_postdeps 10949 10950# The directories searched by this compiler when creating a shared 10951# library 10952compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 10953 10954# The library search path used internally by the compiler when linking 10955# a shared library. 10956compiler_lib_search_path=$lt_compiler_lib_search_path 10957 10958# Method to check whether dependent libraries are shared objects. 10959deplibs_check_method=$lt_deplibs_check_method 10960 10961# Command to use when deplibs_check_method == file_magic. 10962file_magic_cmd=$lt_file_magic_cmd 10963 10964# Flag that allows shared libraries with undefined symbols to be built. 10965allow_undefined_flag=$lt_allow_undefined_flag 10966 10967# Flag that forces no undefined symbols. 10968no_undefined_flag=$lt_no_undefined_flag 10969 10970# Commands used to finish a libtool library installation in a directory. 10971finish_cmds=$lt_finish_cmds 10972 10973# Same as above, but a single script fragment to be evaled but not shown. 10974finish_eval=$lt_finish_eval 10975 10976# Take the output of nm and produce a listing of raw symbols and C names. 10977global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10978 10979# Transform the output of nm in a proper C declaration 10980global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10981 10982# Transform the output of nm in a C name address pair 10983global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10984 10985# This is the shared library runtime path variable. 10986runpath_var=$runpath_var 10987 10988# This is the shared library path variable. 10989shlibpath_var=$shlibpath_var 10990 10991# Is shlibpath searched before the hard-coded library search path? 10992shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10993 10994# How to hardcode a shared library path into an executable. 10995hardcode_action=$hardcode_action 10996 10997# Whether we should hardcode library paths into libraries. 10998hardcode_into_libs=$hardcode_into_libs 10999 11000# Flag to hardcode \$libdir into a binary during linking. 11001# This must work even if \$libdir does not exist. 11002hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 11003 11004# If ld is used when linking, flag to hardcode \$libdir into 11005# a binary during linking. This must work even if \$libdir does 11006# not exist. 11007hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 11008 11009# Whether we need a single -rpath flag with a separated argument. 11010hardcode_libdir_separator=$lt_hardcode_libdir_separator 11011 11012# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 11013# resulting binary. 11014hardcode_direct=$hardcode_direct 11015 11016# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 11017# resulting binary. 11018hardcode_minus_L=$hardcode_minus_L 11019 11020# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 11021# the resulting binary. 11022hardcode_shlibpath_var=$hardcode_shlibpath_var 11023 11024# Set to yes if building a shared library automatically hardcodes DIR into the library 11025# and all subsequent libraries and executables linked against it. 11026hardcode_automatic=$hardcode_automatic 11027 11028# Variables whose values should be saved in libtool wrapper scripts and 11029# restored at relink time. 11030variables_saved_for_relink="$variables_saved_for_relink" 11031 11032# Whether libtool must link a program against all its dependency libraries. 11033link_all_deplibs=$link_all_deplibs 11034 11035# Compile-time system search path for libraries 11036sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 11037 11038# Run-time system search path for libraries 11039sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 11040 11041# Fix the shell variable \$srcfile for the compiler. 11042fix_srcfile_path=$lt_fix_srcfile_path 11043 11044# Set to yes if exported symbols are required. 11045always_export_symbols=$always_export_symbols 11046 11047# The commands to list exported symbols. 11048export_symbols_cmds=$lt_export_symbols_cmds 11049 11050# The commands to extract the exported symbol list from a shared archive. 11051extract_expsyms_cmds=$lt_extract_expsyms_cmds 11052 11053# Symbols that should not be listed in the preloaded symbols. 11054exclude_expsyms=$lt_exclude_expsyms 11055 11056# Symbols that must always be exported. 11057include_expsyms=$lt_include_expsyms 11058 11059# ### END LIBTOOL CONFIG 11060 11061__EOF__ 11062 11063 11064 case $host_os in 11065 aix3*) 11066 cat <<\EOF >> "$cfgfile" 11067 11068# AIX sometimes has problems with the GCC collect2 program. For some 11069# reason, if we set the COLLECT_NAMES environment variable, the problems 11070# vanish in a puff of smoke. 11071if test "X${COLLECT_NAMES+set}" != Xset; then 11072 COLLECT_NAMES= 11073 export COLLECT_NAMES 11074fi 11075EOF 11076 ;; 11077 esac 11078 11079 # We use sed instead of cat because bash on DJGPP gets confused if 11080 # if finds mixed CR/LF and LF-only lines. Since sed operates in 11081 # text mode, it properly converts lines to CR/LF. This bash problem 11082 # is reportedly fixed, but why not run on old versions too? 11083 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 11084 11085 mv -f "$cfgfile" "$ofile" || \ 11086 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 11087 chmod +x "$ofile" 11088 11089else 11090 # If there is no Makefile yet, we rely on a make rule to execute 11091 # `config.status --recheck' to rerun these tests and create the 11092 # libtool script then. 11093 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 11094 if test -f "$ltmain_in"; then 11095 test -f Makefile && make "$ltmain" 11096 fi 11097fi 11098 11099 11100ac_ext=c 11101ac_cpp='$CPP $CPPFLAGS' 11102ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11103ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11104ac_compiler_gnu=$ac_cv_c_compiler_gnu 11105 11106CC="$lt_save_CC" 11107 11108 11109# Check whether --with-tags was given. 11110if test "${with_tags+set}" = set; then 11111 withval=$with_tags; tagnames="$withval" 11112fi 11113 11114 11115if test -f "$ltmain" && test -n "$tagnames"; then 11116 if test ! -f "${ofile}"; then 11117 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 11118$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 11119 fi 11120 11121 if test -z "$LTCC"; then 11122 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 11123 if test -z "$LTCC"; then 11124 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 11125$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 11126 else 11127 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 11128$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 11129 fi 11130 fi 11131 if test -z "$LTCFLAGS"; then 11132 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 11133 fi 11134 11135 # Extract list of available tagged configurations in $ofile. 11136 # Note that this assumes the entire list is on one line. 11137 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 11138 11139 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11140 for tagname in $tagnames; do 11141 IFS="$lt_save_ifs" 11142 # Check whether tagname contains only valid characters 11143 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 11144 "") ;; 11145 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 11146$as_echo "$as_me: error: invalid tag name: $tagname" >&2;} 11147 { (exit 1); exit 1; }; } 11148 ;; 11149 esac 11150 11151 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 11152 then 11153 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 11154$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 11155 { (exit 1); exit 1; }; } 11156 fi 11157 11158 # Update the list of available tags. 11159 if test -n "$tagname"; then 11160 echo appending configuration tag \"$tagname\" to $ofile 11161 11162 case $tagname in 11163 CXX) 11164 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11165 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11166 (test "X$CXX" != "Xg++"))) ; then 11167 ac_ext=cpp 11168ac_cpp='$CXXCPP $CPPFLAGS' 11169ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11170ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11171ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11172 11173 11174 11175 11176archive_cmds_need_lc_CXX=no 11177allow_undefined_flag_CXX= 11178always_export_symbols_CXX=no 11179archive_expsym_cmds_CXX= 11180export_dynamic_flag_spec_CXX= 11181hardcode_direct_CXX=no 11182hardcode_libdir_flag_spec_CXX= 11183hardcode_libdir_flag_spec_ld_CXX= 11184hardcode_libdir_separator_CXX= 11185hardcode_minus_L_CXX=no 11186hardcode_shlibpath_var_CXX=unsupported 11187hardcode_automatic_CXX=no 11188module_cmds_CXX= 11189module_expsym_cmds_CXX= 11190link_all_deplibs_CXX=unknown 11191old_archive_cmds_CXX=$old_archive_cmds 11192no_undefined_flag_CXX= 11193whole_archive_flag_spec_CXX= 11194enable_shared_with_static_runtimes_CXX=no 11195 11196# Dependencies to place before and after the object being linked: 11197predep_objects_CXX= 11198postdep_objects_CXX= 11199predeps_CXX= 11200postdeps_CXX= 11201compiler_lib_search_path_CXX= 11202compiler_lib_search_dirs_CXX= 11203 11204# Source file extension for C++ test sources. 11205ac_ext=cpp 11206 11207# Object file extension for compiled C++ test sources. 11208objext=o 11209objext_CXX=$objext 11210 11211# Code to be used in simple compile tests 11212lt_simple_compile_test_code="int some_variable = 0;" 11213 11214# Code to be used in simple link tests 11215lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 11216 11217# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11218 11219# If no C compiler was specified, use CC. 11220LTCC=${LTCC-"$CC"} 11221 11222# If no C compiler flags were specified, use CFLAGS. 11223LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11224 11225# Allow CC to be a program name with arguments. 11226compiler=$CC 11227 11228 11229# save warnings/boilerplate of simple test code 11230ac_outfile=conftest.$ac_objext 11231echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11232eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11233_lt_compiler_boilerplate=`cat conftest.err` 11234$rm conftest* 11235 11236ac_outfile=conftest.$ac_objext 11237echo "$lt_simple_link_test_code" >conftest.$ac_ext 11238eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11239_lt_linker_boilerplate=`cat conftest.err` 11240$rm -r conftest* 11241 11242 11243# Allow CC to be a program name with arguments. 11244lt_save_CC=$CC 11245lt_save_LD=$LD 11246lt_save_GCC=$GCC 11247GCC=$GXX 11248lt_save_with_gnu_ld=$with_gnu_ld 11249lt_save_path_LD=$lt_cv_path_LD 11250if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11251 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11252else 11253 $as_unset lt_cv_prog_gnu_ld 11254fi 11255if test -n "${lt_cv_path_LDCXX+set}"; then 11256 lt_cv_path_LD=$lt_cv_path_LDCXX 11257else 11258 $as_unset lt_cv_path_LD 11259fi 11260test -z "${LDCXX+set}" || LD=$LDCXX 11261CC=${CXX-"c++"} 11262compiler=$CC 11263compiler_CXX=$CC 11264for cc_temp in $compiler""; do 11265 case $cc_temp in 11266 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11267 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11268 \-*) ;; 11269 *) break;; 11270 esac 11271done 11272cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11273 11274 11275# We don't want -fno-exception wen compiling C++ code, so set the 11276# no_builtin_flag separately 11277if test "$GXX" = yes; then 11278 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11279else 11280 lt_prog_compiler_no_builtin_flag_CXX= 11281fi 11282 11283if test "$GXX" = yes; then 11284 # Set up default GNU C++ configuration 11285 11286 11287# Check whether --with-gnu-ld was given. 11288if test "${with_gnu_ld+set}" = set; then 11289 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11290else 11291 with_gnu_ld=no 11292fi 11293 11294ac_prog=ld 11295if test "$GCC" = yes; then 11296 # Check if gcc -print-prog-name=ld gives a path. 11297 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 11298$as_echo_n "checking for ld used by $CC... " >&6; } 11299 case $host in 11300 *-*-mingw*) 11301 # gcc leaves a trailing carriage return which upsets mingw 11302 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11303 *) 11304 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11305 esac 11306 case $ac_prog in 11307 # Accept absolute paths. 11308 [\\/]* | ?:[\\/]*) 11309 re_direlt='/[^/][^/]*/\.\./' 11310 # Canonicalize the pathname of ld 11311 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 11312 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11313 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 11314 done 11315 test -z "$LD" && LD="$ac_prog" 11316 ;; 11317 "") 11318 # If it fails, then pretend we aren't using GCC. 11319 ac_prog=ld 11320 ;; 11321 *) 11322 # If it is relative, then search for the first ld in PATH. 11323 with_gnu_ld=unknown 11324 ;; 11325 esac 11326elif test "$with_gnu_ld" = yes; then 11327 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 11328$as_echo_n "checking for GNU ld... " >&6; } 11329else 11330 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 11331$as_echo_n "checking for non-GNU ld... " >&6; } 11332fi 11333if test "${lt_cv_path_LD+set}" = set; then 11334 $as_echo_n "(cached) " >&6 11335else 11336 if test -z "$LD"; then 11337 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11338 for ac_dir in $PATH; do 11339 IFS="$lt_save_ifs" 11340 test -z "$ac_dir" && ac_dir=. 11341 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11342 lt_cv_path_LD="$ac_dir/$ac_prog" 11343 # Check to see if the program is GNU ld. I'd rather use --version, 11344 # but apparently some variants of GNU ld only accept -v. 11345 # Break only if it was the GNU/non-GNU ld that we prefer. 11346 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11347 *GNU* | *'with BFD'*) 11348 test "$with_gnu_ld" != no && break 11349 ;; 11350 *) 11351 test "$with_gnu_ld" != yes && break 11352 ;; 11353 esac 11354 fi 11355 done 11356 IFS="$lt_save_ifs" 11357else 11358 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11359fi 11360fi 11361 11362LD="$lt_cv_path_LD" 11363if test -n "$LD"; then 11364 { $as_echo "$as_me:$LINENO: result: $LD" >&5 11365$as_echo "$LD" >&6; } 11366else 11367 { $as_echo "$as_me:$LINENO: result: no" >&5 11368$as_echo "no" >&6; } 11369fi 11370test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 11371$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 11372 { (exit 1); exit 1; }; } 11373{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 11374$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11375if test "${lt_cv_prog_gnu_ld+set}" = set; then 11376 $as_echo_n "(cached) " >&6 11377else 11378 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11379case `$LD -v 2>&1 </dev/null` in 11380*GNU* | *'with BFD'*) 11381 lt_cv_prog_gnu_ld=yes 11382 ;; 11383*) 11384 lt_cv_prog_gnu_ld=no 11385 ;; 11386esac 11387fi 11388{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 11389$as_echo "$lt_cv_prog_gnu_ld" >&6; } 11390with_gnu_ld=$lt_cv_prog_gnu_ld 11391 11392 11393 11394 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11395 # archiving commands below assume that GNU ld is being used. 11396 if test "$with_gnu_ld" = yes; then 11397 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11398 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' 11399 11400 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11401 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11402 11403 # If archive_cmds runs LD, not CC, wlarc should be empty 11404 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11405 # investigate it a little bit more. (MM) 11406 wlarc='${wl}' 11407 11408 # ancient GNU ld didn't support --whole-archive et. al. 11409 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 11410 grep 'no-whole-archive' > /dev/null; then 11411 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11412 else 11413 whole_archive_flag_spec_CXX= 11414 fi 11415 else 11416 with_gnu_ld=no 11417 wlarc= 11418 11419 # A generic and very simple default shared library creation 11420 # command for GNU C++ for the case where it uses the native 11421 # linker, instead of GNU ld. If possible, this setting should 11422 # overridden to take advantage of the native linker features on 11423 # the platform it is being used on. 11424 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11425 fi 11426 11427 # Commands to make compiler produce verbose output that lists 11428 # what "hidden" libraries, object files and flags are used when 11429 # linking a shared library. 11430 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11431 11432else 11433 GXX=no 11434 with_gnu_ld=no 11435 wlarc= 11436fi 11437 11438# PORTME: fill in a description of your system's C++ link characteristics 11439{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11440$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11441ld_shlibs_CXX=yes 11442case $host_os in 11443 aix3*) 11444 # FIXME: insert proper C++ library support 11445 ld_shlibs_CXX=no 11446 ;; 11447 aix[4-9]*) 11448 if test "$host_cpu" = ia64; then 11449 # On IA64, the linker does run time linking by default, so we don't 11450 # have to do anything special. 11451 aix_use_runtimelinking=no 11452 exp_sym_flag='-Bexport' 11453 no_entry_flag="" 11454 else 11455 aix_use_runtimelinking=no 11456 11457 # Test if we are trying to use run time linking or normal 11458 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11459 # need to do runtime linking. 11460 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11461 for ld_flag in $LDFLAGS; do 11462 case $ld_flag in 11463 *-brtl*) 11464 aix_use_runtimelinking=yes 11465 break 11466 ;; 11467 esac 11468 done 11469 ;; 11470 esac 11471 11472 exp_sym_flag='-bexport' 11473 no_entry_flag='-bnoentry' 11474 fi 11475 11476 # When large executables or shared objects are built, AIX ld can 11477 # have problems creating the table of contents. If linking a library 11478 # or program results in "error TOC overflow" add -mminimal-toc to 11479 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11480 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11481 11482 archive_cmds_CXX='' 11483 hardcode_direct_CXX=yes 11484 hardcode_libdir_separator_CXX=':' 11485 link_all_deplibs_CXX=yes 11486 11487 if test "$GXX" = yes; then 11488 case $host_os in aix4.[012]|aix4.[012].*) 11489 # We only want to do this on AIX 4.2 and lower, the check 11490 # below for broken collect2 doesn't work under 4.3+ 11491 collect2name=`${CC} -print-prog-name=collect2` 11492 if test -f "$collect2name" && \ 11493 strings "$collect2name" | grep resolve_lib_name >/dev/null 11494 then 11495 # We have reworked collect2 11496 : 11497 else 11498 # We have old collect2 11499 hardcode_direct_CXX=unsupported 11500 # It fails to find uninstalled libraries when the uninstalled 11501 # path is not listed in the libpath. Setting hardcode_minus_L 11502 # to unsupported forces relinking 11503 hardcode_minus_L_CXX=yes 11504 hardcode_libdir_flag_spec_CXX='-L$libdir' 11505 hardcode_libdir_separator_CXX= 11506 fi 11507 ;; 11508 esac 11509 shared_flag='-shared' 11510 if test "$aix_use_runtimelinking" = yes; then 11511 shared_flag="$shared_flag "'${wl}-G' 11512 fi 11513 else 11514 # not using gcc 11515 if test "$host_cpu" = ia64; then 11516 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11517 # chokes on -Wl,-G. The following line is correct: 11518 shared_flag='-G' 11519 else 11520 if test "$aix_use_runtimelinking" = yes; then 11521 shared_flag='${wl}-G' 11522 else 11523 shared_flag='${wl}-bM:SRE' 11524 fi 11525 fi 11526 fi 11527 11528 # It seems that -bexpall does not export symbols beginning with 11529 # underscore (_), so it is better to generate a list of symbols to export. 11530 always_export_symbols_CXX=yes 11531 if test "$aix_use_runtimelinking" = yes; then 11532 # Warning - without using the other runtime loading flags (-brtl), 11533 # -berok will link without error, but may produce a broken library. 11534 allow_undefined_flag_CXX='-berok' 11535 # Determine the default libpath from the value encoded in an empty executable. 11536 cat >conftest.$ac_ext <<_ACEOF 11537/* confdefs.h. */ 11538_ACEOF 11539cat confdefs.h >>conftest.$ac_ext 11540cat >>conftest.$ac_ext <<_ACEOF 11541/* end confdefs.h. */ 11542 11543int 11544main () 11545{ 11546 11547 ; 11548 return 0; 11549} 11550_ACEOF 11551rm -f conftest.$ac_objext conftest$ac_exeext 11552if { (ac_try="$ac_link" 11553case "(($ac_try" in 11554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11555 *) ac_try_echo=$ac_try;; 11556esac 11557eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11558$as_echo "$ac_try_echo") >&5 11559 (eval "$ac_link") 2>conftest.er1 11560 ac_status=$? 11561 grep -v '^ *+' conftest.er1 >conftest.err 11562 rm -f conftest.er1 11563 cat conftest.err >&5 11564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11565 (exit $ac_status); } && { 11566 test -z "$ac_cxx_werror_flag" || 11567 test ! -s conftest.err 11568 } && test -s conftest$ac_exeext && { 11569 test "$cross_compiling" = yes || 11570 $as_test_x conftest$ac_exeext 11571 }; then 11572 11573lt_aix_libpath_sed=' 11574 /Import File Strings/,/^$/ { 11575 /^0/ { 11576 s/^0 *\(.*\)$/\1/ 11577 p 11578 } 11579 }' 11580aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11581# Check for a 64-bit object if we didn't find anything. 11582if test -z "$aix_libpath"; then 11583 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11584fi 11585else 11586 $as_echo "$as_me: failed program was:" >&5 11587sed 's/^/| /' conftest.$ac_ext >&5 11588 11589 11590fi 11591 11592rm -rf conftest.dSYM 11593rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11594 conftest$ac_exeext conftest.$ac_ext 11595if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11596 11597 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11598 11599 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" 11600 else 11601 if test "$host_cpu" = ia64; then 11602 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11603 allow_undefined_flag_CXX="-z nodefs" 11604 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" 11605 else 11606 # Determine the default libpath from the value encoded in an empty executable. 11607 cat >conftest.$ac_ext <<_ACEOF 11608/* confdefs.h. */ 11609_ACEOF 11610cat confdefs.h >>conftest.$ac_ext 11611cat >>conftest.$ac_ext <<_ACEOF 11612/* end confdefs.h. */ 11613 11614int 11615main () 11616{ 11617 11618 ; 11619 return 0; 11620} 11621_ACEOF 11622rm -f conftest.$ac_objext conftest$ac_exeext 11623if { (ac_try="$ac_link" 11624case "(($ac_try" in 11625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11626 *) ac_try_echo=$ac_try;; 11627esac 11628eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11629$as_echo "$ac_try_echo") >&5 11630 (eval "$ac_link") 2>conftest.er1 11631 ac_status=$? 11632 grep -v '^ *+' conftest.er1 >conftest.err 11633 rm -f conftest.er1 11634 cat conftest.err >&5 11635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11636 (exit $ac_status); } && { 11637 test -z "$ac_cxx_werror_flag" || 11638 test ! -s conftest.err 11639 } && test -s conftest$ac_exeext && { 11640 test "$cross_compiling" = yes || 11641 $as_test_x conftest$ac_exeext 11642 }; then 11643 11644lt_aix_libpath_sed=' 11645 /Import File Strings/,/^$/ { 11646 /^0/ { 11647 s/^0 *\(.*\)$/\1/ 11648 p 11649 } 11650 }' 11651aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11652# Check for a 64-bit object if we didn't find anything. 11653if test -z "$aix_libpath"; then 11654 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11655fi 11656else 11657 $as_echo "$as_me: failed program was:" >&5 11658sed 's/^/| /' conftest.$ac_ext >&5 11659 11660 11661fi 11662 11663rm -rf conftest.dSYM 11664rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11665 conftest$ac_exeext conftest.$ac_ext 11666if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11667 11668 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11669 # Warning - without using the other run time loading flags, 11670 # -berok will link without error, but may produce a broken library. 11671 no_undefined_flag_CXX=' ${wl}-bernotok' 11672 allow_undefined_flag_CXX=' ${wl}-berok' 11673 # Exported symbols can be pulled into shared objects from archives 11674 whole_archive_flag_spec_CXX='$convenience' 11675 archive_cmds_need_lc_CXX=yes 11676 # This is similar to how AIX traditionally builds its shared libraries. 11677 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' 11678 fi 11679 fi 11680 ;; 11681 11682 beos*) 11683 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11684 allow_undefined_flag_CXX=unsupported 11685 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11686 # support --undefined. This deserves some investigation. FIXME 11687 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11688 else 11689 ld_shlibs_CXX=no 11690 fi 11691 ;; 11692 11693 chorus*) 11694 case $cc_basename in 11695 *) 11696 # FIXME: insert proper C++ library support 11697 ld_shlibs_CXX=no 11698 ;; 11699 esac 11700 ;; 11701 11702 cygwin* | mingw* | pw32*) 11703 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11704 # as there is no search path for DLLs. 11705 hardcode_libdir_flag_spec_CXX='-L$libdir' 11706 allow_undefined_flag_CXX=unsupported 11707 always_export_symbols_CXX=no 11708 enable_shared_with_static_runtimes_CXX=yes 11709 11710 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11711 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' 11712 # If the export-symbols file already is a .def file (1st line 11713 # is EXPORTS), use it as is; otherwise, prepend... 11714 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11715 cp $export_symbols $output_objdir/$soname.def; 11716 else 11717 echo EXPORTS > $output_objdir/$soname.def; 11718 cat $export_symbols >> $output_objdir/$soname.def; 11719 fi~ 11720 $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' 11721 else 11722 ld_shlibs_CXX=no 11723 fi 11724 ;; 11725 darwin* | rhapsody*) 11726 archive_cmds_need_lc_CXX=no 11727 hardcode_direct_CXX=no 11728 hardcode_automatic_CXX=yes 11729 hardcode_shlibpath_var_CXX=unsupported 11730 whole_archive_flag_spec_CXX='' 11731 link_all_deplibs_CXX=yes 11732 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 11733 if test "$GXX" = yes ; then 11734 output_verbose_link_cmd='echo' 11735 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}" 11736 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 11737 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}" 11738 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}" 11739 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 11740 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}" 11741 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}" 11742 fi 11743 else 11744 case $cc_basename in 11745 xlc*) 11746 output_verbose_link_cmd='echo' 11747 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' 11748 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11749 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11750 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}' 11751 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}' 11752 ;; 11753 *) 11754 ld_shlibs_CXX=no 11755 ;; 11756 esac 11757 fi 11758 ;; 11759 11760 dgux*) 11761 case $cc_basename in 11762 ec++*) 11763 # FIXME: insert proper C++ library support 11764 ld_shlibs_CXX=no 11765 ;; 11766 ghcx*) 11767 # Green Hills C++ Compiler 11768 # FIXME: insert proper C++ library support 11769 ld_shlibs_CXX=no 11770 ;; 11771 *) 11772 # FIXME: insert proper C++ library support 11773 ld_shlibs_CXX=no 11774 ;; 11775 esac 11776 ;; 11777 freebsd[12]*) 11778 # C++ shared libraries reported to be fairly broken before switch to ELF 11779 ld_shlibs_CXX=no 11780 ;; 11781 freebsd-elf*) 11782 archive_cmds_need_lc_CXX=no 11783 ;; 11784 freebsd* | dragonfly*) 11785 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11786 # conventions 11787 ld_shlibs_CXX=yes 11788 ;; 11789 gnu*) 11790 ;; 11791 hpux9*) 11792 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11793 hardcode_libdir_separator_CXX=: 11794 export_dynamic_flag_spec_CXX='${wl}-E' 11795 hardcode_direct_CXX=yes 11796 hardcode_minus_L_CXX=yes # Not in the search PATH, 11797 # but as the default 11798 # location of the library. 11799 11800 case $cc_basename in 11801 CC*) 11802 # FIXME: insert proper C++ library support 11803 ld_shlibs_CXX=no 11804 ;; 11805 aCC*) 11806 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' 11807 # Commands to make compiler produce verbose output that lists 11808 # what "hidden" libraries, object files and flags are used when 11809 # linking a shared library. 11810 # 11811 # There doesn't appear to be a way to prevent this compiler from 11812 # explicitly linking system object files so we need to strip them 11813 # from the output so that they don't get included in the library 11814 # dependencies. 11815 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' 11816 ;; 11817 *) 11818 if test "$GXX" = yes; then 11819 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' 11820 else 11821 # FIXME: insert proper C++ library support 11822 ld_shlibs_CXX=no 11823 fi 11824 ;; 11825 esac 11826 ;; 11827 hpux10*|hpux11*) 11828 if test $with_gnu_ld = no; then 11829 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11830 hardcode_libdir_separator_CXX=: 11831 11832 case $host_cpu in 11833 hppa*64*|ia64*) ;; 11834 *) 11835 export_dynamic_flag_spec_CXX='${wl}-E' 11836 ;; 11837 esac 11838 fi 11839 case $host_cpu in 11840 hppa*64*|ia64*) 11841 hardcode_direct_CXX=no 11842 hardcode_shlibpath_var_CXX=no 11843 ;; 11844 *) 11845 hardcode_direct_CXX=yes 11846 hardcode_minus_L_CXX=yes # Not in the search PATH, 11847 # but as the default 11848 # location of the library. 11849 ;; 11850 esac 11851 11852 case $cc_basename in 11853 CC*) 11854 # FIXME: insert proper C++ library support 11855 ld_shlibs_CXX=no 11856 ;; 11857 aCC*) 11858 case $host_cpu in 11859 hppa*64*) 11860 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11861 ;; 11862 ia64*) 11863 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11864 ;; 11865 *) 11866 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11867 ;; 11868 esac 11869 # Commands to make compiler produce verbose output that lists 11870 # what "hidden" libraries, object files and flags are used when 11871 # linking a shared library. 11872 # 11873 # There doesn't appear to be a way to prevent this compiler from 11874 # explicitly linking system object files so we need to strip them 11875 # from the output so that they don't get included in the library 11876 # dependencies. 11877 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' 11878 ;; 11879 *) 11880 if test "$GXX" = yes; then 11881 if test $with_gnu_ld = no; then 11882 case $host_cpu in 11883 hppa*64*) 11884 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11885 ;; 11886 ia64*) 11887 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11888 ;; 11889 *) 11890 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' 11891 ;; 11892 esac 11893 fi 11894 else 11895 # FIXME: insert proper C++ library support 11896 ld_shlibs_CXX=no 11897 fi 11898 ;; 11899 esac 11900 ;; 11901 interix[3-9]*) 11902 hardcode_direct_CXX=no 11903 hardcode_shlibpath_var_CXX=no 11904 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11905 export_dynamic_flag_spec_CXX='${wl}-E' 11906 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11907 # Instead, shared libraries are loaded at an image base (0x10000000 by 11908 # default) and relocated if they conflict, which is a slow very memory 11909 # consuming and fragmenting process. To avoid this, we pick a random, 11910 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11911 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11912 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' 11913 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' 11914 ;; 11915 irix5* | irix6*) 11916 case $cc_basename in 11917 CC*) 11918 # SGI C++ 11919 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' 11920 11921 # Archives containing C++ object files must be created using 11922 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11923 # necessary to make sure instantiated templates are included 11924 # in the archive. 11925 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11926 ;; 11927 *) 11928 if test "$GXX" = yes; then 11929 if test "$with_gnu_ld" = no; then 11930 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' 11931 else 11932 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' 11933 fi 11934 fi 11935 link_all_deplibs_CXX=yes 11936 ;; 11937 esac 11938 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11939 hardcode_libdir_separator_CXX=: 11940 ;; 11941 linux* | k*bsd*-gnu) 11942 case $cc_basename in 11943 KCC*) 11944 # Kuck and Associates, Inc. (KAI) C++ Compiler 11945 11946 # KCC will only create a shared library if the output file 11947 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11948 # to its proper name (with version) after linking. 11949 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' 11950 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' 11951 # Commands to make compiler produce verbose output that lists 11952 # what "hidden" libraries, object files and flags are used when 11953 # linking a shared library. 11954 # 11955 # There doesn't appear to be a way to prevent this compiler from 11956 # explicitly linking system object files so we need to strip them 11957 # from the output so that they don't get included in the library 11958 # dependencies. 11959 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' 11960 11961 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11962 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11963 11964 # Archives containing C++ object files must be created using 11965 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11966 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11967 ;; 11968 icpc*) 11969 # Intel C++ 11970 with_gnu_ld=yes 11971 # version 8.0 and above of icpc choke on multiply defined symbols 11972 # if we add $predep_objects and $postdep_objects, however 7.1 and 11973 # earlier do not add the objects themselves. 11974 case `$CC -V 2>&1` in 11975 *"Version 7."*) 11976 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11977 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' 11978 ;; 11979 *) # Version 8.0 or newer 11980 tmp_idyn= 11981 case $host_cpu in 11982 ia64*) tmp_idyn=' -i_dynamic';; 11983 esac 11984 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11985 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' 11986 ;; 11987 esac 11988 archive_cmds_need_lc_CXX=no 11989 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11990 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11991 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11992 ;; 11993 pgCC* | pgcpp*) 11994 # Portland Group C++ compiler 11995 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11996 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' 11997 11998 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11999 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12000 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' 12001 ;; 12002 cxx*) 12003 # Compaq C++ 12004 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12005 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' 12006 12007 runpath_var=LD_RUN_PATH 12008 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12009 hardcode_libdir_separator_CXX=: 12010 12011 # Commands to make compiler produce verbose output that lists 12012 # what "hidden" libraries, object files and flags are used when 12013 # linking a shared library. 12014 # 12015 # There doesn't appear to be a way to prevent this compiler from 12016 # explicitly linking system object files so we need to strip them 12017 # from the output so that they don't get included in the library 12018 # dependencies. 12019 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' 12020 ;; 12021 *) 12022 case `$CC -V 2>&1 | sed 5q` in 12023 *Sun\ C*) 12024 # Sun C++ 5.9 12025 no_undefined_flag_CXX=' -zdefs' 12026 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12027 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' 12028 hardcode_libdir_flag_spec_CXX='-R$libdir' 12029 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' 12030 12031 # Not sure whether something based on 12032 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 12033 # would be better. 12034 output_verbose_link_cmd='echo' 12035 12036 # Archives containing C++ object files must be created using 12037 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12038 # necessary to make sure instantiated templates are included 12039 # in the archive. 12040 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12041 ;; 12042 esac 12043 ;; 12044 esac 12045 ;; 12046 lynxos*) 12047 # FIXME: insert proper C++ library support 12048 ld_shlibs_CXX=no 12049 ;; 12050 m88k*) 12051 # FIXME: insert proper C++ library support 12052 ld_shlibs_CXX=no 12053 ;; 12054 mvs*) 12055 case $cc_basename in 12056 cxx*) 12057 # FIXME: insert proper C++ library support 12058 ld_shlibs_CXX=no 12059 ;; 12060 *) 12061 # FIXME: insert proper C++ library support 12062 ld_shlibs_CXX=no 12063 ;; 12064 esac 12065 ;; 12066 netbsd*) 12067 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12068 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12069 wlarc= 12070 hardcode_libdir_flag_spec_CXX='-R$libdir' 12071 hardcode_direct_CXX=yes 12072 hardcode_shlibpath_var_CXX=no 12073 fi 12074 # Workaround some broken pre-1.5 toolchains 12075 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12076 ;; 12077 openbsd2*) 12078 # C++ shared libraries are fairly broken 12079 ld_shlibs_CXX=no 12080 ;; 12081 openbsd*) 12082 if test -f /usr/libexec/ld.so; then 12083 hardcode_direct_CXX=yes 12084 hardcode_shlibpath_var_CXX=no 12085 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12086 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12087 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12088 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12089 export_dynamic_flag_spec_CXX='${wl}-E' 12090 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12091 fi 12092 output_verbose_link_cmd='echo' 12093 else 12094 ld_shlibs_CXX=no 12095 fi 12096 ;; 12097 osf3*) 12098 case $cc_basename in 12099 KCC*) 12100 # Kuck and Associates, Inc. (KAI) C++ Compiler 12101 12102 # KCC will only create a shared library if the output file 12103 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12104 # to its proper name (with version) after linking. 12105 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 12106 12107 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12108 hardcode_libdir_separator_CXX=: 12109 12110 # Archives containing C++ object files must be created using 12111 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12112 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12113 12114 ;; 12115 RCC*) 12116 # Rational C++ 2.4.1 12117 # FIXME: insert proper C++ library support 12118 ld_shlibs_CXX=no 12119 ;; 12120 cxx*) 12121 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12122 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 12123 12124 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12125 hardcode_libdir_separator_CXX=: 12126 12127 # Commands to make compiler produce verbose output that lists 12128 # what "hidden" libraries, object files and flags are used when 12129 # linking a shared library. 12130 # 12131 # There doesn't appear to be a way to prevent this compiler from 12132 # explicitly linking system object files so we need to strip them 12133 # from the output so that they don't get included in the library 12134 # dependencies. 12135 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 12136 ;; 12137 *) 12138 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12139 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12140 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 12141 12142 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12143 hardcode_libdir_separator_CXX=: 12144 12145 # Commands to make compiler produce verbose output that lists 12146 # what "hidden" libraries, object files and flags are used when 12147 # linking a shared library. 12148 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12149 12150 else 12151 # FIXME: insert proper C++ library support 12152 ld_shlibs_CXX=no 12153 fi 12154 ;; 12155 esac 12156 ;; 12157 osf4* | osf5*) 12158 case $cc_basename in 12159 KCC*) 12160 # Kuck and Associates, Inc. (KAI) C++ Compiler 12161 12162 # KCC will only create a shared library if the output file 12163 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12164 # to its proper name (with version) after linking. 12165 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 12166 12167 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12168 hardcode_libdir_separator_CXX=: 12169 12170 # Archives containing C++ object files must be created using 12171 # the KAI C++ compiler. 12172 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 12173 ;; 12174 RCC*) 12175 # Rational C++ 2.4.1 12176 # FIXME: insert proper C++ library support 12177 ld_shlibs_CXX=no 12178 ;; 12179 cxx*) 12180 allow_undefined_flag_CXX=' -expect_unresolved \*' 12181 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 12182 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12183 echo "-hidden">> $lib.exp~ 12184 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ 12185 $rm $lib.exp' 12186 12187 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12188 hardcode_libdir_separator_CXX=: 12189 12190 # Commands to make compiler produce verbose output that lists 12191 # what "hidden" libraries, object files and flags are used when 12192 # linking a shared library. 12193 # 12194 # There doesn't appear to be a way to prevent this compiler from 12195 # explicitly linking system object files so we need to strip them 12196 # from the output so that they don't get included in the library 12197 # dependencies. 12198 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 12199 ;; 12200 *) 12201 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12202 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12203 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 12204 12205 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12206 hardcode_libdir_separator_CXX=: 12207 12208 # Commands to make compiler produce verbose output that lists 12209 # what "hidden" libraries, object files and flags are used when 12210 # linking a shared library. 12211 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12212 12213 else 12214 # FIXME: insert proper C++ library support 12215 ld_shlibs_CXX=no 12216 fi 12217 ;; 12218 esac 12219 ;; 12220 psos*) 12221 # FIXME: insert proper C++ library support 12222 ld_shlibs_CXX=no 12223 ;; 12224 sunos4*) 12225 case $cc_basename in 12226 CC*) 12227 # Sun C++ 4.x 12228 # FIXME: insert proper C++ library support 12229 ld_shlibs_CXX=no 12230 ;; 12231 lcc*) 12232 # Lucid 12233 # FIXME: insert proper C++ library support 12234 ld_shlibs_CXX=no 12235 ;; 12236 *) 12237 # FIXME: insert proper C++ library support 12238 ld_shlibs_CXX=no 12239 ;; 12240 esac 12241 ;; 12242 solaris*) 12243 case $cc_basename in 12244 CC*) 12245 # Sun C++ 4.2, 5.x and Centerline C++ 12246 archive_cmds_need_lc_CXX=yes 12247 no_undefined_flag_CXX=' -zdefs' 12248 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12249 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12250 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12251 12252 hardcode_libdir_flag_spec_CXX='-R$libdir' 12253 hardcode_shlibpath_var_CXX=no 12254 case $host_os in 12255 solaris2.[0-5] | solaris2.[0-5].*) ;; 12256 *) 12257 # The compiler driver will combine and reorder linker options, 12258 # but understands `-z linker_flag'. 12259 # Supported since Solaris 2.6 (maybe 2.5.1?) 12260 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 12261 ;; 12262 esac 12263 link_all_deplibs_CXX=yes 12264 12265 output_verbose_link_cmd='echo' 12266 12267 # Archives containing C++ object files must be created using 12268 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12269 # necessary to make sure instantiated templates are included 12270 # in the archive. 12271 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12272 ;; 12273 gcx*) 12274 # Green Hills C++ Compiler 12275 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12276 12277 # The C++ compiler must be used to create the archive. 12278 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12279 ;; 12280 *) 12281 # GNU C++ compiler with Solaris linker 12282 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12283 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12284 if $CC --version | grep -v '^2\.7' > /dev/null; then 12285 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12286 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12287 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12288 12289 # Commands to make compiler produce verbose output that lists 12290 # what "hidden" libraries, object files and flags are used when 12291 # linking a shared library. 12292 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12293 else 12294 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12295 # platform. 12296 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12297 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12298 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12299 12300 # Commands to make compiler produce verbose output that lists 12301 # what "hidden" libraries, object files and flags are used when 12302 # linking a shared library. 12303 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12304 fi 12305 12306 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12307 case $host_os in 12308 solaris2.[0-5] | solaris2.[0-5].*) ;; 12309 *) 12310 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12311 ;; 12312 esac 12313 fi 12314 ;; 12315 esac 12316 ;; 12317 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12318 no_undefined_flag_CXX='${wl}-z,text' 12319 archive_cmds_need_lc_CXX=no 12320 hardcode_shlibpath_var_CXX=no 12321 runpath_var='LD_RUN_PATH' 12322 12323 case $cc_basename in 12324 CC*) 12325 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12326 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12327 ;; 12328 *) 12329 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12330 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12331 ;; 12332 esac 12333 ;; 12334 sysv5* | sco3.2v5* | sco5v6*) 12335 # Note: We can NOT use -z defs as we might desire, because we do not 12336 # link with -lc, and that would cause any symbols used from libc to 12337 # always be unresolved, which means just about no library would 12338 # ever link correctly. If we're not using GNU ld we use -z text 12339 # though, which does catch some bad symbols but isn't as heavy-handed 12340 # as -z defs. 12341 # For security reasons, it is highly recommended that you always 12342 # use absolute paths for naming shared libraries, and exclude the 12343 # DT_RUNPATH tag from executables and libraries. But doing so 12344 # requires that you compile everything twice, which is a pain. 12345 # So that behaviour is only enabled if SCOABSPATH is set to a 12346 # non-empty value in the environment. Most likely only useful for 12347 # creating official distributions of packages. 12348 # This is a hack until libtool officially supports absolute path 12349 # names for shared libraries. 12350 no_undefined_flag_CXX='${wl}-z,text' 12351 allow_undefined_flag_CXX='${wl}-z,nodefs' 12352 archive_cmds_need_lc_CXX=no 12353 hardcode_shlibpath_var_CXX=no 12354 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 12355 hardcode_libdir_separator_CXX=':' 12356 link_all_deplibs_CXX=yes 12357 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12358 runpath_var='LD_RUN_PATH' 12359 12360 case $cc_basename in 12361 CC*) 12362 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12363 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12364 ;; 12365 *) 12366 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12367 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12368 ;; 12369 esac 12370 ;; 12371 tandem*) 12372 case $cc_basename in 12373 NCC*) 12374 # NonStop-UX NCC 3.20 12375 # FIXME: insert proper C++ library support 12376 ld_shlibs_CXX=no 12377 ;; 12378 *) 12379 # FIXME: insert proper C++ library support 12380 ld_shlibs_CXX=no 12381 ;; 12382 esac 12383 ;; 12384 vxworks*) 12385 # FIXME: insert proper C++ library support 12386 ld_shlibs_CXX=no 12387 ;; 12388 *) 12389 # FIXME: insert proper C++ library support 12390 ld_shlibs_CXX=no 12391 ;; 12392esac 12393{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12394$as_echo "$ld_shlibs_CXX" >&6; } 12395test "$ld_shlibs_CXX" = no && can_build_shared=no 12396 12397GCC_CXX="$GXX" 12398LD_CXX="$LD" 12399 12400cat > conftest.$ac_ext <<EOF 12401class Foo 12402{ 12403public: 12404 Foo (void) { a = 0; } 12405private: 12406 int a; 12407}; 12408EOF 12409 12410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12411 (eval $ac_compile) 2>&5 12412 ac_status=$? 12413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12414 (exit $ac_status); }; then 12415 # Parse the compiler output and extract the necessary 12416 # objects, libraries and library flags. 12417 12418 # Sentinel used to keep track of whether or not we are before 12419 # the conftest object file. 12420 pre_test_object_deps_done=no 12421 12422 # The `*' in the case matches for architectures that use `case' in 12423 # $output_verbose_cmd can trigger glob expansion during the loop 12424 # eval without this substitution. 12425 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 12426 12427 for p in `eval $output_verbose_link_cmd`; do 12428 case $p in 12429 12430 -L* | -R* | -l*) 12431 # Some compilers place space between "-{L,R}" and the path. 12432 # Remove the space. 12433 if test $p = "-L" \ 12434 || test $p = "-R"; then 12435 prev=$p 12436 continue 12437 else 12438 prev= 12439 fi 12440 12441 if test "$pre_test_object_deps_done" = no; then 12442 case $p in 12443 -L* | -R*) 12444 # Internal compiler library paths should come after those 12445 # provided the user. The postdeps already come after the 12446 # user supplied libs so there is no need to process them. 12447 if test -z "$compiler_lib_search_path_CXX"; then 12448 compiler_lib_search_path_CXX="${prev}${p}" 12449 else 12450 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12451 fi 12452 ;; 12453 # The "-l" case would never come before the object being 12454 # linked, so don't bother handling this case. 12455 esac 12456 else 12457 if test -z "$postdeps_CXX"; then 12458 postdeps_CXX="${prev}${p}" 12459 else 12460 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12461 fi 12462 fi 12463 ;; 12464 12465 *.$objext) 12466 # This assumes that the test object file only shows up 12467 # once in the compiler output. 12468 if test "$p" = "conftest.$objext"; then 12469 pre_test_object_deps_done=yes 12470 continue 12471 fi 12472 12473 if test "$pre_test_object_deps_done" = no; then 12474 if test -z "$predep_objects_CXX"; then 12475 predep_objects_CXX="$p" 12476 else 12477 predep_objects_CXX="$predep_objects_CXX $p" 12478 fi 12479 else 12480 if test -z "$postdep_objects_CXX"; then 12481 postdep_objects_CXX="$p" 12482 else 12483 postdep_objects_CXX="$postdep_objects_CXX $p" 12484 fi 12485 fi 12486 ;; 12487 12488 *) ;; # Ignore the rest. 12489 12490 esac 12491 done 12492 12493 # Clean up. 12494 rm -f a.out a.exe 12495else 12496 echo "libtool.m4: error: problem compiling CXX test program" 12497fi 12498 12499$rm -f confest.$objext 12500 12501compiler_lib_search_dirs_CXX= 12502if test -n "$compiler_lib_search_path_CXX"; then 12503 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 12504fi 12505 12506# PORTME: override above test on systems where it is broken 12507case $host_os in 12508interix[3-9]*) 12509 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12510 # hack all around it, let's just trust "g++" to DTRT. 12511 predep_objects_CXX= 12512 postdep_objects_CXX= 12513 postdeps_CXX= 12514 ;; 12515 12516linux*) 12517 case `$CC -V 2>&1 | sed 5q` in 12518 *Sun\ C*) 12519 # Sun C++ 5.9 12520 # 12521 # The more standards-conforming stlport4 library is 12522 # incompatible with the Cstd library. Avoid specifying 12523 # it if it's in CXXFLAGS. Ignore libCrun as 12524 # -library=stlport4 depends on it. 12525 case " $CXX $CXXFLAGS " in 12526 *" -library=stlport4 "*) 12527 solaris_use_stlport4=yes 12528 ;; 12529 esac 12530 if test "$solaris_use_stlport4" != yes; then 12531 postdeps_CXX='-library=Cstd -library=Crun' 12532 fi 12533 ;; 12534 esac 12535 ;; 12536 12537solaris*) 12538 case $cc_basename in 12539 CC*) 12540 # The more standards-conforming stlport4 library is 12541 # incompatible with the Cstd library. Avoid specifying 12542 # it if it's in CXXFLAGS. Ignore libCrun as 12543 # -library=stlport4 depends on it. 12544 case " $CXX $CXXFLAGS " in 12545 *" -library=stlport4 "*) 12546 solaris_use_stlport4=yes 12547 ;; 12548 esac 12549 12550 # Adding this requires a known-good setup of shared libraries for 12551 # Sun compiler versions before 5.6, else PIC objects from an old 12552 # archive will be linked into the output, leading to subtle bugs. 12553 if test "$solaris_use_stlport4" != yes; then 12554 postdeps_CXX='-library=Cstd -library=Crun' 12555 fi 12556 ;; 12557 esac 12558 ;; 12559esac 12560 12561case " $postdeps_CXX " in 12562*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12563esac 12564 12565lt_prog_compiler_wl_CXX= 12566lt_prog_compiler_pic_CXX= 12567lt_prog_compiler_static_CXX= 12568 12569{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12570$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 12571 12572 # C++ specific cases for pic, static, wl, etc. 12573 if test "$GXX" = yes; then 12574 lt_prog_compiler_wl_CXX='-Wl,' 12575 lt_prog_compiler_static_CXX='-static' 12576 12577 case $host_os in 12578 aix*) 12579 # All AIX code is PIC. 12580 if test "$host_cpu" = ia64; then 12581 # AIX 5 now supports IA64 processor 12582 lt_prog_compiler_static_CXX='-Bstatic' 12583 fi 12584 ;; 12585 amigaos*) 12586 # FIXME: we need at least 68020 code to build shared libraries, but 12587 # adding the `-m68020' flag to GCC prevents building anything better, 12588 # like `-m68040'. 12589 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12590 ;; 12591 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12592 # PIC is the default for these OSes. 12593 ;; 12594 mingw* | cygwin* | os2* | pw32*) 12595 # This hack is so that the source file can tell whether it is being 12596 # built for inclusion in a dll (and should export symbols for example). 12597 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12598 # (--disable-auto-import) libraries 12599 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12600 ;; 12601 darwin* | rhapsody*) 12602 # PIC is the default on this platform 12603 # Common symbols not allowed in MH_DYLIB files 12604 lt_prog_compiler_pic_CXX='-fno-common' 12605 ;; 12606 *djgpp*) 12607 # DJGPP does not support shared libraries at all 12608 lt_prog_compiler_pic_CXX= 12609 ;; 12610 interix[3-9]*) 12611 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12612 # Instead, we relocate shared libraries at runtime. 12613 ;; 12614 sysv4*MP*) 12615 if test -d /usr/nec; then 12616 lt_prog_compiler_pic_CXX=-Kconform_pic 12617 fi 12618 ;; 12619 hpux*) 12620 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12621 # not for PA HP-UX. 12622 case $host_cpu in 12623 hppa*64*|ia64*) 12624 ;; 12625 *) 12626 lt_prog_compiler_pic_CXX='-fPIC' 12627 ;; 12628 esac 12629 ;; 12630 *) 12631 lt_prog_compiler_pic_CXX='-fPIC' 12632 ;; 12633 esac 12634 else 12635 case $host_os in 12636 aix[4-9]*) 12637 # All AIX code is PIC. 12638 if test "$host_cpu" = ia64; then 12639 # AIX 5 now supports IA64 processor 12640 lt_prog_compiler_static_CXX='-Bstatic' 12641 else 12642 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12643 fi 12644 ;; 12645 chorus*) 12646 case $cc_basename in 12647 cxch68*) 12648 # Green Hills C++ Compiler 12649 # _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" 12650 ;; 12651 esac 12652 ;; 12653 darwin*) 12654 # PIC is the default on this platform 12655 # Common symbols not allowed in MH_DYLIB files 12656 case $cc_basename in 12657 xlc*) 12658 lt_prog_compiler_pic_CXX='-qnocommon' 12659 lt_prog_compiler_wl_CXX='-Wl,' 12660 ;; 12661 esac 12662 ;; 12663 dgux*) 12664 case $cc_basename in 12665 ec++*) 12666 lt_prog_compiler_pic_CXX='-KPIC' 12667 ;; 12668 ghcx*) 12669 # Green Hills C++ Compiler 12670 lt_prog_compiler_pic_CXX='-pic' 12671 ;; 12672 *) 12673 ;; 12674 esac 12675 ;; 12676 freebsd* | dragonfly*) 12677 # FreeBSD uses GNU C++ 12678 ;; 12679 hpux9* | hpux10* | hpux11*) 12680 case $cc_basename in 12681 CC*) 12682 lt_prog_compiler_wl_CXX='-Wl,' 12683 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12684 if test "$host_cpu" != ia64; then 12685 lt_prog_compiler_pic_CXX='+Z' 12686 fi 12687 ;; 12688 aCC*) 12689 lt_prog_compiler_wl_CXX='-Wl,' 12690 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12691 case $host_cpu in 12692 hppa*64*|ia64*) 12693 # +Z the default 12694 ;; 12695 *) 12696 lt_prog_compiler_pic_CXX='+Z' 12697 ;; 12698 esac 12699 ;; 12700 *) 12701 ;; 12702 esac 12703 ;; 12704 interix*) 12705 # This is c89, which is MS Visual C++ (no shared libs) 12706 # Anyone wants to do a port? 12707 ;; 12708 irix5* | irix6* | nonstopux*) 12709 case $cc_basename in 12710 CC*) 12711 lt_prog_compiler_wl_CXX='-Wl,' 12712 lt_prog_compiler_static_CXX='-non_shared' 12713 # CC pic flag -KPIC is the default. 12714 ;; 12715 *) 12716 ;; 12717 esac 12718 ;; 12719 linux* | k*bsd*-gnu) 12720 case $cc_basename in 12721 KCC*) 12722 # KAI C++ Compiler 12723 lt_prog_compiler_wl_CXX='--backend -Wl,' 12724 lt_prog_compiler_pic_CXX='-fPIC' 12725 ;; 12726 icpc* | ecpc*) 12727 # Intel C++ 12728 lt_prog_compiler_wl_CXX='-Wl,' 12729 lt_prog_compiler_pic_CXX='-KPIC' 12730 lt_prog_compiler_static_CXX='-static' 12731 ;; 12732 pgCC* | pgcpp*) 12733 # Portland Group C++ compiler. 12734 lt_prog_compiler_wl_CXX='-Wl,' 12735 lt_prog_compiler_pic_CXX='-fpic' 12736 lt_prog_compiler_static_CXX='-Bstatic' 12737 ;; 12738 cxx*) 12739 # Compaq C++ 12740 # Make sure the PIC flag is empty. It appears that all Alpha 12741 # Linux and Compaq Tru64 Unix objects are PIC. 12742 lt_prog_compiler_pic_CXX= 12743 lt_prog_compiler_static_CXX='-non_shared' 12744 ;; 12745 *) 12746 case `$CC -V 2>&1 | sed 5q` in 12747 *Sun\ C*) 12748 # Sun C++ 5.9 12749 lt_prog_compiler_pic_CXX='-KPIC' 12750 lt_prog_compiler_static_CXX='-Bstatic' 12751 lt_prog_compiler_wl_CXX='-Qoption ld ' 12752 ;; 12753 esac 12754 ;; 12755 esac 12756 ;; 12757 lynxos*) 12758 ;; 12759 m88k*) 12760 ;; 12761 mvs*) 12762 case $cc_basename in 12763 cxx*) 12764 lt_prog_compiler_pic_CXX='-W c,exportall' 12765 ;; 12766 *) 12767 ;; 12768 esac 12769 ;; 12770 netbsd*) 12771 ;; 12772 osf3* | osf4* | osf5*) 12773 case $cc_basename in 12774 KCC*) 12775 lt_prog_compiler_wl_CXX='--backend -Wl,' 12776 ;; 12777 RCC*) 12778 # Rational C++ 2.4.1 12779 lt_prog_compiler_pic_CXX='-pic' 12780 ;; 12781 cxx*) 12782 # Digital/Compaq C++ 12783 lt_prog_compiler_wl_CXX='-Wl,' 12784 # Make sure the PIC flag is empty. It appears that all Alpha 12785 # Linux and Compaq Tru64 Unix objects are PIC. 12786 lt_prog_compiler_pic_CXX= 12787 lt_prog_compiler_static_CXX='-non_shared' 12788 ;; 12789 *) 12790 ;; 12791 esac 12792 ;; 12793 psos*) 12794 ;; 12795 solaris*) 12796 case $cc_basename in 12797 CC*) 12798 # Sun C++ 4.2, 5.x and Centerline C++ 12799 lt_prog_compiler_pic_CXX='-KPIC' 12800 lt_prog_compiler_static_CXX='-Bstatic' 12801 lt_prog_compiler_wl_CXX='-Qoption ld ' 12802 ;; 12803 gcx*) 12804 # Green Hills C++ Compiler 12805 lt_prog_compiler_pic_CXX='-PIC' 12806 ;; 12807 *) 12808 ;; 12809 esac 12810 ;; 12811 sunos4*) 12812 case $cc_basename in 12813 CC*) 12814 # Sun C++ 4.x 12815 lt_prog_compiler_pic_CXX='-pic' 12816 lt_prog_compiler_static_CXX='-Bstatic' 12817 ;; 12818 lcc*) 12819 # Lucid 12820 lt_prog_compiler_pic_CXX='-pic' 12821 ;; 12822 *) 12823 ;; 12824 esac 12825 ;; 12826 tandem*) 12827 case $cc_basename in 12828 NCC*) 12829 # NonStop-UX NCC 3.20 12830 lt_prog_compiler_pic_CXX='-KPIC' 12831 ;; 12832 *) 12833 ;; 12834 esac 12835 ;; 12836 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12837 case $cc_basename in 12838 CC*) 12839 lt_prog_compiler_wl_CXX='-Wl,' 12840 lt_prog_compiler_pic_CXX='-KPIC' 12841 lt_prog_compiler_static_CXX='-Bstatic' 12842 ;; 12843 esac 12844 ;; 12845 vxworks*) 12846 ;; 12847 *) 12848 lt_prog_compiler_can_build_shared_CXX=no 12849 ;; 12850 esac 12851 fi 12852 12853{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12854$as_echo "$lt_prog_compiler_pic_CXX" >&6; } 12855 12856# 12857# Check to make sure the PIC flag actually works. 12858# 12859if test -n "$lt_prog_compiler_pic_CXX"; then 12860 12861{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12862$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 12863if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then 12864 $as_echo_n "(cached) " >&6 12865else 12866 lt_cv_prog_compiler_pic_works_CXX=no 12867 ac_outfile=conftest.$ac_objext 12868 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12869 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12870 # Insert the option either (1) after the last *FLAGS variable, or 12871 # (2) before a word containing "conftest.", or (3) at the end. 12872 # Note that $ac_compile itself does not contain backslashes and begins 12873 # with a dollar sign (not a hyphen), so the echo should work correctly. 12874 # The option is referenced via a variable to avoid confusing sed. 12875 lt_compile=`echo "$ac_compile" | $SED \ 12876 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12877 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12878 -e 's:$: $lt_compiler_flag:'` 12879 (eval echo "\"\$as_me:12879: $lt_compile\"" >&5) 12880 (eval "$lt_compile" 2>conftest.err) 12881 ac_status=$? 12882 cat conftest.err >&5 12883 echo "$as_me:12883: \$? = $ac_status" >&5 12884 if (exit $ac_status) && test -s "$ac_outfile"; then 12885 # The compiler can only warn and ignore the option if not recognized 12886 # So say no if there are warnings other than the usual output. 12887 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12888 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12889 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12890 lt_cv_prog_compiler_pic_works_CXX=yes 12891 fi 12892 fi 12893 $rm conftest* 12894 12895fi 12896{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 12897$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 12898 12899if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 12900 case $lt_prog_compiler_pic_CXX in 12901 "" | " "*) ;; 12902 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12903 esac 12904else 12905 lt_prog_compiler_pic_CXX= 12906 lt_prog_compiler_can_build_shared_CXX=no 12907fi 12908 12909fi 12910case $host_os in 12911 # For platforms which do not support PIC, -DPIC is meaningless: 12912 *djgpp*) 12913 lt_prog_compiler_pic_CXX= 12914 ;; 12915 *) 12916 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12917 ;; 12918esac 12919 12920# 12921# Check to make sure the static flag actually works. 12922# 12923wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12924{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12925$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 12926if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then 12927 $as_echo_n "(cached) " >&6 12928else 12929 lt_cv_prog_compiler_static_works_CXX=no 12930 save_LDFLAGS="$LDFLAGS" 12931 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12932 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12933 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12934 # The linker can only warn and ignore the option if not recognized 12935 # So say no if there are warnings 12936 if test -s conftest.err; then 12937 # Append any errors to the config.log. 12938 cat conftest.err 1>&5 12939 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12940 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12941 if diff conftest.exp conftest.er2 >/dev/null; then 12942 lt_cv_prog_compiler_static_works_CXX=yes 12943 fi 12944 else 12945 lt_cv_prog_compiler_static_works_CXX=yes 12946 fi 12947 fi 12948 $rm -r conftest* 12949 LDFLAGS="$save_LDFLAGS" 12950 12951fi 12952{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5 12953$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 12954 12955if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 12956 : 12957else 12958 lt_prog_compiler_static_CXX= 12959fi 12960 12961 12962{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12963$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 12964if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12965 $as_echo_n "(cached) " >&6 12966else 12967 lt_cv_prog_compiler_c_o_CXX=no 12968 $rm -r conftest 2>/dev/null 12969 mkdir conftest 12970 cd conftest 12971 mkdir out 12972 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12973 12974 lt_compiler_flag="-o out/conftest2.$ac_objext" 12975 # Insert the option either (1) after the last *FLAGS variable, or 12976 # (2) before a word containing "conftest.", or (3) at the end. 12977 # Note that $ac_compile itself does not contain backslashes and begins 12978 # with a dollar sign (not a hyphen), so the echo should work correctly. 12979 lt_compile=`echo "$ac_compile" | $SED \ 12980 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12981 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12982 -e 's:$: $lt_compiler_flag:'` 12983 (eval echo "\"\$as_me:12983: $lt_compile\"" >&5) 12984 (eval "$lt_compile" 2>out/conftest.err) 12985 ac_status=$? 12986 cat out/conftest.err >&5 12987 echo "$as_me:12987: \$? = $ac_status" >&5 12988 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12989 then 12990 # The compiler can only warn and ignore the option if not recognized 12991 # So say no if there are warnings 12992 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12993 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12994 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12995 lt_cv_prog_compiler_c_o_CXX=yes 12996 fi 12997 fi 12998 chmod u+w . 2>&5 12999 $rm conftest* 13000 # SGI C++ compiler will create directory out/ii_files/ for 13001 # template instantiation 13002 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13003 $rm out/* && rmdir out 13004 cd .. 13005 rmdir conftest 13006 $rm conftest* 13007 13008fi 13009{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13010$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 13011 13012 13013hard_links="nottested" 13014if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 13015 # do not overwrite the value of need_locks provided by the user 13016 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13017$as_echo_n "checking if we can lock with hard links... " >&6; } 13018 hard_links=yes 13019 $rm conftest* 13020 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13021 touch conftest.a 13022 ln conftest.a conftest.b 2>&5 || hard_links=no 13023 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13024 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 13025$as_echo "$hard_links" >&6; } 13026 if test "$hard_links" = no; then 13027 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13028$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13029 need_locks=warn 13030 fi 13031else 13032 need_locks=no 13033fi 13034 13035{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13036$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13037 13038 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13039 case $host_os in 13040 aix[4-9]*) 13041 # If we're using GNU nm, then we don't want the "-C" option. 13042 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13043 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13044 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' 13045 else 13046 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' 13047 fi 13048 ;; 13049 pw32*) 13050 export_symbols_cmds_CXX="$ltdll_cmds" 13051 ;; 13052 cygwin* | mingw*) 13053 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' 13054 ;; 13055 *) 13056 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13057 ;; 13058 esac 13059 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 13060 13061{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 13062$as_echo "$ld_shlibs_CXX" >&6; } 13063test "$ld_shlibs_CXX" = no && can_build_shared=no 13064 13065# 13066# Do we need to explicitly link libc? 13067# 13068case "x$archive_cmds_need_lc_CXX" in 13069x|xyes) 13070 # Assume -lc should be added 13071 archive_cmds_need_lc_CXX=yes 13072 13073 if test "$enable_shared" = yes && test "$GCC" = yes; then 13074 case $archive_cmds_CXX in 13075 *'~'*) 13076 # FIXME: we may have to deal with multi-command sequences. 13077 ;; 13078 '$CC '*) 13079 # Test whether the compiler implicitly links with -lc since on some 13080 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13081 # to ld, don't add -lc before -lgcc. 13082 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 13083$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 13084 $rm conftest* 13085 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13086 13087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13088 (eval $ac_compile) 2>&5 13089 ac_status=$? 13090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13091 (exit $ac_status); } 2>conftest.err; then 13092 soname=conftest 13093 lib=conftest 13094 libobjs=conftest.$ac_objext 13095 deplibs= 13096 wl=$lt_prog_compiler_wl_CXX 13097 pic_flag=$lt_prog_compiler_pic_CXX 13098 compiler_flags=-v 13099 linker_flags=-v 13100 verstring= 13101 output_objdir=. 13102 libname=conftest 13103 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 13104 allow_undefined_flag_CXX= 13105 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 13106 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 13107 ac_status=$? 13108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13109 (exit $ac_status); } 13110 then 13111 archive_cmds_need_lc_CXX=no 13112 else 13113 archive_cmds_need_lc_CXX=yes 13114 fi 13115 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 13116 else 13117 cat conftest.err 1>&5 13118 fi 13119 $rm conftest* 13120 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 13121$as_echo "$archive_cmds_need_lc_CXX" >&6; } 13122 ;; 13123 esac 13124 fi 13125 ;; 13126esac 13127 13128{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 13129$as_echo_n "checking dynamic linker characteristics... " >&6; } 13130library_names_spec= 13131libname_spec='lib$name' 13132soname_spec= 13133shrext_cmds=".so" 13134postinstall_cmds= 13135postuninstall_cmds= 13136finish_cmds= 13137finish_eval= 13138shlibpath_var= 13139shlibpath_overrides_runpath=unknown 13140version_type=none 13141dynamic_linker="$host_os ld.so" 13142sys_lib_dlsearch_path_spec="/lib /usr/lib" 13143 13144need_lib_prefix=unknown 13145hardcode_into_libs=no 13146 13147# when you set need_version to no, make sure it does not cause -set_version 13148# flags to be left without arguments 13149need_version=unknown 13150 13151case $host_os in 13152aix3*) 13153 version_type=linux 13154 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13155 shlibpath_var=LIBPATH 13156 13157 # AIX 3 has no versioning support, so we append a major version to the name. 13158 soname_spec='${libname}${release}${shared_ext}$major' 13159 ;; 13160 13161aix[4-9]*) 13162 version_type=linux 13163 need_lib_prefix=no 13164 need_version=no 13165 hardcode_into_libs=yes 13166 if test "$host_cpu" = ia64; then 13167 # AIX 5 supports IA64 13168 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13169 shlibpath_var=LD_LIBRARY_PATH 13170 else 13171 # With GCC up to 2.95.x, collect2 would create an import file 13172 # for dependence libraries. The import file would start with 13173 # the line `#! .'. This would cause the generated library to 13174 # depend on `.', always an invalid library. This was fixed in 13175 # development snapshots of GCC prior to 3.0. 13176 case $host_os in 13177 aix4 | aix4.[01] | aix4.[01].*) 13178 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13179 echo ' yes ' 13180 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13181 : 13182 else 13183 can_build_shared=no 13184 fi 13185 ;; 13186 esac 13187 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13188 # soname into executable. Probably we can add versioning support to 13189 # collect2, so additional links can be useful in future. 13190 if test "$aix_use_runtimelinking" = yes; then 13191 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13192 # instead of lib<name>.a to let people know that these are not 13193 # typical AIX shared libraries. 13194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13195 else 13196 # We preserve .a as extension for shared libraries through AIX4.2 13197 # and later when we are not doing run time linking. 13198 library_names_spec='${libname}${release}.a $libname.a' 13199 soname_spec='${libname}${release}${shared_ext}$major' 13200 fi 13201 shlibpath_var=LIBPATH 13202 fi 13203 ;; 13204 13205amigaos*) 13206 library_names_spec='$libname.ixlibrary $libname.a' 13207 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13208 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' 13209 ;; 13210 13211beos*) 13212 library_names_spec='${libname}${shared_ext}' 13213 dynamic_linker="$host_os ld.so" 13214 shlibpath_var=LIBRARY_PATH 13215 ;; 13216 13217bsdi[45]*) 13218 version_type=linux 13219 need_version=no 13220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13221 soname_spec='${libname}${release}${shared_ext}$major' 13222 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13223 shlibpath_var=LD_LIBRARY_PATH 13224 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13225 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13226 # the default ld.so.conf also contains /usr/contrib/lib and 13227 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13228 # libtool to hard-code these into programs 13229 ;; 13230 13231cygwin* | mingw* | pw32*) 13232 version_type=windows 13233 shrext_cmds=".dll" 13234 need_version=no 13235 need_lib_prefix=no 13236 13237 case $GCC,$host_os in 13238 yes,cygwin* | yes,mingw* | yes,pw32*) 13239 library_names_spec='$libname.dll.a' 13240 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13241 postinstall_cmds='base_file=`basename \${file}`~ 13242 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13243 dldir=$destdir/`dirname \$dlpath`~ 13244 test -d \$dldir || mkdir -p \$dldir~ 13245 $install_prog $dir/$dlname \$dldir/$dlname~ 13246 chmod a+x \$dldir/$dlname' 13247 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13248 dlpath=$dir/\$dldll~ 13249 $rm \$dlpath' 13250 shlibpath_overrides_runpath=yes 13251 13252 case $host_os in 13253 cygwin*) 13254 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13255 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13256 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13257 ;; 13258 mingw*) 13259 # MinGW DLLs use traditional 'lib' prefix 13260 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13261 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13262 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13263 # It is most probably a Windows format PATH printed by 13264 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13265 # path with ; separators, and with drive letters. We can handle the 13266 # drive letters (cygwin fileutils understands them), so leave them, 13267 # especially as we might pass files found there to a mingw objdump, 13268 # which wouldn't understand a cygwinified path. Ahh. 13269 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13270 else 13271 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13272 fi 13273 ;; 13274 pw32*) 13275 # pw32 DLLs use 'pw' prefix rather than 'lib' 13276 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13277 ;; 13278 esac 13279 ;; 13280 13281 *) 13282 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13283 ;; 13284 esac 13285 dynamic_linker='Win32 ld.exe' 13286 # FIXME: first we should search . and the directory the executable is in 13287 shlibpath_var=PATH 13288 ;; 13289 13290darwin* | rhapsody*) 13291 dynamic_linker="$host_os dyld" 13292 version_type=darwin 13293 need_lib_prefix=no 13294 need_version=no 13295 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13296 soname_spec='${libname}${release}${major}$shared_ext' 13297 shlibpath_overrides_runpath=yes 13298 shlibpath_var=DYLD_LIBRARY_PATH 13299 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13300 13301 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13302 ;; 13303 13304dgux*) 13305 version_type=linux 13306 need_lib_prefix=no 13307 need_version=no 13308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13309 soname_spec='${libname}${release}${shared_ext}$major' 13310 shlibpath_var=LD_LIBRARY_PATH 13311 ;; 13312 13313freebsd1*) 13314 dynamic_linker=no 13315 ;; 13316 13317freebsd* | dragonfly*) 13318 # DragonFly does not have aout. When/if they implement a new 13319 # versioning mechanism, adjust this. 13320 if test -x /usr/bin/objformat; then 13321 objformat=`/usr/bin/objformat` 13322 else 13323 case $host_os in 13324 freebsd[123]*) objformat=aout ;; 13325 *) objformat=elf ;; 13326 esac 13327 fi 13328 version_type=freebsd-$objformat 13329 case $version_type in 13330 freebsd-elf*) 13331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13332 need_version=no 13333 need_lib_prefix=no 13334 ;; 13335 freebsd-*) 13336 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13337 need_version=yes 13338 ;; 13339 esac 13340 shlibpath_var=LD_LIBRARY_PATH 13341 case $host_os in 13342 freebsd2*) 13343 shlibpath_overrides_runpath=yes 13344 ;; 13345 freebsd3.[01]* | freebsdelf3.[01]*) 13346 shlibpath_overrides_runpath=yes 13347 hardcode_into_libs=yes 13348 ;; 13349 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13350 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13351 shlibpath_overrides_runpath=no 13352 hardcode_into_libs=yes 13353 ;; 13354 *) # from 4.6 on, and DragonFly 13355 shlibpath_overrides_runpath=yes 13356 hardcode_into_libs=yes 13357 ;; 13358 esac 13359 ;; 13360 13361gnu*) 13362 version_type=linux 13363 need_lib_prefix=no 13364 need_version=no 13365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13366 soname_spec='${libname}${release}${shared_ext}$major' 13367 shlibpath_var=LD_LIBRARY_PATH 13368 hardcode_into_libs=yes 13369 ;; 13370 13371hpux9* | hpux10* | hpux11*) 13372 # Give a soname corresponding to the major version so that dld.sl refuses to 13373 # link against other versions. 13374 version_type=sunos 13375 need_lib_prefix=no 13376 need_version=no 13377 case $host_cpu in 13378 ia64*) 13379 shrext_cmds='.so' 13380 hardcode_into_libs=yes 13381 dynamic_linker="$host_os dld.so" 13382 shlibpath_var=LD_LIBRARY_PATH 13383 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13385 soname_spec='${libname}${release}${shared_ext}$major' 13386 if test "X$HPUX_IA64_MODE" = X32; then 13387 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13388 else 13389 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13390 fi 13391 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13392 ;; 13393 hppa*64*) 13394 shrext_cmds='.sl' 13395 hardcode_into_libs=yes 13396 dynamic_linker="$host_os dld.sl" 13397 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13398 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13400 soname_spec='${libname}${release}${shared_ext}$major' 13401 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13402 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13403 ;; 13404 *) 13405 shrext_cmds='.sl' 13406 dynamic_linker="$host_os dld.sl" 13407 shlibpath_var=SHLIB_PATH 13408 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13410 soname_spec='${libname}${release}${shared_ext}$major' 13411 ;; 13412 esac 13413 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13414 postinstall_cmds='chmod 555 $lib' 13415 ;; 13416 13417interix[3-9]*) 13418 version_type=linux 13419 need_lib_prefix=no 13420 need_version=no 13421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13422 soname_spec='${libname}${release}${shared_ext}$major' 13423 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13424 shlibpath_var=LD_LIBRARY_PATH 13425 shlibpath_overrides_runpath=no 13426 hardcode_into_libs=yes 13427 ;; 13428 13429irix5* | irix6* | nonstopux*) 13430 case $host_os in 13431 nonstopux*) version_type=nonstopux ;; 13432 *) 13433 if test "$lt_cv_prog_gnu_ld" = yes; then 13434 version_type=linux 13435 else 13436 version_type=irix 13437 fi ;; 13438 esac 13439 need_lib_prefix=no 13440 need_version=no 13441 soname_spec='${libname}${release}${shared_ext}$major' 13442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13443 case $host_os in 13444 irix5* | nonstopux*) 13445 libsuff= shlibsuff= 13446 ;; 13447 *) 13448 case $LD in # libtool.m4 will add one of these switches to LD 13449 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13450 libsuff= shlibsuff= libmagic=32-bit;; 13451 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13452 libsuff=32 shlibsuff=N32 libmagic=N32;; 13453 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13454 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13455 *) libsuff= shlibsuff= libmagic=never-match;; 13456 esac 13457 ;; 13458 esac 13459 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13460 shlibpath_overrides_runpath=no 13461 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13462 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13463 hardcode_into_libs=yes 13464 ;; 13465 13466# No shared lib support for Linux oldld, aout, or coff. 13467linux*oldld* | linux*aout* | linux*coff*) 13468 dynamic_linker=no 13469 ;; 13470 13471# This must be Linux ELF. 13472linux* | k*bsd*-gnu) 13473 version_type=linux 13474 need_lib_prefix=no 13475 need_version=no 13476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13477 soname_spec='${libname}${release}${shared_ext}$major' 13478 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13479 shlibpath_var=LD_LIBRARY_PATH 13480 shlibpath_overrides_runpath=no 13481 # This implies no fast_install, which is unacceptable. 13482 # Some rework will be needed to allow for fast_install 13483 # before this can be enabled. 13484 hardcode_into_libs=yes 13485 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13486 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13487 13488 # Append ld.so.conf contents to the search path 13489 if test -f /etc/ld.so.conf; then 13490 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' ' '` 13491 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 13492 fi 13493 13494 # We used to test for /lib/ld.so.1 and disable shared libraries on 13495 # powerpc, because MkLinux only supported shared libraries with the 13496 # GNU dynamic linker. Since this was broken with cross compilers, 13497 # most powerpc-linux boxes support dynamic linking these days and 13498 # people can always --disable-shared, the test was removed, and we 13499 # assume the GNU/Linux dynamic linker is in use. 13500 dynamic_linker='GNU/Linux ld.so' 13501 ;; 13502 13503netbsd*) 13504 version_type=sunos 13505 need_lib_prefix=no 13506 need_version=no 13507 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13509 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13510 dynamic_linker='NetBSD (a.out) ld.so' 13511 else 13512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13513 soname_spec='${libname}${release}${shared_ext}$major' 13514 dynamic_linker='NetBSD ld.elf_so' 13515 fi 13516 shlibpath_var=LD_LIBRARY_PATH 13517 shlibpath_overrides_runpath=yes 13518 hardcode_into_libs=yes 13519 ;; 13520 13521newsos6) 13522 version_type=linux 13523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13524 shlibpath_var=LD_LIBRARY_PATH 13525 shlibpath_overrides_runpath=yes 13526 ;; 13527 13528nto-qnx*) 13529 version_type=linux 13530 need_lib_prefix=no 13531 need_version=no 13532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13533 soname_spec='${libname}${release}${shared_ext}$major' 13534 shlibpath_var=LD_LIBRARY_PATH 13535 shlibpath_overrides_runpath=yes 13536 ;; 13537 13538openbsd*) 13539 version_type=sunos 13540 sys_lib_dlsearch_path_spec="/usr/lib" 13541 need_lib_prefix=no 13542 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13543 case $host_os in 13544 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13545 *) need_version=no ;; 13546 esac 13547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13548 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13549 shlibpath_var=LD_LIBRARY_PATH 13550 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13551 case $host_os in 13552 openbsd2.[89] | openbsd2.[89].*) 13553 shlibpath_overrides_runpath=no 13554 ;; 13555 *) 13556 shlibpath_overrides_runpath=yes 13557 ;; 13558 esac 13559 else 13560 shlibpath_overrides_runpath=yes 13561 fi 13562 ;; 13563 13564os2*) 13565 libname_spec='$name' 13566 shrext_cmds=".dll" 13567 need_lib_prefix=no 13568 library_names_spec='$libname${shared_ext} $libname.a' 13569 dynamic_linker='OS/2 ld.exe' 13570 shlibpath_var=LIBPATH 13571 ;; 13572 13573osf3* | osf4* | osf5*) 13574 version_type=osf 13575 need_lib_prefix=no 13576 need_version=no 13577 soname_spec='${libname}${release}${shared_ext}$major' 13578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13579 shlibpath_var=LD_LIBRARY_PATH 13580 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13581 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13582 ;; 13583 13584rdos*) 13585 dynamic_linker=no 13586 ;; 13587 13588solaris*) 13589 version_type=linux 13590 need_lib_prefix=no 13591 need_version=no 13592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13593 soname_spec='${libname}${release}${shared_ext}$major' 13594 shlibpath_var=LD_LIBRARY_PATH 13595 shlibpath_overrides_runpath=yes 13596 hardcode_into_libs=yes 13597 # ldd complains unless libraries are executable 13598 postinstall_cmds='chmod +x $lib' 13599 ;; 13600 13601sunos4*) 13602 version_type=sunos 13603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13604 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13605 shlibpath_var=LD_LIBRARY_PATH 13606 shlibpath_overrides_runpath=yes 13607 if test "$with_gnu_ld" = yes; then 13608 need_lib_prefix=no 13609 fi 13610 need_version=yes 13611 ;; 13612 13613sysv4 | sysv4.3*) 13614 version_type=linux 13615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13616 soname_spec='${libname}${release}${shared_ext}$major' 13617 shlibpath_var=LD_LIBRARY_PATH 13618 case $host_vendor in 13619 sni) 13620 shlibpath_overrides_runpath=no 13621 need_lib_prefix=no 13622 export_dynamic_flag_spec='${wl}-Blargedynsym' 13623 runpath_var=LD_RUN_PATH 13624 ;; 13625 siemens) 13626 need_lib_prefix=no 13627 ;; 13628 motorola) 13629 need_lib_prefix=no 13630 need_version=no 13631 shlibpath_overrides_runpath=no 13632 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13633 ;; 13634 esac 13635 ;; 13636 13637sysv4*MP*) 13638 if test -d /usr/nec ;then 13639 version_type=linux 13640 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13641 soname_spec='$libname${shared_ext}.$major' 13642 shlibpath_var=LD_LIBRARY_PATH 13643 fi 13644 ;; 13645 13646sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13647 version_type=freebsd-elf 13648 need_lib_prefix=no 13649 need_version=no 13650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13651 soname_spec='${libname}${release}${shared_ext}$major' 13652 shlibpath_var=LD_LIBRARY_PATH 13653 hardcode_into_libs=yes 13654 if test "$with_gnu_ld" = yes; then 13655 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13656 shlibpath_overrides_runpath=no 13657 else 13658 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13659 shlibpath_overrides_runpath=yes 13660 case $host_os in 13661 sco3.2v5*) 13662 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13663 ;; 13664 esac 13665 fi 13666 sys_lib_dlsearch_path_spec='/usr/lib' 13667 ;; 13668 13669uts4*) 13670 version_type=linux 13671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13672 soname_spec='${libname}${release}${shared_ext}$major' 13673 shlibpath_var=LD_LIBRARY_PATH 13674 ;; 13675 13676*) 13677 dynamic_linker=no 13678 ;; 13679esac 13680{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13681$as_echo "$dynamic_linker" >&6; } 13682test "$dynamic_linker" = no && can_build_shared=no 13683 13684if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 13685 $as_echo_n "(cached) " >&6 13686else 13687 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 13688fi 13689 13690sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 13691if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 13692 $as_echo_n "(cached) " >&6 13693else 13694 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 13695fi 13696 13697sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 13698 13699variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13700if test "$GCC" = yes; then 13701 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13702fi 13703 13704{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13705$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13706hardcode_action_CXX= 13707if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13708 test -n "$runpath_var_CXX" || \ 13709 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13710 13711 # We can hardcode non-existant directories. 13712 if test "$hardcode_direct_CXX" != no && 13713 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13714 # have to relink, otherwise we might link with an installed library 13715 # when we should be linking with a yet-to-be-installed one 13716 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13717 test "$hardcode_minus_L_CXX" != no; then 13718 # Linking always hardcodes the temporary library directory. 13719 hardcode_action_CXX=relink 13720 else 13721 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13722 hardcode_action_CXX=immediate 13723 fi 13724else 13725 # We cannot hardcode anything, or else we can only hardcode existing 13726 # directories. 13727 hardcode_action_CXX=unsupported 13728fi 13729{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13730$as_echo "$hardcode_action_CXX" >&6; } 13731 13732if test "$hardcode_action_CXX" = relink; then 13733 # Fast installation is not supported 13734 enable_fast_install=no 13735elif test "$shlibpath_overrides_runpath" = yes || 13736 test "$enable_shared" = no; then 13737 # Fast installation is not necessary 13738 enable_fast_install=needless 13739fi 13740 13741 13742# The else clause should only fire when bootstrapping the 13743# libtool distribution, otherwise you forgot to ship ltmain.sh 13744# with your package, and you will get complaints that there are 13745# no rules to generate ltmain.sh. 13746if test -f "$ltmain"; then 13747 # See if we are running on zsh, and set the options which allow our commands through 13748 # without removal of \ escapes. 13749 if test -n "${ZSH_VERSION+set}" ; then 13750 setopt NO_GLOB_SUBST 13751 fi 13752 # Now quote all the things that may contain metacharacters while being 13753 # careful not to overquote the AC_SUBSTed values. We take copies of the 13754 # variables and quote the copies for generation of the libtool script. 13755 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13756 SED SHELL STRIP \ 13757 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13758 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13759 deplibs_check_method reload_flag reload_cmds need_locks \ 13760 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13761 lt_cv_sys_global_symbol_to_c_name_address \ 13762 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13763 old_postinstall_cmds old_postuninstall_cmds \ 13764 compiler_CXX \ 13765 CC_CXX \ 13766 LD_CXX \ 13767 lt_prog_compiler_wl_CXX \ 13768 lt_prog_compiler_pic_CXX \ 13769 lt_prog_compiler_static_CXX \ 13770 lt_prog_compiler_no_builtin_flag_CXX \ 13771 export_dynamic_flag_spec_CXX \ 13772 thread_safe_flag_spec_CXX \ 13773 whole_archive_flag_spec_CXX \ 13774 enable_shared_with_static_runtimes_CXX \ 13775 old_archive_cmds_CXX \ 13776 old_archive_from_new_cmds_CXX \ 13777 predep_objects_CXX \ 13778 postdep_objects_CXX \ 13779 predeps_CXX \ 13780 postdeps_CXX \ 13781 compiler_lib_search_path_CXX \ 13782 compiler_lib_search_dirs_CXX \ 13783 archive_cmds_CXX \ 13784 archive_expsym_cmds_CXX \ 13785 postinstall_cmds_CXX \ 13786 postuninstall_cmds_CXX \ 13787 old_archive_from_expsyms_cmds_CXX \ 13788 allow_undefined_flag_CXX \ 13789 no_undefined_flag_CXX \ 13790 export_symbols_cmds_CXX \ 13791 hardcode_libdir_flag_spec_CXX \ 13792 hardcode_libdir_flag_spec_ld_CXX \ 13793 hardcode_libdir_separator_CXX \ 13794 hardcode_automatic_CXX \ 13795 module_cmds_CXX \ 13796 module_expsym_cmds_CXX \ 13797 lt_cv_prog_compiler_c_o_CXX \ 13798 fix_srcfile_path_CXX \ 13799 exclude_expsyms_CXX \ 13800 include_expsyms_CXX; do 13801 13802 case $var in 13803 old_archive_cmds_CXX | \ 13804 old_archive_from_new_cmds_CXX | \ 13805 archive_cmds_CXX | \ 13806 archive_expsym_cmds_CXX | \ 13807 module_cmds_CXX | \ 13808 module_expsym_cmds_CXX | \ 13809 old_archive_from_expsyms_cmds_CXX | \ 13810 export_symbols_cmds_CXX | \ 13811 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13812 postinstall_cmds | postuninstall_cmds | \ 13813 old_postinstall_cmds | old_postuninstall_cmds | \ 13814 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13815 # Double-quote double-evaled strings. 13816 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13817 ;; 13818 *) 13819 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13820 ;; 13821 esac 13822 done 13823 13824 case $lt_echo in 13825 *'\$0 --fallback-echo"') 13826 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13827 ;; 13828 esac 13829 13830cfgfile="$ofile" 13831 13832 cat <<__EOF__ >> "$cfgfile" 13833# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13834 13835# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13836 13837# Shell to use when invoking shell scripts. 13838SHELL=$lt_SHELL 13839 13840# Whether or not to build shared libraries. 13841build_libtool_libs=$enable_shared 13842 13843# Whether or not to build static libraries. 13844build_old_libs=$enable_static 13845 13846# Whether or not to add -lc for building shared libraries. 13847build_libtool_need_lc=$archive_cmds_need_lc_CXX 13848 13849# Whether or not to disallow shared libs when runtime libs are static 13850allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13851 13852# Whether or not to optimize for fast installation. 13853fast_install=$enable_fast_install 13854 13855# The host system. 13856host_alias=$host_alias 13857host=$host 13858host_os=$host_os 13859 13860# The build system. 13861build_alias=$build_alias 13862build=$build 13863build_os=$build_os 13864 13865# An echo program that does not interpret backslashes. 13866echo=$lt_echo 13867 13868# The archiver. 13869AR=$lt_AR 13870AR_FLAGS=$lt_AR_FLAGS 13871 13872# A C compiler. 13873LTCC=$lt_LTCC 13874 13875# LTCC compiler flags. 13876LTCFLAGS=$lt_LTCFLAGS 13877 13878# A language-specific compiler. 13879CC=$lt_compiler_CXX 13880 13881# Is the compiler the GNU C compiler? 13882with_gcc=$GCC_CXX 13883 13884# An ERE matcher. 13885EGREP=$lt_EGREP 13886 13887# The linker used to build libraries. 13888LD=$lt_LD_CXX 13889 13890# Whether we need hard or soft links. 13891LN_S=$lt_LN_S 13892 13893# A BSD-compatible nm program. 13894NM=$lt_NM 13895 13896# A symbol stripping program 13897STRIP=$lt_STRIP 13898 13899# Used to examine libraries when file_magic_cmd begins "file" 13900MAGIC_CMD=$MAGIC_CMD 13901 13902# Used on cygwin: DLL creation program. 13903DLLTOOL="$DLLTOOL" 13904 13905# Used on cygwin: object dumper. 13906OBJDUMP="$OBJDUMP" 13907 13908# Used on cygwin: assembler. 13909AS="$AS" 13910 13911# The name of the directory that contains temporary libtool files. 13912objdir=$objdir 13913 13914# How to create reloadable object files. 13915reload_flag=$lt_reload_flag 13916reload_cmds=$lt_reload_cmds 13917 13918# How to pass a linker flag through the compiler. 13919wl=$lt_lt_prog_compiler_wl_CXX 13920 13921# Object file suffix (normally "o"). 13922objext="$ac_objext" 13923 13924# Old archive suffix (normally "a"). 13925libext="$libext" 13926 13927# Shared library suffix (normally ".so"). 13928shrext_cmds='$shrext_cmds' 13929 13930# Executable file suffix (normally ""). 13931exeext="$exeext" 13932 13933# Additional compiler flags for building library objects. 13934pic_flag=$lt_lt_prog_compiler_pic_CXX 13935pic_mode=$pic_mode 13936 13937# What is the maximum length of a command? 13938max_cmd_len=$lt_cv_sys_max_cmd_len 13939 13940# Does compiler simultaneously support -c and -o options? 13941compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13942 13943# Must we lock files when doing compilation? 13944need_locks=$lt_need_locks 13945 13946# Do we need the lib prefix for modules? 13947need_lib_prefix=$need_lib_prefix 13948 13949# Do we need a version for libraries? 13950need_version=$need_version 13951 13952# Whether dlopen is supported. 13953dlopen_support=$enable_dlopen 13954 13955# Whether dlopen of programs is supported. 13956dlopen_self=$enable_dlopen_self 13957 13958# Whether dlopen of statically linked programs is supported. 13959dlopen_self_static=$enable_dlopen_self_static 13960 13961# Compiler flag to prevent dynamic linking. 13962link_static_flag=$lt_lt_prog_compiler_static_CXX 13963 13964# Compiler flag to turn off builtin functions. 13965no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13966 13967# Compiler flag to allow reflexive dlopens. 13968export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13969 13970# Compiler flag to generate shared objects directly from archives. 13971whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13972 13973# Compiler flag to generate thread-safe objects. 13974thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13975 13976# Library versioning type. 13977version_type=$version_type 13978 13979# Format of library name prefix. 13980libname_spec=$lt_libname_spec 13981 13982# List of archive names. First name is the real one, the rest are links. 13983# The last name is the one that the linker finds with -lNAME. 13984library_names_spec=$lt_library_names_spec 13985 13986# The coded name of the library, if different from the real name. 13987soname_spec=$lt_soname_spec 13988 13989# Commands used to build and install an old-style archive. 13990RANLIB=$lt_RANLIB 13991old_archive_cmds=$lt_old_archive_cmds_CXX 13992old_postinstall_cmds=$lt_old_postinstall_cmds 13993old_postuninstall_cmds=$lt_old_postuninstall_cmds 13994 13995# Create an old-style archive from a shared archive. 13996old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13997 13998# Create a temporary old-style archive to link instead of a shared archive. 13999old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 14000 14001# Commands used to build and install a shared archive. 14002archive_cmds=$lt_archive_cmds_CXX 14003archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 14004postinstall_cmds=$lt_postinstall_cmds 14005postuninstall_cmds=$lt_postuninstall_cmds 14006 14007# Commands used to build a loadable module (assumed same as above if empty) 14008module_cmds=$lt_module_cmds_CXX 14009module_expsym_cmds=$lt_module_expsym_cmds_CXX 14010 14011# Commands to strip libraries. 14012old_striplib=$lt_old_striplib 14013striplib=$lt_striplib 14014 14015# Dependencies to place before the objects being linked to create a 14016# shared library. 14017predep_objects=$lt_predep_objects_CXX 14018 14019# Dependencies to place after the objects being linked to create a 14020# shared library. 14021postdep_objects=$lt_postdep_objects_CXX 14022 14023# Dependencies to place before the objects being linked to create a 14024# shared library. 14025predeps=$lt_predeps_CXX 14026 14027# Dependencies to place after the objects being linked to create a 14028# shared library. 14029postdeps=$lt_postdeps_CXX 14030 14031# The directories searched by this compiler when creating a shared 14032# library 14033compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 14034 14035# The library search path used internally by the compiler when linking 14036# a shared library. 14037compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 14038 14039# Method to check whether dependent libraries are shared objects. 14040deplibs_check_method=$lt_deplibs_check_method 14041 14042# Command to use when deplibs_check_method == file_magic. 14043file_magic_cmd=$lt_file_magic_cmd 14044 14045# Flag that allows shared libraries with undefined symbols to be built. 14046allow_undefined_flag=$lt_allow_undefined_flag_CXX 14047 14048# Flag that forces no undefined symbols. 14049no_undefined_flag=$lt_no_undefined_flag_CXX 14050 14051# Commands used to finish a libtool library installation in a directory. 14052finish_cmds=$lt_finish_cmds 14053 14054# Same as above, but a single script fragment to be evaled but not shown. 14055finish_eval=$lt_finish_eval 14056 14057# Take the output of nm and produce a listing of raw symbols and C names. 14058global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14059 14060# Transform the output of nm in a proper C declaration 14061global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14062 14063# Transform the output of nm in a C name address pair 14064global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14065 14066# This is the shared library runtime path variable. 14067runpath_var=$runpath_var 14068 14069# This is the shared library path variable. 14070shlibpath_var=$shlibpath_var 14071 14072# Is shlibpath searched before the hard-coded library search path? 14073shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14074 14075# How to hardcode a shared library path into an executable. 14076hardcode_action=$hardcode_action_CXX 14077 14078# Whether we should hardcode library paths into libraries. 14079hardcode_into_libs=$hardcode_into_libs 14080 14081# Flag to hardcode \$libdir into a binary during linking. 14082# This must work even if \$libdir does not exist. 14083hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 14084 14085# If ld is used when linking, flag to hardcode \$libdir into 14086# a binary during linking. This must work even if \$libdir does 14087# not exist. 14088hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 14089 14090# Whether we need a single -rpath flag with a separated argument. 14091hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 14092 14093# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 14094# resulting binary. 14095hardcode_direct=$hardcode_direct_CXX 14096 14097# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 14098# resulting binary. 14099hardcode_minus_L=$hardcode_minus_L_CXX 14100 14101# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 14102# the resulting binary. 14103hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 14104 14105# Set to yes if building a shared library automatically hardcodes DIR into the library 14106# and all subsequent libraries and executables linked against it. 14107hardcode_automatic=$hardcode_automatic_CXX 14108 14109# Variables whose values should be saved in libtool wrapper scripts and 14110# restored at relink time. 14111variables_saved_for_relink="$variables_saved_for_relink" 14112 14113# Whether libtool must link a program against all its dependency libraries. 14114link_all_deplibs=$link_all_deplibs_CXX 14115 14116# Compile-time system search path for libraries 14117sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14118 14119# Run-time system search path for libraries 14120sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14121 14122# Fix the shell variable \$srcfile for the compiler. 14123fix_srcfile_path=$lt_fix_srcfile_path 14124 14125# Set to yes if exported symbols are required. 14126always_export_symbols=$always_export_symbols_CXX 14127 14128# The commands to list exported symbols. 14129export_symbols_cmds=$lt_export_symbols_cmds_CXX 14130 14131# The commands to extract the exported symbol list from a shared archive. 14132extract_expsyms_cmds=$lt_extract_expsyms_cmds 14133 14134# Symbols that should not be listed in the preloaded symbols. 14135exclude_expsyms=$lt_exclude_expsyms_CXX 14136 14137# Symbols that must always be exported. 14138include_expsyms=$lt_include_expsyms_CXX 14139 14140# ### END LIBTOOL TAG CONFIG: $tagname 14141 14142__EOF__ 14143 14144 14145else 14146 # If there is no Makefile yet, we rely on a make rule to execute 14147 # `config.status --recheck' to rerun these tests and create the 14148 # libtool script then. 14149 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 14150 if test -f "$ltmain_in"; then 14151 test -f Makefile && make "$ltmain" 14152 fi 14153fi 14154 14155 14156ac_ext=c 14157ac_cpp='$CPP $CPPFLAGS' 14158ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14159ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14160ac_compiler_gnu=$ac_cv_c_compiler_gnu 14161 14162CC=$lt_save_CC 14163LDCXX=$LD 14164LD=$lt_save_LD 14165GCC=$lt_save_GCC 14166with_gnu_ldcxx=$with_gnu_ld 14167with_gnu_ld=$lt_save_with_gnu_ld 14168lt_cv_path_LDCXX=$lt_cv_path_LD 14169lt_cv_path_LD=$lt_save_path_LD 14170lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14171lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14172 14173 else 14174 tagname="" 14175 fi 14176 ;; 14177 14178 F77) 14179 if test -n "$F77" && test "X$F77" != "Xno"; then 14180 14181ac_ext=f 14182ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 14183ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14184ac_compiler_gnu=$ac_cv_f77_compiler_gnu 14185 14186 14187archive_cmds_need_lc_F77=no 14188allow_undefined_flag_F77= 14189always_export_symbols_F77=no 14190archive_expsym_cmds_F77= 14191export_dynamic_flag_spec_F77= 14192hardcode_direct_F77=no 14193hardcode_libdir_flag_spec_F77= 14194hardcode_libdir_flag_spec_ld_F77= 14195hardcode_libdir_separator_F77= 14196hardcode_minus_L_F77=no 14197hardcode_automatic_F77=no 14198module_cmds_F77= 14199module_expsym_cmds_F77= 14200link_all_deplibs_F77=unknown 14201old_archive_cmds_F77=$old_archive_cmds 14202no_undefined_flag_F77= 14203whole_archive_flag_spec_F77= 14204enable_shared_with_static_runtimes_F77=no 14205 14206# Source file extension for f77 test sources. 14207ac_ext=f 14208 14209# Object file extension for compiled f77 test sources. 14210objext=o 14211objext_F77=$objext 14212 14213# Code to be used in simple compile tests 14214lt_simple_compile_test_code="\ 14215 subroutine t 14216 return 14217 end 14218" 14219 14220# Code to be used in simple link tests 14221lt_simple_link_test_code="\ 14222 program t 14223 end 14224" 14225 14226# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14227 14228# If no C compiler was specified, use CC. 14229LTCC=${LTCC-"$CC"} 14230 14231# If no C compiler flags were specified, use CFLAGS. 14232LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14233 14234# Allow CC to be a program name with arguments. 14235compiler=$CC 14236 14237 14238# save warnings/boilerplate of simple test code 14239ac_outfile=conftest.$ac_objext 14240echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14241eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14242_lt_compiler_boilerplate=`cat conftest.err` 14243$rm conftest* 14244 14245ac_outfile=conftest.$ac_objext 14246echo "$lt_simple_link_test_code" >conftest.$ac_ext 14247eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14248_lt_linker_boilerplate=`cat conftest.err` 14249$rm -r conftest* 14250 14251 14252# Allow CC to be a program name with arguments. 14253lt_save_CC="$CC" 14254CC=${F77-"f77"} 14255compiler=$CC 14256compiler_F77=$CC 14257for cc_temp in $compiler""; do 14258 case $cc_temp in 14259 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14260 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14261 \-*) ;; 14262 *) break;; 14263 esac 14264done 14265cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14266 14267 14268{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 14269$as_echo_n "checking if libtool supports shared libraries... " >&6; } 14270{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 14271$as_echo "$can_build_shared" >&6; } 14272 14273{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 14274$as_echo_n "checking whether to build shared libraries... " >&6; } 14275test "$can_build_shared" = "no" && enable_shared=no 14276 14277# On AIX, shared libraries and static libraries use the same namespace, and 14278# are all built from PIC. 14279case $host_os in 14280aix3*) 14281 test "$enable_shared" = yes && enable_static=no 14282 if test -n "$RANLIB"; then 14283 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14284 postinstall_cmds='$RANLIB $lib' 14285 fi 14286 ;; 14287aix[4-9]*) 14288 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14289 test "$enable_shared" = yes && enable_static=no 14290 fi 14291 ;; 14292esac 14293{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 14294$as_echo "$enable_shared" >&6; } 14295 14296{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 14297$as_echo_n "checking whether to build static libraries... " >&6; } 14298# Make sure either enable_shared or enable_static is yes. 14299test "$enable_shared" = yes || enable_static=yes 14300{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5 14301$as_echo "$enable_static" >&6; } 14302 14303GCC_F77="$G77" 14304LD_F77="$LD" 14305 14306lt_prog_compiler_wl_F77= 14307lt_prog_compiler_pic_F77= 14308lt_prog_compiler_static_F77= 14309 14310{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14311$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14312 14313 if test "$GCC" = yes; then 14314 lt_prog_compiler_wl_F77='-Wl,' 14315 lt_prog_compiler_static_F77='-static' 14316 14317 case $host_os in 14318 aix*) 14319 # All AIX code is PIC. 14320 if test "$host_cpu" = ia64; then 14321 # AIX 5 now supports IA64 processor 14322 lt_prog_compiler_static_F77='-Bstatic' 14323 fi 14324 ;; 14325 14326 amigaos*) 14327 # FIXME: we need at least 68020 code to build shared libraries, but 14328 # adding the `-m68020' flag to GCC prevents building anything better, 14329 # like `-m68040'. 14330 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14331 ;; 14332 14333 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14334 # PIC is the default for these OSes. 14335 ;; 14336 14337 mingw* | cygwin* | pw32* | os2*) 14338 # This hack is so that the source file can tell whether it is being 14339 # built for inclusion in a dll (and should export symbols for example). 14340 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14341 # (--disable-auto-import) libraries 14342 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14343 ;; 14344 14345 darwin* | rhapsody*) 14346 # PIC is the default on this platform 14347 # Common symbols not allowed in MH_DYLIB files 14348 lt_prog_compiler_pic_F77='-fno-common' 14349 ;; 14350 14351 interix[3-9]*) 14352 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14353 # Instead, we relocate shared libraries at runtime. 14354 ;; 14355 14356 msdosdjgpp*) 14357 # Just because we use GCC doesn't mean we suddenly get shared libraries 14358 # on systems that don't support them. 14359 lt_prog_compiler_can_build_shared_F77=no 14360 enable_shared=no 14361 ;; 14362 14363 sysv4*MP*) 14364 if test -d /usr/nec; then 14365 lt_prog_compiler_pic_F77=-Kconform_pic 14366 fi 14367 ;; 14368 14369 hpux*) 14370 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14371 # not for PA HP-UX. 14372 case $host_cpu in 14373 hppa*64*|ia64*) 14374 # +Z the default 14375 ;; 14376 *) 14377 lt_prog_compiler_pic_F77='-fPIC' 14378 ;; 14379 esac 14380 ;; 14381 14382 *) 14383 lt_prog_compiler_pic_F77='-fPIC' 14384 ;; 14385 esac 14386 else 14387 # PORTME Check for flag to pass linker flags through the system compiler. 14388 case $host_os in 14389 aix*) 14390 lt_prog_compiler_wl_F77='-Wl,' 14391 if test "$host_cpu" = ia64; then 14392 # AIX 5 now supports IA64 processor 14393 lt_prog_compiler_static_F77='-Bstatic' 14394 else 14395 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 14396 fi 14397 ;; 14398 darwin*) 14399 # PIC is the default on this platform 14400 # Common symbols not allowed in MH_DYLIB files 14401 case $cc_basename in 14402 xlc*) 14403 lt_prog_compiler_pic_F77='-qnocommon' 14404 lt_prog_compiler_wl_F77='-Wl,' 14405 ;; 14406 esac 14407 ;; 14408 14409 mingw* | cygwin* | pw32* | os2*) 14410 # This hack is so that the source file can tell whether it is being 14411 # built for inclusion in a dll (and should export symbols for example). 14412 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14413 ;; 14414 14415 hpux9* | hpux10* | hpux11*) 14416 lt_prog_compiler_wl_F77='-Wl,' 14417 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14418 # not for PA HP-UX. 14419 case $host_cpu in 14420 hppa*64*|ia64*) 14421 # +Z the default 14422 ;; 14423 *) 14424 lt_prog_compiler_pic_F77='+Z' 14425 ;; 14426 esac 14427 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14428 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 14429 ;; 14430 14431 irix5* | irix6* | nonstopux*) 14432 lt_prog_compiler_wl_F77='-Wl,' 14433 # PIC (with -KPIC) is the default. 14434 lt_prog_compiler_static_F77='-non_shared' 14435 ;; 14436 14437 newsos6) 14438 lt_prog_compiler_pic_F77='-KPIC' 14439 lt_prog_compiler_static_F77='-Bstatic' 14440 ;; 14441 14442 linux* | k*bsd*-gnu) 14443 case $cc_basename in 14444 icc* | ecc*) 14445 lt_prog_compiler_wl_F77='-Wl,' 14446 lt_prog_compiler_pic_F77='-KPIC' 14447 lt_prog_compiler_static_F77='-static' 14448 ;; 14449 pgcc* | pgf77* | pgf90* | pgf95*) 14450 # Portland Group compilers (*not* the Pentium gcc compiler, 14451 # which looks to be a dead project) 14452 lt_prog_compiler_wl_F77='-Wl,' 14453 lt_prog_compiler_pic_F77='-fpic' 14454 lt_prog_compiler_static_F77='-Bstatic' 14455 ;; 14456 ccc*) 14457 lt_prog_compiler_wl_F77='-Wl,' 14458 # All Alpha code is PIC. 14459 lt_prog_compiler_static_F77='-non_shared' 14460 ;; 14461 *) 14462 case `$CC -V 2>&1 | sed 5q` in 14463 *Sun\ C*) 14464 # Sun C 5.9 14465 lt_prog_compiler_pic_F77='-KPIC' 14466 lt_prog_compiler_static_F77='-Bstatic' 14467 lt_prog_compiler_wl_F77='-Wl,' 14468 ;; 14469 *Sun\ F*) 14470 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14471 lt_prog_compiler_pic_F77='-KPIC' 14472 lt_prog_compiler_static_F77='-Bstatic' 14473 lt_prog_compiler_wl_F77='' 14474 ;; 14475 esac 14476 ;; 14477 esac 14478 ;; 14479 14480 osf3* | osf4* | osf5*) 14481 lt_prog_compiler_wl_F77='-Wl,' 14482 # All OSF/1 code is PIC. 14483 lt_prog_compiler_static_F77='-non_shared' 14484 ;; 14485 14486 rdos*) 14487 lt_prog_compiler_static_F77='-non_shared' 14488 ;; 14489 14490 solaris*) 14491 lt_prog_compiler_pic_F77='-KPIC' 14492 lt_prog_compiler_static_F77='-Bstatic' 14493 case $cc_basename in 14494 f77* | f90* | f95*) 14495 lt_prog_compiler_wl_F77='-Qoption ld ';; 14496 *) 14497 lt_prog_compiler_wl_F77='-Wl,';; 14498 esac 14499 ;; 14500 14501 sunos4*) 14502 lt_prog_compiler_wl_F77='-Qoption ld ' 14503 lt_prog_compiler_pic_F77='-PIC' 14504 lt_prog_compiler_static_F77='-Bstatic' 14505 ;; 14506 14507 sysv4 | sysv4.2uw2* | sysv4.3*) 14508 lt_prog_compiler_wl_F77='-Wl,' 14509 lt_prog_compiler_pic_F77='-KPIC' 14510 lt_prog_compiler_static_F77='-Bstatic' 14511 ;; 14512 14513 sysv4*MP*) 14514 if test -d /usr/nec ;then 14515 lt_prog_compiler_pic_F77='-Kconform_pic' 14516 lt_prog_compiler_static_F77='-Bstatic' 14517 fi 14518 ;; 14519 14520 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14521 lt_prog_compiler_wl_F77='-Wl,' 14522 lt_prog_compiler_pic_F77='-KPIC' 14523 lt_prog_compiler_static_F77='-Bstatic' 14524 ;; 14525 14526 unicos*) 14527 lt_prog_compiler_wl_F77='-Wl,' 14528 lt_prog_compiler_can_build_shared_F77=no 14529 ;; 14530 14531 uts4*) 14532 lt_prog_compiler_pic_F77='-pic' 14533 lt_prog_compiler_static_F77='-Bstatic' 14534 ;; 14535 14536 *) 14537 lt_prog_compiler_can_build_shared_F77=no 14538 ;; 14539 esac 14540 fi 14541 14542{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14543$as_echo "$lt_prog_compiler_pic_F77" >&6; } 14544 14545# 14546# Check to make sure the PIC flag actually works. 14547# 14548if test -n "$lt_prog_compiler_pic_F77"; then 14549 14550{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14551$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; } 14552if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then 14553 $as_echo_n "(cached) " >&6 14554else 14555 lt_cv_prog_compiler_pic_works_F77=no 14556 ac_outfile=conftest.$ac_objext 14557 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14558 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14559 # Insert the option either (1) after the last *FLAGS variable, or 14560 # (2) before a word containing "conftest.", or (3) at the end. 14561 # Note that $ac_compile itself does not contain backslashes and begins 14562 # with a dollar sign (not a hyphen), so the echo should work correctly. 14563 # The option is referenced via a variable to avoid confusing sed. 14564 lt_compile=`echo "$ac_compile" | $SED \ 14565 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14566 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14567 -e 's:$: $lt_compiler_flag:'` 14568 (eval echo "\"\$as_me:14568: $lt_compile\"" >&5) 14569 (eval "$lt_compile" 2>conftest.err) 14570 ac_status=$? 14571 cat conftest.err >&5 14572 echo "$as_me:14572: \$? = $ac_status" >&5 14573 if (exit $ac_status) && test -s "$ac_outfile"; then 14574 # The compiler can only warn and ignore the option if not recognized 14575 # So say no if there are warnings other than the usual output. 14576 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14577 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14578 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14579 lt_cv_prog_compiler_pic_works_F77=yes 14580 fi 14581 fi 14582 $rm conftest* 14583 14584fi 14585{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5 14586$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; } 14587 14588if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then 14589 case $lt_prog_compiler_pic_F77 in 14590 "" | " "*) ;; 14591 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14592 esac 14593else 14594 lt_prog_compiler_pic_F77= 14595 lt_prog_compiler_can_build_shared_F77=no 14596fi 14597 14598fi 14599case $host_os in 14600 # For platforms which do not support PIC, -DPIC is meaningless: 14601 *djgpp*) 14602 lt_prog_compiler_pic_F77= 14603 ;; 14604 *) 14605 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14606 ;; 14607esac 14608 14609# 14610# Check to make sure the static flag actually works. 14611# 14612wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14613{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14614$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14615if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then 14616 $as_echo_n "(cached) " >&6 14617else 14618 lt_cv_prog_compiler_static_works_F77=no 14619 save_LDFLAGS="$LDFLAGS" 14620 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14621 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14622 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14623 # The linker can only warn and ignore the option if not recognized 14624 # So say no if there are warnings 14625 if test -s conftest.err; then 14626 # Append any errors to the config.log. 14627 cat conftest.err 1>&5 14628 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14629 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14630 if diff conftest.exp conftest.er2 >/dev/null; then 14631 lt_cv_prog_compiler_static_works_F77=yes 14632 fi 14633 else 14634 lt_cv_prog_compiler_static_works_F77=yes 14635 fi 14636 fi 14637 $rm -r conftest* 14638 LDFLAGS="$save_LDFLAGS" 14639 14640fi 14641{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5 14642$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; } 14643 14644if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then 14645 : 14646else 14647 lt_prog_compiler_static_F77= 14648fi 14649 14650 14651{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14652$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14653if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14654 $as_echo_n "(cached) " >&6 14655else 14656 lt_cv_prog_compiler_c_o_F77=no 14657 $rm -r conftest 2>/dev/null 14658 mkdir conftest 14659 cd conftest 14660 mkdir out 14661 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14662 14663 lt_compiler_flag="-o out/conftest2.$ac_objext" 14664 # Insert the option either (1) after the last *FLAGS variable, or 14665 # (2) before a word containing "conftest.", or (3) at the end. 14666 # Note that $ac_compile itself does not contain backslashes and begins 14667 # with a dollar sign (not a hyphen), so the echo should work correctly. 14668 lt_compile=`echo "$ac_compile" | $SED \ 14669 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14670 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14671 -e 's:$: $lt_compiler_flag:'` 14672 (eval echo "\"\$as_me:14672: $lt_compile\"" >&5) 14673 (eval "$lt_compile" 2>out/conftest.err) 14674 ac_status=$? 14675 cat out/conftest.err >&5 14676 echo "$as_me:14676: \$? = $ac_status" >&5 14677 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14678 then 14679 # The compiler can only warn and ignore the option if not recognized 14680 # So say no if there are warnings 14681 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14682 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14683 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14684 lt_cv_prog_compiler_c_o_F77=yes 14685 fi 14686 fi 14687 chmod u+w . 2>&5 14688 $rm conftest* 14689 # SGI C++ compiler will create directory out/ii_files/ for 14690 # template instantiation 14691 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14692 $rm out/* && rmdir out 14693 cd .. 14694 rmdir conftest 14695 $rm conftest* 14696 14697fi 14698{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14699$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; } 14700 14701 14702hard_links="nottested" 14703if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14704 # do not overwrite the value of need_locks provided by the user 14705 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14706$as_echo_n "checking if we can lock with hard links... " >&6; } 14707 hard_links=yes 14708 $rm conftest* 14709 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14710 touch conftest.a 14711 ln conftest.a conftest.b 2>&5 || hard_links=no 14712 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14713 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 14714$as_echo "$hard_links" >&6; } 14715 if test "$hard_links" = no; then 14716 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14717$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14718 need_locks=warn 14719 fi 14720else 14721 need_locks=no 14722fi 14723 14724{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14725$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14726 14727 runpath_var= 14728 allow_undefined_flag_F77= 14729 enable_shared_with_static_runtimes_F77=no 14730 archive_cmds_F77= 14731 archive_expsym_cmds_F77= 14732 old_archive_From_new_cmds_F77= 14733 old_archive_from_expsyms_cmds_F77= 14734 export_dynamic_flag_spec_F77= 14735 whole_archive_flag_spec_F77= 14736 thread_safe_flag_spec_F77= 14737 hardcode_libdir_flag_spec_F77= 14738 hardcode_libdir_flag_spec_ld_F77= 14739 hardcode_libdir_separator_F77= 14740 hardcode_direct_F77=no 14741 hardcode_minus_L_F77=no 14742 hardcode_shlibpath_var_F77=unsupported 14743 link_all_deplibs_F77=unknown 14744 hardcode_automatic_F77=no 14745 module_cmds_F77= 14746 module_expsym_cmds_F77= 14747 always_export_symbols_F77=no 14748 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14749 # include_expsyms should be a list of space-separated symbols to be *always* 14750 # included in the symbol list 14751 include_expsyms_F77= 14752 # exclude_expsyms can be an extended regexp of symbols to exclude 14753 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14754 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14755 # as well as any symbol that contains `d'. 14756 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14757 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14758 # platforms (ab)use it in PIC code, but their linkers get confused if 14759 # the symbol is explicitly referenced. Since portable code cannot 14760 # rely on this symbol name, it's probably fine to never include it in 14761 # preloaded symbol tables. 14762 # Exclude shared library initialization/finalization symbols. 14763 extract_expsyms_cmds= 14764 # Just being paranoid about ensuring that cc_basename is set. 14765 for cc_temp in $compiler""; do 14766 case $cc_temp in 14767 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14768 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14769 \-*) ;; 14770 *) break;; 14771 esac 14772done 14773cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14774 14775 case $host_os in 14776 cygwin* | mingw* | pw32*) 14777 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14778 # When not using gcc, we currently assume that we are using 14779 # Microsoft Visual C++. 14780 if test "$GCC" != yes; then 14781 with_gnu_ld=no 14782 fi 14783 ;; 14784 interix*) 14785 # we just hope/assume this is gcc and not c89 (= MSVC++) 14786 with_gnu_ld=yes 14787 ;; 14788 openbsd*) 14789 with_gnu_ld=no 14790 ;; 14791 esac 14792 14793 ld_shlibs_F77=yes 14794 if test "$with_gnu_ld" = yes; then 14795 # If archive_cmds runs LD, not CC, wlarc should be empty 14796 wlarc='${wl}' 14797 14798 # Set some defaults for GNU ld with shared library support. These 14799 # are reset later if shared libraries are not supported. Putting them 14800 # here allows them to be overridden if necessary. 14801 runpath_var=LD_RUN_PATH 14802 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14803 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14804 # ancient GNU ld didn't support --whole-archive et. al. 14805 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14806 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14807 else 14808 whole_archive_flag_spec_F77= 14809 fi 14810 supports_anon_versioning=no 14811 case `$LD -v 2>/dev/null` in 14812 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14813 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14814 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14815 *\ 2.11.*) ;; # other 2.11 versions 14816 *) supports_anon_versioning=yes ;; 14817 esac 14818 14819 # See if GNU ld supports shared libraries. 14820 case $host_os in 14821 aix[3-9]*) 14822 # On AIX/PPC, the GNU linker is very broken 14823 if test "$host_cpu" != ia64; then 14824 ld_shlibs_F77=no 14825 cat <<EOF 1>&2 14826 14827*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14828*** to be unable to reliably create shared libraries on AIX. 14829*** Therefore, libtool is disabling shared libraries support. If you 14830*** really care for shared libraries, you may want to modify your PATH 14831*** so that a non-GNU linker is found, and then restart. 14832 14833EOF 14834 fi 14835 ;; 14836 14837 amigaos*) 14838 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)' 14839 hardcode_libdir_flag_spec_F77='-L$libdir' 14840 hardcode_minus_L_F77=yes 14841 14842 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14843 # that the semantics of dynamic libraries on AmigaOS, at least up 14844 # to version 4, is to share data among multiple programs linked 14845 # with the same dynamic library. Since this doesn't match the 14846 # behavior of shared libraries on other platforms, we can't use 14847 # them. 14848 ld_shlibs_F77=no 14849 ;; 14850 14851 beos*) 14852 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14853 allow_undefined_flag_F77=unsupported 14854 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14855 # support --undefined. This deserves some investigation. FIXME 14856 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14857 else 14858 ld_shlibs_F77=no 14859 fi 14860 ;; 14861 14862 cygwin* | mingw* | pw32*) 14863 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14864 # as there is no search path for DLLs. 14865 hardcode_libdir_flag_spec_F77='-L$libdir' 14866 allow_undefined_flag_F77=unsupported 14867 always_export_symbols_F77=no 14868 enable_shared_with_static_runtimes_F77=yes 14869 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 14870 14871 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14872 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14873 # If the export-symbols file already is a .def file (1st line 14874 # is EXPORTS), use it as is; otherwise, prepend... 14875 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14876 cp $export_symbols $output_objdir/$soname.def; 14877 else 14878 echo EXPORTS > $output_objdir/$soname.def; 14879 cat $export_symbols >> $output_objdir/$soname.def; 14880 fi~ 14881 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14882 else 14883 ld_shlibs_F77=no 14884 fi 14885 ;; 14886 14887 interix[3-9]*) 14888 hardcode_direct_F77=no 14889 hardcode_shlibpath_var_F77=no 14890 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14891 export_dynamic_flag_spec_F77='${wl}-E' 14892 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14893 # Instead, shared libraries are loaded at an image base (0x10000000 by 14894 # default) and relocated if they conflict, which is a slow very memory 14895 # consuming and fragmenting process. To avoid this, we pick a random, 14896 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14897 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14898 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' 14899 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' 14900 ;; 14901 14902 gnu* | linux* | k*bsd*-gnu) 14903 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14904 tmp_addflag= 14905 case $cc_basename,$host_cpu in 14906 pgcc*) # Portland Group C compiler 14907 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' 14908 tmp_addflag=' $pic_flag' 14909 ;; 14910 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14911 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' 14912 tmp_addflag=' $pic_flag -Mnomain' ;; 14913 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14914 tmp_addflag=' -i_dynamic' ;; 14915 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14916 tmp_addflag=' -i_dynamic -nofor_main' ;; 14917 ifc* | ifort*) # Intel Fortran compiler 14918 tmp_addflag=' -nofor_main' ;; 14919 esac 14920 case `$CC -V 2>&1 | sed 5q` in 14921 *Sun\ C*) # Sun C 5.9 14922 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' 14923 tmp_sharedflag='-G' ;; 14924 *Sun\ F*) # Sun Fortran 8.3 14925 tmp_sharedflag='-G' ;; 14926 *) 14927 tmp_sharedflag='-shared' ;; 14928 esac 14929 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14930 14931 if test $supports_anon_versioning = yes; then 14932 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14933 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14934 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14935 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14936 fi 14937 else 14938 ld_shlibs_F77=no 14939 fi 14940 ;; 14941 14942 netbsd*) 14943 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14944 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14945 wlarc= 14946 else 14947 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14948 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14949 fi 14950 ;; 14951 14952 solaris*) 14953 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14954 ld_shlibs_F77=no 14955 cat <<EOF 1>&2 14956 14957*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14958*** create shared libraries on Solaris systems. Therefore, libtool 14959*** is disabling shared libraries support. We urge you to upgrade GNU 14960*** binutils to release 2.9.1 or newer. Another option is to modify 14961*** your PATH or compiler configuration so that the native linker is 14962*** used, and then restart. 14963 14964EOF 14965 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14966 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14967 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14968 else 14969 ld_shlibs_F77=no 14970 fi 14971 ;; 14972 14973 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14974 case `$LD -v 2>&1` in 14975 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14976 ld_shlibs_F77=no 14977 cat <<_LT_EOF 1>&2 14978 14979*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14980*** reliably create shared libraries on SCO systems. Therefore, libtool 14981*** is disabling shared libraries support. We urge you to upgrade GNU 14982*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14983*** your PATH or compiler configuration so that the native linker is 14984*** used, and then restart. 14985 14986_LT_EOF 14987 ;; 14988 *) 14989 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14990 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14991 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14992 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14993 else 14994 ld_shlibs_F77=no 14995 fi 14996 ;; 14997 esac 14998 ;; 14999 15000 sunos4*) 15001 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15002 wlarc= 15003 hardcode_direct_F77=yes 15004 hardcode_shlibpath_var_F77=no 15005 ;; 15006 15007 *) 15008 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15009 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15010 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15011 else 15012 ld_shlibs_F77=no 15013 fi 15014 ;; 15015 esac 15016 15017 if test "$ld_shlibs_F77" = no; then 15018 runpath_var= 15019 hardcode_libdir_flag_spec_F77= 15020 export_dynamic_flag_spec_F77= 15021 whole_archive_flag_spec_F77= 15022 fi 15023 else 15024 # PORTME fill in a description of your system's linker (not GNU ld) 15025 case $host_os in 15026 aix3*) 15027 allow_undefined_flag_F77=unsupported 15028 always_export_symbols_F77=yes 15029 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' 15030 # Note: this linker hardcodes the directories in LIBPATH if there 15031 # are no directories specified by -L. 15032 hardcode_minus_L_F77=yes 15033 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 15034 # Neither direct hardcoding nor static linking is supported with a 15035 # broken collect2. 15036 hardcode_direct_F77=unsupported 15037 fi 15038 ;; 15039 15040 aix[4-9]*) 15041 if test "$host_cpu" = ia64; then 15042 # On IA64, the linker does run time linking by default, so we don't 15043 # have to do anything special. 15044 aix_use_runtimelinking=no 15045 exp_sym_flag='-Bexport' 15046 no_entry_flag="" 15047 else 15048 # If we're using GNU nm, then we don't want the "-C" option. 15049 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15050 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 15051 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' 15052 else 15053 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' 15054 fi 15055 aix_use_runtimelinking=no 15056 15057 # Test if we are trying to use run time linking or normal 15058 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15059 # need to do runtime linking. 15060 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15061 for ld_flag in $LDFLAGS; do 15062 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15063 aix_use_runtimelinking=yes 15064 break 15065 fi 15066 done 15067 ;; 15068 esac 15069 15070 exp_sym_flag='-bexport' 15071 no_entry_flag='-bnoentry' 15072 fi 15073 15074 # When large executables or shared objects are built, AIX ld can 15075 # have problems creating the table of contents. If linking a library 15076 # or program results in "error TOC overflow" add -mminimal-toc to 15077 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15078 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15079 15080 archive_cmds_F77='' 15081 hardcode_direct_F77=yes 15082 hardcode_libdir_separator_F77=':' 15083 link_all_deplibs_F77=yes 15084 15085 if test "$GCC" = yes; then 15086 case $host_os in aix4.[012]|aix4.[012].*) 15087 # We only want to do this on AIX 4.2 and lower, the check 15088 # below for broken collect2 doesn't work under 4.3+ 15089 collect2name=`${CC} -print-prog-name=collect2` 15090 if test -f "$collect2name" && \ 15091 strings "$collect2name" | grep resolve_lib_name >/dev/null 15092 then 15093 # We have reworked collect2 15094 : 15095 else 15096 # We have old collect2 15097 hardcode_direct_F77=unsupported 15098 # It fails to find uninstalled libraries when the uninstalled 15099 # path is not listed in the libpath. Setting hardcode_minus_L 15100 # to unsupported forces relinking 15101 hardcode_minus_L_F77=yes 15102 hardcode_libdir_flag_spec_F77='-L$libdir' 15103 hardcode_libdir_separator_F77= 15104 fi 15105 ;; 15106 esac 15107 shared_flag='-shared' 15108 if test "$aix_use_runtimelinking" = yes; then 15109 shared_flag="$shared_flag "'${wl}-G' 15110 fi 15111 else 15112 # not using gcc 15113 if test "$host_cpu" = ia64; then 15114 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15115 # chokes on -Wl,-G. The following line is correct: 15116 shared_flag='-G' 15117 else 15118 if test "$aix_use_runtimelinking" = yes; then 15119 shared_flag='${wl}-G' 15120 else 15121 shared_flag='${wl}-bM:SRE' 15122 fi 15123 fi 15124 fi 15125 15126 # It seems that -bexpall does not export symbols beginning with 15127 # underscore (_), so it is better to generate a list of symbols to export. 15128 always_export_symbols_F77=yes 15129 if test "$aix_use_runtimelinking" = yes; then 15130 # Warning - without using the other runtime loading flags (-brtl), 15131 # -berok will link without error, but may produce a broken library. 15132 allow_undefined_flag_F77='-berok' 15133 # Determine the default libpath from the value encoded in an empty executable. 15134 cat >conftest.$ac_ext <<_ACEOF 15135 program main 15136 15137 end 15138_ACEOF 15139rm -f conftest.$ac_objext conftest$ac_exeext 15140if { (ac_try="$ac_link" 15141case "(($ac_try" in 15142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15143 *) ac_try_echo=$ac_try;; 15144esac 15145eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15146$as_echo "$ac_try_echo") >&5 15147 (eval "$ac_link") 2>conftest.er1 15148 ac_status=$? 15149 grep -v '^ *+' conftest.er1 >conftest.err 15150 rm -f conftest.er1 15151 cat conftest.err >&5 15152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15153 (exit $ac_status); } && { 15154 test -z "$ac_f77_werror_flag" || 15155 test ! -s conftest.err 15156 } && test -s conftest$ac_exeext && { 15157 test "$cross_compiling" = yes || 15158 $as_test_x conftest$ac_exeext 15159 }; then 15160 15161lt_aix_libpath_sed=' 15162 /Import File Strings/,/^$/ { 15163 /^0/ { 15164 s/^0 *\(.*\)$/\1/ 15165 p 15166 } 15167 }' 15168aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15169# Check for a 64-bit object if we didn't find anything. 15170if test -z "$aix_libpath"; then 15171 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15172fi 15173else 15174 $as_echo "$as_me: failed program was:" >&5 15175sed 's/^/| /' conftest.$ac_ext >&5 15176 15177 15178fi 15179 15180rm -rf conftest.dSYM 15181rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15182 conftest$ac_exeext conftest.$ac_ext 15183if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15184 15185 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15186 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" 15187 else 15188 if test "$host_cpu" = ia64; then 15189 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 15190 allow_undefined_flag_F77="-z nodefs" 15191 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" 15192 else 15193 # Determine the default libpath from the value encoded in an empty executable. 15194 cat >conftest.$ac_ext <<_ACEOF 15195 program main 15196 15197 end 15198_ACEOF 15199rm -f conftest.$ac_objext conftest$ac_exeext 15200if { (ac_try="$ac_link" 15201case "(($ac_try" in 15202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15203 *) ac_try_echo=$ac_try;; 15204esac 15205eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15206$as_echo "$ac_try_echo") >&5 15207 (eval "$ac_link") 2>conftest.er1 15208 ac_status=$? 15209 grep -v '^ *+' conftest.er1 >conftest.err 15210 rm -f conftest.er1 15211 cat conftest.err >&5 15212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15213 (exit $ac_status); } && { 15214 test -z "$ac_f77_werror_flag" || 15215 test ! -s conftest.err 15216 } && test -s conftest$ac_exeext && { 15217 test "$cross_compiling" = yes || 15218 $as_test_x conftest$ac_exeext 15219 }; then 15220 15221lt_aix_libpath_sed=' 15222 /Import File Strings/,/^$/ { 15223 /^0/ { 15224 s/^0 *\(.*\)$/\1/ 15225 p 15226 } 15227 }' 15228aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15229# Check for a 64-bit object if we didn't find anything. 15230if test -z "$aix_libpath"; then 15231 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15232fi 15233else 15234 $as_echo "$as_me: failed program was:" >&5 15235sed 's/^/| /' conftest.$ac_ext >&5 15236 15237 15238fi 15239 15240rm -rf conftest.dSYM 15241rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15242 conftest$ac_exeext conftest.$ac_ext 15243if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15244 15245 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15246 # Warning - without using the other run time loading flags, 15247 # -berok will link without error, but may produce a broken library. 15248 no_undefined_flag_F77=' ${wl}-bernotok' 15249 allow_undefined_flag_F77=' ${wl}-berok' 15250 # Exported symbols can be pulled into shared objects from archives 15251 whole_archive_flag_spec_F77='$convenience' 15252 archive_cmds_need_lc_F77=yes 15253 # This is similar to how AIX traditionally builds its shared libraries. 15254 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' 15255 fi 15256 fi 15257 ;; 15258 15259 amigaos*) 15260 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)' 15261 hardcode_libdir_flag_spec_F77='-L$libdir' 15262 hardcode_minus_L_F77=yes 15263 # see comment about different semantics on the GNU ld section 15264 ld_shlibs_F77=no 15265 ;; 15266 15267 bsdi[45]*) 15268 export_dynamic_flag_spec_F77=-rdynamic 15269 ;; 15270 15271 cygwin* | mingw* | pw32*) 15272 # When not using gcc, we currently assume that we are using 15273 # Microsoft Visual C++. 15274 # hardcode_libdir_flag_spec is actually meaningless, as there is 15275 # no search path for DLLs. 15276 hardcode_libdir_flag_spec_F77=' ' 15277 allow_undefined_flag_F77=unsupported 15278 # Tell ltmain to make .lib files, not .a files. 15279 libext=lib 15280 # Tell ltmain to make .dll files, not .so files. 15281 shrext_cmds=".dll" 15282 # FIXME: Setting linknames here is a bad hack. 15283 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15284 # The linker will automatically build a .lib file if we build a DLL. 15285 old_archive_From_new_cmds_F77='true' 15286 # FIXME: Should let the user specify the lib program. 15287 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' 15288 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 15289 enable_shared_with_static_runtimes_F77=yes 15290 ;; 15291 15292 darwin* | rhapsody*) 15293 case $host_os in 15294 rhapsody* | darwin1.[012]) 15295 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 15296 ;; 15297 *) # Darwin 1.3 on 15298 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15299 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15300 else 15301 case ${MACOSX_DEPLOYMENT_TARGET} in 15302 10.[012]) 15303 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15304 ;; 15305 10.*) 15306 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 15307 ;; 15308 esac 15309 fi 15310 ;; 15311 esac 15312 archive_cmds_need_lc_F77=no 15313 hardcode_direct_F77=no 15314 hardcode_automatic_F77=yes 15315 hardcode_shlibpath_var_F77=unsupported 15316 whole_archive_flag_spec_F77='' 15317 link_all_deplibs_F77=yes 15318 if test "$GCC" = yes ; then 15319 output_verbose_link_cmd='echo' 15320 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}" 15321 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 15322 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}" 15323 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}" 15324 else 15325 case $cc_basename in 15326 xlc*) 15327 output_verbose_link_cmd='echo' 15328 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 15329 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15330 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15331 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}' 15332 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}' 15333 ;; 15334 *) 15335 ld_shlibs_F77=no 15336 ;; 15337 esac 15338 fi 15339 ;; 15340 15341 dgux*) 15342 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15343 hardcode_libdir_flag_spec_F77='-L$libdir' 15344 hardcode_shlibpath_var_F77=no 15345 ;; 15346 15347 freebsd1*) 15348 ld_shlibs_F77=no 15349 ;; 15350 15351 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15352 # support. Future versions do this automatically, but an explicit c++rt0.o 15353 # does not break anything, and helps significantly (at the cost of a little 15354 # extra space). 15355 freebsd2.2*) 15356 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15357 hardcode_libdir_flag_spec_F77='-R$libdir' 15358 hardcode_direct_F77=yes 15359 hardcode_shlibpath_var_F77=no 15360 ;; 15361 15362 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15363 freebsd2*) 15364 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15365 hardcode_direct_F77=yes 15366 hardcode_minus_L_F77=yes 15367 hardcode_shlibpath_var_F77=no 15368 ;; 15369 15370 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15371 freebsd* | dragonfly*) 15372 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15373 hardcode_libdir_flag_spec_F77='-R$libdir' 15374 hardcode_direct_F77=yes 15375 hardcode_shlibpath_var_F77=no 15376 ;; 15377 15378 hpux9*) 15379 if test "$GCC" = yes; then 15380 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' 15381 else 15382 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' 15383 fi 15384 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15385 hardcode_libdir_separator_F77=: 15386 hardcode_direct_F77=yes 15387 15388 # hardcode_minus_L: Not really in the search PATH, 15389 # but as the default location of the library. 15390 hardcode_minus_L_F77=yes 15391 export_dynamic_flag_spec_F77='${wl}-E' 15392 ;; 15393 15394 hpux10*) 15395 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15396 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15397 else 15398 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15399 fi 15400 if test "$with_gnu_ld" = no; then 15401 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15402 hardcode_libdir_separator_F77=: 15403 15404 hardcode_direct_F77=yes 15405 export_dynamic_flag_spec_F77='${wl}-E' 15406 15407 # hardcode_minus_L: Not really in the search PATH, 15408 # but as the default location of the library. 15409 hardcode_minus_L_F77=yes 15410 fi 15411 ;; 15412 15413 hpux11*) 15414 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15415 case $host_cpu in 15416 hppa*64*) 15417 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15418 ;; 15419 ia64*) 15420 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15421 ;; 15422 *) 15423 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15424 ;; 15425 esac 15426 else 15427 case $host_cpu in 15428 hppa*64*) 15429 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15430 ;; 15431 ia64*) 15432 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15433 ;; 15434 *) 15435 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15436 ;; 15437 esac 15438 fi 15439 if test "$with_gnu_ld" = no; then 15440 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15441 hardcode_libdir_separator_F77=: 15442 15443 case $host_cpu in 15444 hppa*64*|ia64*) 15445 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15446 hardcode_direct_F77=no 15447 hardcode_shlibpath_var_F77=no 15448 ;; 15449 *) 15450 hardcode_direct_F77=yes 15451 export_dynamic_flag_spec_F77='${wl}-E' 15452 15453 # hardcode_minus_L: Not really in the search PATH, 15454 # but as the default location of the library. 15455 hardcode_minus_L_F77=yes 15456 ;; 15457 esac 15458 fi 15459 ;; 15460 15461 irix5* | irix6* | nonstopux*) 15462 if test "$GCC" = yes; then 15463 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' 15464 else 15465 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' 15466 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 15467 fi 15468 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15469 hardcode_libdir_separator_F77=: 15470 link_all_deplibs_F77=yes 15471 ;; 15472 15473 netbsd*) 15474 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15475 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15476 else 15477 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15478 fi 15479 hardcode_libdir_flag_spec_F77='-R$libdir' 15480 hardcode_direct_F77=yes 15481 hardcode_shlibpath_var_F77=no 15482 ;; 15483 15484 newsos6) 15485 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15486 hardcode_direct_F77=yes 15487 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15488 hardcode_libdir_separator_F77=: 15489 hardcode_shlibpath_var_F77=no 15490 ;; 15491 15492 openbsd*) 15493 if test -f /usr/libexec/ld.so; then 15494 hardcode_direct_F77=yes 15495 hardcode_shlibpath_var_F77=no 15496 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15497 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15498 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15499 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15500 export_dynamic_flag_spec_F77='${wl}-E' 15501 else 15502 case $host_os in 15503 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15504 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15505 hardcode_libdir_flag_spec_F77='-R$libdir' 15506 ;; 15507 *) 15508 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15509 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15510 ;; 15511 esac 15512 fi 15513 else 15514 ld_shlibs_F77=no 15515 fi 15516 ;; 15517 15518 os2*) 15519 hardcode_libdir_flag_spec_F77='-L$libdir' 15520 hardcode_minus_L_F77=yes 15521 allow_undefined_flag_F77=unsupported 15522 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' 15523 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15524 ;; 15525 15526 osf3*) 15527 if test "$GCC" = yes; then 15528 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15529 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' 15530 else 15531 allow_undefined_flag_F77=' -expect_unresolved \*' 15532 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' 15533 fi 15534 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15535 hardcode_libdir_separator_F77=: 15536 ;; 15537 15538 osf4* | osf5*) # as osf3* with the addition of -msym flag 15539 if test "$GCC" = yes; then 15540 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15541 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' 15542 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15543 else 15544 allow_undefined_flag_F77=' -expect_unresolved \*' 15545 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' 15546 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~ 15547 $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' 15548 15549 # Both c and cxx compiler support -rpath directly 15550 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15551 fi 15552 hardcode_libdir_separator_F77=: 15553 ;; 15554 15555 solaris*) 15556 no_undefined_flag_F77=' -z text' 15557 if test "$GCC" = yes; then 15558 wlarc='${wl}' 15559 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15560 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15561 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15562 else 15563 wlarc='' 15564 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15565 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15566 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15567 fi 15568 hardcode_libdir_flag_spec_F77='-R$libdir' 15569 hardcode_shlibpath_var_F77=no 15570 case $host_os in 15571 solaris2.[0-5] | solaris2.[0-5].*) ;; 15572 *) 15573 # The compiler driver will combine and reorder linker options, 15574 # but understands `-z linker_flag'. GCC discards it without `$wl', 15575 # but is careful enough not to reorder. 15576 # Supported since Solaris 2.6 (maybe 2.5.1?) 15577 if test "$GCC" = yes; then 15578 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 15579 else 15580 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' 15581 fi 15582 ;; 15583 esac 15584 link_all_deplibs_F77=yes 15585 ;; 15586 15587 sunos4*) 15588 if test "x$host_vendor" = xsequent; then 15589 # Use $CC to link under sequent, because it throws in some extra .o 15590 # files that make .init and .fini sections work. 15591 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15592 else 15593 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15594 fi 15595 hardcode_libdir_flag_spec_F77='-L$libdir' 15596 hardcode_direct_F77=yes 15597 hardcode_minus_L_F77=yes 15598 hardcode_shlibpath_var_F77=no 15599 ;; 15600 15601 sysv4) 15602 case $host_vendor in 15603 sni) 15604 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15605 hardcode_direct_F77=yes # is this really true??? 15606 ;; 15607 siemens) 15608 ## LD is ld it makes a PLAMLIB 15609 ## CC just makes a GrossModule. 15610 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15611 reload_cmds_F77='$CC -r -o $output$reload_objs' 15612 hardcode_direct_F77=no 15613 ;; 15614 motorola) 15615 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15616 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15617 ;; 15618 esac 15619 runpath_var='LD_RUN_PATH' 15620 hardcode_shlibpath_var_F77=no 15621 ;; 15622 15623 sysv4.3*) 15624 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15625 hardcode_shlibpath_var_F77=no 15626 export_dynamic_flag_spec_F77='-Bexport' 15627 ;; 15628 15629 sysv4*MP*) 15630 if test -d /usr/nec; then 15631 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15632 hardcode_shlibpath_var_F77=no 15633 runpath_var=LD_RUN_PATH 15634 hardcode_runpath_var=yes 15635 ld_shlibs_F77=yes 15636 fi 15637 ;; 15638 15639 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15640 no_undefined_flag_F77='${wl}-z,text' 15641 archive_cmds_need_lc_F77=no 15642 hardcode_shlibpath_var_F77=no 15643 runpath_var='LD_RUN_PATH' 15644 15645 if test "$GCC" = yes; then 15646 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15647 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15648 else 15649 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15650 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15651 fi 15652 ;; 15653 15654 sysv5* | sco3.2v5* | sco5v6*) 15655 # Note: We can NOT use -z defs as we might desire, because we do not 15656 # link with -lc, and that would cause any symbols used from libc to 15657 # always be unresolved, which means just about no library would 15658 # ever link correctly. If we're not using GNU ld we use -z text 15659 # though, which does catch some bad symbols but isn't as heavy-handed 15660 # as -z defs. 15661 no_undefined_flag_F77='${wl}-z,text' 15662 allow_undefined_flag_F77='${wl}-z,nodefs' 15663 archive_cmds_need_lc_F77=no 15664 hardcode_shlibpath_var_F77=no 15665 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15666 hardcode_libdir_separator_F77=':' 15667 link_all_deplibs_F77=yes 15668 export_dynamic_flag_spec_F77='${wl}-Bexport' 15669 runpath_var='LD_RUN_PATH' 15670 15671 if test "$GCC" = yes; then 15672 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15673 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15674 else 15675 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15676 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15677 fi 15678 ;; 15679 15680 uts4*) 15681 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15682 hardcode_libdir_flag_spec_F77='-L$libdir' 15683 hardcode_shlibpath_var_F77=no 15684 ;; 15685 15686 *) 15687 ld_shlibs_F77=no 15688 ;; 15689 esac 15690 fi 15691 15692{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15693$as_echo "$ld_shlibs_F77" >&6; } 15694test "$ld_shlibs_F77" = no && can_build_shared=no 15695 15696# 15697# Do we need to explicitly link libc? 15698# 15699case "x$archive_cmds_need_lc_F77" in 15700x|xyes) 15701 # Assume -lc should be added 15702 archive_cmds_need_lc_F77=yes 15703 15704 if test "$enable_shared" = yes && test "$GCC" = yes; then 15705 case $archive_cmds_F77 in 15706 *'~'*) 15707 # FIXME: we may have to deal with multi-command sequences. 15708 ;; 15709 '$CC '*) 15710 # Test whether the compiler implicitly links with -lc since on some 15711 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15712 # to ld, don't add -lc before -lgcc. 15713 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15714$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15715 $rm conftest* 15716 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15717 15718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15719 (eval $ac_compile) 2>&5 15720 ac_status=$? 15721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15722 (exit $ac_status); } 2>conftest.err; then 15723 soname=conftest 15724 lib=conftest 15725 libobjs=conftest.$ac_objext 15726 deplibs= 15727 wl=$lt_prog_compiler_wl_F77 15728 pic_flag=$lt_prog_compiler_pic_F77 15729 compiler_flags=-v 15730 linker_flags=-v 15731 verstring= 15732 output_objdir=. 15733 libname=conftest 15734 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15735 allow_undefined_flag_F77= 15736 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15737 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15738 ac_status=$? 15739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15740 (exit $ac_status); } 15741 then 15742 archive_cmds_need_lc_F77=no 15743 else 15744 archive_cmds_need_lc_F77=yes 15745 fi 15746 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15747 else 15748 cat conftest.err 1>&5 15749 fi 15750 $rm conftest* 15751 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15752$as_echo "$archive_cmds_need_lc_F77" >&6; } 15753 ;; 15754 esac 15755 fi 15756 ;; 15757esac 15758 15759{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15760$as_echo_n "checking dynamic linker characteristics... " >&6; } 15761library_names_spec= 15762libname_spec='lib$name' 15763soname_spec= 15764shrext_cmds=".so" 15765postinstall_cmds= 15766postuninstall_cmds= 15767finish_cmds= 15768finish_eval= 15769shlibpath_var= 15770shlibpath_overrides_runpath=unknown 15771version_type=none 15772dynamic_linker="$host_os ld.so" 15773sys_lib_dlsearch_path_spec="/lib /usr/lib" 15774 15775need_lib_prefix=unknown 15776hardcode_into_libs=no 15777 15778# when you set need_version to no, make sure it does not cause -set_version 15779# flags to be left without arguments 15780need_version=unknown 15781 15782case $host_os in 15783aix3*) 15784 version_type=linux 15785 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15786 shlibpath_var=LIBPATH 15787 15788 # AIX 3 has no versioning support, so we append a major version to the name. 15789 soname_spec='${libname}${release}${shared_ext}$major' 15790 ;; 15791 15792aix[4-9]*) 15793 version_type=linux 15794 need_lib_prefix=no 15795 need_version=no 15796 hardcode_into_libs=yes 15797 if test "$host_cpu" = ia64; then 15798 # AIX 5 supports IA64 15799 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15800 shlibpath_var=LD_LIBRARY_PATH 15801 else 15802 # With GCC up to 2.95.x, collect2 would create an import file 15803 # for dependence libraries. The import file would start with 15804 # the line `#! .'. This would cause the generated library to 15805 # depend on `.', always an invalid library. This was fixed in 15806 # development snapshots of GCC prior to 3.0. 15807 case $host_os in 15808 aix4 | aix4.[01] | aix4.[01].*) 15809 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15810 echo ' yes ' 15811 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15812 : 15813 else 15814 can_build_shared=no 15815 fi 15816 ;; 15817 esac 15818 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15819 # soname into executable. Probably we can add versioning support to 15820 # collect2, so additional links can be useful in future. 15821 if test "$aix_use_runtimelinking" = yes; then 15822 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15823 # instead of lib<name>.a to let people know that these are not 15824 # typical AIX shared libraries. 15825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15826 else 15827 # We preserve .a as extension for shared libraries through AIX4.2 15828 # and later when we are not doing run time linking. 15829 library_names_spec='${libname}${release}.a $libname.a' 15830 soname_spec='${libname}${release}${shared_ext}$major' 15831 fi 15832 shlibpath_var=LIBPATH 15833 fi 15834 ;; 15835 15836amigaos*) 15837 library_names_spec='$libname.ixlibrary $libname.a' 15838 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15839 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' 15840 ;; 15841 15842beos*) 15843 library_names_spec='${libname}${shared_ext}' 15844 dynamic_linker="$host_os ld.so" 15845 shlibpath_var=LIBRARY_PATH 15846 ;; 15847 15848bsdi[45]*) 15849 version_type=linux 15850 need_version=no 15851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15852 soname_spec='${libname}${release}${shared_ext}$major' 15853 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15854 shlibpath_var=LD_LIBRARY_PATH 15855 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15856 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15857 # the default ld.so.conf also contains /usr/contrib/lib and 15858 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15859 # libtool to hard-code these into programs 15860 ;; 15861 15862cygwin* | mingw* | pw32*) 15863 version_type=windows 15864 shrext_cmds=".dll" 15865 need_version=no 15866 need_lib_prefix=no 15867 15868 case $GCC,$host_os in 15869 yes,cygwin* | yes,mingw* | yes,pw32*) 15870 library_names_spec='$libname.dll.a' 15871 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15872 postinstall_cmds='base_file=`basename \${file}`~ 15873 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15874 dldir=$destdir/`dirname \$dlpath`~ 15875 test -d \$dldir || mkdir -p \$dldir~ 15876 $install_prog $dir/$dlname \$dldir/$dlname~ 15877 chmod a+x \$dldir/$dlname' 15878 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15879 dlpath=$dir/\$dldll~ 15880 $rm \$dlpath' 15881 shlibpath_overrides_runpath=yes 15882 15883 case $host_os in 15884 cygwin*) 15885 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15886 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15887 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15888 ;; 15889 mingw*) 15890 # MinGW DLLs use traditional 'lib' prefix 15891 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15892 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15893 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15894 # It is most probably a Windows format PATH printed by 15895 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15896 # path with ; separators, and with drive letters. We can handle the 15897 # drive letters (cygwin fileutils understands them), so leave them, 15898 # especially as we might pass files found there to a mingw objdump, 15899 # which wouldn't understand a cygwinified path. Ahh. 15900 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15901 else 15902 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15903 fi 15904 ;; 15905 pw32*) 15906 # pw32 DLLs use 'pw' prefix rather than 'lib' 15907 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15908 ;; 15909 esac 15910 ;; 15911 15912 *) 15913 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15914 ;; 15915 esac 15916 dynamic_linker='Win32 ld.exe' 15917 # FIXME: first we should search . and the directory the executable is in 15918 shlibpath_var=PATH 15919 ;; 15920 15921darwin* | rhapsody*) 15922 dynamic_linker="$host_os dyld" 15923 version_type=darwin 15924 need_lib_prefix=no 15925 need_version=no 15926 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15927 soname_spec='${libname}${release}${major}$shared_ext' 15928 shlibpath_overrides_runpath=yes 15929 shlibpath_var=DYLD_LIBRARY_PATH 15930 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15931 15932 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15933 ;; 15934 15935dgux*) 15936 version_type=linux 15937 need_lib_prefix=no 15938 need_version=no 15939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15940 soname_spec='${libname}${release}${shared_ext}$major' 15941 shlibpath_var=LD_LIBRARY_PATH 15942 ;; 15943 15944freebsd1*) 15945 dynamic_linker=no 15946 ;; 15947 15948freebsd* | dragonfly*) 15949 # DragonFly does not have aout. When/if they implement a new 15950 # versioning mechanism, adjust this. 15951 if test -x /usr/bin/objformat; then 15952 objformat=`/usr/bin/objformat` 15953 else 15954 case $host_os in 15955 freebsd[123]*) objformat=aout ;; 15956 *) objformat=elf ;; 15957 esac 15958 fi 15959 version_type=freebsd-$objformat 15960 case $version_type in 15961 freebsd-elf*) 15962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15963 need_version=no 15964 need_lib_prefix=no 15965 ;; 15966 freebsd-*) 15967 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15968 need_version=yes 15969 ;; 15970 esac 15971 shlibpath_var=LD_LIBRARY_PATH 15972 case $host_os in 15973 freebsd2*) 15974 shlibpath_overrides_runpath=yes 15975 ;; 15976 freebsd3.[01]* | freebsdelf3.[01]*) 15977 shlibpath_overrides_runpath=yes 15978 hardcode_into_libs=yes 15979 ;; 15980 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15981 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15982 shlibpath_overrides_runpath=no 15983 hardcode_into_libs=yes 15984 ;; 15985 *) # from 4.6 on, and DragonFly 15986 shlibpath_overrides_runpath=yes 15987 hardcode_into_libs=yes 15988 ;; 15989 esac 15990 ;; 15991 15992gnu*) 15993 version_type=linux 15994 need_lib_prefix=no 15995 need_version=no 15996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15997 soname_spec='${libname}${release}${shared_ext}$major' 15998 shlibpath_var=LD_LIBRARY_PATH 15999 hardcode_into_libs=yes 16000 ;; 16001 16002hpux9* | hpux10* | hpux11*) 16003 # Give a soname corresponding to the major version so that dld.sl refuses to 16004 # link against other versions. 16005 version_type=sunos 16006 need_lib_prefix=no 16007 need_version=no 16008 case $host_cpu in 16009 ia64*) 16010 shrext_cmds='.so' 16011 hardcode_into_libs=yes 16012 dynamic_linker="$host_os dld.so" 16013 shlibpath_var=LD_LIBRARY_PATH 16014 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16016 soname_spec='${libname}${release}${shared_ext}$major' 16017 if test "X$HPUX_IA64_MODE" = X32; then 16018 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16019 else 16020 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16021 fi 16022 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16023 ;; 16024 hppa*64*) 16025 shrext_cmds='.sl' 16026 hardcode_into_libs=yes 16027 dynamic_linker="$host_os dld.sl" 16028 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16029 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16031 soname_spec='${libname}${release}${shared_ext}$major' 16032 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16033 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16034 ;; 16035 *) 16036 shrext_cmds='.sl' 16037 dynamic_linker="$host_os dld.sl" 16038 shlibpath_var=SHLIB_PATH 16039 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16041 soname_spec='${libname}${release}${shared_ext}$major' 16042 ;; 16043 esac 16044 # HP-UX runs *really* slowly unless shared libraries are mode 555. 16045 postinstall_cmds='chmod 555 $lib' 16046 ;; 16047 16048interix[3-9]*) 16049 version_type=linux 16050 need_lib_prefix=no 16051 need_version=no 16052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16053 soname_spec='${libname}${release}${shared_ext}$major' 16054 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16055 shlibpath_var=LD_LIBRARY_PATH 16056 shlibpath_overrides_runpath=no 16057 hardcode_into_libs=yes 16058 ;; 16059 16060irix5* | irix6* | nonstopux*) 16061 case $host_os in 16062 nonstopux*) version_type=nonstopux ;; 16063 *) 16064 if test "$lt_cv_prog_gnu_ld" = yes; then 16065 version_type=linux 16066 else 16067 version_type=irix 16068 fi ;; 16069 esac 16070 need_lib_prefix=no 16071 need_version=no 16072 soname_spec='${libname}${release}${shared_ext}$major' 16073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16074 case $host_os in 16075 irix5* | nonstopux*) 16076 libsuff= shlibsuff= 16077 ;; 16078 *) 16079 case $LD in # libtool.m4 will add one of these switches to LD 16080 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16081 libsuff= shlibsuff= libmagic=32-bit;; 16082 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16083 libsuff=32 shlibsuff=N32 libmagic=N32;; 16084 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16085 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16086 *) libsuff= shlibsuff= libmagic=never-match;; 16087 esac 16088 ;; 16089 esac 16090 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16091 shlibpath_overrides_runpath=no 16092 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16093 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16094 hardcode_into_libs=yes 16095 ;; 16096 16097# No shared lib support for Linux oldld, aout, or coff. 16098linux*oldld* | linux*aout* | linux*coff*) 16099 dynamic_linker=no 16100 ;; 16101 16102# This must be Linux ELF. 16103linux* | k*bsd*-gnu) 16104 version_type=linux 16105 need_lib_prefix=no 16106 need_version=no 16107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16108 soname_spec='${libname}${release}${shared_ext}$major' 16109 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16110 shlibpath_var=LD_LIBRARY_PATH 16111 shlibpath_overrides_runpath=no 16112 # This implies no fast_install, which is unacceptable. 16113 # Some rework will be needed to allow for fast_install 16114 # before this can be enabled. 16115 hardcode_into_libs=yes 16116 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16117 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16118 16119 # Append ld.so.conf contents to the search path 16120 if test -f /etc/ld.so.conf; then 16121 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' ' '` 16122 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 16123 fi 16124 16125 # We used to test for /lib/ld.so.1 and disable shared libraries on 16126 # powerpc, because MkLinux only supported shared libraries with the 16127 # GNU dynamic linker. Since this was broken with cross compilers, 16128 # most powerpc-linux boxes support dynamic linking these days and 16129 # people can always --disable-shared, the test was removed, and we 16130 # assume the GNU/Linux dynamic linker is in use. 16131 dynamic_linker='GNU/Linux ld.so' 16132 ;; 16133 16134netbsd*) 16135 version_type=sunos 16136 need_lib_prefix=no 16137 need_version=no 16138 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16140 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16141 dynamic_linker='NetBSD (a.out) ld.so' 16142 else 16143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16144 soname_spec='${libname}${release}${shared_ext}$major' 16145 dynamic_linker='NetBSD ld.elf_so' 16146 fi 16147 shlibpath_var=LD_LIBRARY_PATH 16148 shlibpath_overrides_runpath=yes 16149 hardcode_into_libs=yes 16150 ;; 16151 16152newsos6) 16153 version_type=linux 16154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16155 shlibpath_var=LD_LIBRARY_PATH 16156 shlibpath_overrides_runpath=yes 16157 ;; 16158 16159nto-qnx*) 16160 version_type=linux 16161 need_lib_prefix=no 16162 need_version=no 16163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16164 soname_spec='${libname}${release}${shared_ext}$major' 16165 shlibpath_var=LD_LIBRARY_PATH 16166 shlibpath_overrides_runpath=yes 16167 ;; 16168 16169openbsd*) 16170 version_type=sunos 16171 sys_lib_dlsearch_path_spec="/usr/lib" 16172 need_lib_prefix=no 16173 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16174 case $host_os in 16175 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16176 *) need_version=no ;; 16177 esac 16178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16179 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16180 shlibpath_var=LD_LIBRARY_PATH 16181 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16182 case $host_os in 16183 openbsd2.[89] | openbsd2.[89].*) 16184 shlibpath_overrides_runpath=no 16185 ;; 16186 *) 16187 shlibpath_overrides_runpath=yes 16188 ;; 16189 esac 16190 else 16191 shlibpath_overrides_runpath=yes 16192 fi 16193 ;; 16194 16195os2*) 16196 libname_spec='$name' 16197 shrext_cmds=".dll" 16198 need_lib_prefix=no 16199 library_names_spec='$libname${shared_ext} $libname.a' 16200 dynamic_linker='OS/2 ld.exe' 16201 shlibpath_var=LIBPATH 16202 ;; 16203 16204osf3* | osf4* | osf5*) 16205 version_type=osf 16206 need_lib_prefix=no 16207 need_version=no 16208 soname_spec='${libname}${release}${shared_ext}$major' 16209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16210 shlibpath_var=LD_LIBRARY_PATH 16211 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16212 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16213 ;; 16214 16215rdos*) 16216 dynamic_linker=no 16217 ;; 16218 16219solaris*) 16220 version_type=linux 16221 need_lib_prefix=no 16222 need_version=no 16223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16224 soname_spec='${libname}${release}${shared_ext}$major' 16225 shlibpath_var=LD_LIBRARY_PATH 16226 shlibpath_overrides_runpath=yes 16227 hardcode_into_libs=yes 16228 # ldd complains unless libraries are executable 16229 postinstall_cmds='chmod +x $lib' 16230 ;; 16231 16232sunos4*) 16233 version_type=sunos 16234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16235 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16236 shlibpath_var=LD_LIBRARY_PATH 16237 shlibpath_overrides_runpath=yes 16238 if test "$with_gnu_ld" = yes; then 16239 need_lib_prefix=no 16240 fi 16241 need_version=yes 16242 ;; 16243 16244sysv4 | sysv4.3*) 16245 version_type=linux 16246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16247 soname_spec='${libname}${release}${shared_ext}$major' 16248 shlibpath_var=LD_LIBRARY_PATH 16249 case $host_vendor in 16250 sni) 16251 shlibpath_overrides_runpath=no 16252 need_lib_prefix=no 16253 export_dynamic_flag_spec='${wl}-Blargedynsym' 16254 runpath_var=LD_RUN_PATH 16255 ;; 16256 siemens) 16257 need_lib_prefix=no 16258 ;; 16259 motorola) 16260 need_lib_prefix=no 16261 need_version=no 16262 shlibpath_overrides_runpath=no 16263 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16264 ;; 16265 esac 16266 ;; 16267 16268sysv4*MP*) 16269 if test -d /usr/nec ;then 16270 version_type=linux 16271 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16272 soname_spec='$libname${shared_ext}.$major' 16273 shlibpath_var=LD_LIBRARY_PATH 16274 fi 16275 ;; 16276 16277sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16278 version_type=freebsd-elf 16279 need_lib_prefix=no 16280 need_version=no 16281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16282 soname_spec='${libname}${release}${shared_ext}$major' 16283 shlibpath_var=LD_LIBRARY_PATH 16284 hardcode_into_libs=yes 16285 if test "$with_gnu_ld" = yes; then 16286 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16287 shlibpath_overrides_runpath=no 16288 else 16289 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16290 shlibpath_overrides_runpath=yes 16291 case $host_os in 16292 sco3.2v5*) 16293 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16294 ;; 16295 esac 16296 fi 16297 sys_lib_dlsearch_path_spec='/usr/lib' 16298 ;; 16299 16300uts4*) 16301 version_type=linux 16302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16303 soname_spec='${libname}${release}${shared_ext}$major' 16304 shlibpath_var=LD_LIBRARY_PATH 16305 ;; 16306 16307*) 16308 dynamic_linker=no 16309 ;; 16310esac 16311{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16312$as_echo "$dynamic_linker" >&6; } 16313test "$dynamic_linker" = no && can_build_shared=no 16314 16315if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 16316 $as_echo_n "(cached) " >&6 16317else 16318 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 16319fi 16320 16321sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 16322if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 16323 $as_echo_n "(cached) " >&6 16324else 16325 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 16326fi 16327 16328sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 16329 16330variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16331if test "$GCC" = yes; then 16332 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16333fi 16334 16335{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16336$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16337hardcode_action_F77= 16338if test -n "$hardcode_libdir_flag_spec_F77" || \ 16339 test -n "$runpath_var_F77" || \ 16340 test "X$hardcode_automatic_F77" = "Xyes" ; then 16341 16342 # We can hardcode non-existant directories. 16343 if test "$hardcode_direct_F77" != no && 16344 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16345 # have to relink, otherwise we might link with an installed library 16346 # when we should be linking with a yet-to-be-installed one 16347 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 16348 test "$hardcode_minus_L_F77" != no; then 16349 # Linking always hardcodes the temporary library directory. 16350 hardcode_action_F77=relink 16351 else 16352 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16353 hardcode_action_F77=immediate 16354 fi 16355else 16356 # We cannot hardcode anything, or else we can only hardcode existing 16357 # directories. 16358 hardcode_action_F77=unsupported 16359fi 16360{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 16361$as_echo "$hardcode_action_F77" >&6; } 16362 16363if test "$hardcode_action_F77" = relink; then 16364 # Fast installation is not supported 16365 enable_fast_install=no 16366elif test "$shlibpath_overrides_runpath" = yes || 16367 test "$enable_shared" = no; then 16368 # Fast installation is not necessary 16369 enable_fast_install=needless 16370fi 16371 16372 16373# The else clause should only fire when bootstrapping the 16374# libtool distribution, otherwise you forgot to ship ltmain.sh 16375# with your package, and you will get complaints that there are 16376# no rules to generate ltmain.sh. 16377if test -f "$ltmain"; then 16378 # See if we are running on zsh, and set the options which allow our commands through 16379 # without removal of \ escapes. 16380 if test -n "${ZSH_VERSION+set}" ; then 16381 setopt NO_GLOB_SUBST 16382 fi 16383 # Now quote all the things that may contain metacharacters while being 16384 # careful not to overquote the AC_SUBSTed values. We take copies of the 16385 # variables and quote the copies for generation of the libtool script. 16386 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 16387 SED SHELL STRIP \ 16388 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16389 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16390 deplibs_check_method reload_flag reload_cmds need_locks \ 16391 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16392 lt_cv_sys_global_symbol_to_c_name_address \ 16393 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16394 old_postinstall_cmds old_postuninstall_cmds \ 16395 compiler_F77 \ 16396 CC_F77 \ 16397 LD_F77 \ 16398 lt_prog_compiler_wl_F77 \ 16399 lt_prog_compiler_pic_F77 \ 16400 lt_prog_compiler_static_F77 \ 16401 lt_prog_compiler_no_builtin_flag_F77 \ 16402 export_dynamic_flag_spec_F77 \ 16403 thread_safe_flag_spec_F77 \ 16404 whole_archive_flag_spec_F77 \ 16405 enable_shared_with_static_runtimes_F77 \ 16406 old_archive_cmds_F77 \ 16407 old_archive_from_new_cmds_F77 \ 16408 predep_objects_F77 \ 16409 postdep_objects_F77 \ 16410 predeps_F77 \ 16411 postdeps_F77 \ 16412 compiler_lib_search_path_F77 \ 16413 compiler_lib_search_dirs_F77 \ 16414 archive_cmds_F77 \ 16415 archive_expsym_cmds_F77 \ 16416 postinstall_cmds_F77 \ 16417 postuninstall_cmds_F77 \ 16418 old_archive_from_expsyms_cmds_F77 \ 16419 allow_undefined_flag_F77 \ 16420 no_undefined_flag_F77 \ 16421 export_symbols_cmds_F77 \ 16422 hardcode_libdir_flag_spec_F77 \ 16423 hardcode_libdir_flag_spec_ld_F77 \ 16424 hardcode_libdir_separator_F77 \ 16425 hardcode_automatic_F77 \ 16426 module_cmds_F77 \ 16427 module_expsym_cmds_F77 \ 16428 lt_cv_prog_compiler_c_o_F77 \ 16429 fix_srcfile_path_F77 \ 16430 exclude_expsyms_F77 \ 16431 include_expsyms_F77; do 16432 16433 case $var in 16434 old_archive_cmds_F77 | \ 16435 old_archive_from_new_cmds_F77 | \ 16436 archive_cmds_F77 | \ 16437 archive_expsym_cmds_F77 | \ 16438 module_cmds_F77 | \ 16439 module_expsym_cmds_F77 | \ 16440 old_archive_from_expsyms_cmds_F77 | \ 16441 export_symbols_cmds_F77 | \ 16442 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16443 postinstall_cmds | postuninstall_cmds | \ 16444 old_postinstall_cmds | old_postuninstall_cmds | \ 16445 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16446 # Double-quote double-evaled strings. 16447 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16448 ;; 16449 *) 16450 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16451 ;; 16452 esac 16453 done 16454 16455 case $lt_echo in 16456 *'\$0 --fallback-echo"') 16457 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16458 ;; 16459 esac 16460 16461cfgfile="$ofile" 16462 16463 cat <<__EOF__ >> "$cfgfile" 16464# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16465 16466# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16467 16468# Shell to use when invoking shell scripts. 16469SHELL=$lt_SHELL 16470 16471# Whether or not to build shared libraries. 16472build_libtool_libs=$enable_shared 16473 16474# Whether or not to build static libraries. 16475build_old_libs=$enable_static 16476 16477# Whether or not to add -lc for building shared libraries. 16478build_libtool_need_lc=$archive_cmds_need_lc_F77 16479 16480# Whether or not to disallow shared libs when runtime libs are static 16481allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 16482 16483# Whether or not to optimize for fast installation. 16484fast_install=$enable_fast_install 16485 16486# The host system. 16487host_alias=$host_alias 16488host=$host 16489host_os=$host_os 16490 16491# The build system. 16492build_alias=$build_alias 16493build=$build 16494build_os=$build_os 16495 16496# An echo program that does not interpret backslashes. 16497echo=$lt_echo 16498 16499# The archiver. 16500AR=$lt_AR 16501AR_FLAGS=$lt_AR_FLAGS 16502 16503# A C compiler. 16504LTCC=$lt_LTCC 16505 16506# LTCC compiler flags. 16507LTCFLAGS=$lt_LTCFLAGS 16508 16509# A language-specific compiler. 16510CC=$lt_compiler_F77 16511 16512# Is the compiler the GNU C compiler? 16513with_gcc=$GCC_F77 16514 16515# An ERE matcher. 16516EGREP=$lt_EGREP 16517 16518# The linker used to build libraries. 16519LD=$lt_LD_F77 16520 16521# Whether we need hard or soft links. 16522LN_S=$lt_LN_S 16523 16524# A BSD-compatible nm program. 16525NM=$lt_NM 16526 16527# A symbol stripping program 16528STRIP=$lt_STRIP 16529 16530# Used to examine libraries when file_magic_cmd begins "file" 16531MAGIC_CMD=$MAGIC_CMD 16532 16533# Used on cygwin: DLL creation program. 16534DLLTOOL="$DLLTOOL" 16535 16536# Used on cygwin: object dumper. 16537OBJDUMP="$OBJDUMP" 16538 16539# Used on cygwin: assembler. 16540AS="$AS" 16541 16542# The name of the directory that contains temporary libtool files. 16543objdir=$objdir 16544 16545# How to create reloadable object files. 16546reload_flag=$lt_reload_flag 16547reload_cmds=$lt_reload_cmds 16548 16549# How to pass a linker flag through the compiler. 16550wl=$lt_lt_prog_compiler_wl_F77 16551 16552# Object file suffix (normally "o"). 16553objext="$ac_objext" 16554 16555# Old archive suffix (normally "a"). 16556libext="$libext" 16557 16558# Shared library suffix (normally ".so"). 16559shrext_cmds='$shrext_cmds' 16560 16561# Executable file suffix (normally ""). 16562exeext="$exeext" 16563 16564# Additional compiler flags for building library objects. 16565pic_flag=$lt_lt_prog_compiler_pic_F77 16566pic_mode=$pic_mode 16567 16568# What is the maximum length of a command? 16569max_cmd_len=$lt_cv_sys_max_cmd_len 16570 16571# Does compiler simultaneously support -c and -o options? 16572compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16573 16574# Must we lock files when doing compilation? 16575need_locks=$lt_need_locks 16576 16577# Do we need the lib prefix for modules? 16578need_lib_prefix=$need_lib_prefix 16579 16580# Do we need a version for libraries? 16581need_version=$need_version 16582 16583# Whether dlopen is supported. 16584dlopen_support=$enable_dlopen 16585 16586# Whether dlopen of programs is supported. 16587dlopen_self=$enable_dlopen_self 16588 16589# Whether dlopen of statically linked programs is supported. 16590dlopen_self_static=$enable_dlopen_self_static 16591 16592# Compiler flag to prevent dynamic linking. 16593link_static_flag=$lt_lt_prog_compiler_static_F77 16594 16595# Compiler flag to turn off builtin functions. 16596no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16597 16598# Compiler flag to allow reflexive dlopens. 16599export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16600 16601# Compiler flag to generate shared objects directly from archives. 16602whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16603 16604# Compiler flag to generate thread-safe objects. 16605thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16606 16607# Library versioning type. 16608version_type=$version_type 16609 16610# Format of library name prefix. 16611libname_spec=$lt_libname_spec 16612 16613# List of archive names. First name is the real one, the rest are links. 16614# The last name is the one that the linker finds with -lNAME. 16615library_names_spec=$lt_library_names_spec 16616 16617# The coded name of the library, if different from the real name. 16618soname_spec=$lt_soname_spec 16619 16620# Commands used to build and install an old-style archive. 16621RANLIB=$lt_RANLIB 16622old_archive_cmds=$lt_old_archive_cmds_F77 16623old_postinstall_cmds=$lt_old_postinstall_cmds 16624old_postuninstall_cmds=$lt_old_postuninstall_cmds 16625 16626# Create an old-style archive from a shared archive. 16627old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16628 16629# Create a temporary old-style archive to link instead of a shared archive. 16630old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16631 16632# Commands used to build and install a shared archive. 16633archive_cmds=$lt_archive_cmds_F77 16634archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16635postinstall_cmds=$lt_postinstall_cmds 16636postuninstall_cmds=$lt_postuninstall_cmds 16637 16638# Commands used to build a loadable module (assumed same as above if empty) 16639module_cmds=$lt_module_cmds_F77 16640module_expsym_cmds=$lt_module_expsym_cmds_F77 16641 16642# Commands to strip libraries. 16643old_striplib=$lt_old_striplib 16644striplib=$lt_striplib 16645 16646# Dependencies to place before the objects being linked to create a 16647# shared library. 16648predep_objects=$lt_predep_objects_F77 16649 16650# Dependencies to place after the objects being linked to create a 16651# shared library. 16652postdep_objects=$lt_postdep_objects_F77 16653 16654# Dependencies to place before the objects being linked to create a 16655# shared library. 16656predeps=$lt_predeps_F77 16657 16658# Dependencies to place after the objects being linked to create a 16659# shared library. 16660postdeps=$lt_postdeps_F77 16661 16662# The directories searched by this compiler when creating a shared 16663# library 16664compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77 16665 16666# The library search path used internally by the compiler when linking 16667# a shared library. 16668compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16669 16670# Method to check whether dependent libraries are shared objects. 16671deplibs_check_method=$lt_deplibs_check_method 16672 16673# Command to use when deplibs_check_method == file_magic. 16674file_magic_cmd=$lt_file_magic_cmd 16675 16676# Flag that allows shared libraries with undefined symbols to be built. 16677allow_undefined_flag=$lt_allow_undefined_flag_F77 16678 16679# Flag that forces no undefined symbols. 16680no_undefined_flag=$lt_no_undefined_flag_F77 16681 16682# Commands used to finish a libtool library installation in a directory. 16683finish_cmds=$lt_finish_cmds 16684 16685# Same as above, but a single script fragment to be evaled but not shown. 16686finish_eval=$lt_finish_eval 16687 16688# Take the output of nm and produce a listing of raw symbols and C names. 16689global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16690 16691# Transform the output of nm in a proper C declaration 16692global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16693 16694# Transform the output of nm in a C name address pair 16695global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16696 16697# This is the shared library runtime path variable. 16698runpath_var=$runpath_var 16699 16700# This is the shared library path variable. 16701shlibpath_var=$shlibpath_var 16702 16703# Is shlibpath searched before the hard-coded library search path? 16704shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16705 16706# How to hardcode a shared library path into an executable. 16707hardcode_action=$hardcode_action_F77 16708 16709# Whether we should hardcode library paths into libraries. 16710hardcode_into_libs=$hardcode_into_libs 16711 16712# Flag to hardcode \$libdir into a binary during linking. 16713# This must work even if \$libdir does not exist. 16714hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16715 16716# If ld is used when linking, flag to hardcode \$libdir into 16717# a binary during linking. This must work even if \$libdir does 16718# not exist. 16719hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16720 16721# Whether we need a single -rpath flag with a separated argument. 16722hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16723 16724# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16725# resulting binary. 16726hardcode_direct=$hardcode_direct_F77 16727 16728# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16729# resulting binary. 16730hardcode_minus_L=$hardcode_minus_L_F77 16731 16732# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16733# the resulting binary. 16734hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16735 16736# Set to yes if building a shared library automatically hardcodes DIR into the library 16737# and all subsequent libraries and executables linked against it. 16738hardcode_automatic=$hardcode_automatic_F77 16739 16740# Variables whose values should be saved in libtool wrapper scripts and 16741# restored at relink time. 16742variables_saved_for_relink="$variables_saved_for_relink" 16743 16744# Whether libtool must link a program against all its dependency libraries. 16745link_all_deplibs=$link_all_deplibs_F77 16746 16747# Compile-time system search path for libraries 16748sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16749 16750# Run-time system search path for libraries 16751sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16752 16753# Fix the shell variable \$srcfile for the compiler. 16754fix_srcfile_path=$lt_fix_srcfile_path 16755 16756# Set to yes if exported symbols are required. 16757always_export_symbols=$always_export_symbols_F77 16758 16759# The commands to list exported symbols. 16760export_symbols_cmds=$lt_export_symbols_cmds_F77 16761 16762# The commands to extract the exported symbol list from a shared archive. 16763extract_expsyms_cmds=$lt_extract_expsyms_cmds 16764 16765# Symbols that should not be listed in the preloaded symbols. 16766exclude_expsyms=$lt_exclude_expsyms_F77 16767 16768# Symbols that must always be exported. 16769include_expsyms=$lt_include_expsyms_F77 16770 16771# ### END LIBTOOL TAG CONFIG: $tagname 16772 16773__EOF__ 16774 16775 16776else 16777 # If there is no Makefile yet, we rely on a make rule to execute 16778 # `config.status --recheck' to rerun these tests and create the 16779 # libtool script then. 16780 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16781 if test -f "$ltmain_in"; then 16782 test -f Makefile && make "$ltmain" 16783 fi 16784fi 16785 16786 16787ac_ext=c 16788ac_cpp='$CPP $CPPFLAGS' 16789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16791ac_compiler_gnu=$ac_cv_c_compiler_gnu 16792 16793CC="$lt_save_CC" 16794 16795 else 16796 tagname="" 16797 fi 16798 ;; 16799 16800 GCJ) 16801 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16802 16803 16804# Source file extension for Java test sources. 16805ac_ext=java 16806 16807# Object file extension for compiled Java test sources. 16808objext=o 16809objext_GCJ=$objext 16810 16811# Code to be used in simple compile tests 16812lt_simple_compile_test_code="class foo {}" 16813 16814# Code to be used in simple link tests 16815lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' 16816 16817# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16818 16819# If no C compiler was specified, use CC. 16820LTCC=${LTCC-"$CC"} 16821 16822# If no C compiler flags were specified, use CFLAGS. 16823LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16824 16825# Allow CC to be a program name with arguments. 16826compiler=$CC 16827 16828 16829# save warnings/boilerplate of simple test code 16830ac_outfile=conftest.$ac_objext 16831echo "$lt_simple_compile_test_code" >conftest.$ac_ext 16832eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16833_lt_compiler_boilerplate=`cat conftest.err` 16834$rm conftest* 16835 16836ac_outfile=conftest.$ac_objext 16837echo "$lt_simple_link_test_code" >conftest.$ac_ext 16838eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16839_lt_linker_boilerplate=`cat conftest.err` 16840$rm -r conftest* 16841 16842 16843# Allow CC to be a program name with arguments. 16844lt_save_CC="$CC" 16845CC=${GCJ-"gcj"} 16846compiler=$CC 16847compiler_GCJ=$CC 16848for cc_temp in $compiler""; do 16849 case $cc_temp in 16850 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16851 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16852 \-*) ;; 16853 *) break;; 16854 esac 16855done 16856cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16857 16858 16859# GCJ did not exist at the time GCC didn't implicitly link libc in. 16860archive_cmds_need_lc_GCJ=no 16861 16862old_archive_cmds_GCJ=$old_archive_cmds 16863 16864 16865lt_prog_compiler_no_builtin_flag_GCJ= 16866 16867if test "$GCC" = yes; then 16868 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16869 16870 16871{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16872$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 16873if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16874 $as_echo_n "(cached) " >&6 16875else 16876 lt_cv_prog_compiler_rtti_exceptions=no 16877 ac_outfile=conftest.$ac_objext 16878 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16879 lt_compiler_flag="-fno-rtti -fno-exceptions" 16880 # Insert the option either (1) after the last *FLAGS variable, or 16881 # (2) before a word containing "conftest.", or (3) at the end. 16882 # Note that $ac_compile itself does not contain backslashes and begins 16883 # with a dollar sign (not a hyphen), so the echo should work correctly. 16884 # The option is referenced via a variable to avoid confusing sed. 16885 lt_compile=`echo "$ac_compile" | $SED \ 16886 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16887 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16888 -e 's:$: $lt_compiler_flag:'` 16889 (eval echo "\"\$as_me:16889: $lt_compile\"" >&5) 16890 (eval "$lt_compile" 2>conftest.err) 16891 ac_status=$? 16892 cat conftest.err >&5 16893 echo "$as_me:16893: \$? = $ac_status" >&5 16894 if (exit $ac_status) && test -s "$ac_outfile"; then 16895 # The compiler can only warn and ignore the option if not recognized 16896 # So say no if there are warnings other than the usual output. 16897 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16898 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16899 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16900 lt_cv_prog_compiler_rtti_exceptions=yes 16901 fi 16902 fi 16903 $rm conftest* 16904 16905fi 16906{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16907$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16908 16909if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16910 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16911else 16912 : 16913fi 16914 16915fi 16916 16917lt_prog_compiler_wl_GCJ= 16918lt_prog_compiler_pic_GCJ= 16919lt_prog_compiler_static_GCJ= 16920 16921{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16922$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 16923 16924 if test "$GCC" = yes; then 16925 lt_prog_compiler_wl_GCJ='-Wl,' 16926 lt_prog_compiler_static_GCJ='-static' 16927 16928 case $host_os in 16929 aix*) 16930 # All AIX code is PIC. 16931 if test "$host_cpu" = ia64; then 16932 # AIX 5 now supports IA64 processor 16933 lt_prog_compiler_static_GCJ='-Bstatic' 16934 fi 16935 ;; 16936 16937 amigaos*) 16938 # FIXME: we need at least 68020 code to build shared libraries, but 16939 # adding the `-m68020' flag to GCC prevents building anything better, 16940 # like `-m68040'. 16941 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16942 ;; 16943 16944 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16945 # PIC is the default for these OSes. 16946 ;; 16947 16948 mingw* | cygwin* | pw32* | os2*) 16949 # This hack is so that the source file can tell whether it is being 16950 # built for inclusion in a dll (and should export symbols for example). 16951 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16952 # (--disable-auto-import) libraries 16953 16954 ;; 16955 16956 darwin* | rhapsody*) 16957 # PIC is the default on this platform 16958 # Common symbols not allowed in MH_DYLIB files 16959 lt_prog_compiler_pic_GCJ='-fno-common' 16960 ;; 16961 16962 interix[3-9]*) 16963 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16964 # Instead, we relocate shared libraries at runtime. 16965 ;; 16966 16967 msdosdjgpp*) 16968 # Just because we use GCC doesn't mean we suddenly get shared libraries 16969 # on systems that don't support them. 16970 lt_prog_compiler_can_build_shared_GCJ=no 16971 enable_shared=no 16972 ;; 16973 16974 sysv4*MP*) 16975 if test -d /usr/nec; then 16976 lt_prog_compiler_pic_GCJ=-Kconform_pic 16977 fi 16978 ;; 16979 16980 hpux*) 16981 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16982 # not for PA HP-UX. 16983 case $host_cpu in 16984 hppa*64*|ia64*) 16985 # +Z the default 16986 ;; 16987 *) 16988 lt_prog_compiler_pic_GCJ='-fPIC' 16989 ;; 16990 esac 16991 ;; 16992 16993 *) 16994 lt_prog_compiler_pic_GCJ='-fPIC' 16995 ;; 16996 esac 16997 else 16998 # PORTME Check for flag to pass linker flags through the system compiler. 16999 case $host_os in 17000 aix*) 17001 lt_prog_compiler_wl_GCJ='-Wl,' 17002 if test "$host_cpu" = ia64; then 17003 # AIX 5 now supports IA64 processor 17004 lt_prog_compiler_static_GCJ='-Bstatic' 17005 else 17006 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 17007 fi 17008 ;; 17009 darwin*) 17010 # PIC is the default on this platform 17011 # Common symbols not allowed in MH_DYLIB files 17012 case $cc_basename in 17013 xlc*) 17014 lt_prog_compiler_pic_GCJ='-qnocommon' 17015 lt_prog_compiler_wl_GCJ='-Wl,' 17016 ;; 17017 esac 17018 ;; 17019 17020 mingw* | cygwin* | pw32* | os2*) 17021 # This hack is so that the source file can tell whether it is being 17022 # built for inclusion in a dll (and should export symbols for example). 17023 17024 ;; 17025 17026 hpux9* | hpux10* | hpux11*) 17027 lt_prog_compiler_wl_GCJ='-Wl,' 17028 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17029 # not for PA HP-UX. 17030 case $host_cpu in 17031 hppa*64*|ia64*) 17032 # +Z the default 17033 ;; 17034 *) 17035 lt_prog_compiler_pic_GCJ='+Z' 17036 ;; 17037 esac 17038 # Is there a better lt_prog_compiler_static that works with the bundled CC? 17039 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 17040 ;; 17041 17042 irix5* | irix6* | nonstopux*) 17043 lt_prog_compiler_wl_GCJ='-Wl,' 17044 # PIC (with -KPIC) is the default. 17045 lt_prog_compiler_static_GCJ='-non_shared' 17046 ;; 17047 17048 newsos6) 17049 lt_prog_compiler_pic_GCJ='-KPIC' 17050 lt_prog_compiler_static_GCJ='-Bstatic' 17051 ;; 17052 17053 linux* | k*bsd*-gnu) 17054 case $cc_basename in 17055 icc* | ecc*) 17056 lt_prog_compiler_wl_GCJ='-Wl,' 17057 lt_prog_compiler_pic_GCJ='-KPIC' 17058 lt_prog_compiler_static_GCJ='-static' 17059 ;; 17060 pgcc* | pgf77* | pgf90* | pgf95*) 17061 # Portland Group compilers (*not* the Pentium gcc compiler, 17062 # which looks to be a dead project) 17063 lt_prog_compiler_wl_GCJ='-Wl,' 17064 lt_prog_compiler_pic_GCJ='-fpic' 17065 lt_prog_compiler_static_GCJ='-Bstatic' 17066 ;; 17067 ccc*) 17068 lt_prog_compiler_wl_GCJ='-Wl,' 17069 # All Alpha code is PIC. 17070 lt_prog_compiler_static_GCJ='-non_shared' 17071 ;; 17072 *) 17073 case `$CC -V 2>&1 | sed 5q` in 17074 *Sun\ C*) 17075 # Sun C 5.9 17076 lt_prog_compiler_pic_GCJ='-KPIC' 17077 lt_prog_compiler_static_GCJ='-Bstatic' 17078 lt_prog_compiler_wl_GCJ='-Wl,' 17079 ;; 17080 *Sun\ F*) 17081 # Sun Fortran 8.3 passes all unrecognized flags to the linker 17082 lt_prog_compiler_pic_GCJ='-KPIC' 17083 lt_prog_compiler_static_GCJ='-Bstatic' 17084 lt_prog_compiler_wl_GCJ='' 17085 ;; 17086 esac 17087 ;; 17088 esac 17089 ;; 17090 17091 osf3* | osf4* | osf5*) 17092 lt_prog_compiler_wl_GCJ='-Wl,' 17093 # All OSF/1 code is PIC. 17094 lt_prog_compiler_static_GCJ='-non_shared' 17095 ;; 17096 17097 rdos*) 17098 lt_prog_compiler_static_GCJ='-non_shared' 17099 ;; 17100 17101 solaris*) 17102 lt_prog_compiler_pic_GCJ='-KPIC' 17103 lt_prog_compiler_static_GCJ='-Bstatic' 17104 case $cc_basename in 17105 f77* | f90* | f95*) 17106 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 17107 *) 17108 lt_prog_compiler_wl_GCJ='-Wl,';; 17109 esac 17110 ;; 17111 17112 sunos4*) 17113 lt_prog_compiler_wl_GCJ='-Qoption ld ' 17114 lt_prog_compiler_pic_GCJ='-PIC' 17115 lt_prog_compiler_static_GCJ='-Bstatic' 17116 ;; 17117 17118 sysv4 | sysv4.2uw2* | sysv4.3*) 17119 lt_prog_compiler_wl_GCJ='-Wl,' 17120 lt_prog_compiler_pic_GCJ='-KPIC' 17121 lt_prog_compiler_static_GCJ='-Bstatic' 17122 ;; 17123 17124 sysv4*MP*) 17125 if test -d /usr/nec ;then 17126 lt_prog_compiler_pic_GCJ='-Kconform_pic' 17127 lt_prog_compiler_static_GCJ='-Bstatic' 17128 fi 17129 ;; 17130 17131 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 17132 lt_prog_compiler_wl_GCJ='-Wl,' 17133 lt_prog_compiler_pic_GCJ='-KPIC' 17134 lt_prog_compiler_static_GCJ='-Bstatic' 17135 ;; 17136 17137 unicos*) 17138 lt_prog_compiler_wl_GCJ='-Wl,' 17139 lt_prog_compiler_can_build_shared_GCJ=no 17140 ;; 17141 17142 uts4*) 17143 lt_prog_compiler_pic_GCJ='-pic' 17144 lt_prog_compiler_static_GCJ='-Bstatic' 17145 ;; 17146 17147 *) 17148 lt_prog_compiler_can_build_shared_GCJ=no 17149 ;; 17150 esac 17151 fi 17152 17153{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 17154$as_echo "$lt_prog_compiler_pic_GCJ" >&6; } 17155 17156# 17157# Check to make sure the PIC flag actually works. 17158# 17159if test -n "$lt_prog_compiler_pic_GCJ"; then 17160 17161{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 17162$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; } 17163if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then 17164 $as_echo_n "(cached) " >&6 17165else 17166 lt_cv_prog_compiler_pic_works_GCJ=no 17167 ac_outfile=conftest.$ac_objext 17168 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17169 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 17170 # Insert the option either (1) after the last *FLAGS variable, or 17171 # (2) before a word containing "conftest.", or (3) at the end. 17172 # Note that $ac_compile itself does not contain backslashes and begins 17173 # with a dollar sign (not a hyphen), so the echo should work correctly. 17174 # The option is referenced via a variable to avoid confusing sed. 17175 lt_compile=`echo "$ac_compile" | $SED \ 17176 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17177 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17178 -e 's:$: $lt_compiler_flag:'` 17179 (eval echo "\"\$as_me:17179: $lt_compile\"" >&5) 17180 (eval "$lt_compile" 2>conftest.err) 17181 ac_status=$? 17182 cat conftest.err >&5 17183 echo "$as_me:17183: \$? = $ac_status" >&5 17184 if (exit $ac_status) && test -s "$ac_outfile"; then 17185 # The compiler can only warn and ignore the option if not recognized 17186 # So say no if there are warnings other than the usual output. 17187 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17188 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17189 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17190 lt_cv_prog_compiler_pic_works_GCJ=yes 17191 fi 17192 fi 17193 $rm conftest* 17194 17195fi 17196{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5 17197$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; } 17198 17199if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then 17200 case $lt_prog_compiler_pic_GCJ in 17201 "" | " "*) ;; 17202 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 17203 esac 17204else 17205 lt_prog_compiler_pic_GCJ= 17206 lt_prog_compiler_can_build_shared_GCJ=no 17207fi 17208 17209fi 17210case $host_os in 17211 # For platforms which do not support PIC, -DPIC is meaningless: 17212 *djgpp*) 17213 lt_prog_compiler_pic_GCJ= 17214 ;; 17215 *) 17216 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 17217 ;; 17218esac 17219 17220# 17221# Check to make sure the static flag actually works. 17222# 17223wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 17224{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17225$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 17226if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then 17227 $as_echo_n "(cached) " >&6 17228else 17229 lt_cv_prog_compiler_static_works_GCJ=no 17230 save_LDFLAGS="$LDFLAGS" 17231 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17232 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17233 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17234 # The linker can only warn and ignore the option if not recognized 17235 # So say no if there are warnings 17236 if test -s conftest.err; then 17237 # Append any errors to the config.log. 17238 cat conftest.err 1>&5 17239 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 17240 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17241 if diff conftest.exp conftest.er2 >/dev/null; then 17242 lt_cv_prog_compiler_static_works_GCJ=yes 17243 fi 17244 else 17245 lt_cv_prog_compiler_static_works_GCJ=yes 17246 fi 17247 fi 17248 $rm -r conftest* 17249 LDFLAGS="$save_LDFLAGS" 17250 17251fi 17252{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5 17253$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; } 17254 17255if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then 17256 : 17257else 17258 lt_prog_compiler_static_GCJ= 17259fi 17260 17261 17262{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 17263$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17264if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 17265 $as_echo_n "(cached) " >&6 17266else 17267 lt_cv_prog_compiler_c_o_GCJ=no 17268 $rm -r conftest 2>/dev/null 17269 mkdir conftest 17270 cd conftest 17271 mkdir out 17272 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17273 17274 lt_compiler_flag="-o out/conftest2.$ac_objext" 17275 # Insert the option either (1) after the last *FLAGS variable, or 17276 # (2) before a word containing "conftest.", or (3) at the end. 17277 # Note that $ac_compile itself does not contain backslashes and begins 17278 # with a dollar sign (not a hyphen), so the echo should work correctly. 17279 lt_compile=`echo "$ac_compile" | $SED \ 17280 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17281 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17282 -e 's:$: $lt_compiler_flag:'` 17283 (eval echo "\"\$as_me:17283: $lt_compile\"" >&5) 17284 (eval "$lt_compile" 2>out/conftest.err) 17285 ac_status=$? 17286 cat out/conftest.err >&5 17287 echo "$as_me:17287: \$? = $ac_status" >&5 17288 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17289 then 17290 # The compiler can only warn and ignore the option if not recognized 17291 # So say no if there are warnings 17292 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 17293 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17294 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17295 lt_cv_prog_compiler_c_o_GCJ=yes 17296 fi 17297 fi 17298 chmod u+w . 2>&5 17299 $rm conftest* 17300 # SGI C++ compiler will create directory out/ii_files/ for 17301 # template instantiation 17302 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 17303 $rm out/* && rmdir out 17304 cd .. 17305 rmdir conftest 17306 $rm conftest* 17307 17308fi 17309{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 17310$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; } 17311 17312 17313hard_links="nottested" 17314if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 17315 # do not overwrite the value of need_locks provided by the user 17316 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 17317$as_echo_n "checking if we can lock with hard links... " >&6; } 17318 hard_links=yes 17319 $rm conftest* 17320 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17321 touch conftest.a 17322 ln conftest.a conftest.b 2>&5 || hard_links=no 17323 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17324 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 17325$as_echo "$hard_links" >&6; } 17326 if test "$hard_links" = no; then 17327 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17328$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17329 need_locks=warn 17330 fi 17331else 17332 need_locks=no 17333fi 17334 17335{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17336$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 17337 17338 runpath_var= 17339 allow_undefined_flag_GCJ= 17340 enable_shared_with_static_runtimes_GCJ=no 17341 archive_cmds_GCJ= 17342 archive_expsym_cmds_GCJ= 17343 old_archive_From_new_cmds_GCJ= 17344 old_archive_from_expsyms_cmds_GCJ= 17345 export_dynamic_flag_spec_GCJ= 17346 whole_archive_flag_spec_GCJ= 17347 thread_safe_flag_spec_GCJ= 17348 hardcode_libdir_flag_spec_GCJ= 17349 hardcode_libdir_flag_spec_ld_GCJ= 17350 hardcode_libdir_separator_GCJ= 17351 hardcode_direct_GCJ=no 17352 hardcode_minus_L_GCJ=no 17353 hardcode_shlibpath_var_GCJ=unsupported 17354 link_all_deplibs_GCJ=unknown 17355 hardcode_automatic_GCJ=no 17356 module_cmds_GCJ= 17357 module_expsym_cmds_GCJ= 17358 always_export_symbols_GCJ=no 17359 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17360 # include_expsyms should be a list of space-separated symbols to be *always* 17361 # included in the symbol list 17362 include_expsyms_GCJ= 17363 # exclude_expsyms can be an extended regexp of symbols to exclude 17364 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17365 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17366 # as well as any symbol that contains `d'. 17367 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 17368 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17369 # platforms (ab)use it in PIC code, but their linkers get confused if 17370 # the symbol is explicitly referenced. Since portable code cannot 17371 # rely on this symbol name, it's probably fine to never include it in 17372 # preloaded symbol tables. 17373 # Exclude shared library initialization/finalization symbols. 17374 extract_expsyms_cmds= 17375 # Just being paranoid about ensuring that cc_basename is set. 17376 for cc_temp in $compiler""; do 17377 case $cc_temp in 17378 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17379 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17380 \-*) ;; 17381 *) break;; 17382 esac 17383done 17384cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17385 17386 case $host_os in 17387 cygwin* | mingw* | pw32*) 17388 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17389 # When not using gcc, we currently assume that we are using 17390 # Microsoft Visual C++. 17391 if test "$GCC" != yes; then 17392 with_gnu_ld=no 17393 fi 17394 ;; 17395 interix*) 17396 # we just hope/assume this is gcc and not c89 (= MSVC++) 17397 with_gnu_ld=yes 17398 ;; 17399 openbsd*) 17400 with_gnu_ld=no 17401 ;; 17402 esac 17403 17404 ld_shlibs_GCJ=yes 17405 if test "$with_gnu_ld" = yes; then 17406 # If archive_cmds runs LD, not CC, wlarc should be empty 17407 wlarc='${wl}' 17408 17409 # Set some defaults for GNU ld with shared library support. These 17410 # are reset later if shared libraries are not supported. Putting them 17411 # here allows them to be overridden if necessary. 17412 runpath_var=LD_RUN_PATH 17413 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 17414 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 17415 # ancient GNU ld didn't support --whole-archive et. al. 17416 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17417 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17418 else 17419 whole_archive_flag_spec_GCJ= 17420 fi 17421 supports_anon_versioning=no 17422 case `$LD -v 2>/dev/null` in 17423 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17424 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17425 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17426 *\ 2.11.*) ;; # other 2.11 versions 17427 *) supports_anon_versioning=yes ;; 17428 esac 17429 17430 # See if GNU ld supports shared libraries. 17431 case $host_os in 17432 aix[3-9]*) 17433 # On AIX/PPC, the GNU linker is very broken 17434 if test "$host_cpu" != ia64; then 17435 ld_shlibs_GCJ=no 17436 cat <<EOF 1>&2 17437 17438*** Warning: the GNU linker, at least up to release 2.9.1, is reported 17439*** to be unable to reliably create shared libraries on AIX. 17440*** Therefore, libtool is disabling shared libraries support. If you 17441*** really care for shared libraries, you may want to modify your PATH 17442*** so that a non-GNU linker is found, and then restart. 17443 17444EOF 17445 fi 17446 ;; 17447 17448 amigaos*) 17449 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)' 17450 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17451 hardcode_minus_L_GCJ=yes 17452 17453 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 17454 # that the semantics of dynamic libraries on AmigaOS, at least up 17455 # to version 4, is to share data among multiple programs linked 17456 # with the same dynamic library. Since this doesn't match the 17457 # behavior of shared libraries on other platforms, we can't use 17458 # them. 17459 ld_shlibs_GCJ=no 17460 ;; 17461 17462 beos*) 17463 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17464 allow_undefined_flag_GCJ=unsupported 17465 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17466 # support --undefined. This deserves some investigation. FIXME 17467 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17468 else 17469 ld_shlibs_GCJ=no 17470 fi 17471 ;; 17472 17473 cygwin* | mingw* | pw32*) 17474 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 17475 # as there is no search path for DLLs. 17476 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17477 allow_undefined_flag_GCJ=unsupported 17478 always_export_symbols_GCJ=no 17479 enable_shared_with_static_runtimes_GCJ=yes 17480 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 17481 17482 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17483 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17484 # If the export-symbols file already is a .def file (1st line 17485 # is EXPORTS), use it as is; otherwise, prepend... 17486 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17487 cp $export_symbols $output_objdir/$soname.def; 17488 else 17489 echo EXPORTS > $output_objdir/$soname.def; 17490 cat $export_symbols >> $output_objdir/$soname.def; 17491 fi~ 17492 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17493 else 17494 ld_shlibs_GCJ=no 17495 fi 17496 ;; 17497 17498 interix[3-9]*) 17499 hardcode_direct_GCJ=no 17500 hardcode_shlibpath_var_GCJ=no 17501 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17502 export_dynamic_flag_spec_GCJ='${wl}-E' 17503 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17504 # Instead, shared libraries are loaded at an image base (0x10000000 by 17505 # default) and relocated if they conflict, which is a slow very memory 17506 # consuming and fragmenting process. To avoid this, we pick a random, 17507 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17508 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17509 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' 17510 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' 17511 ;; 17512 17513 gnu* | linux* | k*bsd*-gnu) 17514 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17515 tmp_addflag= 17516 case $cc_basename,$host_cpu in 17517 pgcc*) # Portland Group C compiler 17518 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' 17519 tmp_addflag=' $pic_flag' 17520 ;; 17521 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17522 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' 17523 tmp_addflag=' $pic_flag -Mnomain' ;; 17524 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17525 tmp_addflag=' -i_dynamic' ;; 17526 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17527 tmp_addflag=' -i_dynamic -nofor_main' ;; 17528 ifc* | ifort*) # Intel Fortran compiler 17529 tmp_addflag=' -nofor_main' ;; 17530 esac 17531 case `$CC -V 2>&1 | sed 5q` in 17532 *Sun\ C*) # Sun C 5.9 17533 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' 17534 tmp_sharedflag='-G' ;; 17535 *Sun\ F*) # Sun Fortran 8.3 17536 tmp_sharedflag='-G' ;; 17537 *) 17538 tmp_sharedflag='-shared' ;; 17539 esac 17540 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17541 17542 if test $supports_anon_versioning = yes; then 17543 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17544 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17545 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17546 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17547 fi 17548 else 17549 ld_shlibs_GCJ=no 17550 fi 17551 ;; 17552 17553 netbsd*) 17554 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17555 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17556 wlarc= 17557 else 17558 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17559 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17560 fi 17561 ;; 17562 17563 solaris*) 17564 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17565 ld_shlibs_GCJ=no 17566 cat <<EOF 1>&2 17567 17568*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17569*** create shared libraries on Solaris systems. Therefore, libtool 17570*** is disabling shared libraries support. We urge you to upgrade GNU 17571*** binutils to release 2.9.1 or newer. Another option is to modify 17572*** your PATH or compiler configuration so that the native linker is 17573*** used, and then restart. 17574 17575EOF 17576 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17577 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17578 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17579 else 17580 ld_shlibs_GCJ=no 17581 fi 17582 ;; 17583 17584 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17585 case `$LD -v 2>&1` in 17586 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17587 ld_shlibs_GCJ=no 17588 cat <<_LT_EOF 1>&2 17589 17590*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17591*** reliably create shared libraries on SCO systems. Therefore, libtool 17592*** is disabling shared libraries support. We urge you to upgrade GNU 17593*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17594*** your PATH or compiler configuration so that the native linker is 17595*** used, and then restart. 17596 17597_LT_EOF 17598 ;; 17599 *) 17600 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17601 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17602 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17603 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17604 else 17605 ld_shlibs_GCJ=no 17606 fi 17607 ;; 17608 esac 17609 ;; 17610 17611 sunos4*) 17612 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17613 wlarc= 17614 hardcode_direct_GCJ=yes 17615 hardcode_shlibpath_var_GCJ=no 17616 ;; 17617 17618 *) 17619 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17620 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17621 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17622 else 17623 ld_shlibs_GCJ=no 17624 fi 17625 ;; 17626 esac 17627 17628 if test "$ld_shlibs_GCJ" = no; then 17629 runpath_var= 17630 hardcode_libdir_flag_spec_GCJ= 17631 export_dynamic_flag_spec_GCJ= 17632 whole_archive_flag_spec_GCJ= 17633 fi 17634 else 17635 # PORTME fill in a description of your system's linker (not GNU ld) 17636 case $host_os in 17637 aix3*) 17638 allow_undefined_flag_GCJ=unsupported 17639 always_export_symbols_GCJ=yes 17640 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' 17641 # Note: this linker hardcodes the directories in LIBPATH if there 17642 # are no directories specified by -L. 17643 hardcode_minus_L_GCJ=yes 17644 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17645 # Neither direct hardcoding nor static linking is supported with a 17646 # broken collect2. 17647 hardcode_direct_GCJ=unsupported 17648 fi 17649 ;; 17650 17651 aix[4-9]*) 17652 if test "$host_cpu" = ia64; then 17653 # On IA64, the linker does run time linking by default, so we don't 17654 # have to do anything special. 17655 aix_use_runtimelinking=no 17656 exp_sym_flag='-Bexport' 17657 no_entry_flag="" 17658 else 17659 # If we're using GNU nm, then we don't want the "-C" option. 17660 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17661 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17662 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' 17663 else 17664 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' 17665 fi 17666 aix_use_runtimelinking=no 17667 17668 # Test if we are trying to use run time linking or normal 17669 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17670 # need to do runtime linking. 17671 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 17672 for ld_flag in $LDFLAGS; do 17673 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17674 aix_use_runtimelinking=yes 17675 break 17676 fi 17677 done 17678 ;; 17679 esac 17680 17681 exp_sym_flag='-bexport' 17682 no_entry_flag='-bnoentry' 17683 fi 17684 17685 # When large executables or shared objects are built, AIX ld can 17686 # have problems creating the table of contents. If linking a library 17687 # or program results in "error TOC overflow" add -mminimal-toc to 17688 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17689 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17690 17691 archive_cmds_GCJ='' 17692 hardcode_direct_GCJ=yes 17693 hardcode_libdir_separator_GCJ=':' 17694 link_all_deplibs_GCJ=yes 17695 17696 if test "$GCC" = yes; then 17697 case $host_os in aix4.[012]|aix4.[012].*) 17698 # We only want to do this on AIX 4.2 and lower, the check 17699 # below for broken collect2 doesn't work under 4.3+ 17700 collect2name=`${CC} -print-prog-name=collect2` 17701 if test -f "$collect2name" && \ 17702 strings "$collect2name" | grep resolve_lib_name >/dev/null 17703 then 17704 # We have reworked collect2 17705 : 17706 else 17707 # We have old collect2 17708 hardcode_direct_GCJ=unsupported 17709 # It fails to find uninstalled libraries when the uninstalled 17710 # path is not listed in the libpath. Setting hardcode_minus_L 17711 # to unsupported forces relinking 17712 hardcode_minus_L_GCJ=yes 17713 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17714 hardcode_libdir_separator_GCJ= 17715 fi 17716 ;; 17717 esac 17718 shared_flag='-shared' 17719 if test "$aix_use_runtimelinking" = yes; then 17720 shared_flag="$shared_flag "'${wl}-G' 17721 fi 17722 else 17723 # not using gcc 17724 if test "$host_cpu" = ia64; then 17725 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17726 # chokes on -Wl,-G. The following line is correct: 17727 shared_flag='-G' 17728 else 17729 if test "$aix_use_runtimelinking" = yes; then 17730 shared_flag='${wl}-G' 17731 else 17732 shared_flag='${wl}-bM:SRE' 17733 fi 17734 fi 17735 fi 17736 17737 # It seems that -bexpall does not export symbols beginning with 17738 # underscore (_), so it is better to generate a list of symbols to export. 17739 always_export_symbols_GCJ=yes 17740 if test "$aix_use_runtimelinking" = yes; then 17741 # Warning - without using the other runtime loading flags (-brtl), 17742 # -berok will link without error, but may produce a broken library. 17743 allow_undefined_flag_GCJ='-berok' 17744 # Determine the default libpath from the value encoded in an empty executable. 17745 cat >conftest.$ac_ext <<_ACEOF 17746/* confdefs.h. */ 17747_ACEOF 17748cat confdefs.h >>conftest.$ac_ext 17749cat >>conftest.$ac_ext <<_ACEOF 17750/* end confdefs.h. */ 17751 17752int 17753main () 17754{ 17755 17756 ; 17757 return 0; 17758} 17759_ACEOF 17760rm -f conftest.$ac_objext conftest$ac_exeext 17761if { (ac_try="$ac_link" 17762case "(($ac_try" in 17763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17764 *) ac_try_echo=$ac_try;; 17765esac 17766eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17767$as_echo "$ac_try_echo") >&5 17768 (eval "$ac_link") 2>conftest.er1 17769 ac_status=$? 17770 grep -v '^ *+' conftest.er1 >conftest.err 17771 rm -f conftest.er1 17772 cat conftest.err >&5 17773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17774 (exit $ac_status); } && { 17775 test -z "$ac_c_werror_flag" || 17776 test ! -s conftest.err 17777 } && test -s conftest$ac_exeext && { 17778 test "$cross_compiling" = yes || 17779 $as_test_x conftest$ac_exeext 17780 }; then 17781 17782lt_aix_libpath_sed=' 17783 /Import File Strings/,/^$/ { 17784 /^0/ { 17785 s/^0 *\(.*\)$/\1/ 17786 p 17787 } 17788 }' 17789aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17790# Check for a 64-bit object if we didn't find anything. 17791if test -z "$aix_libpath"; then 17792 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17793fi 17794else 17795 $as_echo "$as_me: failed program was:" >&5 17796sed 's/^/| /' conftest.$ac_ext >&5 17797 17798 17799fi 17800 17801rm -rf conftest.dSYM 17802rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17803 conftest$ac_exeext conftest.$ac_ext 17804if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17805 17806 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17807 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" 17808 else 17809 if test "$host_cpu" = ia64; then 17810 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17811 allow_undefined_flag_GCJ="-z nodefs" 17812 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" 17813 else 17814 # Determine the default libpath from the value encoded in an empty executable. 17815 cat >conftest.$ac_ext <<_ACEOF 17816/* confdefs.h. */ 17817_ACEOF 17818cat confdefs.h >>conftest.$ac_ext 17819cat >>conftest.$ac_ext <<_ACEOF 17820/* end confdefs.h. */ 17821 17822int 17823main () 17824{ 17825 17826 ; 17827 return 0; 17828} 17829_ACEOF 17830rm -f conftest.$ac_objext conftest$ac_exeext 17831if { (ac_try="$ac_link" 17832case "(($ac_try" in 17833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17834 *) ac_try_echo=$ac_try;; 17835esac 17836eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17837$as_echo "$ac_try_echo") >&5 17838 (eval "$ac_link") 2>conftest.er1 17839 ac_status=$? 17840 grep -v '^ *+' conftest.er1 >conftest.err 17841 rm -f conftest.er1 17842 cat conftest.err >&5 17843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17844 (exit $ac_status); } && { 17845 test -z "$ac_c_werror_flag" || 17846 test ! -s conftest.err 17847 } && test -s conftest$ac_exeext && { 17848 test "$cross_compiling" = yes || 17849 $as_test_x conftest$ac_exeext 17850 }; then 17851 17852lt_aix_libpath_sed=' 17853 /Import File Strings/,/^$/ { 17854 /^0/ { 17855 s/^0 *\(.*\)$/\1/ 17856 p 17857 } 17858 }' 17859aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17860# Check for a 64-bit object if we didn't find anything. 17861if test -z "$aix_libpath"; then 17862 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17863fi 17864else 17865 $as_echo "$as_me: failed program was:" >&5 17866sed 's/^/| /' conftest.$ac_ext >&5 17867 17868 17869fi 17870 17871rm -rf conftest.dSYM 17872rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17873 conftest$ac_exeext conftest.$ac_ext 17874if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17875 17876 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17877 # Warning - without using the other run time loading flags, 17878 # -berok will link without error, but may produce a broken library. 17879 no_undefined_flag_GCJ=' ${wl}-bernotok' 17880 allow_undefined_flag_GCJ=' ${wl}-berok' 17881 # Exported symbols can be pulled into shared objects from archives 17882 whole_archive_flag_spec_GCJ='$convenience' 17883 archive_cmds_need_lc_GCJ=yes 17884 # This is similar to how AIX traditionally builds its shared libraries. 17885 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' 17886 fi 17887 fi 17888 ;; 17889 17890 amigaos*) 17891 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)' 17892 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17893 hardcode_minus_L_GCJ=yes 17894 # see comment about different semantics on the GNU ld section 17895 ld_shlibs_GCJ=no 17896 ;; 17897 17898 bsdi[45]*) 17899 export_dynamic_flag_spec_GCJ=-rdynamic 17900 ;; 17901 17902 cygwin* | mingw* | pw32*) 17903 # When not using gcc, we currently assume that we are using 17904 # Microsoft Visual C++. 17905 # hardcode_libdir_flag_spec is actually meaningless, as there is 17906 # no search path for DLLs. 17907 hardcode_libdir_flag_spec_GCJ=' ' 17908 allow_undefined_flag_GCJ=unsupported 17909 # Tell ltmain to make .lib files, not .a files. 17910 libext=lib 17911 # Tell ltmain to make .dll files, not .so files. 17912 shrext_cmds=".dll" 17913 # FIXME: Setting linknames here is a bad hack. 17914 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17915 # The linker will automatically build a .lib file if we build a DLL. 17916 old_archive_From_new_cmds_GCJ='true' 17917 # FIXME: Should let the user specify the lib program. 17918 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' 17919 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17920 enable_shared_with_static_runtimes_GCJ=yes 17921 ;; 17922 17923 darwin* | rhapsody*) 17924 case $host_os in 17925 rhapsody* | darwin1.[012]) 17926 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17927 ;; 17928 *) # Darwin 1.3 on 17929 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17930 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17931 else 17932 case ${MACOSX_DEPLOYMENT_TARGET} in 17933 10.[012]) 17934 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17935 ;; 17936 10.*) 17937 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17938 ;; 17939 esac 17940 fi 17941 ;; 17942 esac 17943 archive_cmds_need_lc_GCJ=no 17944 hardcode_direct_GCJ=no 17945 hardcode_automatic_GCJ=yes 17946 hardcode_shlibpath_var_GCJ=unsupported 17947 whole_archive_flag_spec_GCJ='' 17948 link_all_deplibs_GCJ=yes 17949 if test "$GCC" = yes ; then 17950 output_verbose_link_cmd='echo' 17951 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}" 17952 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 17953 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}" 17954 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}" 17955 else 17956 case $cc_basename in 17957 xlc*) 17958 output_verbose_link_cmd='echo' 17959 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 17960 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17961 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17962 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}' 17963 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}' 17964 ;; 17965 *) 17966 ld_shlibs_GCJ=no 17967 ;; 17968 esac 17969 fi 17970 ;; 17971 17972 dgux*) 17973 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17974 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17975 hardcode_shlibpath_var_GCJ=no 17976 ;; 17977 17978 freebsd1*) 17979 ld_shlibs_GCJ=no 17980 ;; 17981 17982 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17983 # support. Future versions do this automatically, but an explicit c++rt0.o 17984 # does not break anything, and helps significantly (at the cost of a little 17985 # extra space). 17986 freebsd2.2*) 17987 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17988 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17989 hardcode_direct_GCJ=yes 17990 hardcode_shlibpath_var_GCJ=no 17991 ;; 17992 17993 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17994 freebsd2*) 17995 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17996 hardcode_direct_GCJ=yes 17997 hardcode_minus_L_GCJ=yes 17998 hardcode_shlibpath_var_GCJ=no 17999 ;; 18000 18001 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 18002 freebsd* | dragonfly*) 18003 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 18004 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18005 hardcode_direct_GCJ=yes 18006 hardcode_shlibpath_var_GCJ=no 18007 ;; 18008 18009 hpux9*) 18010 if test "$GCC" = yes; then 18011 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' 18012 else 18013 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' 18014 fi 18015 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18016 hardcode_libdir_separator_GCJ=: 18017 hardcode_direct_GCJ=yes 18018 18019 # hardcode_minus_L: Not really in the search PATH, 18020 # but as the default location of the library. 18021 hardcode_minus_L_GCJ=yes 18022 export_dynamic_flag_spec_GCJ='${wl}-E' 18023 ;; 18024 18025 hpux10*) 18026 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18027 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18028 else 18029 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 18030 fi 18031 if test "$with_gnu_ld" = no; then 18032 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18033 hardcode_libdir_separator_GCJ=: 18034 18035 hardcode_direct_GCJ=yes 18036 export_dynamic_flag_spec_GCJ='${wl}-E' 18037 18038 # hardcode_minus_L: Not really in the search PATH, 18039 # but as the default location of the library. 18040 hardcode_minus_L_GCJ=yes 18041 fi 18042 ;; 18043 18044 hpux11*) 18045 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18046 case $host_cpu in 18047 hppa*64*) 18048 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18049 ;; 18050 ia64*) 18051 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18052 ;; 18053 *) 18054 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18055 ;; 18056 esac 18057 else 18058 case $host_cpu in 18059 hppa*64*) 18060 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18061 ;; 18062 ia64*) 18063 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18064 ;; 18065 *) 18066 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18067 ;; 18068 esac 18069 fi 18070 if test "$with_gnu_ld" = no; then 18071 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18072 hardcode_libdir_separator_GCJ=: 18073 18074 case $host_cpu in 18075 hppa*64*|ia64*) 18076 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 18077 hardcode_direct_GCJ=no 18078 hardcode_shlibpath_var_GCJ=no 18079 ;; 18080 *) 18081 hardcode_direct_GCJ=yes 18082 export_dynamic_flag_spec_GCJ='${wl}-E' 18083 18084 # hardcode_minus_L: Not really in the search PATH, 18085 # but as the default location of the library. 18086 hardcode_minus_L_GCJ=yes 18087 ;; 18088 esac 18089 fi 18090 ;; 18091 18092 irix5* | irix6* | nonstopux*) 18093 if test "$GCC" = yes; then 18094 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' 18095 else 18096 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' 18097 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 18098 fi 18099 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18100 hardcode_libdir_separator_GCJ=: 18101 link_all_deplibs_GCJ=yes 18102 ;; 18103 18104 netbsd*) 18105 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18106 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 18107 else 18108 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 18109 fi 18110 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18111 hardcode_direct_GCJ=yes 18112 hardcode_shlibpath_var_GCJ=no 18113 ;; 18114 18115 newsos6) 18116 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18117 hardcode_direct_GCJ=yes 18118 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18119 hardcode_libdir_separator_GCJ=: 18120 hardcode_shlibpath_var_GCJ=no 18121 ;; 18122 18123 openbsd*) 18124 if test -f /usr/libexec/ld.so; then 18125 hardcode_direct_GCJ=yes 18126 hardcode_shlibpath_var_GCJ=no 18127 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18128 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18129 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 18130 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18131 export_dynamic_flag_spec_GCJ='${wl}-E' 18132 else 18133 case $host_os in 18134 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 18135 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18136 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18137 ;; 18138 *) 18139 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18140 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18141 ;; 18142 esac 18143 fi 18144 else 18145 ld_shlibs_GCJ=no 18146 fi 18147 ;; 18148 18149 os2*) 18150 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18151 hardcode_minus_L_GCJ=yes 18152 allow_undefined_flag_GCJ=unsupported 18153 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' 18154 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 18155 ;; 18156 18157 osf3*) 18158 if test "$GCC" = yes; then 18159 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18160 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' 18161 else 18162 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18163 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' 18164 fi 18165 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18166 hardcode_libdir_separator_GCJ=: 18167 ;; 18168 18169 osf4* | osf5*) # as osf3* with the addition of -msym flag 18170 if test "$GCC" = yes; then 18171 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18172 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' 18173 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18174 else 18175 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18176 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' 18177 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~ 18178 $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' 18179 18180 # Both c and cxx compiler support -rpath directly 18181 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 18182 fi 18183 hardcode_libdir_separator_GCJ=: 18184 ;; 18185 18186 solaris*) 18187 no_undefined_flag_GCJ=' -z text' 18188 if test "$GCC" = yes; then 18189 wlarc='${wl}' 18190 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18191 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18192 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 18193 else 18194 wlarc='' 18195 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 18196 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18197 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 18198 fi 18199 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18200 hardcode_shlibpath_var_GCJ=no 18201 case $host_os in 18202 solaris2.[0-5] | solaris2.[0-5].*) ;; 18203 *) 18204 # The compiler driver will combine and reorder linker options, 18205 # but understands `-z linker_flag'. GCC discards it without `$wl', 18206 # but is careful enough not to reorder. 18207 # Supported since Solaris 2.6 (maybe 2.5.1?) 18208 if test "$GCC" = yes; then 18209 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 18210 else 18211 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' 18212 fi 18213 ;; 18214 esac 18215 link_all_deplibs_GCJ=yes 18216 ;; 18217 18218 sunos4*) 18219 if test "x$host_vendor" = xsequent; then 18220 # Use $CC to link under sequent, because it throws in some extra .o 18221 # files that make .init and .fini sections work. 18222 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 18223 else 18224 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 18225 fi 18226 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18227 hardcode_direct_GCJ=yes 18228 hardcode_minus_L_GCJ=yes 18229 hardcode_shlibpath_var_GCJ=no 18230 ;; 18231 18232 sysv4) 18233 case $host_vendor in 18234 sni) 18235 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18236 hardcode_direct_GCJ=yes # is this really true??? 18237 ;; 18238 siemens) 18239 ## LD is ld it makes a PLAMLIB 18240 ## CC just makes a GrossModule. 18241 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18242 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 18243 hardcode_direct_GCJ=no 18244 ;; 18245 motorola) 18246 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18247 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 18248 ;; 18249 esac 18250 runpath_var='LD_RUN_PATH' 18251 hardcode_shlibpath_var_GCJ=no 18252 ;; 18253 18254 sysv4.3*) 18255 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18256 hardcode_shlibpath_var_GCJ=no 18257 export_dynamic_flag_spec_GCJ='-Bexport' 18258 ;; 18259 18260 sysv4*MP*) 18261 if test -d /usr/nec; then 18262 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18263 hardcode_shlibpath_var_GCJ=no 18264 runpath_var=LD_RUN_PATH 18265 hardcode_runpath_var=yes 18266 ld_shlibs_GCJ=yes 18267 fi 18268 ;; 18269 18270 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 18271 no_undefined_flag_GCJ='${wl}-z,text' 18272 archive_cmds_need_lc_GCJ=no 18273 hardcode_shlibpath_var_GCJ=no 18274 runpath_var='LD_RUN_PATH' 18275 18276 if test "$GCC" = yes; then 18277 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18278 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18279 else 18280 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18281 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18282 fi 18283 ;; 18284 18285 sysv5* | sco3.2v5* | sco5v6*) 18286 # Note: We can NOT use -z defs as we might desire, because we do not 18287 # link with -lc, and that would cause any symbols used from libc to 18288 # always be unresolved, which means just about no library would 18289 # ever link correctly. If we're not using GNU ld we use -z text 18290 # though, which does catch some bad symbols but isn't as heavy-handed 18291 # as -z defs. 18292 no_undefined_flag_GCJ='${wl}-z,text' 18293 allow_undefined_flag_GCJ='${wl}-z,nodefs' 18294 archive_cmds_need_lc_GCJ=no 18295 hardcode_shlibpath_var_GCJ=no 18296 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 18297 hardcode_libdir_separator_GCJ=':' 18298 link_all_deplibs_GCJ=yes 18299 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 18300 runpath_var='LD_RUN_PATH' 18301 18302 if test "$GCC" = yes; then 18303 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18304 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18305 else 18306 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18307 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18308 fi 18309 ;; 18310 18311 uts4*) 18312 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18313 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18314 hardcode_shlibpath_var_GCJ=no 18315 ;; 18316 18317 *) 18318 ld_shlibs_GCJ=no 18319 ;; 18320 esac 18321 fi 18322 18323{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 18324$as_echo "$ld_shlibs_GCJ" >&6; } 18325test "$ld_shlibs_GCJ" = no && can_build_shared=no 18326 18327# 18328# Do we need to explicitly link libc? 18329# 18330case "x$archive_cmds_need_lc_GCJ" in 18331x|xyes) 18332 # Assume -lc should be added 18333 archive_cmds_need_lc_GCJ=yes 18334 18335 if test "$enable_shared" = yes && test "$GCC" = yes; then 18336 case $archive_cmds_GCJ in 18337 *'~'*) 18338 # FIXME: we may have to deal with multi-command sequences. 18339 ;; 18340 '$CC '*) 18341 # Test whether the compiler implicitly links with -lc since on some 18342 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18343 # to ld, don't add -lc before -lgcc. 18344 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 18345$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 18346 $rm conftest* 18347 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18348 18349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18350 (eval $ac_compile) 2>&5 18351 ac_status=$? 18352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18353 (exit $ac_status); } 2>conftest.err; then 18354 soname=conftest 18355 lib=conftest 18356 libobjs=conftest.$ac_objext 18357 deplibs= 18358 wl=$lt_prog_compiler_wl_GCJ 18359 pic_flag=$lt_prog_compiler_pic_GCJ 18360 compiler_flags=-v 18361 linker_flags=-v 18362 verstring= 18363 output_objdir=. 18364 libname=conftest 18365 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 18366 allow_undefined_flag_GCJ= 18367 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 18368 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18369 ac_status=$? 18370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18371 (exit $ac_status); } 18372 then 18373 archive_cmds_need_lc_GCJ=no 18374 else 18375 archive_cmds_need_lc_GCJ=yes 18376 fi 18377 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 18378 else 18379 cat conftest.err 1>&5 18380 fi 18381 $rm conftest* 18382 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 18383$as_echo "$archive_cmds_need_lc_GCJ" >&6; } 18384 ;; 18385 esac 18386 fi 18387 ;; 18388esac 18389 18390{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 18391$as_echo_n "checking dynamic linker characteristics... " >&6; } 18392library_names_spec= 18393libname_spec='lib$name' 18394soname_spec= 18395shrext_cmds=".so" 18396postinstall_cmds= 18397postuninstall_cmds= 18398finish_cmds= 18399finish_eval= 18400shlibpath_var= 18401shlibpath_overrides_runpath=unknown 18402version_type=none 18403dynamic_linker="$host_os ld.so" 18404sys_lib_dlsearch_path_spec="/lib /usr/lib" 18405 18406need_lib_prefix=unknown 18407hardcode_into_libs=no 18408 18409# when you set need_version to no, make sure it does not cause -set_version 18410# flags to be left without arguments 18411need_version=unknown 18412 18413case $host_os in 18414aix3*) 18415 version_type=linux 18416 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18417 shlibpath_var=LIBPATH 18418 18419 # AIX 3 has no versioning support, so we append a major version to the name. 18420 soname_spec='${libname}${release}${shared_ext}$major' 18421 ;; 18422 18423aix[4-9]*) 18424 version_type=linux 18425 need_lib_prefix=no 18426 need_version=no 18427 hardcode_into_libs=yes 18428 if test "$host_cpu" = ia64; then 18429 # AIX 5 supports IA64 18430 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18431 shlibpath_var=LD_LIBRARY_PATH 18432 else 18433 # With GCC up to 2.95.x, collect2 would create an import file 18434 # for dependence libraries. The import file would start with 18435 # the line `#! .'. This would cause the generated library to 18436 # depend on `.', always an invalid library. This was fixed in 18437 # development snapshots of GCC prior to 3.0. 18438 case $host_os in 18439 aix4 | aix4.[01] | aix4.[01].*) 18440 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18441 echo ' yes ' 18442 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 18443 : 18444 else 18445 can_build_shared=no 18446 fi 18447 ;; 18448 esac 18449 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18450 # soname into executable. Probably we can add versioning support to 18451 # collect2, so additional links can be useful in future. 18452 if test "$aix_use_runtimelinking" = yes; then 18453 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18454 # instead of lib<name>.a to let people know that these are not 18455 # typical AIX shared libraries. 18456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18457 else 18458 # We preserve .a as extension for shared libraries through AIX4.2 18459 # and later when we are not doing run time linking. 18460 library_names_spec='${libname}${release}.a $libname.a' 18461 soname_spec='${libname}${release}${shared_ext}$major' 18462 fi 18463 shlibpath_var=LIBPATH 18464 fi 18465 ;; 18466 18467amigaos*) 18468 library_names_spec='$libname.ixlibrary $libname.a' 18469 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18470 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' 18471 ;; 18472 18473beos*) 18474 library_names_spec='${libname}${shared_ext}' 18475 dynamic_linker="$host_os ld.so" 18476 shlibpath_var=LIBRARY_PATH 18477 ;; 18478 18479bsdi[45]*) 18480 version_type=linux 18481 need_version=no 18482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18483 soname_spec='${libname}${release}${shared_ext}$major' 18484 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18485 shlibpath_var=LD_LIBRARY_PATH 18486 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18487 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18488 # the default ld.so.conf also contains /usr/contrib/lib and 18489 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18490 # libtool to hard-code these into programs 18491 ;; 18492 18493cygwin* | mingw* | pw32*) 18494 version_type=windows 18495 shrext_cmds=".dll" 18496 need_version=no 18497 need_lib_prefix=no 18498 18499 case $GCC,$host_os in 18500 yes,cygwin* | yes,mingw* | yes,pw32*) 18501 library_names_spec='$libname.dll.a' 18502 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18503 postinstall_cmds='base_file=`basename \${file}`~ 18504 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18505 dldir=$destdir/`dirname \$dlpath`~ 18506 test -d \$dldir || mkdir -p \$dldir~ 18507 $install_prog $dir/$dlname \$dldir/$dlname~ 18508 chmod a+x \$dldir/$dlname' 18509 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18510 dlpath=$dir/\$dldll~ 18511 $rm \$dlpath' 18512 shlibpath_overrides_runpath=yes 18513 18514 case $host_os in 18515 cygwin*) 18516 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18517 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18518 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 18519 ;; 18520 mingw*) 18521 # MinGW DLLs use traditional 'lib' prefix 18522 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18523 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18524 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18525 # It is most probably a Windows format PATH printed by 18526 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18527 # path with ; separators, and with drive letters. We can handle the 18528 # drive letters (cygwin fileutils understands them), so leave them, 18529 # especially as we might pass files found there to a mingw objdump, 18530 # which wouldn't understand a cygwinified path. Ahh. 18531 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18532 else 18533 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18534 fi 18535 ;; 18536 pw32*) 18537 # pw32 DLLs use 'pw' prefix rather than 'lib' 18538 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18539 ;; 18540 esac 18541 ;; 18542 18543 *) 18544 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18545 ;; 18546 esac 18547 dynamic_linker='Win32 ld.exe' 18548 # FIXME: first we should search . and the directory the executable is in 18549 shlibpath_var=PATH 18550 ;; 18551 18552darwin* | rhapsody*) 18553 dynamic_linker="$host_os dyld" 18554 version_type=darwin 18555 need_lib_prefix=no 18556 need_version=no 18557 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18558 soname_spec='${libname}${release}${major}$shared_ext' 18559 shlibpath_overrides_runpath=yes 18560 shlibpath_var=DYLD_LIBRARY_PATH 18561 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18562 18563 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18564 ;; 18565 18566dgux*) 18567 version_type=linux 18568 need_lib_prefix=no 18569 need_version=no 18570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18571 soname_spec='${libname}${release}${shared_ext}$major' 18572 shlibpath_var=LD_LIBRARY_PATH 18573 ;; 18574 18575freebsd1*) 18576 dynamic_linker=no 18577 ;; 18578 18579freebsd* | dragonfly*) 18580 # DragonFly does not have aout. When/if they implement a new 18581 # versioning mechanism, adjust this. 18582 if test -x /usr/bin/objformat; then 18583 objformat=`/usr/bin/objformat` 18584 else 18585 case $host_os in 18586 freebsd[123]*) objformat=aout ;; 18587 *) objformat=elf ;; 18588 esac 18589 fi 18590 version_type=freebsd-$objformat 18591 case $version_type in 18592 freebsd-elf*) 18593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18594 need_version=no 18595 need_lib_prefix=no 18596 ;; 18597 freebsd-*) 18598 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18599 need_version=yes 18600 ;; 18601 esac 18602 shlibpath_var=LD_LIBRARY_PATH 18603 case $host_os in 18604 freebsd2*) 18605 shlibpath_overrides_runpath=yes 18606 ;; 18607 freebsd3.[01]* | freebsdelf3.[01]*) 18608 shlibpath_overrides_runpath=yes 18609 hardcode_into_libs=yes 18610 ;; 18611 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18612 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18613 shlibpath_overrides_runpath=no 18614 hardcode_into_libs=yes 18615 ;; 18616 *) # from 4.6 on, and DragonFly 18617 shlibpath_overrides_runpath=yes 18618 hardcode_into_libs=yes 18619 ;; 18620 esac 18621 ;; 18622 18623gnu*) 18624 version_type=linux 18625 need_lib_prefix=no 18626 need_version=no 18627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18628 soname_spec='${libname}${release}${shared_ext}$major' 18629 shlibpath_var=LD_LIBRARY_PATH 18630 hardcode_into_libs=yes 18631 ;; 18632 18633hpux9* | hpux10* | hpux11*) 18634 # Give a soname corresponding to the major version so that dld.sl refuses to 18635 # link against other versions. 18636 version_type=sunos 18637 need_lib_prefix=no 18638 need_version=no 18639 case $host_cpu in 18640 ia64*) 18641 shrext_cmds='.so' 18642 hardcode_into_libs=yes 18643 dynamic_linker="$host_os dld.so" 18644 shlibpath_var=LD_LIBRARY_PATH 18645 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18647 soname_spec='${libname}${release}${shared_ext}$major' 18648 if test "X$HPUX_IA64_MODE" = X32; then 18649 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18650 else 18651 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18652 fi 18653 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18654 ;; 18655 hppa*64*) 18656 shrext_cmds='.sl' 18657 hardcode_into_libs=yes 18658 dynamic_linker="$host_os dld.sl" 18659 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18660 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18662 soname_spec='${libname}${release}${shared_ext}$major' 18663 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18664 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18665 ;; 18666 *) 18667 shrext_cmds='.sl' 18668 dynamic_linker="$host_os dld.sl" 18669 shlibpath_var=SHLIB_PATH 18670 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18672 soname_spec='${libname}${release}${shared_ext}$major' 18673 ;; 18674 esac 18675 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18676 postinstall_cmds='chmod 555 $lib' 18677 ;; 18678 18679interix[3-9]*) 18680 version_type=linux 18681 need_lib_prefix=no 18682 need_version=no 18683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18684 soname_spec='${libname}${release}${shared_ext}$major' 18685 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18686 shlibpath_var=LD_LIBRARY_PATH 18687 shlibpath_overrides_runpath=no 18688 hardcode_into_libs=yes 18689 ;; 18690 18691irix5* | irix6* | nonstopux*) 18692 case $host_os in 18693 nonstopux*) version_type=nonstopux ;; 18694 *) 18695 if test "$lt_cv_prog_gnu_ld" = yes; then 18696 version_type=linux 18697 else 18698 version_type=irix 18699 fi ;; 18700 esac 18701 need_lib_prefix=no 18702 need_version=no 18703 soname_spec='${libname}${release}${shared_ext}$major' 18704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18705 case $host_os in 18706 irix5* | nonstopux*) 18707 libsuff= shlibsuff= 18708 ;; 18709 *) 18710 case $LD in # libtool.m4 will add one of these switches to LD 18711 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18712 libsuff= shlibsuff= libmagic=32-bit;; 18713 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18714 libsuff=32 shlibsuff=N32 libmagic=N32;; 18715 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18716 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18717 *) libsuff= shlibsuff= libmagic=never-match;; 18718 esac 18719 ;; 18720 esac 18721 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18722 shlibpath_overrides_runpath=no 18723 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18724 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18725 hardcode_into_libs=yes 18726 ;; 18727 18728# No shared lib support for Linux oldld, aout, or coff. 18729linux*oldld* | linux*aout* | linux*coff*) 18730 dynamic_linker=no 18731 ;; 18732 18733# This must be Linux ELF. 18734linux* | k*bsd*-gnu) 18735 version_type=linux 18736 need_lib_prefix=no 18737 need_version=no 18738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18739 soname_spec='${libname}${release}${shared_ext}$major' 18740 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18741 shlibpath_var=LD_LIBRARY_PATH 18742 shlibpath_overrides_runpath=no 18743 # This implies no fast_install, which is unacceptable. 18744 # Some rework will be needed to allow for fast_install 18745 # before this can be enabled. 18746 hardcode_into_libs=yes 18747 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18748 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18749 18750 # Append ld.so.conf contents to the search path 18751 if test -f /etc/ld.so.conf; then 18752 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' ' '` 18753 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 18754 fi 18755 18756 # We used to test for /lib/ld.so.1 and disable shared libraries on 18757 # powerpc, because MkLinux only supported shared libraries with the 18758 # GNU dynamic linker. Since this was broken with cross compilers, 18759 # most powerpc-linux boxes support dynamic linking these days and 18760 # people can always --disable-shared, the test was removed, and we 18761 # assume the GNU/Linux dynamic linker is in use. 18762 dynamic_linker='GNU/Linux ld.so' 18763 ;; 18764 18765netbsd*) 18766 version_type=sunos 18767 need_lib_prefix=no 18768 need_version=no 18769 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18771 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18772 dynamic_linker='NetBSD (a.out) ld.so' 18773 else 18774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18775 soname_spec='${libname}${release}${shared_ext}$major' 18776 dynamic_linker='NetBSD ld.elf_so' 18777 fi 18778 shlibpath_var=LD_LIBRARY_PATH 18779 shlibpath_overrides_runpath=yes 18780 hardcode_into_libs=yes 18781 ;; 18782 18783newsos6) 18784 version_type=linux 18785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18786 shlibpath_var=LD_LIBRARY_PATH 18787 shlibpath_overrides_runpath=yes 18788 ;; 18789 18790nto-qnx*) 18791 version_type=linux 18792 need_lib_prefix=no 18793 need_version=no 18794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18795 soname_spec='${libname}${release}${shared_ext}$major' 18796 shlibpath_var=LD_LIBRARY_PATH 18797 shlibpath_overrides_runpath=yes 18798 ;; 18799 18800openbsd*) 18801 version_type=sunos 18802 sys_lib_dlsearch_path_spec="/usr/lib" 18803 need_lib_prefix=no 18804 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18805 case $host_os in 18806 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18807 *) need_version=no ;; 18808 esac 18809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18810 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18811 shlibpath_var=LD_LIBRARY_PATH 18812 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18813 case $host_os in 18814 openbsd2.[89] | openbsd2.[89].*) 18815 shlibpath_overrides_runpath=no 18816 ;; 18817 *) 18818 shlibpath_overrides_runpath=yes 18819 ;; 18820 esac 18821 else 18822 shlibpath_overrides_runpath=yes 18823 fi 18824 ;; 18825 18826os2*) 18827 libname_spec='$name' 18828 shrext_cmds=".dll" 18829 need_lib_prefix=no 18830 library_names_spec='$libname${shared_ext} $libname.a' 18831 dynamic_linker='OS/2 ld.exe' 18832 shlibpath_var=LIBPATH 18833 ;; 18834 18835osf3* | osf4* | osf5*) 18836 version_type=osf 18837 need_lib_prefix=no 18838 need_version=no 18839 soname_spec='${libname}${release}${shared_ext}$major' 18840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18841 shlibpath_var=LD_LIBRARY_PATH 18842 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18843 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18844 ;; 18845 18846rdos*) 18847 dynamic_linker=no 18848 ;; 18849 18850solaris*) 18851 version_type=linux 18852 need_lib_prefix=no 18853 need_version=no 18854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18855 soname_spec='${libname}${release}${shared_ext}$major' 18856 shlibpath_var=LD_LIBRARY_PATH 18857 shlibpath_overrides_runpath=yes 18858 hardcode_into_libs=yes 18859 # ldd complains unless libraries are executable 18860 postinstall_cmds='chmod +x $lib' 18861 ;; 18862 18863sunos4*) 18864 version_type=sunos 18865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18866 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18867 shlibpath_var=LD_LIBRARY_PATH 18868 shlibpath_overrides_runpath=yes 18869 if test "$with_gnu_ld" = yes; then 18870 need_lib_prefix=no 18871 fi 18872 need_version=yes 18873 ;; 18874 18875sysv4 | sysv4.3*) 18876 version_type=linux 18877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18878 soname_spec='${libname}${release}${shared_ext}$major' 18879 shlibpath_var=LD_LIBRARY_PATH 18880 case $host_vendor in 18881 sni) 18882 shlibpath_overrides_runpath=no 18883 need_lib_prefix=no 18884 export_dynamic_flag_spec='${wl}-Blargedynsym' 18885 runpath_var=LD_RUN_PATH 18886 ;; 18887 siemens) 18888 need_lib_prefix=no 18889 ;; 18890 motorola) 18891 need_lib_prefix=no 18892 need_version=no 18893 shlibpath_overrides_runpath=no 18894 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18895 ;; 18896 esac 18897 ;; 18898 18899sysv4*MP*) 18900 if test -d /usr/nec ;then 18901 version_type=linux 18902 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18903 soname_spec='$libname${shared_ext}.$major' 18904 shlibpath_var=LD_LIBRARY_PATH 18905 fi 18906 ;; 18907 18908sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18909 version_type=freebsd-elf 18910 need_lib_prefix=no 18911 need_version=no 18912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18913 soname_spec='${libname}${release}${shared_ext}$major' 18914 shlibpath_var=LD_LIBRARY_PATH 18915 hardcode_into_libs=yes 18916 if test "$with_gnu_ld" = yes; then 18917 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18918 shlibpath_overrides_runpath=no 18919 else 18920 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18921 shlibpath_overrides_runpath=yes 18922 case $host_os in 18923 sco3.2v5*) 18924 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18925 ;; 18926 esac 18927 fi 18928 sys_lib_dlsearch_path_spec='/usr/lib' 18929 ;; 18930 18931uts4*) 18932 version_type=linux 18933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18934 soname_spec='${libname}${release}${shared_ext}$major' 18935 shlibpath_var=LD_LIBRARY_PATH 18936 ;; 18937 18938*) 18939 dynamic_linker=no 18940 ;; 18941esac 18942{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18943$as_echo "$dynamic_linker" >&6; } 18944test "$dynamic_linker" = no && can_build_shared=no 18945 18946if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 18947 $as_echo_n "(cached) " >&6 18948else 18949 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 18950fi 18951 18952sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 18953if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 18954 $as_echo_n "(cached) " >&6 18955else 18956 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 18957fi 18958 18959sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 18960 18961variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18962if test "$GCC" = yes; then 18963 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18964fi 18965 18966{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18967$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 18968hardcode_action_GCJ= 18969if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18970 test -n "$runpath_var_GCJ" || \ 18971 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18972 18973 # We can hardcode non-existant directories. 18974 if test "$hardcode_direct_GCJ" != no && 18975 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18976 # have to relink, otherwise we might link with an installed library 18977 # when we should be linking with a yet-to-be-installed one 18978 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18979 test "$hardcode_minus_L_GCJ" != no; then 18980 # Linking always hardcodes the temporary library directory. 18981 hardcode_action_GCJ=relink 18982 else 18983 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18984 hardcode_action_GCJ=immediate 18985 fi 18986else 18987 # We cannot hardcode anything, or else we can only hardcode existing 18988 # directories. 18989 hardcode_action_GCJ=unsupported 18990fi 18991{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18992$as_echo "$hardcode_action_GCJ" >&6; } 18993 18994if test "$hardcode_action_GCJ" = relink; then 18995 # Fast installation is not supported 18996 enable_fast_install=no 18997elif test "$shlibpath_overrides_runpath" = yes || 18998 test "$enable_shared" = no; then 18999 # Fast installation is not necessary 19000 enable_fast_install=needless 19001fi 19002 19003 19004# The else clause should only fire when bootstrapping the 19005# libtool distribution, otherwise you forgot to ship ltmain.sh 19006# with your package, and you will get complaints that there are 19007# no rules to generate ltmain.sh. 19008if test -f "$ltmain"; then 19009 # See if we are running on zsh, and set the options which allow our commands through 19010 # without removal of \ escapes. 19011 if test -n "${ZSH_VERSION+set}" ; then 19012 setopt NO_GLOB_SUBST 19013 fi 19014 # Now quote all the things that may contain metacharacters while being 19015 # careful not to overquote the AC_SUBSTed values. We take copies of the 19016 # variables and quote the copies for generation of the libtool script. 19017 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19018 SED SHELL STRIP \ 19019 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19020 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19021 deplibs_check_method reload_flag reload_cmds need_locks \ 19022 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19023 lt_cv_sys_global_symbol_to_c_name_address \ 19024 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19025 old_postinstall_cmds old_postuninstall_cmds \ 19026 compiler_GCJ \ 19027 CC_GCJ \ 19028 LD_GCJ \ 19029 lt_prog_compiler_wl_GCJ \ 19030 lt_prog_compiler_pic_GCJ \ 19031 lt_prog_compiler_static_GCJ \ 19032 lt_prog_compiler_no_builtin_flag_GCJ \ 19033 export_dynamic_flag_spec_GCJ \ 19034 thread_safe_flag_spec_GCJ \ 19035 whole_archive_flag_spec_GCJ \ 19036 enable_shared_with_static_runtimes_GCJ \ 19037 old_archive_cmds_GCJ \ 19038 old_archive_from_new_cmds_GCJ \ 19039 predep_objects_GCJ \ 19040 postdep_objects_GCJ \ 19041 predeps_GCJ \ 19042 postdeps_GCJ \ 19043 compiler_lib_search_path_GCJ \ 19044 compiler_lib_search_dirs_GCJ \ 19045 archive_cmds_GCJ \ 19046 archive_expsym_cmds_GCJ \ 19047 postinstall_cmds_GCJ \ 19048 postuninstall_cmds_GCJ \ 19049 old_archive_from_expsyms_cmds_GCJ \ 19050 allow_undefined_flag_GCJ \ 19051 no_undefined_flag_GCJ \ 19052 export_symbols_cmds_GCJ \ 19053 hardcode_libdir_flag_spec_GCJ \ 19054 hardcode_libdir_flag_spec_ld_GCJ \ 19055 hardcode_libdir_separator_GCJ \ 19056 hardcode_automatic_GCJ \ 19057 module_cmds_GCJ \ 19058 module_expsym_cmds_GCJ \ 19059 lt_cv_prog_compiler_c_o_GCJ \ 19060 fix_srcfile_path_GCJ \ 19061 exclude_expsyms_GCJ \ 19062 include_expsyms_GCJ; do 19063 19064 case $var in 19065 old_archive_cmds_GCJ | \ 19066 old_archive_from_new_cmds_GCJ | \ 19067 archive_cmds_GCJ | \ 19068 archive_expsym_cmds_GCJ | \ 19069 module_cmds_GCJ | \ 19070 module_expsym_cmds_GCJ | \ 19071 old_archive_from_expsyms_cmds_GCJ | \ 19072 export_symbols_cmds_GCJ | \ 19073 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19074 postinstall_cmds | postuninstall_cmds | \ 19075 old_postinstall_cmds | old_postuninstall_cmds | \ 19076 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19077 # Double-quote double-evaled strings. 19078 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19079 ;; 19080 *) 19081 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19082 ;; 19083 esac 19084 done 19085 19086 case $lt_echo in 19087 *'\$0 --fallback-echo"') 19088 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19089 ;; 19090 esac 19091 19092cfgfile="$ofile" 19093 19094 cat <<__EOF__ >> "$cfgfile" 19095# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19096 19097# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19098 19099# Shell to use when invoking shell scripts. 19100SHELL=$lt_SHELL 19101 19102# Whether or not to build shared libraries. 19103build_libtool_libs=$enable_shared 19104 19105# Whether or not to build static libraries. 19106build_old_libs=$enable_static 19107 19108# Whether or not to add -lc for building shared libraries. 19109build_libtool_need_lc=$archive_cmds_need_lc_GCJ 19110 19111# Whether or not to disallow shared libs when runtime libs are static 19112allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 19113 19114# Whether or not to optimize for fast installation. 19115fast_install=$enable_fast_install 19116 19117# The host system. 19118host_alias=$host_alias 19119host=$host 19120host_os=$host_os 19121 19122# The build system. 19123build_alias=$build_alias 19124build=$build 19125build_os=$build_os 19126 19127# An echo program that does not interpret backslashes. 19128echo=$lt_echo 19129 19130# The archiver. 19131AR=$lt_AR 19132AR_FLAGS=$lt_AR_FLAGS 19133 19134# A C compiler. 19135LTCC=$lt_LTCC 19136 19137# LTCC compiler flags. 19138LTCFLAGS=$lt_LTCFLAGS 19139 19140# A language-specific compiler. 19141CC=$lt_compiler_GCJ 19142 19143# Is the compiler the GNU C compiler? 19144with_gcc=$GCC_GCJ 19145 19146# An ERE matcher. 19147EGREP=$lt_EGREP 19148 19149# The linker used to build libraries. 19150LD=$lt_LD_GCJ 19151 19152# Whether we need hard or soft links. 19153LN_S=$lt_LN_S 19154 19155# A BSD-compatible nm program. 19156NM=$lt_NM 19157 19158# A symbol stripping program 19159STRIP=$lt_STRIP 19160 19161# Used to examine libraries when file_magic_cmd begins "file" 19162MAGIC_CMD=$MAGIC_CMD 19163 19164# Used on cygwin: DLL creation program. 19165DLLTOOL="$DLLTOOL" 19166 19167# Used on cygwin: object dumper. 19168OBJDUMP="$OBJDUMP" 19169 19170# Used on cygwin: assembler. 19171AS="$AS" 19172 19173# The name of the directory that contains temporary libtool files. 19174objdir=$objdir 19175 19176# How to create reloadable object files. 19177reload_flag=$lt_reload_flag 19178reload_cmds=$lt_reload_cmds 19179 19180# How to pass a linker flag through the compiler. 19181wl=$lt_lt_prog_compiler_wl_GCJ 19182 19183# Object file suffix (normally "o"). 19184objext="$ac_objext" 19185 19186# Old archive suffix (normally "a"). 19187libext="$libext" 19188 19189# Shared library suffix (normally ".so"). 19190shrext_cmds='$shrext_cmds' 19191 19192# Executable file suffix (normally ""). 19193exeext="$exeext" 19194 19195# Additional compiler flags for building library objects. 19196pic_flag=$lt_lt_prog_compiler_pic_GCJ 19197pic_mode=$pic_mode 19198 19199# What is the maximum length of a command? 19200max_cmd_len=$lt_cv_sys_max_cmd_len 19201 19202# Does compiler simultaneously support -c and -o options? 19203compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 19204 19205# Must we lock files when doing compilation? 19206need_locks=$lt_need_locks 19207 19208# Do we need the lib prefix for modules? 19209need_lib_prefix=$need_lib_prefix 19210 19211# Do we need a version for libraries? 19212need_version=$need_version 19213 19214# Whether dlopen is supported. 19215dlopen_support=$enable_dlopen 19216 19217# Whether dlopen of programs is supported. 19218dlopen_self=$enable_dlopen_self 19219 19220# Whether dlopen of statically linked programs is supported. 19221dlopen_self_static=$enable_dlopen_self_static 19222 19223# Compiler flag to prevent dynamic linking. 19224link_static_flag=$lt_lt_prog_compiler_static_GCJ 19225 19226# Compiler flag to turn off builtin functions. 19227no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19228 19229# Compiler flag to allow reflexive dlopens. 19230export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19231 19232# Compiler flag to generate shared objects directly from archives. 19233whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19234 19235# Compiler flag to generate thread-safe objects. 19236thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19237 19238# Library versioning type. 19239version_type=$version_type 19240 19241# Format of library name prefix. 19242libname_spec=$lt_libname_spec 19243 19244# List of archive names. First name is the real one, the rest are links. 19245# The last name is the one that the linker finds with -lNAME. 19246library_names_spec=$lt_library_names_spec 19247 19248# The coded name of the library, if different from the real name. 19249soname_spec=$lt_soname_spec 19250 19251# Commands used to build and install an old-style archive. 19252RANLIB=$lt_RANLIB 19253old_archive_cmds=$lt_old_archive_cmds_GCJ 19254old_postinstall_cmds=$lt_old_postinstall_cmds 19255old_postuninstall_cmds=$lt_old_postuninstall_cmds 19256 19257# Create an old-style archive from a shared archive. 19258old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19259 19260# Create a temporary old-style archive to link instead of a shared archive. 19261old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19262 19263# Commands used to build and install a shared archive. 19264archive_cmds=$lt_archive_cmds_GCJ 19265archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19266postinstall_cmds=$lt_postinstall_cmds 19267postuninstall_cmds=$lt_postuninstall_cmds 19268 19269# Commands used to build a loadable module (assumed same as above if empty) 19270module_cmds=$lt_module_cmds_GCJ 19271module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19272 19273# Commands to strip libraries. 19274old_striplib=$lt_old_striplib 19275striplib=$lt_striplib 19276 19277# Dependencies to place before the objects being linked to create a 19278# shared library. 19279predep_objects=$lt_predep_objects_GCJ 19280 19281# Dependencies to place after the objects being linked to create a 19282# shared library. 19283postdep_objects=$lt_postdep_objects_GCJ 19284 19285# Dependencies to place before the objects being linked to create a 19286# shared library. 19287predeps=$lt_predeps_GCJ 19288 19289# Dependencies to place after the objects being linked to create a 19290# shared library. 19291postdeps=$lt_postdeps_GCJ 19292 19293# The directories searched by this compiler when creating a shared 19294# library 19295compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ 19296 19297# The library search path used internally by the compiler when linking 19298# a shared library. 19299compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19300 19301# Method to check whether dependent libraries are shared objects. 19302deplibs_check_method=$lt_deplibs_check_method 19303 19304# Command to use when deplibs_check_method == file_magic. 19305file_magic_cmd=$lt_file_magic_cmd 19306 19307# Flag that allows shared libraries with undefined symbols to be built. 19308allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19309 19310# Flag that forces no undefined symbols. 19311no_undefined_flag=$lt_no_undefined_flag_GCJ 19312 19313# Commands used to finish a libtool library installation in a directory. 19314finish_cmds=$lt_finish_cmds 19315 19316# Same as above, but a single script fragment to be evaled but not shown. 19317finish_eval=$lt_finish_eval 19318 19319# Take the output of nm and produce a listing of raw symbols and C names. 19320global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19321 19322# Transform the output of nm in a proper C declaration 19323global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19324 19325# Transform the output of nm in a C name address pair 19326global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19327 19328# This is the shared library runtime path variable. 19329runpath_var=$runpath_var 19330 19331# This is the shared library path variable. 19332shlibpath_var=$shlibpath_var 19333 19334# Is shlibpath searched before the hard-coded library search path? 19335shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19336 19337# How to hardcode a shared library path into an executable. 19338hardcode_action=$hardcode_action_GCJ 19339 19340# Whether we should hardcode library paths into libraries. 19341hardcode_into_libs=$hardcode_into_libs 19342 19343# Flag to hardcode \$libdir into a binary during linking. 19344# This must work even if \$libdir does not exist. 19345hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19346 19347# If ld is used when linking, flag to hardcode \$libdir into 19348# a binary during linking. This must work even if \$libdir does 19349# not exist. 19350hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19351 19352# Whether we need a single -rpath flag with a separated argument. 19353hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19354 19355# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19356# resulting binary. 19357hardcode_direct=$hardcode_direct_GCJ 19358 19359# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19360# resulting binary. 19361hardcode_minus_L=$hardcode_minus_L_GCJ 19362 19363# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19364# the resulting binary. 19365hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19366 19367# Set to yes if building a shared library automatically hardcodes DIR into the library 19368# and all subsequent libraries and executables linked against it. 19369hardcode_automatic=$hardcode_automatic_GCJ 19370 19371# Variables whose values should be saved in libtool wrapper scripts and 19372# restored at relink time. 19373variables_saved_for_relink="$variables_saved_for_relink" 19374 19375# Whether libtool must link a program against all its dependency libraries. 19376link_all_deplibs=$link_all_deplibs_GCJ 19377 19378# Compile-time system search path for libraries 19379sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19380 19381# Run-time system search path for libraries 19382sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19383 19384# Fix the shell variable \$srcfile for the compiler. 19385fix_srcfile_path=$lt_fix_srcfile_path 19386 19387# Set to yes if exported symbols are required. 19388always_export_symbols=$always_export_symbols_GCJ 19389 19390# The commands to list exported symbols. 19391export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19392 19393# The commands to extract the exported symbol list from a shared archive. 19394extract_expsyms_cmds=$lt_extract_expsyms_cmds 19395 19396# Symbols that should not be listed in the preloaded symbols. 19397exclude_expsyms=$lt_exclude_expsyms_GCJ 19398 19399# Symbols that must always be exported. 19400include_expsyms=$lt_include_expsyms_GCJ 19401 19402# ### END LIBTOOL TAG CONFIG: $tagname 19403 19404__EOF__ 19405 19406 19407else 19408 # If there is no Makefile yet, we rely on a make rule to execute 19409 # `config.status --recheck' to rerun these tests and create the 19410 # libtool script then. 19411 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19412 if test -f "$ltmain_in"; then 19413 test -f Makefile && make "$ltmain" 19414 fi 19415fi 19416 19417 19418ac_ext=c 19419ac_cpp='$CPP $CPPFLAGS' 19420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19422ac_compiler_gnu=$ac_cv_c_compiler_gnu 19423 19424CC="$lt_save_CC" 19425 19426 else 19427 tagname="" 19428 fi 19429 ;; 19430 19431 RC) 19432 19433 19434# Source file extension for RC test sources. 19435ac_ext=rc 19436 19437# Object file extension for compiled RC test sources. 19438objext=o 19439objext_RC=$objext 19440 19441# Code to be used in simple compile tests 19442lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 19443 19444# Code to be used in simple link tests 19445lt_simple_link_test_code="$lt_simple_compile_test_code" 19446 19447# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19448 19449# If no C compiler was specified, use CC. 19450LTCC=${LTCC-"$CC"} 19451 19452# If no C compiler flags were specified, use CFLAGS. 19453LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19454 19455# Allow CC to be a program name with arguments. 19456compiler=$CC 19457 19458 19459# save warnings/boilerplate of simple test code 19460ac_outfile=conftest.$ac_objext 19461echo "$lt_simple_compile_test_code" >conftest.$ac_ext 19462eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19463_lt_compiler_boilerplate=`cat conftest.err` 19464$rm conftest* 19465 19466ac_outfile=conftest.$ac_objext 19467echo "$lt_simple_link_test_code" >conftest.$ac_ext 19468eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19469_lt_linker_boilerplate=`cat conftest.err` 19470$rm -r conftest* 19471 19472 19473# Allow CC to be a program name with arguments. 19474lt_save_CC="$CC" 19475CC=${RC-"windres"} 19476compiler=$CC 19477compiler_RC=$CC 19478for cc_temp in $compiler""; do 19479 case $cc_temp in 19480 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19481 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19482 \-*) ;; 19483 *) break;; 19484 esac 19485done 19486cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19487 19488lt_cv_prog_compiler_c_o_RC=yes 19489 19490# The else clause should only fire when bootstrapping the 19491# libtool distribution, otherwise you forgot to ship ltmain.sh 19492# with your package, and you will get complaints that there are 19493# no rules to generate ltmain.sh. 19494if test -f "$ltmain"; then 19495 # See if we are running on zsh, and set the options which allow our commands through 19496 # without removal of \ escapes. 19497 if test -n "${ZSH_VERSION+set}" ; then 19498 setopt NO_GLOB_SUBST 19499 fi 19500 # Now quote all the things that may contain metacharacters while being 19501 # careful not to overquote the AC_SUBSTed values. We take copies of the 19502 # variables and quote the copies for generation of the libtool script. 19503 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19504 SED SHELL STRIP \ 19505 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19506 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19507 deplibs_check_method reload_flag reload_cmds need_locks \ 19508 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19509 lt_cv_sys_global_symbol_to_c_name_address \ 19510 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19511 old_postinstall_cmds old_postuninstall_cmds \ 19512 compiler_RC \ 19513 CC_RC \ 19514 LD_RC \ 19515 lt_prog_compiler_wl_RC \ 19516 lt_prog_compiler_pic_RC \ 19517 lt_prog_compiler_static_RC \ 19518 lt_prog_compiler_no_builtin_flag_RC \ 19519 export_dynamic_flag_spec_RC \ 19520 thread_safe_flag_spec_RC \ 19521 whole_archive_flag_spec_RC \ 19522 enable_shared_with_static_runtimes_RC \ 19523 old_archive_cmds_RC \ 19524 old_archive_from_new_cmds_RC \ 19525 predep_objects_RC \ 19526 postdep_objects_RC \ 19527 predeps_RC \ 19528 postdeps_RC \ 19529 compiler_lib_search_path_RC \ 19530 compiler_lib_search_dirs_RC \ 19531 archive_cmds_RC \ 19532 archive_expsym_cmds_RC \ 19533 postinstall_cmds_RC \ 19534 postuninstall_cmds_RC \ 19535 old_archive_from_expsyms_cmds_RC \ 19536 allow_undefined_flag_RC \ 19537 no_undefined_flag_RC \ 19538 export_symbols_cmds_RC \ 19539 hardcode_libdir_flag_spec_RC \ 19540 hardcode_libdir_flag_spec_ld_RC \ 19541 hardcode_libdir_separator_RC \ 19542 hardcode_automatic_RC \ 19543 module_cmds_RC \ 19544 module_expsym_cmds_RC \ 19545 lt_cv_prog_compiler_c_o_RC \ 19546 fix_srcfile_path_RC \ 19547 exclude_expsyms_RC \ 19548 include_expsyms_RC; do 19549 19550 case $var in 19551 old_archive_cmds_RC | \ 19552 old_archive_from_new_cmds_RC | \ 19553 archive_cmds_RC | \ 19554 archive_expsym_cmds_RC | \ 19555 module_cmds_RC | \ 19556 module_expsym_cmds_RC | \ 19557 old_archive_from_expsyms_cmds_RC | \ 19558 export_symbols_cmds_RC | \ 19559 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19560 postinstall_cmds | postuninstall_cmds | \ 19561 old_postinstall_cmds | old_postuninstall_cmds | \ 19562 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19563 # Double-quote double-evaled strings. 19564 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19565 ;; 19566 *) 19567 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19568 ;; 19569 esac 19570 done 19571 19572 case $lt_echo in 19573 *'\$0 --fallback-echo"') 19574 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19575 ;; 19576 esac 19577 19578cfgfile="$ofile" 19579 19580 cat <<__EOF__ >> "$cfgfile" 19581# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19582 19583# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19584 19585# Shell to use when invoking shell scripts. 19586SHELL=$lt_SHELL 19587 19588# Whether or not to build shared libraries. 19589build_libtool_libs=$enable_shared 19590 19591# Whether or not to build static libraries. 19592build_old_libs=$enable_static 19593 19594# Whether or not to add -lc for building shared libraries. 19595build_libtool_need_lc=$archive_cmds_need_lc_RC 19596 19597# Whether or not to disallow shared libs when runtime libs are static 19598allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19599 19600# Whether or not to optimize for fast installation. 19601fast_install=$enable_fast_install 19602 19603# The host system. 19604host_alias=$host_alias 19605host=$host 19606host_os=$host_os 19607 19608# The build system. 19609build_alias=$build_alias 19610build=$build 19611build_os=$build_os 19612 19613# An echo program that does not interpret backslashes. 19614echo=$lt_echo 19615 19616# The archiver. 19617AR=$lt_AR 19618AR_FLAGS=$lt_AR_FLAGS 19619 19620# A C compiler. 19621LTCC=$lt_LTCC 19622 19623# LTCC compiler flags. 19624LTCFLAGS=$lt_LTCFLAGS 19625 19626# A language-specific compiler. 19627CC=$lt_compiler_RC 19628 19629# Is the compiler the GNU C compiler? 19630with_gcc=$GCC_RC 19631 19632# An ERE matcher. 19633EGREP=$lt_EGREP 19634 19635# The linker used to build libraries. 19636LD=$lt_LD_RC 19637 19638# Whether we need hard or soft links. 19639LN_S=$lt_LN_S 19640 19641# A BSD-compatible nm program. 19642NM=$lt_NM 19643 19644# A symbol stripping program 19645STRIP=$lt_STRIP 19646 19647# Used to examine libraries when file_magic_cmd begins "file" 19648MAGIC_CMD=$MAGIC_CMD 19649 19650# Used on cygwin: DLL creation program. 19651DLLTOOL="$DLLTOOL" 19652 19653# Used on cygwin: object dumper. 19654OBJDUMP="$OBJDUMP" 19655 19656# Used on cygwin: assembler. 19657AS="$AS" 19658 19659# The name of the directory that contains temporary libtool files. 19660objdir=$objdir 19661 19662# How to create reloadable object files. 19663reload_flag=$lt_reload_flag 19664reload_cmds=$lt_reload_cmds 19665 19666# How to pass a linker flag through the compiler. 19667wl=$lt_lt_prog_compiler_wl_RC 19668 19669# Object file suffix (normally "o"). 19670objext="$ac_objext" 19671 19672# Old archive suffix (normally "a"). 19673libext="$libext" 19674 19675# Shared library suffix (normally ".so"). 19676shrext_cmds='$shrext_cmds' 19677 19678# Executable file suffix (normally ""). 19679exeext="$exeext" 19680 19681# Additional compiler flags for building library objects. 19682pic_flag=$lt_lt_prog_compiler_pic_RC 19683pic_mode=$pic_mode 19684 19685# What is the maximum length of a command? 19686max_cmd_len=$lt_cv_sys_max_cmd_len 19687 19688# Does compiler simultaneously support -c and -o options? 19689compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19690 19691# Must we lock files when doing compilation? 19692need_locks=$lt_need_locks 19693 19694# Do we need the lib prefix for modules? 19695need_lib_prefix=$need_lib_prefix 19696 19697# Do we need a version for libraries? 19698need_version=$need_version 19699 19700# Whether dlopen is supported. 19701dlopen_support=$enable_dlopen 19702 19703# Whether dlopen of programs is supported. 19704dlopen_self=$enable_dlopen_self 19705 19706# Whether dlopen of statically linked programs is supported. 19707dlopen_self_static=$enable_dlopen_self_static 19708 19709# Compiler flag to prevent dynamic linking. 19710link_static_flag=$lt_lt_prog_compiler_static_RC 19711 19712# Compiler flag to turn off builtin functions. 19713no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19714 19715# Compiler flag to allow reflexive dlopens. 19716export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19717 19718# Compiler flag to generate shared objects directly from archives. 19719whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19720 19721# Compiler flag to generate thread-safe objects. 19722thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19723 19724# Library versioning type. 19725version_type=$version_type 19726 19727# Format of library name prefix. 19728libname_spec=$lt_libname_spec 19729 19730# List of archive names. First name is the real one, the rest are links. 19731# The last name is the one that the linker finds with -lNAME. 19732library_names_spec=$lt_library_names_spec 19733 19734# The coded name of the library, if different from the real name. 19735soname_spec=$lt_soname_spec 19736 19737# Commands used to build and install an old-style archive. 19738RANLIB=$lt_RANLIB 19739old_archive_cmds=$lt_old_archive_cmds_RC 19740old_postinstall_cmds=$lt_old_postinstall_cmds 19741old_postuninstall_cmds=$lt_old_postuninstall_cmds 19742 19743# Create an old-style archive from a shared archive. 19744old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19745 19746# Create a temporary old-style archive to link instead of a shared archive. 19747old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19748 19749# Commands used to build and install a shared archive. 19750archive_cmds=$lt_archive_cmds_RC 19751archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19752postinstall_cmds=$lt_postinstall_cmds 19753postuninstall_cmds=$lt_postuninstall_cmds 19754 19755# Commands used to build a loadable module (assumed same as above if empty) 19756module_cmds=$lt_module_cmds_RC 19757module_expsym_cmds=$lt_module_expsym_cmds_RC 19758 19759# Commands to strip libraries. 19760old_striplib=$lt_old_striplib 19761striplib=$lt_striplib 19762 19763# Dependencies to place before the objects being linked to create a 19764# shared library. 19765predep_objects=$lt_predep_objects_RC 19766 19767# Dependencies to place after the objects being linked to create a 19768# shared library. 19769postdep_objects=$lt_postdep_objects_RC 19770 19771# Dependencies to place before the objects being linked to create a 19772# shared library. 19773predeps=$lt_predeps_RC 19774 19775# Dependencies to place after the objects being linked to create a 19776# shared library. 19777postdeps=$lt_postdeps_RC 19778 19779# The directories searched by this compiler when creating a shared 19780# library 19781compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC 19782 19783# The library search path used internally by the compiler when linking 19784# a shared library. 19785compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19786 19787# Method to check whether dependent libraries are shared objects. 19788deplibs_check_method=$lt_deplibs_check_method 19789 19790# Command to use when deplibs_check_method == file_magic. 19791file_magic_cmd=$lt_file_magic_cmd 19792 19793# Flag that allows shared libraries with undefined symbols to be built. 19794allow_undefined_flag=$lt_allow_undefined_flag_RC 19795 19796# Flag that forces no undefined symbols. 19797no_undefined_flag=$lt_no_undefined_flag_RC 19798 19799# Commands used to finish a libtool library installation in a directory. 19800finish_cmds=$lt_finish_cmds 19801 19802# Same as above, but a single script fragment to be evaled but not shown. 19803finish_eval=$lt_finish_eval 19804 19805# Take the output of nm and produce a listing of raw symbols and C names. 19806global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19807 19808# Transform the output of nm in a proper C declaration 19809global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19810 19811# Transform the output of nm in a C name address pair 19812global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19813 19814# This is the shared library runtime path variable. 19815runpath_var=$runpath_var 19816 19817# This is the shared library path variable. 19818shlibpath_var=$shlibpath_var 19819 19820# Is shlibpath searched before the hard-coded library search path? 19821shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19822 19823# How to hardcode a shared library path into an executable. 19824hardcode_action=$hardcode_action_RC 19825 19826# Whether we should hardcode library paths into libraries. 19827hardcode_into_libs=$hardcode_into_libs 19828 19829# Flag to hardcode \$libdir into a binary during linking. 19830# This must work even if \$libdir does not exist. 19831hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19832 19833# If ld is used when linking, flag to hardcode \$libdir into 19834# a binary during linking. This must work even if \$libdir does 19835# not exist. 19836hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19837 19838# Whether we need a single -rpath flag with a separated argument. 19839hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19840 19841# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19842# resulting binary. 19843hardcode_direct=$hardcode_direct_RC 19844 19845# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19846# resulting binary. 19847hardcode_minus_L=$hardcode_minus_L_RC 19848 19849# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19850# the resulting binary. 19851hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19852 19853# Set to yes if building a shared library automatically hardcodes DIR into the library 19854# and all subsequent libraries and executables linked against it. 19855hardcode_automatic=$hardcode_automatic_RC 19856 19857# Variables whose values should be saved in libtool wrapper scripts and 19858# restored at relink time. 19859variables_saved_for_relink="$variables_saved_for_relink" 19860 19861# Whether libtool must link a program against all its dependency libraries. 19862link_all_deplibs=$link_all_deplibs_RC 19863 19864# Compile-time system search path for libraries 19865sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19866 19867# Run-time system search path for libraries 19868sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19869 19870# Fix the shell variable \$srcfile for the compiler. 19871fix_srcfile_path=$lt_fix_srcfile_path 19872 19873# Set to yes if exported symbols are required. 19874always_export_symbols=$always_export_symbols_RC 19875 19876# The commands to list exported symbols. 19877export_symbols_cmds=$lt_export_symbols_cmds_RC 19878 19879# The commands to extract the exported symbol list from a shared archive. 19880extract_expsyms_cmds=$lt_extract_expsyms_cmds 19881 19882# Symbols that should not be listed in the preloaded symbols. 19883exclude_expsyms=$lt_exclude_expsyms_RC 19884 19885# Symbols that must always be exported. 19886include_expsyms=$lt_include_expsyms_RC 19887 19888# ### END LIBTOOL TAG CONFIG: $tagname 19889 19890__EOF__ 19891 19892 19893else 19894 # If there is no Makefile yet, we rely on a make rule to execute 19895 # `config.status --recheck' to rerun these tests and create the 19896 # libtool script then. 19897 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19898 if test -f "$ltmain_in"; then 19899 test -f Makefile && make "$ltmain" 19900 fi 19901fi 19902 19903 19904ac_ext=c 19905ac_cpp='$CPP $CPPFLAGS' 19906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19908ac_compiler_gnu=$ac_cv_c_compiler_gnu 19909 19910CC="$lt_save_CC" 19911 19912 ;; 19913 19914 *) 19915 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19916$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19917 { (exit 1); exit 1; }; } 19918 ;; 19919 esac 19920 19921 # Append the new tag name to the list of available tags. 19922 if test -n "$tagname" ; then 19923 available_tags="$available_tags $tagname" 19924 fi 19925 fi 19926 done 19927 IFS="$lt_save_ifs" 19928 19929 # Now substitute the updated list of available tags. 19930 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19931 mv "${ofile}T" "$ofile" 19932 chmod +x "$ofile" 19933 else 19934 rm -f "${ofile}T" 19935 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19936$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19937 { (exit 1); exit 1; }; } 19938 fi 19939fi 19940 19941 19942 19943# This can be used to rebuild libtool when needed 19944LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19945 19946# Always use our own libtool. 19947LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19948 19949# Prevent multiple expansion 19950 19951 19952 19953 19954 19955 19956 19957 19958 19959 19960 19961 19962 19963 19964 19965 19966 19967 19968 19969 19970ac_ext=c 19971ac_cpp='$CPP $CPPFLAGS' 19972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19974ac_compiler_gnu=$ac_cv_c_compiler_gnu 19975if test -n "$ac_tool_prefix"; then 19976 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 19977set dummy ${ac_tool_prefix}gcc; ac_word=$2 19978{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 19979$as_echo_n "checking for $ac_word... " >&6; } 19980if test "${ac_cv_prog_CC+set}" = set; then 19981 $as_echo_n "(cached) " >&6 19982else 19983 if test -n "$CC"; then 19984 ac_cv_prog_CC="$CC" # Let the user override the test. 19985else 19986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19987for as_dir in $PATH 19988do 19989 IFS=$as_save_IFS 19990 test -z "$as_dir" && as_dir=. 19991 for ac_exec_ext in '' $ac_executable_extensions; do 19992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19993 ac_cv_prog_CC="${ac_tool_prefix}gcc" 19994 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19995 break 2 19996 fi 19997done 19998done 19999IFS=$as_save_IFS 20000 20001fi 20002fi 20003CC=$ac_cv_prog_CC 20004if test -n "$CC"; then 20005 { $as_echo "$as_me:$LINENO: result: $CC" >&5 20006$as_echo "$CC" >&6; } 20007else 20008 { $as_echo "$as_me:$LINENO: result: no" >&5 20009$as_echo "no" >&6; } 20010fi 20011 20012 20013fi 20014if test -z "$ac_cv_prog_CC"; then 20015 ac_ct_CC=$CC 20016 # Extract the first word of "gcc", so it can be a program name with args. 20017set dummy gcc; ac_word=$2 20018{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20019$as_echo_n "checking for $ac_word... " >&6; } 20020if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 20021 $as_echo_n "(cached) " >&6 20022else 20023 if test -n "$ac_ct_CC"; then 20024 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 20025else 20026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20027for as_dir in $PATH 20028do 20029 IFS=$as_save_IFS 20030 test -z "$as_dir" && as_dir=. 20031 for ac_exec_ext in '' $ac_executable_extensions; do 20032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20033 ac_cv_prog_ac_ct_CC="gcc" 20034 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20035 break 2 20036 fi 20037done 20038done 20039IFS=$as_save_IFS 20040 20041fi 20042fi 20043ac_ct_CC=$ac_cv_prog_ac_ct_CC 20044if test -n "$ac_ct_CC"; then 20045 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 20046$as_echo "$ac_ct_CC" >&6; } 20047else 20048 { $as_echo "$as_me:$LINENO: result: no" >&5 20049$as_echo "no" >&6; } 20050fi 20051 20052 if test "x$ac_ct_CC" = x; then 20053 CC="" 20054 else 20055 case $cross_compiling:$ac_tool_warned in 20056yes:) 20057{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 20058$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 20059ac_tool_warned=yes ;; 20060esac 20061 CC=$ac_ct_CC 20062 fi 20063else 20064 CC="$ac_cv_prog_CC" 20065fi 20066 20067if test -z "$CC"; then 20068 if test -n "$ac_tool_prefix"; then 20069 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 20070set dummy ${ac_tool_prefix}cc; ac_word=$2 20071{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20072$as_echo_n "checking for $ac_word... " >&6; } 20073if test "${ac_cv_prog_CC+set}" = set; then 20074 $as_echo_n "(cached) " >&6 20075else 20076 if test -n "$CC"; then 20077 ac_cv_prog_CC="$CC" # Let the user override the test. 20078else 20079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20080for as_dir in $PATH 20081do 20082 IFS=$as_save_IFS 20083 test -z "$as_dir" && as_dir=. 20084 for ac_exec_ext in '' $ac_executable_extensions; do 20085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20086 ac_cv_prog_CC="${ac_tool_prefix}cc" 20087 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20088 break 2 20089 fi 20090done 20091done 20092IFS=$as_save_IFS 20093 20094fi 20095fi 20096CC=$ac_cv_prog_CC 20097if test -n "$CC"; then 20098 { $as_echo "$as_me:$LINENO: result: $CC" >&5 20099$as_echo "$CC" >&6; } 20100else 20101 { $as_echo "$as_me:$LINENO: result: no" >&5 20102$as_echo "no" >&6; } 20103fi 20104 20105 20106 fi 20107fi 20108if test -z "$CC"; then 20109 # Extract the first word of "cc", so it can be a program name with args. 20110set dummy cc; ac_word=$2 20111{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20112$as_echo_n "checking for $ac_word... " >&6; } 20113if test "${ac_cv_prog_CC+set}" = set; then 20114 $as_echo_n "(cached) " >&6 20115else 20116 if test -n "$CC"; then 20117 ac_cv_prog_CC="$CC" # Let the user override the test. 20118else 20119 ac_prog_rejected=no 20120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20121for as_dir in $PATH 20122do 20123 IFS=$as_save_IFS 20124 test -z "$as_dir" && as_dir=. 20125 for ac_exec_ext in '' $ac_executable_extensions; do 20126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20127 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 20128 ac_prog_rejected=yes 20129 continue 20130 fi 20131 ac_cv_prog_CC="cc" 20132 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20133 break 2 20134 fi 20135done 20136done 20137IFS=$as_save_IFS 20138 20139if test $ac_prog_rejected = yes; then 20140 # We found a bogon in the path, so make sure we never use it. 20141 set dummy $ac_cv_prog_CC 20142 shift 20143 if test $# != 0; then 20144 # We chose a different compiler from the bogus one. 20145 # However, it has the same basename, so the bogon will be chosen 20146 # first if we set CC to just the basename; use the full file name. 20147 shift 20148 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 20149 fi 20150fi 20151fi 20152fi 20153CC=$ac_cv_prog_CC 20154if test -n "$CC"; then 20155 { $as_echo "$as_me:$LINENO: result: $CC" >&5 20156$as_echo "$CC" >&6; } 20157else 20158 { $as_echo "$as_me:$LINENO: result: no" >&5 20159$as_echo "no" >&6; } 20160fi 20161 20162 20163fi 20164if test -z "$CC"; then 20165 if test -n "$ac_tool_prefix"; then 20166 for ac_prog in cl.exe 20167 do 20168 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 20169set dummy $ac_tool_prefix$ac_prog; ac_word=$2 20170{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20171$as_echo_n "checking for $ac_word... " >&6; } 20172if test "${ac_cv_prog_CC+set}" = set; then 20173 $as_echo_n "(cached) " >&6 20174else 20175 if test -n "$CC"; then 20176 ac_cv_prog_CC="$CC" # Let the user override the test. 20177else 20178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20179for as_dir in $PATH 20180do 20181 IFS=$as_save_IFS 20182 test -z "$as_dir" && as_dir=. 20183 for ac_exec_ext in '' $ac_executable_extensions; do 20184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20185 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 20186 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20187 break 2 20188 fi 20189done 20190done 20191IFS=$as_save_IFS 20192 20193fi 20194fi 20195CC=$ac_cv_prog_CC 20196if test -n "$CC"; then 20197 { $as_echo "$as_me:$LINENO: result: $CC" >&5 20198$as_echo "$CC" >&6; } 20199else 20200 { $as_echo "$as_me:$LINENO: result: no" >&5 20201$as_echo "no" >&6; } 20202fi 20203 20204 20205 test -n "$CC" && break 20206 done 20207fi 20208if test -z "$CC"; then 20209 ac_ct_CC=$CC 20210 for ac_prog in cl.exe 20211do 20212 # Extract the first word of "$ac_prog", so it can be a program name with args. 20213set dummy $ac_prog; ac_word=$2 20214{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20215$as_echo_n "checking for $ac_word... " >&6; } 20216if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 20217 $as_echo_n "(cached) " >&6 20218else 20219 if test -n "$ac_ct_CC"; then 20220 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 20221else 20222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20223for as_dir in $PATH 20224do 20225 IFS=$as_save_IFS 20226 test -z "$as_dir" && as_dir=. 20227 for ac_exec_ext in '' $ac_executable_extensions; do 20228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20229 ac_cv_prog_ac_ct_CC="$ac_prog" 20230 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20231 break 2 20232 fi 20233done 20234done 20235IFS=$as_save_IFS 20236 20237fi 20238fi 20239ac_ct_CC=$ac_cv_prog_ac_ct_CC 20240if test -n "$ac_ct_CC"; then 20241 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 20242$as_echo "$ac_ct_CC" >&6; } 20243else 20244 { $as_echo "$as_me:$LINENO: result: no" >&5 20245$as_echo "no" >&6; } 20246fi 20247 20248 20249 test -n "$ac_ct_CC" && break 20250done 20251 20252 if test "x$ac_ct_CC" = x; then 20253 CC="" 20254 else 20255 case $cross_compiling:$ac_tool_warned in 20256yes:) 20257{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 20258$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 20259ac_tool_warned=yes ;; 20260esac 20261 CC=$ac_ct_CC 20262 fi 20263fi 20264 20265fi 20266 20267 20268test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 20269$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20270{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 20271See \`config.log' for more details." >&5 20272$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 20273See \`config.log' for more details." >&2;} 20274 { (exit 1); exit 1; }; }; } 20275 20276# Provide some information about the compiler. 20277$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 20278set X $ac_compile 20279ac_compiler=$2 20280{ (ac_try="$ac_compiler --version >&5" 20281case "(($ac_try" in 20282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20283 *) ac_try_echo=$ac_try;; 20284esac 20285eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20286$as_echo "$ac_try_echo") >&5 20287 (eval "$ac_compiler --version >&5") 2>&5 20288 ac_status=$? 20289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20290 (exit $ac_status); } 20291{ (ac_try="$ac_compiler -v >&5" 20292case "(($ac_try" in 20293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20294 *) ac_try_echo=$ac_try;; 20295esac 20296eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20297$as_echo "$ac_try_echo") >&5 20298 (eval "$ac_compiler -v >&5") 2>&5 20299 ac_status=$? 20300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20301 (exit $ac_status); } 20302{ (ac_try="$ac_compiler -V >&5" 20303case "(($ac_try" in 20304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20305 *) ac_try_echo=$ac_try;; 20306esac 20307eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20308$as_echo "$ac_try_echo") >&5 20309 (eval "$ac_compiler -V >&5") 2>&5 20310 ac_status=$? 20311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20312 (exit $ac_status); } 20313 20314{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 20315$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 20316if test "${ac_cv_c_compiler_gnu+set}" = set; then 20317 $as_echo_n "(cached) " >&6 20318else 20319 cat >conftest.$ac_ext <<_ACEOF 20320/* confdefs.h. */ 20321_ACEOF 20322cat confdefs.h >>conftest.$ac_ext 20323cat >>conftest.$ac_ext <<_ACEOF 20324/* end confdefs.h. */ 20325 20326int 20327main () 20328{ 20329#ifndef __GNUC__ 20330 choke me 20331#endif 20332 20333 ; 20334 return 0; 20335} 20336_ACEOF 20337rm -f conftest.$ac_objext 20338if { (ac_try="$ac_compile" 20339case "(($ac_try" in 20340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20341 *) ac_try_echo=$ac_try;; 20342esac 20343eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20344$as_echo "$ac_try_echo") >&5 20345 (eval "$ac_compile") 2>conftest.er1 20346 ac_status=$? 20347 grep -v '^ *+' conftest.er1 >conftest.err 20348 rm -f conftest.er1 20349 cat conftest.err >&5 20350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20351 (exit $ac_status); } && { 20352 test -z "$ac_c_werror_flag" || 20353 test ! -s conftest.err 20354 } && test -s conftest.$ac_objext; then 20355 ac_compiler_gnu=yes 20356else 20357 $as_echo "$as_me: failed program was:" >&5 20358sed 's/^/| /' conftest.$ac_ext >&5 20359 20360 ac_compiler_gnu=no 20361fi 20362 20363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20364ac_cv_c_compiler_gnu=$ac_compiler_gnu 20365 20366fi 20367{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 20368$as_echo "$ac_cv_c_compiler_gnu" >&6; } 20369if test $ac_compiler_gnu = yes; then 20370 GCC=yes 20371else 20372 GCC= 20373fi 20374ac_test_CFLAGS=${CFLAGS+set} 20375ac_save_CFLAGS=$CFLAGS 20376{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 20377$as_echo_n "checking whether $CC accepts -g... " >&6; } 20378if test "${ac_cv_prog_cc_g+set}" = set; then 20379 $as_echo_n "(cached) " >&6 20380else 20381 ac_save_c_werror_flag=$ac_c_werror_flag 20382 ac_c_werror_flag=yes 20383 ac_cv_prog_cc_g=no 20384 CFLAGS="-g" 20385 cat >conftest.$ac_ext <<_ACEOF 20386/* confdefs.h. */ 20387_ACEOF 20388cat confdefs.h >>conftest.$ac_ext 20389cat >>conftest.$ac_ext <<_ACEOF 20390/* end confdefs.h. */ 20391 20392int 20393main () 20394{ 20395 20396 ; 20397 return 0; 20398} 20399_ACEOF 20400rm -f conftest.$ac_objext 20401if { (ac_try="$ac_compile" 20402case "(($ac_try" in 20403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20404 *) ac_try_echo=$ac_try;; 20405esac 20406eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20407$as_echo "$ac_try_echo") >&5 20408 (eval "$ac_compile") 2>conftest.er1 20409 ac_status=$? 20410 grep -v '^ *+' conftest.er1 >conftest.err 20411 rm -f conftest.er1 20412 cat conftest.err >&5 20413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20414 (exit $ac_status); } && { 20415 test -z "$ac_c_werror_flag" || 20416 test ! -s conftest.err 20417 } && test -s conftest.$ac_objext; then 20418 ac_cv_prog_cc_g=yes 20419else 20420 $as_echo "$as_me: failed program was:" >&5 20421sed 's/^/| /' conftest.$ac_ext >&5 20422 20423 CFLAGS="" 20424 cat >conftest.$ac_ext <<_ACEOF 20425/* confdefs.h. */ 20426_ACEOF 20427cat confdefs.h >>conftest.$ac_ext 20428cat >>conftest.$ac_ext <<_ACEOF 20429/* end confdefs.h. */ 20430 20431int 20432main () 20433{ 20434 20435 ; 20436 return 0; 20437} 20438_ACEOF 20439rm -f conftest.$ac_objext 20440if { (ac_try="$ac_compile" 20441case "(($ac_try" in 20442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20443 *) ac_try_echo=$ac_try;; 20444esac 20445eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20446$as_echo "$ac_try_echo") >&5 20447 (eval "$ac_compile") 2>conftest.er1 20448 ac_status=$? 20449 grep -v '^ *+' conftest.er1 >conftest.err 20450 rm -f conftest.er1 20451 cat conftest.err >&5 20452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20453 (exit $ac_status); } && { 20454 test -z "$ac_c_werror_flag" || 20455 test ! -s conftest.err 20456 } && test -s conftest.$ac_objext; then 20457 : 20458else 20459 $as_echo "$as_me: failed program was:" >&5 20460sed 's/^/| /' conftest.$ac_ext >&5 20461 20462 ac_c_werror_flag=$ac_save_c_werror_flag 20463 CFLAGS="-g" 20464 cat >conftest.$ac_ext <<_ACEOF 20465/* confdefs.h. */ 20466_ACEOF 20467cat confdefs.h >>conftest.$ac_ext 20468cat >>conftest.$ac_ext <<_ACEOF 20469/* end confdefs.h. */ 20470 20471int 20472main () 20473{ 20474 20475 ; 20476 return 0; 20477} 20478_ACEOF 20479rm -f conftest.$ac_objext 20480if { (ac_try="$ac_compile" 20481case "(($ac_try" in 20482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20483 *) ac_try_echo=$ac_try;; 20484esac 20485eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20486$as_echo "$ac_try_echo") >&5 20487 (eval "$ac_compile") 2>conftest.er1 20488 ac_status=$? 20489 grep -v '^ *+' conftest.er1 >conftest.err 20490 rm -f conftest.er1 20491 cat conftest.err >&5 20492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20493 (exit $ac_status); } && { 20494 test -z "$ac_c_werror_flag" || 20495 test ! -s conftest.err 20496 } && test -s conftest.$ac_objext; then 20497 ac_cv_prog_cc_g=yes 20498else 20499 $as_echo "$as_me: failed program was:" >&5 20500sed 's/^/| /' conftest.$ac_ext >&5 20501 20502 20503fi 20504 20505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20506fi 20507 20508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20509fi 20510 20511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20512 ac_c_werror_flag=$ac_save_c_werror_flag 20513fi 20514{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 20515$as_echo "$ac_cv_prog_cc_g" >&6; } 20516if test "$ac_test_CFLAGS" = set; then 20517 CFLAGS=$ac_save_CFLAGS 20518elif test $ac_cv_prog_cc_g = yes; then 20519 if test "$GCC" = yes; then 20520 CFLAGS="-g -O2" 20521 else 20522 CFLAGS="-g" 20523 fi 20524else 20525 if test "$GCC" = yes; then 20526 CFLAGS="-O2" 20527 else 20528 CFLAGS= 20529 fi 20530fi 20531{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 20532$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 20533if test "${ac_cv_prog_cc_c89+set}" = set; then 20534 $as_echo_n "(cached) " >&6 20535else 20536 ac_cv_prog_cc_c89=no 20537ac_save_CC=$CC 20538cat >conftest.$ac_ext <<_ACEOF 20539/* confdefs.h. */ 20540_ACEOF 20541cat confdefs.h >>conftest.$ac_ext 20542cat >>conftest.$ac_ext <<_ACEOF 20543/* end confdefs.h. */ 20544#include <stdarg.h> 20545#include <stdio.h> 20546#include <sys/types.h> 20547#include <sys/stat.h> 20548/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 20549struct buf { int x; }; 20550FILE * (*rcsopen) (struct buf *, struct stat *, int); 20551static char *e (p, i) 20552 char **p; 20553 int i; 20554{ 20555 return p[i]; 20556} 20557static char *f (char * (*g) (char **, int), char **p, ...) 20558{ 20559 char *s; 20560 va_list v; 20561 va_start (v,p); 20562 s = g (p, va_arg (v,int)); 20563 va_end (v); 20564 return s; 20565} 20566 20567/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 20568 function prototypes and stuff, but not '\xHH' hex character constants. 20569 These don't provoke an error unfortunately, instead are silently treated 20570 as 'x'. The following induces an error, until -std is added to get 20571 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 20572 array size at least. It's necessary to write '\x00'==0 to get something 20573 that's true only with -std. */ 20574int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 20575 20576/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 20577 inside strings and character constants. */ 20578#define FOO(x) 'x' 20579int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 20580 20581int test (int i, double x); 20582struct s1 {int (*f) (int a);}; 20583struct s2 {int (*f) (double a);}; 20584int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 20585int argc; 20586char **argv; 20587int 20588main () 20589{ 20590return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 20591 ; 20592 return 0; 20593} 20594_ACEOF 20595for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 20596 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 20597do 20598 CC="$ac_save_CC $ac_arg" 20599 rm -f conftest.$ac_objext 20600if { (ac_try="$ac_compile" 20601case "(($ac_try" in 20602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20603 *) ac_try_echo=$ac_try;; 20604esac 20605eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20606$as_echo "$ac_try_echo") >&5 20607 (eval "$ac_compile") 2>conftest.er1 20608 ac_status=$? 20609 grep -v '^ *+' conftest.er1 >conftest.err 20610 rm -f conftest.er1 20611 cat conftest.err >&5 20612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20613 (exit $ac_status); } && { 20614 test -z "$ac_c_werror_flag" || 20615 test ! -s conftest.err 20616 } && test -s conftest.$ac_objext; then 20617 ac_cv_prog_cc_c89=$ac_arg 20618else 20619 $as_echo "$as_me: failed program was:" >&5 20620sed 's/^/| /' conftest.$ac_ext >&5 20621 20622 20623fi 20624 20625rm -f core conftest.err conftest.$ac_objext 20626 test "x$ac_cv_prog_cc_c89" != "xno" && break 20627done 20628rm -f conftest.$ac_ext 20629CC=$ac_save_CC 20630 20631fi 20632# AC_CACHE_VAL 20633case "x$ac_cv_prog_cc_c89" in 20634 x) 20635 { $as_echo "$as_me:$LINENO: result: none needed" >&5 20636$as_echo "none needed" >&6; } ;; 20637 xno) 20638 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 20639$as_echo "unsupported" >&6; } ;; 20640 *) 20641 CC="$CC $ac_cv_prog_cc_c89" 20642 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 20643$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 20644esac 20645 20646 20647ac_ext=c 20648ac_cpp='$CPP $CPPFLAGS' 20649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20651ac_compiler_gnu=$ac_cv_c_compiler_gnu 20652 20653depcc="$CC" am_compiler_list= 20654 20655{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 20656$as_echo_n "checking dependency style of $depcc... " >&6; } 20657if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 20658 $as_echo_n "(cached) " >&6 20659else 20660 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 20661 # We make a subdir and do the tests there. Otherwise we can end up 20662 # making bogus files that we don't know about and never remove. For 20663 # instance it was reported that on HP-UX the gcc test will end up 20664 # making a dummy file named `D' -- because `-MD' means `put the output 20665 # in D'. 20666 mkdir conftest.dir 20667 # Copy depcomp to subdir because otherwise we won't find it if we're 20668 # using a relative directory. 20669 cp "$am_depcomp" conftest.dir 20670 cd conftest.dir 20671 # We will build objects and dependencies in a subdirectory because 20672 # it helps to detect inapplicable dependency modes. For instance 20673 # both Tru64's cc and ICC support -MD to output dependencies as a 20674 # side effect of compilation, but ICC will put the dependencies in 20675 # the current directory while Tru64 will put them in the object 20676 # directory. 20677 mkdir sub 20678 20679 am_cv_CC_dependencies_compiler_type=none 20680 if test "$am_compiler_list" = ""; then 20681 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 20682 fi 20683 for depmode in $am_compiler_list; do 20684 # Setup a source with many dependencies, because some compilers 20685 # like to wrap large dependency lists on column 80 (with \), and 20686 # we should not choose a depcomp mode which is confused by this. 20687 # 20688 # We need to recreate these files for each test, as the compiler may 20689 # overwrite some of them when testing with obscure command lines. 20690 # This happens at least with the AIX C compiler. 20691 : > sub/conftest.c 20692 for i in 1 2 3 4 5 6; do 20693 echo '#include "conftst'$i'.h"' >> sub/conftest.c 20694 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 20695 # Solaris 8's {/usr,}/bin/sh. 20696 touch sub/conftst$i.h 20697 done 20698 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 20699 20700 case $depmode in 20701 nosideeffect) 20702 # after this tag, mechanisms are not by side-effect, so they'll 20703 # only be used when explicitly requested 20704 if test "x$enable_dependency_tracking" = xyes; then 20705 continue 20706 else 20707 break 20708 fi 20709 ;; 20710 none) break ;; 20711 esac 20712 # We check with `-c' and `-o' for the sake of the "dashmstdout" 20713 # mode. It turns out that the SunPro C++ compiler does not properly 20714 # handle `-M -o', and we need to detect this. 20715 if depmode=$depmode \ 20716 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 20717 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 20718 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 20719 >/dev/null 2>conftest.err && 20720 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 20721 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 20722 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 20723 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 20724 # icc doesn't choke on unknown options, it will just issue warnings 20725 # or remarks (even with -Werror). So we grep stderr for any message 20726 # that says an option was ignored or not supported. 20727 # When given -MP, icc 7.0 and 7.1 complain thusly: 20728 # icc: Command line warning: ignoring option '-M'; no argument required 20729 # The diagnosis changed in icc 8.0: 20730 # icc: Command line remark: option '-MP' not supported 20731 if (grep 'ignoring option' conftest.err || 20732 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 20733 am_cv_CC_dependencies_compiler_type=$depmode 20734 break 20735 fi 20736 fi 20737 done 20738 20739 cd .. 20740 rm -rf conftest.dir 20741else 20742 am_cv_CC_dependencies_compiler_type=none 20743fi 20744 20745fi 20746{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 20747$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 20748CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 20749 20750 if 20751 test "x$enable_dependency_tracking" != xno \ 20752 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 20753 am__fastdepCC_TRUE= 20754 am__fastdepCC_FALSE='#' 20755else 20756 am__fastdepCC_TRUE='#' 20757 am__fastdepCC_FALSE= 20758fi 20759 20760 20761 20762if test "x$GCC" = "xyes"; then 20763 CFLAGS="$CFLAGS -Wall -pedantic" 20764fi 20765 20766 20767 20768 20769 20770# Check whether --with-xorg-module-dir was given. 20771if test "${with_xorg_module_dir+set}" = set; then 20772 withval=$with_xorg_module_dir; moduledir="$withval" 20773else 20774 moduledir="$libdir/xorg/modules" 20775fi 20776 20777 20778# Checks for extensions 20779 20780 SAVE_CFLAGS="$CFLAGS" 20781 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 20782 cat >conftest.$ac_ext <<_ACEOF 20783/* confdefs.h. */ 20784_ACEOF 20785cat confdefs.h >>conftest.$ac_ext 20786cat >>conftest.$ac_ext <<_ACEOF 20787/* end confdefs.h. */ 20788 20789#include "xorg-server.h" 20790#if !defined RANDR 20791#error RANDR not defined 20792#endif 20793 20794int 20795main () 20796{ 20797 20798 ; 20799 return 0; 20800} 20801_ACEOF 20802rm -f conftest.$ac_objext 20803if { (ac_try="$ac_compile" 20804case "(($ac_try" in 20805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20806 *) ac_try_echo=$ac_try;; 20807esac 20808eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20809$as_echo "$ac_try_echo") >&5 20810 (eval "$ac_compile") 2>conftest.er1 20811 ac_status=$? 20812 grep -v '^ *+' conftest.er1 >conftest.err 20813 rm -f conftest.er1 20814 cat conftest.err >&5 20815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20816 (exit $ac_status); } && { 20817 test -z "$ac_c_werror_flag" || 20818 test ! -s conftest.err 20819 } && test -s conftest.$ac_objext; then 20820 _EXT_CHECK=yes 20821else 20822 $as_echo "$as_me: failed program was:" >&5 20823sed 's/^/| /' conftest.$ac_ext >&5 20824 20825 _EXT_CHECK=no 20826fi 20827 20828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20829 CFLAGS="$SAVE_CFLAGS" 20830 { $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5 20831$as_echo_n "checking if RANDR is defined... " >&6; } 20832 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 20833$as_echo "$_EXT_CHECK" >&6; } 20834 if test "$_EXT_CHECK" != no; then 20835 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 20836 fi 20837 20838 20839 SAVE_CFLAGS="$CFLAGS" 20840 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 20841 cat >conftest.$ac_ext <<_ACEOF 20842/* confdefs.h. */ 20843_ACEOF 20844cat confdefs.h >>conftest.$ac_ext 20845cat >>conftest.$ac_ext <<_ACEOF 20846/* end confdefs.h. */ 20847 20848#include "xorg-server.h" 20849#if !defined RENDER 20850#error RENDER not defined 20851#endif 20852 20853int 20854main () 20855{ 20856 20857 ; 20858 return 0; 20859} 20860_ACEOF 20861rm -f conftest.$ac_objext 20862if { (ac_try="$ac_compile" 20863case "(($ac_try" in 20864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20865 *) ac_try_echo=$ac_try;; 20866esac 20867eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20868$as_echo "$ac_try_echo") >&5 20869 (eval "$ac_compile") 2>conftest.er1 20870 ac_status=$? 20871 grep -v '^ *+' conftest.er1 >conftest.err 20872 rm -f conftest.er1 20873 cat conftest.err >&5 20874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20875 (exit $ac_status); } && { 20876 test -z "$ac_c_werror_flag" || 20877 test ! -s conftest.err 20878 } && test -s conftest.$ac_objext; then 20879 _EXT_CHECK=yes 20880else 20881 $as_echo "$as_me: failed program was:" >&5 20882sed 's/^/| /' conftest.$ac_ext >&5 20883 20884 _EXT_CHECK=no 20885fi 20886 20887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20888 CFLAGS="$SAVE_CFLAGS" 20889 { $as_echo "$as_me:$LINENO: checking if RENDER is defined" >&5 20890$as_echo_n "checking if RENDER is defined... " >&6; } 20891 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 20892$as_echo "$_EXT_CHECK" >&6; } 20893 if test "$_EXT_CHECK" != no; then 20894 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 20895 fi 20896 20897 20898 SAVE_CFLAGS="$CFLAGS" 20899 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 20900 cat >conftest.$ac_ext <<_ACEOF 20901/* confdefs.h. */ 20902_ACEOF 20903cat confdefs.h >>conftest.$ac_ext 20904cat >>conftest.$ac_ext <<_ACEOF 20905/* end confdefs.h. */ 20906 20907#include "xorg-server.h" 20908#if !defined XV 20909#error XV not defined 20910#endif 20911 20912int 20913main () 20914{ 20915 20916 ; 20917 return 0; 20918} 20919_ACEOF 20920rm -f conftest.$ac_objext 20921if { (ac_try="$ac_compile" 20922case "(($ac_try" in 20923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20924 *) ac_try_echo=$ac_try;; 20925esac 20926eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20927$as_echo "$ac_try_echo") >&5 20928 (eval "$ac_compile") 2>conftest.er1 20929 ac_status=$? 20930 grep -v '^ *+' conftest.er1 >conftest.err 20931 rm -f conftest.er1 20932 cat conftest.err >&5 20933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20934 (exit $ac_status); } && { 20935 test -z "$ac_c_werror_flag" || 20936 test ! -s conftest.err 20937 } && test -s conftest.$ac_objext; then 20938 _EXT_CHECK=yes 20939else 20940 $as_echo "$as_me: failed program was:" >&5 20941sed 's/^/| /' conftest.$ac_ext >&5 20942 20943 _EXT_CHECK=no 20944fi 20945 20946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20947 CFLAGS="$SAVE_CFLAGS" 20948 { $as_echo "$as_me:$LINENO: checking if XV is defined" >&5 20949$as_echo_n "checking if XV is defined... " >&6; } 20950 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 20951$as_echo "$_EXT_CHECK" >&6; } 20952 if test "$_EXT_CHECK" != no; then 20953 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 20954 fi 20955 20956 20957 SAVE_CFLAGS="$CFLAGS" 20958 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 20959 cat >conftest.$ac_ext <<_ACEOF 20960/* confdefs.h. */ 20961_ACEOF 20962cat confdefs.h >>conftest.$ac_ext 20963cat >>conftest.$ac_ext <<_ACEOF 20964/* end confdefs.h. */ 20965 20966#include "xorg-server.h" 20967#if !defined DPMSExtension 20968#error DPMSExtension not defined 20969#endif 20970 20971int 20972main () 20973{ 20974 20975 ; 20976 return 0; 20977} 20978_ACEOF 20979rm -f conftest.$ac_objext 20980if { (ac_try="$ac_compile" 20981case "(($ac_try" in 20982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20983 *) ac_try_echo=$ac_try;; 20984esac 20985eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20986$as_echo "$ac_try_echo") >&5 20987 (eval "$ac_compile") 2>conftest.er1 20988 ac_status=$? 20989 grep -v '^ *+' conftest.er1 >conftest.err 20990 rm -f conftest.er1 20991 cat conftest.err >&5 20992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20993 (exit $ac_status); } && { 20994 test -z "$ac_c_werror_flag" || 20995 test ! -s conftest.err 20996 } && test -s conftest.$ac_objext; then 20997 _EXT_CHECK=yes 20998else 20999 $as_echo "$as_me: failed program was:" >&5 21000sed 's/^/| /' conftest.$ac_ext >&5 21001 21002 _EXT_CHECK=no 21003fi 21004 21005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21006 CFLAGS="$SAVE_CFLAGS" 21007 { $as_echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5 21008$as_echo_n "checking if DPMSExtension is defined... " >&6; } 21009 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 21010$as_echo "$_EXT_CHECK" >&6; } 21011 if test "$_EXT_CHECK" != no; then 21012 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 21013 fi 21014 21015 21016# Checks for pkg-config packages 21017 21018 21019if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 21020 if test -n "$ac_tool_prefix"; then 21021 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 21022set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 21023{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 21024$as_echo_n "checking for $ac_word... " >&6; } 21025if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 21026 $as_echo_n "(cached) " >&6 21027else 21028 case $PKG_CONFIG in 21029 [\\/]* | ?:[\\/]*) 21030 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 21031 ;; 21032 *) 21033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21034for as_dir in $PATH 21035do 21036 IFS=$as_save_IFS 21037 test -z "$as_dir" && as_dir=. 21038 for ac_exec_ext in '' $ac_executable_extensions; do 21039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21040 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 21041 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21042 break 2 21043 fi 21044done 21045done 21046IFS=$as_save_IFS 21047 21048 ;; 21049esac 21050fi 21051PKG_CONFIG=$ac_cv_path_PKG_CONFIG 21052if test -n "$PKG_CONFIG"; then 21053 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 21054$as_echo "$PKG_CONFIG" >&6; } 21055else 21056 { $as_echo "$as_me:$LINENO: result: no" >&5 21057$as_echo "no" >&6; } 21058fi 21059 21060 21061fi 21062if test -z "$ac_cv_path_PKG_CONFIG"; then 21063 ac_pt_PKG_CONFIG=$PKG_CONFIG 21064 # Extract the first word of "pkg-config", so it can be a program name with args. 21065set dummy pkg-config; ac_word=$2 21066{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 21067$as_echo_n "checking for $ac_word... " >&6; } 21068if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 21069 $as_echo_n "(cached) " >&6 21070else 21071 case $ac_pt_PKG_CONFIG in 21072 [\\/]* | ?:[\\/]*) 21073 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 21074 ;; 21075 *) 21076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21077for as_dir in $PATH 21078do 21079 IFS=$as_save_IFS 21080 test -z "$as_dir" && as_dir=. 21081 for ac_exec_ext in '' $ac_executable_extensions; do 21082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21083 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 21084 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21085 break 2 21086 fi 21087done 21088done 21089IFS=$as_save_IFS 21090 21091 ;; 21092esac 21093fi 21094ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 21095if test -n "$ac_pt_PKG_CONFIG"; then 21096 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 21097$as_echo "$ac_pt_PKG_CONFIG" >&6; } 21098else 21099 { $as_echo "$as_me:$LINENO: result: no" >&5 21100$as_echo "no" >&6; } 21101fi 21102 21103 if test "x$ac_pt_PKG_CONFIG" = x; then 21104 PKG_CONFIG="" 21105 else 21106 case $cross_compiling:$ac_tool_warned in 21107yes:) 21108{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 21109$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 21110ac_tool_warned=yes ;; 21111esac 21112 PKG_CONFIG=$ac_pt_PKG_CONFIG 21113 fi 21114else 21115 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 21116fi 21117 21118fi 21119if test -n "$PKG_CONFIG"; then 21120 _pkg_min_version=0.9.0 21121 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 21122$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 21123 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 21124 { $as_echo "$as_me:$LINENO: result: yes" >&5 21125$as_echo "yes" >&6; } 21126 else 21127 { $as_echo "$as_me:$LINENO: result: no" >&5 21128$as_echo "no" >&6; } 21129 PKG_CONFIG="" 21130 fi 21131 21132fi 21133 21134pkg_failed=no 21135{ $as_echo "$as_me:$LINENO: checking for XORG" >&5 21136$as_echo_n "checking for XORG... " >&6; } 21137 21138if test -n "$XORG_CFLAGS"; then 21139 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 21140 elif test -n "$PKG_CONFIG"; then 21141 if test -n "$PKG_CONFIG" && \ 21142 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5 21143 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 21144 ac_status=$? 21145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21146 (exit $ac_status); }; then 21147 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 21148else 21149 pkg_failed=yes 21150fi 21151 else 21152 pkg_failed=untried 21153fi 21154if test -n "$XORG_LIBS"; then 21155 pkg_cv_XORG_LIBS="$XORG_LIBS" 21156 elif test -n "$PKG_CONFIG"; then 21157 if test -n "$PKG_CONFIG" && \ 21158 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5 21159 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 21160 ac_status=$? 21161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21162 (exit $ac_status); }; then 21163 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 21164else 21165 pkg_failed=yes 21166fi 21167 else 21168 pkg_failed=untried 21169fi 21170 21171 21172 21173if test $pkg_failed = yes; then 21174 21175if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21176 _pkg_short_errors_supported=yes 21177else 21178 _pkg_short_errors_supported=no 21179fi 21180 if test $_pkg_short_errors_supported = yes; then 21181 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 21182 else 21183 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 21184 fi 21185 # Put the nasty error message in config.log where it belongs 21186 echo "$XORG_PKG_ERRORS" >&5 21187 21188 { { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met: 21189 21190$XORG_PKG_ERRORS 21191 21192Consider adjusting the PKG_CONFIG_PATH environment variable if you 21193installed software in a non-standard prefix. 21194 21195Alternatively, you may set the environment variables XORG_CFLAGS 21196and XORG_LIBS to avoid the need to call pkg-config. 21197See the pkg-config man page for more details. 21198" >&5 21199$as_echo "$as_me: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met: 21200 21201$XORG_PKG_ERRORS 21202 21203Consider adjusting the PKG_CONFIG_PATH environment variable if you 21204installed software in a non-standard prefix. 21205 21206Alternatively, you may set the environment variables XORG_CFLAGS 21207and XORG_LIBS to avoid the need to call pkg-config. 21208See the pkg-config man page for more details. 21209" >&2;} 21210 { (exit 1); exit 1; }; } 21211elif test $pkg_failed = untried; then 21212 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 21213$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21214{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 21215is in your PATH or set the PKG_CONFIG environment variable to the full 21216path to pkg-config. 21217 21218Alternatively, you may set the environment variables XORG_CFLAGS 21219and XORG_LIBS to avoid the need to call pkg-config. 21220See the pkg-config man page for more details. 21221 21222To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21223See \`config.log' for more details." >&5 21224$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 21225is in your PATH or set the PKG_CONFIG environment variable to the full 21226path to pkg-config. 21227 21228Alternatively, you may set the environment variables XORG_CFLAGS 21229and XORG_LIBS to avoid the need to call pkg-config. 21230See the pkg-config man page for more details. 21231 21232To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21233See \`config.log' for more details." >&2;} 21234 { (exit 1); exit 1; }; }; } 21235else 21236 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 21237 XORG_LIBS=$pkg_cv_XORG_LIBS 21238 { $as_echo "$as_me:$LINENO: result: yes" >&5 21239$as_echo "yes" >&6; } 21240 : 21241fi 21242sdkdir=$(pkg-config --variable=sdkdir xorg-server) 21243 21244# Checks for libraries. 21245SAVE_CPPFLAGS="$CPPFLAGS" 21246CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 21247{ $as_echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5 21248$as_echo_n "checking whether XSERVER_LIBPCIACCESS is declared... " >&6; } 21249if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then 21250 $as_echo_n "(cached) " >&6 21251else 21252 cat >conftest.$ac_ext <<_ACEOF 21253/* confdefs.h. */ 21254_ACEOF 21255cat confdefs.h >>conftest.$ac_ext 21256cat >>conftest.$ac_ext <<_ACEOF 21257/* end confdefs.h. */ 21258#include "xorg-server.h" 21259 21260int 21261main () 21262{ 21263#ifndef XSERVER_LIBPCIACCESS 21264 (void) XSERVER_LIBPCIACCESS; 21265#endif 21266 21267 ; 21268 return 0; 21269} 21270_ACEOF 21271rm -f conftest.$ac_objext 21272if { (ac_try="$ac_compile" 21273case "(($ac_try" in 21274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21275 *) ac_try_echo=$ac_try;; 21276esac 21277eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21278$as_echo "$ac_try_echo") >&5 21279 (eval "$ac_compile") 2>conftest.er1 21280 ac_status=$? 21281 grep -v '^ *+' conftest.er1 >conftest.err 21282 rm -f conftest.er1 21283 cat conftest.err >&5 21284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21285 (exit $ac_status); } && { 21286 test -z "$ac_c_werror_flag" || 21287 test ! -s conftest.err 21288 } && test -s conftest.$ac_objext; then 21289 ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes 21290else 21291 $as_echo "$as_me: failed program was:" >&5 21292sed 's/^/| /' conftest.$ac_ext >&5 21293 21294 ac_cv_have_decl_XSERVER_LIBPCIACCESS=no 21295fi 21296 21297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21298fi 21299{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5 21300$as_echo "$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; } 21301if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then 21302 XSERVER_LIBPCIACCESS=yes 21303else 21304 XSERVER_LIBPCIACCESS=no 21305fi 21306 21307if test "${ac_cv_header_xf1bpp_h+set}" = set; then 21308 { $as_echo "$as_me:$LINENO: checking for xf1bpp.h" >&5 21309$as_echo_n "checking for xf1bpp.h... " >&6; } 21310if test "${ac_cv_header_xf1bpp_h+set}" = set; then 21311 $as_echo_n "(cached) " >&6 21312fi 21313{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf1bpp_h" >&5 21314$as_echo "$ac_cv_header_xf1bpp_h" >&6; } 21315else 21316 # Is the header compilable? 21317{ $as_echo "$as_me:$LINENO: checking xf1bpp.h usability" >&5 21318$as_echo_n "checking xf1bpp.h usability... " >&6; } 21319cat >conftest.$ac_ext <<_ACEOF 21320/* confdefs.h. */ 21321_ACEOF 21322cat confdefs.h >>conftest.$ac_ext 21323cat >>conftest.$ac_ext <<_ACEOF 21324/* end confdefs.h. */ 21325$ac_includes_default 21326#include <xf1bpp.h> 21327_ACEOF 21328rm -f conftest.$ac_objext 21329if { (ac_try="$ac_compile" 21330case "(($ac_try" in 21331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21332 *) ac_try_echo=$ac_try;; 21333esac 21334eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21335$as_echo "$ac_try_echo") >&5 21336 (eval "$ac_compile") 2>conftest.er1 21337 ac_status=$? 21338 grep -v '^ *+' conftest.er1 >conftest.err 21339 rm -f conftest.er1 21340 cat conftest.err >&5 21341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21342 (exit $ac_status); } && { 21343 test -z "$ac_c_werror_flag" || 21344 test ! -s conftest.err 21345 } && test -s conftest.$ac_objext; then 21346 ac_header_compiler=yes 21347else 21348 $as_echo "$as_me: failed program was:" >&5 21349sed 's/^/| /' conftest.$ac_ext >&5 21350 21351 ac_header_compiler=no 21352fi 21353 21354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21355{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21356$as_echo "$ac_header_compiler" >&6; } 21357 21358# Is the header present? 21359{ $as_echo "$as_me:$LINENO: checking xf1bpp.h presence" >&5 21360$as_echo_n "checking xf1bpp.h presence... " >&6; } 21361cat >conftest.$ac_ext <<_ACEOF 21362/* confdefs.h. */ 21363_ACEOF 21364cat confdefs.h >>conftest.$ac_ext 21365cat >>conftest.$ac_ext <<_ACEOF 21366/* end confdefs.h. */ 21367#include <xf1bpp.h> 21368_ACEOF 21369if { (ac_try="$ac_cpp conftest.$ac_ext" 21370case "(($ac_try" in 21371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21372 *) ac_try_echo=$ac_try;; 21373esac 21374eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21375$as_echo "$ac_try_echo") >&5 21376 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 21377 ac_status=$? 21378 grep -v '^ *+' conftest.er1 >conftest.err 21379 rm -f conftest.er1 21380 cat conftest.err >&5 21381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21382 (exit $ac_status); } >/dev/null && { 21383 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 21384 test ! -s conftest.err 21385 }; then 21386 ac_header_preproc=yes 21387else 21388 $as_echo "$as_me: failed program was:" >&5 21389sed 's/^/| /' conftest.$ac_ext >&5 21390 21391 ac_header_preproc=no 21392fi 21393 21394rm -f conftest.err conftest.$ac_ext 21395{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21396$as_echo "$ac_header_preproc" >&6; } 21397 21398# So? What about this header? 21399case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21400 yes:no: ) 21401 { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: accepted by the compiler, rejected by the preprocessor!" >&5 21402$as_echo "$as_me: WARNING: xf1bpp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 21403 { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: proceeding with the compiler's result" >&5 21404$as_echo "$as_me: WARNING: xf1bpp.h: proceeding with the compiler's result" >&2;} 21405 ac_header_preproc=yes 21406 ;; 21407 no:yes:* ) 21408 { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: present but cannot be compiled" >&5 21409$as_echo "$as_me: WARNING: xf1bpp.h: present but cannot be compiled" >&2;} 21410 { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: check for missing prerequisite headers?" >&5 21411$as_echo "$as_me: WARNING: xf1bpp.h: check for missing prerequisite headers?" >&2;} 21412 { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: see the Autoconf documentation" >&5 21413$as_echo "$as_me: WARNING: xf1bpp.h: see the Autoconf documentation" >&2;} 21414 { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: section \"Present But Cannot Be Compiled\"" >&5 21415$as_echo "$as_me: WARNING: xf1bpp.h: section \"Present But Cannot Be Compiled\"" >&2;} 21416 { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: proceeding with the preprocessor's result" >&5 21417$as_echo "$as_me: WARNING: xf1bpp.h: proceeding with the preprocessor's result" >&2;} 21418 { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: in the future, the compiler will take precedence" >&5 21419$as_echo "$as_me: WARNING: xf1bpp.h: in the future, the compiler will take precedence" >&2;} 21420 ( cat <<\_ASBOX 21421## ---------------------------------------------------------------------- ## 21422## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 21423## ---------------------------------------------------------------------- ## 21424_ASBOX 21425 ) | sed "s/^/$as_me: WARNING: /" >&2 21426 ;; 21427esac 21428{ $as_echo "$as_me:$LINENO: checking for xf1bpp.h" >&5 21429$as_echo_n "checking for xf1bpp.h... " >&6; } 21430if test "${ac_cv_header_xf1bpp_h+set}" = set; then 21431 $as_echo_n "(cached) " >&6 21432else 21433 ac_cv_header_xf1bpp_h=$ac_header_preproc 21434fi 21435{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf1bpp_h" >&5 21436$as_echo "$ac_cv_header_xf1bpp_h" >&6; } 21437 21438fi 21439if test "x$ac_cv_header_xf1bpp_h" = x""yes; then 21440 21441cat >>confdefs.h <<\_ACEOF 21442#define HAVE_XF1BPP 1 21443_ACEOF 21444 21445fi 21446 21447 21448if test "${ac_cv_header_xf4bpp_h+set}" = set; then 21449 { $as_echo "$as_me:$LINENO: checking for xf4bpp.h" >&5 21450$as_echo_n "checking for xf4bpp.h... " >&6; } 21451if test "${ac_cv_header_xf4bpp_h+set}" = set; then 21452 $as_echo_n "(cached) " >&6 21453fi 21454{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf4bpp_h" >&5 21455$as_echo "$ac_cv_header_xf4bpp_h" >&6; } 21456else 21457 # Is the header compilable? 21458{ $as_echo "$as_me:$LINENO: checking xf4bpp.h usability" >&5 21459$as_echo_n "checking xf4bpp.h usability... " >&6; } 21460cat >conftest.$ac_ext <<_ACEOF 21461/* confdefs.h. */ 21462_ACEOF 21463cat confdefs.h >>conftest.$ac_ext 21464cat >>conftest.$ac_ext <<_ACEOF 21465/* end confdefs.h. */ 21466$ac_includes_default 21467#include <xf4bpp.h> 21468_ACEOF 21469rm -f conftest.$ac_objext 21470if { (ac_try="$ac_compile" 21471case "(($ac_try" in 21472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21473 *) ac_try_echo=$ac_try;; 21474esac 21475eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21476$as_echo "$ac_try_echo") >&5 21477 (eval "$ac_compile") 2>conftest.er1 21478 ac_status=$? 21479 grep -v '^ *+' conftest.er1 >conftest.err 21480 rm -f conftest.er1 21481 cat conftest.err >&5 21482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21483 (exit $ac_status); } && { 21484 test -z "$ac_c_werror_flag" || 21485 test ! -s conftest.err 21486 } && test -s conftest.$ac_objext; then 21487 ac_header_compiler=yes 21488else 21489 $as_echo "$as_me: failed program was:" >&5 21490sed 's/^/| /' conftest.$ac_ext >&5 21491 21492 ac_header_compiler=no 21493fi 21494 21495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21496{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21497$as_echo "$ac_header_compiler" >&6; } 21498 21499# Is the header present? 21500{ $as_echo "$as_me:$LINENO: checking xf4bpp.h presence" >&5 21501$as_echo_n "checking xf4bpp.h presence... " >&6; } 21502cat >conftest.$ac_ext <<_ACEOF 21503/* confdefs.h. */ 21504_ACEOF 21505cat confdefs.h >>conftest.$ac_ext 21506cat >>conftest.$ac_ext <<_ACEOF 21507/* end confdefs.h. */ 21508#include <xf4bpp.h> 21509_ACEOF 21510if { (ac_try="$ac_cpp conftest.$ac_ext" 21511case "(($ac_try" in 21512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21513 *) ac_try_echo=$ac_try;; 21514esac 21515eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21516$as_echo "$ac_try_echo") >&5 21517 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 21518 ac_status=$? 21519 grep -v '^ *+' conftest.er1 >conftest.err 21520 rm -f conftest.er1 21521 cat conftest.err >&5 21522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21523 (exit $ac_status); } >/dev/null && { 21524 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 21525 test ! -s conftest.err 21526 }; then 21527 ac_header_preproc=yes 21528else 21529 $as_echo "$as_me: failed program was:" >&5 21530sed 's/^/| /' conftest.$ac_ext >&5 21531 21532 ac_header_preproc=no 21533fi 21534 21535rm -f conftest.err conftest.$ac_ext 21536{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21537$as_echo "$ac_header_preproc" >&6; } 21538 21539# So? What about this header? 21540case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21541 yes:no: ) 21542 { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: accepted by the compiler, rejected by the preprocessor!" >&5 21543$as_echo "$as_me: WARNING: xf4bpp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 21544 { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: proceeding with the compiler's result" >&5 21545$as_echo "$as_me: WARNING: xf4bpp.h: proceeding with the compiler's result" >&2;} 21546 ac_header_preproc=yes 21547 ;; 21548 no:yes:* ) 21549 { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: present but cannot be compiled" >&5 21550$as_echo "$as_me: WARNING: xf4bpp.h: present but cannot be compiled" >&2;} 21551 { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: check for missing prerequisite headers?" >&5 21552$as_echo "$as_me: WARNING: xf4bpp.h: check for missing prerequisite headers?" >&2;} 21553 { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: see the Autoconf documentation" >&5 21554$as_echo "$as_me: WARNING: xf4bpp.h: see the Autoconf documentation" >&2;} 21555 { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: section \"Present But Cannot Be Compiled\"" >&5 21556$as_echo "$as_me: WARNING: xf4bpp.h: section \"Present But Cannot Be Compiled\"" >&2;} 21557 { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: proceeding with the preprocessor's result" >&5 21558$as_echo "$as_me: WARNING: xf4bpp.h: proceeding with the preprocessor's result" >&2;} 21559 { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: in the future, the compiler will take precedence" >&5 21560$as_echo "$as_me: WARNING: xf4bpp.h: in the future, the compiler will take precedence" >&2;} 21561 ( cat <<\_ASBOX 21562## ---------------------------------------------------------------------- ## 21563## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 21564## ---------------------------------------------------------------------- ## 21565_ASBOX 21566 ) | sed "s/^/$as_me: WARNING: /" >&2 21567 ;; 21568esac 21569{ $as_echo "$as_me:$LINENO: checking for xf4bpp.h" >&5 21570$as_echo_n "checking for xf4bpp.h... " >&6; } 21571if test "${ac_cv_header_xf4bpp_h+set}" = set; then 21572 $as_echo_n "(cached) " >&6 21573else 21574 ac_cv_header_xf4bpp_h=$ac_header_preproc 21575fi 21576{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf4bpp_h" >&5 21577$as_echo "$ac_cv_header_xf4bpp_h" >&6; } 21578 21579fi 21580if test "x$ac_cv_header_xf4bpp_h" = x""yes; then 21581 21582cat >>confdefs.h <<\_ACEOF 21583#define HAVE_XF4BPP 1 21584_ACEOF 21585 21586fi 21587 21588 21589CPPFLAGS="$SAVE_CPPFLAGS" 21590 21591if test "x$XSERVER_LIBPCIACCESS" = xyes; then 21592 21593pkg_failed=no 21594{ $as_echo "$as_me:$LINENO: checking for PCIACCESS" >&5 21595$as_echo_n "checking for PCIACCESS... " >&6; } 21596 21597if test -n "$PCIACCESS_CFLAGS"; then 21598 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 21599 elif test -n "$PKG_CONFIG"; then 21600 if test -n "$PKG_CONFIG" && \ 21601 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5 21602 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 21603 ac_status=$? 21604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21605 (exit $ac_status); }; then 21606 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null` 21607else 21608 pkg_failed=yes 21609fi 21610 else 21611 pkg_failed=untried 21612fi 21613if test -n "$PCIACCESS_LIBS"; then 21614 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 21615 elif test -n "$PKG_CONFIG"; then 21616 if test -n "$PKG_CONFIG" && \ 21617 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5 21618 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 21619 ac_status=$? 21620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21621 (exit $ac_status); }; then 21622 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null` 21623else 21624 pkg_failed=yes 21625fi 21626 else 21627 pkg_failed=untried 21628fi 21629 21630 21631 21632if test $pkg_failed = yes; then 21633 21634if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21635 _pkg_short_errors_supported=yes 21636else 21637 _pkg_short_errors_supported=no 21638fi 21639 if test $_pkg_short_errors_supported = yes; then 21640 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1` 21641 else 21642 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1` 21643 fi 21644 # Put the nasty error message in config.log where it belongs 21645 echo "$PCIACCESS_PKG_ERRORS" >&5 21646 21647 { { $as_echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.8.0) were not met: 21648 21649$PCIACCESS_PKG_ERRORS 21650 21651Consider adjusting the PKG_CONFIG_PATH environment variable if you 21652installed software in a non-standard prefix. 21653 21654Alternatively, you may set the environment variables PCIACCESS_CFLAGS 21655and PCIACCESS_LIBS to avoid the need to call pkg-config. 21656See the pkg-config man page for more details. 21657" >&5 21658$as_echo "$as_me: error: Package requirements (pciaccess >= 0.8.0) were not met: 21659 21660$PCIACCESS_PKG_ERRORS 21661 21662Consider adjusting the PKG_CONFIG_PATH environment variable if you 21663installed software in a non-standard prefix. 21664 21665Alternatively, you may set the environment variables PCIACCESS_CFLAGS 21666and PCIACCESS_LIBS to avoid the need to call pkg-config. 21667See the pkg-config man page for more details. 21668" >&2;} 21669 { (exit 1); exit 1; }; } 21670elif test $pkg_failed = untried; then 21671 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 21672$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21673{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 21674is in your PATH or set the PKG_CONFIG environment variable to the full 21675path to pkg-config. 21676 21677Alternatively, you may set the environment variables PCIACCESS_CFLAGS 21678and PCIACCESS_LIBS to avoid the need to call pkg-config. 21679See the pkg-config man page for more details. 21680 21681To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21682See \`config.log' for more details." >&5 21683$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 21684is in your PATH or set the PKG_CONFIG environment variable to the full 21685path to pkg-config. 21686 21687Alternatively, you may set the environment variables PCIACCESS_CFLAGS 21688and PCIACCESS_LIBS to avoid the need to call pkg-config. 21689See the pkg-config man page for more details. 21690 21691To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21692See \`config.log' for more details." >&2;} 21693 { (exit 1); exit 1; }; }; } 21694else 21695 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 21696 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 21697 { $as_echo "$as_me:$LINENO: result: yes" >&5 21698$as_echo "yes" >&6; } 21699 : 21700fi 21701 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS" 21702fi 21703 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 21704 XSERVER_LIBPCIACCESS_TRUE= 21705 XSERVER_LIBPCIACCESS_FALSE='#' 21706else 21707 XSERVER_LIBPCIACCESS_TRUE='#' 21708 XSERVER_LIBPCIACCESS_FALSE= 21709fi 21710 21711 21712# Checks for header files. 21713{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 21714$as_echo_n "checking for ANSI C header files... " >&6; } 21715if test "${ac_cv_header_stdc+set}" = set; then 21716 $as_echo_n "(cached) " >&6 21717else 21718 cat >conftest.$ac_ext <<_ACEOF 21719/* confdefs.h. */ 21720_ACEOF 21721cat confdefs.h >>conftest.$ac_ext 21722cat >>conftest.$ac_ext <<_ACEOF 21723/* end confdefs.h. */ 21724#include <stdlib.h> 21725#include <stdarg.h> 21726#include <string.h> 21727#include <float.h> 21728 21729int 21730main () 21731{ 21732 21733 ; 21734 return 0; 21735} 21736_ACEOF 21737rm -f conftest.$ac_objext 21738if { (ac_try="$ac_compile" 21739case "(($ac_try" in 21740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21741 *) ac_try_echo=$ac_try;; 21742esac 21743eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21744$as_echo "$ac_try_echo") >&5 21745 (eval "$ac_compile") 2>conftest.er1 21746 ac_status=$? 21747 grep -v '^ *+' conftest.er1 >conftest.err 21748 rm -f conftest.er1 21749 cat conftest.err >&5 21750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21751 (exit $ac_status); } && { 21752 test -z "$ac_c_werror_flag" || 21753 test ! -s conftest.err 21754 } && test -s conftest.$ac_objext; then 21755 ac_cv_header_stdc=yes 21756else 21757 $as_echo "$as_me: failed program was:" >&5 21758sed 's/^/| /' conftest.$ac_ext >&5 21759 21760 ac_cv_header_stdc=no 21761fi 21762 21763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21764 21765if test $ac_cv_header_stdc = yes; then 21766 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 21767 cat >conftest.$ac_ext <<_ACEOF 21768/* confdefs.h. */ 21769_ACEOF 21770cat confdefs.h >>conftest.$ac_ext 21771cat >>conftest.$ac_ext <<_ACEOF 21772/* end confdefs.h. */ 21773#include <string.h> 21774 21775_ACEOF 21776if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21777 $EGREP "memchr" >/dev/null 2>&1; then 21778 : 21779else 21780 ac_cv_header_stdc=no 21781fi 21782rm -f conftest* 21783 21784fi 21785 21786if test $ac_cv_header_stdc = yes; then 21787 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 21788 cat >conftest.$ac_ext <<_ACEOF 21789/* confdefs.h. */ 21790_ACEOF 21791cat confdefs.h >>conftest.$ac_ext 21792cat >>conftest.$ac_ext <<_ACEOF 21793/* end confdefs.h. */ 21794#include <stdlib.h> 21795 21796_ACEOF 21797if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21798 $EGREP "free" >/dev/null 2>&1; then 21799 : 21800else 21801 ac_cv_header_stdc=no 21802fi 21803rm -f conftest* 21804 21805fi 21806 21807if test $ac_cv_header_stdc = yes; then 21808 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 21809 if test "$cross_compiling" = yes; then 21810 : 21811else 21812 cat >conftest.$ac_ext <<_ACEOF 21813/* confdefs.h. */ 21814_ACEOF 21815cat confdefs.h >>conftest.$ac_ext 21816cat >>conftest.$ac_ext <<_ACEOF 21817/* end confdefs.h. */ 21818#include <ctype.h> 21819#include <stdlib.h> 21820#if ((' ' & 0x0FF) == 0x020) 21821# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 21822# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 21823#else 21824# define ISLOWER(c) \ 21825 (('a' <= (c) && (c) <= 'i') \ 21826 || ('j' <= (c) && (c) <= 'r') \ 21827 || ('s' <= (c) && (c) <= 'z')) 21828# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 21829#endif 21830 21831#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 21832int 21833main () 21834{ 21835 int i; 21836 for (i = 0; i < 256; i++) 21837 if (XOR (islower (i), ISLOWER (i)) 21838 || toupper (i) != TOUPPER (i)) 21839 return 2; 21840 return 0; 21841} 21842_ACEOF 21843rm -f conftest$ac_exeext 21844if { (ac_try="$ac_link" 21845case "(($ac_try" in 21846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21847 *) ac_try_echo=$ac_try;; 21848esac 21849eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21850$as_echo "$ac_try_echo") >&5 21851 (eval "$ac_link") 2>&5 21852 ac_status=$? 21853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21854 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21855 { (case "(($ac_try" in 21856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21857 *) ac_try_echo=$ac_try;; 21858esac 21859eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21860$as_echo "$ac_try_echo") >&5 21861 (eval "$ac_try") 2>&5 21862 ac_status=$? 21863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21864 (exit $ac_status); }; }; then 21865 : 21866else 21867 $as_echo "$as_me: program exited with status $ac_status" >&5 21868$as_echo "$as_me: failed program was:" >&5 21869sed 's/^/| /' conftest.$ac_ext >&5 21870 21871( exit $ac_status ) 21872ac_cv_header_stdc=no 21873fi 21874rm -rf conftest.dSYM 21875rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21876fi 21877 21878 21879fi 21880fi 21881{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 21882$as_echo "$ac_cv_header_stdc" >&6; } 21883if test $ac_cv_header_stdc = yes; then 21884 21885cat >>confdefs.h <<\_ACEOF 21886#define STDC_HEADERS 1 21887_ACEOF 21888 21889fi 21890 21891 21892 21893 21894 21895DRIVER_NAME=tseng 21896 21897 21898 21899 21900 21901if test x$APP_MAN_SUFFIX = x ; then 21902 APP_MAN_SUFFIX=1 21903fi 21904if test x$APP_MAN_DIR = x ; then 21905 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 21906fi 21907 21908if test x$LIB_MAN_SUFFIX = x ; then 21909 LIB_MAN_SUFFIX=3 21910fi 21911if test x$LIB_MAN_DIR = x ; then 21912 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 21913fi 21914 21915if test x$FILE_MAN_SUFFIX = x ; then 21916 case $host_os in 21917 solaris*) FILE_MAN_SUFFIX=4 ;; 21918 *) FILE_MAN_SUFFIX=5 ;; 21919 esac 21920fi 21921if test x$FILE_MAN_DIR = x ; then 21922 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 21923fi 21924 21925if test x$MISC_MAN_SUFFIX = x ; then 21926 case $host_os in 21927 solaris*) MISC_MAN_SUFFIX=5 ;; 21928 *) MISC_MAN_SUFFIX=7 ;; 21929 esac 21930fi 21931if test x$MISC_MAN_DIR = x ; then 21932 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 21933fi 21934 21935if test x$DRIVER_MAN_SUFFIX = x ; then 21936 case $host_os in 21937 solaris*) DRIVER_MAN_SUFFIX=7 ;; 21938 *) DRIVER_MAN_SUFFIX=4 ;; 21939 esac 21940fi 21941if test x$DRIVER_MAN_DIR = x ; then 21942 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 21943fi 21944 21945if test x$ADMIN_MAN_SUFFIX = x ; then 21946 case $host_os in 21947 solaris*) ADMIN_MAN_SUFFIX=1m ;; 21948 *) ADMIN_MAN_SUFFIX=8 ;; 21949 esac 21950fi 21951if test x$ADMIN_MAN_DIR = x ; then 21952 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 21953fi 21954 21955 21956 21957 21958 21959 21960 21961 21962 21963 21964 21965 21966 21967 21968 21969 21970 21971# Check whether --with-release-version was given. 21972if test "${with_release_version+set}" = set; then 21973 withval=$with_release_version; RELEASE_VERSION="$withval" 21974else 21975 RELEASE_VERSION="" 21976fi 21977 21978 if test "x$RELEASE_VERSION" != "x"; then 21979 PACKAGE="$PACKAGE-$RELEASE_VERSION" 21980 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 21981 { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 21982$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;} 21983 fi 21984 21985cat >>confdefs.h <<_ACEOF 21986#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 21987_ACEOF 21988 21989 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 21990 if test "x$PVM" = "x"; then 21991 PVM="0" 21992 fi 21993 21994cat >>confdefs.h <<_ACEOF 21995#define PACKAGE_VERSION_MINOR $PVM 21996_ACEOF 21997 21998 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 21999 if test "x$PVP" = "x"; then 22000 PVP="0" 22001 fi 22002 22003cat >>confdefs.h <<_ACEOF 22004#define PACKAGE_VERSION_PATCHLEVEL $PVP 22005_ACEOF 22006 22007 22008 22009ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 22010 22011cat >confcache <<\_ACEOF 22012# This file is a shell script that caches the results of configure 22013# tests run on this system so they can be shared between configure 22014# scripts and configure runs, see configure's option --config-cache. 22015# It is not useful on other systems. If it contains results you don't 22016# want to keep, you may remove or edit it. 22017# 22018# config.status only pays attention to the cache file if you give it 22019# the --recheck option to rerun configure. 22020# 22021# `ac_cv_env_foo' variables (set or unset) will be overridden when 22022# loading this file, other *unset* `ac_cv_foo' will be assigned the 22023# following values. 22024 22025_ACEOF 22026 22027# The following way of writing the cache mishandles newlines in values, 22028# but we know of no workaround that is simple, portable, and efficient. 22029# So, we kill variables containing newlines. 22030# Ultrix sh set writes to stderr and can't be redirected directly, 22031# and sets the high bit in the cache file unless we assign to the vars. 22032( 22033 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 22034 eval ac_val=\$$ac_var 22035 case $ac_val in #( 22036 *${as_nl}*) 22037 case $ac_var in #( 22038 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 22039$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 22040 esac 22041 case $ac_var in #( 22042 _ | IFS | as_nl) ;; #( 22043 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 22044 *) $as_unset $ac_var ;; 22045 esac ;; 22046 esac 22047 done 22048 22049 (set) 2>&1 | 22050 case $as_nl`(ac_space=' '; set) 2>&1` in #( 22051 *${as_nl}ac_space=\ *) 22052 # `set' does not quote correctly, so add quotes (double-quote 22053 # substitution turns \\\\ into \\, and sed turns \\ into \). 22054 sed -n \ 22055 "s/'/'\\\\''/g; 22056 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 22057 ;; #( 22058 *) 22059 # `set' quotes correctly as required by POSIX, so do not add quotes. 22060 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 22061 ;; 22062 esac | 22063 sort 22064) | 22065 sed ' 22066 /^ac_cv_env_/b end 22067 t clear 22068 :clear 22069 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 22070 t end 22071 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 22072 :end' >>confcache 22073if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 22074 if test -w "$cache_file"; then 22075 test "x$cache_file" != "x/dev/null" && 22076 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 22077$as_echo "$as_me: updating cache $cache_file" >&6;} 22078 cat confcache >$cache_file 22079 else 22080 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 22081$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 22082 fi 22083fi 22084rm -f confcache 22085 22086test "x$prefix" = xNONE && prefix=$ac_default_prefix 22087# Let make expand exec_prefix. 22088test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 22089 22090DEFS=-DHAVE_CONFIG_H 22091 22092ac_libobjs= 22093ac_ltlibobjs= 22094for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 22095 # 1. Remove the extension, and $U if already installed. 22096 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 22097 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 22098 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 22099 # will be set to the directory where LIBOBJS objects are built. 22100 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 22101 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 22102done 22103LIBOBJS=$ac_libobjs 22104 22105LTLIBOBJS=$ac_ltlibobjs 22106 22107 22108if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 22109 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 22110Usually this means the macro was only invoked conditionally." >&5 22111$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 22112Usually this means the macro was only invoked conditionally." >&2;} 22113 { (exit 1); exit 1; }; } 22114fi 22115if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 22116 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 22117Usually this means the macro was only invoked conditionally." >&5 22118$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 22119Usually this means the macro was only invoked conditionally." >&2;} 22120 { (exit 1); exit 1; }; } 22121fi 22122if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22123 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 22124Usually this means the macro was only invoked conditionally." >&5 22125$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 22126Usually this means the macro was only invoked conditionally." >&2;} 22127 { (exit 1); exit 1; }; } 22128fi 22129if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 22130 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 22131Usually this means the macro was only invoked conditionally." >&5 22132$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 22133Usually this means the macro was only invoked conditionally." >&2;} 22134 { (exit 1); exit 1; }; } 22135fi 22136if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22137 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 22138Usually this means the macro was only invoked conditionally." >&5 22139$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 22140Usually this means the macro was only invoked conditionally." >&2;} 22141 { (exit 1); exit 1; }; } 22142fi 22143if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then 22144 { { $as_echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined. 22145Usually this means the macro was only invoked conditionally." >&5 22146$as_echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined. 22147Usually this means the macro was only invoked conditionally." >&2;} 22148 { (exit 1); exit 1; }; } 22149fi 22150 22151: ${CONFIG_STATUS=./config.status} 22152ac_write_fail=0 22153ac_clean_files_save=$ac_clean_files 22154ac_clean_files="$ac_clean_files $CONFIG_STATUS" 22155{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 22156$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 22157cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22158#! $SHELL 22159# Generated by $as_me. 22160# Run this file to recreate the current configuration. 22161# Compiler output produced by configure, useful for debugging 22162# configure, is in config.log if it exists. 22163 22164debug=false 22165ac_cs_recheck=false 22166ac_cs_silent=false 22167SHELL=\${CONFIG_SHELL-$SHELL} 22168_ACEOF 22169 22170cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22171## --------------------- ## 22172## M4sh Initialization. ## 22173## --------------------- ## 22174 22175# Be more Bourne compatible 22176DUALCASE=1; export DUALCASE # for MKS sh 22177if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 22178 emulate sh 22179 NULLCMD=: 22180 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 22181 # is contrary to our usage. Disable this feature. 22182 alias -g '${1+"$@"}'='"$@"' 22183 setopt NO_GLOB_SUBST 22184else 22185 case `(set -o) 2>/dev/null` in 22186 *posix*) set -o posix ;; 22187esac 22188 22189fi 22190 22191 22192 22193 22194# PATH needs CR 22195# Avoid depending upon Character Ranges. 22196as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22197as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22198as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22199as_cr_digits='0123456789' 22200as_cr_alnum=$as_cr_Letters$as_cr_digits 22201 22202as_nl=' 22203' 22204export as_nl 22205# Printing a long string crashes Solaris 7 /usr/bin/printf. 22206as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 22207as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 22208as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 22209if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 22210 as_echo='printf %s\n' 22211 as_echo_n='printf %s' 22212else 22213 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 22214 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 22215 as_echo_n='/usr/ucb/echo -n' 22216 else 22217 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 22218 as_echo_n_body='eval 22219 arg=$1; 22220 case $arg in 22221 *"$as_nl"*) 22222 expr "X$arg" : "X\\(.*\\)$as_nl"; 22223 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 22224 esac; 22225 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 22226 ' 22227 export as_echo_n_body 22228 as_echo_n='sh -c $as_echo_n_body as_echo' 22229 fi 22230 export as_echo_body 22231 as_echo='sh -c $as_echo_body as_echo' 22232fi 22233 22234# The user is always right. 22235if test "${PATH_SEPARATOR+set}" != set; then 22236 PATH_SEPARATOR=: 22237 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 22238 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 22239 PATH_SEPARATOR=';' 22240 } 22241fi 22242 22243# Support unset when possible. 22244if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 22245 as_unset=unset 22246else 22247 as_unset=false 22248fi 22249 22250 22251# IFS 22252# We need space, tab and new line, in precisely that order. Quoting is 22253# there to prevent editors from complaining about space-tab. 22254# (If _AS_PATH_WALK were called with IFS unset, it would disable word 22255# splitting by setting IFS to empty value.) 22256IFS=" "" $as_nl" 22257 22258# Find who we are. Look in the path if we contain no directory separator. 22259case $0 in 22260 *[\\/]* ) as_myself=$0 ;; 22261 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22262for as_dir in $PATH 22263do 22264 IFS=$as_save_IFS 22265 test -z "$as_dir" && as_dir=. 22266 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 22267done 22268IFS=$as_save_IFS 22269 22270 ;; 22271esac 22272# We did not find ourselves, most probably we were run as `sh COMMAND' 22273# in which case we are not to be found in the path. 22274if test "x$as_myself" = x; then 22275 as_myself=$0 22276fi 22277if test ! -f "$as_myself"; then 22278 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 22279 { (exit 1); exit 1; } 22280fi 22281 22282# Work around bugs in pre-3.0 UWIN ksh. 22283for as_var in ENV MAIL MAILPATH 22284do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 22285done 22286PS1='$ ' 22287PS2='> ' 22288PS4='+ ' 22289 22290# NLS nuisances. 22291LC_ALL=C 22292export LC_ALL 22293LANGUAGE=C 22294export LANGUAGE 22295 22296# Required to use basename. 22297if expr a : '\(a\)' >/dev/null 2>&1 && 22298 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22299 as_expr=expr 22300else 22301 as_expr=false 22302fi 22303 22304if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 22305 as_basename=basename 22306else 22307 as_basename=false 22308fi 22309 22310 22311# Name of the executable. 22312as_me=`$as_basename -- "$0" || 22313$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22314 X"$0" : 'X\(//\)$' \| \ 22315 X"$0" : 'X\(/\)' \| . 2>/dev/null || 22316$as_echo X/"$0" | 22317 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22318 s//\1/ 22319 q 22320 } 22321 /^X\/\(\/\/\)$/{ 22322 s//\1/ 22323 q 22324 } 22325 /^X\/\(\/\).*/{ 22326 s//\1/ 22327 q 22328 } 22329 s/.*/./; q'` 22330 22331# CDPATH. 22332$as_unset CDPATH 22333 22334 22335 22336 as_lineno_1=$LINENO 22337 as_lineno_2=$LINENO 22338 test "x$as_lineno_1" != "x$as_lineno_2" && 22339 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 22340 22341 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 22342 # uniformly replaced by the line number. The first 'sed' inserts a 22343 # line-number line after each line using $LINENO; the second 'sed' 22344 # does the real work. The second script uses 'N' to pair each 22345 # line-number line with the line containing $LINENO, and appends 22346 # trailing '-' during substitution so that $LINENO is not a special 22347 # case at line end. 22348 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 22349 # scripts with optimization help from Paolo Bonzini. Blame Lee 22350 # E. McMahon (1931-1989) for sed's syntax. :-) 22351 sed -n ' 22352 p 22353 /[$]LINENO/= 22354 ' <$as_myself | 22355 sed ' 22356 s/[$]LINENO.*/&-/ 22357 t lineno 22358 b 22359 :lineno 22360 N 22361 :loop 22362 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 22363 t loop 22364 s/-\n.*// 22365 ' >$as_me.lineno && 22366 chmod +x "$as_me.lineno" || 22367 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 22368 { (exit 1); exit 1; }; } 22369 22370 # Don't try to exec as it changes $[0], causing all sort of problems 22371 # (the dirname of $[0] is not the place where we might find the 22372 # original and so on. Autoconf is especially sensitive to this). 22373 . "./$as_me.lineno" 22374 # Exit status is that of the last command. 22375 exit 22376} 22377 22378 22379if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22380 as_dirname=dirname 22381else 22382 as_dirname=false 22383fi 22384 22385ECHO_C= ECHO_N= ECHO_T= 22386case `echo -n x` in 22387-n*) 22388 case `echo 'x\c'` in 22389 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 22390 *) ECHO_C='\c';; 22391 esac;; 22392*) 22393 ECHO_N='-n';; 22394esac 22395if expr a : '\(a\)' >/dev/null 2>&1 && 22396 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22397 as_expr=expr 22398else 22399 as_expr=false 22400fi 22401 22402rm -f conf$$ conf$$.exe conf$$.file 22403if test -d conf$$.dir; then 22404 rm -f conf$$.dir/conf$$.file 22405else 22406 rm -f conf$$.dir 22407 mkdir conf$$.dir 2>/dev/null 22408fi 22409if (echo >conf$$.file) 2>/dev/null; then 22410 if ln -s conf$$.file conf$$ 2>/dev/null; then 22411 as_ln_s='ln -s' 22412 # ... but there are two gotchas: 22413 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 22414 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 22415 # In both cases, we have to default to `cp -p'. 22416 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 22417 as_ln_s='cp -p' 22418 elif ln conf$$.file conf$$ 2>/dev/null; then 22419 as_ln_s=ln 22420 else 22421 as_ln_s='cp -p' 22422 fi 22423else 22424 as_ln_s='cp -p' 22425fi 22426rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 22427rmdir conf$$.dir 2>/dev/null 22428 22429if mkdir -p . 2>/dev/null; then 22430 as_mkdir_p=: 22431else 22432 test -d ./-p && rmdir ./-p 22433 as_mkdir_p=false 22434fi 22435 22436if test -x / >/dev/null 2>&1; then 22437 as_test_x='test -x' 22438else 22439 if ls -dL / >/dev/null 2>&1; then 22440 as_ls_L_option=L 22441 else 22442 as_ls_L_option= 22443 fi 22444 as_test_x=' 22445 eval sh -c '\'' 22446 if test -d "$1"; then 22447 test -d "$1/."; 22448 else 22449 case $1 in 22450 -*)set "./$1";; 22451 esac; 22452 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 22453 ???[sx]*):;;*)false;;esac;fi 22454 '\'' sh 22455 ' 22456fi 22457as_executable_p=$as_test_x 22458 22459# Sed expression to map a string onto a valid CPP name. 22460as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 22461 22462# Sed expression to map a string onto a valid variable name. 22463as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 22464 22465 22466exec 6>&1 22467 22468# Save the log message, to keep $[0] and so on meaningful, and to 22469# report actual input values of CONFIG_FILES etc. instead of their 22470# values after options handling. 22471ac_log=" 22472This file was extended by xf86-video-tseng $as_me 1.2.1, which was 22473generated by GNU Autoconf 2.63. Invocation command line was 22474 22475 CONFIG_FILES = $CONFIG_FILES 22476 CONFIG_HEADERS = $CONFIG_HEADERS 22477 CONFIG_LINKS = $CONFIG_LINKS 22478 CONFIG_COMMANDS = $CONFIG_COMMANDS 22479 $ $0 $@ 22480 22481on `(hostname || uname -n) 2>/dev/null | sed 1q` 22482" 22483 22484_ACEOF 22485 22486case $ac_config_files in *" 22487"*) set x $ac_config_files; shift; ac_config_files=$*;; 22488esac 22489 22490case $ac_config_headers in *" 22491"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 22492esac 22493 22494 22495cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22496# Files that config.status was made for. 22497config_files="$ac_config_files" 22498config_headers="$ac_config_headers" 22499config_commands="$ac_config_commands" 22500 22501_ACEOF 22502 22503cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22504ac_cs_usage="\ 22505\`$as_me' instantiates files from templates according to the 22506current configuration. 22507 22508Usage: $0 [OPTION]... [FILE]... 22509 22510 -h, --help print this help, then exit 22511 -V, --version print version number and configuration settings, then exit 22512 -q, --quiet, --silent 22513 do not print progress messages 22514 -d, --debug don't remove temporary files 22515 --recheck update $as_me by reconfiguring in the same conditions 22516 --file=FILE[:TEMPLATE] 22517 instantiate the configuration file FILE 22518 --header=FILE[:TEMPLATE] 22519 instantiate the configuration header FILE 22520 22521Configuration files: 22522$config_files 22523 22524Configuration headers: 22525$config_headers 22526 22527Configuration commands: 22528$config_commands 22529 22530Report bugs to <bug-autoconf@gnu.org>." 22531 22532_ACEOF 22533cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22534ac_cs_version="\\ 22535xf86-video-tseng config.status 1.2.1 22536configured by $0, generated by GNU Autoconf 2.63, 22537 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 22538 22539Copyright (C) 2008 Free Software Foundation, Inc. 22540This config.status script is free software; the Free Software Foundation 22541gives unlimited permission to copy, distribute and modify it." 22542 22543ac_pwd='$ac_pwd' 22544srcdir='$srcdir' 22545INSTALL='$INSTALL' 22546MKDIR_P='$MKDIR_P' 22547AWK='$AWK' 22548test -n "\$AWK" || AWK=awk 22549_ACEOF 22550 22551cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22552# The default lists apply if the user does not specify any file. 22553ac_need_defaults=: 22554while test $# != 0 22555do 22556 case $1 in 22557 --*=*) 22558 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22559 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 22560 ac_shift=: 22561 ;; 22562 *) 22563 ac_option=$1 22564 ac_optarg=$2 22565 ac_shift=shift 22566 ;; 22567 esac 22568 22569 case $ac_option in 22570 # Handling of the options. 22571 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22572 ac_cs_recheck=: ;; 22573 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 22574 $as_echo "$ac_cs_version"; exit ;; 22575 --debug | --debu | --deb | --de | --d | -d ) 22576 debug=: ;; 22577 --file | --fil | --fi | --f ) 22578 $ac_shift 22579 case $ac_optarg in 22580 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22581 esac 22582 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 22583 ac_need_defaults=false;; 22584 --header | --heade | --head | --hea ) 22585 $ac_shift 22586 case $ac_optarg in 22587 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22588 esac 22589 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 22590 ac_need_defaults=false;; 22591 --he | --h) 22592 # Conflict between --help and --header 22593 { $as_echo "$as_me: error: ambiguous option: $1 22594Try \`$0 --help' for more information." >&2 22595 { (exit 1); exit 1; }; };; 22596 --help | --hel | -h ) 22597 $as_echo "$ac_cs_usage"; exit ;; 22598 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22599 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22600 ac_cs_silent=: ;; 22601 22602 # This is an error. 22603 -*) { $as_echo "$as_me: error: unrecognized option: $1 22604Try \`$0 --help' for more information." >&2 22605 { (exit 1); exit 1; }; } ;; 22606 22607 *) ac_config_targets="$ac_config_targets $1" 22608 ac_need_defaults=false ;; 22609 22610 esac 22611 shift 22612done 22613 22614ac_configure_extra_args= 22615 22616if $ac_cs_silent; then 22617 exec 6>/dev/null 22618 ac_configure_extra_args="$ac_configure_extra_args --silent" 22619fi 22620 22621_ACEOF 22622cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22623if \$ac_cs_recheck; then 22624 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22625 shift 22626 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 22627 CONFIG_SHELL='$SHELL' 22628 export CONFIG_SHELL 22629 exec "\$@" 22630fi 22631 22632_ACEOF 22633cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22634exec 5>>config.log 22635{ 22636 echo 22637 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22638## Running $as_me. ## 22639_ASBOX 22640 $as_echo "$ac_log" 22641} >&5 22642 22643_ACEOF 22644cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22645# 22646# INIT-COMMANDS 22647# 22648AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 22649 22650_ACEOF 22651 22652cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22653 22654# Handling of arguments. 22655for ac_config_target in $ac_config_targets 22656do 22657 case $ac_config_target in 22658 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 22659 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22660 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22661 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 22662 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 22663 22664 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 22665$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 22666 { (exit 1); exit 1; }; };; 22667 esac 22668done 22669 22670 22671# If the user did not use the arguments to specify the items to instantiate, 22672# then the envvar interface is used. Set only those that are not. 22673# We use the long form for the default assignment because of an extremely 22674# bizarre bug on SunOS 4.1.3. 22675if $ac_need_defaults; then 22676 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22677 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22678 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22679fi 22680 22681# Have a temporary directory for convenience. Make it in the build tree 22682# simply because there is no reason against having it here, and in addition, 22683# creating and moving files from /tmp can sometimes cause problems. 22684# Hook for its removal unless debugging. 22685# Note that there is a small window in which the directory will not be cleaned: 22686# after its creation but before its name has been assigned to `$tmp'. 22687$debug || 22688{ 22689 tmp= 22690 trap 'exit_status=$? 22691 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 22692' 0 22693 trap '{ (exit 1); exit 1; }' 1 2 13 15 22694} 22695# Create a (secure) tmp directory for tmp files. 22696 22697{ 22698 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22699 test -n "$tmp" && test -d "$tmp" 22700} || 22701{ 22702 tmp=./conf$$-$RANDOM 22703 (umask 077 && mkdir "$tmp") 22704} || 22705{ 22706 $as_echo "$as_me: cannot create a temporary directory in ." >&2 22707 { (exit 1); exit 1; } 22708} 22709 22710# Set up the scripts for CONFIG_FILES section. 22711# No need to generate them if there are no CONFIG_FILES. 22712# This happens for instance with `./config.status config.h'. 22713if test -n "$CONFIG_FILES"; then 22714 22715 22716ac_cr=' 22717' 22718ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 22719if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 22720 ac_cs_awk_cr='\\r' 22721else 22722 ac_cs_awk_cr=$ac_cr 22723fi 22724 22725echo 'BEGIN {' >"$tmp/subs1.awk" && 22726_ACEOF 22727 22728 22729{ 22730 echo "cat >conf$$subs.awk <<_ACEOF" && 22731 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 22732 echo "_ACEOF" 22733} >conf$$subs.sh || 22734 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22735$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22736 { (exit 1); exit 1; }; } 22737ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 22738ac_delim='%!_!# ' 22739for ac_last_try in false false false false false :; do 22740 . ./conf$$subs.sh || 22741 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22742$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22743 { (exit 1); exit 1; }; } 22744 22745 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 22746 if test $ac_delim_n = $ac_delim_num; then 22747 break 22748 elif $ac_last_try; then 22749 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22750$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22751 { (exit 1); exit 1; }; } 22752 else 22753 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22754 fi 22755done 22756rm -f conf$$subs.sh 22757 22758cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22759cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 22760_ACEOF 22761sed -n ' 22762h 22763s/^/S["/; s/!.*/"]=/ 22764p 22765g 22766s/^[^!]*!// 22767:repl 22768t repl 22769s/'"$ac_delim"'$// 22770t delim 22771:nl 22772h 22773s/\(.\{148\}\).*/\1/ 22774t more1 22775s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 22776p 22777n 22778b repl 22779:more1 22780s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22781p 22782g 22783s/.\{148\}// 22784t nl 22785:delim 22786h 22787s/\(.\{148\}\).*/\1/ 22788t more2 22789s/["\\]/\\&/g; s/^/"/; s/$/"/ 22790p 22791b 22792:more2 22793s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22794p 22795g 22796s/.\{148\}// 22797t delim 22798' <conf$$subs.awk | sed ' 22799/^[^""]/{ 22800 N 22801 s/\n// 22802} 22803' >>$CONFIG_STATUS || ac_write_fail=1 22804rm -f conf$$subs.awk 22805cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22806_ACAWK 22807cat >>"\$tmp/subs1.awk" <<_ACAWK && 22808 for (key in S) S_is_set[key] = 1 22809 FS = "" 22810 22811} 22812{ 22813 line = $ 0 22814 nfields = split(line, field, "@") 22815 substed = 0 22816 len = length(field[1]) 22817 for (i = 2; i < nfields; i++) { 22818 key = field[i] 22819 keylen = length(key) 22820 if (S_is_set[key]) { 22821 value = S[key] 22822 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 22823 len += length(value) + length(field[++i]) 22824 substed = 1 22825 } else 22826 len += 1 + keylen 22827 } 22828 22829 print line 22830} 22831 22832_ACAWK 22833_ACEOF 22834cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22835if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 22836 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 22837else 22838 cat 22839fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 22840 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 22841$as_echo "$as_me: error: could not setup config files machinery" >&2;} 22842 { (exit 1); exit 1; }; } 22843_ACEOF 22844 22845# VPATH may cause trouble with some makes, so we remove $(srcdir), 22846# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 22847# trailing colons and then remove the whole line if VPATH becomes empty 22848# (actually we leave an empty line to preserve line numbers). 22849if test "x$srcdir" = x.; then 22850 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 22851s/:*\$(srcdir):*/:/ 22852s/:*\${srcdir}:*/:/ 22853s/:*@srcdir@:*/:/ 22854s/^\([^=]*=[ ]*\):*/\1/ 22855s/:*$// 22856s/^[^=]*=[ ]*$// 22857}' 22858fi 22859 22860cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22861fi # test -n "$CONFIG_FILES" 22862 22863# Set up the scripts for CONFIG_HEADERS section. 22864# No need to generate them if there are no CONFIG_HEADERS. 22865# This happens for instance with `./config.status Makefile'. 22866if test -n "$CONFIG_HEADERS"; then 22867cat >"$tmp/defines.awk" <<\_ACAWK || 22868BEGIN { 22869_ACEOF 22870 22871# Transform confdefs.h into an awk script `defines.awk', embedded as 22872# here-document in config.status, that substitutes the proper values into 22873# config.h.in to produce config.h. 22874 22875# Create a delimiter string that does not exist in confdefs.h, to ease 22876# handling of long lines. 22877ac_delim='%!_!# ' 22878for ac_last_try in false false :; do 22879 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 22880 if test -z "$ac_t"; then 22881 break 22882 elif $ac_last_try; then 22883 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 22884$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 22885 { (exit 1); exit 1; }; } 22886 else 22887 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22888 fi 22889done 22890 22891# For the awk script, D is an array of macro values keyed by name, 22892# likewise P contains macro parameters if any. Preserve backslash 22893# newline sequences. 22894 22895ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22896sed -n ' 22897s/.\{148\}/&'"$ac_delim"'/g 22898t rset 22899:rset 22900s/^[ ]*#[ ]*define[ ][ ]*/ / 22901t def 22902d 22903:def 22904s/\\$// 22905t bsnl 22906s/["\\]/\\&/g 22907s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22908D["\1"]=" \3"/p 22909s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 22910d 22911:bsnl 22912s/["\\]/\\&/g 22913s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22914D["\1"]=" \3\\\\\\n"\\/p 22915t cont 22916s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 22917t cont 22918d 22919:cont 22920n 22921s/.\{148\}/&'"$ac_delim"'/g 22922t clear 22923:clear 22924s/\\$// 22925t bsnlc 22926s/["\\]/\\&/g; s/^/"/; s/$/"/p 22927d 22928:bsnlc 22929s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 22930b cont 22931' <confdefs.h | sed ' 22932s/'"$ac_delim"'/"\\\ 22933"/g' >>$CONFIG_STATUS || ac_write_fail=1 22934 22935cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22936 for (key in D) D_is_set[key] = 1 22937 FS = "" 22938} 22939/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 22940 line = \$ 0 22941 split(line, arg, " ") 22942 if (arg[1] == "#") { 22943 defundef = arg[2] 22944 mac1 = arg[3] 22945 } else { 22946 defundef = substr(arg[1], 2) 22947 mac1 = arg[2] 22948 } 22949 split(mac1, mac2, "(") #) 22950 macro = mac2[1] 22951 prefix = substr(line, 1, index(line, defundef) - 1) 22952 if (D_is_set[macro]) { 22953 # Preserve the white space surrounding the "#". 22954 print prefix "define", macro P[macro] D[macro] 22955 next 22956 } else { 22957 # Replace #undef with comments. This is necessary, for example, 22958 # in the case of _POSIX_SOURCE, which is predefined and required 22959 # on some systems where configure will not decide to define it. 22960 if (defundef == "undef") { 22961 print "/*", prefix defundef, macro, "*/" 22962 next 22963 } 22964 } 22965} 22966{ print } 22967_ACAWK 22968_ACEOF 22969cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22970 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 22971$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 22972 { (exit 1); exit 1; }; } 22973fi # test -n "$CONFIG_HEADERS" 22974 22975 22976eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 22977shift 22978for ac_tag 22979do 22980 case $ac_tag in 22981 :[FHLC]) ac_mode=$ac_tag; continue;; 22982 esac 22983 case $ac_mode$ac_tag in 22984 :[FHL]*:*);; 22985 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 22986$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 22987 { (exit 1); exit 1; }; };; 22988 :[FH]-) ac_tag=-:-;; 22989 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22990 esac 22991 ac_save_IFS=$IFS 22992 IFS=: 22993 set x $ac_tag 22994 IFS=$ac_save_IFS 22995 shift 22996 ac_file=$1 22997 shift 22998 22999 case $ac_mode in 23000 :L) ac_source=$1;; 23001 :[FH]) 23002 ac_file_inputs= 23003 for ac_f 23004 do 23005 case $ac_f in 23006 -) ac_f="$tmp/stdin";; 23007 *) # Look for the file first in the build tree, then in the source tree 23008 # (if the path is not absolute). The absolute path cannot be DOS-style, 23009 # because $ac_f cannot contain `:'. 23010 test -f "$ac_f" || 23011 case $ac_f in 23012 [\\/$]*) false;; 23013 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 23014 esac || 23015 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 23016$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 23017 { (exit 1); exit 1; }; };; 23018 esac 23019 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 23020 ac_file_inputs="$ac_file_inputs '$ac_f'" 23021 done 23022 23023 # Let's still pretend it is `configure' which instantiates (i.e., don't 23024 # use $as_me), people would be surprised to read: 23025 # /* config.h. Generated by config.status. */ 23026 configure_input='Generated from '` 23027 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 23028 `' by configure.' 23029 if test x"$ac_file" != x-; then 23030 configure_input="$ac_file. $configure_input" 23031 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 23032$as_echo "$as_me: creating $ac_file" >&6;} 23033 fi 23034 # Neutralize special characters interpreted by sed in replacement strings. 23035 case $configure_input in #( 23036 *\&* | *\|* | *\\* ) 23037 ac_sed_conf_input=`$as_echo "$configure_input" | 23038 sed 's/[\\\\&|]/\\\\&/g'`;; #( 23039 *) ac_sed_conf_input=$configure_input;; 23040 esac 23041 23042 case $ac_tag in 23043 *:-:* | *:-) cat >"$tmp/stdin" \ 23044 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 23045$as_echo "$as_me: error: could not create $ac_file" >&2;} 23046 { (exit 1); exit 1; }; } ;; 23047 esac 23048 ;; 23049 esac 23050 23051 ac_dir=`$as_dirname -- "$ac_file" || 23052$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23053 X"$ac_file" : 'X\(//\)[^/]' \| \ 23054 X"$ac_file" : 'X\(//\)$' \| \ 23055 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 23056$as_echo X"$ac_file" | 23057 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23058 s//\1/ 23059 q 23060 } 23061 /^X\(\/\/\)[^/].*/{ 23062 s//\1/ 23063 q 23064 } 23065 /^X\(\/\/\)$/{ 23066 s//\1/ 23067 q 23068 } 23069 /^X\(\/\).*/{ 23070 s//\1/ 23071 q 23072 } 23073 s/.*/./; q'` 23074 { as_dir="$ac_dir" 23075 case $as_dir in #( 23076 -*) as_dir=./$as_dir;; 23077 esac 23078 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 23079 as_dirs= 23080 while :; do 23081 case $as_dir in #( 23082 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 23083 *) as_qdir=$as_dir;; 23084 esac 23085 as_dirs="'$as_qdir' $as_dirs" 23086 as_dir=`$as_dirname -- "$as_dir" || 23087$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23088 X"$as_dir" : 'X\(//\)[^/]' \| \ 23089 X"$as_dir" : 'X\(//\)$' \| \ 23090 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23091$as_echo X"$as_dir" | 23092 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23093 s//\1/ 23094 q 23095 } 23096 /^X\(\/\/\)[^/].*/{ 23097 s//\1/ 23098 q 23099 } 23100 /^X\(\/\/\)$/{ 23101 s//\1/ 23102 q 23103 } 23104 /^X\(\/\).*/{ 23105 s//\1/ 23106 q 23107 } 23108 s/.*/./; q'` 23109 test -d "$as_dir" && break 23110 done 23111 test -z "$as_dirs" || eval "mkdir $as_dirs" 23112 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 23113$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 23114 { (exit 1); exit 1; }; }; } 23115 ac_builddir=. 23116 23117case "$ac_dir" in 23118.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23119*) 23120 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 23121 # A ".." for each directory in $ac_dir_suffix. 23122 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 23123 case $ac_top_builddir_sub in 23124 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23125 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23126 esac ;; 23127esac 23128ac_abs_top_builddir=$ac_pwd 23129ac_abs_builddir=$ac_pwd$ac_dir_suffix 23130# for backward compatibility: 23131ac_top_builddir=$ac_top_build_prefix 23132 23133case $srcdir in 23134 .) # We are building in place. 23135 ac_srcdir=. 23136 ac_top_srcdir=$ac_top_builddir_sub 23137 ac_abs_top_srcdir=$ac_pwd ;; 23138 [\\/]* | ?:[\\/]* ) # Absolute name. 23139 ac_srcdir=$srcdir$ac_dir_suffix; 23140 ac_top_srcdir=$srcdir 23141 ac_abs_top_srcdir=$srcdir ;; 23142 *) # Relative name. 23143 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23144 ac_top_srcdir=$ac_top_build_prefix$srcdir 23145 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23146esac 23147ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23148 23149 23150 case $ac_mode in 23151 :F) 23152 # 23153 # CONFIG_FILE 23154 # 23155 23156 case $INSTALL in 23157 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23158 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 23159 esac 23160 ac_MKDIR_P=$MKDIR_P 23161 case $MKDIR_P in 23162 [\\/$]* | ?:[\\/]* ) ;; 23163 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 23164 esac 23165_ACEOF 23166 23167cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23168# If the template does not know about datarootdir, expand it. 23169# FIXME: This hack should be removed a few years after 2.60. 23170ac_datarootdir_hack=; ac_datarootdir_seen= 23171 23172ac_sed_dataroot=' 23173/datarootdir/ { 23174 p 23175 q 23176} 23177/@datadir@/p 23178/@docdir@/p 23179/@infodir@/p 23180/@localedir@/p 23181/@mandir@/p 23182' 23183case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 23184*datarootdir*) ac_datarootdir_seen=yes;; 23185*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 23186 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 23187$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 23188_ACEOF 23189cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23190 ac_datarootdir_hack=' 23191 s&@datadir@&$datadir&g 23192 s&@docdir@&$docdir&g 23193 s&@infodir@&$infodir&g 23194 s&@localedir@&$localedir&g 23195 s&@mandir@&$mandir&g 23196 s&\\\${datarootdir}&$datarootdir&g' ;; 23197esac 23198_ACEOF 23199 23200# Neutralize VPATH when `$srcdir' = `.'. 23201# Shell code in configure.ac might set extrasub. 23202# FIXME: do we really want to maintain this feature? 23203cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23204ac_sed_extra="$ac_vpsub 23205$extrasub 23206_ACEOF 23207cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23208:t 23209/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23210s|@configure_input@|$ac_sed_conf_input|;t t 23211s&@top_builddir@&$ac_top_builddir_sub&;t t 23212s&@top_build_prefix@&$ac_top_build_prefix&;t t 23213s&@srcdir@&$ac_srcdir&;t t 23214s&@abs_srcdir@&$ac_abs_srcdir&;t t 23215s&@top_srcdir@&$ac_top_srcdir&;t t 23216s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 23217s&@builddir@&$ac_builddir&;t t 23218s&@abs_builddir@&$ac_abs_builddir&;t t 23219s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 23220s&@INSTALL@&$ac_INSTALL&;t t 23221s&@MKDIR_P@&$ac_MKDIR_P&;t t 23222$ac_datarootdir_hack 23223" 23224eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 23225 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 23226$as_echo "$as_me: error: could not create $ac_file" >&2;} 23227 { (exit 1); exit 1; }; } 23228 23229test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 23230 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 23231 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 23232 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23233which seems to be undefined. Please make sure it is defined." >&5 23234$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23235which seems to be undefined. Please make sure it is defined." >&2;} 23236 23237 rm -f "$tmp/stdin" 23238 case $ac_file in 23239 -) cat "$tmp/out" && rm -f "$tmp/out";; 23240 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 23241 esac \ 23242 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 23243$as_echo "$as_me: error: could not create $ac_file" >&2;} 23244 { (exit 1); exit 1; }; } 23245 ;; 23246 :H) 23247 # 23248 # CONFIG_HEADER 23249 # 23250 if test x"$ac_file" != x-; then 23251 { 23252 $as_echo "/* $configure_input */" \ 23253 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 23254 } >"$tmp/config.h" \ 23255 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 23256$as_echo "$as_me: error: could not create $ac_file" >&2;} 23257 { (exit 1); exit 1; }; } 23258 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 23259 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 23260$as_echo "$as_me: $ac_file is unchanged" >&6;} 23261 else 23262 rm -f "$ac_file" 23263 mv "$tmp/config.h" "$ac_file" \ 23264 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 23265$as_echo "$as_me: error: could not create $ac_file" >&2;} 23266 { (exit 1); exit 1; }; } 23267 fi 23268 else 23269 $as_echo "/* $configure_input */" \ 23270 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 23271 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 23272$as_echo "$as_me: error: could not create -" >&2;} 23273 { (exit 1); exit 1; }; } 23274 fi 23275# Compute "$ac_file"'s index in $config_headers. 23276_am_arg="$ac_file" 23277_am_stamp_count=1 23278for _am_header in $config_headers :; do 23279 case $_am_header in 23280 $_am_arg | $_am_arg:* ) 23281 break ;; 23282 * ) 23283 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 23284 esac 23285done 23286echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 23287$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23288 X"$_am_arg" : 'X\(//\)[^/]' \| \ 23289 X"$_am_arg" : 'X\(//\)$' \| \ 23290 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 23291$as_echo X"$_am_arg" | 23292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23293 s//\1/ 23294 q 23295 } 23296 /^X\(\/\/\)[^/].*/{ 23297 s//\1/ 23298 q 23299 } 23300 /^X\(\/\/\)$/{ 23301 s//\1/ 23302 q 23303 } 23304 /^X\(\/\).*/{ 23305 s//\1/ 23306 q 23307 } 23308 s/.*/./; q'`/stamp-h$_am_stamp_count 23309 ;; 23310 23311 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 23312$as_echo "$as_me: executing $ac_file commands" >&6;} 23313 ;; 23314 esac 23315 23316 23317 case $ac_file$ac_mode in 23318 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 23319 # Strip MF so we end up with the name of the file. 23320 mf=`echo "$mf" | sed -e 's/:.*$//'` 23321 # Check whether this is an Automake generated Makefile or not. 23322 # We used to match only the files named `Makefile.in', but 23323 # some people rename them; so instead we look at the file content. 23324 # Grep'ing the first line is not enough: some people post-process 23325 # each Makefile.in and add a new line on top of each file to say so. 23326 # Grep'ing the whole file is not good either: AIX grep has a line 23327 # limit of 2048, but all sed's we know have understand at least 4000. 23328 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 23329 dirpart=`$as_dirname -- "$mf" || 23330$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23331 X"$mf" : 'X\(//\)[^/]' \| \ 23332 X"$mf" : 'X\(//\)$' \| \ 23333 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 23334$as_echo X"$mf" | 23335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23336 s//\1/ 23337 q 23338 } 23339 /^X\(\/\/\)[^/].*/{ 23340 s//\1/ 23341 q 23342 } 23343 /^X\(\/\/\)$/{ 23344 s//\1/ 23345 q 23346 } 23347 /^X\(\/\).*/{ 23348 s//\1/ 23349 q 23350 } 23351 s/.*/./; q'` 23352 else 23353 continue 23354 fi 23355 # Extract the definition of DEPDIR, am__include, and am__quote 23356 # from the Makefile without running `make'. 23357 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 23358 test -z "$DEPDIR" && continue 23359 am__include=`sed -n 's/^am__include = //p' < "$mf"` 23360 test -z "am__include" && continue 23361 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 23362 # When using ansi2knr, U may be empty or an underscore; expand it 23363 U=`sed -n 's/^U = //p' < "$mf"` 23364 # Find all dependency output files, they are included files with 23365 # $(DEPDIR) in their names. We invoke sed twice because it is the 23366 # simplest approach to changing $(DEPDIR) to its actual value in the 23367 # expansion. 23368 for file in `sed -n " 23369 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 23370 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 23371 # Make sure the directory exists. 23372 test -f "$dirpart/$file" && continue 23373 fdir=`$as_dirname -- "$file" || 23374$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23375 X"$file" : 'X\(//\)[^/]' \| \ 23376 X"$file" : 'X\(//\)$' \| \ 23377 X"$file" : 'X\(/\)' \| . 2>/dev/null || 23378$as_echo X"$file" | 23379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23380 s//\1/ 23381 q 23382 } 23383 /^X\(\/\/\)[^/].*/{ 23384 s//\1/ 23385 q 23386 } 23387 /^X\(\/\/\)$/{ 23388 s//\1/ 23389 q 23390 } 23391 /^X\(\/\).*/{ 23392 s//\1/ 23393 q 23394 } 23395 s/.*/./; q'` 23396 { as_dir=$dirpart/$fdir 23397 case $as_dir in #( 23398 -*) as_dir=./$as_dir;; 23399 esac 23400 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 23401 as_dirs= 23402 while :; do 23403 case $as_dir in #( 23404 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 23405 *) as_qdir=$as_dir;; 23406 esac 23407 as_dirs="'$as_qdir' $as_dirs" 23408 as_dir=`$as_dirname -- "$as_dir" || 23409$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23410 X"$as_dir" : 'X\(//\)[^/]' \| \ 23411 X"$as_dir" : 'X\(//\)$' \| \ 23412 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23413$as_echo X"$as_dir" | 23414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23415 s//\1/ 23416 q 23417 } 23418 /^X\(\/\/\)[^/].*/{ 23419 s//\1/ 23420 q 23421 } 23422 /^X\(\/\/\)$/{ 23423 s//\1/ 23424 q 23425 } 23426 /^X\(\/\).*/{ 23427 s//\1/ 23428 q 23429 } 23430 s/.*/./; q'` 23431 test -d "$as_dir" && break 23432 done 23433 test -z "$as_dirs" || eval "mkdir $as_dirs" 23434 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 23435$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 23436 { (exit 1); exit 1; }; }; } 23437 # echo "creating $dirpart/$file" 23438 echo '# dummy' > "$dirpart/$file" 23439 done 23440done 23441 ;; 23442 23443 esac 23444done # for ac_tag 23445 23446 23447{ (exit 0); exit 0; } 23448_ACEOF 23449chmod +x $CONFIG_STATUS 23450ac_clean_files=$ac_clean_files_save 23451 23452test $ac_write_fail = 0 || 23453 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 23454$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 23455 { (exit 1); exit 1; }; } 23456 23457 23458# configure is writing to config.log, and then calls config.status. 23459# config.status does its own redirection, appending to config.log. 23460# Unfortunately, on DOS this fails, as config.log is still kept open 23461# by configure, so config.status won't be able to write to it; its 23462# output is simply discarded. So we exec the FD to /dev/null, 23463# effectively closing config.log, so it can be properly (re)opened and 23464# appended to by config.status. When coming back to configure, we 23465# need to make the FD available again. 23466if test "$no_create" != yes; then 23467 ac_cs_success=: 23468 ac_config_status_args= 23469 test "$silent" = yes && 23470 ac_config_status_args="$ac_config_status_args --quiet" 23471 exec 5>/dev/null 23472 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23473 exec 5>>config.log 23474 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23475 # would make configure fail if this is the last instruction. 23476 $ac_cs_success || { (exit 1); exit 1; } 23477fi 23478if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 23479 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 23480$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 23481fi 23482 23483