configure revision 7104f784
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.63 for xf86-video-siliconmotion 1.7.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-siliconmotion' 752PACKAGE_TARNAME='xf86-video-siliconmotion' 753PACKAGE_VERSION='1.7.1' 754PACKAGE_STRING='xf86-video-siliconmotion 1.7.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 796distcleancheck_listfiles 797CHANGELOG_CMD 798ADMIN_MAN_DIR 799DRIVER_MAN_DIR 800MISC_MAN_DIR 801FILE_MAN_DIR 802LIB_MAN_DIR 803APP_MAN_DIR 804ADMIN_MAN_SUFFIX 805DRIVER_MAN_SUFFIX 806MISC_MAN_SUFFIX 807FILE_MAN_SUFFIX 808LIB_MAN_SUFFIX 809APP_MAN_SUFFIX 810DRIVER_NAME 811moduledir 812CWARNFLAGS 813XMODES_FALSE 814XMODES_TRUE 815XSERVER_LIBPCIACCESS_FALSE 816XSERVER_LIBPCIACCESS_TRUE 817PCIACCESS_LIBS 818PCIACCESS_CFLAGS 819XORG_LIBS 820XORG_CFLAGS 821PKG_CONFIG 822LIBTOOL 823ac_ct_F77 824FFLAGS 825F77 826CXXCPP 827am__fastdepCXX_FALSE 828am__fastdepCXX_TRUE 829CXXDEPMODE 830ac_ct_CXX 831CXXFLAGS 832CXX 833CPP 834NMEDIT 835DSYMUTIL 836RANLIB 837AR 838ECHO 839LN_S 840EGREP 841GREP 842SED 843am__fastdepCC_FALSE 844am__fastdepCC_TRUE 845CCDEPMODE 846AMDEPBACKSLASH 847AMDEP_FALSE 848AMDEP_TRUE 849am__quote 850am__include 851DEPDIR 852OBJEXT 853EXEEXT 854ac_ct_CC 855CPPFLAGS 856LDFLAGS 857CFLAGS 858CC 859host_os 860host_vendor 861host_cpu 862host 863build_os 864build_vendor 865build_cpu 866build 867MAINT 868MAINTAINER_MODE_FALSE 869MAINTAINER_MODE_TRUE 870am__untar 871am__tar 872AMTAR 873am__leading_dot 874SET_MAKE 875AWK 876mkdir_p 877MKDIR_P 878INSTALL_STRIP_PROGRAM 879STRIP 880install_sh 881MAKEINFO 882AUTOHEADER 883AUTOMAKE 884AUTOCONF 885ACLOCAL 886VERSION 887PACKAGE 888CYGPATH_W 889am__isrc 890INSTALL_DATA 891INSTALL_SCRIPT 892INSTALL_PROGRAM 893target_alias 894host_alias 895build_alias 896LIBS 897ECHO_T 898ECHO_N 899ECHO_C 900DEFS 901mandir 902localedir 903libdir 904psdir 905pdfdir 906dvidir 907htmldir 908infodir 909docdir 910oldincludedir 911includedir 912localstatedir 913sharedstatedir 914sysconfdir 915datadir 916datarootdir 917libexecdir 918sbindir 919bindir 920program_transform_name 921prefix 922exec_prefix 923PACKAGE_BUGREPORT 924PACKAGE_STRING 925PACKAGE_VERSION 926PACKAGE_TARNAME 927PACKAGE_NAME 928PATH_SEPARATOR 929SHELL' 930ac_subst_files='' 931ac_user_opts=' 932enable_option_checking 933enable_maintainer_mode 934enable_static 935enable_shared 936enable_fast_install 937enable_dependency_tracking 938with_gnu_ld 939enable_libtool_lock 940with_pic 941with_tags 942with_xorg_module_dir 943with_release_version 944' 945 ac_precious_vars='build_alias 946host_alias 947target_alias 948CC 949CFLAGS 950LDFLAGS 951LIBS 952CPPFLAGS 953CPP 954CXX 955CXXFLAGS 956CCC 957CXXCPP 958F77 959FFLAGS 960PKG_CONFIG 961XORG_CFLAGS 962XORG_LIBS 963PCIACCESS_CFLAGS 964PCIACCESS_LIBS' 965 966 967# Initialize some variables set by options. 968ac_init_help= 969ac_init_version=false 970ac_unrecognized_opts= 971ac_unrecognized_sep= 972# The variables have the same names as the options, with 973# dashes changed to underlines. 974cache_file=/dev/null 975exec_prefix=NONE 976no_create= 977no_recursion= 978prefix=NONE 979program_prefix=NONE 980program_suffix=NONE 981program_transform_name=s,x,x, 982silent= 983site= 984srcdir= 985verbose= 986x_includes=NONE 987x_libraries=NONE 988 989# Installation directory options. 990# These are left unexpanded so users can "make install exec_prefix=/foo" 991# and all the variables that are supposed to be based on exec_prefix 992# by default will actually change. 993# Use braces instead of parens because sh, perl, etc. also accept them. 994# (The list follows the same order as the GNU Coding Standards.) 995bindir='${exec_prefix}/bin' 996sbindir='${exec_prefix}/sbin' 997libexecdir='${exec_prefix}/libexec' 998datarootdir='${prefix}/share' 999datadir='${datarootdir}' 1000sysconfdir='${prefix}/etc' 1001sharedstatedir='${prefix}/com' 1002localstatedir='${prefix}/var' 1003includedir='${prefix}/include' 1004oldincludedir='/usr/include' 1005docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1006infodir='${datarootdir}/info' 1007htmldir='${docdir}' 1008dvidir='${docdir}' 1009pdfdir='${docdir}' 1010psdir='${docdir}' 1011libdir='${exec_prefix}/lib' 1012localedir='${datarootdir}/locale' 1013mandir='${datarootdir}/man' 1014 1015ac_prev= 1016ac_dashdash= 1017for ac_option 1018do 1019 # If the previous option needs an argument, assign it. 1020 if test -n "$ac_prev"; then 1021 eval $ac_prev=\$ac_option 1022 ac_prev= 1023 continue 1024 fi 1025 1026 case $ac_option in 1027 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1028 *) ac_optarg=yes ;; 1029 esac 1030 1031 # Accept the important Cygnus configure options, so we can diagnose typos. 1032 1033 case $ac_dashdash$ac_option in 1034 --) 1035 ac_dashdash=yes ;; 1036 1037 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1038 ac_prev=bindir ;; 1039 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1040 bindir=$ac_optarg ;; 1041 1042 -build | --build | --buil | --bui | --bu) 1043 ac_prev=build_alias ;; 1044 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1045 build_alias=$ac_optarg ;; 1046 1047 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1048 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1049 ac_prev=cache_file ;; 1050 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1051 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1052 cache_file=$ac_optarg ;; 1053 1054 --config-cache | -C) 1055 cache_file=config.cache ;; 1056 1057 -datadir | --datadir | --datadi | --datad) 1058 ac_prev=datadir ;; 1059 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1060 datadir=$ac_optarg ;; 1061 1062 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1063 | --dataroo | --dataro | --datar) 1064 ac_prev=datarootdir ;; 1065 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1066 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1067 datarootdir=$ac_optarg ;; 1068 1069 -disable-* | --disable-*) 1070 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1071 # Reject names that are not valid shell variable names. 1072 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1073 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1074 { (exit 1); exit 1; }; } 1075 ac_useropt_orig=$ac_useropt 1076 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1077 case $ac_user_opts in 1078 *" 1079"enable_$ac_useropt" 1080"*) ;; 1081 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1082 ac_unrecognized_sep=', ';; 1083 esac 1084 eval enable_$ac_useropt=no ;; 1085 1086 -docdir | --docdir | --docdi | --doc | --do) 1087 ac_prev=docdir ;; 1088 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1089 docdir=$ac_optarg ;; 1090 1091 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1092 ac_prev=dvidir ;; 1093 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1094 dvidir=$ac_optarg ;; 1095 1096 -enable-* | --enable-*) 1097 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1098 # Reject names that are not valid shell variable names. 1099 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1100 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1101 { (exit 1); exit 1; }; } 1102 ac_useropt_orig=$ac_useropt 1103 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1104 case $ac_user_opts in 1105 *" 1106"enable_$ac_useropt" 1107"*) ;; 1108 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1109 ac_unrecognized_sep=', ';; 1110 esac 1111 eval enable_$ac_useropt=\$ac_optarg ;; 1112 1113 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1114 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1115 | --exec | --exe | --ex) 1116 ac_prev=exec_prefix ;; 1117 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1118 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1119 | --exec=* | --exe=* | --ex=*) 1120 exec_prefix=$ac_optarg ;; 1121 1122 -gas | --gas | --ga | --g) 1123 # Obsolete; use --with-gas. 1124 with_gas=yes ;; 1125 1126 -help | --help | --hel | --he | -h) 1127 ac_init_help=long ;; 1128 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1129 ac_init_help=recursive ;; 1130 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1131 ac_init_help=short ;; 1132 1133 -host | --host | --hos | --ho) 1134 ac_prev=host_alias ;; 1135 -host=* | --host=* | --hos=* | --ho=*) 1136 host_alias=$ac_optarg ;; 1137 1138 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1139 ac_prev=htmldir ;; 1140 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1141 | --ht=*) 1142 htmldir=$ac_optarg ;; 1143 1144 -includedir | --includedir | --includedi | --included | --include \ 1145 | --includ | --inclu | --incl | --inc) 1146 ac_prev=includedir ;; 1147 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1148 | --includ=* | --inclu=* | --incl=* | --inc=*) 1149 includedir=$ac_optarg ;; 1150 1151 -infodir | --infodir | --infodi | --infod | --info | --inf) 1152 ac_prev=infodir ;; 1153 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1154 infodir=$ac_optarg ;; 1155 1156 -libdir | --libdir | --libdi | --libd) 1157 ac_prev=libdir ;; 1158 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1159 libdir=$ac_optarg ;; 1160 1161 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1162 | --libexe | --libex | --libe) 1163 ac_prev=libexecdir ;; 1164 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1165 | --libexe=* | --libex=* | --libe=*) 1166 libexecdir=$ac_optarg ;; 1167 1168 -localedir | --localedir | --localedi | --localed | --locale) 1169 ac_prev=localedir ;; 1170 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1171 localedir=$ac_optarg ;; 1172 1173 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1174 | --localstate | --localstat | --localsta | --localst | --locals) 1175 ac_prev=localstatedir ;; 1176 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1177 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1178 localstatedir=$ac_optarg ;; 1179 1180 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1181 ac_prev=mandir ;; 1182 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1183 mandir=$ac_optarg ;; 1184 1185 -nfp | --nfp | --nf) 1186 # Obsolete; use --without-fp. 1187 with_fp=no ;; 1188 1189 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1190 | --no-cr | --no-c | -n) 1191 no_create=yes ;; 1192 1193 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1194 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1195 no_recursion=yes ;; 1196 1197 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1198 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1199 | --oldin | --oldi | --old | --ol | --o) 1200 ac_prev=oldincludedir ;; 1201 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1202 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1203 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1204 oldincludedir=$ac_optarg ;; 1205 1206 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1207 ac_prev=prefix ;; 1208 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1209 prefix=$ac_optarg ;; 1210 1211 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1212 | --program-pre | --program-pr | --program-p) 1213 ac_prev=program_prefix ;; 1214 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1215 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1216 program_prefix=$ac_optarg ;; 1217 1218 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1219 | --program-suf | --program-su | --program-s) 1220 ac_prev=program_suffix ;; 1221 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1222 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1223 program_suffix=$ac_optarg ;; 1224 1225 -program-transform-name | --program-transform-name \ 1226 | --program-transform-nam | --program-transform-na \ 1227 | --program-transform-n | --program-transform- \ 1228 | --program-transform | --program-transfor \ 1229 | --program-transfo | --program-transf \ 1230 | --program-trans | --program-tran \ 1231 | --progr-tra | --program-tr | --program-t) 1232 ac_prev=program_transform_name ;; 1233 -program-transform-name=* | --program-transform-name=* \ 1234 | --program-transform-nam=* | --program-transform-na=* \ 1235 | --program-transform-n=* | --program-transform-=* \ 1236 | --program-transform=* | --program-transfor=* \ 1237 | --program-transfo=* | --program-transf=* \ 1238 | --program-trans=* | --program-tran=* \ 1239 | --progr-tra=* | --program-tr=* | --program-t=*) 1240 program_transform_name=$ac_optarg ;; 1241 1242 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1243 ac_prev=pdfdir ;; 1244 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1245 pdfdir=$ac_optarg ;; 1246 1247 -psdir | --psdir | --psdi | --psd | --ps) 1248 ac_prev=psdir ;; 1249 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1250 psdir=$ac_optarg ;; 1251 1252 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1253 | -silent | --silent | --silen | --sile | --sil) 1254 silent=yes ;; 1255 1256 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1257 ac_prev=sbindir ;; 1258 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1259 | --sbi=* | --sb=*) 1260 sbindir=$ac_optarg ;; 1261 1262 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1263 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1264 | --sharedst | --shareds | --shared | --share | --shar \ 1265 | --sha | --sh) 1266 ac_prev=sharedstatedir ;; 1267 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1268 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1269 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1270 | --sha=* | --sh=*) 1271 sharedstatedir=$ac_optarg ;; 1272 1273 -site | --site | --sit) 1274 ac_prev=site ;; 1275 -site=* | --site=* | --sit=*) 1276 site=$ac_optarg ;; 1277 1278 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1279 ac_prev=srcdir ;; 1280 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1281 srcdir=$ac_optarg ;; 1282 1283 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1284 | --syscon | --sysco | --sysc | --sys | --sy) 1285 ac_prev=sysconfdir ;; 1286 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1287 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1288 sysconfdir=$ac_optarg ;; 1289 1290 -target | --target | --targe | --targ | --tar | --ta | --t) 1291 ac_prev=target_alias ;; 1292 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1293 target_alias=$ac_optarg ;; 1294 1295 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1296 verbose=yes ;; 1297 1298 -version | --version | --versio | --versi | --vers | -V) 1299 ac_init_version=: ;; 1300 1301 -with-* | --with-*) 1302 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1303 # Reject names that are not valid shell variable names. 1304 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1305 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1306 { (exit 1); exit 1; }; } 1307 ac_useropt_orig=$ac_useropt 1308 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1309 case $ac_user_opts in 1310 *" 1311"with_$ac_useropt" 1312"*) ;; 1313 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1314 ac_unrecognized_sep=', ';; 1315 esac 1316 eval with_$ac_useropt=\$ac_optarg ;; 1317 1318 -without-* | --without-*) 1319 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1320 # Reject names that are not valid shell variable names. 1321 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1322 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1323 { (exit 1); exit 1; }; } 1324 ac_useropt_orig=$ac_useropt 1325 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1326 case $ac_user_opts in 1327 *" 1328"with_$ac_useropt" 1329"*) ;; 1330 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1331 ac_unrecognized_sep=', ';; 1332 esac 1333 eval with_$ac_useropt=no ;; 1334 1335 --x) 1336 # Obsolete; use --with-x. 1337 with_x=yes ;; 1338 1339 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1340 | --x-incl | --x-inc | --x-in | --x-i) 1341 ac_prev=x_includes ;; 1342 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1343 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1344 x_includes=$ac_optarg ;; 1345 1346 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1347 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1348 ac_prev=x_libraries ;; 1349 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1350 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1351 x_libraries=$ac_optarg ;; 1352 1353 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1354Try \`$0 --help' for more information." >&2 1355 { (exit 1); exit 1; }; } 1356 ;; 1357 1358 *=*) 1359 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1360 # Reject names that are not valid shell variable names. 1361 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1362 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1363 { (exit 1); exit 1; }; } 1364 eval $ac_envvar=\$ac_optarg 1365 export $ac_envvar ;; 1366 1367 *) 1368 # FIXME: should be removed in autoconf 3.0. 1369 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1370 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1371 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1372 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1373 ;; 1374 1375 esac 1376done 1377 1378if test -n "$ac_prev"; then 1379 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1380 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1381 { (exit 1); exit 1; }; } 1382fi 1383 1384if test -n "$ac_unrecognized_opts"; then 1385 case $enable_option_checking in 1386 no) ;; 1387 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1388 { (exit 1); exit 1; }; } ;; 1389 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1390 esac 1391fi 1392 1393# Check all directory arguments for consistency. 1394for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1395 datadir sysconfdir sharedstatedir localstatedir includedir \ 1396 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1397 libdir localedir mandir 1398do 1399 eval ac_val=\$$ac_var 1400 # Remove trailing slashes. 1401 case $ac_val in 1402 */ ) 1403 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1404 eval $ac_var=\$ac_val;; 1405 esac 1406 # Be sure to have absolute directory names. 1407 case $ac_val in 1408 [\\/$]* | ?:[\\/]* ) continue;; 1409 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1410 esac 1411 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1412 { (exit 1); exit 1; }; } 1413done 1414 1415# There might be people who depend on the old broken behavior: `$host' 1416# used to hold the argument of --host etc. 1417# FIXME: To remove some day. 1418build=$build_alias 1419host=$host_alias 1420target=$target_alias 1421 1422# FIXME: To remove some day. 1423if test "x$host_alias" != x; then 1424 if test "x$build_alias" = x; then 1425 cross_compiling=maybe 1426 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1427 If a cross compiler is detected then cross compile mode will be used." >&2 1428 elif test "x$build_alias" != "x$host_alias"; then 1429 cross_compiling=yes 1430 fi 1431fi 1432 1433ac_tool_prefix= 1434test -n "$host_alias" && ac_tool_prefix=$host_alias- 1435 1436test "$silent" = yes && exec 6>/dev/null 1437 1438 1439ac_pwd=`pwd` && test -n "$ac_pwd" && 1440ac_ls_di=`ls -di .` && 1441ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1442 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1443 { (exit 1); exit 1; }; } 1444test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1445 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1446 { (exit 1); exit 1; }; } 1447 1448 1449# Find the source files, if location was not specified. 1450if test -z "$srcdir"; then 1451 ac_srcdir_defaulted=yes 1452 # Try the directory containing this script, then the parent directory. 1453 ac_confdir=`$as_dirname -- "$as_myself" || 1454$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1455 X"$as_myself" : 'X\(//\)[^/]' \| \ 1456 X"$as_myself" : 'X\(//\)$' \| \ 1457 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1458$as_echo X"$as_myself" | 1459 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1460 s//\1/ 1461 q 1462 } 1463 /^X\(\/\/\)[^/].*/{ 1464 s//\1/ 1465 q 1466 } 1467 /^X\(\/\/\)$/{ 1468 s//\1/ 1469 q 1470 } 1471 /^X\(\/\).*/{ 1472 s//\1/ 1473 q 1474 } 1475 s/.*/./; q'` 1476 srcdir=$ac_confdir 1477 if test ! -r "$srcdir/$ac_unique_file"; then 1478 srcdir=.. 1479 fi 1480else 1481 ac_srcdir_defaulted=no 1482fi 1483if test ! -r "$srcdir/$ac_unique_file"; then 1484 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1485 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1486 { (exit 1); exit 1; }; } 1487fi 1488ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1489ac_abs_confdir=`( 1490 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1491 { (exit 1); exit 1; }; } 1492 pwd)` 1493# When building in place, set srcdir=. 1494if test "$ac_abs_confdir" = "$ac_pwd"; then 1495 srcdir=. 1496fi 1497# Remove unnecessary trailing slashes from srcdir. 1498# Double slashes in file names in object file debugging info 1499# mess up M-x gdb in Emacs. 1500case $srcdir in 1501*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1502esac 1503for ac_var in $ac_precious_vars; do 1504 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1505 eval ac_env_${ac_var}_value=\$${ac_var} 1506 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1507 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1508done 1509 1510# 1511# Report the --help message. 1512# 1513if test "$ac_init_help" = "long"; then 1514 # Omit some internal or obsolete options to make the list less imposing. 1515 # This message is too long to be a string in the A/UX 3.1 sh. 1516 cat <<_ACEOF 1517\`configure' configures xf86-video-siliconmotion 1.7.1 to adapt to many kinds of systems. 1518 1519Usage: $0 [OPTION]... [VAR=VALUE]... 1520 1521To assign environment variables (e.g., CC, CFLAGS...), specify them as 1522VAR=VALUE. See below for descriptions of some of the useful variables. 1523 1524Defaults for the options are specified in brackets. 1525 1526Configuration: 1527 -h, --help display this help and exit 1528 --help=short display options specific to this package 1529 --help=recursive display the short help of all the included packages 1530 -V, --version display version information and exit 1531 -q, --quiet, --silent do not print \`checking...' messages 1532 --cache-file=FILE cache test results in FILE [disabled] 1533 -C, --config-cache alias for \`--cache-file=config.cache' 1534 -n, --no-create do not create output files 1535 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1536 1537Installation directories: 1538 --prefix=PREFIX install architecture-independent files in PREFIX 1539 [$ac_default_prefix] 1540 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1541 [PREFIX] 1542 1543By default, \`make install' will install all the files in 1544\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1545an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1546for instance \`--prefix=\$HOME'. 1547 1548For better control, use the options below. 1549 1550Fine tuning of the installation directories: 1551 --bindir=DIR user executables [EPREFIX/bin] 1552 --sbindir=DIR system admin executables [EPREFIX/sbin] 1553 --libexecdir=DIR program executables [EPREFIX/libexec] 1554 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1555 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1556 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1557 --libdir=DIR object code libraries [EPREFIX/lib] 1558 --includedir=DIR C header files [PREFIX/include] 1559 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1560 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1561 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1562 --infodir=DIR info documentation [DATAROOTDIR/info] 1563 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1564 --mandir=DIR man documentation [DATAROOTDIR/man] 1565 --docdir=DIR documentation root 1566 [DATAROOTDIR/doc/xf86-video-siliconmotion] 1567 --htmldir=DIR html documentation [DOCDIR] 1568 --dvidir=DIR dvi documentation [DOCDIR] 1569 --pdfdir=DIR pdf documentation [DOCDIR] 1570 --psdir=DIR ps documentation [DOCDIR] 1571_ACEOF 1572 1573 cat <<\_ACEOF 1574 1575Program names: 1576 --program-prefix=PREFIX prepend PREFIX to installed program names 1577 --program-suffix=SUFFIX append SUFFIX to installed program names 1578 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1579 1580System types: 1581 --build=BUILD configure for building on BUILD [guessed] 1582 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1583_ACEOF 1584fi 1585 1586if test -n "$ac_init_help"; then 1587 case $ac_init_help in 1588 short | recursive ) echo "Configuration of xf86-video-siliconmotion 1.7.1:";; 1589 esac 1590 cat <<\_ACEOF 1591 1592Optional Features: 1593 --disable-option-checking ignore unrecognized --enable/--with options 1594 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1595 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1596 --enable-maintainer-mode enable make rules and dependencies not useful 1597 (and sometimes confusing) to the casual installer 1598 --enable-static[=PKGS] build static libraries [default=no] 1599 --enable-shared[=PKGS] build shared libraries [default=yes] 1600 --enable-fast-install[=PKGS] 1601 optimize for fast installation [default=yes] 1602 --disable-dependency-tracking speeds up one-time build 1603 --enable-dependency-tracking do not reject slow dependency extractors 1604 --disable-libtool-lock avoid locking (might break parallel builds) 1605 1606Optional Packages: 1607 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1608 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1609 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1610 --with-pic try to use only PIC/non-PIC objects [default=use 1611 both] 1612 --with-tags[=TAGS] include additional configurations [automatic] 1613 --with-xorg-module-dir=DIR 1614 Default xorg module directory 1615 [default=$libdir/xorg/modules] 1616 --with-release-version=STRING 1617 Use release version string in package name 1618 1619Some influential environment variables: 1620 CC C compiler command 1621 CFLAGS C compiler flags 1622 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1623 nonstandard directory <lib dir> 1624 LIBS libraries to pass to the linker, e.g. -l<library> 1625 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1626 you have headers in a nonstandard directory <include dir> 1627 CPP C preprocessor 1628 CXX C++ compiler command 1629 CXXFLAGS C++ compiler flags 1630 CXXCPP C++ preprocessor 1631 F77 Fortran 77 compiler command 1632 FFLAGS Fortran 77 compiler flags 1633 PKG_CONFIG path to pkg-config utility 1634 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1635 XORG_LIBS linker flags for XORG, overriding pkg-config 1636 PCIACCESS_CFLAGS 1637 C compiler flags for PCIACCESS, overriding pkg-config 1638 PCIACCESS_LIBS 1639 linker flags for PCIACCESS, overriding pkg-config 1640 1641Use these variables to override the choices made by `configure' or to help 1642it to find libraries and programs with nonstandard names/locations. 1643 1644Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1645_ACEOF 1646ac_status=$? 1647fi 1648 1649if test "$ac_init_help" = "recursive"; then 1650 # If there are subdirs, report their specific --help. 1651 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1652 test -d "$ac_dir" || 1653 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1654 continue 1655 ac_builddir=. 1656 1657case "$ac_dir" in 1658.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1659*) 1660 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1661 # A ".." for each directory in $ac_dir_suffix. 1662 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1663 case $ac_top_builddir_sub in 1664 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1665 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1666 esac ;; 1667esac 1668ac_abs_top_builddir=$ac_pwd 1669ac_abs_builddir=$ac_pwd$ac_dir_suffix 1670# for backward compatibility: 1671ac_top_builddir=$ac_top_build_prefix 1672 1673case $srcdir in 1674 .) # We are building in place. 1675 ac_srcdir=. 1676 ac_top_srcdir=$ac_top_builddir_sub 1677 ac_abs_top_srcdir=$ac_pwd ;; 1678 [\\/]* | ?:[\\/]* ) # Absolute name. 1679 ac_srcdir=$srcdir$ac_dir_suffix; 1680 ac_top_srcdir=$srcdir 1681 ac_abs_top_srcdir=$srcdir ;; 1682 *) # Relative name. 1683 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1684 ac_top_srcdir=$ac_top_build_prefix$srcdir 1685 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1686esac 1687ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1688 1689 cd "$ac_dir" || { ac_status=$?; continue; } 1690 # Check for guested configure. 1691 if test -f "$ac_srcdir/configure.gnu"; then 1692 echo && 1693 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1694 elif test -f "$ac_srcdir/configure"; then 1695 echo && 1696 $SHELL "$ac_srcdir/configure" --help=recursive 1697 else 1698 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1699 fi || ac_status=$? 1700 cd "$ac_pwd" || { ac_status=$?; break; } 1701 done 1702fi 1703 1704test -n "$ac_init_help" && exit $ac_status 1705if $ac_init_version; then 1706 cat <<\_ACEOF 1707xf86-video-siliconmotion configure 1.7.1 1708generated by GNU Autoconf 2.63 1709 1710Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 17112002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1712This configure script is free software; the Free Software Foundation 1713gives unlimited permission to copy, distribute and modify it. 1714_ACEOF 1715 exit 1716fi 1717cat >config.log <<_ACEOF 1718This file contains any messages produced by compilers while 1719running configure, to aid debugging if configure makes a mistake. 1720 1721It was created by xf86-video-siliconmotion $as_me 1.7.1, which was 1722generated by GNU Autoconf 2.63. Invocation command line was 1723 1724 $ $0 $@ 1725 1726_ACEOF 1727exec 5>>config.log 1728{ 1729cat <<_ASUNAME 1730## --------- ## 1731## Platform. ## 1732## --------- ## 1733 1734hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1735uname -m = `(uname -m) 2>/dev/null || echo unknown` 1736uname -r = `(uname -r) 2>/dev/null || echo unknown` 1737uname -s = `(uname -s) 2>/dev/null || echo unknown` 1738uname -v = `(uname -v) 2>/dev/null || echo unknown` 1739 1740/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1741/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1742 1743/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1744/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1745/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1746/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1747/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1748/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1749/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1750 1751_ASUNAME 1752 1753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1754for as_dir in $PATH 1755do 1756 IFS=$as_save_IFS 1757 test -z "$as_dir" && as_dir=. 1758 $as_echo "PATH: $as_dir" 1759done 1760IFS=$as_save_IFS 1761 1762} >&5 1763 1764cat >&5 <<_ACEOF 1765 1766 1767## ----------- ## 1768## Core tests. ## 1769## ----------- ## 1770 1771_ACEOF 1772 1773 1774# Keep a trace of the command line. 1775# Strip out --no-create and --no-recursion so they do not pile up. 1776# Strip out --silent because we don't want to record it for future runs. 1777# Also quote any args containing shell meta-characters. 1778# Make two passes to allow for proper duplicate-argument suppression. 1779ac_configure_args= 1780ac_configure_args0= 1781ac_configure_args1= 1782ac_must_keep_next=false 1783for ac_pass in 1 2 1784do 1785 for ac_arg 1786 do 1787 case $ac_arg in 1788 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1789 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1790 | -silent | --silent | --silen | --sile | --sil) 1791 continue ;; 1792 *\'*) 1793 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1794 esac 1795 case $ac_pass in 1796 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1797 2) 1798 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1799 if test $ac_must_keep_next = true; then 1800 ac_must_keep_next=false # Got value, back to normal. 1801 else 1802 case $ac_arg in 1803 *=* | --config-cache | -C | -disable-* | --disable-* \ 1804 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1805 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1806 | -with-* | --with-* | -without-* | --without-* | --x) 1807 case "$ac_configure_args0 " in 1808 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1809 esac 1810 ;; 1811 -* ) ac_must_keep_next=true ;; 1812 esac 1813 fi 1814 ac_configure_args="$ac_configure_args '$ac_arg'" 1815 ;; 1816 esac 1817 done 1818done 1819$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1820$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1821 1822# When interrupted or exit'd, cleanup temporary files, and complete 1823# config.log. We remove comments because anyway the quotes in there 1824# would cause problems or look ugly. 1825# WARNING: Use '\'' to represent an apostrophe within the trap. 1826# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1827trap 'exit_status=$? 1828 # Save into config.log some information that might help in debugging. 1829 { 1830 echo 1831 1832 cat <<\_ASBOX 1833## ---------------- ## 1834## Cache variables. ## 1835## ---------------- ## 1836_ASBOX 1837 echo 1838 # The following way of writing the cache mishandles newlines in values, 1839( 1840 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1841 eval ac_val=\$$ac_var 1842 case $ac_val in #( 1843 *${as_nl}*) 1844 case $ac_var in #( 1845 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1846$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1847 esac 1848 case $ac_var in #( 1849 _ | IFS | as_nl) ;; #( 1850 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1851 *) $as_unset $ac_var ;; 1852 esac ;; 1853 esac 1854 done 1855 (set) 2>&1 | 1856 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1857 *${as_nl}ac_space=\ *) 1858 sed -n \ 1859 "s/'\''/'\''\\\\'\'''\''/g; 1860 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1861 ;; #( 1862 *) 1863 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1864 ;; 1865 esac | 1866 sort 1867) 1868 echo 1869 1870 cat <<\_ASBOX 1871## ----------------- ## 1872## Output variables. ## 1873## ----------------- ## 1874_ASBOX 1875 echo 1876 for ac_var in $ac_subst_vars 1877 do 1878 eval ac_val=\$$ac_var 1879 case $ac_val in 1880 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1881 esac 1882 $as_echo "$ac_var='\''$ac_val'\''" 1883 done | sort 1884 echo 1885 1886 if test -n "$ac_subst_files"; then 1887 cat <<\_ASBOX 1888## ------------------- ## 1889## File substitutions. ## 1890## ------------------- ## 1891_ASBOX 1892 echo 1893 for ac_var in $ac_subst_files 1894 do 1895 eval ac_val=\$$ac_var 1896 case $ac_val in 1897 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1898 esac 1899 $as_echo "$ac_var='\''$ac_val'\''" 1900 done | sort 1901 echo 1902 fi 1903 1904 if test -s confdefs.h; then 1905 cat <<\_ASBOX 1906## ----------- ## 1907## confdefs.h. ## 1908## ----------- ## 1909_ASBOX 1910 echo 1911 cat confdefs.h 1912 echo 1913 fi 1914 test "$ac_signal" != 0 && 1915 $as_echo "$as_me: caught signal $ac_signal" 1916 $as_echo "$as_me: exit $exit_status" 1917 } >&5 1918 rm -f core *.core core.conftest.* && 1919 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1920 exit $exit_status 1921' 0 1922for ac_signal in 1 2 13 15; do 1923 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1924done 1925ac_signal=0 1926 1927# confdefs.h avoids OS command line length limits that DEFS can exceed. 1928rm -f -r conftest* confdefs.h 1929 1930# Predefined preprocessor variables. 1931 1932cat >>confdefs.h <<_ACEOF 1933#define PACKAGE_NAME "$PACKAGE_NAME" 1934_ACEOF 1935 1936 1937cat >>confdefs.h <<_ACEOF 1938#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1939_ACEOF 1940 1941 1942cat >>confdefs.h <<_ACEOF 1943#define PACKAGE_VERSION "$PACKAGE_VERSION" 1944_ACEOF 1945 1946 1947cat >>confdefs.h <<_ACEOF 1948#define PACKAGE_STRING "$PACKAGE_STRING" 1949_ACEOF 1950 1951 1952cat >>confdefs.h <<_ACEOF 1953#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1954_ACEOF 1955 1956 1957# Let the site file select an alternate cache file if it wants to. 1958# Prefer an explicitly selected file to automatically selected ones. 1959ac_site_file1=NONE 1960ac_site_file2=NONE 1961if test -n "$CONFIG_SITE"; then 1962 ac_site_file1=$CONFIG_SITE 1963elif test "x$prefix" != xNONE; then 1964 ac_site_file1=$prefix/share/config.site 1965 ac_site_file2=$prefix/etc/config.site 1966else 1967 ac_site_file1=$ac_default_prefix/share/config.site 1968 ac_site_file2=$ac_default_prefix/etc/config.site 1969fi 1970for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1971do 1972 test "x$ac_site_file" = xNONE && continue 1973 if test -r "$ac_site_file"; then 1974 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1975$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1976 sed 's/^/| /' "$ac_site_file" >&5 1977 . "$ac_site_file" 1978 fi 1979done 1980 1981if test -r "$cache_file"; then 1982 # Some versions of bash will fail to source /dev/null (special 1983 # files actually), so we avoid doing that. 1984 if test -f "$cache_file"; then 1985 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1986$as_echo "$as_me: loading cache $cache_file" >&6;} 1987 case $cache_file in 1988 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1989 *) . "./$cache_file";; 1990 esac 1991 fi 1992else 1993 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1994$as_echo "$as_me: creating cache $cache_file" >&6;} 1995 >$cache_file 1996fi 1997 1998# Check that the precious variables saved in the cache have kept the same 1999# value. 2000ac_cache_corrupted=false 2001for ac_var in $ac_precious_vars; do 2002 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2003 eval ac_new_set=\$ac_env_${ac_var}_set 2004 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2005 eval ac_new_val=\$ac_env_${ac_var}_value 2006 case $ac_old_set,$ac_new_set in 2007 set,) 2008 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2009$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2010 ac_cache_corrupted=: ;; 2011 ,set) 2012 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 2013$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2014 ac_cache_corrupted=: ;; 2015 ,);; 2016 *) 2017 if test "x$ac_old_val" != "x$ac_new_val"; then 2018 # differences in whitespace do not lead to failure. 2019 ac_old_val_w=`echo x $ac_old_val` 2020 ac_new_val_w=`echo x $ac_new_val` 2021 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2022 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 2023$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2024 ac_cache_corrupted=: 2025 else 2026 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2027$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2028 eval $ac_var=\$ac_old_val 2029 fi 2030 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 2031$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2032 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 2033$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2034 fi;; 2035 esac 2036 # Pass precious variables to config.status. 2037 if test "$ac_new_set" = set; then 2038 case $ac_new_val in 2039 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2040 *) ac_arg=$ac_var=$ac_new_val ;; 2041 esac 2042 case " $ac_configure_args " in 2043 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2044 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2045 esac 2046 fi 2047done 2048if $ac_cache_corrupted; then 2049 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2050$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2051 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2052$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2053 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2054$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2055 { (exit 1); exit 1; }; } 2056fi 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082ac_ext=c 2083ac_cpp='$CPP $CPPFLAGS' 2084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2086ac_compiler_gnu=$ac_cv_c_compiler_gnu 2087 2088 2089 2090# Require xorg-macros version 1.2 or newer for XORG_CWARNFLAGS and 2091# XORG_CHANGELOG macros 2092 2093 2094 XORG_MACROS_needed_version=1.2.1 2095 XORG_MACROS_needed_major=`echo $XORG_MACROS_needed_version | sed 's/\..*$//'` 2096 XORG_MACROS_needed_minor=`echo $XORG_MACROS_needed_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'` 2097 { $as_echo "$as_me:$LINENO: checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}" >&5 2098$as_echo_n "checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}... " >&6; } 2099 XORG_MACROS_version=1.2.1 2100 XORG_MACROS_major=`echo $XORG_MACROS_version | sed 's/\..*$//'` 2101 XORG_MACROS_minor=`echo $XORG_MACROS_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'` 2102 if test $XORG_MACROS_major -ne $XORG_MACROS_needed_major ; then 2103 { { $as_echo "$as_me:$LINENO: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x" >&5 2104$as_echo "$as_me: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x" >&2;} 2105 { (exit 1); exit 1; }; } 2106 fi 2107 if test $XORG_MACROS_minor -lt $XORG_MACROS_needed_minor ; then 2108 { { $as_echo "$as_me:$LINENO: error: configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer" >&5 2109$as_echo "$as_me: error: configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer" >&2;} 2110 { (exit 1); exit 1; }; } 2111 fi 2112 { $as_echo "$as_me:$LINENO: result: yes, $XORG_MACROS_version" >&5 2113$as_echo "yes, $XORG_MACROS_version" >&6; } 2114 2115 2116 2117ac_config_headers="$ac_config_headers config.h" 2118 2119ac_aux_dir= 2120for ac_dir in . "$srcdir"/.; do 2121 if test -f "$ac_dir/install-sh"; then 2122 ac_aux_dir=$ac_dir 2123 ac_install_sh="$ac_aux_dir/install-sh -c" 2124 break 2125 elif test -f "$ac_dir/install.sh"; then 2126 ac_aux_dir=$ac_dir 2127 ac_install_sh="$ac_aux_dir/install.sh -c" 2128 break 2129 elif test -f "$ac_dir/shtool"; then 2130 ac_aux_dir=$ac_dir 2131 ac_install_sh="$ac_aux_dir/shtool install -c" 2132 break 2133 fi 2134done 2135if test -z "$ac_aux_dir"; then 2136 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5 2137$as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;} 2138 { (exit 1); exit 1; }; } 2139fi 2140 2141# These three variables are undocumented and unsupported, 2142# and are intended to be withdrawn in a future Autoconf release. 2143# They can cause serious problems if a builder's source tree is in a directory 2144# whose full name contains unusual characters. 2145ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2146ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2147ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2148 2149 2150 2151am__api_version='1.10' 2152 2153# Find a good install program. We prefer a C program (faster), 2154# so one script is as good as another. But avoid the broken or 2155# incompatible versions: 2156# SysV /etc/install, /usr/sbin/install 2157# SunOS /usr/etc/install 2158# IRIX /sbin/install 2159# AIX /bin/install 2160# AmigaOS /C/install, which installs bootblocks on floppy discs 2161# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2162# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2163# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2164# OS/2's system install, which has a completely different semantic 2165# ./install, which can be erroneously created by make from ./install.sh. 2166# Reject install programs that cannot install multiple files. 2167{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2168$as_echo_n "checking for a BSD-compatible install... " >&6; } 2169if test -z "$INSTALL"; then 2170if test "${ac_cv_path_install+set}" = set; then 2171 $as_echo_n "(cached) " >&6 2172else 2173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2174for as_dir in $PATH 2175do 2176 IFS=$as_save_IFS 2177 test -z "$as_dir" && as_dir=. 2178 # Account for people who put trailing slashes in PATH elements. 2179case $as_dir/ in 2180 ./ | .// | /cC/* | \ 2181 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2182 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2183 /usr/ucb/* ) ;; 2184 *) 2185 # OSF1 and SCO ODT 3.0 have their own names for install. 2186 # Don't use installbsd from OSF since it installs stuff as root 2187 # by default. 2188 for ac_prog in ginstall scoinst install; do 2189 for ac_exec_ext in '' $ac_executable_extensions; do 2190 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2191 if test $ac_prog = install && 2192 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2193 # AIX install. It has an incompatible calling convention. 2194 : 2195 elif test $ac_prog = install && 2196 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2197 # program-specific install script used by HP pwplus--don't use. 2198 : 2199 else 2200 rm -rf conftest.one conftest.two conftest.dir 2201 echo one > conftest.one 2202 echo two > conftest.two 2203 mkdir conftest.dir 2204 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2205 test -s conftest.one && test -s conftest.two && 2206 test -s conftest.dir/conftest.one && 2207 test -s conftest.dir/conftest.two 2208 then 2209 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2210 break 3 2211 fi 2212 fi 2213 fi 2214 done 2215 done 2216 ;; 2217esac 2218 2219done 2220IFS=$as_save_IFS 2221 2222rm -rf conftest.one conftest.two conftest.dir 2223 2224fi 2225 if test "${ac_cv_path_install+set}" = set; then 2226 INSTALL=$ac_cv_path_install 2227 else 2228 # As a last resort, use the slow shell script. Don't cache a 2229 # value for INSTALL within a source directory, because that will 2230 # break other packages using the cache if that directory is 2231 # removed, or if the value is a relative name. 2232 INSTALL=$ac_install_sh 2233 fi 2234fi 2235{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2236$as_echo "$INSTALL" >&6; } 2237 2238# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2239# It thinks the first close brace ends the variable substitution. 2240test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2241 2242test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2243 2244test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2245 2246{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2247$as_echo_n "checking whether build environment is sane... " >&6; } 2248# Just in case 2249sleep 1 2250echo timestamp > conftest.file 2251# Do `set' in a subshell so we don't clobber the current shell's 2252# arguments. Must try -L first in case configure is actually a 2253# symlink; some systems play weird games with the mod time of symlinks 2254# (eg FreeBSD returns the mod time of the symlink's containing 2255# directory). 2256if ( 2257 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2258 if test "$*" = "X"; then 2259 # -L didn't work. 2260 set X `ls -t $srcdir/configure conftest.file` 2261 fi 2262 rm -f conftest.file 2263 if test "$*" != "X $srcdir/configure conftest.file" \ 2264 && test "$*" != "X conftest.file $srcdir/configure"; then 2265 2266 # If neither matched, then we have a broken ls. This can happen 2267 # if, for instance, CONFIG_SHELL is bash and it inherits a 2268 # broken ls alias from the environment. This has actually 2269 # happened. Such a system could not be considered "sane". 2270 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2271alias in your environment" >&5 2272$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2273alias in your environment" >&2;} 2274 { (exit 1); exit 1; }; } 2275 fi 2276 2277 test "$2" = conftest.file 2278 ) 2279then 2280 # Ok. 2281 : 2282else 2283 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2284Check your system clock" >&5 2285$as_echo "$as_me: error: newly created file is older than distributed files! 2286Check your system clock" >&2;} 2287 { (exit 1); exit 1; }; } 2288fi 2289{ $as_echo "$as_me:$LINENO: result: yes" >&5 2290$as_echo "yes" >&6; } 2291test "$program_prefix" != NONE && 2292 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2293# Use a double $ so make ignores it. 2294test "$program_suffix" != NONE && 2295 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2296# Double any \ or $. 2297# By default was `s,x,x', remove it if useless. 2298ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2299program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2300 2301# expand $ac_aux_dir to an absolute path 2302am_aux_dir=`cd $ac_aux_dir && pwd` 2303 2304test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2305# Use eval to expand $SHELL 2306if eval "$MISSING --run true"; then 2307 am_missing_run="$MISSING --run " 2308else 2309 am_missing_run= 2310 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2311$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2312fi 2313 2314{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2315$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2316if test -z "$MKDIR_P"; then 2317 if test "${ac_cv_path_mkdir+set}" = set; then 2318 $as_echo_n "(cached) " >&6 2319else 2320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2321for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2322do 2323 IFS=$as_save_IFS 2324 test -z "$as_dir" && as_dir=. 2325 for ac_prog in mkdir gmkdir; do 2326 for ac_exec_ext in '' $ac_executable_extensions; do 2327 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2328 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2329 'mkdir (GNU coreutils) '* | \ 2330 'mkdir (coreutils) '* | \ 2331 'mkdir (fileutils) '4.1*) 2332 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2333 break 3;; 2334 esac 2335 done 2336 done 2337done 2338IFS=$as_save_IFS 2339 2340fi 2341 2342 if test "${ac_cv_path_mkdir+set}" = set; then 2343 MKDIR_P="$ac_cv_path_mkdir -p" 2344 else 2345 # As a last resort, use the slow shell script. Don't cache a 2346 # value for MKDIR_P within a source directory, because that will 2347 # break other packages using the cache if that directory is 2348 # removed, or if the value is a relative name. 2349 test -d ./--version && rmdir ./--version 2350 MKDIR_P="$ac_install_sh -d" 2351 fi 2352fi 2353{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2354$as_echo "$MKDIR_P" >&6; } 2355 2356mkdir_p="$MKDIR_P" 2357case $mkdir_p in 2358 [\\/$]* | ?:[\\/]*) ;; 2359 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2360esac 2361 2362for ac_prog in gawk mawk nawk awk 2363do 2364 # Extract the first word of "$ac_prog", so it can be a program name with args. 2365set dummy $ac_prog; ac_word=$2 2366{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2367$as_echo_n "checking for $ac_word... " >&6; } 2368if test "${ac_cv_prog_AWK+set}" = set; then 2369 $as_echo_n "(cached) " >&6 2370else 2371 if test -n "$AWK"; then 2372 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2373else 2374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2375for as_dir in $PATH 2376do 2377 IFS=$as_save_IFS 2378 test -z "$as_dir" && as_dir=. 2379 for ac_exec_ext in '' $ac_executable_extensions; do 2380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2381 ac_cv_prog_AWK="$ac_prog" 2382 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2383 break 2 2384 fi 2385done 2386done 2387IFS=$as_save_IFS 2388 2389fi 2390fi 2391AWK=$ac_cv_prog_AWK 2392if test -n "$AWK"; then 2393 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2394$as_echo "$AWK" >&6; } 2395else 2396 { $as_echo "$as_me:$LINENO: result: no" >&5 2397$as_echo "no" >&6; } 2398fi 2399 2400 2401 test -n "$AWK" && break 2402done 2403 2404{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2405$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2406set x ${MAKE-make} 2407ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2408if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2409 $as_echo_n "(cached) " >&6 2410else 2411 cat >conftest.make <<\_ACEOF 2412SHELL = /bin/sh 2413all: 2414 @echo '@@@%%%=$(MAKE)=@@@%%%' 2415_ACEOF 2416# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2417case `${MAKE-make} -f conftest.make 2>/dev/null` in 2418 *@@@%%%=?*=@@@%%%*) 2419 eval ac_cv_prog_make_${ac_make}_set=yes;; 2420 *) 2421 eval ac_cv_prog_make_${ac_make}_set=no;; 2422esac 2423rm -f conftest.make 2424fi 2425if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2426 { $as_echo "$as_me:$LINENO: result: yes" >&5 2427$as_echo "yes" >&6; } 2428 SET_MAKE= 2429else 2430 { $as_echo "$as_me:$LINENO: result: no" >&5 2431$as_echo "no" >&6; } 2432 SET_MAKE="MAKE=${MAKE-make}" 2433fi 2434 2435rm -rf .tst 2>/dev/null 2436mkdir .tst 2>/dev/null 2437if test -d .tst; then 2438 am__leading_dot=. 2439else 2440 am__leading_dot=_ 2441fi 2442rmdir .tst 2>/dev/null 2443 2444if test "`cd $srcdir && pwd`" != "`pwd`"; then 2445 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2446 # is not polluted with repeated "-I." 2447 am__isrc=' -I$(srcdir)' 2448 # test to see if srcdir already configured 2449 if test -f $srcdir/config.status; then 2450 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2451$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2452 { (exit 1); exit 1; }; } 2453 fi 2454fi 2455 2456# test whether we have cygpath 2457if test -z "$CYGPATH_W"; then 2458 if (cygpath --version) >/dev/null 2>/dev/null; then 2459 CYGPATH_W='cygpath -w' 2460 else 2461 CYGPATH_W=echo 2462 fi 2463fi 2464 2465 2466# Define the identity of the package. 2467 PACKAGE='xf86-video-siliconmotion' 2468 VERSION='1.7.1' 2469 2470 2471cat >>confdefs.h <<_ACEOF 2472#define PACKAGE "$PACKAGE" 2473_ACEOF 2474 2475 2476cat >>confdefs.h <<_ACEOF 2477#define VERSION "$VERSION" 2478_ACEOF 2479 2480# Some tools Automake needs. 2481 2482ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2483 2484 2485AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2486 2487 2488AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2489 2490 2491AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2492 2493 2494MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2495 2496install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2497 2498# Installed binaries are usually stripped using `strip' when the user 2499# run `make install-strip'. However `strip' might not be the right 2500# tool to use in cross-compilation environments, therefore Automake 2501# will honor the `STRIP' environment variable to overrule this program. 2502if test "$cross_compiling" != no; then 2503 if test -n "$ac_tool_prefix"; then 2504 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2505set dummy ${ac_tool_prefix}strip; ac_word=$2 2506{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2507$as_echo_n "checking for $ac_word... " >&6; } 2508if test "${ac_cv_prog_STRIP+set}" = set; then 2509 $as_echo_n "(cached) " >&6 2510else 2511 if test -n "$STRIP"; then 2512 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2513else 2514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2515for as_dir in $PATH 2516do 2517 IFS=$as_save_IFS 2518 test -z "$as_dir" && as_dir=. 2519 for ac_exec_ext in '' $ac_executable_extensions; do 2520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2521 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2522 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2523 break 2 2524 fi 2525done 2526done 2527IFS=$as_save_IFS 2528 2529fi 2530fi 2531STRIP=$ac_cv_prog_STRIP 2532if test -n "$STRIP"; then 2533 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2534$as_echo "$STRIP" >&6; } 2535else 2536 { $as_echo "$as_me:$LINENO: result: no" >&5 2537$as_echo "no" >&6; } 2538fi 2539 2540 2541fi 2542if test -z "$ac_cv_prog_STRIP"; then 2543 ac_ct_STRIP=$STRIP 2544 # Extract the first word of "strip", so it can be a program name with args. 2545set dummy strip; ac_word=$2 2546{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2547$as_echo_n "checking for $ac_word... " >&6; } 2548if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2549 $as_echo_n "(cached) " >&6 2550else 2551 if test -n "$ac_ct_STRIP"; then 2552 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2553else 2554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2555for as_dir in $PATH 2556do 2557 IFS=$as_save_IFS 2558 test -z "$as_dir" && as_dir=. 2559 for ac_exec_ext in '' $ac_executable_extensions; do 2560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2561 ac_cv_prog_ac_ct_STRIP="strip" 2562 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2563 break 2 2564 fi 2565done 2566done 2567IFS=$as_save_IFS 2568 2569fi 2570fi 2571ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2572if test -n "$ac_ct_STRIP"; then 2573 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2574$as_echo "$ac_ct_STRIP" >&6; } 2575else 2576 { $as_echo "$as_me:$LINENO: result: no" >&5 2577$as_echo "no" >&6; } 2578fi 2579 2580 if test "x$ac_ct_STRIP" = x; then 2581 STRIP=":" 2582 else 2583 case $cross_compiling:$ac_tool_warned in 2584yes:) 2585{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2586$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2587ac_tool_warned=yes ;; 2588esac 2589 STRIP=$ac_ct_STRIP 2590 fi 2591else 2592 STRIP="$ac_cv_prog_STRIP" 2593fi 2594 2595fi 2596INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2597 2598# We need awk for the "check" target. The system "awk" is bad on 2599# some platforms. 2600# Always define AMTAR for backward compatibility. 2601 2602AMTAR=${AMTAR-"${am_missing_run}tar"} 2603 2604am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2605 2606 2607 2608 2609 2610 2611{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2612$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2613 # Check whether --enable-maintainer-mode was given. 2614if test "${enable_maintainer_mode+set}" = set; then 2615 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2616else 2617 USE_MAINTAINER_MODE=no 2618fi 2619 2620 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2621$as_echo "$USE_MAINTAINER_MODE" >&6; } 2622 if test $USE_MAINTAINER_MODE = yes; then 2623 MAINTAINER_MODE_TRUE= 2624 MAINTAINER_MODE_FALSE='#' 2625else 2626 MAINTAINER_MODE_TRUE='#' 2627 MAINTAINER_MODE_FALSE= 2628fi 2629 2630 MAINT=$MAINTAINER_MODE_TRUE 2631 2632 2633 2634# Checks for programs. 2635# Check whether --enable-static was given. 2636if test "${enable_static+set}" = set; then 2637 enableval=$enable_static; p=${PACKAGE-default} 2638 case $enableval in 2639 yes) enable_static=yes ;; 2640 no) enable_static=no ;; 2641 *) 2642 enable_static=no 2643 # Look at the argument we got. We use all the common list separators. 2644 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2645 for pkg in $enableval; do 2646 IFS="$lt_save_ifs" 2647 if test "X$pkg" = "X$p"; then 2648 enable_static=yes 2649 fi 2650 done 2651 IFS="$lt_save_ifs" 2652 ;; 2653 esac 2654else 2655 enable_static=no 2656fi 2657 2658 2659 2660# Check whether --enable-shared was given. 2661if test "${enable_shared+set}" = set; then 2662 enableval=$enable_shared; p=${PACKAGE-default} 2663 case $enableval in 2664 yes) enable_shared=yes ;; 2665 no) enable_shared=no ;; 2666 *) 2667 enable_shared=no 2668 # Look at the argument we got. We use all the common list separators. 2669 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2670 for pkg in $enableval; do 2671 IFS="$lt_save_ifs" 2672 if test "X$pkg" = "X$p"; then 2673 enable_shared=yes 2674 fi 2675 done 2676 IFS="$lt_save_ifs" 2677 ;; 2678 esac 2679else 2680 enable_shared=yes 2681fi 2682 2683 2684# Check whether --enable-fast-install was given. 2685if test "${enable_fast_install+set}" = set; then 2686 enableval=$enable_fast_install; p=${PACKAGE-default} 2687 case $enableval in 2688 yes) enable_fast_install=yes ;; 2689 no) enable_fast_install=no ;; 2690 *) 2691 enable_fast_install=no 2692 # Look at the argument we got. We use all the common list separators. 2693 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2694 for pkg in $enableval; do 2695 IFS="$lt_save_ifs" 2696 if test "X$pkg" = "X$p"; then 2697 enable_fast_install=yes 2698 fi 2699 done 2700 IFS="$lt_save_ifs" 2701 ;; 2702 esac 2703else 2704 enable_fast_install=yes 2705fi 2706 2707 2708# Make sure we can run config.sub. 2709$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2710 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2711$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2712 { (exit 1); exit 1; }; } 2713 2714{ $as_echo "$as_me:$LINENO: checking build system type" >&5 2715$as_echo_n "checking build system type... " >&6; } 2716if test "${ac_cv_build+set}" = set; then 2717 $as_echo_n "(cached) " >&6 2718else 2719 ac_build_alias=$build_alias 2720test "x$ac_build_alias" = x && 2721 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2722test "x$ac_build_alias" = x && 2723 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2724$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2725 { (exit 1); exit 1; }; } 2726ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2727 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2728$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2729 { (exit 1); exit 1; }; } 2730 2731fi 2732{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2733$as_echo "$ac_cv_build" >&6; } 2734case $ac_cv_build in 2735*-*-*) ;; 2736*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2737$as_echo "$as_me: error: invalid value of canonical build" >&2;} 2738 { (exit 1); exit 1; }; };; 2739esac 2740build=$ac_cv_build 2741ac_save_IFS=$IFS; IFS='-' 2742set x $ac_cv_build 2743shift 2744build_cpu=$1 2745build_vendor=$2 2746shift; shift 2747# Remember, the first character of IFS is used to create $*, 2748# except with old shells: 2749build_os=$* 2750IFS=$ac_save_IFS 2751case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2752 2753 2754{ $as_echo "$as_me:$LINENO: checking host system type" >&5 2755$as_echo_n "checking host system type... " >&6; } 2756if test "${ac_cv_host+set}" = set; then 2757 $as_echo_n "(cached) " >&6 2758else 2759 if test "x$host_alias" = x; then 2760 ac_cv_host=$ac_cv_build 2761else 2762 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2763 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2764$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2765 { (exit 1); exit 1; }; } 2766fi 2767 2768fi 2769{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2770$as_echo "$ac_cv_host" >&6; } 2771case $ac_cv_host in 2772*-*-*) ;; 2773*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2774$as_echo "$as_me: error: invalid value of canonical host" >&2;} 2775 { (exit 1); exit 1; }; };; 2776esac 2777host=$ac_cv_host 2778ac_save_IFS=$IFS; IFS='-' 2779set x $ac_cv_host 2780shift 2781host_cpu=$1 2782host_vendor=$2 2783shift; shift 2784# Remember, the first character of IFS is used to create $*, 2785# except with old shells: 2786host_os=$* 2787IFS=$ac_save_IFS 2788case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2789 2790 2791DEPDIR="${am__leading_dot}deps" 2792 2793ac_config_commands="$ac_config_commands depfiles" 2794 2795 2796am_make=${MAKE-make} 2797cat > confinc << 'END' 2798am__doit: 2799 @echo done 2800.PHONY: am__doit 2801END 2802# If we don't find an include directive, just comment out the code. 2803{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2804$as_echo_n "checking for style of include used by $am_make... " >&6; } 2805am__include="#" 2806am__quote= 2807_am_result=none 2808# First try GNU make style include. 2809echo "include confinc" > confmf 2810# We grep out `Entering directory' and `Leaving directory' 2811# messages which can occur if `w' ends up in MAKEFLAGS. 2812# In particular we don't look at `^make:' because GNU make might 2813# be invoked under some other name (usually "gmake"), in which 2814# case it prints its new name instead of `make'. 2815if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2816 am__include=include 2817 am__quote= 2818 _am_result=GNU 2819fi 2820# Now try BSD make style include. 2821if test "$am__include" = "#"; then 2822 echo '.include "confinc"' > confmf 2823 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2824 am__include=.include 2825 am__quote="\"" 2826 _am_result=BSD 2827 fi 2828fi 2829 2830 2831{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 2832$as_echo "$_am_result" >&6; } 2833rm -f confinc confmf 2834 2835# Check whether --enable-dependency-tracking was given. 2836if test "${enable_dependency_tracking+set}" = set; then 2837 enableval=$enable_dependency_tracking; 2838fi 2839 2840if test "x$enable_dependency_tracking" != xno; then 2841 am_depcomp="$ac_aux_dir/depcomp" 2842 AMDEPBACKSLASH='\' 2843fi 2844 if test "x$enable_dependency_tracking" != xno; then 2845 AMDEP_TRUE= 2846 AMDEP_FALSE='#' 2847else 2848 AMDEP_TRUE='#' 2849 AMDEP_FALSE= 2850fi 2851 2852 2853ac_ext=c 2854ac_cpp='$CPP $CPPFLAGS' 2855ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2856ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2857ac_compiler_gnu=$ac_cv_c_compiler_gnu 2858if test -n "$ac_tool_prefix"; then 2859 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2860set dummy ${ac_tool_prefix}gcc; ac_word=$2 2861{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2862$as_echo_n "checking for $ac_word... " >&6; } 2863if test "${ac_cv_prog_CC+set}" = set; then 2864 $as_echo_n "(cached) " >&6 2865else 2866 if test -n "$CC"; then 2867 ac_cv_prog_CC="$CC" # Let the user override the test. 2868else 2869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2870for as_dir in $PATH 2871do 2872 IFS=$as_save_IFS 2873 test -z "$as_dir" && as_dir=. 2874 for ac_exec_ext in '' $ac_executable_extensions; do 2875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2876 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2877 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2878 break 2 2879 fi 2880done 2881done 2882IFS=$as_save_IFS 2883 2884fi 2885fi 2886CC=$ac_cv_prog_CC 2887if test -n "$CC"; then 2888 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2889$as_echo "$CC" >&6; } 2890else 2891 { $as_echo "$as_me:$LINENO: result: no" >&5 2892$as_echo "no" >&6; } 2893fi 2894 2895 2896fi 2897if test -z "$ac_cv_prog_CC"; then 2898 ac_ct_CC=$CC 2899 # Extract the first word of "gcc", so it can be a program name with args. 2900set dummy gcc; ac_word=$2 2901{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2902$as_echo_n "checking for $ac_word... " >&6; } 2903if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2904 $as_echo_n "(cached) " >&6 2905else 2906 if test -n "$ac_ct_CC"; then 2907 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2908else 2909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2910for as_dir in $PATH 2911do 2912 IFS=$as_save_IFS 2913 test -z "$as_dir" && as_dir=. 2914 for ac_exec_ext in '' $ac_executable_extensions; do 2915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2916 ac_cv_prog_ac_ct_CC="gcc" 2917 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2918 break 2 2919 fi 2920done 2921done 2922IFS=$as_save_IFS 2923 2924fi 2925fi 2926ac_ct_CC=$ac_cv_prog_ac_ct_CC 2927if test -n "$ac_ct_CC"; then 2928 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2929$as_echo "$ac_ct_CC" >&6; } 2930else 2931 { $as_echo "$as_me:$LINENO: result: no" >&5 2932$as_echo "no" >&6; } 2933fi 2934 2935 if test "x$ac_ct_CC" = x; then 2936 CC="" 2937 else 2938 case $cross_compiling:$ac_tool_warned in 2939yes:) 2940{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2941$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2942ac_tool_warned=yes ;; 2943esac 2944 CC=$ac_ct_CC 2945 fi 2946else 2947 CC="$ac_cv_prog_CC" 2948fi 2949 2950if test -z "$CC"; then 2951 if test -n "$ac_tool_prefix"; then 2952 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2953set dummy ${ac_tool_prefix}cc; ac_word=$2 2954{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2955$as_echo_n "checking for $ac_word... " >&6; } 2956if test "${ac_cv_prog_CC+set}" = set; then 2957 $as_echo_n "(cached) " >&6 2958else 2959 if test -n "$CC"; then 2960 ac_cv_prog_CC="$CC" # Let the user override the test. 2961else 2962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2963for as_dir in $PATH 2964do 2965 IFS=$as_save_IFS 2966 test -z "$as_dir" && as_dir=. 2967 for ac_exec_ext in '' $ac_executable_extensions; do 2968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2969 ac_cv_prog_CC="${ac_tool_prefix}cc" 2970 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2971 break 2 2972 fi 2973done 2974done 2975IFS=$as_save_IFS 2976 2977fi 2978fi 2979CC=$ac_cv_prog_CC 2980if test -n "$CC"; then 2981 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2982$as_echo "$CC" >&6; } 2983else 2984 { $as_echo "$as_me:$LINENO: result: no" >&5 2985$as_echo "no" >&6; } 2986fi 2987 2988 2989 fi 2990fi 2991if test -z "$CC"; then 2992 # Extract the first word of "cc", so it can be a program name with args. 2993set dummy cc; ac_word=$2 2994{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2995$as_echo_n "checking for $ac_word... " >&6; } 2996if test "${ac_cv_prog_CC+set}" = set; then 2997 $as_echo_n "(cached) " >&6 2998else 2999 if test -n "$CC"; then 3000 ac_cv_prog_CC="$CC" # Let the user override the test. 3001else 3002 ac_prog_rejected=no 3003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3004for as_dir in $PATH 3005do 3006 IFS=$as_save_IFS 3007 test -z "$as_dir" && as_dir=. 3008 for ac_exec_ext in '' $ac_executable_extensions; do 3009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3010 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3011 ac_prog_rejected=yes 3012 continue 3013 fi 3014 ac_cv_prog_CC="cc" 3015 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3016 break 2 3017 fi 3018done 3019done 3020IFS=$as_save_IFS 3021 3022if test $ac_prog_rejected = yes; then 3023 # We found a bogon in the path, so make sure we never use it. 3024 set dummy $ac_cv_prog_CC 3025 shift 3026 if test $# != 0; then 3027 # We chose a different compiler from the bogus one. 3028 # However, it has the same basename, so the bogon will be chosen 3029 # first if we set CC to just the basename; use the full file name. 3030 shift 3031 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3032 fi 3033fi 3034fi 3035fi 3036CC=$ac_cv_prog_CC 3037if test -n "$CC"; then 3038 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3039$as_echo "$CC" >&6; } 3040else 3041 { $as_echo "$as_me:$LINENO: result: no" >&5 3042$as_echo "no" >&6; } 3043fi 3044 3045 3046fi 3047if test -z "$CC"; then 3048 if test -n "$ac_tool_prefix"; then 3049 for ac_prog in cl.exe 3050 do 3051 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3052set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3053{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3054$as_echo_n "checking for $ac_word... " >&6; } 3055if test "${ac_cv_prog_CC+set}" = set; then 3056 $as_echo_n "(cached) " >&6 3057else 3058 if test -n "$CC"; then 3059 ac_cv_prog_CC="$CC" # Let the user override the test. 3060else 3061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3062for as_dir in $PATH 3063do 3064 IFS=$as_save_IFS 3065 test -z "$as_dir" && as_dir=. 3066 for ac_exec_ext in '' $ac_executable_extensions; do 3067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3068 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3069 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3070 break 2 3071 fi 3072done 3073done 3074IFS=$as_save_IFS 3075 3076fi 3077fi 3078CC=$ac_cv_prog_CC 3079if test -n "$CC"; then 3080 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3081$as_echo "$CC" >&6; } 3082else 3083 { $as_echo "$as_me:$LINENO: result: no" >&5 3084$as_echo "no" >&6; } 3085fi 3086 3087 3088 test -n "$CC" && break 3089 done 3090fi 3091if test -z "$CC"; then 3092 ac_ct_CC=$CC 3093 for ac_prog in cl.exe 3094do 3095 # Extract the first word of "$ac_prog", so it can be a program name with args. 3096set dummy $ac_prog; ac_word=$2 3097{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3098$as_echo_n "checking for $ac_word... " >&6; } 3099if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3100 $as_echo_n "(cached) " >&6 3101else 3102 if test -n "$ac_ct_CC"; then 3103 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3104else 3105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3106for as_dir in $PATH 3107do 3108 IFS=$as_save_IFS 3109 test -z "$as_dir" && as_dir=. 3110 for ac_exec_ext in '' $ac_executable_extensions; do 3111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3112 ac_cv_prog_ac_ct_CC="$ac_prog" 3113 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3114 break 2 3115 fi 3116done 3117done 3118IFS=$as_save_IFS 3119 3120fi 3121fi 3122ac_ct_CC=$ac_cv_prog_ac_ct_CC 3123if test -n "$ac_ct_CC"; then 3124 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3125$as_echo "$ac_ct_CC" >&6; } 3126else 3127 { $as_echo "$as_me:$LINENO: result: no" >&5 3128$as_echo "no" >&6; } 3129fi 3130 3131 3132 test -n "$ac_ct_CC" && break 3133done 3134 3135 if test "x$ac_ct_CC" = x; then 3136 CC="" 3137 else 3138 case $cross_compiling:$ac_tool_warned in 3139yes:) 3140{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 3141$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3142ac_tool_warned=yes ;; 3143esac 3144 CC=$ac_ct_CC 3145 fi 3146fi 3147 3148fi 3149 3150 3151test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3152$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3153{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3154See \`config.log' for more details." >&5 3155$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 3156See \`config.log' for more details." >&2;} 3157 { (exit 1); exit 1; }; }; } 3158 3159# Provide some information about the compiler. 3160$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 3161set X $ac_compile 3162ac_compiler=$2 3163{ (ac_try="$ac_compiler --version >&5" 3164case "(($ac_try" in 3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3166 *) ac_try_echo=$ac_try;; 3167esac 3168eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3169$as_echo "$ac_try_echo") >&5 3170 (eval "$ac_compiler --version >&5") 2>&5 3171 ac_status=$? 3172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3173 (exit $ac_status); } 3174{ (ac_try="$ac_compiler -v >&5" 3175case "(($ac_try" in 3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3177 *) ac_try_echo=$ac_try;; 3178esac 3179eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3180$as_echo "$ac_try_echo") >&5 3181 (eval "$ac_compiler -v >&5") 2>&5 3182 ac_status=$? 3183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3184 (exit $ac_status); } 3185{ (ac_try="$ac_compiler -V >&5" 3186case "(($ac_try" in 3187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3188 *) ac_try_echo=$ac_try;; 3189esac 3190eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3191$as_echo "$ac_try_echo") >&5 3192 (eval "$ac_compiler -V >&5") 2>&5 3193 ac_status=$? 3194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3195 (exit $ac_status); } 3196 3197cat >conftest.$ac_ext <<_ACEOF 3198/* confdefs.h. */ 3199_ACEOF 3200cat confdefs.h >>conftest.$ac_ext 3201cat >>conftest.$ac_ext <<_ACEOF 3202/* end confdefs.h. */ 3203 3204int 3205main () 3206{ 3207 3208 ; 3209 return 0; 3210} 3211_ACEOF 3212ac_clean_files_save=$ac_clean_files 3213ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3214# Try to create an executable without -o first, disregard a.out. 3215# It will help us diagnose broken compilers, and finding out an intuition 3216# of exeext. 3217{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3218$as_echo_n "checking for C compiler default output file name... " >&6; } 3219ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3220 3221# The possible output files: 3222ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3223 3224ac_rmfiles= 3225for ac_file in $ac_files 3226do 3227 case $ac_file in 3228 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3229 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3230 esac 3231done 3232rm -f $ac_rmfiles 3233 3234if { (ac_try="$ac_link_default" 3235case "(($ac_try" in 3236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3237 *) ac_try_echo=$ac_try;; 3238esac 3239eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3240$as_echo "$ac_try_echo") >&5 3241 (eval "$ac_link_default") 2>&5 3242 ac_status=$? 3243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3244 (exit $ac_status); }; then 3245 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3246# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3247# in a Makefile. We should not override ac_cv_exeext if it was cached, 3248# so that the user can short-circuit this test for compilers unknown to 3249# Autoconf. 3250for ac_file in $ac_files '' 3251do 3252 test -f "$ac_file" || continue 3253 case $ac_file in 3254 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3255 ;; 3256 [ab].out ) 3257 # We found the default executable, but exeext='' is most 3258 # certainly right. 3259 break;; 3260 *.* ) 3261 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3262 then :; else 3263 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3264 fi 3265 # We set ac_cv_exeext here because the later test for it is not 3266 # safe: cross compilers may not add the suffix if given an `-o' 3267 # argument, so we may need to know it at that point already. 3268 # Even if this section looks crufty: it has the advantage of 3269 # actually working. 3270 break;; 3271 * ) 3272 break;; 3273 esac 3274done 3275test "$ac_cv_exeext" = no && ac_cv_exeext= 3276 3277else 3278 ac_file='' 3279fi 3280 3281{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 3282$as_echo "$ac_file" >&6; } 3283if test -z "$ac_file"; then 3284 $as_echo "$as_me: failed program was:" >&5 3285sed 's/^/| /' conftest.$ac_ext >&5 3286 3287{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3288$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3289{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 3290See \`config.log' for more details." >&5 3291$as_echo "$as_me: error: C compiler cannot create executables 3292See \`config.log' for more details." >&2;} 3293 { (exit 77); exit 77; }; }; } 3294fi 3295 3296ac_exeext=$ac_cv_exeext 3297 3298# Check that the compiler produces executables we can run. If not, either 3299# the compiler is broken, or we cross compile. 3300{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3301$as_echo_n "checking whether the C compiler works... " >&6; } 3302# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3303# If not cross compiling, check that we can run a simple program. 3304if test "$cross_compiling" != yes; then 3305 if { ac_try='./$ac_file' 3306 { (case "(($ac_try" in 3307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3308 *) ac_try_echo=$ac_try;; 3309esac 3310eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3311$as_echo "$ac_try_echo") >&5 3312 (eval "$ac_try") 2>&5 3313 ac_status=$? 3314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3315 (exit $ac_status); }; }; then 3316 cross_compiling=no 3317 else 3318 if test "$cross_compiling" = maybe; then 3319 cross_compiling=yes 3320 else 3321 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3322$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3323{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 3324If you meant to cross compile, use \`--host'. 3325See \`config.log' for more details." >&5 3326$as_echo "$as_me: error: cannot run C compiled programs. 3327If you meant to cross compile, use \`--host'. 3328See \`config.log' for more details." >&2;} 3329 { (exit 1); exit 1; }; }; } 3330 fi 3331 fi 3332fi 3333{ $as_echo "$as_me:$LINENO: result: yes" >&5 3334$as_echo "yes" >&6; } 3335 3336rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3337ac_clean_files=$ac_clean_files_save 3338# Check that the compiler produces executables we can run. If not, either 3339# the compiler is broken, or we cross compile. 3340{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3341$as_echo_n "checking whether we are cross compiling... " >&6; } 3342{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 3343$as_echo "$cross_compiling" >&6; } 3344 3345{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 3346$as_echo_n "checking for suffix of executables... " >&6; } 3347if { (ac_try="$ac_link" 3348case "(($ac_try" in 3349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3350 *) ac_try_echo=$ac_try;; 3351esac 3352eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3353$as_echo "$ac_try_echo") >&5 3354 (eval "$ac_link") 2>&5 3355 ac_status=$? 3356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3357 (exit $ac_status); }; then 3358 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3359# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3360# work properly (i.e., refer to `conftest.exe'), while it won't with 3361# `rm'. 3362for ac_file in conftest.exe conftest conftest.*; do 3363 test -f "$ac_file" || continue 3364 case $ac_file in 3365 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3366 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3367 break;; 3368 * ) break;; 3369 esac 3370done 3371else 3372 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3373$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3374{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3375See \`config.log' for more details." >&5 3376$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3377See \`config.log' for more details." >&2;} 3378 { (exit 1); exit 1; }; }; } 3379fi 3380 3381rm -f conftest$ac_cv_exeext 3382{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3383$as_echo "$ac_cv_exeext" >&6; } 3384 3385rm -f conftest.$ac_ext 3386EXEEXT=$ac_cv_exeext 3387ac_exeext=$EXEEXT 3388{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 3389$as_echo_n "checking for suffix of object files... " >&6; } 3390if test "${ac_cv_objext+set}" = set; then 3391 $as_echo_n "(cached) " >&6 3392else 3393 cat >conftest.$ac_ext <<_ACEOF 3394/* confdefs.h. */ 3395_ACEOF 3396cat confdefs.h >>conftest.$ac_ext 3397cat >>conftest.$ac_ext <<_ACEOF 3398/* end confdefs.h. */ 3399 3400int 3401main () 3402{ 3403 3404 ; 3405 return 0; 3406} 3407_ACEOF 3408rm -f conftest.o conftest.obj 3409if { (ac_try="$ac_compile" 3410case "(($ac_try" in 3411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3412 *) ac_try_echo=$ac_try;; 3413esac 3414eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3415$as_echo "$ac_try_echo") >&5 3416 (eval "$ac_compile") 2>&5 3417 ac_status=$? 3418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3419 (exit $ac_status); }; then 3420 for ac_file in conftest.o conftest.obj conftest.*; do 3421 test -f "$ac_file" || continue; 3422 case $ac_file in 3423 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3424 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3425 break;; 3426 esac 3427done 3428else 3429 $as_echo "$as_me: failed program was:" >&5 3430sed 's/^/| /' conftest.$ac_ext >&5 3431 3432{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3433$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3434{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3435See \`config.log' for more details." >&5 3436$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3437See \`config.log' for more details." >&2;} 3438 { (exit 1); exit 1; }; }; } 3439fi 3440 3441rm -f conftest.$ac_cv_objext conftest.$ac_ext 3442fi 3443{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3444$as_echo "$ac_cv_objext" >&6; } 3445OBJEXT=$ac_cv_objext 3446ac_objext=$OBJEXT 3447{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3448$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3449if test "${ac_cv_c_compiler_gnu+set}" = set; then 3450 $as_echo_n "(cached) " >&6 3451else 3452 cat >conftest.$ac_ext <<_ACEOF 3453/* confdefs.h. */ 3454_ACEOF 3455cat confdefs.h >>conftest.$ac_ext 3456cat >>conftest.$ac_ext <<_ACEOF 3457/* end confdefs.h. */ 3458 3459int 3460main () 3461{ 3462#ifndef __GNUC__ 3463 choke me 3464#endif 3465 3466 ; 3467 return 0; 3468} 3469_ACEOF 3470rm -f conftest.$ac_objext 3471if { (ac_try="$ac_compile" 3472case "(($ac_try" in 3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3474 *) ac_try_echo=$ac_try;; 3475esac 3476eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3477$as_echo "$ac_try_echo") >&5 3478 (eval "$ac_compile") 2>conftest.er1 3479 ac_status=$? 3480 grep -v '^ *+' conftest.er1 >conftest.err 3481 rm -f conftest.er1 3482 cat conftest.err >&5 3483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3484 (exit $ac_status); } && { 3485 test -z "$ac_c_werror_flag" || 3486 test ! -s conftest.err 3487 } && test -s conftest.$ac_objext; then 3488 ac_compiler_gnu=yes 3489else 3490 $as_echo "$as_me: failed program was:" >&5 3491sed 's/^/| /' conftest.$ac_ext >&5 3492 3493 ac_compiler_gnu=no 3494fi 3495 3496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3497ac_cv_c_compiler_gnu=$ac_compiler_gnu 3498 3499fi 3500{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3501$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3502if test $ac_compiler_gnu = yes; then 3503 GCC=yes 3504else 3505 GCC= 3506fi 3507ac_test_CFLAGS=${CFLAGS+set} 3508ac_save_CFLAGS=$CFLAGS 3509{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3510$as_echo_n "checking whether $CC accepts -g... " >&6; } 3511if test "${ac_cv_prog_cc_g+set}" = set; then 3512 $as_echo_n "(cached) " >&6 3513else 3514 ac_save_c_werror_flag=$ac_c_werror_flag 3515 ac_c_werror_flag=yes 3516 ac_cv_prog_cc_g=no 3517 CFLAGS="-g" 3518 cat >conftest.$ac_ext <<_ACEOF 3519/* confdefs.h. */ 3520_ACEOF 3521cat confdefs.h >>conftest.$ac_ext 3522cat >>conftest.$ac_ext <<_ACEOF 3523/* end confdefs.h. */ 3524 3525int 3526main () 3527{ 3528 3529 ; 3530 return 0; 3531} 3532_ACEOF 3533rm -f conftest.$ac_objext 3534if { (ac_try="$ac_compile" 3535case "(($ac_try" in 3536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3537 *) ac_try_echo=$ac_try;; 3538esac 3539eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3540$as_echo "$ac_try_echo") >&5 3541 (eval "$ac_compile") 2>conftest.er1 3542 ac_status=$? 3543 grep -v '^ *+' conftest.er1 >conftest.err 3544 rm -f conftest.er1 3545 cat conftest.err >&5 3546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3547 (exit $ac_status); } && { 3548 test -z "$ac_c_werror_flag" || 3549 test ! -s conftest.err 3550 } && test -s conftest.$ac_objext; then 3551 ac_cv_prog_cc_g=yes 3552else 3553 $as_echo "$as_me: failed program was:" >&5 3554sed 's/^/| /' conftest.$ac_ext >&5 3555 3556 CFLAGS="" 3557 cat >conftest.$ac_ext <<_ACEOF 3558/* confdefs.h. */ 3559_ACEOF 3560cat confdefs.h >>conftest.$ac_ext 3561cat >>conftest.$ac_ext <<_ACEOF 3562/* end confdefs.h. */ 3563 3564int 3565main () 3566{ 3567 3568 ; 3569 return 0; 3570} 3571_ACEOF 3572rm -f conftest.$ac_objext 3573if { (ac_try="$ac_compile" 3574case "(($ac_try" in 3575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3576 *) ac_try_echo=$ac_try;; 3577esac 3578eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3579$as_echo "$ac_try_echo") >&5 3580 (eval "$ac_compile") 2>conftest.er1 3581 ac_status=$? 3582 grep -v '^ *+' conftest.er1 >conftest.err 3583 rm -f conftest.er1 3584 cat conftest.err >&5 3585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3586 (exit $ac_status); } && { 3587 test -z "$ac_c_werror_flag" || 3588 test ! -s conftest.err 3589 } && test -s conftest.$ac_objext; then 3590 : 3591else 3592 $as_echo "$as_me: failed program was:" >&5 3593sed 's/^/| /' conftest.$ac_ext >&5 3594 3595 ac_c_werror_flag=$ac_save_c_werror_flag 3596 CFLAGS="-g" 3597 cat >conftest.$ac_ext <<_ACEOF 3598/* confdefs.h. */ 3599_ACEOF 3600cat confdefs.h >>conftest.$ac_ext 3601cat >>conftest.$ac_ext <<_ACEOF 3602/* end confdefs.h. */ 3603 3604int 3605main () 3606{ 3607 3608 ; 3609 return 0; 3610} 3611_ACEOF 3612rm -f conftest.$ac_objext 3613if { (ac_try="$ac_compile" 3614case "(($ac_try" in 3615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3616 *) ac_try_echo=$ac_try;; 3617esac 3618eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3619$as_echo "$ac_try_echo") >&5 3620 (eval "$ac_compile") 2>conftest.er1 3621 ac_status=$? 3622 grep -v '^ *+' conftest.er1 >conftest.err 3623 rm -f conftest.er1 3624 cat conftest.err >&5 3625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3626 (exit $ac_status); } && { 3627 test -z "$ac_c_werror_flag" || 3628 test ! -s conftest.err 3629 } && test -s conftest.$ac_objext; then 3630 ac_cv_prog_cc_g=yes 3631else 3632 $as_echo "$as_me: failed program was:" >&5 3633sed 's/^/| /' conftest.$ac_ext >&5 3634 3635 3636fi 3637 3638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3639fi 3640 3641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3642fi 3643 3644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3645 ac_c_werror_flag=$ac_save_c_werror_flag 3646fi 3647{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3648$as_echo "$ac_cv_prog_cc_g" >&6; } 3649if test "$ac_test_CFLAGS" = set; then 3650 CFLAGS=$ac_save_CFLAGS 3651elif test $ac_cv_prog_cc_g = yes; then 3652 if test "$GCC" = yes; then 3653 CFLAGS="-g -O2" 3654 else 3655 CFLAGS="-g" 3656 fi 3657else 3658 if test "$GCC" = yes; then 3659 CFLAGS="-O2" 3660 else 3661 CFLAGS= 3662 fi 3663fi 3664{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3665$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3666if test "${ac_cv_prog_cc_c89+set}" = set; then 3667 $as_echo_n "(cached) " >&6 3668else 3669 ac_cv_prog_cc_c89=no 3670ac_save_CC=$CC 3671cat >conftest.$ac_ext <<_ACEOF 3672/* confdefs.h. */ 3673_ACEOF 3674cat confdefs.h >>conftest.$ac_ext 3675cat >>conftest.$ac_ext <<_ACEOF 3676/* end confdefs.h. */ 3677#include <stdarg.h> 3678#include <stdio.h> 3679#include <sys/types.h> 3680#include <sys/stat.h> 3681/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3682struct buf { int x; }; 3683FILE * (*rcsopen) (struct buf *, struct stat *, int); 3684static char *e (p, i) 3685 char **p; 3686 int i; 3687{ 3688 return p[i]; 3689} 3690static char *f (char * (*g) (char **, int), char **p, ...) 3691{ 3692 char *s; 3693 va_list v; 3694 va_start (v,p); 3695 s = g (p, va_arg (v,int)); 3696 va_end (v); 3697 return s; 3698} 3699 3700/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3701 function prototypes and stuff, but not '\xHH' hex character constants. 3702 These don't provoke an error unfortunately, instead are silently treated 3703 as 'x'. The following induces an error, until -std is added to get 3704 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3705 array size at least. It's necessary to write '\x00'==0 to get something 3706 that's true only with -std. */ 3707int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3708 3709/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3710 inside strings and character constants. */ 3711#define FOO(x) 'x' 3712int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3713 3714int test (int i, double x); 3715struct s1 {int (*f) (int a);}; 3716struct s2 {int (*f) (double a);}; 3717int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3718int argc; 3719char **argv; 3720int 3721main () 3722{ 3723return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3724 ; 3725 return 0; 3726} 3727_ACEOF 3728for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3729 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3730do 3731 CC="$ac_save_CC $ac_arg" 3732 rm -f conftest.$ac_objext 3733if { (ac_try="$ac_compile" 3734case "(($ac_try" in 3735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3736 *) ac_try_echo=$ac_try;; 3737esac 3738eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3739$as_echo "$ac_try_echo") >&5 3740 (eval "$ac_compile") 2>conftest.er1 3741 ac_status=$? 3742 grep -v '^ *+' conftest.er1 >conftest.err 3743 rm -f conftest.er1 3744 cat conftest.err >&5 3745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3746 (exit $ac_status); } && { 3747 test -z "$ac_c_werror_flag" || 3748 test ! -s conftest.err 3749 } && test -s conftest.$ac_objext; then 3750 ac_cv_prog_cc_c89=$ac_arg 3751else 3752 $as_echo "$as_me: failed program was:" >&5 3753sed 's/^/| /' conftest.$ac_ext >&5 3754 3755 3756fi 3757 3758rm -f core conftest.err conftest.$ac_objext 3759 test "x$ac_cv_prog_cc_c89" != "xno" && break 3760done 3761rm -f conftest.$ac_ext 3762CC=$ac_save_CC 3763 3764fi 3765# AC_CACHE_VAL 3766case "x$ac_cv_prog_cc_c89" in 3767 x) 3768 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3769$as_echo "none needed" >&6; } ;; 3770 xno) 3771 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3772$as_echo "unsupported" >&6; } ;; 3773 *) 3774 CC="$CC $ac_cv_prog_cc_c89" 3775 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3776$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3777esac 3778 3779 3780ac_ext=c 3781ac_cpp='$CPP $CPPFLAGS' 3782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3784ac_compiler_gnu=$ac_cv_c_compiler_gnu 3785 3786depcc="$CC" am_compiler_list= 3787 3788{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3789$as_echo_n "checking dependency style of $depcc... " >&6; } 3790if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3791 $as_echo_n "(cached) " >&6 3792else 3793 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3794 # We make a subdir and do the tests there. Otherwise we can end up 3795 # making bogus files that we don't know about and never remove. For 3796 # instance it was reported that on HP-UX the gcc test will end up 3797 # making a dummy file named `D' -- because `-MD' means `put the output 3798 # in D'. 3799 mkdir conftest.dir 3800 # Copy depcomp to subdir because otherwise we won't find it if we're 3801 # using a relative directory. 3802 cp "$am_depcomp" conftest.dir 3803 cd conftest.dir 3804 # We will build objects and dependencies in a subdirectory because 3805 # it helps to detect inapplicable dependency modes. For instance 3806 # both Tru64's cc and ICC support -MD to output dependencies as a 3807 # side effect of compilation, but ICC will put the dependencies in 3808 # the current directory while Tru64 will put them in the object 3809 # directory. 3810 mkdir sub 3811 3812 am_cv_CC_dependencies_compiler_type=none 3813 if test "$am_compiler_list" = ""; then 3814 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3815 fi 3816 for depmode in $am_compiler_list; do 3817 # Setup a source with many dependencies, because some compilers 3818 # like to wrap large dependency lists on column 80 (with \), and 3819 # we should not choose a depcomp mode which is confused by this. 3820 # 3821 # We need to recreate these files for each test, as the compiler may 3822 # overwrite some of them when testing with obscure command lines. 3823 # This happens at least with the AIX C compiler. 3824 : > sub/conftest.c 3825 for i in 1 2 3 4 5 6; do 3826 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3827 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3828 # Solaris 8's {/usr,}/bin/sh. 3829 touch sub/conftst$i.h 3830 done 3831 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3832 3833 case $depmode in 3834 nosideeffect) 3835 # after this tag, mechanisms are not by side-effect, so they'll 3836 # only be used when explicitly requested 3837 if test "x$enable_dependency_tracking" = xyes; then 3838 continue 3839 else 3840 break 3841 fi 3842 ;; 3843 none) break ;; 3844 esac 3845 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3846 # mode. It turns out that the SunPro C++ compiler does not properly 3847 # handle `-M -o', and we need to detect this. 3848 if depmode=$depmode \ 3849 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3850 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3851 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3852 >/dev/null 2>conftest.err && 3853 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3854 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3855 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3856 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3857 # icc doesn't choke on unknown options, it will just issue warnings 3858 # or remarks (even with -Werror). So we grep stderr for any message 3859 # that says an option was ignored or not supported. 3860 # When given -MP, icc 7.0 and 7.1 complain thusly: 3861 # icc: Command line warning: ignoring option '-M'; no argument required 3862 # The diagnosis changed in icc 8.0: 3863 # icc: Command line remark: option '-MP' not supported 3864 if (grep 'ignoring option' conftest.err || 3865 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3866 am_cv_CC_dependencies_compiler_type=$depmode 3867 break 3868 fi 3869 fi 3870 done 3871 3872 cd .. 3873 rm -rf conftest.dir 3874else 3875 am_cv_CC_dependencies_compiler_type=none 3876fi 3877 3878fi 3879{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3880$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3881CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3882 3883 if 3884 test "x$enable_dependency_tracking" != xno \ 3885 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3886 am__fastdepCC_TRUE= 3887 am__fastdepCC_FALSE='#' 3888else 3889 am__fastdepCC_TRUE='#' 3890 am__fastdepCC_FALSE= 3891fi 3892 3893 3894{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3895$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3896if test "${lt_cv_path_SED+set}" = set; then 3897 $as_echo_n "(cached) " >&6 3898else 3899 # Loop through the user's path and test for sed and gsed. 3900# Then use that list of sed's as ones to test for truncation. 3901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3902for as_dir in $PATH 3903do 3904 IFS=$as_save_IFS 3905 test -z "$as_dir" && as_dir=. 3906 for lt_ac_prog in sed gsed; do 3907 for ac_exec_ext in '' $ac_executable_extensions; do 3908 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then 3909 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3910 fi 3911 done 3912 done 3913done 3914IFS=$as_save_IFS 3915lt_ac_max=0 3916lt_ac_count=0 3917# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3918# along with /bin/sed that truncates output. 3919for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3920 test ! -f $lt_ac_sed && continue 3921 cat /dev/null > conftest.in 3922 lt_ac_count=0 3923 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3924 # Check for GNU sed and select it if it is found. 3925 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3926 lt_cv_path_SED=$lt_ac_sed 3927 break 3928 fi 3929 while true; do 3930 cat conftest.in conftest.in >conftest.tmp 3931 mv conftest.tmp conftest.in 3932 cp conftest.in conftest.nl 3933 echo >>conftest.nl 3934 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3935 cmp -s conftest.out conftest.nl || break 3936 # 10000 chars as input seems more than enough 3937 test $lt_ac_count -gt 10 && break 3938 lt_ac_count=`expr $lt_ac_count + 1` 3939 if test $lt_ac_count -gt $lt_ac_max; then 3940 lt_ac_max=$lt_ac_count 3941 lt_cv_path_SED=$lt_ac_sed 3942 fi 3943 done 3944done 3945 3946fi 3947 3948SED=$lt_cv_path_SED 3949 3950{ $as_echo "$as_me:$LINENO: result: $SED" >&5 3951$as_echo "$SED" >&6; } 3952 3953{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3954$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3955if test "${ac_cv_path_GREP+set}" = set; then 3956 $as_echo_n "(cached) " >&6 3957else 3958 if test -z "$GREP"; then 3959 ac_path_GREP_found=false 3960 # Loop through the user's path and test for each of PROGNAME-LIST 3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3962for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3963do 3964 IFS=$as_save_IFS 3965 test -z "$as_dir" && as_dir=. 3966 for ac_prog in grep ggrep; do 3967 for ac_exec_ext in '' $ac_executable_extensions; do 3968 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3969 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3970# Check for GNU ac_path_GREP and select it if it is found. 3971 # Check for GNU $ac_path_GREP 3972case `"$ac_path_GREP" --version 2>&1` in 3973*GNU*) 3974 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3975*) 3976 ac_count=0 3977 $as_echo_n 0123456789 >"conftest.in" 3978 while : 3979 do 3980 cat "conftest.in" "conftest.in" >"conftest.tmp" 3981 mv "conftest.tmp" "conftest.in" 3982 cp "conftest.in" "conftest.nl" 3983 $as_echo 'GREP' >> "conftest.nl" 3984 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3985 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3986 ac_count=`expr $ac_count + 1` 3987 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3988 # Best one so far, save it but keep looking for a better one 3989 ac_cv_path_GREP="$ac_path_GREP" 3990 ac_path_GREP_max=$ac_count 3991 fi 3992 # 10*(2^10) chars as input seems more than enough 3993 test $ac_count -gt 10 && break 3994 done 3995 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3996esac 3997 3998 $ac_path_GREP_found && break 3 3999 done 4000 done 4001done 4002IFS=$as_save_IFS 4003 if test -z "$ac_cv_path_GREP"; then 4004 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4005$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4006 { (exit 1); exit 1; }; } 4007 fi 4008else 4009 ac_cv_path_GREP=$GREP 4010fi 4011 4012fi 4013{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4014$as_echo "$ac_cv_path_GREP" >&6; } 4015 GREP="$ac_cv_path_GREP" 4016 4017 4018{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 4019$as_echo_n "checking for egrep... " >&6; } 4020if test "${ac_cv_path_EGREP+set}" = set; then 4021 $as_echo_n "(cached) " >&6 4022else 4023 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4024 then ac_cv_path_EGREP="$GREP -E" 4025 else 4026 if test -z "$EGREP"; then 4027 ac_path_EGREP_found=false 4028 # Loop through the user's path and test for each of PROGNAME-LIST 4029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4030for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4031do 4032 IFS=$as_save_IFS 4033 test -z "$as_dir" && as_dir=. 4034 for ac_prog in egrep; do 4035 for ac_exec_ext in '' $ac_executable_extensions; do 4036 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4037 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4038# Check for GNU ac_path_EGREP and select it if it is found. 4039 # Check for GNU $ac_path_EGREP 4040case `"$ac_path_EGREP" --version 2>&1` in 4041*GNU*) 4042 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4043*) 4044 ac_count=0 4045 $as_echo_n 0123456789 >"conftest.in" 4046 while : 4047 do 4048 cat "conftest.in" "conftest.in" >"conftest.tmp" 4049 mv "conftest.tmp" "conftest.in" 4050 cp "conftest.in" "conftest.nl" 4051 $as_echo 'EGREP' >> "conftest.nl" 4052 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4053 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4054 ac_count=`expr $ac_count + 1` 4055 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4056 # Best one so far, save it but keep looking for a better one 4057 ac_cv_path_EGREP="$ac_path_EGREP" 4058 ac_path_EGREP_max=$ac_count 4059 fi 4060 # 10*(2^10) chars as input seems more than enough 4061 test $ac_count -gt 10 && break 4062 done 4063 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4064esac 4065 4066 $ac_path_EGREP_found && break 3 4067 done 4068 done 4069done 4070IFS=$as_save_IFS 4071 if test -z "$ac_cv_path_EGREP"; then 4072 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4073$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4074 { (exit 1); exit 1; }; } 4075 fi 4076else 4077 ac_cv_path_EGREP=$EGREP 4078fi 4079 4080 fi 4081fi 4082{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4083$as_echo "$ac_cv_path_EGREP" >&6; } 4084 EGREP="$ac_cv_path_EGREP" 4085 4086 4087 4088# Check whether --with-gnu-ld was given. 4089if test "${with_gnu_ld+set}" = set; then 4090 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4091else 4092 with_gnu_ld=no 4093fi 4094 4095ac_prog=ld 4096if test "$GCC" = yes; then 4097 # Check if gcc -print-prog-name=ld gives a path. 4098 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4099$as_echo_n "checking for ld used by $CC... " >&6; } 4100 case $host in 4101 *-*-mingw*) 4102 # gcc leaves a trailing carriage return which upsets mingw 4103 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4104 *) 4105 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4106 esac 4107 case $ac_prog in 4108 # Accept absolute paths. 4109 [\\/]* | ?:[\\/]*) 4110 re_direlt='/[^/][^/]*/\.\./' 4111 # Canonicalize the pathname of ld 4112 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 4113 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4114 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 4115 done 4116 test -z "$LD" && LD="$ac_prog" 4117 ;; 4118 "") 4119 # If it fails, then pretend we aren't using GCC. 4120 ac_prog=ld 4121 ;; 4122 *) 4123 # If it is relative, then search for the first ld in PATH. 4124 with_gnu_ld=unknown 4125 ;; 4126 esac 4127elif test "$with_gnu_ld" = yes; then 4128 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 4129$as_echo_n "checking for GNU ld... " >&6; } 4130else 4131 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4132$as_echo_n "checking for non-GNU ld... " >&6; } 4133fi 4134if test "${lt_cv_path_LD+set}" = set; then 4135 $as_echo_n "(cached) " >&6 4136else 4137 if test -z "$LD"; then 4138 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4139 for ac_dir in $PATH; do 4140 IFS="$lt_save_ifs" 4141 test -z "$ac_dir" && ac_dir=. 4142 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4143 lt_cv_path_LD="$ac_dir/$ac_prog" 4144 # Check to see if the program is GNU ld. I'd rather use --version, 4145 # but apparently some variants of GNU ld only accept -v. 4146 # Break only if it was the GNU/non-GNU ld that we prefer. 4147 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4148 *GNU* | *'with BFD'*) 4149 test "$with_gnu_ld" != no && break 4150 ;; 4151 *) 4152 test "$with_gnu_ld" != yes && break 4153 ;; 4154 esac 4155 fi 4156 done 4157 IFS="$lt_save_ifs" 4158else 4159 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4160fi 4161fi 4162 4163LD="$lt_cv_path_LD" 4164if test -n "$LD"; then 4165 { $as_echo "$as_me:$LINENO: result: $LD" >&5 4166$as_echo "$LD" >&6; } 4167else 4168 { $as_echo "$as_me:$LINENO: result: no" >&5 4169$as_echo "no" >&6; } 4170fi 4171test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4172$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4173 { (exit 1); exit 1; }; } 4174{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4175$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4176if test "${lt_cv_prog_gnu_ld+set}" = set; then 4177 $as_echo_n "(cached) " >&6 4178else 4179 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4180case `$LD -v 2>&1 </dev/null` in 4181*GNU* | *'with BFD'*) 4182 lt_cv_prog_gnu_ld=yes 4183 ;; 4184*) 4185 lt_cv_prog_gnu_ld=no 4186 ;; 4187esac 4188fi 4189{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4190$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4191with_gnu_ld=$lt_cv_prog_gnu_ld 4192 4193 4194{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4195$as_echo_n "checking for $LD option to reload object files... " >&6; } 4196if test "${lt_cv_ld_reload_flag+set}" = set; then 4197 $as_echo_n "(cached) " >&6 4198else 4199 lt_cv_ld_reload_flag='-r' 4200fi 4201{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4202$as_echo "$lt_cv_ld_reload_flag" >&6; } 4203reload_flag=$lt_cv_ld_reload_flag 4204case $reload_flag in 4205"" | " "*) ;; 4206*) reload_flag=" $reload_flag" ;; 4207esac 4208reload_cmds='$LD$reload_flag -o $output$reload_objs' 4209case $host_os in 4210 darwin*) 4211 if test "$GCC" = yes; then 4212 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4213 else 4214 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4215 fi 4216 ;; 4217esac 4218 4219{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4220$as_echo_n "checking for BSD-compatible nm... " >&6; } 4221if test "${lt_cv_path_NM+set}" = set; then 4222 $as_echo_n "(cached) " >&6 4223else 4224 if test -n "$NM"; then 4225 # Let the user override the test. 4226 lt_cv_path_NM="$NM" 4227else 4228 lt_nm_to_check="${ac_tool_prefix}nm" 4229 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4230 lt_nm_to_check="$lt_nm_to_check nm" 4231 fi 4232 for lt_tmp_nm in $lt_nm_to_check; do 4233 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4234 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4235 IFS="$lt_save_ifs" 4236 test -z "$ac_dir" && ac_dir=. 4237 tmp_nm="$ac_dir/$lt_tmp_nm" 4238 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4239 # Check to see if the nm accepts a BSD-compat flag. 4240 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4241 # nm: unknown option "B" ignored 4242 # Tru64's nm complains that /dev/null is an invalid object file 4243 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4244 */dev/null* | *'Invalid file or object type'*) 4245 lt_cv_path_NM="$tmp_nm -B" 4246 break 4247 ;; 4248 *) 4249 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4250 */dev/null*) 4251 lt_cv_path_NM="$tmp_nm -p" 4252 break 4253 ;; 4254 *) 4255 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4256 continue # so that we can try to find one that supports BSD flags 4257 ;; 4258 esac 4259 ;; 4260 esac 4261 fi 4262 done 4263 IFS="$lt_save_ifs" 4264 done 4265 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4266fi 4267fi 4268{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4269$as_echo "$lt_cv_path_NM" >&6; } 4270NM="$lt_cv_path_NM" 4271 4272{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 4273$as_echo_n "checking whether ln -s works... " >&6; } 4274LN_S=$as_ln_s 4275if test "$LN_S" = "ln -s"; then 4276 { $as_echo "$as_me:$LINENO: result: yes" >&5 4277$as_echo "yes" >&6; } 4278else 4279 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4280$as_echo "no, using $LN_S" >&6; } 4281fi 4282 4283{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 4284$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4285if test "${lt_cv_deplibs_check_method+set}" = set; then 4286 $as_echo_n "(cached) " >&6 4287else 4288 lt_cv_file_magic_cmd='$MAGIC_CMD' 4289lt_cv_file_magic_test_file= 4290lt_cv_deplibs_check_method='unknown' 4291# Need to set the preceding variable on all platforms that support 4292# interlibrary dependencies. 4293# 'none' -- dependencies not supported. 4294# `unknown' -- same as none, but documents that we really don't know. 4295# 'pass_all' -- all dependencies passed with no checks. 4296# 'test_compile' -- check by making test program. 4297# 'file_magic [[regex]]' -- check by looking for files in library path 4298# which responds to the $file_magic_cmd with a given extended regex. 4299# If you have `file' or equivalent on your system and you're not sure 4300# whether `pass_all' will *always* work, you probably want this one. 4301 4302case $host_os in 4303aix[4-9]*) 4304 lt_cv_deplibs_check_method=pass_all 4305 ;; 4306 4307beos*) 4308 lt_cv_deplibs_check_method=pass_all 4309 ;; 4310 4311bsdi[45]*) 4312 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4313 lt_cv_file_magic_cmd='/usr/bin/file -L' 4314 lt_cv_file_magic_test_file=/shlib/libc.so 4315 ;; 4316 4317cygwin*) 4318 # func_win32_libid is a shell function defined in ltmain.sh 4319 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4320 lt_cv_file_magic_cmd='func_win32_libid' 4321 ;; 4322 4323mingw* | pw32*) 4324 # Base MSYS/MinGW do not provide the 'file' command needed by 4325 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4326 # unless we find 'file', for example because we are cross-compiling. 4327 if ( file / ) >/dev/null 2>&1; then 4328 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4329 lt_cv_file_magic_cmd='func_win32_libid' 4330 else 4331 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4332 lt_cv_file_magic_cmd='$OBJDUMP -f' 4333 fi 4334 ;; 4335 4336darwin* | rhapsody*) 4337 lt_cv_deplibs_check_method=pass_all 4338 ;; 4339 4340freebsd* | dragonfly*) 4341 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4342 case $host_cpu in 4343 i*86 ) 4344 # Not sure whether the presence of OpenBSD here was a mistake. 4345 # Let's accept both of them until this is cleared up. 4346 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4347 lt_cv_file_magic_cmd=/usr/bin/file 4348 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4349 ;; 4350 esac 4351 else 4352 lt_cv_deplibs_check_method=pass_all 4353 fi 4354 ;; 4355 4356gnu*) 4357 lt_cv_deplibs_check_method=pass_all 4358 ;; 4359 4360hpux10.20* | hpux11*) 4361 lt_cv_file_magic_cmd=/usr/bin/file 4362 case $host_cpu in 4363 ia64*) 4364 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4365 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4366 ;; 4367 hppa*64*) 4368 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]' 4369 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4370 ;; 4371 *) 4372 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4373 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4374 ;; 4375 esac 4376 ;; 4377 4378interix[3-9]*) 4379 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4380 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4381 ;; 4382 4383irix5* | irix6* | nonstopux*) 4384 case $LD in 4385 *-32|*"-32 ") libmagic=32-bit;; 4386 *-n32|*"-n32 ") libmagic=N32;; 4387 *-64|*"-64 ") libmagic=64-bit;; 4388 *) libmagic=never-match;; 4389 esac 4390 lt_cv_deplibs_check_method=pass_all 4391 ;; 4392 4393# This must be Linux ELF. 4394linux* | k*bsd*-gnu) 4395 lt_cv_deplibs_check_method=pass_all 4396 ;; 4397 4398netbsd*) 4399 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4400 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4401 else 4402 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4403 fi 4404 ;; 4405 4406newos6*) 4407 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4408 lt_cv_file_magic_cmd=/usr/bin/file 4409 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4410 ;; 4411 4412nto-qnx*) 4413 lt_cv_deplibs_check_method=unknown 4414 ;; 4415 4416openbsd*) 4417 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4418 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4419 else 4420 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4421 fi 4422 ;; 4423 4424osf3* | osf4* | osf5*) 4425 lt_cv_deplibs_check_method=pass_all 4426 ;; 4427 4428rdos*) 4429 lt_cv_deplibs_check_method=pass_all 4430 ;; 4431 4432solaris*) 4433 lt_cv_deplibs_check_method=pass_all 4434 ;; 4435 4436sysv4 | sysv4.3*) 4437 case $host_vendor in 4438 motorola) 4439 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]' 4440 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4441 ;; 4442 ncr) 4443 lt_cv_deplibs_check_method=pass_all 4444 ;; 4445 sequent) 4446 lt_cv_file_magic_cmd='/bin/file' 4447 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4448 ;; 4449 sni) 4450 lt_cv_file_magic_cmd='/bin/file' 4451 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4452 lt_cv_file_magic_test_file=/lib/libc.so 4453 ;; 4454 siemens) 4455 lt_cv_deplibs_check_method=pass_all 4456 ;; 4457 pc) 4458 lt_cv_deplibs_check_method=pass_all 4459 ;; 4460 esac 4461 ;; 4462 4463sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4464 lt_cv_deplibs_check_method=pass_all 4465 ;; 4466esac 4467 4468fi 4469{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4470$as_echo "$lt_cv_deplibs_check_method" >&6; } 4471file_magic_cmd=$lt_cv_file_magic_cmd 4472deplibs_check_method=$lt_cv_deplibs_check_method 4473test -z "$deplibs_check_method" && deplibs_check_method=unknown 4474 4475 4476 4477 4478# If no C compiler was specified, use CC. 4479LTCC=${LTCC-"$CC"} 4480 4481# If no C compiler flags were specified, use CFLAGS. 4482LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4483 4484# Allow CC to be a program name with arguments. 4485compiler=$CC 4486 4487 4488# Check whether --enable-libtool-lock was given. 4489if test "${enable_libtool_lock+set}" = set; then 4490 enableval=$enable_libtool_lock; 4491fi 4492 4493test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4494 4495# Some flags need to be propagated to the compiler or linker for good 4496# libtool support. 4497case $host in 4498ia64-*-hpux*) 4499 # Find out which ABI we are using. 4500 echo 'int i;' > conftest.$ac_ext 4501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4502 (eval $ac_compile) 2>&5 4503 ac_status=$? 4504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4505 (exit $ac_status); }; then 4506 case `/usr/bin/file conftest.$ac_objext` in 4507 *ELF-32*) 4508 HPUX_IA64_MODE="32" 4509 ;; 4510 *ELF-64*) 4511 HPUX_IA64_MODE="64" 4512 ;; 4513 esac 4514 fi 4515 rm -rf conftest* 4516 ;; 4517*-*-irix6*) 4518 # Find out which ABI we are using. 4519 echo '#line 4519 "configure"' > conftest.$ac_ext 4520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4521 (eval $ac_compile) 2>&5 4522 ac_status=$? 4523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4524 (exit $ac_status); }; then 4525 if test "$lt_cv_prog_gnu_ld" = yes; then 4526 case `/usr/bin/file conftest.$ac_objext` in 4527 *32-bit*) 4528 LD="${LD-ld} -melf32bsmip" 4529 ;; 4530 *N32*) 4531 LD="${LD-ld} -melf32bmipn32" 4532 ;; 4533 *64-bit*) 4534 LD="${LD-ld} -melf64bmip" 4535 ;; 4536 esac 4537 else 4538 case `/usr/bin/file conftest.$ac_objext` in 4539 *32-bit*) 4540 LD="${LD-ld} -32" 4541 ;; 4542 *N32*) 4543 LD="${LD-ld} -n32" 4544 ;; 4545 *64-bit*) 4546 LD="${LD-ld} -64" 4547 ;; 4548 esac 4549 fi 4550 fi 4551 rm -rf conftest* 4552 ;; 4553 4554x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 4555s390*-*linux*|sparc*-*linux*) 4556 # Find out which ABI we are using. 4557 echo 'int i;' > conftest.$ac_ext 4558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4559 (eval $ac_compile) 2>&5 4560 ac_status=$? 4561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4562 (exit $ac_status); }; then 4563 case `/usr/bin/file conftest.o` in 4564 *32-bit*) 4565 case $host in 4566 x86_64-*kfreebsd*-gnu) 4567 LD="${LD-ld} -m elf_i386_fbsd" 4568 ;; 4569 x86_64-*linux*) 4570 LD="${LD-ld} -m elf_i386" 4571 ;; 4572 ppc64-*linux*|powerpc64-*linux*) 4573 LD="${LD-ld} -m elf32ppclinux" 4574 ;; 4575 s390x-*linux*) 4576 LD="${LD-ld} -m elf_s390" 4577 ;; 4578 sparc64-*linux*) 4579 LD="${LD-ld} -m elf32_sparc" 4580 ;; 4581 esac 4582 ;; 4583 *64-bit*) 4584 case $host in 4585 x86_64-*kfreebsd*-gnu) 4586 LD="${LD-ld} -m elf_x86_64_fbsd" 4587 ;; 4588 x86_64-*linux*) 4589 LD="${LD-ld} -m elf_x86_64" 4590 ;; 4591 ppc*-*linux*|powerpc*-*linux*) 4592 LD="${LD-ld} -m elf64ppc" 4593 ;; 4594 s390*-*linux*) 4595 LD="${LD-ld} -m elf64_s390" 4596 ;; 4597 sparc*-*linux*) 4598 LD="${LD-ld} -m elf64_sparc" 4599 ;; 4600 esac 4601 ;; 4602 esac 4603 fi 4604 rm -rf conftest* 4605 ;; 4606 4607*-*-sco3.2v5*) 4608 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4609 SAVE_CFLAGS="$CFLAGS" 4610 CFLAGS="$CFLAGS -belf" 4611 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4612$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 4613if test "${lt_cv_cc_needs_belf+set}" = set; then 4614 $as_echo_n "(cached) " >&6 4615else 4616 ac_ext=c 4617ac_cpp='$CPP $CPPFLAGS' 4618ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4619ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4620ac_compiler_gnu=$ac_cv_c_compiler_gnu 4621 4622 cat >conftest.$ac_ext <<_ACEOF 4623/* confdefs.h. */ 4624_ACEOF 4625cat confdefs.h >>conftest.$ac_ext 4626cat >>conftest.$ac_ext <<_ACEOF 4627/* end confdefs.h. */ 4628 4629int 4630main () 4631{ 4632 4633 ; 4634 return 0; 4635} 4636_ACEOF 4637rm -f conftest.$ac_objext conftest$ac_exeext 4638if { (ac_try="$ac_link" 4639case "(($ac_try" in 4640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4641 *) ac_try_echo=$ac_try;; 4642esac 4643eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4644$as_echo "$ac_try_echo") >&5 4645 (eval "$ac_link") 2>conftest.er1 4646 ac_status=$? 4647 grep -v '^ *+' conftest.er1 >conftest.err 4648 rm -f conftest.er1 4649 cat conftest.err >&5 4650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4651 (exit $ac_status); } && { 4652 test -z "$ac_c_werror_flag" || 4653 test ! -s conftest.err 4654 } && test -s conftest$ac_exeext && { 4655 test "$cross_compiling" = yes || 4656 $as_test_x conftest$ac_exeext 4657 }; then 4658 lt_cv_cc_needs_belf=yes 4659else 4660 $as_echo "$as_me: failed program was:" >&5 4661sed 's/^/| /' conftest.$ac_ext >&5 4662 4663 lt_cv_cc_needs_belf=no 4664fi 4665 4666rm -rf conftest.dSYM 4667rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4668 conftest$ac_exeext conftest.$ac_ext 4669 ac_ext=c 4670ac_cpp='$CPP $CPPFLAGS' 4671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4673ac_compiler_gnu=$ac_cv_c_compiler_gnu 4674 4675fi 4676{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4677$as_echo "$lt_cv_cc_needs_belf" >&6; } 4678 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4679 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4680 CFLAGS="$SAVE_CFLAGS" 4681 fi 4682 ;; 4683sparc*-*solaris*) 4684 # Find out which ABI we are using. 4685 echo 'int i;' > conftest.$ac_ext 4686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4687 (eval $ac_compile) 2>&5 4688 ac_status=$? 4689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4690 (exit $ac_status); }; then 4691 case `/usr/bin/file conftest.o` in 4692 *64-bit*) 4693 case $lt_cv_prog_gnu_ld in 4694 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4695 *) 4696 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 4697 LD="${LD-ld} -64" 4698 fi 4699 ;; 4700 esac 4701 ;; 4702 esac 4703 fi 4704 rm -rf conftest* 4705 ;; 4706 4707 4708esac 4709 4710need_locks="$enable_libtool_lock" 4711 4712 4713ac_ext=c 4714ac_cpp='$CPP $CPPFLAGS' 4715ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4716ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4717ac_compiler_gnu=$ac_cv_c_compiler_gnu 4718{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4719$as_echo_n "checking how to run the C preprocessor... " >&6; } 4720# On Suns, sometimes $CPP names a directory. 4721if test -n "$CPP" && test -d "$CPP"; then 4722 CPP= 4723fi 4724if test -z "$CPP"; then 4725 if test "${ac_cv_prog_CPP+set}" = set; then 4726 $as_echo_n "(cached) " >&6 4727else 4728 # Double quotes because CPP needs to be expanded 4729 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4730 do 4731 ac_preproc_ok=false 4732for ac_c_preproc_warn_flag in '' yes 4733do 4734 # Use a header file that comes with gcc, so configuring glibc 4735 # with a fresh cross-compiler works. 4736 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4737 # <limits.h> exists even on freestanding compilers. 4738 # On the NeXT, cc -E runs the code through the compiler's parser, 4739 # not just through cpp. "Syntax error" is here to catch this case. 4740 cat >conftest.$ac_ext <<_ACEOF 4741/* confdefs.h. */ 4742_ACEOF 4743cat confdefs.h >>conftest.$ac_ext 4744cat >>conftest.$ac_ext <<_ACEOF 4745/* end confdefs.h. */ 4746#ifdef __STDC__ 4747# include <limits.h> 4748#else 4749# include <assert.h> 4750#endif 4751 Syntax error 4752_ACEOF 4753if { (ac_try="$ac_cpp conftest.$ac_ext" 4754case "(($ac_try" in 4755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4756 *) ac_try_echo=$ac_try;; 4757esac 4758eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4759$as_echo "$ac_try_echo") >&5 4760 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4761 ac_status=$? 4762 grep -v '^ *+' conftest.er1 >conftest.err 4763 rm -f conftest.er1 4764 cat conftest.err >&5 4765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4766 (exit $ac_status); } >/dev/null && { 4767 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4768 test ! -s conftest.err 4769 }; then 4770 : 4771else 4772 $as_echo "$as_me: failed program was:" >&5 4773sed 's/^/| /' conftest.$ac_ext >&5 4774 4775 # Broken: fails on valid input. 4776continue 4777fi 4778 4779rm -f conftest.err conftest.$ac_ext 4780 4781 # OK, works on sane cases. Now check whether nonexistent headers 4782 # can be detected and how. 4783 cat >conftest.$ac_ext <<_ACEOF 4784/* confdefs.h. */ 4785_ACEOF 4786cat confdefs.h >>conftest.$ac_ext 4787cat >>conftest.$ac_ext <<_ACEOF 4788/* end confdefs.h. */ 4789#include <ac_nonexistent.h> 4790_ACEOF 4791if { (ac_try="$ac_cpp conftest.$ac_ext" 4792case "(($ac_try" in 4793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4794 *) ac_try_echo=$ac_try;; 4795esac 4796eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4797$as_echo "$ac_try_echo") >&5 4798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4799 ac_status=$? 4800 grep -v '^ *+' conftest.er1 >conftest.err 4801 rm -f conftest.er1 4802 cat conftest.err >&5 4803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4804 (exit $ac_status); } >/dev/null && { 4805 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4806 test ! -s conftest.err 4807 }; then 4808 # Broken: success on invalid input. 4809continue 4810else 4811 $as_echo "$as_me: failed program was:" >&5 4812sed 's/^/| /' conftest.$ac_ext >&5 4813 4814 # Passes both tests. 4815ac_preproc_ok=: 4816break 4817fi 4818 4819rm -f conftest.err conftest.$ac_ext 4820 4821done 4822# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4823rm -f conftest.err conftest.$ac_ext 4824if $ac_preproc_ok; then 4825 break 4826fi 4827 4828 done 4829 ac_cv_prog_CPP=$CPP 4830 4831fi 4832 CPP=$ac_cv_prog_CPP 4833else 4834 ac_cv_prog_CPP=$CPP 4835fi 4836{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 4837$as_echo "$CPP" >&6; } 4838ac_preproc_ok=false 4839for ac_c_preproc_warn_flag in '' yes 4840do 4841 # Use a header file that comes with gcc, so configuring glibc 4842 # with a fresh cross-compiler works. 4843 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4844 # <limits.h> exists even on freestanding compilers. 4845 # On the NeXT, cc -E runs the code through the compiler's parser, 4846 # not just through cpp. "Syntax error" is here to catch this case. 4847 cat >conftest.$ac_ext <<_ACEOF 4848/* confdefs.h. */ 4849_ACEOF 4850cat confdefs.h >>conftest.$ac_ext 4851cat >>conftest.$ac_ext <<_ACEOF 4852/* end confdefs.h. */ 4853#ifdef __STDC__ 4854# include <limits.h> 4855#else 4856# include <assert.h> 4857#endif 4858 Syntax error 4859_ACEOF 4860if { (ac_try="$ac_cpp conftest.$ac_ext" 4861case "(($ac_try" in 4862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4863 *) ac_try_echo=$ac_try;; 4864esac 4865eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4866$as_echo "$ac_try_echo") >&5 4867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4868 ac_status=$? 4869 grep -v '^ *+' conftest.er1 >conftest.err 4870 rm -f conftest.er1 4871 cat conftest.err >&5 4872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4873 (exit $ac_status); } >/dev/null && { 4874 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4875 test ! -s conftest.err 4876 }; then 4877 : 4878else 4879 $as_echo "$as_me: failed program was:" >&5 4880sed 's/^/| /' conftest.$ac_ext >&5 4881 4882 # Broken: fails on valid input. 4883continue 4884fi 4885 4886rm -f conftest.err conftest.$ac_ext 4887 4888 # OK, works on sane cases. Now check whether nonexistent headers 4889 # can be detected and how. 4890 cat >conftest.$ac_ext <<_ACEOF 4891/* confdefs.h. */ 4892_ACEOF 4893cat confdefs.h >>conftest.$ac_ext 4894cat >>conftest.$ac_ext <<_ACEOF 4895/* end confdefs.h. */ 4896#include <ac_nonexistent.h> 4897_ACEOF 4898if { (ac_try="$ac_cpp conftest.$ac_ext" 4899case "(($ac_try" in 4900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4901 *) ac_try_echo=$ac_try;; 4902esac 4903eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4904$as_echo "$ac_try_echo") >&5 4905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4906 ac_status=$? 4907 grep -v '^ *+' conftest.er1 >conftest.err 4908 rm -f conftest.er1 4909 cat conftest.err >&5 4910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4911 (exit $ac_status); } >/dev/null && { 4912 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4913 test ! -s conftest.err 4914 }; then 4915 # Broken: success on invalid input. 4916continue 4917else 4918 $as_echo "$as_me: failed program was:" >&5 4919sed 's/^/| /' conftest.$ac_ext >&5 4920 4921 # Passes both tests. 4922ac_preproc_ok=: 4923break 4924fi 4925 4926rm -f conftest.err conftest.$ac_ext 4927 4928done 4929# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4930rm -f conftest.err conftest.$ac_ext 4931if $ac_preproc_ok; then 4932 : 4933else 4934 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 4935$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4936{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4937See \`config.log' for more details." >&5 4938$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4939See \`config.log' for more details." >&2;} 4940 { (exit 1); exit 1; }; }; } 4941fi 4942 4943ac_ext=c 4944ac_cpp='$CPP $CPPFLAGS' 4945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4947ac_compiler_gnu=$ac_cv_c_compiler_gnu 4948 4949 4950{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4951$as_echo_n "checking for ANSI C header files... " >&6; } 4952if test "${ac_cv_header_stdc+set}" = set; then 4953 $as_echo_n "(cached) " >&6 4954else 4955 cat >conftest.$ac_ext <<_ACEOF 4956/* confdefs.h. */ 4957_ACEOF 4958cat confdefs.h >>conftest.$ac_ext 4959cat >>conftest.$ac_ext <<_ACEOF 4960/* end confdefs.h. */ 4961#include <stdlib.h> 4962#include <stdarg.h> 4963#include <string.h> 4964#include <float.h> 4965 4966int 4967main () 4968{ 4969 4970 ; 4971 return 0; 4972} 4973_ACEOF 4974rm -f conftest.$ac_objext 4975if { (ac_try="$ac_compile" 4976case "(($ac_try" in 4977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4978 *) ac_try_echo=$ac_try;; 4979esac 4980eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4981$as_echo "$ac_try_echo") >&5 4982 (eval "$ac_compile") 2>conftest.er1 4983 ac_status=$? 4984 grep -v '^ *+' conftest.er1 >conftest.err 4985 rm -f conftest.er1 4986 cat conftest.err >&5 4987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4988 (exit $ac_status); } && { 4989 test -z "$ac_c_werror_flag" || 4990 test ! -s conftest.err 4991 } && test -s conftest.$ac_objext; then 4992 ac_cv_header_stdc=yes 4993else 4994 $as_echo "$as_me: failed program was:" >&5 4995sed 's/^/| /' conftest.$ac_ext >&5 4996 4997 ac_cv_header_stdc=no 4998fi 4999 5000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5001 5002if test $ac_cv_header_stdc = yes; then 5003 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5004 cat >conftest.$ac_ext <<_ACEOF 5005/* confdefs.h. */ 5006_ACEOF 5007cat confdefs.h >>conftest.$ac_ext 5008cat >>conftest.$ac_ext <<_ACEOF 5009/* end confdefs.h. */ 5010#include <string.h> 5011 5012_ACEOF 5013if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5014 $EGREP "memchr" >/dev/null 2>&1; then 5015 : 5016else 5017 ac_cv_header_stdc=no 5018fi 5019rm -f conftest* 5020 5021fi 5022 5023if test $ac_cv_header_stdc = yes; then 5024 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5025 cat >conftest.$ac_ext <<_ACEOF 5026/* confdefs.h. */ 5027_ACEOF 5028cat confdefs.h >>conftest.$ac_ext 5029cat >>conftest.$ac_ext <<_ACEOF 5030/* end confdefs.h. */ 5031#include <stdlib.h> 5032 5033_ACEOF 5034if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5035 $EGREP "free" >/dev/null 2>&1; then 5036 : 5037else 5038 ac_cv_header_stdc=no 5039fi 5040rm -f conftest* 5041 5042fi 5043 5044if test $ac_cv_header_stdc = yes; then 5045 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5046 if test "$cross_compiling" = yes; then 5047 : 5048else 5049 cat >conftest.$ac_ext <<_ACEOF 5050/* confdefs.h. */ 5051_ACEOF 5052cat confdefs.h >>conftest.$ac_ext 5053cat >>conftest.$ac_ext <<_ACEOF 5054/* end confdefs.h. */ 5055#include <ctype.h> 5056#include <stdlib.h> 5057#if ((' ' & 0x0FF) == 0x020) 5058# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5059# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5060#else 5061# define ISLOWER(c) \ 5062 (('a' <= (c) && (c) <= 'i') \ 5063 || ('j' <= (c) && (c) <= 'r') \ 5064 || ('s' <= (c) && (c) <= 'z')) 5065# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5066#endif 5067 5068#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5069int 5070main () 5071{ 5072 int i; 5073 for (i = 0; i < 256; i++) 5074 if (XOR (islower (i), ISLOWER (i)) 5075 || toupper (i) != TOUPPER (i)) 5076 return 2; 5077 return 0; 5078} 5079_ACEOF 5080rm -f conftest$ac_exeext 5081if { (ac_try="$ac_link" 5082case "(($ac_try" in 5083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5084 *) ac_try_echo=$ac_try;; 5085esac 5086eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5087$as_echo "$ac_try_echo") >&5 5088 (eval "$ac_link") 2>&5 5089 ac_status=$? 5090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5091 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5092 { (case "(($ac_try" in 5093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5094 *) ac_try_echo=$ac_try;; 5095esac 5096eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5097$as_echo "$ac_try_echo") >&5 5098 (eval "$ac_try") 2>&5 5099 ac_status=$? 5100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5101 (exit $ac_status); }; }; then 5102 : 5103else 5104 $as_echo "$as_me: program exited with status $ac_status" >&5 5105$as_echo "$as_me: failed program was:" >&5 5106sed 's/^/| /' conftest.$ac_ext >&5 5107 5108( exit $ac_status ) 5109ac_cv_header_stdc=no 5110fi 5111rm -rf conftest.dSYM 5112rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5113fi 5114 5115 5116fi 5117fi 5118{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5119$as_echo "$ac_cv_header_stdc" >&6; } 5120if test $ac_cv_header_stdc = yes; then 5121 5122cat >>confdefs.h <<\_ACEOF 5123#define STDC_HEADERS 1 5124_ACEOF 5125 5126fi 5127 5128# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5139 inttypes.h stdint.h unistd.h 5140do 5141as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5142{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5143$as_echo_n "checking for $ac_header... " >&6; } 5144if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5145 $as_echo_n "(cached) " >&6 5146else 5147 cat >conftest.$ac_ext <<_ACEOF 5148/* confdefs.h. */ 5149_ACEOF 5150cat confdefs.h >>conftest.$ac_ext 5151cat >>conftest.$ac_ext <<_ACEOF 5152/* end confdefs.h. */ 5153$ac_includes_default 5154 5155#include <$ac_header> 5156_ACEOF 5157rm -f conftest.$ac_objext 5158if { (ac_try="$ac_compile" 5159case "(($ac_try" in 5160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5161 *) ac_try_echo=$ac_try;; 5162esac 5163eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5164$as_echo "$ac_try_echo") >&5 5165 (eval "$ac_compile") 2>conftest.er1 5166 ac_status=$? 5167 grep -v '^ *+' conftest.er1 >conftest.err 5168 rm -f conftest.er1 5169 cat conftest.err >&5 5170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5171 (exit $ac_status); } && { 5172 test -z "$ac_c_werror_flag" || 5173 test ! -s conftest.err 5174 } && test -s conftest.$ac_objext; then 5175 eval "$as_ac_Header=yes" 5176else 5177 $as_echo "$as_me: failed program was:" >&5 5178sed 's/^/| /' conftest.$ac_ext >&5 5179 5180 eval "$as_ac_Header=no" 5181fi 5182 5183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5184fi 5185ac_res=`eval 'as_val=${'$as_ac_Header'} 5186 $as_echo "$as_val"'` 5187 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5188$as_echo "$ac_res" >&6; } 5189as_val=`eval 'as_val=${'$as_ac_Header'} 5190 $as_echo "$as_val"'` 5191 if test "x$as_val" = x""yes; then 5192 cat >>confdefs.h <<_ACEOF 5193#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5194_ACEOF 5195 5196fi 5197 5198done 5199 5200 5201 5202for ac_header in dlfcn.h 5203do 5204as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5205if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5206 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5207$as_echo_n "checking for $ac_header... " >&6; } 5208if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5209 $as_echo_n "(cached) " >&6 5210fi 5211ac_res=`eval 'as_val=${'$as_ac_Header'} 5212 $as_echo "$as_val"'` 5213 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5214$as_echo "$ac_res" >&6; } 5215else 5216 # Is the header compilable? 5217{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 5218$as_echo_n "checking $ac_header usability... " >&6; } 5219cat >conftest.$ac_ext <<_ACEOF 5220/* confdefs.h. */ 5221_ACEOF 5222cat confdefs.h >>conftest.$ac_ext 5223cat >>conftest.$ac_ext <<_ACEOF 5224/* end confdefs.h. */ 5225$ac_includes_default 5226#include <$ac_header> 5227_ACEOF 5228rm -f conftest.$ac_objext 5229if { (ac_try="$ac_compile" 5230case "(($ac_try" in 5231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5232 *) ac_try_echo=$ac_try;; 5233esac 5234eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5235$as_echo "$ac_try_echo") >&5 5236 (eval "$ac_compile") 2>conftest.er1 5237 ac_status=$? 5238 grep -v '^ *+' conftest.er1 >conftest.err 5239 rm -f conftest.er1 5240 cat conftest.err >&5 5241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5242 (exit $ac_status); } && { 5243 test -z "$ac_c_werror_flag" || 5244 test ! -s conftest.err 5245 } && test -s conftest.$ac_objext; then 5246 ac_header_compiler=yes 5247else 5248 $as_echo "$as_me: failed program was:" >&5 5249sed 's/^/| /' conftest.$ac_ext >&5 5250 5251 ac_header_compiler=no 5252fi 5253 5254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5255{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5256$as_echo "$ac_header_compiler" >&6; } 5257 5258# Is the header present? 5259{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 5260$as_echo_n "checking $ac_header presence... " >&6; } 5261cat >conftest.$ac_ext <<_ACEOF 5262/* confdefs.h. */ 5263_ACEOF 5264cat confdefs.h >>conftest.$ac_ext 5265cat >>conftest.$ac_ext <<_ACEOF 5266/* end confdefs.h. */ 5267#include <$ac_header> 5268_ACEOF 5269if { (ac_try="$ac_cpp conftest.$ac_ext" 5270case "(($ac_try" in 5271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5272 *) ac_try_echo=$ac_try;; 5273esac 5274eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5275$as_echo "$ac_try_echo") >&5 5276 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5277 ac_status=$? 5278 grep -v '^ *+' conftest.er1 >conftest.err 5279 rm -f conftest.er1 5280 cat conftest.err >&5 5281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5282 (exit $ac_status); } >/dev/null && { 5283 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5284 test ! -s conftest.err 5285 }; then 5286 ac_header_preproc=yes 5287else 5288 $as_echo "$as_me: failed program was:" >&5 5289sed 's/^/| /' conftest.$ac_ext >&5 5290 5291 ac_header_preproc=no 5292fi 5293 5294rm -f conftest.err conftest.$ac_ext 5295{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5296$as_echo "$ac_header_preproc" >&6; } 5297 5298# So? What about this header? 5299case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5300 yes:no: ) 5301 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5302$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5303 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5304$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5305 ac_header_preproc=yes 5306 ;; 5307 no:yes:* ) 5308 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5309$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5310 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5311$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5312 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5313$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5314 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5315$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5316 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5317$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5318 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5319$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5320 ( cat <<\_ASBOX 5321## ---------------------------------------------------------------------- ## 5322## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 5323## ---------------------------------------------------------------------- ## 5324_ASBOX 5325 ) | sed "s/^/$as_me: WARNING: /" >&2 5326 ;; 5327esac 5328{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5329$as_echo_n "checking for $ac_header... " >&6; } 5330if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5331 $as_echo_n "(cached) " >&6 5332else 5333 eval "$as_ac_Header=\$ac_header_preproc" 5334fi 5335ac_res=`eval 'as_val=${'$as_ac_Header'} 5336 $as_echo "$as_val"'` 5337 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5338$as_echo "$ac_res" >&6; } 5339 5340fi 5341as_val=`eval 'as_val=${'$as_ac_Header'} 5342 $as_echo "$as_val"'` 5343 if test "x$as_val" = x""yes; then 5344 cat >>confdefs.h <<_ACEOF 5345#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5346_ACEOF 5347 5348fi 5349 5350done 5351 5352ac_ext=cpp 5353ac_cpp='$CXXCPP $CPPFLAGS' 5354ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5355ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5356ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5357if test -z "$CXX"; then 5358 if test -n "$CCC"; then 5359 CXX=$CCC 5360 else 5361 if test -n "$ac_tool_prefix"; then 5362 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5363 do 5364 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5365set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5366{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5367$as_echo_n "checking for $ac_word... " >&6; } 5368if test "${ac_cv_prog_CXX+set}" = set; then 5369 $as_echo_n "(cached) " >&6 5370else 5371 if test -n "$CXX"; then 5372 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5373else 5374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5375for as_dir in $PATH 5376do 5377 IFS=$as_save_IFS 5378 test -z "$as_dir" && as_dir=. 5379 for ac_exec_ext in '' $ac_executable_extensions; do 5380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5381 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5382 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5383 break 2 5384 fi 5385done 5386done 5387IFS=$as_save_IFS 5388 5389fi 5390fi 5391CXX=$ac_cv_prog_CXX 5392if test -n "$CXX"; then 5393 { $as_echo "$as_me:$LINENO: result: $CXX" >&5 5394$as_echo "$CXX" >&6; } 5395else 5396 { $as_echo "$as_me:$LINENO: result: no" >&5 5397$as_echo "no" >&6; } 5398fi 5399 5400 5401 test -n "$CXX" && break 5402 done 5403fi 5404if test -z "$CXX"; then 5405 ac_ct_CXX=$CXX 5406 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5407do 5408 # Extract the first word of "$ac_prog", so it can be a program name with args. 5409set dummy $ac_prog; ac_word=$2 5410{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5411$as_echo_n "checking for $ac_word... " >&6; } 5412if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5413 $as_echo_n "(cached) " >&6 5414else 5415 if test -n "$ac_ct_CXX"; then 5416 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5417else 5418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5419for as_dir in $PATH 5420do 5421 IFS=$as_save_IFS 5422 test -z "$as_dir" && as_dir=. 5423 for ac_exec_ext in '' $ac_executable_extensions; do 5424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5425 ac_cv_prog_ac_ct_CXX="$ac_prog" 5426 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5427 break 2 5428 fi 5429done 5430done 5431IFS=$as_save_IFS 5432 5433fi 5434fi 5435ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5436if test -n "$ac_ct_CXX"; then 5437 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5438$as_echo "$ac_ct_CXX" >&6; } 5439else 5440 { $as_echo "$as_me:$LINENO: result: no" >&5 5441$as_echo "no" >&6; } 5442fi 5443 5444 5445 test -n "$ac_ct_CXX" && break 5446done 5447 5448 if test "x$ac_ct_CXX" = x; then 5449 CXX="g++" 5450 else 5451 case $cross_compiling:$ac_tool_warned in 5452yes:) 5453{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5454$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5455ac_tool_warned=yes ;; 5456esac 5457 CXX=$ac_ct_CXX 5458 fi 5459fi 5460 5461 fi 5462fi 5463# Provide some information about the compiler. 5464$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5465set X $ac_compile 5466ac_compiler=$2 5467{ (ac_try="$ac_compiler --version >&5" 5468case "(($ac_try" in 5469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5470 *) ac_try_echo=$ac_try;; 5471esac 5472eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5473$as_echo "$ac_try_echo") >&5 5474 (eval "$ac_compiler --version >&5") 2>&5 5475 ac_status=$? 5476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5477 (exit $ac_status); } 5478{ (ac_try="$ac_compiler -v >&5" 5479case "(($ac_try" in 5480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5481 *) ac_try_echo=$ac_try;; 5482esac 5483eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5484$as_echo "$ac_try_echo") >&5 5485 (eval "$ac_compiler -v >&5") 2>&5 5486 ac_status=$? 5487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5488 (exit $ac_status); } 5489{ (ac_try="$ac_compiler -V >&5" 5490case "(($ac_try" in 5491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5492 *) ac_try_echo=$ac_try;; 5493esac 5494eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5495$as_echo "$ac_try_echo") >&5 5496 (eval "$ac_compiler -V >&5") 2>&5 5497 ac_status=$? 5498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5499 (exit $ac_status); } 5500 5501{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5502$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 5503if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5504 $as_echo_n "(cached) " >&6 5505else 5506 cat >conftest.$ac_ext <<_ACEOF 5507/* confdefs.h. */ 5508_ACEOF 5509cat confdefs.h >>conftest.$ac_ext 5510cat >>conftest.$ac_ext <<_ACEOF 5511/* end confdefs.h. */ 5512 5513int 5514main () 5515{ 5516#ifndef __GNUC__ 5517 choke me 5518#endif 5519 5520 ; 5521 return 0; 5522} 5523_ACEOF 5524rm -f conftest.$ac_objext 5525if { (ac_try="$ac_compile" 5526case "(($ac_try" in 5527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5528 *) ac_try_echo=$ac_try;; 5529esac 5530eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5531$as_echo "$ac_try_echo") >&5 5532 (eval "$ac_compile") 2>conftest.er1 5533 ac_status=$? 5534 grep -v '^ *+' conftest.er1 >conftest.err 5535 rm -f conftest.er1 5536 cat conftest.err >&5 5537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5538 (exit $ac_status); } && { 5539 test -z "$ac_cxx_werror_flag" || 5540 test ! -s conftest.err 5541 } && test -s conftest.$ac_objext; then 5542 ac_compiler_gnu=yes 5543else 5544 $as_echo "$as_me: failed program was:" >&5 5545sed 's/^/| /' conftest.$ac_ext >&5 5546 5547 ac_compiler_gnu=no 5548fi 5549 5550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5551ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5552 5553fi 5554{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5555$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 5556if test $ac_compiler_gnu = yes; then 5557 GXX=yes 5558else 5559 GXX= 5560fi 5561ac_test_CXXFLAGS=${CXXFLAGS+set} 5562ac_save_CXXFLAGS=$CXXFLAGS 5563{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5564$as_echo_n "checking whether $CXX accepts -g... " >&6; } 5565if test "${ac_cv_prog_cxx_g+set}" = set; then 5566 $as_echo_n "(cached) " >&6 5567else 5568 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5569 ac_cxx_werror_flag=yes 5570 ac_cv_prog_cxx_g=no 5571 CXXFLAGS="-g" 5572 cat >conftest.$ac_ext <<_ACEOF 5573/* confdefs.h. */ 5574_ACEOF 5575cat confdefs.h >>conftest.$ac_ext 5576cat >>conftest.$ac_ext <<_ACEOF 5577/* end confdefs.h. */ 5578 5579int 5580main () 5581{ 5582 5583 ; 5584 return 0; 5585} 5586_ACEOF 5587rm -f conftest.$ac_objext 5588if { (ac_try="$ac_compile" 5589case "(($ac_try" in 5590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5591 *) ac_try_echo=$ac_try;; 5592esac 5593eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5594$as_echo "$ac_try_echo") >&5 5595 (eval "$ac_compile") 2>conftest.er1 5596 ac_status=$? 5597 grep -v '^ *+' conftest.er1 >conftest.err 5598 rm -f conftest.er1 5599 cat conftest.err >&5 5600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5601 (exit $ac_status); } && { 5602 test -z "$ac_cxx_werror_flag" || 5603 test ! -s conftest.err 5604 } && test -s conftest.$ac_objext; then 5605 ac_cv_prog_cxx_g=yes 5606else 5607 $as_echo "$as_me: failed program was:" >&5 5608sed 's/^/| /' conftest.$ac_ext >&5 5609 5610 CXXFLAGS="" 5611 cat >conftest.$ac_ext <<_ACEOF 5612/* confdefs.h. */ 5613_ACEOF 5614cat confdefs.h >>conftest.$ac_ext 5615cat >>conftest.$ac_ext <<_ACEOF 5616/* end confdefs.h. */ 5617 5618int 5619main () 5620{ 5621 5622 ; 5623 return 0; 5624} 5625_ACEOF 5626rm -f conftest.$ac_objext 5627if { (ac_try="$ac_compile" 5628case "(($ac_try" in 5629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5630 *) ac_try_echo=$ac_try;; 5631esac 5632eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5633$as_echo "$ac_try_echo") >&5 5634 (eval "$ac_compile") 2>conftest.er1 5635 ac_status=$? 5636 grep -v '^ *+' conftest.er1 >conftest.err 5637 rm -f conftest.er1 5638 cat conftest.err >&5 5639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5640 (exit $ac_status); } && { 5641 test -z "$ac_cxx_werror_flag" || 5642 test ! -s conftest.err 5643 } && test -s conftest.$ac_objext; then 5644 : 5645else 5646 $as_echo "$as_me: failed program was:" >&5 5647sed 's/^/| /' conftest.$ac_ext >&5 5648 5649 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5650 CXXFLAGS="-g" 5651 cat >conftest.$ac_ext <<_ACEOF 5652/* confdefs.h. */ 5653_ACEOF 5654cat confdefs.h >>conftest.$ac_ext 5655cat >>conftest.$ac_ext <<_ACEOF 5656/* end confdefs.h. */ 5657 5658int 5659main () 5660{ 5661 5662 ; 5663 return 0; 5664} 5665_ACEOF 5666rm -f conftest.$ac_objext 5667if { (ac_try="$ac_compile" 5668case "(($ac_try" in 5669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5670 *) ac_try_echo=$ac_try;; 5671esac 5672eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5673$as_echo "$ac_try_echo") >&5 5674 (eval "$ac_compile") 2>conftest.er1 5675 ac_status=$? 5676 grep -v '^ *+' conftest.er1 >conftest.err 5677 rm -f conftest.er1 5678 cat conftest.err >&5 5679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5680 (exit $ac_status); } && { 5681 test -z "$ac_cxx_werror_flag" || 5682 test ! -s conftest.err 5683 } && test -s conftest.$ac_objext; then 5684 ac_cv_prog_cxx_g=yes 5685else 5686 $as_echo "$as_me: failed program was:" >&5 5687sed 's/^/| /' conftest.$ac_ext >&5 5688 5689 5690fi 5691 5692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5693fi 5694 5695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5696fi 5697 5698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5699 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5700fi 5701{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5702$as_echo "$ac_cv_prog_cxx_g" >&6; } 5703if test "$ac_test_CXXFLAGS" = set; then 5704 CXXFLAGS=$ac_save_CXXFLAGS 5705elif test $ac_cv_prog_cxx_g = yes; then 5706 if test "$GXX" = yes; then 5707 CXXFLAGS="-g -O2" 5708 else 5709 CXXFLAGS="-g" 5710 fi 5711else 5712 if test "$GXX" = yes; then 5713 CXXFLAGS="-O2" 5714 else 5715 CXXFLAGS= 5716 fi 5717fi 5718ac_ext=cpp 5719ac_cpp='$CXXCPP $CPPFLAGS' 5720ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5721ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5722ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5723 5724depcc="$CXX" am_compiler_list= 5725 5726{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5727$as_echo_n "checking dependency style of $depcc... " >&6; } 5728if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5729 $as_echo_n "(cached) " >&6 5730else 5731 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5732 # We make a subdir and do the tests there. Otherwise we can end up 5733 # making bogus files that we don't know about and never remove. For 5734 # instance it was reported that on HP-UX the gcc test will end up 5735 # making a dummy file named `D' -- because `-MD' means `put the output 5736 # in D'. 5737 mkdir conftest.dir 5738 # Copy depcomp to subdir because otherwise we won't find it if we're 5739 # using a relative directory. 5740 cp "$am_depcomp" conftest.dir 5741 cd conftest.dir 5742 # We will build objects and dependencies in a subdirectory because 5743 # it helps to detect inapplicable dependency modes. For instance 5744 # both Tru64's cc and ICC support -MD to output dependencies as a 5745 # side effect of compilation, but ICC will put the dependencies in 5746 # the current directory while Tru64 will put them in the object 5747 # directory. 5748 mkdir sub 5749 5750 am_cv_CXX_dependencies_compiler_type=none 5751 if test "$am_compiler_list" = ""; then 5752 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5753 fi 5754 for depmode in $am_compiler_list; do 5755 # Setup a source with many dependencies, because some compilers 5756 # like to wrap large dependency lists on column 80 (with \), and 5757 # we should not choose a depcomp mode which is confused by this. 5758 # 5759 # We need to recreate these files for each test, as the compiler may 5760 # overwrite some of them when testing with obscure command lines. 5761 # This happens at least with the AIX C compiler. 5762 : > sub/conftest.c 5763 for i in 1 2 3 4 5 6; do 5764 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5765 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5766 # Solaris 8's {/usr,}/bin/sh. 5767 touch sub/conftst$i.h 5768 done 5769 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5770 5771 case $depmode in 5772 nosideeffect) 5773 # after this tag, mechanisms are not by side-effect, so they'll 5774 # only be used when explicitly requested 5775 if test "x$enable_dependency_tracking" = xyes; then 5776 continue 5777 else 5778 break 5779 fi 5780 ;; 5781 none) break ;; 5782 esac 5783 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5784 # mode. It turns out that the SunPro C++ compiler does not properly 5785 # handle `-M -o', and we need to detect this. 5786 if depmode=$depmode \ 5787 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5788 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5789 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5790 >/dev/null 2>conftest.err && 5791 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5792 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5793 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5794 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5795 # icc doesn't choke on unknown options, it will just issue warnings 5796 # or remarks (even with -Werror). So we grep stderr for any message 5797 # that says an option was ignored or not supported. 5798 # When given -MP, icc 7.0 and 7.1 complain thusly: 5799 # icc: Command line warning: ignoring option '-M'; no argument required 5800 # The diagnosis changed in icc 8.0: 5801 # icc: Command line remark: option '-MP' not supported 5802 if (grep 'ignoring option' conftest.err || 5803 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5804 am_cv_CXX_dependencies_compiler_type=$depmode 5805 break 5806 fi 5807 fi 5808 done 5809 5810 cd .. 5811 rm -rf conftest.dir 5812else 5813 am_cv_CXX_dependencies_compiler_type=none 5814fi 5815 5816fi 5817{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5818$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 5819CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5820 5821 if 5822 test "x$enable_dependency_tracking" != xno \ 5823 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5824 am__fastdepCXX_TRUE= 5825 am__fastdepCXX_FALSE='#' 5826else 5827 am__fastdepCXX_TRUE='#' 5828 am__fastdepCXX_FALSE= 5829fi 5830 5831 5832 5833 5834if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5835 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5836 (test "X$CXX" != "Xg++"))) ; then 5837 ac_ext=cpp 5838ac_cpp='$CXXCPP $CPPFLAGS' 5839ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5840ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5841ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5842{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5843$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 5844if test -z "$CXXCPP"; then 5845 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5846 $as_echo_n "(cached) " >&6 5847else 5848 # Double quotes because CXXCPP needs to be expanded 5849 for CXXCPP in "$CXX -E" "/lib/cpp" 5850 do 5851 ac_preproc_ok=false 5852for ac_cxx_preproc_warn_flag in '' yes 5853do 5854 # Use a header file that comes with gcc, so configuring glibc 5855 # with a fresh cross-compiler works. 5856 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5857 # <limits.h> exists even on freestanding compilers. 5858 # On the NeXT, cc -E runs the code through the compiler's parser, 5859 # not just through cpp. "Syntax error" is here to catch this case. 5860 cat >conftest.$ac_ext <<_ACEOF 5861/* confdefs.h. */ 5862_ACEOF 5863cat confdefs.h >>conftest.$ac_ext 5864cat >>conftest.$ac_ext <<_ACEOF 5865/* end confdefs.h. */ 5866#ifdef __STDC__ 5867# include <limits.h> 5868#else 5869# include <assert.h> 5870#endif 5871 Syntax error 5872_ACEOF 5873if { (ac_try="$ac_cpp conftest.$ac_ext" 5874case "(($ac_try" in 5875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5876 *) ac_try_echo=$ac_try;; 5877esac 5878eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5879$as_echo "$ac_try_echo") >&5 5880 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5881 ac_status=$? 5882 grep -v '^ *+' conftest.er1 >conftest.err 5883 rm -f conftest.er1 5884 cat conftest.err >&5 5885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5886 (exit $ac_status); } >/dev/null && { 5887 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5888 test ! -s conftest.err 5889 }; then 5890 : 5891else 5892 $as_echo "$as_me: failed program was:" >&5 5893sed 's/^/| /' conftest.$ac_ext >&5 5894 5895 # Broken: fails on valid input. 5896continue 5897fi 5898 5899rm -f conftest.err conftest.$ac_ext 5900 5901 # OK, works on sane cases. Now check whether nonexistent headers 5902 # can be detected and how. 5903 cat >conftest.$ac_ext <<_ACEOF 5904/* confdefs.h. */ 5905_ACEOF 5906cat confdefs.h >>conftest.$ac_ext 5907cat >>conftest.$ac_ext <<_ACEOF 5908/* end confdefs.h. */ 5909#include <ac_nonexistent.h> 5910_ACEOF 5911if { (ac_try="$ac_cpp conftest.$ac_ext" 5912case "(($ac_try" in 5913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5914 *) ac_try_echo=$ac_try;; 5915esac 5916eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5917$as_echo "$ac_try_echo") >&5 5918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5919 ac_status=$? 5920 grep -v '^ *+' conftest.er1 >conftest.err 5921 rm -f conftest.er1 5922 cat conftest.err >&5 5923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5924 (exit $ac_status); } >/dev/null && { 5925 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5926 test ! -s conftest.err 5927 }; then 5928 # Broken: success on invalid input. 5929continue 5930else 5931 $as_echo "$as_me: failed program was:" >&5 5932sed 's/^/| /' conftest.$ac_ext >&5 5933 5934 # Passes both tests. 5935ac_preproc_ok=: 5936break 5937fi 5938 5939rm -f conftest.err conftest.$ac_ext 5940 5941done 5942# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5943rm -f conftest.err conftest.$ac_ext 5944if $ac_preproc_ok; then 5945 break 5946fi 5947 5948 done 5949 ac_cv_prog_CXXCPP=$CXXCPP 5950 5951fi 5952 CXXCPP=$ac_cv_prog_CXXCPP 5953else 5954 ac_cv_prog_CXXCPP=$CXXCPP 5955fi 5956{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5 5957$as_echo "$CXXCPP" >&6; } 5958ac_preproc_ok=false 5959for ac_cxx_preproc_warn_flag in '' yes 5960do 5961 # Use a header file that comes with gcc, so configuring glibc 5962 # with a fresh cross-compiler works. 5963 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5964 # <limits.h> exists even on freestanding compilers. 5965 # On the NeXT, cc -E runs the code through the compiler's parser, 5966 # not just through cpp. "Syntax error" is here to catch this case. 5967 cat >conftest.$ac_ext <<_ACEOF 5968/* confdefs.h. */ 5969_ACEOF 5970cat confdefs.h >>conftest.$ac_ext 5971cat >>conftest.$ac_ext <<_ACEOF 5972/* end confdefs.h. */ 5973#ifdef __STDC__ 5974# include <limits.h> 5975#else 5976# include <assert.h> 5977#endif 5978 Syntax error 5979_ACEOF 5980if { (ac_try="$ac_cpp conftest.$ac_ext" 5981case "(($ac_try" in 5982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5983 *) ac_try_echo=$ac_try;; 5984esac 5985eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5986$as_echo "$ac_try_echo") >&5 5987 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5988 ac_status=$? 5989 grep -v '^ *+' conftest.er1 >conftest.err 5990 rm -f conftest.er1 5991 cat conftest.err >&5 5992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5993 (exit $ac_status); } >/dev/null && { 5994 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5995 test ! -s conftest.err 5996 }; then 5997 : 5998else 5999 $as_echo "$as_me: failed program was:" >&5 6000sed 's/^/| /' conftest.$ac_ext >&5 6001 6002 # Broken: fails on valid input. 6003continue 6004fi 6005 6006rm -f conftest.err conftest.$ac_ext 6007 6008 # OK, works on sane cases. Now check whether nonexistent headers 6009 # can be detected and how. 6010 cat >conftest.$ac_ext <<_ACEOF 6011/* confdefs.h. */ 6012_ACEOF 6013cat confdefs.h >>conftest.$ac_ext 6014cat >>conftest.$ac_ext <<_ACEOF 6015/* end confdefs.h. */ 6016#include <ac_nonexistent.h> 6017_ACEOF 6018if { (ac_try="$ac_cpp conftest.$ac_ext" 6019case "(($ac_try" in 6020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6021 *) ac_try_echo=$ac_try;; 6022esac 6023eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6024$as_echo "$ac_try_echo") >&5 6025 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6026 ac_status=$? 6027 grep -v '^ *+' conftest.er1 >conftest.err 6028 rm -f conftest.er1 6029 cat conftest.err >&5 6030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6031 (exit $ac_status); } >/dev/null && { 6032 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6033 test ! -s conftest.err 6034 }; then 6035 # Broken: success on invalid input. 6036continue 6037else 6038 $as_echo "$as_me: failed program was:" >&5 6039sed 's/^/| /' conftest.$ac_ext >&5 6040 6041 # Passes both tests. 6042ac_preproc_ok=: 6043break 6044fi 6045 6046rm -f conftest.err conftest.$ac_ext 6047 6048done 6049# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6050rm -f conftest.err conftest.$ac_ext 6051if $ac_preproc_ok; then 6052 : 6053else 6054 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 6055$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6056{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6057See \`config.log' for more details." >&5 6058$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6059See \`config.log' for more details." >&2;} 6060 { (exit 1); exit 1; }; }; } 6061fi 6062 6063ac_ext=cpp 6064ac_cpp='$CXXCPP $CPPFLAGS' 6065ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6066ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6067ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6068 6069fi 6070 6071 6072ac_ext=f 6073ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6074ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6075ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6076if test -n "$ac_tool_prefix"; then 6077 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 6078 do 6079 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6080set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6081{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6082$as_echo_n "checking for $ac_word... " >&6; } 6083if test "${ac_cv_prog_F77+set}" = set; then 6084 $as_echo_n "(cached) " >&6 6085else 6086 if test -n "$F77"; then 6087 ac_cv_prog_F77="$F77" # Let the user override the test. 6088else 6089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6090for as_dir in $PATH 6091do 6092 IFS=$as_save_IFS 6093 test -z "$as_dir" && as_dir=. 6094 for ac_exec_ext in '' $ac_executable_extensions; do 6095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6096 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 6097 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6098 break 2 6099 fi 6100done 6101done 6102IFS=$as_save_IFS 6103 6104fi 6105fi 6106F77=$ac_cv_prog_F77 6107if test -n "$F77"; then 6108 { $as_echo "$as_me:$LINENO: result: $F77" >&5 6109$as_echo "$F77" >&6; } 6110else 6111 { $as_echo "$as_me:$LINENO: result: no" >&5 6112$as_echo "no" >&6; } 6113fi 6114 6115 6116 test -n "$F77" && break 6117 done 6118fi 6119if test -z "$F77"; then 6120 ac_ct_F77=$F77 6121 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 6122do 6123 # Extract the first word of "$ac_prog", so it can be a program name with args. 6124set dummy $ac_prog; ac_word=$2 6125{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6126$as_echo_n "checking for $ac_word... " >&6; } 6127if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 6128 $as_echo_n "(cached) " >&6 6129else 6130 if test -n "$ac_ct_F77"; then 6131 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 6132else 6133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6134for as_dir in $PATH 6135do 6136 IFS=$as_save_IFS 6137 test -z "$as_dir" && as_dir=. 6138 for ac_exec_ext in '' $ac_executable_extensions; do 6139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6140 ac_cv_prog_ac_ct_F77="$ac_prog" 6141 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6142 break 2 6143 fi 6144done 6145done 6146IFS=$as_save_IFS 6147 6148fi 6149fi 6150ac_ct_F77=$ac_cv_prog_ac_ct_F77 6151if test -n "$ac_ct_F77"; then 6152 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 6153$as_echo "$ac_ct_F77" >&6; } 6154else 6155 { $as_echo "$as_me:$LINENO: result: no" >&5 6156$as_echo "no" >&6; } 6157fi 6158 6159 6160 test -n "$ac_ct_F77" && break 6161done 6162 6163 if test "x$ac_ct_F77" = x; then 6164 F77="" 6165 else 6166 case $cross_compiling:$ac_tool_warned in 6167yes:) 6168{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6169$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6170ac_tool_warned=yes ;; 6171esac 6172 F77=$ac_ct_F77 6173 fi 6174fi 6175 6176 6177# Provide some information about the compiler. 6178$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 6179set X $ac_compile 6180ac_compiler=$2 6181{ (ac_try="$ac_compiler --version >&5" 6182case "(($ac_try" in 6183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6184 *) ac_try_echo=$ac_try;; 6185esac 6186eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6187$as_echo "$ac_try_echo") >&5 6188 (eval "$ac_compiler --version >&5") 2>&5 6189 ac_status=$? 6190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6191 (exit $ac_status); } 6192{ (ac_try="$ac_compiler -v >&5" 6193case "(($ac_try" in 6194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6195 *) ac_try_echo=$ac_try;; 6196esac 6197eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6198$as_echo "$ac_try_echo") >&5 6199 (eval "$ac_compiler -v >&5") 2>&5 6200 ac_status=$? 6201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6202 (exit $ac_status); } 6203{ (ac_try="$ac_compiler -V >&5" 6204case "(($ac_try" in 6205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6206 *) ac_try_echo=$ac_try;; 6207esac 6208eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6209$as_echo "$ac_try_echo") >&5 6210 (eval "$ac_compiler -V >&5") 2>&5 6211 ac_status=$? 6212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6213 (exit $ac_status); } 6214rm -f a.out 6215 6216# If we don't use `.F' as extension, the preprocessor is not run on the 6217# input file. (Note that this only needs to work for GNU compilers.) 6218ac_save_ext=$ac_ext 6219ac_ext=F 6220{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6221$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; } 6222if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6223 $as_echo_n "(cached) " >&6 6224else 6225 cat >conftest.$ac_ext <<_ACEOF 6226 program main 6227#ifndef __GNUC__ 6228 choke me 6229#endif 6230 6231 end 6232_ACEOF 6233rm -f conftest.$ac_objext 6234if { (ac_try="$ac_compile" 6235case "(($ac_try" in 6236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6237 *) ac_try_echo=$ac_try;; 6238esac 6239eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6240$as_echo "$ac_try_echo") >&5 6241 (eval "$ac_compile") 2>conftest.er1 6242 ac_status=$? 6243 grep -v '^ *+' conftest.er1 >conftest.err 6244 rm -f conftest.er1 6245 cat conftest.err >&5 6246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6247 (exit $ac_status); } && { 6248 test -z "$ac_f77_werror_flag" || 6249 test ! -s conftest.err 6250 } && test -s conftest.$ac_objext; then 6251 ac_compiler_gnu=yes 6252else 6253 $as_echo "$as_me: failed program was:" >&5 6254sed 's/^/| /' conftest.$ac_ext >&5 6255 6256 ac_compiler_gnu=no 6257fi 6258 6259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6260ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6261 6262fi 6263{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6264$as_echo "$ac_cv_f77_compiler_gnu" >&6; } 6265ac_ext=$ac_save_ext 6266ac_test_FFLAGS=${FFLAGS+set} 6267ac_save_FFLAGS=$FFLAGS 6268FFLAGS= 6269{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6270$as_echo_n "checking whether $F77 accepts -g... " >&6; } 6271if test "${ac_cv_prog_f77_g+set}" = set; then 6272 $as_echo_n "(cached) " >&6 6273else 6274 FFLAGS=-g 6275cat >conftest.$ac_ext <<_ACEOF 6276 program main 6277 6278 end 6279_ACEOF 6280rm -f conftest.$ac_objext 6281if { (ac_try="$ac_compile" 6282case "(($ac_try" in 6283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6284 *) ac_try_echo=$ac_try;; 6285esac 6286eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6287$as_echo "$ac_try_echo") >&5 6288 (eval "$ac_compile") 2>conftest.er1 6289 ac_status=$? 6290 grep -v '^ *+' conftest.er1 >conftest.err 6291 rm -f conftest.er1 6292 cat conftest.err >&5 6293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6294 (exit $ac_status); } && { 6295 test -z "$ac_f77_werror_flag" || 6296 test ! -s conftest.err 6297 } && test -s conftest.$ac_objext; then 6298 ac_cv_prog_f77_g=yes 6299else 6300 $as_echo "$as_me: failed program was:" >&5 6301sed 's/^/| /' conftest.$ac_ext >&5 6302 6303 ac_cv_prog_f77_g=no 6304fi 6305 6306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6307 6308fi 6309{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6310$as_echo "$ac_cv_prog_f77_g" >&6; } 6311if test "$ac_test_FFLAGS" = set; then 6312 FFLAGS=$ac_save_FFLAGS 6313elif test $ac_cv_prog_f77_g = yes; then 6314 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6315 FFLAGS="-g -O2" 6316 else 6317 FFLAGS="-g" 6318 fi 6319else 6320 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6321 FFLAGS="-O2" 6322 else 6323 FFLAGS= 6324 fi 6325fi 6326 6327if test $ac_compiler_gnu = yes; then 6328 G77=yes 6329else 6330 G77= 6331fi 6332ac_ext=c 6333ac_cpp='$CPP $CPPFLAGS' 6334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6336ac_compiler_gnu=$ac_cv_c_compiler_gnu 6337 6338 6339 6340# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6341# find the maximum length of command line arguments 6342{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6343$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6344if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6345 $as_echo_n "(cached) " >&6 6346else 6347 i=0 6348 teststring="ABCD" 6349 6350 case $build_os in 6351 msdosdjgpp*) 6352 # On DJGPP, this test can blow up pretty badly due to problems in libc 6353 # (any single argument exceeding 2000 bytes causes a buffer overrun 6354 # during glob expansion). Even if it were fixed, the result of this 6355 # check would be larger than it should be. 6356 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6357 ;; 6358 6359 gnu*) 6360 # Under GNU Hurd, this test is not required because there is 6361 # no limit to the length of command line arguments. 6362 # Libtool will interpret -1 as no limit whatsoever 6363 lt_cv_sys_max_cmd_len=-1; 6364 ;; 6365 6366 cygwin* | mingw*) 6367 # On Win9x/ME, this test blows up -- it succeeds, but takes 6368 # about 5 minutes as the teststring grows exponentially. 6369 # Worse, since 9x/ME are not pre-emptively multitasking, 6370 # you end up with a "frozen" computer, even though with patience 6371 # the test eventually succeeds (with a max line length of 256k). 6372 # Instead, let's just punt: use the minimum linelength reported by 6373 # all of the supported platforms: 8192 (on NT/2K/XP). 6374 lt_cv_sys_max_cmd_len=8192; 6375 ;; 6376 6377 amigaos*) 6378 # On AmigaOS with pdksh, this test takes hours, literally. 6379 # So we just punt and use a minimum line length of 8192. 6380 lt_cv_sys_max_cmd_len=8192; 6381 ;; 6382 6383 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6384 # This has been around since 386BSD, at least. Likely further. 6385 if test -x /sbin/sysctl; then 6386 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6387 elif test -x /usr/sbin/sysctl; then 6388 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6389 else 6390 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6391 fi 6392 # And add a safety zone 6393 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6394 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6395 ;; 6396 6397 interix*) 6398 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6399 lt_cv_sys_max_cmd_len=196608 6400 ;; 6401 6402 osf*) 6403 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6404 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6405 # nice to cause kernel panics so lets avoid the loop below. 6406 # First set a reasonable default. 6407 lt_cv_sys_max_cmd_len=16384 6408 # 6409 if test -x /sbin/sysconfig; then 6410 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6411 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6412 esac 6413 fi 6414 ;; 6415 sco3.2v5*) 6416 lt_cv_sys_max_cmd_len=102400 6417 ;; 6418 sysv5* | sco5v6* | sysv4.2uw2*) 6419 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6420 if test -n "$kargmax"; then 6421 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6422 else 6423 lt_cv_sys_max_cmd_len=32768 6424 fi 6425 ;; 6426 *) 6427 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6428 if test -n "$lt_cv_sys_max_cmd_len"; then 6429 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6430 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6431 else 6432 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6433 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6434 = "XX$teststring") >/dev/null 2>&1 && 6435 new_result=`expr "X$teststring" : ".*" 2>&1` && 6436 lt_cv_sys_max_cmd_len=$new_result && 6437 test $i != 17 # 1/2 MB should be enough 6438 do 6439 i=`expr $i + 1` 6440 teststring=$teststring$teststring 6441 done 6442 teststring= 6443 # Add a significant safety factor because C++ compilers can tack on massive 6444 # amounts of additional arguments before passing them to the linker. 6445 # It appears as though 1/2 is a usable value. 6446 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6447 fi 6448 ;; 6449 esac 6450 6451fi 6452 6453if test -n $lt_cv_sys_max_cmd_len ; then 6454 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6455$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6456else 6457 { $as_echo "$as_me:$LINENO: result: none" >&5 6458$as_echo "none" >&6; } 6459fi 6460 6461 6462 6463 6464 6465# Check for command to grab the raw symbol name followed by C symbol from nm. 6466{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6467$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6468if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6469 $as_echo_n "(cached) " >&6 6470else 6471 6472# These are sane defaults that work on at least a few old systems. 6473# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6474 6475# Character class describing NM global symbol codes. 6476symcode='[BCDEGRST]' 6477 6478# Regexp to match symbols that can be accessed directly from C. 6479sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6480 6481# Transform an extracted symbol line into a proper C declaration 6482lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6483 6484# Transform an extracted symbol line into symbol name and symbol address 6485lt_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'" 6486 6487# Define system-specific variables. 6488case $host_os in 6489aix*) 6490 symcode='[BCDT]' 6491 ;; 6492cygwin* | mingw* | pw32*) 6493 symcode='[ABCDGISTW]' 6494 ;; 6495hpux*) # Its linker distinguishes data from code symbols 6496 if test "$host_cpu" = ia64; then 6497 symcode='[ABCDEGRST]' 6498 fi 6499 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6500 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'" 6501 ;; 6502linux* | k*bsd*-gnu) 6503 if test "$host_cpu" = ia64; then 6504 symcode='[ABCDGIRSTW]' 6505 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6506 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'" 6507 fi 6508 ;; 6509irix* | nonstopux*) 6510 symcode='[BCDEGRST]' 6511 ;; 6512osf*) 6513 symcode='[BCDEGQRST]' 6514 ;; 6515solaris*) 6516 symcode='[BDRT]' 6517 ;; 6518sco3.2v5*) 6519 symcode='[DT]' 6520 ;; 6521sysv4.2uw2*) 6522 symcode='[DT]' 6523 ;; 6524sysv5* | sco5v6* | unixware* | OpenUNIX*) 6525 symcode='[ABDT]' 6526 ;; 6527sysv4) 6528 symcode='[DFNSTU]' 6529 ;; 6530esac 6531 6532# Handle CRLF in mingw tool chain 6533opt_cr= 6534case $build_os in 6535mingw*) 6536 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6537 ;; 6538esac 6539 6540# If we're using GNU nm, then use its standard symbol codes. 6541case `$NM -V 2>&1` in 6542*GNU* | *'with BFD'*) 6543 symcode='[ABCDGIRSTW]' ;; 6544esac 6545 6546# Try without a prefix undercore, then with it. 6547for ac_symprfx in "" "_"; do 6548 6549 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6550 symxfrm="\\1 $ac_symprfx\\2 \\2" 6551 6552 # Write the raw and C identifiers. 6553 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6554 6555 # Check to see that the pipe works correctly. 6556 pipe_works=no 6557 6558 rm -f conftest* 6559 cat > conftest.$ac_ext <<EOF 6560#ifdef __cplusplus 6561extern "C" { 6562#endif 6563char nm_test_var; 6564void nm_test_func(){} 6565#ifdef __cplusplus 6566} 6567#endif 6568int main(){nm_test_var='a';nm_test_func();return(0);} 6569EOF 6570 6571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6572 (eval $ac_compile) 2>&5 6573 ac_status=$? 6574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6575 (exit $ac_status); }; then 6576 # Now try to grab the symbols. 6577 nlist=conftest.nm 6578 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6579 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6580 ac_status=$? 6581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6582 (exit $ac_status); } && test -s "$nlist"; then 6583 # Try sorting and uniquifying the output. 6584 if sort "$nlist" | uniq > "$nlist"T; then 6585 mv -f "$nlist"T "$nlist" 6586 else 6587 rm -f "$nlist"T 6588 fi 6589 6590 # Make sure that we snagged all the symbols we need. 6591 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6592 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6593 cat <<EOF > conftest.$ac_ext 6594#ifdef __cplusplus 6595extern "C" { 6596#endif 6597 6598EOF 6599 # Now generate the symbol file. 6600 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6601 6602 cat <<EOF >> conftest.$ac_ext 6603#if defined (__STDC__) && __STDC__ 6604# define lt_ptr_t void * 6605#else 6606# define lt_ptr_t char * 6607# define const 6608#endif 6609 6610/* The mapping between symbol names and symbols. */ 6611const struct { 6612 const char *name; 6613 lt_ptr_t address; 6614} 6615lt_preloaded_symbols[] = 6616{ 6617EOF 6618 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6619 cat <<\EOF >> conftest.$ac_ext 6620 {0, (lt_ptr_t) 0} 6621}; 6622 6623#ifdef __cplusplus 6624} 6625#endif 6626EOF 6627 # Now try linking the two files. 6628 mv conftest.$ac_objext conftstm.$ac_objext 6629 lt_save_LIBS="$LIBS" 6630 lt_save_CFLAGS="$CFLAGS" 6631 LIBS="conftstm.$ac_objext" 6632 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6634 (eval $ac_link) 2>&5 6635 ac_status=$? 6636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6637 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6638 pipe_works=yes 6639 fi 6640 LIBS="$lt_save_LIBS" 6641 CFLAGS="$lt_save_CFLAGS" 6642 else 6643 echo "cannot find nm_test_func in $nlist" >&5 6644 fi 6645 else 6646 echo "cannot find nm_test_var in $nlist" >&5 6647 fi 6648 else 6649 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6650 fi 6651 else 6652 echo "$progname: failed program was:" >&5 6653 cat conftest.$ac_ext >&5 6654 fi 6655 rm -rf conftest* conftst* 6656 6657 # Do not use the global_symbol_pipe unless it works. 6658 if test "$pipe_works" = yes; then 6659 break 6660 else 6661 lt_cv_sys_global_symbol_pipe= 6662 fi 6663done 6664 6665fi 6666 6667if test -z "$lt_cv_sys_global_symbol_pipe"; then 6668 lt_cv_sys_global_symbol_to_cdecl= 6669fi 6670if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6671 { $as_echo "$as_me:$LINENO: result: failed" >&5 6672$as_echo "failed" >&6; } 6673else 6674 { $as_echo "$as_me:$LINENO: result: ok" >&5 6675$as_echo "ok" >&6; } 6676fi 6677 6678{ $as_echo "$as_me:$LINENO: checking for objdir" >&5 6679$as_echo_n "checking for objdir... " >&6; } 6680if test "${lt_cv_objdir+set}" = set; then 6681 $as_echo_n "(cached) " >&6 6682else 6683 rm -f .libs 2>/dev/null 6684mkdir .libs 2>/dev/null 6685if test -d .libs; then 6686 lt_cv_objdir=.libs 6687else 6688 # MS-DOS does not allow filenames that begin with a dot. 6689 lt_cv_objdir=_libs 6690fi 6691rmdir .libs 2>/dev/null 6692fi 6693{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6694$as_echo "$lt_cv_objdir" >&6; } 6695objdir=$lt_cv_objdir 6696 6697 6698 6699 6700 6701case $host_os in 6702aix3*) 6703 # AIX sometimes has problems with the GCC collect2 program. For some 6704 # reason, if we set the COLLECT_NAMES environment variable, the problems 6705 # vanish in a puff of smoke. 6706 if test "X${COLLECT_NAMES+set}" != Xset; then 6707 COLLECT_NAMES= 6708 export COLLECT_NAMES 6709 fi 6710 ;; 6711esac 6712 6713# Sed substitution that helps us do robust quoting. It backslashifies 6714# metacharacters that are still active within double-quoted strings. 6715Xsed='sed -e 1s/^X//' 6716sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6717 6718# Same as above, but do not quote variable references. 6719double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6720 6721# Sed substitution to delay expansion of an escaped shell variable in a 6722# double_quote_subst'ed string. 6723delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6724 6725# Sed substitution to avoid accidental globbing in evaled expressions 6726no_glob_subst='s/\*/\\\*/g' 6727 6728# Constants: 6729rm="rm -f" 6730 6731# Global variables: 6732default_ofile=libtool 6733can_build_shared=yes 6734 6735# All known linkers require a `.a' archive for static linking (except MSVC, 6736# which needs '.lib'). 6737libext=a 6738ltmain="$ac_aux_dir/ltmain.sh" 6739ofile="$default_ofile" 6740with_gnu_ld="$lt_cv_prog_gnu_ld" 6741 6742if test -n "$ac_tool_prefix"; then 6743 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6744set dummy ${ac_tool_prefix}ar; ac_word=$2 6745{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6746$as_echo_n "checking for $ac_word... " >&6; } 6747if test "${ac_cv_prog_AR+set}" = set; then 6748 $as_echo_n "(cached) " >&6 6749else 6750 if test -n "$AR"; then 6751 ac_cv_prog_AR="$AR" # Let the user override the test. 6752else 6753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6754for as_dir in $PATH 6755do 6756 IFS=$as_save_IFS 6757 test -z "$as_dir" && as_dir=. 6758 for ac_exec_ext in '' $ac_executable_extensions; do 6759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6760 ac_cv_prog_AR="${ac_tool_prefix}ar" 6761 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6762 break 2 6763 fi 6764done 6765done 6766IFS=$as_save_IFS 6767 6768fi 6769fi 6770AR=$ac_cv_prog_AR 6771if test -n "$AR"; then 6772 { $as_echo "$as_me:$LINENO: result: $AR" >&5 6773$as_echo "$AR" >&6; } 6774else 6775 { $as_echo "$as_me:$LINENO: result: no" >&5 6776$as_echo "no" >&6; } 6777fi 6778 6779 6780fi 6781if test -z "$ac_cv_prog_AR"; then 6782 ac_ct_AR=$AR 6783 # Extract the first word of "ar", so it can be a program name with args. 6784set dummy ar; ac_word=$2 6785{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6786$as_echo_n "checking for $ac_word... " >&6; } 6787if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6788 $as_echo_n "(cached) " >&6 6789else 6790 if test -n "$ac_ct_AR"; then 6791 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6792else 6793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6794for as_dir in $PATH 6795do 6796 IFS=$as_save_IFS 6797 test -z "$as_dir" && as_dir=. 6798 for ac_exec_ext in '' $ac_executable_extensions; do 6799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6800 ac_cv_prog_ac_ct_AR="ar" 6801 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6802 break 2 6803 fi 6804done 6805done 6806IFS=$as_save_IFS 6807 6808fi 6809fi 6810ac_ct_AR=$ac_cv_prog_ac_ct_AR 6811if test -n "$ac_ct_AR"; then 6812 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6813$as_echo "$ac_ct_AR" >&6; } 6814else 6815 { $as_echo "$as_me:$LINENO: result: no" >&5 6816$as_echo "no" >&6; } 6817fi 6818 6819 if test "x$ac_ct_AR" = x; then 6820 AR="false" 6821 else 6822 case $cross_compiling:$ac_tool_warned in 6823yes:) 6824{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6825$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6826ac_tool_warned=yes ;; 6827esac 6828 AR=$ac_ct_AR 6829 fi 6830else 6831 AR="$ac_cv_prog_AR" 6832fi 6833 6834if test -n "$ac_tool_prefix"; then 6835 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6836set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6837{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6838$as_echo_n "checking for $ac_word... " >&6; } 6839if test "${ac_cv_prog_RANLIB+set}" = set; then 6840 $as_echo_n "(cached) " >&6 6841else 6842 if test -n "$RANLIB"; then 6843 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6844else 6845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6846for as_dir in $PATH 6847do 6848 IFS=$as_save_IFS 6849 test -z "$as_dir" && as_dir=. 6850 for ac_exec_ext in '' $ac_executable_extensions; do 6851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6852 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6853 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6854 break 2 6855 fi 6856done 6857done 6858IFS=$as_save_IFS 6859 6860fi 6861fi 6862RANLIB=$ac_cv_prog_RANLIB 6863if test -n "$RANLIB"; then 6864 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 6865$as_echo "$RANLIB" >&6; } 6866else 6867 { $as_echo "$as_me:$LINENO: result: no" >&5 6868$as_echo "no" >&6; } 6869fi 6870 6871 6872fi 6873if test -z "$ac_cv_prog_RANLIB"; then 6874 ac_ct_RANLIB=$RANLIB 6875 # Extract the first word of "ranlib", so it can be a program name with args. 6876set dummy ranlib; ac_word=$2 6877{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6878$as_echo_n "checking for $ac_word... " >&6; } 6879if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6880 $as_echo_n "(cached) " >&6 6881else 6882 if test -n "$ac_ct_RANLIB"; then 6883 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6884else 6885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6886for as_dir in $PATH 6887do 6888 IFS=$as_save_IFS 6889 test -z "$as_dir" && as_dir=. 6890 for ac_exec_ext in '' $ac_executable_extensions; do 6891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6892 ac_cv_prog_ac_ct_RANLIB="ranlib" 6893 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6894 break 2 6895 fi 6896done 6897done 6898IFS=$as_save_IFS 6899 6900fi 6901fi 6902ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6903if test -n "$ac_ct_RANLIB"; then 6904 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6905$as_echo "$ac_ct_RANLIB" >&6; } 6906else 6907 { $as_echo "$as_me:$LINENO: result: no" >&5 6908$as_echo "no" >&6; } 6909fi 6910 6911 if test "x$ac_ct_RANLIB" = x; then 6912 RANLIB=":" 6913 else 6914 case $cross_compiling:$ac_tool_warned in 6915yes:) 6916{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6917$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6918ac_tool_warned=yes ;; 6919esac 6920 RANLIB=$ac_ct_RANLIB 6921 fi 6922else 6923 RANLIB="$ac_cv_prog_RANLIB" 6924fi 6925 6926if test -n "$ac_tool_prefix"; then 6927 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6928set dummy ${ac_tool_prefix}strip; ac_word=$2 6929{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6930$as_echo_n "checking for $ac_word... " >&6; } 6931if test "${ac_cv_prog_STRIP+set}" = set; then 6932 $as_echo_n "(cached) " >&6 6933else 6934 if test -n "$STRIP"; then 6935 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6936else 6937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6938for as_dir in $PATH 6939do 6940 IFS=$as_save_IFS 6941 test -z "$as_dir" && as_dir=. 6942 for ac_exec_ext in '' $ac_executable_extensions; do 6943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6944 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6945 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6946 break 2 6947 fi 6948done 6949done 6950IFS=$as_save_IFS 6951 6952fi 6953fi 6954STRIP=$ac_cv_prog_STRIP 6955if test -n "$STRIP"; then 6956 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 6957$as_echo "$STRIP" >&6; } 6958else 6959 { $as_echo "$as_me:$LINENO: result: no" >&5 6960$as_echo "no" >&6; } 6961fi 6962 6963 6964fi 6965if test -z "$ac_cv_prog_STRIP"; then 6966 ac_ct_STRIP=$STRIP 6967 # Extract the first word of "strip", so it can be a program name with args. 6968set dummy strip; ac_word=$2 6969{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6970$as_echo_n "checking for $ac_word... " >&6; } 6971if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6972 $as_echo_n "(cached) " >&6 6973else 6974 if test -n "$ac_ct_STRIP"; then 6975 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6976else 6977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6978for as_dir in $PATH 6979do 6980 IFS=$as_save_IFS 6981 test -z "$as_dir" && as_dir=. 6982 for ac_exec_ext in '' $ac_executable_extensions; do 6983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6984 ac_cv_prog_ac_ct_STRIP="strip" 6985 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6986 break 2 6987 fi 6988done 6989done 6990IFS=$as_save_IFS 6991 6992fi 6993fi 6994ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6995if test -n "$ac_ct_STRIP"; then 6996 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6997$as_echo "$ac_ct_STRIP" >&6; } 6998else 6999 { $as_echo "$as_me:$LINENO: result: no" >&5 7000$as_echo "no" >&6; } 7001fi 7002 7003 if test "x$ac_ct_STRIP" = x; then 7004 STRIP=":" 7005 else 7006 case $cross_compiling:$ac_tool_warned in 7007yes:) 7008{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7009$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7010ac_tool_warned=yes ;; 7011esac 7012 STRIP=$ac_ct_STRIP 7013 fi 7014else 7015 STRIP="$ac_cv_prog_STRIP" 7016fi 7017 7018 7019old_CC="$CC" 7020old_CFLAGS="$CFLAGS" 7021 7022# Set sane defaults for various variables 7023test -z "$AR" && AR=ar 7024test -z "$AR_FLAGS" && AR_FLAGS=cru 7025test -z "$AS" && AS=as 7026test -z "$CC" && CC=cc 7027test -z "$LTCC" && LTCC=$CC 7028test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7029test -z "$DLLTOOL" && DLLTOOL=dlltool 7030test -z "$LD" && LD=ld 7031test -z "$LN_S" && LN_S="ln -s" 7032test -z "$MAGIC_CMD" && MAGIC_CMD=file 7033test -z "$NM" && NM=nm 7034test -z "$SED" && SED=sed 7035test -z "$OBJDUMP" && OBJDUMP=objdump 7036test -z "$RANLIB" && RANLIB=: 7037test -z "$STRIP" && STRIP=: 7038test -z "$ac_objext" && ac_objext=o 7039 7040# Determine commands to create old-style static archives. 7041old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7042old_postinstall_cmds='chmod 644 $oldlib' 7043old_postuninstall_cmds= 7044 7045if test -n "$RANLIB"; then 7046 case $host_os in 7047 openbsd*) 7048 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7049 ;; 7050 *) 7051 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7052 ;; 7053 esac 7054 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7055fi 7056 7057for cc_temp in $compiler""; do 7058 case $cc_temp in 7059 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7060 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7061 \-*) ;; 7062 *) break;; 7063 esac 7064done 7065cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7066 7067 7068# Only perform the check for file, if the check method requires it 7069case $deplibs_check_method in 7070file_magic*) 7071 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7072 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7073$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7074if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7075 $as_echo_n "(cached) " >&6 7076else 7077 case $MAGIC_CMD in 7078[\\/*] | ?:[\\/]*) 7079 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7080 ;; 7081*) 7082 lt_save_MAGIC_CMD="$MAGIC_CMD" 7083 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7084 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7085 for ac_dir in $ac_dummy; do 7086 IFS="$lt_save_ifs" 7087 test -z "$ac_dir" && ac_dir=. 7088 if test -f $ac_dir/${ac_tool_prefix}file; then 7089 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7090 if test -n "$file_magic_test_file"; then 7091 case $deplibs_check_method in 7092 "file_magic "*) 7093 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7094 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7095 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7096 $EGREP "$file_magic_regex" > /dev/null; then 7097 : 7098 else 7099 cat <<EOF 1>&2 7100 7101*** Warning: the command libtool uses to detect shared libraries, 7102*** $file_magic_cmd, produces output that libtool cannot recognize. 7103*** The result is that libtool may fail to recognize shared libraries 7104*** as such. This will affect the creation of libtool libraries that 7105*** depend on shared libraries, but programs linked with such libtool 7106*** libraries will work regardless of this problem. Nevertheless, you 7107*** may want to report the problem to your system manager and/or to 7108*** bug-libtool@gnu.org 7109 7110EOF 7111 fi ;; 7112 esac 7113 fi 7114 break 7115 fi 7116 done 7117 IFS="$lt_save_ifs" 7118 MAGIC_CMD="$lt_save_MAGIC_CMD" 7119 ;; 7120esac 7121fi 7122 7123MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7124if test -n "$MAGIC_CMD"; then 7125 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7126$as_echo "$MAGIC_CMD" >&6; } 7127else 7128 { $as_echo "$as_me:$LINENO: result: no" >&5 7129$as_echo "no" >&6; } 7130fi 7131 7132if test -z "$lt_cv_path_MAGIC_CMD"; then 7133 if test -n "$ac_tool_prefix"; then 7134 { $as_echo "$as_me:$LINENO: checking for file" >&5 7135$as_echo_n "checking for file... " >&6; } 7136if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7137 $as_echo_n "(cached) " >&6 7138else 7139 case $MAGIC_CMD in 7140[\\/*] | ?:[\\/]*) 7141 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7142 ;; 7143*) 7144 lt_save_MAGIC_CMD="$MAGIC_CMD" 7145 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7146 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7147 for ac_dir in $ac_dummy; do 7148 IFS="$lt_save_ifs" 7149 test -z "$ac_dir" && ac_dir=. 7150 if test -f $ac_dir/file; then 7151 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7152 if test -n "$file_magic_test_file"; then 7153 case $deplibs_check_method in 7154 "file_magic "*) 7155 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7156 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7157 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7158 $EGREP "$file_magic_regex" > /dev/null; then 7159 : 7160 else 7161 cat <<EOF 1>&2 7162 7163*** Warning: the command libtool uses to detect shared libraries, 7164*** $file_magic_cmd, produces output that libtool cannot recognize. 7165*** The result is that libtool may fail to recognize shared libraries 7166*** as such. This will affect the creation of libtool libraries that 7167*** depend on shared libraries, but programs linked with such libtool 7168*** libraries will work regardless of this problem. Nevertheless, you 7169*** may want to report the problem to your system manager and/or to 7170*** bug-libtool@gnu.org 7171 7172EOF 7173 fi ;; 7174 esac 7175 fi 7176 break 7177 fi 7178 done 7179 IFS="$lt_save_ifs" 7180 MAGIC_CMD="$lt_save_MAGIC_CMD" 7181 ;; 7182esac 7183fi 7184 7185MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7186if test -n "$MAGIC_CMD"; then 7187 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7188$as_echo "$MAGIC_CMD" >&6; } 7189else 7190 { $as_echo "$as_me:$LINENO: result: no" >&5 7191$as_echo "no" >&6; } 7192fi 7193 7194 else 7195 MAGIC_CMD=: 7196 fi 7197fi 7198 7199 fi 7200 ;; 7201esac 7202 7203 7204 case $host_os in 7205 rhapsody* | darwin*) 7206 if test -n "$ac_tool_prefix"; then 7207 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7208set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7209{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7210$as_echo_n "checking for $ac_word... " >&6; } 7211if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 7212 $as_echo_n "(cached) " >&6 7213else 7214 if test -n "$DSYMUTIL"; then 7215 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7216else 7217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7218for as_dir in $PATH 7219do 7220 IFS=$as_save_IFS 7221 test -z "$as_dir" && as_dir=. 7222 for ac_exec_ext in '' $ac_executable_extensions; do 7223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7224 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7225 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7226 break 2 7227 fi 7228done 7229done 7230IFS=$as_save_IFS 7231 7232fi 7233fi 7234DSYMUTIL=$ac_cv_prog_DSYMUTIL 7235if test -n "$DSYMUTIL"; then 7236 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 7237$as_echo "$DSYMUTIL" >&6; } 7238else 7239 { $as_echo "$as_me:$LINENO: result: no" >&5 7240$as_echo "no" >&6; } 7241fi 7242 7243 7244fi 7245if test -z "$ac_cv_prog_DSYMUTIL"; then 7246 ac_ct_DSYMUTIL=$DSYMUTIL 7247 # Extract the first word of "dsymutil", so it can be a program name with args. 7248set dummy dsymutil; ac_word=$2 7249{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7250$as_echo_n "checking for $ac_word... " >&6; } 7251if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 7252 $as_echo_n "(cached) " >&6 7253else 7254 if test -n "$ac_ct_DSYMUTIL"; then 7255 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7256else 7257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7258for as_dir in $PATH 7259do 7260 IFS=$as_save_IFS 7261 test -z "$as_dir" && as_dir=. 7262 for ac_exec_ext in '' $ac_executable_extensions; do 7263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7264 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7265 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7266 break 2 7267 fi 7268done 7269done 7270IFS=$as_save_IFS 7271 7272fi 7273fi 7274ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7275if test -n "$ac_ct_DSYMUTIL"; then 7276 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 7277$as_echo "$ac_ct_DSYMUTIL" >&6; } 7278else 7279 { $as_echo "$as_me:$LINENO: result: no" >&5 7280$as_echo "no" >&6; } 7281fi 7282 7283 if test "x$ac_ct_DSYMUTIL" = x; then 7284 DSYMUTIL=":" 7285 else 7286 case $cross_compiling:$ac_tool_warned in 7287yes:) 7288{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7289$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7290ac_tool_warned=yes ;; 7291esac 7292 DSYMUTIL=$ac_ct_DSYMUTIL 7293 fi 7294else 7295 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7296fi 7297 7298 if test -n "$ac_tool_prefix"; then 7299 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7300set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7301{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7302$as_echo_n "checking for $ac_word... " >&6; } 7303if test "${ac_cv_prog_NMEDIT+set}" = set; then 7304 $as_echo_n "(cached) " >&6 7305else 7306 if test -n "$NMEDIT"; then 7307 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7308else 7309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7310for as_dir in $PATH 7311do 7312 IFS=$as_save_IFS 7313 test -z "$as_dir" && as_dir=. 7314 for ac_exec_ext in '' $ac_executable_extensions; do 7315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7316 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7317 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7318 break 2 7319 fi 7320done 7321done 7322IFS=$as_save_IFS 7323 7324fi 7325fi 7326NMEDIT=$ac_cv_prog_NMEDIT 7327if test -n "$NMEDIT"; then 7328 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 7329$as_echo "$NMEDIT" >&6; } 7330else 7331 { $as_echo "$as_me:$LINENO: result: no" >&5 7332$as_echo "no" >&6; } 7333fi 7334 7335 7336fi 7337if test -z "$ac_cv_prog_NMEDIT"; then 7338 ac_ct_NMEDIT=$NMEDIT 7339 # Extract the first word of "nmedit", so it can be a program name with args. 7340set dummy nmedit; ac_word=$2 7341{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7342$as_echo_n "checking for $ac_word... " >&6; } 7343if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 7344 $as_echo_n "(cached) " >&6 7345else 7346 if test -n "$ac_ct_NMEDIT"; then 7347 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7348else 7349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7350for as_dir in $PATH 7351do 7352 IFS=$as_save_IFS 7353 test -z "$as_dir" && as_dir=. 7354 for ac_exec_ext in '' $ac_executable_extensions; do 7355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7356 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7357 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7358 break 2 7359 fi 7360done 7361done 7362IFS=$as_save_IFS 7363 7364fi 7365fi 7366ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7367if test -n "$ac_ct_NMEDIT"; then 7368 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 7369$as_echo "$ac_ct_NMEDIT" >&6; } 7370else 7371 { $as_echo "$as_me:$LINENO: result: no" >&5 7372$as_echo "no" >&6; } 7373fi 7374 7375 if test "x$ac_ct_NMEDIT" = x; then 7376 NMEDIT=":" 7377 else 7378 case $cross_compiling:$ac_tool_warned in 7379yes:) 7380{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7381$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7382ac_tool_warned=yes ;; 7383esac 7384 NMEDIT=$ac_ct_NMEDIT 7385 fi 7386else 7387 NMEDIT="$ac_cv_prog_NMEDIT" 7388fi 7389 7390 7391 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 7392$as_echo_n "checking for -single_module linker flag... " >&6; } 7393if test "${lt_cv_apple_cc_single_mod+set}" = set; then 7394 $as_echo_n "(cached) " >&6 7395else 7396 lt_cv_apple_cc_single_mod=no 7397 if test -z "${LT_MULTI_MODULE}"; then 7398 # By default we will add the -single_module flag. You can override 7399 # by either setting the environment variable LT_MULTI_MODULE 7400 # non-empty at configure time, or by adding -multi_module to the 7401 # link flags. 7402 echo "int foo(void){return 1;}" > conftest.c 7403 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7404 -dynamiclib ${wl}-single_module conftest.c 7405 if test -f libconftest.dylib; then 7406 lt_cv_apple_cc_single_mod=yes 7407 rm -rf libconftest.dylib* 7408 fi 7409 rm conftest.c 7410 fi 7411fi 7412{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 7413$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7414 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 7415$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7416if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 7417 $as_echo_n "(cached) " >&6 7418else 7419 lt_cv_ld_exported_symbols_list=no 7420 save_LDFLAGS=$LDFLAGS 7421 echo "_main" > conftest.sym 7422 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7423 cat >conftest.$ac_ext <<_ACEOF 7424/* confdefs.h. */ 7425_ACEOF 7426cat confdefs.h >>conftest.$ac_ext 7427cat >>conftest.$ac_ext <<_ACEOF 7428/* end confdefs.h. */ 7429 7430int 7431main () 7432{ 7433 7434 ; 7435 return 0; 7436} 7437_ACEOF 7438rm -f conftest.$ac_objext conftest$ac_exeext 7439if { (ac_try="$ac_link" 7440case "(($ac_try" in 7441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7442 *) ac_try_echo=$ac_try;; 7443esac 7444eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7445$as_echo "$ac_try_echo") >&5 7446 (eval "$ac_link") 2>conftest.er1 7447 ac_status=$? 7448 grep -v '^ *+' conftest.er1 >conftest.err 7449 rm -f conftest.er1 7450 cat conftest.err >&5 7451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7452 (exit $ac_status); } && { 7453 test -z "$ac_c_werror_flag" || 7454 test ! -s conftest.err 7455 } && test -s conftest$ac_exeext && { 7456 test "$cross_compiling" = yes || 7457 $as_test_x conftest$ac_exeext 7458 }; then 7459 lt_cv_ld_exported_symbols_list=yes 7460else 7461 $as_echo "$as_me: failed program was:" >&5 7462sed 's/^/| /' conftest.$ac_ext >&5 7463 7464 lt_cv_ld_exported_symbols_list=no 7465fi 7466 7467rm -rf conftest.dSYM 7468rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7469 conftest$ac_exeext conftest.$ac_ext 7470 LDFLAGS="$save_LDFLAGS" 7471 7472fi 7473{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 7474$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7475 case $host_os in 7476 rhapsody* | darwin1.[0123]) 7477 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7478 darwin1.*) 7479 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7480 darwin*) 7481 # if running on 10.5 or later, the deployment target defaults 7482 # to the OS version, if on x86, and 10.4, the deployment 7483 # target defaults to 10.4. Don't you love it? 7484 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7485 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7486 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7487 10.[012]*) 7488 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7489 10.*) 7490 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7491 esac 7492 ;; 7493 esac 7494 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7495 _lt_dar_single_mod='$single_module' 7496 fi 7497 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7498 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7499 else 7500 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}" 7501 fi 7502 if test "$DSYMUTIL" != ":"; then 7503 _lt_dsymutil="~$DSYMUTIL \$lib || :" 7504 else 7505 _lt_dsymutil= 7506 fi 7507 ;; 7508 esac 7509 7510 7511enable_dlopen=no 7512enable_win32_dll=no 7513 7514# Check whether --enable-libtool-lock was given. 7515if test "${enable_libtool_lock+set}" = set; then 7516 enableval=$enable_libtool_lock; 7517fi 7518 7519test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7520 7521 7522# Check whether --with-pic was given. 7523if test "${with_pic+set}" = set; then 7524 withval=$with_pic; pic_mode="$withval" 7525else 7526 pic_mode=default 7527fi 7528 7529test -z "$pic_mode" && pic_mode=default 7530 7531# Check if we have a version mismatch between libtool.m4 and ltmain.sh. 7532# 7533# Note: This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined. 7534# We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually 7535# calls AC_LIBTOOL_CONFIG and creates libtool. 7536# 7537{ $as_echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5 7538$as_echo_n "checking for correct ltmain.sh version... " >&6; } 7539if test "x$ltmain" = "x" ; then 7540 { $as_echo "$as_me:$LINENO: result: no" >&5 7541$as_echo "no" >&6; } 7542 { { $as_echo "$as_me:$LINENO: error: 7543 7544*** [Gentoo] sanity check failed! *** 7545*** \$ltmain is not defined, please check the patch for consistency! *** 7546" >&5 7547$as_echo "$as_me: error: 7548 7549*** [Gentoo] sanity check failed! *** 7550*** \$ltmain is not defined, please check the patch for consistency! *** 7551" >&2;} 7552 { (exit 1); exit 1; }; } 7553fi 7554gentoo_lt_version="1.5.26" 7555gentoo_ltmain_version=`sed -n '/^[ ]*VERSION=/{s/^[ ]*VERSION=//;p;q;}' "$ltmain"` 7556if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then 7557 { $as_echo "$as_me:$LINENO: result: no" >&5 7558$as_echo "no" >&6; } 7559 { { $as_echo "$as_me:$LINENO: error: 7560 7561*** [Gentoo] sanity check failed! *** 7562*** libtool.m4 and ltmain.sh have a version mismatch! *** 7563*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) *** 7564 7565Please run: 7566 7567 libtoolize --copy --force 7568 7569if appropriate, please contact the maintainer of this 7570package (or your distribution) for help. 7571" >&5 7572$as_echo "$as_me: error: 7573 7574*** [Gentoo] sanity check failed! *** 7575*** libtool.m4 and ltmain.sh have a version mismatch! *** 7576*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) *** 7577 7578Please run: 7579 7580 libtoolize --copy --force 7581 7582if appropriate, please contact the maintainer of this 7583package (or your distribution) for help. 7584" >&2;} 7585 { (exit 1); exit 1; }; } 7586else 7587 { $as_echo "$as_me:$LINENO: result: yes" >&5 7588$as_echo "yes" >&6; } 7589fi 7590 7591 7592# Use C for the default configuration in the libtool script 7593tagname= 7594lt_save_CC="$CC" 7595ac_ext=c 7596ac_cpp='$CPP $CPPFLAGS' 7597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7599ac_compiler_gnu=$ac_cv_c_compiler_gnu 7600 7601 7602# Source file extension for C test sources. 7603ac_ext=c 7604 7605# Object file extension for compiled C test sources. 7606objext=o 7607objext=$objext 7608 7609# Code to be used in simple compile tests 7610lt_simple_compile_test_code="int some_variable = 0;" 7611 7612# Code to be used in simple link tests 7613lt_simple_link_test_code='int main(){return(0);}' 7614 7615 7616# If no C compiler was specified, use CC. 7617LTCC=${LTCC-"$CC"} 7618 7619# If no C compiler flags were specified, use CFLAGS. 7620LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7621 7622# Allow CC to be a program name with arguments. 7623compiler=$CC 7624 7625 7626# save warnings/boilerplate of simple test code 7627ac_outfile=conftest.$ac_objext 7628echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7629eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7630_lt_compiler_boilerplate=`cat conftest.err` 7631$rm conftest* 7632 7633ac_outfile=conftest.$ac_objext 7634echo "$lt_simple_link_test_code" >conftest.$ac_ext 7635eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7636_lt_linker_boilerplate=`cat conftest.err` 7637$rm -r conftest* 7638 7639 7640 7641lt_prog_compiler_no_builtin_flag= 7642 7643if test "$GCC" = yes; then 7644 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7645 7646 7647{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7648$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7649if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7650 $as_echo_n "(cached) " >&6 7651else 7652 lt_cv_prog_compiler_rtti_exceptions=no 7653 ac_outfile=conftest.$ac_objext 7654 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7655 lt_compiler_flag="-fno-rtti -fno-exceptions" 7656 # Insert the option either (1) after the last *FLAGS variable, or 7657 # (2) before a word containing "conftest.", or (3) at the end. 7658 # Note that $ac_compile itself does not contain backslashes and begins 7659 # with a dollar sign (not a hyphen), so the echo should work correctly. 7660 # The option is referenced via a variable to avoid confusing sed. 7661 lt_compile=`echo "$ac_compile" | $SED \ 7662 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7663 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7664 -e 's:$: $lt_compiler_flag:'` 7665 (eval echo "\"\$as_me:7665: $lt_compile\"" >&5) 7666 (eval "$lt_compile" 2>conftest.err) 7667 ac_status=$? 7668 cat conftest.err >&5 7669 echo "$as_me:7669: \$? = $ac_status" >&5 7670 if (exit $ac_status) && test -s "$ac_outfile"; then 7671 # The compiler can only warn and ignore the option if not recognized 7672 # So say no if there are warnings other than the usual output. 7673 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7674 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7675 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7676 lt_cv_prog_compiler_rtti_exceptions=yes 7677 fi 7678 fi 7679 $rm conftest* 7680 7681fi 7682{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7683$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7684 7685if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7686 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7687else 7688 : 7689fi 7690 7691fi 7692 7693lt_prog_compiler_wl= 7694lt_prog_compiler_pic= 7695lt_prog_compiler_static= 7696 7697{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7698$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7699 7700 if test "$GCC" = yes; then 7701 lt_prog_compiler_wl='-Wl,' 7702 lt_prog_compiler_static='-static' 7703 7704 case $host_os in 7705 aix*) 7706 # All AIX code is PIC. 7707 if test "$host_cpu" = ia64; then 7708 # AIX 5 now supports IA64 processor 7709 lt_prog_compiler_static='-Bstatic' 7710 fi 7711 ;; 7712 7713 amigaos*) 7714 # FIXME: we need at least 68020 code to build shared libraries, but 7715 # adding the `-m68020' flag to GCC prevents building anything better, 7716 # like `-m68040'. 7717 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7718 ;; 7719 7720 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7721 # PIC is the default for these OSes. 7722 ;; 7723 7724 mingw* | cygwin* | pw32* | os2*) 7725 # This hack is so that the source file can tell whether it is being 7726 # built for inclusion in a dll (and should export symbols for example). 7727 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7728 # (--disable-auto-import) libraries 7729 lt_prog_compiler_pic='-DDLL_EXPORT' 7730 ;; 7731 7732 darwin* | rhapsody*) 7733 # PIC is the default on this platform 7734 # Common symbols not allowed in MH_DYLIB files 7735 lt_prog_compiler_pic='-fno-common' 7736 ;; 7737 7738 interix[3-9]*) 7739 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7740 # Instead, we relocate shared libraries at runtime. 7741 ;; 7742 7743 msdosdjgpp*) 7744 # Just because we use GCC doesn't mean we suddenly get shared libraries 7745 # on systems that don't support them. 7746 lt_prog_compiler_can_build_shared=no 7747 enable_shared=no 7748 ;; 7749 7750 sysv4*MP*) 7751 if test -d /usr/nec; then 7752 lt_prog_compiler_pic=-Kconform_pic 7753 fi 7754 ;; 7755 7756 hpux*) 7757 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7758 # not for PA HP-UX. 7759 case $host_cpu in 7760 hppa*64*|ia64*) 7761 # +Z the default 7762 ;; 7763 *) 7764 lt_prog_compiler_pic='-fPIC' 7765 ;; 7766 esac 7767 ;; 7768 7769 *) 7770 lt_prog_compiler_pic='-fPIC' 7771 ;; 7772 esac 7773 else 7774 # PORTME Check for flag to pass linker flags through the system compiler. 7775 case $host_os in 7776 aix*) 7777 lt_prog_compiler_wl='-Wl,' 7778 if test "$host_cpu" = ia64; then 7779 # AIX 5 now supports IA64 processor 7780 lt_prog_compiler_static='-Bstatic' 7781 else 7782 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7783 fi 7784 ;; 7785 darwin*) 7786 # PIC is the default on this platform 7787 # Common symbols not allowed in MH_DYLIB files 7788 case $cc_basename in 7789 xlc*) 7790 lt_prog_compiler_pic='-qnocommon' 7791 lt_prog_compiler_wl='-Wl,' 7792 ;; 7793 esac 7794 ;; 7795 7796 mingw* | cygwin* | pw32* | os2*) 7797 # This hack is so that the source file can tell whether it is being 7798 # built for inclusion in a dll (and should export symbols for example). 7799 lt_prog_compiler_pic='-DDLL_EXPORT' 7800 ;; 7801 7802 hpux9* | hpux10* | hpux11*) 7803 lt_prog_compiler_wl='-Wl,' 7804 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7805 # not for PA HP-UX. 7806 case $host_cpu in 7807 hppa*64*|ia64*) 7808 # +Z the default 7809 ;; 7810 *) 7811 lt_prog_compiler_pic='+Z' 7812 ;; 7813 esac 7814 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7815 lt_prog_compiler_static='${wl}-a ${wl}archive' 7816 ;; 7817 7818 irix5* | irix6* | nonstopux*) 7819 lt_prog_compiler_wl='-Wl,' 7820 # PIC (with -KPIC) is the default. 7821 lt_prog_compiler_static='-non_shared' 7822 ;; 7823 7824 newsos6) 7825 lt_prog_compiler_pic='-KPIC' 7826 lt_prog_compiler_static='-Bstatic' 7827 ;; 7828 7829 linux* | k*bsd*-gnu) 7830 case $cc_basename in 7831 icc* | ecc*) 7832 lt_prog_compiler_wl='-Wl,' 7833 lt_prog_compiler_pic='-KPIC' 7834 lt_prog_compiler_static='-static' 7835 ;; 7836 pgcc* | pgf77* | pgf90* | pgf95*) 7837 # Portland Group compilers (*not* the Pentium gcc compiler, 7838 # which looks to be a dead project) 7839 lt_prog_compiler_wl='-Wl,' 7840 lt_prog_compiler_pic='-fpic' 7841 lt_prog_compiler_static='-Bstatic' 7842 ;; 7843 ccc*) 7844 lt_prog_compiler_wl='-Wl,' 7845 # All Alpha code is PIC. 7846 lt_prog_compiler_static='-non_shared' 7847 ;; 7848 *) 7849 case `$CC -V 2>&1 | sed 5q` in 7850 *Sun\ C*) 7851 # Sun C 5.9 7852 lt_prog_compiler_pic='-KPIC' 7853 lt_prog_compiler_static='-Bstatic' 7854 lt_prog_compiler_wl='-Wl,' 7855 ;; 7856 *Sun\ F*) 7857 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7858 lt_prog_compiler_pic='-KPIC' 7859 lt_prog_compiler_static='-Bstatic' 7860 lt_prog_compiler_wl='' 7861 ;; 7862 esac 7863 ;; 7864 esac 7865 ;; 7866 7867 osf3* | osf4* | osf5*) 7868 lt_prog_compiler_wl='-Wl,' 7869 # All OSF/1 code is PIC. 7870 lt_prog_compiler_static='-non_shared' 7871 ;; 7872 7873 rdos*) 7874 lt_prog_compiler_static='-non_shared' 7875 ;; 7876 7877 solaris*) 7878 lt_prog_compiler_pic='-KPIC' 7879 lt_prog_compiler_static='-Bstatic' 7880 case $cc_basename in 7881 f77* | f90* | f95*) 7882 lt_prog_compiler_wl='-Qoption ld ';; 7883 *) 7884 lt_prog_compiler_wl='-Wl,';; 7885 esac 7886 ;; 7887 7888 sunos4*) 7889 lt_prog_compiler_wl='-Qoption ld ' 7890 lt_prog_compiler_pic='-PIC' 7891 lt_prog_compiler_static='-Bstatic' 7892 ;; 7893 7894 sysv4 | sysv4.2uw2* | sysv4.3*) 7895 lt_prog_compiler_wl='-Wl,' 7896 lt_prog_compiler_pic='-KPIC' 7897 lt_prog_compiler_static='-Bstatic' 7898 ;; 7899 7900 sysv4*MP*) 7901 if test -d /usr/nec ;then 7902 lt_prog_compiler_pic='-Kconform_pic' 7903 lt_prog_compiler_static='-Bstatic' 7904 fi 7905 ;; 7906 7907 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7908 lt_prog_compiler_wl='-Wl,' 7909 lt_prog_compiler_pic='-KPIC' 7910 lt_prog_compiler_static='-Bstatic' 7911 ;; 7912 7913 unicos*) 7914 lt_prog_compiler_wl='-Wl,' 7915 lt_prog_compiler_can_build_shared=no 7916 ;; 7917 7918 uts4*) 7919 lt_prog_compiler_pic='-pic' 7920 lt_prog_compiler_static='-Bstatic' 7921 ;; 7922 7923 *) 7924 lt_prog_compiler_can_build_shared=no 7925 ;; 7926 esac 7927 fi 7928 7929{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7930$as_echo "$lt_prog_compiler_pic" >&6; } 7931 7932# 7933# Check to make sure the PIC flag actually works. 7934# 7935if test -n "$lt_prog_compiler_pic"; then 7936 7937{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7938$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7939if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 7940 $as_echo_n "(cached) " >&6 7941else 7942 lt_cv_prog_compiler_pic_works=no 7943 ac_outfile=conftest.$ac_objext 7944 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7945 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7946 # Insert the option either (1) after the last *FLAGS variable, or 7947 # (2) before a word containing "conftest.", or (3) at the end. 7948 # Note that $ac_compile itself does not contain backslashes and begins 7949 # with a dollar sign (not a hyphen), so the echo should work correctly. 7950 # The option is referenced via a variable to avoid confusing sed. 7951 lt_compile=`echo "$ac_compile" | $SED \ 7952 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7953 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7954 -e 's:$: $lt_compiler_flag:'` 7955 (eval echo "\"\$as_me:7955: $lt_compile\"" >&5) 7956 (eval "$lt_compile" 2>conftest.err) 7957 ac_status=$? 7958 cat conftest.err >&5 7959 echo "$as_me:7959: \$? = $ac_status" >&5 7960 if (exit $ac_status) && test -s "$ac_outfile"; then 7961 # The compiler can only warn and ignore the option if not recognized 7962 # So say no if there are warnings other than the usual output. 7963 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7964 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7965 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7966 lt_cv_prog_compiler_pic_works=yes 7967 fi 7968 fi 7969 $rm conftest* 7970 7971fi 7972{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 7973$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7974 7975if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7976 case $lt_prog_compiler_pic in 7977 "" | " "*) ;; 7978 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7979 esac 7980else 7981 lt_prog_compiler_pic= 7982 lt_prog_compiler_can_build_shared=no 7983fi 7984 7985fi 7986case $host_os in 7987 # For platforms which do not support PIC, -DPIC is meaningless: 7988 *djgpp*) 7989 lt_prog_compiler_pic= 7990 ;; 7991 *) 7992 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7993 ;; 7994esac 7995 7996# 7997# Check to make sure the static flag actually works. 7998# 7999wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8000{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8001$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8002if test "${lt_cv_prog_compiler_static_works+set}" = set; then 8003 $as_echo_n "(cached) " >&6 8004else 8005 lt_cv_prog_compiler_static_works=no 8006 save_LDFLAGS="$LDFLAGS" 8007 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8008 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8009 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8010 # The linker can only warn and ignore the option if not recognized 8011 # So say no if there are warnings 8012 if test -s conftest.err; then 8013 # Append any errors to the config.log. 8014 cat conftest.err 1>&5 8015 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 8016 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8017 if diff conftest.exp conftest.er2 >/dev/null; then 8018 lt_cv_prog_compiler_static_works=yes 8019 fi 8020 else 8021 lt_cv_prog_compiler_static_works=yes 8022 fi 8023 fi 8024 $rm -r conftest* 8025 LDFLAGS="$save_LDFLAGS" 8026 8027fi 8028{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 8029$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8030 8031if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8032 : 8033else 8034 lt_prog_compiler_static= 8035fi 8036 8037 8038{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8039$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8040if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8041 $as_echo_n "(cached) " >&6 8042else 8043 lt_cv_prog_compiler_c_o=no 8044 $rm -r conftest 2>/dev/null 8045 mkdir conftest 8046 cd conftest 8047 mkdir out 8048 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8049 8050 lt_compiler_flag="-o out/conftest2.$ac_objext" 8051 # Insert the option either (1) after the last *FLAGS variable, or 8052 # (2) before a word containing "conftest.", or (3) at the end. 8053 # Note that $ac_compile itself does not contain backslashes and begins 8054 # with a dollar sign (not a hyphen), so the echo should work correctly. 8055 lt_compile=`echo "$ac_compile" | $SED \ 8056 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8057 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8058 -e 's:$: $lt_compiler_flag:'` 8059 (eval echo "\"\$as_me:8059: $lt_compile\"" >&5) 8060 (eval "$lt_compile" 2>out/conftest.err) 8061 ac_status=$? 8062 cat out/conftest.err >&5 8063 echo "$as_me:8063: \$? = $ac_status" >&5 8064 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8065 then 8066 # The compiler can only warn and ignore the option if not recognized 8067 # So say no if there are warnings 8068 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8069 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8070 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8071 lt_cv_prog_compiler_c_o=yes 8072 fi 8073 fi 8074 chmod u+w . 2>&5 8075 $rm conftest* 8076 # SGI C++ compiler will create directory out/ii_files/ for 8077 # template instantiation 8078 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 8079 $rm out/* && rmdir out 8080 cd .. 8081 rmdir conftest 8082 $rm conftest* 8083 8084fi 8085{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8086$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8087 8088 8089hard_links="nottested" 8090if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8091 # do not overwrite the value of need_locks provided by the user 8092 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8093$as_echo_n "checking if we can lock with hard links... " >&6; } 8094 hard_links=yes 8095 $rm conftest* 8096 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8097 touch conftest.a 8098 ln conftest.a conftest.b 2>&5 || hard_links=no 8099 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8100 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 8101$as_echo "$hard_links" >&6; } 8102 if test "$hard_links" = no; then 8103 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8104$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8105 need_locks=warn 8106 fi 8107else 8108 need_locks=no 8109fi 8110 8111{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8112$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8113 8114 runpath_var= 8115 allow_undefined_flag= 8116 enable_shared_with_static_runtimes=no 8117 archive_cmds= 8118 archive_expsym_cmds= 8119 old_archive_From_new_cmds= 8120 old_archive_from_expsyms_cmds= 8121 export_dynamic_flag_spec= 8122 whole_archive_flag_spec= 8123 thread_safe_flag_spec= 8124 hardcode_libdir_flag_spec= 8125 hardcode_libdir_flag_spec_ld= 8126 hardcode_libdir_separator= 8127 hardcode_direct=no 8128 hardcode_minus_L=no 8129 hardcode_shlibpath_var=unsupported 8130 link_all_deplibs=unknown 8131 hardcode_automatic=no 8132 module_cmds= 8133 module_expsym_cmds= 8134 always_export_symbols=no 8135 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8136 # include_expsyms should be a list of space-separated symbols to be *always* 8137 # included in the symbol list 8138 include_expsyms= 8139 # exclude_expsyms can be an extended regexp of symbols to exclude 8140 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8141 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8142 # as well as any symbol that contains `d'. 8143 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8144 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8145 # platforms (ab)use it in PIC code, but their linkers get confused if 8146 # the symbol is explicitly referenced. Since portable code cannot 8147 # rely on this symbol name, it's probably fine to never include it in 8148 # preloaded symbol tables. 8149 # Exclude shared library initialization/finalization symbols. 8150 extract_expsyms_cmds= 8151 # Just being paranoid about ensuring that cc_basename is set. 8152 for cc_temp in $compiler""; do 8153 case $cc_temp in 8154 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8155 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8156 \-*) ;; 8157 *) break;; 8158 esac 8159done 8160cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8161 8162 case $host_os in 8163 cygwin* | mingw* | pw32*) 8164 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8165 # When not using gcc, we currently assume that we are using 8166 # Microsoft Visual C++. 8167 if test "$GCC" != yes; then 8168 with_gnu_ld=no 8169 fi 8170 ;; 8171 interix*) 8172 # we just hope/assume this is gcc and not c89 (= MSVC++) 8173 with_gnu_ld=yes 8174 ;; 8175 openbsd*) 8176 with_gnu_ld=no 8177 ;; 8178 esac 8179 8180 ld_shlibs=yes 8181 if test "$with_gnu_ld" = yes; then 8182 # If archive_cmds runs LD, not CC, wlarc should be empty 8183 wlarc='${wl}' 8184 8185 # Set some defaults for GNU ld with shared library support. These 8186 # are reset later if shared libraries are not supported. Putting them 8187 # here allows them to be overridden if necessary. 8188 runpath_var=LD_RUN_PATH 8189 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 8190 export_dynamic_flag_spec='${wl}--export-dynamic' 8191 # ancient GNU ld didn't support --whole-archive et. al. 8192 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 8193 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8194 else 8195 whole_archive_flag_spec= 8196 fi 8197 supports_anon_versioning=no 8198 case `$LD -v 2>/dev/null` in 8199 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8200 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8201 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8202 *\ 2.11.*) ;; # other 2.11 versions 8203 *) supports_anon_versioning=yes ;; 8204 esac 8205 8206 # See if GNU ld supports shared libraries. 8207 case $host_os in 8208 aix[3-9]*) 8209 # On AIX/PPC, the GNU linker is very broken 8210 if test "$host_cpu" != ia64; then 8211 ld_shlibs=no 8212 cat <<EOF 1>&2 8213 8214*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8215*** to be unable to reliably create shared libraries on AIX. 8216*** Therefore, libtool is disabling shared libraries support. If you 8217*** really care for shared libraries, you may want to modify your PATH 8218*** so that a non-GNU linker is found, and then restart. 8219 8220EOF 8221 fi 8222 ;; 8223 8224 amigaos*) 8225 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)' 8226 hardcode_libdir_flag_spec='-L$libdir' 8227 hardcode_minus_L=yes 8228 8229 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 8230 # that the semantics of dynamic libraries on AmigaOS, at least up 8231 # to version 4, is to share data among multiple programs linked 8232 # with the same dynamic library. Since this doesn't match the 8233 # behavior of shared libraries on other platforms, we can't use 8234 # them. 8235 ld_shlibs=no 8236 ;; 8237 8238 beos*) 8239 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8240 allow_undefined_flag=unsupported 8241 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8242 # support --undefined. This deserves some investigation. FIXME 8243 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8244 else 8245 ld_shlibs=no 8246 fi 8247 ;; 8248 8249 cygwin* | mingw* | pw32*) 8250 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8251 # as there is no search path for DLLs. 8252 hardcode_libdir_flag_spec='-L$libdir' 8253 allow_undefined_flag=unsupported 8254 always_export_symbols=no 8255 enable_shared_with_static_runtimes=yes 8256 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8257 8258 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 8259 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8260 # If the export-symbols file already is a .def file (1st line 8261 # is EXPORTS), use it as is; otherwise, prepend... 8262 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8263 cp $export_symbols $output_objdir/$soname.def; 8264 else 8265 echo EXPORTS > $output_objdir/$soname.def; 8266 cat $export_symbols >> $output_objdir/$soname.def; 8267 fi~ 8268 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8269 else 8270 ld_shlibs=no 8271 fi 8272 ;; 8273 8274 interix[3-9]*) 8275 hardcode_direct=no 8276 hardcode_shlibpath_var=no 8277 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8278 export_dynamic_flag_spec='${wl}-E' 8279 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8280 # Instead, shared libraries are loaded at an image base (0x10000000 by 8281 # default) and relocated if they conflict, which is a slow very memory 8282 # consuming and fragmenting process. To avoid this, we pick a random, 8283 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8284 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8285 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8286 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' 8287 ;; 8288 8289 gnu* | linux* | k*bsd*-gnu) 8290 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8291 tmp_addflag= 8292 case $cc_basename,$host_cpu in 8293 pgcc*) # Portland Group C compiler 8294 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' 8295 tmp_addflag=' $pic_flag' 8296 ;; 8297 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8298 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' 8299 tmp_addflag=' $pic_flag -Mnomain' ;; 8300 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8301 tmp_addflag=' -i_dynamic' ;; 8302 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8303 tmp_addflag=' -i_dynamic -nofor_main' ;; 8304 ifc* | ifort*) # Intel Fortran compiler 8305 tmp_addflag=' -nofor_main' ;; 8306 esac 8307 case `$CC -V 2>&1 | sed 5q` in 8308 *Sun\ C*) # Sun C 5.9 8309 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' 8310 tmp_sharedflag='-G' ;; 8311 *Sun\ F*) # Sun Fortran 8.3 8312 tmp_sharedflag='-G' ;; 8313 *) 8314 tmp_sharedflag='-shared' ;; 8315 esac 8316 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8317 8318 if test $supports_anon_versioning = yes; then 8319 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8320 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8321 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8322 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8323 fi 8324 else 8325 ld_shlibs=no 8326 fi 8327 ;; 8328 8329 netbsd*) 8330 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8331 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8332 wlarc= 8333 else 8334 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8335 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8336 fi 8337 ;; 8338 8339 solaris*) 8340 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8341 ld_shlibs=no 8342 cat <<EOF 1>&2 8343 8344*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8345*** create shared libraries on Solaris systems. Therefore, libtool 8346*** is disabling shared libraries support. We urge you to upgrade GNU 8347*** binutils to release 2.9.1 or newer. Another option is to modify 8348*** your PATH or compiler configuration so that the native linker is 8349*** used, and then restart. 8350 8351EOF 8352 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8353 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8354 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8355 else 8356 ld_shlibs=no 8357 fi 8358 ;; 8359 8360 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8361 case `$LD -v 2>&1` in 8362 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8363 ld_shlibs=no 8364 cat <<_LT_EOF 1>&2 8365 8366*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8367*** reliably create shared libraries on SCO systems. Therefore, libtool 8368*** is disabling shared libraries support. We urge you to upgrade GNU 8369*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8370*** your PATH or compiler configuration so that the native linker is 8371*** used, and then restart. 8372 8373_LT_EOF 8374 ;; 8375 *) 8376 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8377 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 8378 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 8379 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 8380 else 8381 ld_shlibs=no 8382 fi 8383 ;; 8384 esac 8385 ;; 8386 8387 sunos4*) 8388 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8389 wlarc= 8390 hardcode_direct=yes 8391 hardcode_shlibpath_var=no 8392 ;; 8393 8394 *) 8395 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8396 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8397 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8398 else 8399 ld_shlibs=no 8400 fi 8401 ;; 8402 esac 8403 8404 if test "$ld_shlibs" = no; then 8405 runpath_var= 8406 hardcode_libdir_flag_spec= 8407 export_dynamic_flag_spec= 8408 whole_archive_flag_spec= 8409 fi 8410 else 8411 # PORTME fill in a description of your system's linker (not GNU ld) 8412 case $host_os in 8413 aix3*) 8414 allow_undefined_flag=unsupported 8415 always_export_symbols=yes 8416 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' 8417 # Note: this linker hardcodes the directories in LIBPATH if there 8418 # are no directories specified by -L. 8419 hardcode_minus_L=yes 8420 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8421 # Neither direct hardcoding nor static linking is supported with a 8422 # broken collect2. 8423 hardcode_direct=unsupported 8424 fi 8425 ;; 8426 8427 aix[4-9]*) 8428 if test "$host_cpu" = ia64; then 8429 # On IA64, the linker does run time linking by default, so we don't 8430 # have to do anything special. 8431 aix_use_runtimelinking=no 8432 exp_sym_flag='-Bexport' 8433 no_entry_flag="" 8434 else 8435 # If we're using GNU nm, then we don't want the "-C" option. 8436 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8437 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 8438 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' 8439 else 8440 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' 8441 fi 8442 aix_use_runtimelinking=no 8443 8444 # Test if we are trying to use run time linking or normal 8445 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8446 # need to do runtime linking. 8447 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8448 for ld_flag in $LDFLAGS; do 8449 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8450 aix_use_runtimelinking=yes 8451 break 8452 fi 8453 done 8454 ;; 8455 esac 8456 8457 exp_sym_flag='-bexport' 8458 no_entry_flag='-bnoentry' 8459 fi 8460 8461 # When large executables or shared objects are built, AIX ld can 8462 # have problems creating the table of contents. If linking a library 8463 # or program results in "error TOC overflow" add -mminimal-toc to 8464 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8465 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8466 8467 archive_cmds='' 8468 hardcode_direct=yes 8469 hardcode_libdir_separator=':' 8470 link_all_deplibs=yes 8471 8472 if test "$GCC" = yes; then 8473 case $host_os in aix4.[012]|aix4.[012].*) 8474 # We only want to do this on AIX 4.2 and lower, the check 8475 # below for broken collect2 doesn't work under 4.3+ 8476 collect2name=`${CC} -print-prog-name=collect2` 8477 if test -f "$collect2name" && \ 8478 strings "$collect2name" | grep resolve_lib_name >/dev/null 8479 then 8480 # We have reworked collect2 8481 : 8482 else 8483 # We have old collect2 8484 hardcode_direct=unsupported 8485 # It fails to find uninstalled libraries when the uninstalled 8486 # path is not listed in the libpath. Setting hardcode_minus_L 8487 # to unsupported forces relinking 8488 hardcode_minus_L=yes 8489 hardcode_libdir_flag_spec='-L$libdir' 8490 hardcode_libdir_separator= 8491 fi 8492 ;; 8493 esac 8494 shared_flag='-shared' 8495 if test "$aix_use_runtimelinking" = yes; then 8496 shared_flag="$shared_flag "'${wl}-G' 8497 fi 8498 else 8499 # not using gcc 8500 if test "$host_cpu" = ia64; then 8501 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8502 # chokes on -Wl,-G. The following line is correct: 8503 shared_flag='-G' 8504 else 8505 if test "$aix_use_runtimelinking" = yes; then 8506 shared_flag='${wl}-G' 8507 else 8508 shared_flag='${wl}-bM:SRE' 8509 fi 8510 fi 8511 fi 8512 8513 # It seems that -bexpall does not export symbols beginning with 8514 # underscore (_), so it is better to generate a list of symbols to export. 8515 always_export_symbols=yes 8516 if test "$aix_use_runtimelinking" = yes; then 8517 # Warning - without using the other runtime loading flags (-brtl), 8518 # -berok will link without error, but may produce a broken library. 8519 allow_undefined_flag='-berok' 8520 # Determine the default libpath from the value encoded in an empty executable. 8521 cat >conftest.$ac_ext <<_ACEOF 8522/* confdefs.h. */ 8523_ACEOF 8524cat confdefs.h >>conftest.$ac_ext 8525cat >>conftest.$ac_ext <<_ACEOF 8526/* end confdefs.h. */ 8527 8528int 8529main () 8530{ 8531 8532 ; 8533 return 0; 8534} 8535_ACEOF 8536rm -f conftest.$ac_objext conftest$ac_exeext 8537if { (ac_try="$ac_link" 8538case "(($ac_try" in 8539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8540 *) ac_try_echo=$ac_try;; 8541esac 8542eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8543$as_echo "$ac_try_echo") >&5 8544 (eval "$ac_link") 2>conftest.er1 8545 ac_status=$? 8546 grep -v '^ *+' conftest.er1 >conftest.err 8547 rm -f conftest.er1 8548 cat conftest.err >&5 8549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8550 (exit $ac_status); } && { 8551 test -z "$ac_c_werror_flag" || 8552 test ! -s conftest.err 8553 } && test -s conftest$ac_exeext && { 8554 test "$cross_compiling" = yes || 8555 $as_test_x conftest$ac_exeext 8556 }; then 8557 8558lt_aix_libpath_sed=' 8559 /Import File Strings/,/^$/ { 8560 /^0/ { 8561 s/^0 *\(.*\)$/\1/ 8562 p 8563 } 8564 }' 8565aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8566# Check for a 64-bit object if we didn't find anything. 8567if test -z "$aix_libpath"; then 8568 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8569fi 8570else 8571 $as_echo "$as_me: failed program was:" >&5 8572sed 's/^/| /' conftest.$ac_ext >&5 8573 8574 8575fi 8576 8577rm -rf conftest.dSYM 8578rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8579 conftest$ac_exeext conftest.$ac_ext 8580if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8581 8582 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8583 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" 8584 else 8585 if test "$host_cpu" = ia64; then 8586 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8587 allow_undefined_flag="-z nodefs" 8588 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" 8589 else 8590 # Determine the default libpath from the value encoded in an empty executable. 8591 cat >conftest.$ac_ext <<_ACEOF 8592/* confdefs.h. */ 8593_ACEOF 8594cat confdefs.h >>conftest.$ac_ext 8595cat >>conftest.$ac_ext <<_ACEOF 8596/* end confdefs.h. */ 8597 8598int 8599main () 8600{ 8601 8602 ; 8603 return 0; 8604} 8605_ACEOF 8606rm -f conftest.$ac_objext conftest$ac_exeext 8607if { (ac_try="$ac_link" 8608case "(($ac_try" in 8609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8610 *) ac_try_echo=$ac_try;; 8611esac 8612eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8613$as_echo "$ac_try_echo") >&5 8614 (eval "$ac_link") 2>conftest.er1 8615 ac_status=$? 8616 grep -v '^ *+' conftest.er1 >conftest.err 8617 rm -f conftest.er1 8618 cat conftest.err >&5 8619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8620 (exit $ac_status); } && { 8621 test -z "$ac_c_werror_flag" || 8622 test ! -s conftest.err 8623 } && test -s conftest$ac_exeext && { 8624 test "$cross_compiling" = yes || 8625 $as_test_x conftest$ac_exeext 8626 }; then 8627 8628lt_aix_libpath_sed=' 8629 /Import File Strings/,/^$/ { 8630 /^0/ { 8631 s/^0 *\(.*\)$/\1/ 8632 p 8633 } 8634 }' 8635aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8636# Check for a 64-bit object if we didn't find anything. 8637if test -z "$aix_libpath"; then 8638 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8639fi 8640else 8641 $as_echo "$as_me: failed program was:" >&5 8642sed 's/^/| /' conftest.$ac_ext >&5 8643 8644 8645fi 8646 8647rm -rf conftest.dSYM 8648rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8649 conftest$ac_exeext conftest.$ac_ext 8650if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8651 8652 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8653 # Warning - without using the other run time loading flags, 8654 # -berok will link without error, but may produce a broken library. 8655 no_undefined_flag=' ${wl}-bernotok' 8656 allow_undefined_flag=' ${wl}-berok' 8657 # Exported symbols can be pulled into shared objects from archives 8658 whole_archive_flag_spec='$convenience' 8659 archive_cmds_need_lc=yes 8660 # This is similar to how AIX traditionally builds its shared libraries. 8661 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' 8662 fi 8663 fi 8664 ;; 8665 8666 amigaos*) 8667 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)' 8668 hardcode_libdir_flag_spec='-L$libdir' 8669 hardcode_minus_L=yes 8670 # see comment about different semantics on the GNU ld section 8671 ld_shlibs=no 8672 ;; 8673 8674 bsdi[45]*) 8675 export_dynamic_flag_spec=-rdynamic 8676 ;; 8677 8678 cygwin* | mingw* | pw32*) 8679 # When not using gcc, we currently assume that we are using 8680 # Microsoft Visual C++. 8681 # hardcode_libdir_flag_spec is actually meaningless, as there is 8682 # no search path for DLLs. 8683 hardcode_libdir_flag_spec=' ' 8684 allow_undefined_flag=unsupported 8685 # Tell ltmain to make .lib files, not .a files. 8686 libext=lib 8687 # Tell ltmain to make .dll files, not .so files. 8688 shrext_cmds=".dll" 8689 # FIXME: Setting linknames here is a bad hack. 8690 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8691 # The linker will automatically build a .lib file if we build a DLL. 8692 old_archive_From_new_cmds='true' 8693 # FIXME: Should let the user specify the lib program. 8694 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8695 fix_srcfile_path='`cygpath -w "$srcfile"`' 8696 enable_shared_with_static_runtimes=yes 8697 ;; 8698 8699 darwin* | rhapsody*) 8700 case $host_os in 8701 rhapsody* | darwin1.[012]) 8702 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8703 ;; 8704 *) # Darwin 1.3 on 8705 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8706 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8707 else 8708 case ${MACOSX_DEPLOYMENT_TARGET} in 8709 10.[012]) 8710 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8711 ;; 8712 10.*) 8713 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8714 ;; 8715 esac 8716 fi 8717 ;; 8718 esac 8719 archive_cmds_need_lc=no 8720 hardcode_direct=no 8721 hardcode_automatic=yes 8722 hardcode_shlibpath_var=unsupported 8723 whole_archive_flag_spec='' 8724 link_all_deplibs=yes 8725 if test "$GCC" = yes ; then 8726 output_verbose_link_cmd='echo' 8727 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8728 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8729 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}" 8730 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}" 8731 else 8732 case $cc_basename in 8733 xlc*) 8734 output_verbose_link_cmd='echo' 8735 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 8736 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8737 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8738 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}' 8739 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}' 8740 ;; 8741 *) 8742 ld_shlibs=no 8743 ;; 8744 esac 8745 fi 8746 ;; 8747 8748 dgux*) 8749 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8750 hardcode_libdir_flag_spec='-L$libdir' 8751 hardcode_shlibpath_var=no 8752 ;; 8753 8754 freebsd1*) 8755 ld_shlibs=no 8756 ;; 8757 8758 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8759 # support. Future versions do this automatically, but an explicit c++rt0.o 8760 # does not break anything, and helps significantly (at the cost of a little 8761 # extra space). 8762 freebsd2.2*) 8763 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8764 hardcode_libdir_flag_spec='-R$libdir' 8765 hardcode_direct=yes 8766 hardcode_shlibpath_var=no 8767 ;; 8768 8769 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8770 freebsd2*) 8771 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8772 hardcode_direct=yes 8773 hardcode_minus_L=yes 8774 hardcode_shlibpath_var=no 8775 ;; 8776 8777 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8778 freebsd* | dragonfly*) 8779 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8780 hardcode_libdir_flag_spec='-R$libdir' 8781 hardcode_direct=yes 8782 hardcode_shlibpath_var=no 8783 ;; 8784 8785 hpux9*) 8786 if test "$GCC" = yes; then 8787 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' 8788 else 8789 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' 8790 fi 8791 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8792 hardcode_libdir_separator=: 8793 hardcode_direct=yes 8794 8795 # hardcode_minus_L: Not really in the search PATH, 8796 # but as the default location of the library. 8797 hardcode_minus_L=yes 8798 export_dynamic_flag_spec='${wl}-E' 8799 ;; 8800 8801 hpux10*) 8802 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8803 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8804 else 8805 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8806 fi 8807 if test "$with_gnu_ld" = no; then 8808 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8809 hardcode_libdir_separator=: 8810 8811 hardcode_direct=yes 8812 export_dynamic_flag_spec='${wl}-E' 8813 8814 # hardcode_minus_L: Not really in the search PATH, 8815 # but as the default location of the library. 8816 hardcode_minus_L=yes 8817 fi 8818 ;; 8819 8820 hpux11*) 8821 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8822 case $host_cpu in 8823 hppa*64*) 8824 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8825 ;; 8826 ia64*) 8827 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8828 ;; 8829 *) 8830 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8831 ;; 8832 esac 8833 else 8834 case $host_cpu in 8835 hppa*64*) 8836 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8837 ;; 8838 ia64*) 8839 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8840 ;; 8841 *) 8842 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8843 ;; 8844 esac 8845 fi 8846 if test "$with_gnu_ld" = no; then 8847 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8848 hardcode_libdir_separator=: 8849 8850 case $host_cpu in 8851 hppa*64*|ia64*) 8852 hardcode_libdir_flag_spec_ld='+b $libdir' 8853 hardcode_direct=no 8854 hardcode_shlibpath_var=no 8855 ;; 8856 *) 8857 hardcode_direct=yes 8858 export_dynamic_flag_spec='${wl}-E' 8859 8860 # hardcode_minus_L: Not really in the search PATH, 8861 # but as the default location of the library. 8862 hardcode_minus_L=yes 8863 ;; 8864 esac 8865 fi 8866 ;; 8867 8868 irix5* | irix6* | nonstopux*) 8869 if test "$GCC" = yes; then 8870 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' 8871 else 8872 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' 8873 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8874 fi 8875 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8876 hardcode_libdir_separator=: 8877 link_all_deplibs=yes 8878 ;; 8879 8880 netbsd*) 8881 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8882 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8883 else 8884 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8885 fi 8886 hardcode_libdir_flag_spec='-R$libdir' 8887 hardcode_direct=yes 8888 hardcode_shlibpath_var=no 8889 ;; 8890 8891 newsos6) 8892 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8893 hardcode_direct=yes 8894 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8895 hardcode_libdir_separator=: 8896 hardcode_shlibpath_var=no 8897 ;; 8898 8899 openbsd*) 8900 if test -f /usr/libexec/ld.so; then 8901 hardcode_direct=yes 8902 hardcode_shlibpath_var=no 8903 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8904 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8905 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8906 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8907 export_dynamic_flag_spec='${wl}-E' 8908 else 8909 case $host_os in 8910 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8911 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8912 hardcode_libdir_flag_spec='-R$libdir' 8913 ;; 8914 *) 8915 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8916 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8917 ;; 8918 esac 8919 fi 8920 else 8921 ld_shlibs=no 8922 fi 8923 ;; 8924 8925 os2*) 8926 hardcode_libdir_flag_spec='-L$libdir' 8927 hardcode_minus_L=yes 8928 allow_undefined_flag=unsupported 8929 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' 8930 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8931 ;; 8932 8933 osf3*) 8934 if test "$GCC" = yes; then 8935 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8936 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' 8937 else 8938 allow_undefined_flag=' -expect_unresolved \*' 8939 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' 8940 fi 8941 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8942 hardcode_libdir_separator=: 8943 ;; 8944 8945 osf4* | osf5*) # as osf3* with the addition of -msym flag 8946 if test "$GCC" = yes; then 8947 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8948 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' 8949 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8950 else 8951 allow_undefined_flag=' -expect_unresolved \*' 8952 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' 8953 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8954 $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' 8955 8956 # Both c and cxx compiler support -rpath directly 8957 hardcode_libdir_flag_spec='-rpath $libdir' 8958 fi 8959 hardcode_libdir_separator=: 8960 ;; 8961 8962 solaris*) 8963 no_undefined_flag=' -z text' 8964 if test "$GCC" = yes; then 8965 wlarc='${wl}' 8966 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8967 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8968 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8969 else 8970 wlarc='' 8971 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8972 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8973 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8974 fi 8975 hardcode_libdir_flag_spec='-R$libdir' 8976 hardcode_shlibpath_var=no 8977 case $host_os in 8978 solaris2.[0-5] | solaris2.[0-5].*) ;; 8979 *) 8980 # The compiler driver will combine and reorder linker options, 8981 # but understands `-z linker_flag'. GCC discards it without `$wl', 8982 # but is careful enough not to reorder. 8983 # Supported since Solaris 2.6 (maybe 2.5.1?) 8984 if test "$GCC" = yes; then 8985 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8986 else 8987 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8988 fi 8989 ;; 8990 esac 8991 link_all_deplibs=yes 8992 ;; 8993 8994 sunos4*) 8995 if test "x$host_vendor" = xsequent; then 8996 # Use $CC to link under sequent, because it throws in some extra .o 8997 # files that make .init and .fini sections work. 8998 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8999 else 9000 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9001 fi 9002 hardcode_libdir_flag_spec='-L$libdir' 9003 hardcode_direct=yes 9004 hardcode_minus_L=yes 9005 hardcode_shlibpath_var=no 9006 ;; 9007 9008 sysv4) 9009 case $host_vendor in 9010 sni) 9011 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9012 hardcode_direct=yes # is this really true??? 9013 ;; 9014 siemens) 9015 ## LD is ld it makes a PLAMLIB 9016 ## CC just makes a GrossModule. 9017 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9018 reload_cmds='$CC -r -o $output$reload_objs' 9019 hardcode_direct=no 9020 ;; 9021 motorola) 9022 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9023 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9024 ;; 9025 esac 9026 runpath_var='LD_RUN_PATH' 9027 hardcode_shlibpath_var=no 9028 ;; 9029 9030 sysv4.3*) 9031 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9032 hardcode_shlibpath_var=no 9033 export_dynamic_flag_spec='-Bexport' 9034 ;; 9035 9036 sysv4*MP*) 9037 if test -d /usr/nec; then 9038 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9039 hardcode_shlibpath_var=no 9040 runpath_var=LD_RUN_PATH 9041 hardcode_runpath_var=yes 9042 ld_shlibs=yes 9043 fi 9044 ;; 9045 9046 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9047 no_undefined_flag='${wl}-z,text' 9048 archive_cmds_need_lc=no 9049 hardcode_shlibpath_var=no 9050 runpath_var='LD_RUN_PATH' 9051 9052 if test "$GCC" = yes; then 9053 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9054 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9055 else 9056 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9057 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9058 fi 9059 ;; 9060 9061 sysv5* | sco3.2v5* | sco5v6*) 9062 # Note: We can NOT use -z defs as we might desire, because we do not 9063 # link with -lc, and that would cause any symbols used from libc to 9064 # always be unresolved, which means just about no library would 9065 # ever link correctly. If we're not using GNU ld we use -z text 9066 # though, which does catch some bad symbols but isn't as heavy-handed 9067 # as -z defs. 9068 no_undefined_flag='${wl}-z,text' 9069 allow_undefined_flag='${wl}-z,nodefs' 9070 archive_cmds_need_lc=no 9071 hardcode_shlibpath_var=no 9072 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 9073 hardcode_libdir_separator=':' 9074 link_all_deplibs=yes 9075 export_dynamic_flag_spec='${wl}-Bexport' 9076 runpath_var='LD_RUN_PATH' 9077 9078 if test "$GCC" = yes; then 9079 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9080 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9081 else 9082 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9083 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9084 fi 9085 ;; 9086 9087 uts4*) 9088 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9089 hardcode_libdir_flag_spec='-L$libdir' 9090 hardcode_shlibpath_var=no 9091 ;; 9092 9093 *) 9094 ld_shlibs=no 9095 ;; 9096 esac 9097 fi 9098 9099{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9100$as_echo "$ld_shlibs" >&6; } 9101test "$ld_shlibs" = no && can_build_shared=no 9102 9103# 9104# Do we need to explicitly link libc? 9105# 9106case "x$archive_cmds_need_lc" in 9107x|xyes) 9108 # Assume -lc should be added 9109 archive_cmds_need_lc=yes 9110 9111 if test "$enable_shared" = yes && test "$GCC" = yes; then 9112 case $archive_cmds in 9113 *'~'*) 9114 # FIXME: we may have to deal with multi-command sequences. 9115 ;; 9116 '$CC '*) 9117 # Test whether the compiler implicitly links with -lc since on some 9118 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9119 # to ld, don't add -lc before -lgcc. 9120 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9121$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9122 $rm conftest* 9123 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9124 9125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9126 (eval $ac_compile) 2>&5 9127 ac_status=$? 9128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9129 (exit $ac_status); } 2>conftest.err; then 9130 soname=conftest 9131 lib=conftest 9132 libobjs=conftest.$ac_objext 9133 deplibs= 9134 wl=$lt_prog_compiler_wl 9135 pic_flag=$lt_prog_compiler_pic 9136 compiler_flags=-v 9137 linker_flags=-v 9138 verstring= 9139 output_objdir=. 9140 libname=conftest 9141 lt_save_allow_undefined_flag=$allow_undefined_flag 9142 allow_undefined_flag= 9143 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 9144 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 9145 ac_status=$? 9146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9147 (exit $ac_status); } 9148 then 9149 archive_cmds_need_lc=no 9150 else 9151 archive_cmds_need_lc=yes 9152 fi 9153 allow_undefined_flag=$lt_save_allow_undefined_flag 9154 else 9155 cat conftest.err 1>&5 9156 fi 9157 $rm conftest* 9158 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9159$as_echo "$archive_cmds_need_lc" >&6; } 9160 ;; 9161 esac 9162 fi 9163 ;; 9164esac 9165 9166{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9167$as_echo_n "checking dynamic linker characteristics... " >&6; } 9168library_names_spec= 9169libname_spec='lib$name' 9170soname_spec= 9171shrext_cmds=".so" 9172postinstall_cmds= 9173postuninstall_cmds= 9174finish_cmds= 9175finish_eval= 9176shlibpath_var= 9177shlibpath_overrides_runpath=unknown 9178version_type=none 9179dynamic_linker="$host_os ld.so" 9180sys_lib_dlsearch_path_spec="/lib /usr/lib" 9181 9182if test "$GCC" = yes; then 9183 case $host_os in 9184 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9185 *) lt_awk_arg="/^libraries:/" ;; 9186 esac 9187 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9188 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 9189 # if the path contains ";" then we assume it to be the separator 9190 # otherwise default to the standard path separator (i.e. ":") - it is 9191 # assumed that no part of a normal pathname contains ";" but that should 9192 # okay in the real world where ";" in dirpaths is itself problematic. 9193 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9194 else 9195 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9196 fi 9197 # Ok, now we have the path, separated by spaces, we can step through it 9198 # and add multilib dir if necessary. 9199 lt_tmp_lt_search_path_spec= 9200 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9201 for lt_sys_path in $lt_search_path_spec; do 9202 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9203 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9204 else 9205 test -d "$lt_sys_path" && \ 9206 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9207 fi 9208 done 9209 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 9210BEGIN {RS=" "; FS="/|\n";} { 9211 lt_foo=""; 9212 lt_count=0; 9213 for (lt_i = NF; lt_i > 0; lt_i--) { 9214 if ($lt_i != "" && $lt_i != ".") { 9215 if ($lt_i == "..") { 9216 lt_count++; 9217 } else { 9218 if (lt_count == 0) { 9219 lt_foo="/" $lt_i lt_foo; 9220 } else { 9221 lt_count--; 9222 } 9223 } 9224 } 9225 } 9226 if (lt_foo != "") { lt_freq[lt_foo]++; } 9227 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9228}'` 9229 sys_lib_search_path_spec=`echo $lt_search_path_spec` 9230else 9231 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9232fi 9233need_lib_prefix=unknown 9234hardcode_into_libs=no 9235 9236# when you set need_version to no, make sure it does not cause -set_version 9237# flags to be left without arguments 9238need_version=unknown 9239 9240case $host_os in 9241aix3*) 9242 version_type=linux 9243 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9244 shlibpath_var=LIBPATH 9245 9246 # AIX 3 has no versioning support, so we append a major version to the name. 9247 soname_spec='${libname}${release}${shared_ext}$major' 9248 ;; 9249 9250aix[4-9]*) 9251 version_type=linux 9252 need_lib_prefix=no 9253 need_version=no 9254 hardcode_into_libs=yes 9255 if test "$host_cpu" = ia64; then 9256 # AIX 5 supports IA64 9257 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9258 shlibpath_var=LD_LIBRARY_PATH 9259 else 9260 # With GCC up to 2.95.x, collect2 would create an import file 9261 # for dependence libraries. The import file would start with 9262 # the line `#! .'. This would cause the generated library to 9263 # depend on `.', always an invalid library. This was fixed in 9264 # development snapshots of GCC prior to 3.0. 9265 case $host_os in 9266 aix4 | aix4.[01] | aix4.[01].*) 9267 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9268 echo ' yes ' 9269 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 9270 : 9271 else 9272 can_build_shared=no 9273 fi 9274 ;; 9275 esac 9276 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9277 # soname into executable. Probably we can add versioning support to 9278 # collect2, so additional links can be useful in future. 9279 if test "$aix_use_runtimelinking" = yes; then 9280 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9281 # instead of lib<name>.a to let people know that these are not 9282 # typical AIX shared libraries. 9283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9284 else 9285 # We preserve .a as extension for shared libraries through AIX4.2 9286 # and later when we are not doing run time linking. 9287 library_names_spec='${libname}${release}.a $libname.a' 9288 soname_spec='${libname}${release}${shared_ext}$major' 9289 fi 9290 shlibpath_var=LIBPATH 9291 fi 9292 ;; 9293 9294amigaos*) 9295 library_names_spec='$libname.ixlibrary $libname.a' 9296 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9297 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' 9298 ;; 9299 9300beos*) 9301 library_names_spec='${libname}${shared_ext}' 9302 dynamic_linker="$host_os ld.so" 9303 shlibpath_var=LIBRARY_PATH 9304 ;; 9305 9306bsdi[45]*) 9307 version_type=linux 9308 need_version=no 9309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9310 soname_spec='${libname}${release}${shared_ext}$major' 9311 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9312 shlibpath_var=LD_LIBRARY_PATH 9313 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9314 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9315 # the default ld.so.conf also contains /usr/contrib/lib and 9316 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9317 # libtool to hard-code these into programs 9318 ;; 9319 9320cygwin* | mingw* | pw32*) 9321 version_type=windows 9322 shrext_cmds=".dll" 9323 need_version=no 9324 need_lib_prefix=no 9325 9326 case $GCC,$host_os in 9327 yes,cygwin* | yes,mingw* | yes,pw32*) 9328 library_names_spec='$libname.dll.a' 9329 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9330 postinstall_cmds='base_file=`basename \${file}`~ 9331 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9332 dldir=$destdir/`dirname \$dlpath`~ 9333 test -d \$dldir || mkdir -p \$dldir~ 9334 $install_prog $dir/$dlname \$dldir/$dlname~ 9335 chmod a+x \$dldir/$dlname' 9336 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9337 dlpath=$dir/\$dldll~ 9338 $rm \$dlpath' 9339 shlibpath_overrides_runpath=yes 9340 9341 case $host_os in 9342 cygwin*) 9343 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9344 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9345 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9346 ;; 9347 mingw*) 9348 # MinGW DLLs use traditional 'lib' prefix 9349 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9350 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9351 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9352 # It is most probably a Windows format PATH printed by 9353 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9354 # path with ; separators, and with drive letters. We can handle the 9355 # drive letters (cygwin fileutils understands them), so leave them, 9356 # especially as we might pass files found there to a mingw objdump, 9357 # which wouldn't understand a cygwinified path. Ahh. 9358 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9359 else 9360 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9361 fi 9362 ;; 9363 pw32*) 9364 # pw32 DLLs use 'pw' prefix rather than 'lib' 9365 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9366 ;; 9367 esac 9368 ;; 9369 9370 *) 9371 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9372 ;; 9373 esac 9374 dynamic_linker='Win32 ld.exe' 9375 # FIXME: first we should search . and the directory the executable is in 9376 shlibpath_var=PATH 9377 ;; 9378 9379darwin* | rhapsody*) 9380 dynamic_linker="$host_os dyld" 9381 version_type=darwin 9382 need_lib_prefix=no 9383 need_version=no 9384 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9385 soname_spec='${libname}${release}${major}$shared_ext' 9386 shlibpath_overrides_runpath=yes 9387 shlibpath_var=DYLD_LIBRARY_PATH 9388 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9389 9390 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9391 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9392 ;; 9393 9394dgux*) 9395 version_type=linux 9396 need_lib_prefix=no 9397 need_version=no 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 shlibpath_var=LD_LIBRARY_PATH 9401 ;; 9402 9403freebsd1*) 9404 dynamic_linker=no 9405 ;; 9406 9407freebsd* | dragonfly*) 9408 # DragonFly does not have aout. When/if they implement a new 9409 # versioning mechanism, adjust this. 9410 if test -x /usr/bin/objformat; then 9411 objformat=`/usr/bin/objformat` 9412 else 9413 case $host_os in 9414 freebsd[123]*) objformat=aout ;; 9415 *) objformat=elf ;; 9416 esac 9417 fi 9418 # Handle Gentoo/FreeBSD as it was Linux 9419 case $host_vendor in 9420 gentoo) 9421 version_type=linux ;; 9422 *) 9423 version_type=freebsd-$objformat ;; 9424 esac 9425 9426 case $version_type in 9427 freebsd-elf*) 9428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9429 need_version=no 9430 need_lib_prefix=no 9431 ;; 9432 freebsd-*) 9433 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9434 need_version=yes 9435 ;; 9436 linux) 9437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9438 soname_spec='${libname}${release}${shared_ext}$major' 9439 need_lib_prefix=no 9440 need_version=no 9441 ;; 9442 esac 9443 shlibpath_var=LD_LIBRARY_PATH 9444 case $host_os in 9445 freebsd2*) 9446 shlibpath_overrides_runpath=yes 9447 ;; 9448 freebsd3.[01]* | freebsdelf3.[01]*) 9449 shlibpath_overrides_runpath=yes 9450 hardcode_into_libs=yes 9451 ;; 9452 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9453 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9454 shlibpath_overrides_runpath=no 9455 hardcode_into_libs=yes 9456 ;; 9457 *) # from 4.6 on, and DragonFly 9458 shlibpath_overrides_runpath=yes 9459 hardcode_into_libs=yes 9460 ;; 9461 esac 9462 ;; 9463 9464gnu*) 9465 version_type=linux 9466 need_lib_prefix=no 9467 need_version=no 9468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9469 soname_spec='${libname}${release}${shared_ext}$major' 9470 shlibpath_var=LD_LIBRARY_PATH 9471 hardcode_into_libs=yes 9472 ;; 9473 9474hpux9* | hpux10* | hpux11*) 9475 # Give a soname corresponding to the major version so that dld.sl refuses to 9476 # link against other versions. 9477 version_type=sunos 9478 need_lib_prefix=no 9479 need_version=no 9480 case $host_cpu in 9481 ia64*) 9482 shrext_cmds='.so' 9483 hardcode_into_libs=yes 9484 dynamic_linker="$host_os dld.so" 9485 shlibpath_var=LD_LIBRARY_PATH 9486 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9488 soname_spec='${libname}${release}${shared_ext}$major' 9489 if test "X$HPUX_IA64_MODE" = X32; then 9490 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9491 else 9492 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9493 fi 9494 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9495 ;; 9496 hppa*64*) 9497 shrext_cmds='.sl' 9498 hardcode_into_libs=yes 9499 dynamic_linker="$host_os dld.sl" 9500 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9501 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9503 soname_spec='${libname}${release}${shared_ext}$major' 9504 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9505 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9506 ;; 9507 *) 9508 shrext_cmds='.sl' 9509 dynamic_linker="$host_os dld.sl" 9510 shlibpath_var=SHLIB_PATH 9511 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9513 soname_spec='${libname}${release}${shared_ext}$major' 9514 ;; 9515 esac 9516 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9517 postinstall_cmds='chmod 555 $lib' 9518 ;; 9519 9520interix[3-9]*) 9521 version_type=linux 9522 need_lib_prefix=no 9523 need_version=no 9524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9525 soname_spec='${libname}${release}${shared_ext}$major' 9526 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9527 shlibpath_var=LD_LIBRARY_PATH 9528 shlibpath_overrides_runpath=no 9529 hardcode_into_libs=yes 9530 ;; 9531 9532irix5* | irix6* | nonstopux*) 9533 case $host_os in 9534 nonstopux*) version_type=nonstopux ;; 9535 *) 9536 if test "$lt_cv_prog_gnu_ld" = yes; then 9537 version_type=linux 9538 else 9539 version_type=irix 9540 fi ;; 9541 esac 9542 need_lib_prefix=no 9543 need_version=no 9544 soname_spec='${libname}${release}${shared_ext}$major' 9545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9546 case $host_os in 9547 irix5* | nonstopux*) 9548 libsuff= shlibsuff= 9549 ;; 9550 *) 9551 case $LD in # libtool.m4 will add one of these switches to LD 9552 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9553 libsuff= shlibsuff= libmagic=32-bit;; 9554 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9555 libsuff=32 shlibsuff=N32 libmagic=N32;; 9556 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9557 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9558 *) libsuff= shlibsuff= libmagic=never-match;; 9559 esac 9560 ;; 9561 esac 9562 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9563 shlibpath_overrides_runpath=no 9564 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9565 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9566 hardcode_into_libs=yes 9567 ;; 9568 9569# No shared lib support for Linux oldld, aout, or coff. 9570linux*oldld* | linux*aout* | linux*coff*) 9571 dynamic_linker=no 9572 ;; 9573 9574# This must be Linux ELF. 9575linux* | k*bsd*-gnu) 9576 version_type=linux 9577 need_lib_prefix=no 9578 need_version=no 9579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9580 soname_spec='${libname}${release}${shared_ext}$major' 9581 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9582 shlibpath_var=LD_LIBRARY_PATH 9583 shlibpath_overrides_runpath=no 9584 # This implies no fast_install, which is unacceptable. 9585 # Some rework will be needed to allow for fast_install 9586 # before this can be enabled. 9587 hardcode_into_libs=yes 9588 9589 # Append ld.so.conf contents to the search path 9590 if test -f /etc/ld.so.conf; then 9591 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' ' '` 9592 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9593 fi 9594 9595 # We used to test for /lib/ld.so.1 and disable shared libraries on 9596 # powerpc, because MkLinux only supported shared libraries with the 9597 # GNU dynamic linker. Since this was broken with cross compilers, 9598 # most powerpc-linux boxes support dynamic linking these days and 9599 # people can always --disable-shared, the test was removed, and we 9600 # assume the GNU/Linux dynamic linker is in use. 9601 dynamic_linker='GNU/Linux ld.so' 9602 ;; 9603 9604netbsd*) 9605 version_type=sunos 9606 need_lib_prefix=no 9607 need_version=no 9608 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9610 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9611 dynamic_linker='NetBSD (a.out) ld.so' 9612 else 9613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9614 soname_spec='${libname}${release}${shared_ext}$major' 9615 dynamic_linker='NetBSD ld.elf_so' 9616 fi 9617 shlibpath_var=LD_LIBRARY_PATH 9618 shlibpath_overrides_runpath=yes 9619 hardcode_into_libs=yes 9620 ;; 9621 9622newsos6) 9623 version_type=linux 9624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9625 shlibpath_var=LD_LIBRARY_PATH 9626 shlibpath_overrides_runpath=yes 9627 ;; 9628 9629nto-qnx*) 9630 version_type=linux 9631 need_lib_prefix=no 9632 need_version=no 9633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9634 soname_spec='${libname}${release}${shared_ext}$major' 9635 shlibpath_var=LD_LIBRARY_PATH 9636 shlibpath_overrides_runpath=yes 9637 ;; 9638 9639openbsd*) 9640 version_type=sunos 9641 sys_lib_dlsearch_path_spec="/usr/lib" 9642 need_lib_prefix=no 9643 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9644 case $host_os in 9645 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9646 *) need_version=no ;; 9647 esac 9648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9649 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9650 shlibpath_var=LD_LIBRARY_PATH 9651 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9652 case $host_os in 9653 openbsd2.[89] | openbsd2.[89].*) 9654 shlibpath_overrides_runpath=no 9655 ;; 9656 *) 9657 shlibpath_overrides_runpath=yes 9658 ;; 9659 esac 9660 else 9661 shlibpath_overrides_runpath=yes 9662 fi 9663 ;; 9664 9665os2*) 9666 libname_spec='$name' 9667 shrext_cmds=".dll" 9668 need_lib_prefix=no 9669 library_names_spec='$libname${shared_ext} $libname.a' 9670 dynamic_linker='OS/2 ld.exe' 9671 shlibpath_var=LIBPATH 9672 ;; 9673 9674osf3* | osf4* | osf5*) 9675 version_type=osf 9676 need_lib_prefix=no 9677 need_version=no 9678 soname_spec='${libname}${release}${shared_ext}$major' 9679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9680 shlibpath_var=LD_LIBRARY_PATH 9681 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9682 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9683 ;; 9684 9685rdos*) 9686 dynamic_linker=no 9687 ;; 9688 9689solaris*) 9690 version_type=linux 9691 need_lib_prefix=no 9692 need_version=no 9693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9694 soname_spec='${libname}${release}${shared_ext}$major' 9695 shlibpath_var=LD_LIBRARY_PATH 9696 shlibpath_overrides_runpath=yes 9697 hardcode_into_libs=yes 9698 # ldd complains unless libraries are executable 9699 postinstall_cmds='chmod +x $lib' 9700 ;; 9701 9702sunos4*) 9703 version_type=sunos 9704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9705 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9706 shlibpath_var=LD_LIBRARY_PATH 9707 shlibpath_overrides_runpath=yes 9708 if test "$with_gnu_ld" = yes; then 9709 need_lib_prefix=no 9710 fi 9711 need_version=yes 9712 ;; 9713 9714sysv4 | sysv4.3*) 9715 version_type=linux 9716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9717 soname_spec='${libname}${release}${shared_ext}$major' 9718 shlibpath_var=LD_LIBRARY_PATH 9719 case $host_vendor in 9720 sni) 9721 shlibpath_overrides_runpath=no 9722 need_lib_prefix=no 9723 export_dynamic_flag_spec='${wl}-Blargedynsym' 9724 runpath_var=LD_RUN_PATH 9725 ;; 9726 siemens) 9727 need_lib_prefix=no 9728 ;; 9729 motorola) 9730 need_lib_prefix=no 9731 need_version=no 9732 shlibpath_overrides_runpath=no 9733 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9734 ;; 9735 esac 9736 ;; 9737 9738sysv4*MP*) 9739 if test -d /usr/nec ;then 9740 version_type=linux 9741 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9742 soname_spec='$libname${shared_ext}.$major' 9743 shlibpath_var=LD_LIBRARY_PATH 9744 fi 9745 ;; 9746 9747sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9748 version_type=freebsd-elf 9749 need_lib_prefix=no 9750 need_version=no 9751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9752 soname_spec='${libname}${release}${shared_ext}$major' 9753 shlibpath_var=LD_LIBRARY_PATH 9754 hardcode_into_libs=yes 9755 if test "$with_gnu_ld" = yes; then 9756 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9757 shlibpath_overrides_runpath=no 9758 else 9759 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9760 shlibpath_overrides_runpath=yes 9761 case $host_os in 9762 sco3.2v5*) 9763 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9764 ;; 9765 esac 9766 fi 9767 sys_lib_dlsearch_path_spec='/usr/lib' 9768 ;; 9769 9770uts4*) 9771 version_type=linux 9772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9773 soname_spec='${libname}${release}${shared_ext}$major' 9774 shlibpath_var=LD_LIBRARY_PATH 9775 ;; 9776 9777*) 9778 dynamic_linker=no 9779 ;; 9780esac 9781{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9782$as_echo "$dynamic_linker" >&6; } 9783test "$dynamic_linker" = no && can_build_shared=no 9784 9785if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 9786 $as_echo_n "(cached) " >&6 9787else 9788 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 9789fi 9790 9791sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 9792if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 9793 $as_echo_n "(cached) " >&6 9794else 9795 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 9796fi 9797 9798sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 9799 9800variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9801if test "$GCC" = yes; then 9802 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9803fi 9804 9805{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9806$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 9807hardcode_action= 9808if test -n "$hardcode_libdir_flag_spec" || \ 9809 test -n "$runpath_var" || \ 9810 test "X$hardcode_automatic" = "Xyes" ; then 9811 9812 # We can hardcode non-existant directories. 9813 if test "$hardcode_direct" != no && 9814 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9815 # have to relink, otherwise we might link with an installed library 9816 # when we should be linking with a yet-to-be-installed one 9817 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9818 test "$hardcode_minus_L" != no; then 9819 # Linking always hardcodes the temporary library directory. 9820 hardcode_action=relink 9821 else 9822 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9823 hardcode_action=immediate 9824 fi 9825else 9826 # We cannot hardcode anything, or else we can only hardcode existing 9827 # directories. 9828 hardcode_action=unsupported 9829fi 9830{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 9831$as_echo "$hardcode_action" >&6; } 9832 9833if test "$hardcode_action" = relink; then 9834 # Fast installation is not supported 9835 enable_fast_install=no 9836elif test "$shlibpath_overrides_runpath" = yes || 9837 test "$enable_shared" = no; then 9838 # Fast installation is not necessary 9839 enable_fast_install=needless 9840fi 9841 9842striplib= 9843old_striplib= 9844{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9845$as_echo_n "checking whether stripping libraries is possible... " >&6; } 9846if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9847 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9848 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9849 { $as_echo "$as_me:$LINENO: result: yes" >&5 9850$as_echo "yes" >&6; } 9851else 9852# FIXME - insert some real tests, host_os isn't really good enough 9853 case $host_os in 9854 darwin*) 9855 if test -n "$STRIP" ; then 9856 striplib="$STRIP -x" 9857 old_striplib="$STRIP -S" 9858 { $as_echo "$as_me:$LINENO: result: yes" >&5 9859$as_echo "yes" >&6; } 9860 else 9861 { $as_echo "$as_me:$LINENO: result: no" >&5 9862$as_echo "no" >&6; } 9863fi 9864 ;; 9865 *) 9866 { $as_echo "$as_me:$LINENO: result: no" >&5 9867$as_echo "no" >&6; } 9868 ;; 9869 esac 9870fi 9871 9872if test "x$enable_dlopen" != xyes; then 9873 enable_dlopen=unknown 9874 enable_dlopen_self=unknown 9875 enable_dlopen_self_static=unknown 9876else 9877 lt_cv_dlopen=no 9878 lt_cv_dlopen_libs= 9879 9880 case $host_os in 9881 beos*) 9882 lt_cv_dlopen="load_add_on" 9883 lt_cv_dlopen_libs= 9884 lt_cv_dlopen_self=yes 9885 ;; 9886 9887 mingw* | pw32*) 9888 lt_cv_dlopen="LoadLibrary" 9889 lt_cv_dlopen_libs= 9890 ;; 9891 9892 cygwin*) 9893 lt_cv_dlopen="dlopen" 9894 lt_cv_dlopen_libs= 9895 ;; 9896 9897 darwin*) 9898 # if libdl is installed we need to link against it 9899 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9900$as_echo_n "checking for dlopen in -ldl... " >&6; } 9901if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9902 $as_echo_n "(cached) " >&6 9903else 9904 ac_check_lib_save_LIBS=$LIBS 9905LIBS="-ldl $LIBS" 9906cat >conftest.$ac_ext <<_ACEOF 9907/* confdefs.h. */ 9908_ACEOF 9909cat confdefs.h >>conftest.$ac_ext 9910cat >>conftest.$ac_ext <<_ACEOF 9911/* end confdefs.h. */ 9912 9913/* Override any GCC internal prototype to avoid an error. 9914 Use char because int might match the return type of a GCC 9915 builtin and then its argument prototype would still apply. */ 9916#ifdef __cplusplus 9917extern "C" 9918#endif 9919char dlopen (); 9920int 9921main () 9922{ 9923return dlopen (); 9924 ; 9925 return 0; 9926} 9927_ACEOF 9928rm -f conftest.$ac_objext conftest$ac_exeext 9929if { (ac_try="$ac_link" 9930case "(($ac_try" in 9931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9932 *) ac_try_echo=$ac_try;; 9933esac 9934eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9935$as_echo "$ac_try_echo") >&5 9936 (eval "$ac_link") 2>conftest.er1 9937 ac_status=$? 9938 grep -v '^ *+' conftest.er1 >conftest.err 9939 rm -f conftest.er1 9940 cat conftest.err >&5 9941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9942 (exit $ac_status); } && { 9943 test -z "$ac_c_werror_flag" || 9944 test ! -s conftest.err 9945 } && test -s conftest$ac_exeext && { 9946 test "$cross_compiling" = yes || 9947 $as_test_x conftest$ac_exeext 9948 }; then 9949 ac_cv_lib_dl_dlopen=yes 9950else 9951 $as_echo "$as_me: failed program was:" >&5 9952sed 's/^/| /' conftest.$ac_ext >&5 9953 9954 ac_cv_lib_dl_dlopen=no 9955fi 9956 9957rm -rf conftest.dSYM 9958rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9959 conftest$ac_exeext conftest.$ac_ext 9960LIBS=$ac_check_lib_save_LIBS 9961fi 9962{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9963$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 9964if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 9965 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9966else 9967 9968 lt_cv_dlopen="dyld" 9969 lt_cv_dlopen_libs= 9970 lt_cv_dlopen_self=yes 9971 9972fi 9973 9974 ;; 9975 9976 *) 9977 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 9978$as_echo_n "checking for shl_load... " >&6; } 9979if test "${ac_cv_func_shl_load+set}" = set; then 9980 $as_echo_n "(cached) " >&6 9981else 9982 cat >conftest.$ac_ext <<_ACEOF 9983/* confdefs.h. */ 9984_ACEOF 9985cat confdefs.h >>conftest.$ac_ext 9986cat >>conftest.$ac_ext <<_ACEOF 9987/* end confdefs.h. */ 9988/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9989 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9990#define shl_load innocuous_shl_load 9991 9992/* System header to define __stub macros and hopefully few prototypes, 9993 which can conflict with char shl_load (); below. 9994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9995 <limits.h> exists even on freestanding compilers. */ 9996 9997#ifdef __STDC__ 9998# include <limits.h> 9999#else 10000# include <assert.h> 10001#endif 10002 10003#undef shl_load 10004 10005/* Override any GCC internal prototype to avoid an error. 10006 Use char because int might match the return type of a GCC 10007 builtin and then its argument prototype would still apply. */ 10008#ifdef __cplusplus 10009extern "C" 10010#endif 10011char shl_load (); 10012/* The GNU C library defines this for functions which it implements 10013 to always fail with ENOSYS. Some functions are actually named 10014 something starting with __ and the normal name is an alias. */ 10015#if defined __stub_shl_load || defined __stub___shl_load 10016choke me 10017#endif 10018 10019int 10020main () 10021{ 10022return shl_load (); 10023 ; 10024 return 0; 10025} 10026_ACEOF 10027rm -f conftest.$ac_objext conftest$ac_exeext 10028if { (ac_try="$ac_link" 10029case "(($ac_try" in 10030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10031 *) ac_try_echo=$ac_try;; 10032esac 10033eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10034$as_echo "$ac_try_echo") >&5 10035 (eval "$ac_link") 2>conftest.er1 10036 ac_status=$? 10037 grep -v '^ *+' conftest.er1 >conftest.err 10038 rm -f conftest.er1 10039 cat conftest.err >&5 10040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10041 (exit $ac_status); } && { 10042 test -z "$ac_c_werror_flag" || 10043 test ! -s conftest.err 10044 } && test -s conftest$ac_exeext && { 10045 test "$cross_compiling" = yes || 10046 $as_test_x conftest$ac_exeext 10047 }; then 10048 ac_cv_func_shl_load=yes 10049else 10050 $as_echo "$as_me: failed program was:" >&5 10051sed 's/^/| /' conftest.$ac_ext >&5 10052 10053 ac_cv_func_shl_load=no 10054fi 10055 10056rm -rf conftest.dSYM 10057rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10058 conftest$ac_exeext conftest.$ac_ext 10059fi 10060{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 10061$as_echo "$ac_cv_func_shl_load" >&6; } 10062if test "x$ac_cv_func_shl_load" = x""yes; then 10063 lt_cv_dlopen="shl_load" 10064else 10065 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10066$as_echo_n "checking for shl_load in -ldld... " >&6; } 10067if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10068 $as_echo_n "(cached) " >&6 10069else 10070 ac_check_lib_save_LIBS=$LIBS 10071LIBS="-ldld $LIBS" 10072cat >conftest.$ac_ext <<_ACEOF 10073/* confdefs.h. */ 10074_ACEOF 10075cat confdefs.h >>conftest.$ac_ext 10076cat >>conftest.$ac_ext <<_ACEOF 10077/* end confdefs.h. */ 10078 10079/* Override any GCC internal prototype to avoid an error. 10080 Use char because int might match the return type of a GCC 10081 builtin and then its argument prototype would still apply. */ 10082#ifdef __cplusplus 10083extern "C" 10084#endif 10085char shl_load (); 10086int 10087main () 10088{ 10089return shl_load (); 10090 ; 10091 return 0; 10092} 10093_ACEOF 10094rm -f conftest.$ac_objext conftest$ac_exeext 10095if { (ac_try="$ac_link" 10096case "(($ac_try" in 10097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10098 *) ac_try_echo=$ac_try;; 10099esac 10100eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10101$as_echo "$ac_try_echo") >&5 10102 (eval "$ac_link") 2>conftest.er1 10103 ac_status=$? 10104 grep -v '^ *+' conftest.er1 >conftest.err 10105 rm -f conftest.er1 10106 cat conftest.err >&5 10107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10108 (exit $ac_status); } && { 10109 test -z "$ac_c_werror_flag" || 10110 test ! -s conftest.err 10111 } && test -s conftest$ac_exeext && { 10112 test "$cross_compiling" = yes || 10113 $as_test_x conftest$ac_exeext 10114 }; then 10115 ac_cv_lib_dld_shl_load=yes 10116else 10117 $as_echo "$as_me: failed program was:" >&5 10118sed 's/^/| /' conftest.$ac_ext >&5 10119 10120 ac_cv_lib_dld_shl_load=no 10121fi 10122 10123rm -rf conftest.dSYM 10124rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10125 conftest$ac_exeext conftest.$ac_ext 10126LIBS=$ac_check_lib_save_LIBS 10127fi 10128{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10129$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10130if test "x$ac_cv_lib_dld_shl_load" = x""yes; then 10131 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10132else 10133 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 10134$as_echo_n "checking for dlopen... " >&6; } 10135if test "${ac_cv_func_dlopen+set}" = set; then 10136 $as_echo_n "(cached) " >&6 10137else 10138 cat >conftest.$ac_ext <<_ACEOF 10139/* confdefs.h. */ 10140_ACEOF 10141cat confdefs.h >>conftest.$ac_ext 10142cat >>conftest.$ac_ext <<_ACEOF 10143/* end confdefs.h. */ 10144/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10145 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10146#define dlopen innocuous_dlopen 10147 10148/* System header to define __stub macros and hopefully few prototypes, 10149 which can conflict with char dlopen (); below. 10150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10151 <limits.h> exists even on freestanding compilers. */ 10152 10153#ifdef __STDC__ 10154# include <limits.h> 10155#else 10156# include <assert.h> 10157#endif 10158 10159#undef dlopen 10160 10161/* Override any GCC internal prototype to avoid an error. 10162 Use char because int might match the return type of a GCC 10163 builtin and then its argument prototype would still apply. */ 10164#ifdef __cplusplus 10165extern "C" 10166#endif 10167char dlopen (); 10168/* The GNU C library defines this for functions which it implements 10169 to always fail with ENOSYS. Some functions are actually named 10170 something starting with __ and the normal name is an alias. */ 10171#if defined __stub_dlopen || defined __stub___dlopen 10172choke me 10173#endif 10174 10175int 10176main () 10177{ 10178return dlopen (); 10179 ; 10180 return 0; 10181} 10182_ACEOF 10183rm -f conftest.$ac_objext conftest$ac_exeext 10184if { (ac_try="$ac_link" 10185case "(($ac_try" in 10186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10187 *) ac_try_echo=$ac_try;; 10188esac 10189eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10190$as_echo "$ac_try_echo") >&5 10191 (eval "$ac_link") 2>conftest.er1 10192 ac_status=$? 10193 grep -v '^ *+' conftest.er1 >conftest.err 10194 rm -f conftest.er1 10195 cat conftest.err >&5 10196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10197 (exit $ac_status); } && { 10198 test -z "$ac_c_werror_flag" || 10199 test ! -s conftest.err 10200 } && test -s conftest$ac_exeext && { 10201 test "$cross_compiling" = yes || 10202 $as_test_x conftest$ac_exeext 10203 }; then 10204 ac_cv_func_dlopen=yes 10205else 10206 $as_echo "$as_me: failed program was:" >&5 10207sed 's/^/| /' conftest.$ac_ext >&5 10208 10209 ac_cv_func_dlopen=no 10210fi 10211 10212rm -rf conftest.dSYM 10213rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10214 conftest$ac_exeext conftest.$ac_ext 10215fi 10216{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10217$as_echo "$ac_cv_func_dlopen" >&6; } 10218if test "x$ac_cv_func_dlopen" = x""yes; then 10219 lt_cv_dlopen="dlopen" 10220else 10221 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10222$as_echo_n "checking for dlopen in -ldl... " >&6; } 10223if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10224 $as_echo_n "(cached) " >&6 10225else 10226 ac_check_lib_save_LIBS=$LIBS 10227LIBS="-ldl $LIBS" 10228cat >conftest.$ac_ext <<_ACEOF 10229/* confdefs.h. */ 10230_ACEOF 10231cat confdefs.h >>conftest.$ac_ext 10232cat >>conftest.$ac_ext <<_ACEOF 10233/* end confdefs.h. */ 10234 10235/* Override any GCC internal prototype to avoid an error. 10236 Use char because int might match the return type of a GCC 10237 builtin and then its argument prototype would still apply. */ 10238#ifdef __cplusplus 10239extern "C" 10240#endif 10241char dlopen (); 10242int 10243main () 10244{ 10245return dlopen (); 10246 ; 10247 return 0; 10248} 10249_ACEOF 10250rm -f conftest.$ac_objext conftest$ac_exeext 10251if { (ac_try="$ac_link" 10252case "(($ac_try" in 10253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10254 *) ac_try_echo=$ac_try;; 10255esac 10256eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10257$as_echo "$ac_try_echo") >&5 10258 (eval "$ac_link") 2>conftest.er1 10259 ac_status=$? 10260 grep -v '^ *+' conftest.er1 >conftest.err 10261 rm -f conftest.er1 10262 cat conftest.err >&5 10263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10264 (exit $ac_status); } && { 10265 test -z "$ac_c_werror_flag" || 10266 test ! -s conftest.err 10267 } && test -s conftest$ac_exeext && { 10268 test "$cross_compiling" = yes || 10269 $as_test_x conftest$ac_exeext 10270 }; then 10271 ac_cv_lib_dl_dlopen=yes 10272else 10273 $as_echo "$as_me: failed program was:" >&5 10274sed 's/^/| /' conftest.$ac_ext >&5 10275 10276 ac_cv_lib_dl_dlopen=no 10277fi 10278 10279rm -rf conftest.dSYM 10280rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10281 conftest$ac_exeext conftest.$ac_ext 10282LIBS=$ac_check_lib_save_LIBS 10283fi 10284{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10285$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10286if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 10287 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10288else 10289 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10290$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10291if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10292 $as_echo_n "(cached) " >&6 10293else 10294 ac_check_lib_save_LIBS=$LIBS 10295LIBS="-lsvld $LIBS" 10296cat >conftest.$ac_ext <<_ACEOF 10297/* confdefs.h. */ 10298_ACEOF 10299cat confdefs.h >>conftest.$ac_ext 10300cat >>conftest.$ac_ext <<_ACEOF 10301/* end confdefs.h. */ 10302 10303/* Override any GCC internal prototype to avoid an error. 10304 Use char because int might match the return type of a GCC 10305 builtin and then its argument prototype would still apply. */ 10306#ifdef __cplusplus 10307extern "C" 10308#endif 10309char dlopen (); 10310int 10311main () 10312{ 10313return dlopen (); 10314 ; 10315 return 0; 10316} 10317_ACEOF 10318rm -f conftest.$ac_objext conftest$ac_exeext 10319if { (ac_try="$ac_link" 10320case "(($ac_try" in 10321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10322 *) ac_try_echo=$ac_try;; 10323esac 10324eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10325$as_echo "$ac_try_echo") >&5 10326 (eval "$ac_link") 2>conftest.er1 10327 ac_status=$? 10328 grep -v '^ *+' conftest.er1 >conftest.err 10329 rm -f conftest.er1 10330 cat conftest.err >&5 10331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10332 (exit $ac_status); } && { 10333 test -z "$ac_c_werror_flag" || 10334 test ! -s conftest.err 10335 } && test -s conftest$ac_exeext && { 10336 test "$cross_compiling" = yes || 10337 $as_test_x conftest$ac_exeext 10338 }; then 10339 ac_cv_lib_svld_dlopen=yes 10340else 10341 $as_echo "$as_me: failed program was:" >&5 10342sed 's/^/| /' conftest.$ac_ext >&5 10343 10344 ac_cv_lib_svld_dlopen=no 10345fi 10346 10347rm -rf conftest.dSYM 10348rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10349 conftest$ac_exeext conftest.$ac_ext 10350LIBS=$ac_check_lib_save_LIBS 10351fi 10352{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10353$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10354if test "x$ac_cv_lib_svld_dlopen" = x""yes; then 10355 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10356else 10357 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10358$as_echo_n "checking for dld_link in -ldld... " >&6; } 10359if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10360 $as_echo_n "(cached) " >&6 10361else 10362 ac_check_lib_save_LIBS=$LIBS 10363LIBS="-ldld $LIBS" 10364cat >conftest.$ac_ext <<_ACEOF 10365/* confdefs.h. */ 10366_ACEOF 10367cat confdefs.h >>conftest.$ac_ext 10368cat >>conftest.$ac_ext <<_ACEOF 10369/* end confdefs.h. */ 10370 10371/* Override any GCC internal prototype to avoid an error. 10372 Use char because int might match the return type of a GCC 10373 builtin and then its argument prototype would still apply. */ 10374#ifdef __cplusplus 10375extern "C" 10376#endif 10377char dld_link (); 10378int 10379main () 10380{ 10381return dld_link (); 10382 ; 10383 return 0; 10384} 10385_ACEOF 10386rm -f conftest.$ac_objext conftest$ac_exeext 10387if { (ac_try="$ac_link" 10388case "(($ac_try" in 10389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10390 *) ac_try_echo=$ac_try;; 10391esac 10392eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10393$as_echo "$ac_try_echo") >&5 10394 (eval "$ac_link") 2>conftest.er1 10395 ac_status=$? 10396 grep -v '^ *+' conftest.er1 >conftest.err 10397 rm -f conftest.er1 10398 cat conftest.err >&5 10399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10400 (exit $ac_status); } && { 10401 test -z "$ac_c_werror_flag" || 10402 test ! -s conftest.err 10403 } && test -s conftest$ac_exeext && { 10404 test "$cross_compiling" = yes || 10405 $as_test_x conftest$ac_exeext 10406 }; then 10407 ac_cv_lib_dld_dld_link=yes 10408else 10409 $as_echo "$as_me: failed program was:" >&5 10410sed 's/^/| /' conftest.$ac_ext >&5 10411 10412 ac_cv_lib_dld_dld_link=no 10413fi 10414 10415rm -rf conftest.dSYM 10416rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10417 conftest$ac_exeext conftest.$ac_ext 10418LIBS=$ac_check_lib_save_LIBS 10419fi 10420{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10421$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10422if test "x$ac_cv_lib_dld_dld_link" = x""yes; then 10423 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10424fi 10425 10426 10427fi 10428 10429 10430fi 10431 10432 10433fi 10434 10435 10436fi 10437 10438 10439fi 10440 10441 ;; 10442 esac 10443 10444 if test "x$lt_cv_dlopen" != xno; then 10445 enable_dlopen=yes 10446 else 10447 enable_dlopen=no 10448 fi 10449 10450 case $lt_cv_dlopen in 10451 dlopen) 10452 save_CPPFLAGS="$CPPFLAGS" 10453 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10454 10455 save_LDFLAGS="$LDFLAGS" 10456 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10457 10458 save_LIBS="$LIBS" 10459 LIBS="$lt_cv_dlopen_libs $LIBS" 10460 10461 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10462$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10463if test "${lt_cv_dlopen_self+set}" = set; then 10464 $as_echo_n "(cached) " >&6 10465else 10466 if test "$cross_compiling" = yes; then : 10467 lt_cv_dlopen_self=cross 10468else 10469 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10470 lt_status=$lt_dlunknown 10471 cat > conftest.$ac_ext <<EOF 10472#line 10472 "configure" 10473#include "confdefs.h" 10474 10475#if HAVE_DLFCN_H 10476#include <dlfcn.h> 10477#endif 10478 10479#include <stdio.h> 10480 10481#ifdef RTLD_GLOBAL 10482# define LT_DLGLOBAL RTLD_GLOBAL 10483#else 10484# ifdef DL_GLOBAL 10485# define LT_DLGLOBAL DL_GLOBAL 10486# else 10487# define LT_DLGLOBAL 0 10488# endif 10489#endif 10490 10491/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10492 find out it does not work in some platform. */ 10493#ifndef LT_DLLAZY_OR_NOW 10494# ifdef RTLD_LAZY 10495# define LT_DLLAZY_OR_NOW RTLD_LAZY 10496# else 10497# ifdef DL_LAZY 10498# define LT_DLLAZY_OR_NOW DL_LAZY 10499# else 10500# ifdef RTLD_NOW 10501# define LT_DLLAZY_OR_NOW RTLD_NOW 10502# else 10503# ifdef DL_NOW 10504# define LT_DLLAZY_OR_NOW DL_NOW 10505# else 10506# define LT_DLLAZY_OR_NOW 0 10507# endif 10508# endif 10509# endif 10510# endif 10511#endif 10512 10513#ifdef __cplusplus 10514extern "C" void exit (int); 10515#endif 10516 10517void fnord() { int i=42;} 10518int main () 10519{ 10520 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10521 int status = $lt_dlunknown; 10522 10523 if (self) 10524 { 10525 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10526 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10527 /* dlclose (self); */ 10528 } 10529 else 10530 puts (dlerror ()); 10531 10532 exit (status); 10533} 10534EOF 10535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10536 (eval $ac_link) 2>&5 10537 ac_status=$? 10538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10539 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10540 (./conftest; exit; ) >&5 2>/dev/null 10541 lt_status=$? 10542 case x$lt_status in 10543 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10544 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10545 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10546 esac 10547 else : 10548 # compilation failed 10549 lt_cv_dlopen_self=no 10550 fi 10551fi 10552rm -fr conftest* 10553 10554 10555fi 10556{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10557$as_echo "$lt_cv_dlopen_self" >&6; } 10558 10559 if test "x$lt_cv_dlopen_self" = xyes; then 10560 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10561 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10562$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10563if test "${lt_cv_dlopen_self_static+set}" = set; then 10564 $as_echo_n "(cached) " >&6 10565else 10566 if test "$cross_compiling" = yes; then : 10567 lt_cv_dlopen_self_static=cross 10568else 10569 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10570 lt_status=$lt_dlunknown 10571 cat > conftest.$ac_ext <<EOF 10572#line 10572 "configure" 10573#include "confdefs.h" 10574 10575#if HAVE_DLFCN_H 10576#include <dlfcn.h> 10577#endif 10578 10579#include <stdio.h> 10580 10581#ifdef RTLD_GLOBAL 10582# define LT_DLGLOBAL RTLD_GLOBAL 10583#else 10584# ifdef DL_GLOBAL 10585# define LT_DLGLOBAL DL_GLOBAL 10586# else 10587# define LT_DLGLOBAL 0 10588# endif 10589#endif 10590 10591/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10592 find out it does not work in some platform. */ 10593#ifndef LT_DLLAZY_OR_NOW 10594# ifdef RTLD_LAZY 10595# define LT_DLLAZY_OR_NOW RTLD_LAZY 10596# else 10597# ifdef DL_LAZY 10598# define LT_DLLAZY_OR_NOW DL_LAZY 10599# else 10600# ifdef RTLD_NOW 10601# define LT_DLLAZY_OR_NOW RTLD_NOW 10602# else 10603# ifdef DL_NOW 10604# define LT_DLLAZY_OR_NOW DL_NOW 10605# else 10606# define LT_DLLAZY_OR_NOW 0 10607# endif 10608# endif 10609# endif 10610# endif 10611#endif 10612 10613#ifdef __cplusplus 10614extern "C" void exit (int); 10615#endif 10616 10617void fnord() { int i=42;} 10618int main () 10619{ 10620 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10621 int status = $lt_dlunknown; 10622 10623 if (self) 10624 { 10625 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10626 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10627 /* dlclose (self); */ 10628 } 10629 else 10630 puts (dlerror ()); 10631 10632 exit (status); 10633} 10634EOF 10635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10636 (eval $ac_link) 2>&5 10637 ac_status=$? 10638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10639 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10640 (./conftest; exit; ) >&5 2>/dev/null 10641 lt_status=$? 10642 case x$lt_status in 10643 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10644 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10645 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10646 esac 10647 else : 10648 # compilation failed 10649 lt_cv_dlopen_self_static=no 10650 fi 10651fi 10652rm -fr conftest* 10653 10654 10655fi 10656{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10657$as_echo "$lt_cv_dlopen_self_static" >&6; } 10658 fi 10659 10660 CPPFLAGS="$save_CPPFLAGS" 10661 LDFLAGS="$save_LDFLAGS" 10662 LIBS="$save_LIBS" 10663 ;; 10664 esac 10665 10666 case $lt_cv_dlopen_self in 10667 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10668 *) enable_dlopen_self=unknown ;; 10669 esac 10670 10671 case $lt_cv_dlopen_self_static in 10672 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10673 *) enable_dlopen_self_static=unknown ;; 10674 esac 10675fi 10676 10677 10678# Report which library types will actually be built 10679{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10680$as_echo_n "checking if libtool supports shared libraries... " >&6; } 10681{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 10682$as_echo "$can_build_shared" >&6; } 10683 10684{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10685$as_echo_n "checking whether to build shared libraries... " >&6; } 10686test "$can_build_shared" = "no" && enable_shared=no 10687 10688# On AIX, shared libraries and static libraries use the same namespace, and 10689# are all built from PIC. 10690case $host_os in 10691aix3*) 10692 test "$enable_shared" = yes && enable_static=no 10693 if test -n "$RANLIB"; then 10694 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10695 postinstall_cmds='$RANLIB $lib' 10696 fi 10697 ;; 10698 10699aix[4-9]*) 10700 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10701 test "$enable_shared" = yes && enable_static=no 10702 fi 10703 ;; 10704esac 10705{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 10706$as_echo "$enable_shared" >&6; } 10707 10708{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10709$as_echo_n "checking whether to build static libraries... " >&6; } 10710# Make sure either enable_shared or enable_static is yes. 10711test "$enable_shared" = yes || enable_static=yes 10712{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5 10713$as_echo "$enable_static" >&6; } 10714 10715# The else clause should only fire when bootstrapping the 10716# libtool distribution, otherwise you forgot to ship ltmain.sh 10717# with your package, and you will get complaints that there are 10718# no rules to generate ltmain.sh. 10719if test -f "$ltmain"; then 10720 # See if we are running on zsh, and set the options which allow our commands through 10721 # without removal of \ escapes. 10722 if test -n "${ZSH_VERSION+set}" ; then 10723 setopt NO_GLOB_SUBST 10724 fi 10725 # Now quote all the things that may contain metacharacters while being 10726 # careful not to overquote the AC_SUBSTed values. We take copies of the 10727 # variables and quote the copies for generation of the libtool script. 10728 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10729 SED SHELL STRIP \ 10730 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10731 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10732 deplibs_check_method reload_flag reload_cmds need_locks \ 10733 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10734 lt_cv_sys_global_symbol_to_c_name_address \ 10735 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10736 old_postinstall_cmds old_postuninstall_cmds \ 10737 compiler \ 10738 CC \ 10739 LD \ 10740 lt_prog_compiler_wl \ 10741 lt_prog_compiler_pic \ 10742 lt_prog_compiler_static \ 10743 lt_prog_compiler_no_builtin_flag \ 10744 export_dynamic_flag_spec \ 10745 thread_safe_flag_spec \ 10746 whole_archive_flag_spec \ 10747 enable_shared_with_static_runtimes \ 10748 old_archive_cmds \ 10749 old_archive_from_new_cmds \ 10750 predep_objects \ 10751 postdep_objects \ 10752 predeps \ 10753 postdeps \ 10754 compiler_lib_search_path \ 10755 compiler_lib_search_dirs \ 10756 archive_cmds \ 10757 archive_expsym_cmds \ 10758 postinstall_cmds \ 10759 postuninstall_cmds \ 10760 old_archive_from_expsyms_cmds \ 10761 allow_undefined_flag \ 10762 no_undefined_flag \ 10763 export_symbols_cmds \ 10764 hardcode_libdir_flag_spec \ 10765 hardcode_libdir_flag_spec_ld \ 10766 hardcode_libdir_separator \ 10767 hardcode_automatic \ 10768 module_cmds \ 10769 module_expsym_cmds \ 10770 lt_cv_prog_compiler_c_o \ 10771 fix_srcfile_path \ 10772 exclude_expsyms \ 10773 include_expsyms; do 10774 10775 case $var in 10776 old_archive_cmds | \ 10777 old_archive_from_new_cmds | \ 10778 archive_cmds | \ 10779 archive_expsym_cmds | \ 10780 module_cmds | \ 10781 module_expsym_cmds | \ 10782 old_archive_from_expsyms_cmds | \ 10783 export_symbols_cmds | \ 10784 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10785 postinstall_cmds | postuninstall_cmds | \ 10786 old_postinstall_cmds | old_postuninstall_cmds | \ 10787 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10788 # Double-quote double-evaled strings. 10789 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10790 ;; 10791 *) 10792 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10793 ;; 10794 esac 10795 done 10796 10797 case $lt_echo in 10798 *'\$0 --fallback-echo"') 10799 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10800 ;; 10801 esac 10802 10803cfgfile="${ofile}T" 10804 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10805 $rm -f "$cfgfile" 10806 { $as_echo "$as_me:$LINENO: creating $ofile" >&5 10807$as_echo "$as_me: creating $ofile" >&6;} 10808 10809 cat <<__EOF__ >> "$cfgfile" 10810#! $SHELL 10811 10812# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10813# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10814# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10815# 10816# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 10817# Free Software Foundation, Inc. 10818# 10819# This file is part of GNU Libtool: 10820# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10821# 10822# This program is free software; you can redistribute it and/or modify 10823# it under the terms of the GNU General Public License as published by 10824# the Free Software Foundation; either version 2 of the License, or 10825# (at your option) any later version. 10826# 10827# This program is distributed in the hope that it will be useful, but 10828# WITHOUT ANY WARRANTY; without even the implied warranty of 10829# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10830# General Public License for more details. 10831# 10832# You should have received a copy of the GNU General Public License 10833# along with this program; if not, write to the Free Software 10834# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10835# 10836# As a special exception to the GNU General Public License, if you 10837# distribute this file as part of a program that contains a 10838# configuration script generated by Autoconf, you may include it under 10839# the same distribution terms that you use for the rest of that program. 10840 10841# A sed program that does not truncate output. 10842SED=$lt_SED 10843 10844# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10845Xsed="$SED -e 1s/^X//" 10846 10847# The HP-UX ksh and POSIX shell print the target directory to stdout 10848# if CDPATH is set. 10849(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10850 10851# The names of the tagged configurations supported by this script. 10852available_tags= 10853 10854# ### BEGIN LIBTOOL CONFIG 10855 10856# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10857 10858# Shell to use when invoking shell scripts. 10859SHELL=$lt_SHELL 10860 10861# Whether or not to build shared libraries. 10862build_libtool_libs=$enable_shared 10863 10864# Whether or not to build static libraries. 10865build_old_libs=$enable_static 10866 10867# Whether or not to add -lc for building shared libraries. 10868build_libtool_need_lc=$archive_cmds_need_lc 10869 10870# Whether or not to disallow shared libs when runtime libs are static 10871allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10872 10873# Whether or not to optimize for fast installation. 10874fast_install=$enable_fast_install 10875 10876# The host system. 10877host_alias=$host_alias 10878host=$host 10879host_os=$host_os 10880 10881# The build system. 10882build_alias=$build_alias 10883build=$build 10884build_os=$build_os 10885 10886# An echo program that does not interpret backslashes. 10887echo=$lt_echo 10888 10889# The archiver. 10890AR=$lt_AR 10891AR_FLAGS=$lt_AR_FLAGS 10892 10893# A C compiler. 10894LTCC=$lt_LTCC 10895 10896# LTCC compiler flags. 10897LTCFLAGS=$lt_LTCFLAGS 10898 10899# A language-specific compiler. 10900CC=$lt_compiler 10901 10902# Is the compiler the GNU C compiler? 10903with_gcc=$GCC 10904 10905# An ERE matcher. 10906EGREP=$lt_EGREP 10907 10908# The linker used to build libraries. 10909LD=$lt_LD 10910 10911# Whether we need hard or soft links. 10912LN_S=$lt_LN_S 10913 10914# A BSD-compatible nm program. 10915NM=$lt_NM 10916 10917# A symbol stripping program 10918STRIP=$lt_STRIP 10919 10920# Used to examine libraries when file_magic_cmd begins "file" 10921MAGIC_CMD=$MAGIC_CMD 10922 10923# Used on cygwin: DLL creation program. 10924DLLTOOL="$DLLTOOL" 10925 10926# Used on cygwin: object dumper. 10927OBJDUMP="$OBJDUMP" 10928 10929# Used on cygwin: assembler. 10930AS="$AS" 10931 10932# The name of the directory that contains temporary libtool files. 10933objdir=$objdir 10934 10935# How to create reloadable object files. 10936reload_flag=$lt_reload_flag 10937reload_cmds=$lt_reload_cmds 10938 10939# How to pass a linker flag through the compiler. 10940wl=$lt_lt_prog_compiler_wl 10941 10942# Object file suffix (normally "o"). 10943objext="$ac_objext" 10944 10945# Old archive suffix (normally "a"). 10946libext="$libext" 10947 10948# Shared library suffix (normally ".so"). 10949shrext_cmds='$shrext_cmds' 10950 10951# Executable file suffix (normally ""). 10952exeext="$exeext" 10953 10954# Additional compiler flags for building library objects. 10955pic_flag=$lt_lt_prog_compiler_pic 10956pic_mode=$pic_mode 10957 10958# What is the maximum length of a command? 10959max_cmd_len=$lt_cv_sys_max_cmd_len 10960 10961# Does compiler simultaneously support -c and -o options? 10962compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10963 10964# Must we lock files when doing compilation? 10965need_locks=$lt_need_locks 10966 10967# Do we need the lib prefix for modules? 10968need_lib_prefix=$need_lib_prefix 10969 10970# Do we need a version for libraries? 10971need_version=$need_version 10972 10973# Whether dlopen is supported. 10974dlopen_support=$enable_dlopen 10975 10976# Whether dlopen of programs is supported. 10977dlopen_self=$enable_dlopen_self 10978 10979# Whether dlopen of statically linked programs is supported. 10980dlopen_self_static=$enable_dlopen_self_static 10981 10982# Compiler flag to prevent dynamic linking. 10983link_static_flag=$lt_lt_prog_compiler_static 10984 10985# Compiler flag to turn off builtin functions. 10986no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10987 10988# Compiler flag to allow reflexive dlopens. 10989export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10990 10991# Compiler flag to generate shared objects directly from archives. 10992whole_archive_flag_spec=$lt_whole_archive_flag_spec 10993 10994# Compiler flag to generate thread-safe objects. 10995thread_safe_flag_spec=$lt_thread_safe_flag_spec 10996 10997# Library versioning type. 10998version_type=$version_type 10999 11000# Format of library name prefix. 11001libname_spec=$lt_libname_spec 11002 11003# List of archive names. First name is the real one, the rest are links. 11004# The last name is the one that the linker finds with -lNAME. 11005library_names_spec=$lt_library_names_spec 11006 11007# The coded name of the library, if different from the real name. 11008soname_spec=$lt_soname_spec 11009 11010# Commands used to build and install an old-style archive. 11011RANLIB=$lt_RANLIB 11012old_archive_cmds=$lt_old_archive_cmds 11013old_postinstall_cmds=$lt_old_postinstall_cmds 11014old_postuninstall_cmds=$lt_old_postuninstall_cmds 11015 11016# Create an old-style archive from a shared archive. 11017old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 11018 11019# Create a temporary old-style archive to link instead of a shared archive. 11020old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 11021 11022# Commands used to build and install a shared archive. 11023archive_cmds=$lt_archive_cmds 11024archive_expsym_cmds=$lt_archive_expsym_cmds 11025postinstall_cmds=$lt_postinstall_cmds 11026postuninstall_cmds=$lt_postuninstall_cmds 11027 11028# Commands used to build a loadable module (assumed same as above if empty) 11029module_cmds=$lt_module_cmds 11030module_expsym_cmds=$lt_module_expsym_cmds 11031 11032# Commands to strip libraries. 11033old_striplib=$lt_old_striplib 11034striplib=$lt_striplib 11035 11036# Dependencies to place before the objects being linked to create a 11037# shared library. 11038predep_objects=$lt_predep_objects 11039 11040# Dependencies to place after the objects being linked to create a 11041# shared library. 11042postdep_objects=$lt_postdep_objects 11043 11044# Dependencies to place before the objects being linked to create a 11045# shared library. 11046predeps=$lt_predeps 11047 11048# Dependencies to place after the objects being linked to create a 11049# shared library. 11050postdeps=$lt_postdeps 11051 11052# The directories searched by this compiler when creating a shared 11053# library 11054compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 11055 11056# The library search path used internally by the compiler when linking 11057# a shared library. 11058compiler_lib_search_path=$lt_compiler_lib_search_path 11059 11060# Method to check whether dependent libraries are shared objects. 11061deplibs_check_method=$lt_deplibs_check_method 11062 11063# Command to use when deplibs_check_method == file_magic. 11064file_magic_cmd=$lt_file_magic_cmd 11065 11066# Flag that allows shared libraries with undefined symbols to be built. 11067allow_undefined_flag=$lt_allow_undefined_flag 11068 11069# Flag that forces no undefined symbols. 11070no_undefined_flag=$lt_no_undefined_flag 11071 11072# Commands used to finish a libtool library installation in a directory. 11073finish_cmds=$lt_finish_cmds 11074 11075# Same as above, but a single script fragment to be evaled but not shown. 11076finish_eval=$lt_finish_eval 11077 11078# Take the output of nm and produce a listing of raw symbols and C names. 11079global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 11080 11081# Transform the output of nm in a proper C declaration 11082global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 11083 11084# Transform the output of nm in a C name address pair 11085global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 11086 11087# This is the shared library runtime path variable. 11088runpath_var=$runpath_var 11089 11090# This is the shared library path variable. 11091shlibpath_var=$shlibpath_var 11092 11093# Is shlibpath searched before the hard-coded library search path? 11094shlibpath_overrides_runpath=$shlibpath_overrides_runpath 11095 11096# How to hardcode a shared library path into an executable. 11097hardcode_action=$hardcode_action 11098 11099# Whether we should hardcode library paths into libraries. 11100hardcode_into_libs=$hardcode_into_libs 11101 11102# Flag to hardcode \$libdir into a binary during linking. 11103# This must work even if \$libdir does not exist. 11104hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 11105 11106# If ld is used when linking, flag to hardcode \$libdir into 11107# a binary during linking. This must work even if \$libdir does 11108# not exist. 11109hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 11110 11111# Whether we need a single -rpath flag with a separated argument. 11112hardcode_libdir_separator=$lt_hardcode_libdir_separator 11113 11114# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 11115# resulting binary. 11116hardcode_direct=$hardcode_direct 11117 11118# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 11119# resulting binary. 11120hardcode_minus_L=$hardcode_minus_L 11121 11122# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 11123# the resulting binary. 11124hardcode_shlibpath_var=$hardcode_shlibpath_var 11125 11126# Set to yes if building a shared library automatically hardcodes DIR into the library 11127# and all subsequent libraries and executables linked against it. 11128hardcode_automatic=$hardcode_automatic 11129 11130# Variables whose values should be saved in libtool wrapper scripts and 11131# restored at relink time. 11132variables_saved_for_relink="$variables_saved_for_relink" 11133 11134# Whether libtool must link a program against all its dependency libraries. 11135link_all_deplibs=$link_all_deplibs 11136 11137# Compile-time system search path for libraries 11138sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 11139 11140# Run-time system search path for libraries 11141sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 11142 11143# Fix the shell variable \$srcfile for the compiler. 11144fix_srcfile_path=$lt_fix_srcfile_path 11145 11146# Set to yes if exported symbols are required. 11147always_export_symbols=$always_export_symbols 11148 11149# The commands to list exported symbols. 11150export_symbols_cmds=$lt_export_symbols_cmds 11151 11152# The commands to extract the exported symbol list from a shared archive. 11153extract_expsyms_cmds=$lt_extract_expsyms_cmds 11154 11155# Symbols that should not be listed in the preloaded symbols. 11156exclude_expsyms=$lt_exclude_expsyms 11157 11158# Symbols that must always be exported. 11159include_expsyms=$lt_include_expsyms 11160 11161# ### END LIBTOOL CONFIG 11162 11163__EOF__ 11164 11165 11166 case $host_os in 11167 aix3*) 11168 cat <<\EOF >> "$cfgfile" 11169 11170# AIX sometimes has problems with the GCC collect2 program. For some 11171# reason, if we set the COLLECT_NAMES environment variable, the problems 11172# vanish in a puff of smoke. 11173if test "X${COLLECT_NAMES+set}" != Xset; then 11174 COLLECT_NAMES= 11175 export COLLECT_NAMES 11176fi 11177EOF 11178 ;; 11179 esac 11180 11181 # We use sed instead of cat because bash on DJGPP gets confused if 11182 # if finds mixed CR/LF and LF-only lines. Since sed operates in 11183 # text mode, it properly converts lines to CR/LF. This bash problem 11184 # is reportedly fixed, but why not run on old versions too? 11185 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 11186 11187 mv -f "$cfgfile" "$ofile" || \ 11188 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 11189 chmod +x "$ofile" 11190 11191else 11192 # If there is no Makefile yet, we rely on a make rule to execute 11193 # `config.status --recheck' to rerun these tests and create the 11194 # libtool script then. 11195 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 11196 if test -f "$ltmain_in"; then 11197 test -f Makefile && make "$ltmain" 11198 fi 11199fi 11200 11201 11202ac_ext=c 11203ac_cpp='$CPP $CPPFLAGS' 11204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11206ac_compiler_gnu=$ac_cv_c_compiler_gnu 11207 11208CC="$lt_save_CC" 11209 11210 11211# Check whether --with-tags was given. 11212if test "${with_tags+set}" = set; then 11213 withval=$with_tags; tagnames="$withval" 11214fi 11215 11216 11217if test -f "$ltmain" && test -n "$tagnames"; then 11218 if test ! -f "${ofile}"; then 11219 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 11220$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 11221 fi 11222 11223 if test -z "$LTCC"; then 11224 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 11225 if test -z "$LTCC"; then 11226 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 11227$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 11228 else 11229 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 11230$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 11231 fi 11232 fi 11233 if test -z "$LTCFLAGS"; then 11234 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 11235 fi 11236 11237 # Extract list of available tagged configurations in $ofile. 11238 # Note that this assumes the entire list is on one line. 11239 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 11240 11241 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11242 for tagname in $tagnames; do 11243 IFS="$lt_save_ifs" 11244 # Check whether tagname contains only valid characters 11245 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 11246 "") ;; 11247 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 11248$as_echo "$as_me: error: invalid tag name: $tagname" >&2;} 11249 { (exit 1); exit 1; }; } 11250 ;; 11251 esac 11252 11253 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 11254 then 11255 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 11256$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 11257 { (exit 1); exit 1; }; } 11258 fi 11259 11260 # Update the list of available tags. 11261 if test -n "$tagname"; then 11262 echo appending configuration tag \"$tagname\" to $ofile 11263 11264 case $tagname in 11265 CXX) 11266 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11267 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11268 (test "X$CXX" != "Xg++"))) ; then 11269 ac_ext=cpp 11270ac_cpp='$CXXCPP $CPPFLAGS' 11271ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11272ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11273ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11274 11275 11276 11277 11278archive_cmds_need_lc_CXX=no 11279allow_undefined_flag_CXX= 11280always_export_symbols_CXX=no 11281archive_expsym_cmds_CXX= 11282export_dynamic_flag_spec_CXX= 11283hardcode_direct_CXX=no 11284hardcode_libdir_flag_spec_CXX= 11285hardcode_libdir_flag_spec_ld_CXX= 11286hardcode_libdir_separator_CXX= 11287hardcode_minus_L_CXX=no 11288hardcode_shlibpath_var_CXX=unsupported 11289hardcode_automatic_CXX=no 11290module_cmds_CXX= 11291module_expsym_cmds_CXX= 11292link_all_deplibs_CXX=unknown 11293old_archive_cmds_CXX=$old_archive_cmds 11294no_undefined_flag_CXX= 11295whole_archive_flag_spec_CXX= 11296enable_shared_with_static_runtimes_CXX=no 11297 11298# Dependencies to place before and after the object being linked: 11299predep_objects_CXX= 11300postdep_objects_CXX= 11301predeps_CXX= 11302postdeps_CXX= 11303compiler_lib_search_path_CXX= 11304compiler_lib_search_dirs_CXX= 11305 11306# Source file extension for C++ test sources. 11307ac_ext=cpp 11308 11309# Object file extension for compiled C++ test sources. 11310objext=o 11311objext_CXX=$objext 11312 11313# Code to be used in simple compile tests 11314lt_simple_compile_test_code="int some_variable = 0;" 11315 11316# Code to be used in simple link tests 11317lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 11318 11319# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11320 11321# If no C compiler was specified, use CC. 11322LTCC=${LTCC-"$CC"} 11323 11324# If no C compiler flags were specified, use CFLAGS. 11325LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11326 11327# Allow CC to be a program name with arguments. 11328compiler=$CC 11329 11330 11331# save warnings/boilerplate of simple test code 11332ac_outfile=conftest.$ac_objext 11333echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11334eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11335_lt_compiler_boilerplate=`cat conftest.err` 11336$rm conftest* 11337 11338ac_outfile=conftest.$ac_objext 11339echo "$lt_simple_link_test_code" >conftest.$ac_ext 11340eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11341_lt_linker_boilerplate=`cat conftest.err` 11342$rm -r conftest* 11343 11344 11345# Allow CC to be a program name with arguments. 11346lt_save_CC=$CC 11347lt_save_LD=$LD 11348lt_save_GCC=$GCC 11349GCC=$GXX 11350lt_save_with_gnu_ld=$with_gnu_ld 11351lt_save_path_LD=$lt_cv_path_LD 11352if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11353 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11354else 11355 $as_unset lt_cv_prog_gnu_ld 11356fi 11357if test -n "${lt_cv_path_LDCXX+set}"; then 11358 lt_cv_path_LD=$lt_cv_path_LDCXX 11359else 11360 $as_unset lt_cv_path_LD 11361fi 11362test -z "${LDCXX+set}" || LD=$LDCXX 11363CC=${CXX-"c++"} 11364compiler=$CC 11365compiler_CXX=$CC 11366for cc_temp in $compiler""; do 11367 case $cc_temp in 11368 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11369 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11370 \-*) ;; 11371 *) break;; 11372 esac 11373done 11374cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11375 11376 11377# We don't want -fno-exception wen compiling C++ code, so set the 11378# no_builtin_flag separately 11379if test "$GXX" = yes; then 11380 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11381else 11382 lt_prog_compiler_no_builtin_flag_CXX= 11383fi 11384 11385if test "$GXX" = yes; then 11386 # Set up default GNU C++ configuration 11387 11388 11389# Check whether --with-gnu-ld was given. 11390if test "${with_gnu_ld+set}" = set; then 11391 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11392else 11393 with_gnu_ld=no 11394fi 11395 11396ac_prog=ld 11397if test "$GCC" = yes; then 11398 # Check if gcc -print-prog-name=ld gives a path. 11399 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 11400$as_echo_n "checking for ld used by $CC... " >&6; } 11401 case $host in 11402 *-*-mingw*) 11403 # gcc leaves a trailing carriage return which upsets mingw 11404 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11405 *) 11406 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11407 esac 11408 case $ac_prog in 11409 # Accept absolute paths. 11410 [\\/]* | ?:[\\/]*) 11411 re_direlt='/[^/][^/]*/\.\./' 11412 # Canonicalize the pathname of ld 11413 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 11414 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11415 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 11416 done 11417 test -z "$LD" && LD="$ac_prog" 11418 ;; 11419 "") 11420 # If it fails, then pretend we aren't using GCC. 11421 ac_prog=ld 11422 ;; 11423 *) 11424 # If it is relative, then search for the first ld in PATH. 11425 with_gnu_ld=unknown 11426 ;; 11427 esac 11428elif test "$with_gnu_ld" = yes; then 11429 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 11430$as_echo_n "checking for GNU ld... " >&6; } 11431else 11432 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 11433$as_echo_n "checking for non-GNU ld... " >&6; } 11434fi 11435if test "${lt_cv_path_LD+set}" = set; then 11436 $as_echo_n "(cached) " >&6 11437else 11438 if test -z "$LD"; then 11439 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11440 for ac_dir in $PATH; do 11441 IFS="$lt_save_ifs" 11442 test -z "$ac_dir" && ac_dir=. 11443 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11444 lt_cv_path_LD="$ac_dir/$ac_prog" 11445 # Check to see if the program is GNU ld. I'd rather use --version, 11446 # but apparently some variants of GNU ld only accept -v. 11447 # Break only if it was the GNU/non-GNU ld that we prefer. 11448 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11449 *GNU* | *'with BFD'*) 11450 test "$with_gnu_ld" != no && break 11451 ;; 11452 *) 11453 test "$with_gnu_ld" != yes && break 11454 ;; 11455 esac 11456 fi 11457 done 11458 IFS="$lt_save_ifs" 11459else 11460 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11461fi 11462fi 11463 11464LD="$lt_cv_path_LD" 11465if test -n "$LD"; then 11466 { $as_echo "$as_me:$LINENO: result: $LD" >&5 11467$as_echo "$LD" >&6; } 11468else 11469 { $as_echo "$as_me:$LINENO: result: no" >&5 11470$as_echo "no" >&6; } 11471fi 11472test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 11473$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 11474 { (exit 1); exit 1; }; } 11475{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 11476$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11477if test "${lt_cv_prog_gnu_ld+set}" = set; then 11478 $as_echo_n "(cached) " >&6 11479else 11480 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11481case `$LD -v 2>&1 </dev/null` in 11482*GNU* | *'with BFD'*) 11483 lt_cv_prog_gnu_ld=yes 11484 ;; 11485*) 11486 lt_cv_prog_gnu_ld=no 11487 ;; 11488esac 11489fi 11490{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 11491$as_echo "$lt_cv_prog_gnu_ld" >&6; } 11492with_gnu_ld=$lt_cv_prog_gnu_ld 11493 11494 11495 11496 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11497 # archiving commands below assume that GNU ld is being used. 11498 if test "$with_gnu_ld" = yes; then 11499 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11500 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' 11501 11502 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11503 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11504 11505 # If archive_cmds runs LD, not CC, wlarc should be empty 11506 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11507 # investigate it a little bit more. (MM) 11508 wlarc='${wl}' 11509 11510 # ancient GNU ld didn't support --whole-archive et. al. 11511 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 11512 grep 'no-whole-archive' > /dev/null; then 11513 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11514 else 11515 whole_archive_flag_spec_CXX= 11516 fi 11517 else 11518 with_gnu_ld=no 11519 wlarc= 11520 11521 # A generic and very simple default shared library creation 11522 # command for GNU C++ for the case where it uses the native 11523 # linker, instead of GNU ld. If possible, this setting should 11524 # overridden to take advantage of the native linker features on 11525 # the platform it is being used on. 11526 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11527 fi 11528 11529 # Commands to make compiler produce verbose output that lists 11530 # what "hidden" libraries, object files and flags are used when 11531 # linking a shared library. 11532 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11533 11534else 11535 GXX=no 11536 with_gnu_ld=no 11537 wlarc= 11538fi 11539 11540# PORTME: fill in a description of your system's C++ link characteristics 11541{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11542$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11543ld_shlibs_CXX=yes 11544case $host_os in 11545 aix3*) 11546 # FIXME: insert proper C++ library support 11547 ld_shlibs_CXX=no 11548 ;; 11549 aix[4-9]*) 11550 if test "$host_cpu" = ia64; then 11551 # On IA64, the linker does run time linking by default, so we don't 11552 # have to do anything special. 11553 aix_use_runtimelinking=no 11554 exp_sym_flag='-Bexport' 11555 no_entry_flag="" 11556 else 11557 aix_use_runtimelinking=no 11558 11559 # Test if we are trying to use run time linking or normal 11560 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11561 # need to do runtime linking. 11562 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11563 for ld_flag in $LDFLAGS; do 11564 case $ld_flag in 11565 *-brtl*) 11566 aix_use_runtimelinking=yes 11567 break 11568 ;; 11569 esac 11570 done 11571 ;; 11572 esac 11573 11574 exp_sym_flag='-bexport' 11575 no_entry_flag='-bnoentry' 11576 fi 11577 11578 # When large executables or shared objects are built, AIX ld can 11579 # have problems creating the table of contents. If linking a library 11580 # or program results in "error TOC overflow" add -mminimal-toc to 11581 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11582 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11583 11584 archive_cmds_CXX='' 11585 hardcode_direct_CXX=yes 11586 hardcode_libdir_separator_CXX=':' 11587 link_all_deplibs_CXX=yes 11588 11589 if test "$GXX" = yes; then 11590 case $host_os in aix4.[012]|aix4.[012].*) 11591 # We only want to do this on AIX 4.2 and lower, the check 11592 # below for broken collect2 doesn't work under 4.3+ 11593 collect2name=`${CC} -print-prog-name=collect2` 11594 if test -f "$collect2name" && \ 11595 strings "$collect2name" | grep resolve_lib_name >/dev/null 11596 then 11597 # We have reworked collect2 11598 : 11599 else 11600 # We have old collect2 11601 hardcode_direct_CXX=unsupported 11602 # It fails to find uninstalled libraries when the uninstalled 11603 # path is not listed in the libpath. Setting hardcode_minus_L 11604 # to unsupported forces relinking 11605 hardcode_minus_L_CXX=yes 11606 hardcode_libdir_flag_spec_CXX='-L$libdir' 11607 hardcode_libdir_separator_CXX= 11608 fi 11609 ;; 11610 esac 11611 shared_flag='-shared' 11612 if test "$aix_use_runtimelinking" = yes; then 11613 shared_flag="$shared_flag "'${wl}-G' 11614 fi 11615 else 11616 # not using gcc 11617 if test "$host_cpu" = ia64; then 11618 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11619 # chokes on -Wl,-G. The following line is correct: 11620 shared_flag='-G' 11621 else 11622 if test "$aix_use_runtimelinking" = yes; then 11623 shared_flag='${wl}-G' 11624 else 11625 shared_flag='${wl}-bM:SRE' 11626 fi 11627 fi 11628 fi 11629 11630 # It seems that -bexpall does not export symbols beginning with 11631 # underscore (_), so it is better to generate a list of symbols to export. 11632 always_export_symbols_CXX=yes 11633 if test "$aix_use_runtimelinking" = yes; then 11634 # Warning - without using the other runtime loading flags (-brtl), 11635 # -berok will link without error, but may produce a broken library. 11636 allow_undefined_flag_CXX='-berok' 11637 # Determine the default libpath from the value encoded in an empty executable. 11638 cat >conftest.$ac_ext <<_ACEOF 11639/* confdefs.h. */ 11640_ACEOF 11641cat confdefs.h >>conftest.$ac_ext 11642cat >>conftest.$ac_ext <<_ACEOF 11643/* end confdefs.h. */ 11644 11645int 11646main () 11647{ 11648 11649 ; 11650 return 0; 11651} 11652_ACEOF 11653rm -f conftest.$ac_objext conftest$ac_exeext 11654if { (ac_try="$ac_link" 11655case "(($ac_try" in 11656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11657 *) ac_try_echo=$ac_try;; 11658esac 11659eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11660$as_echo "$ac_try_echo") >&5 11661 (eval "$ac_link") 2>conftest.er1 11662 ac_status=$? 11663 grep -v '^ *+' conftest.er1 >conftest.err 11664 rm -f conftest.er1 11665 cat conftest.err >&5 11666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11667 (exit $ac_status); } && { 11668 test -z "$ac_cxx_werror_flag" || 11669 test ! -s conftest.err 11670 } && test -s conftest$ac_exeext && { 11671 test "$cross_compiling" = yes || 11672 $as_test_x conftest$ac_exeext 11673 }; then 11674 11675lt_aix_libpath_sed=' 11676 /Import File Strings/,/^$/ { 11677 /^0/ { 11678 s/^0 *\(.*\)$/\1/ 11679 p 11680 } 11681 }' 11682aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11683# Check for a 64-bit object if we didn't find anything. 11684if test -z "$aix_libpath"; then 11685 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11686fi 11687else 11688 $as_echo "$as_me: failed program was:" >&5 11689sed 's/^/| /' conftest.$ac_ext >&5 11690 11691 11692fi 11693 11694rm -rf conftest.dSYM 11695rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11696 conftest$ac_exeext conftest.$ac_ext 11697if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11698 11699 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11700 11701 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" 11702 else 11703 if test "$host_cpu" = ia64; then 11704 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11705 allow_undefined_flag_CXX="-z nodefs" 11706 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" 11707 else 11708 # Determine the default libpath from the value encoded in an empty executable. 11709 cat >conftest.$ac_ext <<_ACEOF 11710/* confdefs.h. */ 11711_ACEOF 11712cat confdefs.h >>conftest.$ac_ext 11713cat >>conftest.$ac_ext <<_ACEOF 11714/* end confdefs.h. */ 11715 11716int 11717main () 11718{ 11719 11720 ; 11721 return 0; 11722} 11723_ACEOF 11724rm -f conftest.$ac_objext conftest$ac_exeext 11725if { (ac_try="$ac_link" 11726case "(($ac_try" in 11727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11728 *) ac_try_echo=$ac_try;; 11729esac 11730eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11731$as_echo "$ac_try_echo") >&5 11732 (eval "$ac_link") 2>conftest.er1 11733 ac_status=$? 11734 grep -v '^ *+' conftest.er1 >conftest.err 11735 rm -f conftest.er1 11736 cat conftest.err >&5 11737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11738 (exit $ac_status); } && { 11739 test -z "$ac_cxx_werror_flag" || 11740 test ! -s conftest.err 11741 } && test -s conftest$ac_exeext && { 11742 test "$cross_compiling" = yes || 11743 $as_test_x conftest$ac_exeext 11744 }; then 11745 11746lt_aix_libpath_sed=' 11747 /Import File Strings/,/^$/ { 11748 /^0/ { 11749 s/^0 *\(.*\)$/\1/ 11750 p 11751 } 11752 }' 11753aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11754# Check for a 64-bit object if we didn't find anything. 11755if test -z "$aix_libpath"; then 11756 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11757fi 11758else 11759 $as_echo "$as_me: failed program was:" >&5 11760sed 's/^/| /' conftest.$ac_ext >&5 11761 11762 11763fi 11764 11765rm -rf conftest.dSYM 11766rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11767 conftest$ac_exeext conftest.$ac_ext 11768if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11769 11770 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11771 # Warning - without using the other run time loading flags, 11772 # -berok will link without error, but may produce a broken library. 11773 no_undefined_flag_CXX=' ${wl}-bernotok' 11774 allow_undefined_flag_CXX=' ${wl}-berok' 11775 # Exported symbols can be pulled into shared objects from archives 11776 whole_archive_flag_spec_CXX='$convenience' 11777 archive_cmds_need_lc_CXX=yes 11778 # This is similar to how AIX traditionally builds its shared libraries. 11779 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' 11780 fi 11781 fi 11782 ;; 11783 11784 beos*) 11785 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11786 allow_undefined_flag_CXX=unsupported 11787 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11788 # support --undefined. This deserves some investigation. FIXME 11789 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11790 else 11791 ld_shlibs_CXX=no 11792 fi 11793 ;; 11794 11795 chorus*) 11796 case $cc_basename in 11797 *) 11798 # FIXME: insert proper C++ library support 11799 ld_shlibs_CXX=no 11800 ;; 11801 esac 11802 ;; 11803 11804 cygwin* | mingw* | pw32*) 11805 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11806 # as there is no search path for DLLs. 11807 hardcode_libdir_flag_spec_CXX='-L$libdir' 11808 allow_undefined_flag_CXX=unsupported 11809 always_export_symbols_CXX=no 11810 enable_shared_with_static_runtimes_CXX=yes 11811 11812 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11813 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' 11814 # If the export-symbols file already is a .def file (1st line 11815 # is EXPORTS), use it as is; otherwise, prepend... 11816 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11817 cp $export_symbols $output_objdir/$soname.def; 11818 else 11819 echo EXPORTS > $output_objdir/$soname.def; 11820 cat $export_symbols >> $output_objdir/$soname.def; 11821 fi~ 11822 $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' 11823 else 11824 ld_shlibs_CXX=no 11825 fi 11826 ;; 11827 darwin* | rhapsody*) 11828 archive_cmds_need_lc_CXX=no 11829 hardcode_direct_CXX=no 11830 hardcode_automatic_CXX=yes 11831 hardcode_shlibpath_var_CXX=unsupported 11832 whole_archive_flag_spec_CXX='' 11833 link_all_deplibs_CXX=yes 11834 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 11835 if test "$GXX" = yes ; then 11836 output_verbose_link_cmd='echo' 11837 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}" 11838 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 11839 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}" 11840 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}" 11841 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 11842 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}" 11843 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}" 11844 fi 11845 else 11846 case $cc_basename in 11847 xlc*) 11848 output_verbose_link_cmd='echo' 11849 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' 11850 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11851 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11852 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}' 11853 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}' 11854 ;; 11855 *) 11856 ld_shlibs_CXX=no 11857 ;; 11858 esac 11859 fi 11860 ;; 11861 11862 dgux*) 11863 case $cc_basename in 11864 ec++*) 11865 # FIXME: insert proper C++ library support 11866 ld_shlibs_CXX=no 11867 ;; 11868 ghcx*) 11869 # Green Hills C++ Compiler 11870 # FIXME: insert proper C++ library support 11871 ld_shlibs_CXX=no 11872 ;; 11873 *) 11874 # FIXME: insert proper C++ library support 11875 ld_shlibs_CXX=no 11876 ;; 11877 esac 11878 ;; 11879 freebsd[12]*) 11880 # C++ shared libraries reported to be fairly broken before switch to ELF 11881 ld_shlibs_CXX=no 11882 ;; 11883 freebsd-elf*) 11884 archive_cmds_need_lc_CXX=no 11885 ;; 11886 freebsd* | dragonfly*) 11887 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11888 # conventions 11889 ld_shlibs_CXX=yes 11890 ;; 11891 gnu*) 11892 ;; 11893 hpux9*) 11894 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11895 hardcode_libdir_separator_CXX=: 11896 export_dynamic_flag_spec_CXX='${wl}-E' 11897 hardcode_direct_CXX=yes 11898 hardcode_minus_L_CXX=yes # Not in the search PATH, 11899 # but as the default 11900 # location of the library. 11901 11902 case $cc_basename in 11903 CC*) 11904 # FIXME: insert proper C++ library support 11905 ld_shlibs_CXX=no 11906 ;; 11907 aCC*) 11908 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' 11909 # Commands to make compiler produce verbose output that lists 11910 # what "hidden" libraries, object files and flags are used when 11911 # linking a shared library. 11912 # 11913 # There doesn't appear to be a way to prevent this compiler from 11914 # explicitly linking system object files so we need to strip them 11915 # from the output so that they don't get included in the library 11916 # dependencies. 11917 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' 11918 ;; 11919 *) 11920 if test "$GXX" = yes; then 11921 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' 11922 else 11923 # FIXME: insert proper C++ library support 11924 ld_shlibs_CXX=no 11925 fi 11926 ;; 11927 esac 11928 ;; 11929 hpux10*|hpux11*) 11930 if test $with_gnu_ld = no; then 11931 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11932 hardcode_libdir_separator_CXX=: 11933 11934 case $host_cpu in 11935 hppa*64*|ia64*) ;; 11936 *) 11937 export_dynamic_flag_spec_CXX='${wl}-E' 11938 ;; 11939 esac 11940 fi 11941 case $host_cpu in 11942 hppa*64*|ia64*) 11943 hardcode_direct_CXX=no 11944 hardcode_shlibpath_var_CXX=no 11945 ;; 11946 *) 11947 hardcode_direct_CXX=yes 11948 hardcode_minus_L_CXX=yes # Not in the search PATH, 11949 # but as the default 11950 # location of the library. 11951 ;; 11952 esac 11953 11954 case $cc_basename in 11955 CC*) 11956 # FIXME: insert proper C++ library support 11957 ld_shlibs_CXX=no 11958 ;; 11959 aCC*) 11960 case $host_cpu in 11961 hppa*64*) 11962 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11963 ;; 11964 ia64*) 11965 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11966 ;; 11967 *) 11968 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11969 ;; 11970 esac 11971 # Commands to make compiler produce verbose output that lists 11972 # what "hidden" libraries, object files and flags are used when 11973 # linking a shared library. 11974 # 11975 # There doesn't appear to be a way to prevent this compiler from 11976 # explicitly linking system object files so we need to strip them 11977 # from the output so that they don't get included in the library 11978 # dependencies. 11979 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' 11980 ;; 11981 *) 11982 if test "$GXX" = yes; then 11983 if test $with_gnu_ld = no; then 11984 case $host_cpu in 11985 hppa*64*) 11986 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11987 ;; 11988 ia64*) 11989 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11990 ;; 11991 *) 11992 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' 11993 ;; 11994 esac 11995 fi 11996 else 11997 # FIXME: insert proper C++ library support 11998 ld_shlibs_CXX=no 11999 fi 12000 ;; 12001 esac 12002 ;; 12003 interix[3-9]*) 12004 hardcode_direct_CXX=no 12005 hardcode_shlibpath_var_CXX=no 12006 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12007 export_dynamic_flag_spec_CXX='${wl}-E' 12008 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12009 # Instead, shared libraries are loaded at an image base (0x10000000 by 12010 # default) and relocated if they conflict, which is a slow very memory 12011 # consuming and fragmenting process. To avoid this, we pick a random, 12012 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12013 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12014 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' 12015 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' 12016 ;; 12017 irix5* | irix6*) 12018 case $cc_basename in 12019 CC*) 12020 # SGI C++ 12021 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' 12022 12023 # Archives containing C++ object files must be created using 12024 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 12025 # necessary to make sure instantiated templates are included 12026 # in the archive. 12027 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 12028 ;; 12029 *) 12030 if test "$GXX" = yes; then 12031 if test "$with_gnu_ld" = no; then 12032 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' 12033 else 12034 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' 12035 fi 12036 fi 12037 link_all_deplibs_CXX=yes 12038 ;; 12039 esac 12040 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12041 hardcode_libdir_separator_CXX=: 12042 ;; 12043 linux* | k*bsd*-gnu) 12044 case $cc_basename in 12045 KCC*) 12046 # Kuck and Associates, Inc. (KAI) C++ Compiler 12047 12048 # KCC will only create a shared library if the output file 12049 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12050 # to its proper name (with version) after linking. 12051 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' 12052 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' 12053 # Commands to make compiler produce verbose output that lists 12054 # what "hidden" libraries, object files and flags are used when 12055 # linking a shared library. 12056 # 12057 # There doesn't appear to be a way to prevent this compiler from 12058 # explicitly linking system object files so we need to strip them 12059 # from the output so that they don't get included in the library 12060 # dependencies. 12061 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' 12062 12063 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 12064 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12065 12066 # Archives containing C++ object files must be created using 12067 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12068 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12069 ;; 12070 icpc*) 12071 # Intel C++ 12072 with_gnu_ld=yes 12073 # version 8.0 and above of icpc choke on multiply defined symbols 12074 # if we add $predep_objects and $postdep_objects, however 7.1 and 12075 # earlier do not add the objects themselves. 12076 case `$CC -V 2>&1` in 12077 *"Version 7."*) 12078 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12079 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' 12080 ;; 12081 *) # Version 8.0 or newer 12082 tmp_idyn= 12083 case $host_cpu in 12084 ia64*) tmp_idyn=' -i_dynamic';; 12085 esac 12086 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12087 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' 12088 ;; 12089 esac 12090 archive_cmds_need_lc_CXX=no 12091 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12092 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12093 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12094 ;; 12095 pgCC* | pgcpp*) 12096 # Portland Group C++ compiler 12097 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12098 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' 12099 12100 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12101 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12102 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' 12103 ;; 12104 cxx*) 12105 # Compaq C++ 12106 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12107 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' 12108 12109 runpath_var=LD_RUN_PATH 12110 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12111 hardcode_libdir_separator_CXX=: 12112 12113 # Commands to make compiler produce verbose output that lists 12114 # what "hidden" libraries, object files and flags are used when 12115 # linking a shared library. 12116 # 12117 # There doesn't appear to be a way to prevent this compiler from 12118 # explicitly linking system object files so we need to strip them 12119 # from the output so that they don't get included in the library 12120 # dependencies. 12121 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' 12122 ;; 12123 *) 12124 case `$CC -V 2>&1 | sed 5q` in 12125 *Sun\ C*) 12126 # Sun C++ 5.9 12127 no_undefined_flag_CXX=' -zdefs' 12128 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12129 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' 12130 hardcode_libdir_flag_spec_CXX='-R$libdir' 12131 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' 12132 12133 # Not sure whether something based on 12134 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 12135 # would be better. 12136 output_verbose_link_cmd='echo' 12137 12138 # Archives containing C++ object files must be created using 12139 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12140 # necessary to make sure instantiated templates are included 12141 # in the archive. 12142 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12143 ;; 12144 esac 12145 ;; 12146 esac 12147 ;; 12148 lynxos*) 12149 # FIXME: insert proper C++ library support 12150 ld_shlibs_CXX=no 12151 ;; 12152 m88k*) 12153 # FIXME: insert proper C++ library support 12154 ld_shlibs_CXX=no 12155 ;; 12156 mvs*) 12157 case $cc_basename in 12158 cxx*) 12159 # FIXME: insert proper C++ library support 12160 ld_shlibs_CXX=no 12161 ;; 12162 *) 12163 # FIXME: insert proper C++ library support 12164 ld_shlibs_CXX=no 12165 ;; 12166 esac 12167 ;; 12168 netbsd*) 12169 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12170 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12171 wlarc= 12172 hardcode_libdir_flag_spec_CXX='-R$libdir' 12173 hardcode_direct_CXX=yes 12174 hardcode_shlibpath_var_CXX=no 12175 fi 12176 # Workaround some broken pre-1.5 toolchains 12177 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12178 ;; 12179 openbsd2*) 12180 # C++ shared libraries are fairly broken 12181 ld_shlibs_CXX=no 12182 ;; 12183 openbsd*) 12184 if test -f /usr/libexec/ld.so; then 12185 hardcode_direct_CXX=yes 12186 hardcode_shlibpath_var_CXX=no 12187 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12188 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12189 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12190 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12191 export_dynamic_flag_spec_CXX='${wl}-E' 12192 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12193 fi 12194 output_verbose_link_cmd='echo' 12195 else 12196 ld_shlibs_CXX=no 12197 fi 12198 ;; 12199 osf3*) 12200 case $cc_basename in 12201 KCC*) 12202 # Kuck and Associates, Inc. (KAI) C++ Compiler 12203 12204 # KCC will only create a shared library if the output file 12205 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12206 # to its proper name (with version) after linking. 12207 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' 12208 12209 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12210 hardcode_libdir_separator_CXX=: 12211 12212 # Archives containing C++ object files must be created using 12213 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12214 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12215 12216 ;; 12217 RCC*) 12218 # Rational C++ 2.4.1 12219 # FIXME: insert proper C++ library support 12220 ld_shlibs_CXX=no 12221 ;; 12222 cxx*) 12223 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12224 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' 12225 12226 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12227 hardcode_libdir_separator_CXX=: 12228 12229 # Commands to make compiler produce verbose output that lists 12230 # what "hidden" libraries, object files and flags are used when 12231 # linking a shared library. 12232 # 12233 # There doesn't appear to be a way to prevent this compiler from 12234 # explicitly linking system object files so we need to strip them 12235 # from the output so that they don't get included in the library 12236 # dependencies. 12237 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' 12238 ;; 12239 *) 12240 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12241 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12242 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' 12243 12244 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12245 hardcode_libdir_separator_CXX=: 12246 12247 # Commands to make compiler produce verbose output that lists 12248 # what "hidden" libraries, object files and flags are used when 12249 # linking a shared library. 12250 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12251 12252 else 12253 # FIXME: insert proper C++ library support 12254 ld_shlibs_CXX=no 12255 fi 12256 ;; 12257 esac 12258 ;; 12259 osf4* | osf5*) 12260 case $cc_basename in 12261 KCC*) 12262 # Kuck and Associates, Inc. (KAI) C++ Compiler 12263 12264 # KCC will only create a shared library if the output file 12265 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12266 # to its proper name (with version) after linking. 12267 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' 12268 12269 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12270 hardcode_libdir_separator_CXX=: 12271 12272 # Archives containing C++ object files must be created using 12273 # the KAI C++ compiler. 12274 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 12275 ;; 12276 RCC*) 12277 # Rational C++ 2.4.1 12278 # FIXME: insert proper C++ library support 12279 ld_shlibs_CXX=no 12280 ;; 12281 cxx*) 12282 allow_undefined_flag_CXX=' -expect_unresolved \*' 12283 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' 12284 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12285 echo "-hidden">> $lib.exp~ 12286 $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~ 12287 $rm $lib.exp' 12288 12289 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12290 hardcode_libdir_separator_CXX=: 12291 12292 # Commands to make compiler produce verbose output that lists 12293 # what "hidden" libraries, object files and flags are used when 12294 # linking a shared library. 12295 # 12296 # There doesn't appear to be a way to prevent this compiler from 12297 # explicitly linking system object files so we need to strip them 12298 # from the output so that they don't get included in the library 12299 # dependencies. 12300 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' 12301 ;; 12302 *) 12303 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12304 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12305 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' 12306 12307 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12308 hardcode_libdir_separator_CXX=: 12309 12310 # Commands to make compiler produce verbose output that lists 12311 # what "hidden" libraries, object files and flags are used when 12312 # linking a shared library. 12313 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12314 12315 else 12316 # FIXME: insert proper C++ library support 12317 ld_shlibs_CXX=no 12318 fi 12319 ;; 12320 esac 12321 ;; 12322 psos*) 12323 # FIXME: insert proper C++ library support 12324 ld_shlibs_CXX=no 12325 ;; 12326 sunos4*) 12327 case $cc_basename in 12328 CC*) 12329 # Sun C++ 4.x 12330 # FIXME: insert proper C++ library support 12331 ld_shlibs_CXX=no 12332 ;; 12333 lcc*) 12334 # Lucid 12335 # FIXME: insert proper C++ library support 12336 ld_shlibs_CXX=no 12337 ;; 12338 *) 12339 # FIXME: insert proper C++ library support 12340 ld_shlibs_CXX=no 12341 ;; 12342 esac 12343 ;; 12344 solaris*) 12345 case $cc_basename in 12346 CC*) 12347 # Sun C++ 4.2, 5.x and Centerline C++ 12348 archive_cmds_need_lc_CXX=yes 12349 no_undefined_flag_CXX=' -zdefs' 12350 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12351 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12352 $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' 12353 12354 hardcode_libdir_flag_spec_CXX='-R$libdir' 12355 hardcode_shlibpath_var_CXX=no 12356 case $host_os in 12357 solaris2.[0-5] | solaris2.[0-5].*) ;; 12358 *) 12359 # The compiler driver will combine and reorder linker options, 12360 # but understands `-z linker_flag'. 12361 # Supported since Solaris 2.6 (maybe 2.5.1?) 12362 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 12363 ;; 12364 esac 12365 link_all_deplibs_CXX=yes 12366 12367 output_verbose_link_cmd='echo' 12368 12369 # Archives containing C++ object files must be created using 12370 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12371 # necessary to make sure instantiated templates are included 12372 # in the archive. 12373 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12374 ;; 12375 gcx*) 12376 # Green Hills C++ Compiler 12377 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12378 12379 # The C++ compiler must be used to create the archive. 12380 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12381 ;; 12382 *) 12383 # GNU C++ compiler with Solaris linker 12384 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12385 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12386 if $CC --version | grep -v '^2\.7' > /dev/null; then 12387 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12388 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12389 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12390 12391 # Commands to make compiler produce verbose output that lists 12392 # what "hidden" libraries, object files and flags are used when 12393 # linking a shared library. 12394 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12395 else 12396 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12397 # platform. 12398 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12399 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12400 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12401 12402 # Commands to make compiler produce verbose output that lists 12403 # what "hidden" libraries, object files and flags are used when 12404 # linking a shared library. 12405 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12406 fi 12407 12408 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12409 case $host_os in 12410 solaris2.[0-5] | solaris2.[0-5].*) ;; 12411 *) 12412 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12413 ;; 12414 esac 12415 fi 12416 ;; 12417 esac 12418 ;; 12419 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12420 no_undefined_flag_CXX='${wl}-z,text' 12421 archive_cmds_need_lc_CXX=no 12422 hardcode_shlibpath_var_CXX=no 12423 runpath_var='LD_RUN_PATH' 12424 12425 case $cc_basename in 12426 CC*) 12427 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12428 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12429 ;; 12430 *) 12431 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12432 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12433 ;; 12434 esac 12435 ;; 12436 sysv5* | sco3.2v5* | sco5v6*) 12437 # Note: We can NOT use -z defs as we might desire, because we do not 12438 # link with -lc, and that would cause any symbols used from libc to 12439 # always be unresolved, which means just about no library would 12440 # ever link correctly. If we're not using GNU ld we use -z text 12441 # though, which does catch some bad symbols but isn't as heavy-handed 12442 # as -z defs. 12443 # For security reasons, it is highly recommended that you always 12444 # use absolute paths for naming shared libraries, and exclude the 12445 # DT_RUNPATH tag from executables and libraries. But doing so 12446 # requires that you compile everything twice, which is a pain. 12447 # So that behaviour is only enabled if SCOABSPATH is set to a 12448 # non-empty value in the environment. Most likely only useful for 12449 # creating official distributions of packages. 12450 # This is a hack until libtool officially supports absolute path 12451 # names for shared libraries. 12452 no_undefined_flag_CXX='${wl}-z,text' 12453 allow_undefined_flag_CXX='${wl}-z,nodefs' 12454 archive_cmds_need_lc_CXX=no 12455 hardcode_shlibpath_var_CXX=no 12456 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 12457 hardcode_libdir_separator_CXX=':' 12458 link_all_deplibs_CXX=yes 12459 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12460 runpath_var='LD_RUN_PATH' 12461 12462 case $cc_basename in 12463 CC*) 12464 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12465 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12466 ;; 12467 *) 12468 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12469 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12470 ;; 12471 esac 12472 ;; 12473 tandem*) 12474 case $cc_basename in 12475 NCC*) 12476 # NonStop-UX NCC 3.20 12477 # FIXME: insert proper C++ library support 12478 ld_shlibs_CXX=no 12479 ;; 12480 *) 12481 # FIXME: insert proper C++ library support 12482 ld_shlibs_CXX=no 12483 ;; 12484 esac 12485 ;; 12486 vxworks*) 12487 # FIXME: insert proper C++ library support 12488 ld_shlibs_CXX=no 12489 ;; 12490 *) 12491 # FIXME: insert proper C++ library support 12492 ld_shlibs_CXX=no 12493 ;; 12494esac 12495{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12496$as_echo "$ld_shlibs_CXX" >&6; } 12497test "$ld_shlibs_CXX" = no && can_build_shared=no 12498 12499GCC_CXX="$GXX" 12500LD_CXX="$LD" 12501 12502cat > conftest.$ac_ext <<EOF 12503class Foo 12504{ 12505public: 12506 Foo (void) { a = 0; } 12507private: 12508 int a; 12509}; 12510EOF 12511 12512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12513 (eval $ac_compile) 2>&5 12514 ac_status=$? 12515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12516 (exit $ac_status); }; then 12517 # Parse the compiler output and extract the necessary 12518 # objects, libraries and library flags. 12519 12520 # Sentinel used to keep track of whether or not we are before 12521 # the conftest object file. 12522 pre_test_object_deps_done=no 12523 12524 # The `*' in the case matches for architectures that use `case' in 12525 # $output_verbose_cmd can trigger glob expansion during the loop 12526 # eval without this substitution. 12527 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 12528 12529 for p in `eval $output_verbose_link_cmd`; do 12530 case $p in 12531 12532 -L* | -R* | -l*) 12533 # Some compilers place space between "-{L,R}" and the path. 12534 # Remove the space. 12535 if test $p = "-L" \ 12536 || test $p = "-R"; then 12537 prev=$p 12538 continue 12539 else 12540 prev= 12541 fi 12542 12543 if test "$pre_test_object_deps_done" = no; then 12544 case $p in 12545 -L* | -R*) 12546 # Internal compiler library paths should come after those 12547 # provided the user. The postdeps already come after the 12548 # user supplied libs so there is no need to process them. 12549 if test -z "$compiler_lib_search_path_CXX"; then 12550 compiler_lib_search_path_CXX="${prev}${p}" 12551 else 12552 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12553 fi 12554 ;; 12555 # The "-l" case would never come before the object being 12556 # linked, so don't bother handling this case. 12557 esac 12558 else 12559 if test -z "$postdeps_CXX"; then 12560 postdeps_CXX="${prev}${p}" 12561 else 12562 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12563 fi 12564 fi 12565 ;; 12566 12567 *.$objext) 12568 # This assumes that the test object file only shows up 12569 # once in the compiler output. 12570 if test "$p" = "conftest.$objext"; then 12571 pre_test_object_deps_done=yes 12572 continue 12573 fi 12574 12575 if test "$pre_test_object_deps_done" = no; then 12576 if test -z "$predep_objects_CXX"; then 12577 predep_objects_CXX="$p" 12578 else 12579 predep_objects_CXX="$predep_objects_CXX $p" 12580 fi 12581 else 12582 if test -z "$postdep_objects_CXX"; then 12583 postdep_objects_CXX="$p" 12584 else 12585 postdep_objects_CXX="$postdep_objects_CXX $p" 12586 fi 12587 fi 12588 ;; 12589 12590 *) ;; # Ignore the rest. 12591 12592 esac 12593 done 12594 12595 # Clean up. 12596 rm -f a.out a.exe 12597else 12598 echo "libtool.m4: error: problem compiling CXX test program" 12599fi 12600 12601$rm -f confest.$objext 12602 12603compiler_lib_search_dirs_CXX= 12604if test -n "$compiler_lib_search_path_CXX"; then 12605 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 12606fi 12607 12608# PORTME: override above test on systems where it is broken 12609case $host_os in 12610interix[3-9]*) 12611 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12612 # hack all around it, let's just trust "g++" to DTRT. 12613 predep_objects_CXX= 12614 postdep_objects_CXX= 12615 postdeps_CXX= 12616 ;; 12617 12618linux*) 12619 case `$CC -V 2>&1 | sed 5q` in 12620 *Sun\ C*) 12621 # Sun C++ 5.9 12622 # 12623 # The more standards-conforming stlport4 library is 12624 # incompatible with the Cstd library. Avoid specifying 12625 # it if it's in CXXFLAGS. Ignore libCrun as 12626 # -library=stlport4 depends on it. 12627 case " $CXX $CXXFLAGS " in 12628 *" -library=stlport4 "*) 12629 solaris_use_stlport4=yes 12630 ;; 12631 esac 12632 if test "$solaris_use_stlport4" != yes; then 12633 postdeps_CXX='-library=Cstd -library=Crun' 12634 fi 12635 ;; 12636 esac 12637 ;; 12638 12639solaris*) 12640 case $cc_basename in 12641 CC*) 12642 # The more standards-conforming stlport4 library is 12643 # incompatible with the Cstd library. Avoid specifying 12644 # it if it's in CXXFLAGS. Ignore libCrun as 12645 # -library=stlport4 depends on it. 12646 case " $CXX $CXXFLAGS " in 12647 *" -library=stlport4 "*) 12648 solaris_use_stlport4=yes 12649 ;; 12650 esac 12651 12652 # Adding this requires a known-good setup of shared libraries for 12653 # Sun compiler versions before 5.6, else PIC objects from an old 12654 # archive will be linked into the output, leading to subtle bugs. 12655 if test "$solaris_use_stlport4" != yes; then 12656 postdeps_CXX='-library=Cstd -library=Crun' 12657 fi 12658 ;; 12659 esac 12660 ;; 12661esac 12662 12663case " $postdeps_CXX " in 12664*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12665esac 12666 12667lt_prog_compiler_wl_CXX= 12668lt_prog_compiler_pic_CXX= 12669lt_prog_compiler_static_CXX= 12670 12671{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12672$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 12673 12674 # C++ specific cases for pic, static, wl, etc. 12675 if test "$GXX" = yes; then 12676 lt_prog_compiler_wl_CXX='-Wl,' 12677 lt_prog_compiler_static_CXX='-static' 12678 12679 case $host_os in 12680 aix*) 12681 # All AIX code is PIC. 12682 if test "$host_cpu" = ia64; then 12683 # AIX 5 now supports IA64 processor 12684 lt_prog_compiler_static_CXX='-Bstatic' 12685 fi 12686 ;; 12687 amigaos*) 12688 # FIXME: we need at least 68020 code to build shared libraries, but 12689 # adding the `-m68020' flag to GCC prevents building anything better, 12690 # like `-m68040'. 12691 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12692 ;; 12693 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12694 # PIC is the default for these OSes. 12695 ;; 12696 mingw* | cygwin* | os2* | pw32*) 12697 # This hack is so that the source file can tell whether it is being 12698 # built for inclusion in a dll (and should export symbols for example). 12699 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12700 # (--disable-auto-import) libraries 12701 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12702 ;; 12703 darwin* | rhapsody*) 12704 # PIC is the default on this platform 12705 # Common symbols not allowed in MH_DYLIB files 12706 lt_prog_compiler_pic_CXX='-fno-common' 12707 ;; 12708 *djgpp*) 12709 # DJGPP does not support shared libraries at all 12710 lt_prog_compiler_pic_CXX= 12711 ;; 12712 interix[3-9]*) 12713 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12714 # Instead, we relocate shared libraries at runtime. 12715 ;; 12716 sysv4*MP*) 12717 if test -d /usr/nec; then 12718 lt_prog_compiler_pic_CXX=-Kconform_pic 12719 fi 12720 ;; 12721 hpux*) 12722 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12723 # not for PA HP-UX. 12724 case $host_cpu in 12725 hppa*64*|ia64*) 12726 ;; 12727 *) 12728 lt_prog_compiler_pic_CXX='-fPIC' 12729 ;; 12730 esac 12731 ;; 12732 *) 12733 lt_prog_compiler_pic_CXX='-fPIC' 12734 ;; 12735 esac 12736 else 12737 case $host_os in 12738 aix[4-9]*) 12739 # All AIX code is PIC. 12740 if test "$host_cpu" = ia64; then 12741 # AIX 5 now supports IA64 processor 12742 lt_prog_compiler_static_CXX='-Bstatic' 12743 else 12744 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12745 fi 12746 ;; 12747 chorus*) 12748 case $cc_basename in 12749 cxch68*) 12750 # Green Hills C++ Compiler 12751 # _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" 12752 ;; 12753 esac 12754 ;; 12755 darwin*) 12756 # PIC is the default on this platform 12757 # Common symbols not allowed in MH_DYLIB files 12758 case $cc_basename in 12759 xlc*) 12760 lt_prog_compiler_pic_CXX='-qnocommon' 12761 lt_prog_compiler_wl_CXX='-Wl,' 12762 ;; 12763 esac 12764 ;; 12765 dgux*) 12766 case $cc_basename in 12767 ec++*) 12768 lt_prog_compiler_pic_CXX='-KPIC' 12769 ;; 12770 ghcx*) 12771 # Green Hills C++ Compiler 12772 lt_prog_compiler_pic_CXX='-pic' 12773 ;; 12774 *) 12775 ;; 12776 esac 12777 ;; 12778 freebsd* | dragonfly*) 12779 # FreeBSD uses GNU C++ 12780 ;; 12781 hpux9* | hpux10* | hpux11*) 12782 case $cc_basename in 12783 CC*) 12784 lt_prog_compiler_wl_CXX='-Wl,' 12785 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12786 if test "$host_cpu" != ia64; then 12787 lt_prog_compiler_pic_CXX='+Z' 12788 fi 12789 ;; 12790 aCC*) 12791 lt_prog_compiler_wl_CXX='-Wl,' 12792 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12793 case $host_cpu in 12794 hppa*64*|ia64*) 12795 # +Z the default 12796 ;; 12797 *) 12798 lt_prog_compiler_pic_CXX='+Z' 12799 ;; 12800 esac 12801 ;; 12802 *) 12803 ;; 12804 esac 12805 ;; 12806 interix*) 12807 # This is c89, which is MS Visual C++ (no shared libs) 12808 # Anyone wants to do a port? 12809 ;; 12810 irix5* | irix6* | nonstopux*) 12811 case $cc_basename in 12812 CC*) 12813 lt_prog_compiler_wl_CXX='-Wl,' 12814 lt_prog_compiler_static_CXX='-non_shared' 12815 # CC pic flag -KPIC is the default. 12816 ;; 12817 *) 12818 ;; 12819 esac 12820 ;; 12821 linux* | k*bsd*-gnu) 12822 case $cc_basename in 12823 KCC*) 12824 # KAI C++ Compiler 12825 lt_prog_compiler_wl_CXX='--backend -Wl,' 12826 lt_prog_compiler_pic_CXX='-fPIC' 12827 ;; 12828 icpc* | ecpc*) 12829 # Intel C++ 12830 lt_prog_compiler_wl_CXX='-Wl,' 12831 lt_prog_compiler_pic_CXX='-KPIC' 12832 lt_prog_compiler_static_CXX='-static' 12833 ;; 12834 pgCC* | pgcpp*) 12835 # Portland Group C++ compiler. 12836 lt_prog_compiler_wl_CXX='-Wl,' 12837 lt_prog_compiler_pic_CXX='-fpic' 12838 lt_prog_compiler_static_CXX='-Bstatic' 12839 ;; 12840 cxx*) 12841 # Compaq C++ 12842 # Make sure the PIC flag is empty. It appears that all Alpha 12843 # Linux and Compaq Tru64 Unix objects are PIC. 12844 lt_prog_compiler_pic_CXX= 12845 lt_prog_compiler_static_CXX='-non_shared' 12846 ;; 12847 *) 12848 case `$CC -V 2>&1 | sed 5q` in 12849 *Sun\ C*) 12850 # Sun C++ 5.9 12851 lt_prog_compiler_pic_CXX='-KPIC' 12852 lt_prog_compiler_static_CXX='-Bstatic' 12853 lt_prog_compiler_wl_CXX='-Qoption ld ' 12854 ;; 12855 esac 12856 ;; 12857 esac 12858 ;; 12859 lynxos*) 12860 ;; 12861 m88k*) 12862 ;; 12863 mvs*) 12864 case $cc_basename in 12865 cxx*) 12866 lt_prog_compiler_pic_CXX='-W c,exportall' 12867 ;; 12868 *) 12869 ;; 12870 esac 12871 ;; 12872 netbsd*) 12873 ;; 12874 osf3* | osf4* | osf5*) 12875 case $cc_basename in 12876 KCC*) 12877 lt_prog_compiler_wl_CXX='--backend -Wl,' 12878 ;; 12879 RCC*) 12880 # Rational C++ 2.4.1 12881 lt_prog_compiler_pic_CXX='-pic' 12882 ;; 12883 cxx*) 12884 # Digital/Compaq C++ 12885 lt_prog_compiler_wl_CXX='-Wl,' 12886 # Make sure the PIC flag is empty. It appears that all Alpha 12887 # Linux and Compaq Tru64 Unix objects are PIC. 12888 lt_prog_compiler_pic_CXX= 12889 lt_prog_compiler_static_CXX='-non_shared' 12890 ;; 12891 *) 12892 ;; 12893 esac 12894 ;; 12895 psos*) 12896 ;; 12897 solaris*) 12898 case $cc_basename in 12899 CC*) 12900 # Sun C++ 4.2, 5.x and Centerline C++ 12901 lt_prog_compiler_pic_CXX='-KPIC' 12902 lt_prog_compiler_static_CXX='-Bstatic' 12903 lt_prog_compiler_wl_CXX='-Qoption ld ' 12904 ;; 12905 gcx*) 12906 # Green Hills C++ Compiler 12907 lt_prog_compiler_pic_CXX='-PIC' 12908 ;; 12909 *) 12910 ;; 12911 esac 12912 ;; 12913 sunos4*) 12914 case $cc_basename in 12915 CC*) 12916 # Sun C++ 4.x 12917 lt_prog_compiler_pic_CXX='-pic' 12918 lt_prog_compiler_static_CXX='-Bstatic' 12919 ;; 12920 lcc*) 12921 # Lucid 12922 lt_prog_compiler_pic_CXX='-pic' 12923 ;; 12924 *) 12925 ;; 12926 esac 12927 ;; 12928 tandem*) 12929 case $cc_basename in 12930 NCC*) 12931 # NonStop-UX NCC 3.20 12932 lt_prog_compiler_pic_CXX='-KPIC' 12933 ;; 12934 *) 12935 ;; 12936 esac 12937 ;; 12938 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12939 case $cc_basename in 12940 CC*) 12941 lt_prog_compiler_wl_CXX='-Wl,' 12942 lt_prog_compiler_pic_CXX='-KPIC' 12943 lt_prog_compiler_static_CXX='-Bstatic' 12944 ;; 12945 esac 12946 ;; 12947 vxworks*) 12948 ;; 12949 *) 12950 lt_prog_compiler_can_build_shared_CXX=no 12951 ;; 12952 esac 12953 fi 12954 12955{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12956$as_echo "$lt_prog_compiler_pic_CXX" >&6; } 12957 12958# 12959# Check to make sure the PIC flag actually works. 12960# 12961if test -n "$lt_prog_compiler_pic_CXX"; then 12962 12963{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12964$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 12965if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then 12966 $as_echo_n "(cached) " >&6 12967else 12968 lt_cv_prog_compiler_pic_works_CXX=no 12969 ac_outfile=conftest.$ac_objext 12970 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12971 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12972 # Insert the option either (1) after the last *FLAGS variable, or 12973 # (2) before a word containing "conftest.", or (3) at the end. 12974 # Note that $ac_compile itself does not contain backslashes and begins 12975 # with a dollar sign (not a hyphen), so the echo should work correctly. 12976 # The option is referenced via a variable to avoid confusing sed. 12977 lt_compile=`echo "$ac_compile" | $SED \ 12978 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12979 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12980 -e 's:$: $lt_compiler_flag:'` 12981 (eval echo "\"\$as_me:12981: $lt_compile\"" >&5) 12982 (eval "$lt_compile" 2>conftest.err) 12983 ac_status=$? 12984 cat conftest.err >&5 12985 echo "$as_me:12985: \$? = $ac_status" >&5 12986 if (exit $ac_status) && test -s "$ac_outfile"; then 12987 # The compiler can only warn and ignore the option if not recognized 12988 # So say no if there are warnings other than the usual output. 12989 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12990 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12991 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12992 lt_cv_prog_compiler_pic_works_CXX=yes 12993 fi 12994 fi 12995 $rm conftest* 12996 12997fi 12998{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 12999$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 13000 13001if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 13002 case $lt_prog_compiler_pic_CXX in 13003 "" | " "*) ;; 13004 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 13005 esac 13006else 13007 lt_prog_compiler_pic_CXX= 13008 lt_prog_compiler_can_build_shared_CXX=no 13009fi 13010 13011fi 13012case $host_os in 13013 # For platforms which do not support PIC, -DPIC is meaningless: 13014 *djgpp*) 13015 lt_prog_compiler_pic_CXX= 13016 ;; 13017 *) 13018 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 13019 ;; 13020esac 13021 13022# 13023# Check to make sure the static flag actually works. 13024# 13025wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 13026{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13027$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 13028if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then 13029 $as_echo_n "(cached) " >&6 13030else 13031 lt_cv_prog_compiler_static_works_CXX=no 13032 save_LDFLAGS="$LDFLAGS" 13033 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13034 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13035 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13036 # The linker can only warn and ignore the option if not recognized 13037 # So say no if there are warnings 13038 if test -s conftest.err; then 13039 # Append any errors to the config.log. 13040 cat conftest.err 1>&5 13041 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13042 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13043 if diff conftest.exp conftest.er2 >/dev/null; then 13044 lt_cv_prog_compiler_static_works_CXX=yes 13045 fi 13046 else 13047 lt_cv_prog_compiler_static_works_CXX=yes 13048 fi 13049 fi 13050 $rm -r conftest* 13051 LDFLAGS="$save_LDFLAGS" 13052 13053fi 13054{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5 13055$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 13056 13057if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 13058 : 13059else 13060 lt_prog_compiler_static_CXX= 13061fi 13062 13063 13064{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13065$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13066if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 13067 $as_echo_n "(cached) " >&6 13068else 13069 lt_cv_prog_compiler_c_o_CXX=no 13070 $rm -r conftest 2>/dev/null 13071 mkdir conftest 13072 cd conftest 13073 mkdir out 13074 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13075 13076 lt_compiler_flag="-o out/conftest2.$ac_objext" 13077 # Insert the option either (1) after the last *FLAGS variable, or 13078 # (2) before a word containing "conftest.", or (3) at the end. 13079 # Note that $ac_compile itself does not contain backslashes and begins 13080 # with a dollar sign (not a hyphen), so the echo should work correctly. 13081 lt_compile=`echo "$ac_compile" | $SED \ 13082 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13083 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13084 -e 's:$: $lt_compiler_flag:'` 13085 (eval echo "\"\$as_me:13085: $lt_compile\"" >&5) 13086 (eval "$lt_compile" 2>out/conftest.err) 13087 ac_status=$? 13088 cat out/conftest.err >&5 13089 echo "$as_me:13089: \$? = $ac_status" >&5 13090 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13091 then 13092 # The compiler can only warn and ignore the option if not recognized 13093 # So say no if there are warnings 13094 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13095 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13096 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13097 lt_cv_prog_compiler_c_o_CXX=yes 13098 fi 13099 fi 13100 chmod u+w . 2>&5 13101 $rm conftest* 13102 # SGI C++ compiler will create directory out/ii_files/ for 13103 # template instantiation 13104 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13105 $rm out/* && rmdir out 13106 cd .. 13107 rmdir conftest 13108 $rm conftest* 13109 13110fi 13111{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13112$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 13113 13114 13115hard_links="nottested" 13116if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 13117 # do not overwrite the value of need_locks provided by the user 13118 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13119$as_echo_n "checking if we can lock with hard links... " >&6; } 13120 hard_links=yes 13121 $rm conftest* 13122 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13123 touch conftest.a 13124 ln conftest.a conftest.b 2>&5 || hard_links=no 13125 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13126 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 13127$as_echo "$hard_links" >&6; } 13128 if test "$hard_links" = no; then 13129 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13130$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13131 need_locks=warn 13132 fi 13133else 13134 need_locks=no 13135fi 13136 13137{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13138$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13139 13140 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13141 case $host_os in 13142 aix[4-9]*) 13143 # If we're using GNU nm, then we don't want the "-C" option. 13144 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13145 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13146 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' 13147 else 13148 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' 13149 fi 13150 ;; 13151 pw32*) 13152 export_symbols_cmds_CXX="$ltdll_cmds" 13153 ;; 13154 cygwin* | mingw*) 13155 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' 13156 ;; 13157 *) 13158 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13159 ;; 13160 esac 13161 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 13162 13163{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 13164$as_echo "$ld_shlibs_CXX" >&6; } 13165test "$ld_shlibs_CXX" = no && can_build_shared=no 13166 13167# 13168# Do we need to explicitly link libc? 13169# 13170case "x$archive_cmds_need_lc_CXX" in 13171x|xyes) 13172 # Assume -lc should be added 13173 archive_cmds_need_lc_CXX=yes 13174 13175 if test "$enable_shared" = yes && test "$GCC" = yes; then 13176 case $archive_cmds_CXX in 13177 *'~'*) 13178 # FIXME: we may have to deal with multi-command sequences. 13179 ;; 13180 '$CC '*) 13181 # Test whether the compiler implicitly links with -lc since on some 13182 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13183 # to ld, don't add -lc before -lgcc. 13184 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 13185$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 13186 $rm conftest* 13187 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13188 13189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13190 (eval $ac_compile) 2>&5 13191 ac_status=$? 13192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13193 (exit $ac_status); } 2>conftest.err; then 13194 soname=conftest 13195 lib=conftest 13196 libobjs=conftest.$ac_objext 13197 deplibs= 13198 wl=$lt_prog_compiler_wl_CXX 13199 pic_flag=$lt_prog_compiler_pic_CXX 13200 compiler_flags=-v 13201 linker_flags=-v 13202 verstring= 13203 output_objdir=. 13204 libname=conftest 13205 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 13206 allow_undefined_flag_CXX= 13207 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 13208 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 13209 ac_status=$? 13210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13211 (exit $ac_status); } 13212 then 13213 archive_cmds_need_lc_CXX=no 13214 else 13215 archive_cmds_need_lc_CXX=yes 13216 fi 13217 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 13218 else 13219 cat conftest.err 1>&5 13220 fi 13221 $rm conftest* 13222 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 13223$as_echo "$archive_cmds_need_lc_CXX" >&6; } 13224 ;; 13225 esac 13226 fi 13227 ;; 13228esac 13229 13230{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 13231$as_echo_n "checking dynamic linker characteristics... " >&6; } 13232library_names_spec= 13233libname_spec='lib$name' 13234soname_spec= 13235shrext_cmds=".so" 13236postinstall_cmds= 13237postuninstall_cmds= 13238finish_cmds= 13239finish_eval= 13240shlibpath_var= 13241shlibpath_overrides_runpath=unknown 13242version_type=none 13243dynamic_linker="$host_os ld.so" 13244sys_lib_dlsearch_path_spec="/lib /usr/lib" 13245 13246need_lib_prefix=unknown 13247hardcode_into_libs=no 13248 13249# when you set need_version to no, make sure it does not cause -set_version 13250# flags to be left without arguments 13251need_version=unknown 13252 13253case $host_os in 13254aix3*) 13255 version_type=linux 13256 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13257 shlibpath_var=LIBPATH 13258 13259 # AIX 3 has no versioning support, so we append a major version to the name. 13260 soname_spec='${libname}${release}${shared_ext}$major' 13261 ;; 13262 13263aix[4-9]*) 13264 version_type=linux 13265 need_lib_prefix=no 13266 need_version=no 13267 hardcode_into_libs=yes 13268 if test "$host_cpu" = ia64; then 13269 # AIX 5 supports IA64 13270 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13271 shlibpath_var=LD_LIBRARY_PATH 13272 else 13273 # With GCC up to 2.95.x, collect2 would create an import file 13274 # for dependence libraries. The import file would start with 13275 # the line `#! .'. This would cause the generated library to 13276 # depend on `.', always an invalid library. This was fixed in 13277 # development snapshots of GCC prior to 3.0. 13278 case $host_os in 13279 aix4 | aix4.[01] | aix4.[01].*) 13280 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13281 echo ' yes ' 13282 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13283 : 13284 else 13285 can_build_shared=no 13286 fi 13287 ;; 13288 esac 13289 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13290 # soname into executable. Probably we can add versioning support to 13291 # collect2, so additional links can be useful in future. 13292 if test "$aix_use_runtimelinking" = yes; then 13293 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13294 # instead of lib<name>.a to let people know that these are not 13295 # typical AIX shared libraries. 13296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13297 else 13298 # We preserve .a as extension for shared libraries through AIX4.2 13299 # and later when we are not doing run time linking. 13300 library_names_spec='${libname}${release}.a $libname.a' 13301 soname_spec='${libname}${release}${shared_ext}$major' 13302 fi 13303 shlibpath_var=LIBPATH 13304 fi 13305 ;; 13306 13307amigaos*) 13308 library_names_spec='$libname.ixlibrary $libname.a' 13309 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13310 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' 13311 ;; 13312 13313beos*) 13314 library_names_spec='${libname}${shared_ext}' 13315 dynamic_linker="$host_os ld.so" 13316 shlibpath_var=LIBRARY_PATH 13317 ;; 13318 13319bsdi[45]*) 13320 version_type=linux 13321 need_version=no 13322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13323 soname_spec='${libname}${release}${shared_ext}$major' 13324 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13325 shlibpath_var=LD_LIBRARY_PATH 13326 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13327 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13328 # the default ld.so.conf also contains /usr/contrib/lib and 13329 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13330 # libtool to hard-code these into programs 13331 ;; 13332 13333cygwin* | mingw* | pw32*) 13334 version_type=windows 13335 shrext_cmds=".dll" 13336 need_version=no 13337 need_lib_prefix=no 13338 13339 case $GCC,$host_os in 13340 yes,cygwin* | yes,mingw* | yes,pw32*) 13341 library_names_spec='$libname.dll.a' 13342 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13343 postinstall_cmds='base_file=`basename \${file}`~ 13344 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13345 dldir=$destdir/`dirname \$dlpath`~ 13346 test -d \$dldir || mkdir -p \$dldir~ 13347 $install_prog $dir/$dlname \$dldir/$dlname~ 13348 chmod a+x \$dldir/$dlname' 13349 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13350 dlpath=$dir/\$dldll~ 13351 $rm \$dlpath' 13352 shlibpath_overrides_runpath=yes 13353 13354 case $host_os in 13355 cygwin*) 13356 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13357 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13358 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13359 ;; 13360 mingw*) 13361 # MinGW DLLs use traditional 'lib' prefix 13362 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13363 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13364 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13365 # It is most probably a Windows format PATH printed by 13366 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13367 # path with ; separators, and with drive letters. We can handle the 13368 # drive letters (cygwin fileutils understands them), so leave them, 13369 # especially as we might pass files found there to a mingw objdump, 13370 # which wouldn't understand a cygwinified path. Ahh. 13371 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13372 else 13373 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13374 fi 13375 ;; 13376 pw32*) 13377 # pw32 DLLs use 'pw' prefix rather than 'lib' 13378 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13379 ;; 13380 esac 13381 ;; 13382 13383 *) 13384 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13385 ;; 13386 esac 13387 dynamic_linker='Win32 ld.exe' 13388 # FIXME: first we should search . and the directory the executable is in 13389 shlibpath_var=PATH 13390 ;; 13391 13392darwin* | rhapsody*) 13393 dynamic_linker="$host_os dyld" 13394 version_type=darwin 13395 need_lib_prefix=no 13396 need_version=no 13397 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13398 soname_spec='${libname}${release}${major}$shared_ext' 13399 shlibpath_overrides_runpath=yes 13400 shlibpath_var=DYLD_LIBRARY_PATH 13401 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13402 13403 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13404 ;; 13405 13406dgux*) 13407 version_type=linux 13408 need_lib_prefix=no 13409 need_version=no 13410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13411 soname_spec='${libname}${release}${shared_ext}$major' 13412 shlibpath_var=LD_LIBRARY_PATH 13413 ;; 13414 13415freebsd1*) 13416 dynamic_linker=no 13417 ;; 13418 13419freebsd* | dragonfly*) 13420 # DragonFly does not have aout. When/if they implement a new 13421 # versioning mechanism, adjust this. 13422 if test -x /usr/bin/objformat; then 13423 objformat=`/usr/bin/objformat` 13424 else 13425 case $host_os in 13426 freebsd[123]*) objformat=aout ;; 13427 *) objformat=elf ;; 13428 esac 13429 fi 13430 # Handle Gentoo/FreeBSD as it was Linux 13431 case $host_vendor in 13432 gentoo) 13433 version_type=linux ;; 13434 *) 13435 version_type=freebsd-$objformat ;; 13436 esac 13437 13438 case $version_type in 13439 freebsd-elf*) 13440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13441 need_version=no 13442 need_lib_prefix=no 13443 ;; 13444 freebsd-*) 13445 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13446 need_version=yes 13447 ;; 13448 linux) 13449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13450 soname_spec='${libname}${release}${shared_ext}$major' 13451 need_lib_prefix=no 13452 need_version=no 13453 ;; 13454 esac 13455 shlibpath_var=LD_LIBRARY_PATH 13456 case $host_os in 13457 freebsd2*) 13458 shlibpath_overrides_runpath=yes 13459 ;; 13460 freebsd3.[01]* | freebsdelf3.[01]*) 13461 shlibpath_overrides_runpath=yes 13462 hardcode_into_libs=yes 13463 ;; 13464 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13465 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13466 shlibpath_overrides_runpath=no 13467 hardcode_into_libs=yes 13468 ;; 13469 *) # from 4.6 on, and DragonFly 13470 shlibpath_overrides_runpath=yes 13471 hardcode_into_libs=yes 13472 ;; 13473 esac 13474 ;; 13475 13476gnu*) 13477 version_type=linux 13478 need_lib_prefix=no 13479 need_version=no 13480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13481 soname_spec='${libname}${release}${shared_ext}$major' 13482 shlibpath_var=LD_LIBRARY_PATH 13483 hardcode_into_libs=yes 13484 ;; 13485 13486hpux9* | hpux10* | hpux11*) 13487 # Give a soname corresponding to the major version so that dld.sl refuses to 13488 # link against other versions. 13489 version_type=sunos 13490 need_lib_prefix=no 13491 need_version=no 13492 case $host_cpu in 13493 ia64*) 13494 shrext_cmds='.so' 13495 hardcode_into_libs=yes 13496 dynamic_linker="$host_os dld.so" 13497 shlibpath_var=LD_LIBRARY_PATH 13498 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13500 soname_spec='${libname}${release}${shared_ext}$major' 13501 if test "X$HPUX_IA64_MODE" = X32; then 13502 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13503 else 13504 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13505 fi 13506 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13507 ;; 13508 hppa*64*) 13509 shrext_cmds='.sl' 13510 hardcode_into_libs=yes 13511 dynamic_linker="$host_os dld.sl" 13512 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13513 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13515 soname_spec='${libname}${release}${shared_ext}$major' 13516 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13517 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13518 ;; 13519 *) 13520 shrext_cmds='.sl' 13521 dynamic_linker="$host_os dld.sl" 13522 shlibpath_var=SHLIB_PATH 13523 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13525 soname_spec='${libname}${release}${shared_ext}$major' 13526 ;; 13527 esac 13528 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13529 postinstall_cmds='chmod 555 $lib' 13530 ;; 13531 13532interix[3-9]*) 13533 version_type=linux 13534 need_lib_prefix=no 13535 need_version=no 13536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13537 soname_spec='${libname}${release}${shared_ext}$major' 13538 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13539 shlibpath_var=LD_LIBRARY_PATH 13540 shlibpath_overrides_runpath=no 13541 hardcode_into_libs=yes 13542 ;; 13543 13544irix5* | irix6* | nonstopux*) 13545 case $host_os in 13546 nonstopux*) version_type=nonstopux ;; 13547 *) 13548 if test "$lt_cv_prog_gnu_ld" = yes; then 13549 version_type=linux 13550 else 13551 version_type=irix 13552 fi ;; 13553 esac 13554 need_lib_prefix=no 13555 need_version=no 13556 soname_spec='${libname}${release}${shared_ext}$major' 13557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13558 case $host_os in 13559 irix5* | nonstopux*) 13560 libsuff= shlibsuff= 13561 ;; 13562 *) 13563 case $LD in # libtool.m4 will add one of these switches to LD 13564 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13565 libsuff= shlibsuff= libmagic=32-bit;; 13566 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13567 libsuff=32 shlibsuff=N32 libmagic=N32;; 13568 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13569 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13570 *) libsuff= shlibsuff= libmagic=never-match;; 13571 esac 13572 ;; 13573 esac 13574 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13575 shlibpath_overrides_runpath=no 13576 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13577 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13578 hardcode_into_libs=yes 13579 ;; 13580 13581# No shared lib support for Linux oldld, aout, or coff. 13582linux*oldld* | linux*aout* | linux*coff*) 13583 dynamic_linker=no 13584 ;; 13585 13586# This must be Linux ELF. 13587linux* | k*bsd*-gnu) 13588 version_type=linux 13589 need_lib_prefix=no 13590 need_version=no 13591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13592 soname_spec='${libname}${release}${shared_ext}$major' 13593 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13594 shlibpath_var=LD_LIBRARY_PATH 13595 shlibpath_overrides_runpath=no 13596 # This implies no fast_install, which is unacceptable. 13597 # Some rework will be needed to allow for fast_install 13598 # before this can be enabled. 13599 hardcode_into_libs=yes 13600 13601 # Append ld.so.conf contents to the search path 13602 if test -f /etc/ld.so.conf; then 13603 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' ' '` 13604 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13605 fi 13606 13607 # We used to test for /lib/ld.so.1 and disable shared libraries on 13608 # powerpc, because MkLinux only supported shared libraries with the 13609 # GNU dynamic linker. Since this was broken with cross compilers, 13610 # most powerpc-linux boxes support dynamic linking these days and 13611 # people can always --disable-shared, the test was removed, and we 13612 # assume the GNU/Linux dynamic linker is in use. 13613 dynamic_linker='GNU/Linux ld.so' 13614 ;; 13615 13616netbsd*) 13617 version_type=sunos 13618 need_lib_prefix=no 13619 need_version=no 13620 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13622 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13623 dynamic_linker='NetBSD (a.out) ld.so' 13624 else 13625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13626 soname_spec='${libname}${release}${shared_ext}$major' 13627 dynamic_linker='NetBSD ld.elf_so' 13628 fi 13629 shlibpath_var=LD_LIBRARY_PATH 13630 shlibpath_overrides_runpath=yes 13631 hardcode_into_libs=yes 13632 ;; 13633 13634newsos6) 13635 version_type=linux 13636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13637 shlibpath_var=LD_LIBRARY_PATH 13638 shlibpath_overrides_runpath=yes 13639 ;; 13640 13641nto-qnx*) 13642 version_type=linux 13643 need_lib_prefix=no 13644 need_version=no 13645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13646 soname_spec='${libname}${release}${shared_ext}$major' 13647 shlibpath_var=LD_LIBRARY_PATH 13648 shlibpath_overrides_runpath=yes 13649 ;; 13650 13651openbsd*) 13652 version_type=sunos 13653 sys_lib_dlsearch_path_spec="/usr/lib" 13654 need_lib_prefix=no 13655 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13656 case $host_os in 13657 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13658 *) need_version=no ;; 13659 esac 13660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13661 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13662 shlibpath_var=LD_LIBRARY_PATH 13663 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13664 case $host_os in 13665 openbsd2.[89] | openbsd2.[89].*) 13666 shlibpath_overrides_runpath=no 13667 ;; 13668 *) 13669 shlibpath_overrides_runpath=yes 13670 ;; 13671 esac 13672 else 13673 shlibpath_overrides_runpath=yes 13674 fi 13675 ;; 13676 13677os2*) 13678 libname_spec='$name' 13679 shrext_cmds=".dll" 13680 need_lib_prefix=no 13681 library_names_spec='$libname${shared_ext} $libname.a' 13682 dynamic_linker='OS/2 ld.exe' 13683 shlibpath_var=LIBPATH 13684 ;; 13685 13686osf3* | osf4* | osf5*) 13687 version_type=osf 13688 need_lib_prefix=no 13689 need_version=no 13690 soname_spec='${libname}${release}${shared_ext}$major' 13691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13692 shlibpath_var=LD_LIBRARY_PATH 13693 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13694 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13695 ;; 13696 13697rdos*) 13698 dynamic_linker=no 13699 ;; 13700 13701solaris*) 13702 version_type=linux 13703 need_lib_prefix=no 13704 need_version=no 13705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13706 soname_spec='${libname}${release}${shared_ext}$major' 13707 shlibpath_var=LD_LIBRARY_PATH 13708 shlibpath_overrides_runpath=yes 13709 hardcode_into_libs=yes 13710 # ldd complains unless libraries are executable 13711 postinstall_cmds='chmod +x $lib' 13712 ;; 13713 13714sunos4*) 13715 version_type=sunos 13716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13717 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13718 shlibpath_var=LD_LIBRARY_PATH 13719 shlibpath_overrides_runpath=yes 13720 if test "$with_gnu_ld" = yes; then 13721 need_lib_prefix=no 13722 fi 13723 need_version=yes 13724 ;; 13725 13726sysv4 | sysv4.3*) 13727 version_type=linux 13728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13729 soname_spec='${libname}${release}${shared_ext}$major' 13730 shlibpath_var=LD_LIBRARY_PATH 13731 case $host_vendor in 13732 sni) 13733 shlibpath_overrides_runpath=no 13734 need_lib_prefix=no 13735 export_dynamic_flag_spec='${wl}-Blargedynsym' 13736 runpath_var=LD_RUN_PATH 13737 ;; 13738 siemens) 13739 need_lib_prefix=no 13740 ;; 13741 motorola) 13742 need_lib_prefix=no 13743 need_version=no 13744 shlibpath_overrides_runpath=no 13745 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13746 ;; 13747 esac 13748 ;; 13749 13750sysv4*MP*) 13751 if test -d /usr/nec ;then 13752 version_type=linux 13753 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13754 soname_spec='$libname${shared_ext}.$major' 13755 shlibpath_var=LD_LIBRARY_PATH 13756 fi 13757 ;; 13758 13759sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13760 version_type=freebsd-elf 13761 need_lib_prefix=no 13762 need_version=no 13763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13764 soname_spec='${libname}${release}${shared_ext}$major' 13765 shlibpath_var=LD_LIBRARY_PATH 13766 hardcode_into_libs=yes 13767 if test "$with_gnu_ld" = yes; then 13768 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13769 shlibpath_overrides_runpath=no 13770 else 13771 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13772 shlibpath_overrides_runpath=yes 13773 case $host_os in 13774 sco3.2v5*) 13775 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13776 ;; 13777 esac 13778 fi 13779 sys_lib_dlsearch_path_spec='/usr/lib' 13780 ;; 13781 13782uts4*) 13783 version_type=linux 13784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13785 soname_spec='${libname}${release}${shared_ext}$major' 13786 shlibpath_var=LD_LIBRARY_PATH 13787 ;; 13788 13789*) 13790 dynamic_linker=no 13791 ;; 13792esac 13793{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13794$as_echo "$dynamic_linker" >&6; } 13795test "$dynamic_linker" = no && can_build_shared=no 13796 13797if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 13798 $as_echo_n "(cached) " >&6 13799else 13800 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 13801fi 13802 13803sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 13804if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 13805 $as_echo_n "(cached) " >&6 13806else 13807 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 13808fi 13809 13810sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 13811 13812variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13813if test "$GCC" = yes; then 13814 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13815fi 13816 13817{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13818$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13819hardcode_action_CXX= 13820if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13821 test -n "$runpath_var_CXX" || \ 13822 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13823 13824 # We can hardcode non-existant directories. 13825 if test "$hardcode_direct_CXX" != no && 13826 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13827 # have to relink, otherwise we might link with an installed library 13828 # when we should be linking with a yet-to-be-installed one 13829 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13830 test "$hardcode_minus_L_CXX" != no; then 13831 # Linking always hardcodes the temporary library directory. 13832 hardcode_action_CXX=relink 13833 else 13834 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13835 hardcode_action_CXX=immediate 13836 fi 13837else 13838 # We cannot hardcode anything, or else we can only hardcode existing 13839 # directories. 13840 hardcode_action_CXX=unsupported 13841fi 13842{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13843$as_echo "$hardcode_action_CXX" >&6; } 13844 13845if test "$hardcode_action_CXX" = relink; then 13846 # Fast installation is not supported 13847 enable_fast_install=no 13848elif test "$shlibpath_overrides_runpath" = yes || 13849 test "$enable_shared" = no; then 13850 # Fast installation is not necessary 13851 enable_fast_install=needless 13852fi 13853 13854 13855# The else clause should only fire when bootstrapping the 13856# libtool distribution, otherwise you forgot to ship ltmain.sh 13857# with your package, and you will get complaints that there are 13858# no rules to generate ltmain.sh. 13859if test -f "$ltmain"; then 13860 # See if we are running on zsh, and set the options which allow our commands through 13861 # without removal of \ escapes. 13862 if test -n "${ZSH_VERSION+set}" ; then 13863 setopt NO_GLOB_SUBST 13864 fi 13865 # Now quote all the things that may contain metacharacters while being 13866 # careful not to overquote the AC_SUBSTed values. We take copies of the 13867 # variables and quote the copies for generation of the libtool script. 13868 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13869 SED SHELL STRIP \ 13870 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13871 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13872 deplibs_check_method reload_flag reload_cmds need_locks \ 13873 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13874 lt_cv_sys_global_symbol_to_c_name_address \ 13875 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13876 old_postinstall_cmds old_postuninstall_cmds \ 13877 compiler_CXX \ 13878 CC_CXX \ 13879 LD_CXX \ 13880 lt_prog_compiler_wl_CXX \ 13881 lt_prog_compiler_pic_CXX \ 13882 lt_prog_compiler_static_CXX \ 13883 lt_prog_compiler_no_builtin_flag_CXX \ 13884 export_dynamic_flag_spec_CXX \ 13885 thread_safe_flag_spec_CXX \ 13886 whole_archive_flag_spec_CXX \ 13887 enable_shared_with_static_runtimes_CXX \ 13888 old_archive_cmds_CXX \ 13889 old_archive_from_new_cmds_CXX \ 13890 predep_objects_CXX \ 13891 postdep_objects_CXX \ 13892 predeps_CXX \ 13893 postdeps_CXX \ 13894 compiler_lib_search_path_CXX \ 13895 compiler_lib_search_dirs_CXX \ 13896 archive_cmds_CXX \ 13897 archive_expsym_cmds_CXX \ 13898 postinstall_cmds_CXX \ 13899 postuninstall_cmds_CXX \ 13900 old_archive_from_expsyms_cmds_CXX \ 13901 allow_undefined_flag_CXX \ 13902 no_undefined_flag_CXX \ 13903 export_symbols_cmds_CXX \ 13904 hardcode_libdir_flag_spec_CXX \ 13905 hardcode_libdir_flag_spec_ld_CXX \ 13906 hardcode_libdir_separator_CXX \ 13907 hardcode_automatic_CXX \ 13908 module_cmds_CXX \ 13909 module_expsym_cmds_CXX \ 13910 lt_cv_prog_compiler_c_o_CXX \ 13911 fix_srcfile_path_CXX \ 13912 exclude_expsyms_CXX \ 13913 include_expsyms_CXX; do 13914 13915 case $var in 13916 old_archive_cmds_CXX | \ 13917 old_archive_from_new_cmds_CXX | \ 13918 archive_cmds_CXX | \ 13919 archive_expsym_cmds_CXX | \ 13920 module_cmds_CXX | \ 13921 module_expsym_cmds_CXX | \ 13922 old_archive_from_expsyms_cmds_CXX | \ 13923 export_symbols_cmds_CXX | \ 13924 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13925 postinstall_cmds | postuninstall_cmds | \ 13926 old_postinstall_cmds | old_postuninstall_cmds | \ 13927 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13928 # Double-quote double-evaled strings. 13929 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13930 ;; 13931 *) 13932 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13933 ;; 13934 esac 13935 done 13936 13937 case $lt_echo in 13938 *'\$0 --fallback-echo"') 13939 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13940 ;; 13941 esac 13942 13943cfgfile="$ofile" 13944 13945 cat <<__EOF__ >> "$cfgfile" 13946# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13947 13948# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13949 13950# Shell to use when invoking shell scripts. 13951SHELL=$lt_SHELL 13952 13953# Whether or not to build shared libraries. 13954build_libtool_libs=$enable_shared 13955 13956# Whether or not to build static libraries. 13957build_old_libs=$enable_static 13958 13959# Whether or not to add -lc for building shared libraries. 13960build_libtool_need_lc=$archive_cmds_need_lc_CXX 13961 13962# Whether or not to disallow shared libs when runtime libs are static 13963allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13964 13965# Whether or not to optimize for fast installation. 13966fast_install=$enable_fast_install 13967 13968# The host system. 13969host_alias=$host_alias 13970host=$host 13971host_os=$host_os 13972 13973# The build system. 13974build_alias=$build_alias 13975build=$build 13976build_os=$build_os 13977 13978# An echo program that does not interpret backslashes. 13979echo=$lt_echo 13980 13981# The archiver. 13982AR=$lt_AR 13983AR_FLAGS=$lt_AR_FLAGS 13984 13985# A C compiler. 13986LTCC=$lt_LTCC 13987 13988# LTCC compiler flags. 13989LTCFLAGS=$lt_LTCFLAGS 13990 13991# A language-specific compiler. 13992CC=$lt_compiler_CXX 13993 13994# Is the compiler the GNU C compiler? 13995with_gcc=$GCC_CXX 13996 13997# An ERE matcher. 13998EGREP=$lt_EGREP 13999 14000# The linker used to build libraries. 14001LD=$lt_LD_CXX 14002 14003# Whether we need hard or soft links. 14004LN_S=$lt_LN_S 14005 14006# A BSD-compatible nm program. 14007NM=$lt_NM 14008 14009# A symbol stripping program 14010STRIP=$lt_STRIP 14011 14012# Used to examine libraries when file_magic_cmd begins "file" 14013MAGIC_CMD=$MAGIC_CMD 14014 14015# Used on cygwin: DLL creation program. 14016DLLTOOL="$DLLTOOL" 14017 14018# Used on cygwin: object dumper. 14019OBJDUMP="$OBJDUMP" 14020 14021# Used on cygwin: assembler. 14022AS="$AS" 14023 14024# The name of the directory that contains temporary libtool files. 14025objdir=$objdir 14026 14027# How to create reloadable object files. 14028reload_flag=$lt_reload_flag 14029reload_cmds=$lt_reload_cmds 14030 14031# How to pass a linker flag through the compiler. 14032wl=$lt_lt_prog_compiler_wl_CXX 14033 14034# Object file suffix (normally "o"). 14035objext="$ac_objext" 14036 14037# Old archive suffix (normally "a"). 14038libext="$libext" 14039 14040# Shared library suffix (normally ".so"). 14041shrext_cmds='$shrext_cmds' 14042 14043# Executable file suffix (normally ""). 14044exeext="$exeext" 14045 14046# Additional compiler flags for building library objects. 14047pic_flag=$lt_lt_prog_compiler_pic_CXX 14048pic_mode=$pic_mode 14049 14050# What is the maximum length of a command? 14051max_cmd_len=$lt_cv_sys_max_cmd_len 14052 14053# Does compiler simultaneously support -c and -o options? 14054compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 14055 14056# Must we lock files when doing compilation? 14057need_locks=$lt_need_locks 14058 14059# Do we need the lib prefix for modules? 14060need_lib_prefix=$need_lib_prefix 14061 14062# Do we need a version for libraries? 14063need_version=$need_version 14064 14065# Whether dlopen is supported. 14066dlopen_support=$enable_dlopen 14067 14068# Whether dlopen of programs is supported. 14069dlopen_self=$enable_dlopen_self 14070 14071# Whether dlopen of statically linked programs is supported. 14072dlopen_self_static=$enable_dlopen_self_static 14073 14074# Compiler flag to prevent dynamic linking. 14075link_static_flag=$lt_lt_prog_compiler_static_CXX 14076 14077# Compiler flag to turn off builtin functions. 14078no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 14079 14080# Compiler flag to allow reflexive dlopens. 14081export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 14082 14083# Compiler flag to generate shared objects directly from archives. 14084whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 14085 14086# Compiler flag to generate thread-safe objects. 14087thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 14088 14089# Library versioning type. 14090version_type=$version_type 14091 14092# Format of library name prefix. 14093libname_spec=$lt_libname_spec 14094 14095# List of archive names. First name is the real one, the rest are links. 14096# The last name is the one that the linker finds with -lNAME. 14097library_names_spec=$lt_library_names_spec 14098 14099# The coded name of the library, if different from the real name. 14100soname_spec=$lt_soname_spec 14101 14102# Commands used to build and install an old-style archive. 14103RANLIB=$lt_RANLIB 14104old_archive_cmds=$lt_old_archive_cmds_CXX 14105old_postinstall_cmds=$lt_old_postinstall_cmds 14106old_postuninstall_cmds=$lt_old_postuninstall_cmds 14107 14108# Create an old-style archive from a shared archive. 14109old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 14110 14111# Create a temporary old-style archive to link instead of a shared archive. 14112old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 14113 14114# Commands used to build and install a shared archive. 14115archive_cmds=$lt_archive_cmds_CXX 14116archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 14117postinstall_cmds=$lt_postinstall_cmds 14118postuninstall_cmds=$lt_postuninstall_cmds 14119 14120# Commands used to build a loadable module (assumed same as above if empty) 14121module_cmds=$lt_module_cmds_CXX 14122module_expsym_cmds=$lt_module_expsym_cmds_CXX 14123 14124# Commands to strip libraries. 14125old_striplib=$lt_old_striplib 14126striplib=$lt_striplib 14127 14128# Dependencies to place before the objects being linked to create a 14129# shared library. 14130predep_objects=$lt_predep_objects_CXX 14131 14132# Dependencies to place after the objects being linked to create a 14133# shared library. 14134postdep_objects=$lt_postdep_objects_CXX 14135 14136# Dependencies to place before the objects being linked to create a 14137# shared library. 14138predeps=$lt_predeps_CXX 14139 14140# Dependencies to place after the objects being linked to create a 14141# shared library. 14142postdeps=$lt_postdeps_CXX 14143 14144# The directories searched by this compiler when creating a shared 14145# library 14146compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 14147 14148# The library search path used internally by the compiler when linking 14149# a shared library. 14150compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 14151 14152# Method to check whether dependent libraries are shared objects. 14153deplibs_check_method=$lt_deplibs_check_method 14154 14155# Command to use when deplibs_check_method == file_magic. 14156file_magic_cmd=$lt_file_magic_cmd 14157 14158# Flag that allows shared libraries with undefined symbols to be built. 14159allow_undefined_flag=$lt_allow_undefined_flag_CXX 14160 14161# Flag that forces no undefined symbols. 14162no_undefined_flag=$lt_no_undefined_flag_CXX 14163 14164# Commands used to finish a libtool library installation in a directory. 14165finish_cmds=$lt_finish_cmds 14166 14167# Same as above, but a single script fragment to be evaled but not shown. 14168finish_eval=$lt_finish_eval 14169 14170# Take the output of nm and produce a listing of raw symbols and C names. 14171global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14172 14173# Transform the output of nm in a proper C declaration 14174global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14175 14176# Transform the output of nm in a C name address pair 14177global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14178 14179# This is the shared library runtime path variable. 14180runpath_var=$runpath_var 14181 14182# This is the shared library path variable. 14183shlibpath_var=$shlibpath_var 14184 14185# Is shlibpath searched before the hard-coded library search path? 14186shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14187 14188# How to hardcode a shared library path into an executable. 14189hardcode_action=$hardcode_action_CXX 14190 14191# Whether we should hardcode library paths into libraries. 14192hardcode_into_libs=$hardcode_into_libs 14193 14194# Flag to hardcode \$libdir into a binary during linking. 14195# This must work even if \$libdir does not exist. 14196hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 14197 14198# If ld is used when linking, flag to hardcode \$libdir into 14199# a binary during linking. This must work even if \$libdir does 14200# not exist. 14201hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 14202 14203# Whether we need a single -rpath flag with a separated argument. 14204hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 14205 14206# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 14207# resulting binary. 14208hardcode_direct=$hardcode_direct_CXX 14209 14210# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 14211# resulting binary. 14212hardcode_minus_L=$hardcode_minus_L_CXX 14213 14214# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 14215# the resulting binary. 14216hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 14217 14218# Set to yes if building a shared library automatically hardcodes DIR into the library 14219# and all subsequent libraries and executables linked against it. 14220hardcode_automatic=$hardcode_automatic_CXX 14221 14222# Variables whose values should be saved in libtool wrapper scripts and 14223# restored at relink time. 14224variables_saved_for_relink="$variables_saved_for_relink" 14225 14226# Whether libtool must link a program against all its dependency libraries. 14227link_all_deplibs=$link_all_deplibs_CXX 14228 14229# Compile-time system search path for libraries 14230sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14231 14232# Run-time system search path for libraries 14233sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14234 14235# Fix the shell variable \$srcfile for the compiler. 14236fix_srcfile_path=$lt_fix_srcfile_path 14237 14238# Set to yes if exported symbols are required. 14239always_export_symbols=$always_export_symbols_CXX 14240 14241# The commands to list exported symbols. 14242export_symbols_cmds=$lt_export_symbols_cmds_CXX 14243 14244# The commands to extract the exported symbol list from a shared archive. 14245extract_expsyms_cmds=$lt_extract_expsyms_cmds 14246 14247# Symbols that should not be listed in the preloaded symbols. 14248exclude_expsyms=$lt_exclude_expsyms_CXX 14249 14250# Symbols that must always be exported. 14251include_expsyms=$lt_include_expsyms_CXX 14252 14253# ### END LIBTOOL TAG CONFIG: $tagname 14254 14255__EOF__ 14256 14257 14258else 14259 # If there is no Makefile yet, we rely on a make rule to execute 14260 # `config.status --recheck' to rerun these tests and create the 14261 # libtool script then. 14262 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 14263 if test -f "$ltmain_in"; then 14264 test -f Makefile && make "$ltmain" 14265 fi 14266fi 14267 14268 14269ac_ext=c 14270ac_cpp='$CPP $CPPFLAGS' 14271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14273ac_compiler_gnu=$ac_cv_c_compiler_gnu 14274 14275CC=$lt_save_CC 14276LDCXX=$LD 14277LD=$lt_save_LD 14278GCC=$lt_save_GCC 14279with_gnu_ldcxx=$with_gnu_ld 14280with_gnu_ld=$lt_save_with_gnu_ld 14281lt_cv_path_LDCXX=$lt_cv_path_LD 14282lt_cv_path_LD=$lt_save_path_LD 14283lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14284lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14285 14286 else 14287 tagname="" 14288 fi 14289 ;; 14290 14291 F77) 14292 if test -n "$F77" && test "X$F77" != "Xno"; then 14293 14294ac_ext=f 14295ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 14296ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14297ac_compiler_gnu=$ac_cv_f77_compiler_gnu 14298 14299 14300archive_cmds_need_lc_F77=no 14301allow_undefined_flag_F77= 14302always_export_symbols_F77=no 14303archive_expsym_cmds_F77= 14304export_dynamic_flag_spec_F77= 14305hardcode_direct_F77=no 14306hardcode_libdir_flag_spec_F77= 14307hardcode_libdir_flag_spec_ld_F77= 14308hardcode_libdir_separator_F77= 14309hardcode_minus_L_F77=no 14310hardcode_automatic_F77=no 14311module_cmds_F77= 14312module_expsym_cmds_F77= 14313link_all_deplibs_F77=unknown 14314old_archive_cmds_F77=$old_archive_cmds 14315no_undefined_flag_F77= 14316whole_archive_flag_spec_F77= 14317enable_shared_with_static_runtimes_F77=no 14318 14319# Source file extension for f77 test sources. 14320ac_ext=f 14321 14322# Object file extension for compiled f77 test sources. 14323objext=o 14324objext_F77=$objext 14325 14326# Code to be used in simple compile tests 14327lt_simple_compile_test_code="\ 14328 subroutine t 14329 return 14330 end 14331" 14332 14333# Code to be used in simple link tests 14334lt_simple_link_test_code="\ 14335 program t 14336 end 14337" 14338 14339# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14340 14341# If no C compiler was specified, use CC. 14342LTCC=${LTCC-"$CC"} 14343 14344# If no C compiler flags were specified, use CFLAGS. 14345LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14346 14347# Allow CC to be a program name with arguments. 14348compiler=$CC 14349 14350 14351# save warnings/boilerplate of simple test code 14352ac_outfile=conftest.$ac_objext 14353echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14354eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14355_lt_compiler_boilerplate=`cat conftest.err` 14356$rm conftest* 14357 14358ac_outfile=conftest.$ac_objext 14359echo "$lt_simple_link_test_code" >conftest.$ac_ext 14360eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14361_lt_linker_boilerplate=`cat conftest.err` 14362$rm -r conftest* 14363 14364 14365# Allow CC to be a program name with arguments. 14366lt_save_CC="$CC" 14367CC=${F77-"f77"} 14368compiler=$CC 14369compiler_F77=$CC 14370for cc_temp in $compiler""; do 14371 case $cc_temp in 14372 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14373 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14374 \-*) ;; 14375 *) break;; 14376 esac 14377done 14378cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14379 14380 14381{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 14382$as_echo_n "checking if libtool supports shared libraries... " >&6; } 14383{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 14384$as_echo "$can_build_shared" >&6; } 14385 14386{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 14387$as_echo_n "checking whether to build shared libraries... " >&6; } 14388test "$can_build_shared" = "no" && enable_shared=no 14389 14390# On AIX, shared libraries and static libraries use the same namespace, and 14391# are all built from PIC. 14392case $host_os in 14393aix3*) 14394 test "$enable_shared" = yes && enable_static=no 14395 if test -n "$RANLIB"; then 14396 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14397 postinstall_cmds='$RANLIB $lib' 14398 fi 14399 ;; 14400aix[4-9]*) 14401 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14402 test "$enable_shared" = yes && enable_static=no 14403 fi 14404 ;; 14405esac 14406{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 14407$as_echo "$enable_shared" >&6; } 14408 14409{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 14410$as_echo_n "checking whether to build static libraries... " >&6; } 14411# Make sure either enable_shared or enable_static is yes. 14412test "$enable_shared" = yes || enable_static=yes 14413{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5 14414$as_echo "$enable_static" >&6; } 14415 14416GCC_F77="$G77" 14417LD_F77="$LD" 14418 14419lt_prog_compiler_wl_F77= 14420lt_prog_compiler_pic_F77= 14421lt_prog_compiler_static_F77= 14422 14423{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14424$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14425 14426 if test "$GCC" = yes; then 14427 lt_prog_compiler_wl_F77='-Wl,' 14428 lt_prog_compiler_static_F77='-static' 14429 14430 case $host_os in 14431 aix*) 14432 # All AIX code is PIC. 14433 if test "$host_cpu" = ia64; then 14434 # AIX 5 now supports IA64 processor 14435 lt_prog_compiler_static_F77='-Bstatic' 14436 fi 14437 ;; 14438 14439 amigaos*) 14440 # FIXME: we need at least 68020 code to build shared libraries, but 14441 # adding the `-m68020' flag to GCC prevents building anything better, 14442 # like `-m68040'. 14443 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14444 ;; 14445 14446 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14447 # PIC is the default for these OSes. 14448 ;; 14449 14450 mingw* | cygwin* | pw32* | os2*) 14451 # This hack is so that the source file can tell whether it is being 14452 # built for inclusion in a dll (and should export symbols for example). 14453 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14454 # (--disable-auto-import) libraries 14455 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14456 ;; 14457 14458 darwin* | rhapsody*) 14459 # PIC is the default on this platform 14460 # Common symbols not allowed in MH_DYLIB files 14461 lt_prog_compiler_pic_F77='-fno-common' 14462 ;; 14463 14464 interix[3-9]*) 14465 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14466 # Instead, we relocate shared libraries at runtime. 14467 ;; 14468 14469 msdosdjgpp*) 14470 # Just because we use GCC doesn't mean we suddenly get shared libraries 14471 # on systems that don't support them. 14472 lt_prog_compiler_can_build_shared_F77=no 14473 enable_shared=no 14474 ;; 14475 14476 sysv4*MP*) 14477 if test -d /usr/nec; then 14478 lt_prog_compiler_pic_F77=-Kconform_pic 14479 fi 14480 ;; 14481 14482 hpux*) 14483 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14484 # not for PA HP-UX. 14485 case $host_cpu in 14486 hppa*64*|ia64*) 14487 # +Z the default 14488 ;; 14489 *) 14490 lt_prog_compiler_pic_F77='-fPIC' 14491 ;; 14492 esac 14493 ;; 14494 14495 *) 14496 lt_prog_compiler_pic_F77='-fPIC' 14497 ;; 14498 esac 14499 else 14500 # PORTME Check for flag to pass linker flags through the system compiler. 14501 case $host_os in 14502 aix*) 14503 lt_prog_compiler_wl_F77='-Wl,' 14504 if test "$host_cpu" = ia64; then 14505 # AIX 5 now supports IA64 processor 14506 lt_prog_compiler_static_F77='-Bstatic' 14507 else 14508 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 14509 fi 14510 ;; 14511 darwin*) 14512 # PIC is the default on this platform 14513 # Common symbols not allowed in MH_DYLIB files 14514 case $cc_basename in 14515 xlc*) 14516 lt_prog_compiler_pic_F77='-qnocommon' 14517 lt_prog_compiler_wl_F77='-Wl,' 14518 ;; 14519 esac 14520 ;; 14521 14522 mingw* | cygwin* | pw32* | os2*) 14523 # This hack is so that the source file can tell whether it is being 14524 # built for inclusion in a dll (and should export symbols for example). 14525 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14526 ;; 14527 14528 hpux9* | hpux10* | hpux11*) 14529 lt_prog_compiler_wl_F77='-Wl,' 14530 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14531 # not for PA HP-UX. 14532 case $host_cpu in 14533 hppa*64*|ia64*) 14534 # +Z the default 14535 ;; 14536 *) 14537 lt_prog_compiler_pic_F77='+Z' 14538 ;; 14539 esac 14540 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14541 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 14542 ;; 14543 14544 irix5* | irix6* | nonstopux*) 14545 lt_prog_compiler_wl_F77='-Wl,' 14546 # PIC (with -KPIC) is the default. 14547 lt_prog_compiler_static_F77='-non_shared' 14548 ;; 14549 14550 newsos6) 14551 lt_prog_compiler_pic_F77='-KPIC' 14552 lt_prog_compiler_static_F77='-Bstatic' 14553 ;; 14554 14555 linux* | k*bsd*-gnu) 14556 case $cc_basename in 14557 icc* | ecc*) 14558 lt_prog_compiler_wl_F77='-Wl,' 14559 lt_prog_compiler_pic_F77='-KPIC' 14560 lt_prog_compiler_static_F77='-static' 14561 ;; 14562 pgcc* | pgf77* | pgf90* | pgf95*) 14563 # Portland Group compilers (*not* the Pentium gcc compiler, 14564 # which looks to be a dead project) 14565 lt_prog_compiler_wl_F77='-Wl,' 14566 lt_prog_compiler_pic_F77='-fpic' 14567 lt_prog_compiler_static_F77='-Bstatic' 14568 ;; 14569 ccc*) 14570 lt_prog_compiler_wl_F77='-Wl,' 14571 # All Alpha code is PIC. 14572 lt_prog_compiler_static_F77='-non_shared' 14573 ;; 14574 *) 14575 case `$CC -V 2>&1 | sed 5q` in 14576 *Sun\ C*) 14577 # Sun C 5.9 14578 lt_prog_compiler_pic_F77='-KPIC' 14579 lt_prog_compiler_static_F77='-Bstatic' 14580 lt_prog_compiler_wl_F77='-Wl,' 14581 ;; 14582 *Sun\ F*) 14583 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14584 lt_prog_compiler_pic_F77='-KPIC' 14585 lt_prog_compiler_static_F77='-Bstatic' 14586 lt_prog_compiler_wl_F77='' 14587 ;; 14588 esac 14589 ;; 14590 esac 14591 ;; 14592 14593 osf3* | osf4* | osf5*) 14594 lt_prog_compiler_wl_F77='-Wl,' 14595 # All OSF/1 code is PIC. 14596 lt_prog_compiler_static_F77='-non_shared' 14597 ;; 14598 14599 rdos*) 14600 lt_prog_compiler_static_F77='-non_shared' 14601 ;; 14602 14603 solaris*) 14604 lt_prog_compiler_pic_F77='-KPIC' 14605 lt_prog_compiler_static_F77='-Bstatic' 14606 case $cc_basename in 14607 f77* | f90* | f95*) 14608 lt_prog_compiler_wl_F77='-Qoption ld ';; 14609 *) 14610 lt_prog_compiler_wl_F77='-Wl,';; 14611 esac 14612 ;; 14613 14614 sunos4*) 14615 lt_prog_compiler_wl_F77='-Qoption ld ' 14616 lt_prog_compiler_pic_F77='-PIC' 14617 lt_prog_compiler_static_F77='-Bstatic' 14618 ;; 14619 14620 sysv4 | sysv4.2uw2* | sysv4.3*) 14621 lt_prog_compiler_wl_F77='-Wl,' 14622 lt_prog_compiler_pic_F77='-KPIC' 14623 lt_prog_compiler_static_F77='-Bstatic' 14624 ;; 14625 14626 sysv4*MP*) 14627 if test -d /usr/nec ;then 14628 lt_prog_compiler_pic_F77='-Kconform_pic' 14629 lt_prog_compiler_static_F77='-Bstatic' 14630 fi 14631 ;; 14632 14633 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14634 lt_prog_compiler_wl_F77='-Wl,' 14635 lt_prog_compiler_pic_F77='-KPIC' 14636 lt_prog_compiler_static_F77='-Bstatic' 14637 ;; 14638 14639 unicos*) 14640 lt_prog_compiler_wl_F77='-Wl,' 14641 lt_prog_compiler_can_build_shared_F77=no 14642 ;; 14643 14644 uts4*) 14645 lt_prog_compiler_pic_F77='-pic' 14646 lt_prog_compiler_static_F77='-Bstatic' 14647 ;; 14648 14649 *) 14650 lt_prog_compiler_can_build_shared_F77=no 14651 ;; 14652 esac 14653 fi 14654 14655{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14656$as_echo "$lt_prog_compiler_pic_F77" >&6; } 14657 14658# 14659# Check to make sure the PIC flag actually works. 14660# 14661if test -n "$lt_prog_compiler_pic_F77"; then 14662 14663{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14664$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; } 14665if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then 14666 $as_echo_n "(cached) " >&6 14667else 14668 lt_cv_prog_compiler_pic_works_F77=no 14669 ac_outfile=conftest.$ac_objext 14670 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14671 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14672 # Insert the option either (1) after the last *FLAGS variable, or 14673 # (2) before a word containing "conftest.", or (3) at the end. 14674 # Note that $ac_compile itself does not contain backslashes and begins 14675 # with a dollar sign (not a hyphen), so the echo should work correctly. 14676 # The option is referenced via a variable to avoid confusing sed. 14677 lt_compile=`echo "$ac_compile" | $SED \ 14678 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14679 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14680 -e 's:$: $lt_compiler_flag:'` 14681 (eval echo "\"\$as_me:14681: $lt_compile\"" >&5) 14682 (eval "$lt_compile" 2>conftest.err) 14683 ac_status=$? 14684 cat conftest.err >&5 14685 echo "$as_me:14685: \$? = $ac_status" >&5 14686 if (exit $ac_status) && test -s "$ac_outfile"; then 14687 # The compiler can only warn and ignore the option if not recognized 14688 # So say no if there are warnings other than the usual output. 14689 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14690 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14691 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14692 lt_cv_prog_compiler_pic_works_F77=yes 14693 fi 14694 fi 14695 $rm conftest* 14696 14697fi 14698{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5 14699$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; } 14700 14701if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then 14702 case $lt_prog_compiler_pic_F77 in 14703 "" | " "*) ;; 14704 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14705 esac 14706else 14707 lt_prog_compiler_pic_F77= 14708 lt_prog_compiler_can_build_shared_F77=no 14709fi 14710 14711fi 14712case $host_os in 14713 # For platforms which do not support PIC, -DPIC is meaningless: 14714 *djgpp*) 14715 lt_prog_compiler_pic_F77= 14716 ;; 14717 *) 14718 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14719 ;; 14720esac 14721 14722# 14723# Check to make sure the static flag actually works. 14724# 14725wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14726{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14727$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14728if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then 14729 $as_echo_n "(cached) " >&6 14730else 14731 lt_cv_prog_compiler_static_works_F77=no 14732 save_LDFLAGS="$LDFLAGS" 14733 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14734 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14735 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14736 # The linker can only warn and ignore the option if not recognized 14737 # So say no if there are warnings 14738 if test -s conftest.err; then 14739 # Append any errors to the config.log. 14740 cat conftest.err 1>&5 14741 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14742 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14743 if diff conftest.exp conftest.er2 >/dev/null; then 14744 lt_cv_prog_compiler_static_works_F77=yes 14745 fi 14746 else 14747 lt_cv_prog_compiler_static_works_F77=yes 14748 fi 14749 fi 14750 $rm -r conftest* 14751 LDFLAGS="$save_LDFLAGS" 14752 14753fi 14754{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5 14755$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; } 14756 14757if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then 14758 : 14759else 14760 lt_prog_compiler_static_F77= 14761fi 14762 14763 14764{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14765$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14766if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14767 $as_echo_n "(cached) " >&6 14768else 14769 lt_cv_prog_compiler_c_o_F77=no 14770 $rm -r conftest 2>/dev/null 14771 mkdir conftest 14772 cd conftest 14773 mkdir out 14774 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14775 14776 lt_compiler_flag="-o out/conftest2.$ac_objext" 14777 # Insert the option either (1) after the last *FLAGS variable, or 14778 # (2) before a word containing "conftest.", or (3) at the end. 14779 # Note that $ac_compile itself does not contain backslashes and begins 14780 # with a dollar sign (not a hyphen), so the echo should work correctly. 14781 lt_compile=`echo "$ac_compile" | $SED \ 14782 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14783 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14784 -e 's:$: $lt_compiler_flag:'` 14785 (eval echo "\"\$as_me:14785: $lt_compile\"" >&5) 14786 (eval "$lt_compile" 2>out/conftest.err) 14787 ac_status=$? 14788 cat out/conftest.err >&5 14789 echo "$as_me:14789: \$? = $ac_status" >&5 14790 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14791 then 14792 # The compiler can only warn and ignore the option if not recognized 14793 # So say no if there are warnings 14794 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14795 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14796 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14797 lt_cv_prog_compiler_c_o_F77=yes 14798 fi 14799 fi 14800 chmod u+w . 2>&5 14801 $rm conftest* 14802 # SGI C++ compiler will create directory out/ii_files/ for 14803 # template instantiation 14804 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14805 $rm out/* && rmdir out 14806 cd .. 14807 rmdir conftest 14808 $rm conftest* 14809 14810fi 14811{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14812$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; } 14813 14814 14815hard_links="nottested" 14816if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14817 # do not overwrite the value of need_locks provided by the user 14818 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14819$as_echo_n "checking if we can lock with hard links... " >&6; } 14820 hard_links=yes 14821 $rm conftest* 14822 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14823 touch conftest.a 14824 ln conftest.a conftest.b 2>&5 || hard_links=no 14825 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14826 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 14827$as_echo "$hard_links" >&6; } 14828 if test "$hard_links" = no; then 14829 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14830$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14831 need_locks=warn 14832 fi 14833else 14834 need_locks=no 14835fi 14836 14837{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14838$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14839 14840 runpath_var= 14841 allow_undefined_flag_F77= 14842 enable_shared_with_static_runtimes_F77=no 14843 archive_cmds_F77= 14844 archive_expsym_cmds_F77= 14845 old_archive_From_new_cmds_F77= 14846 old_archive_from_expsyms_cmds_F77= 14847 export_dynamic_flag_spec_F77= 14848 whole_archive_flag_spec_F77= 14849 thread_safe_flag_spec_F77= 14850 hardcode_libdir_flag_spec_F77= 14851 hardcode_libdir_flag_spec_ld_F77= 14852 hardcode_libdir_separator_F77= 14853 hardcode_direct_F77=no 14854 hardcode_minus_L_F77=no 14855 hardcode_shlibpath_var_F77=unsupported 14856 link_all_deplibs_F77=unknown 14857 hardcode_automatic_F77=no 14858 module_cmds_F77= 14859 module_expsym_cmds_F77= 14860 always_export_symbols_F77=no 14861 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14862 # include_expsyms should be a list of space-separated symbols to be *always* 14863 # included in the symbol list 14864 include_expsyms_F77= 14865 # exclude_expsyms can be an extended regexp of symbols to exclude 14866 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14867 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14868 # as well as any symbol that contains `d'. 14869 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14870 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14871 # platforms (ab)use it in PIC code, but their linkers get confused if 14872 # the symbol is explicitly referenced. Since portable code cannot 14873 # rely on this symbol name, it's probably fine to never include it in 14874 # preloaded symbol tables. 14875 # Exclude shared library initialization/finalization symbols. 14876 extract_expsyms_cmds= 14877 # Just being paranoid about ensuring that cc_basename is set. 14878 for cc_temp in $compiler""; do 14879 case $cc_temp in 14880 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14881 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14882 \-*) ;; 14883 *) break;; 14884 esac 14885done 14886cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14887 14888 case $host_os in 14889 cygwin* | mingw* | pw32*) 14890 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14891 # When not using gcc, we currently assume that we are using 14892 # Microsoft Visual C++. 14893 if test "$GCC" != yes; then 14894 with_gnu_ld=no 14895 fi 14896 ;; 14897 interix*) 14898 # we just hope/assume this is gcc and not c89 (= MSVC++) 14899 with_gnu_ld=yes 14900 ;; 14901 openbsd*) 14902 with_gnu_ld=no 14903 ;; 14904 esac 14905 14906 ld_shlibs_F77=yes 14907 if test "$with_gnu_ld" = yes; then 14908 # If archive_cmds runs LD, not CC, wlarc should be empty 14909 wlarc='${wl}' 14910 14911 # Set some defaults for GNU ld with shared library support. These 14912 # are reset later if shared libraries are not supported. Putting them 14913 # here allows them to be overridden if necessary. 14914 runpath_var=LD_RUN_PATH 14915 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14916 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14917 # ancient GNU ld didn't support --whole-archive et. al. 14918 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14919 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14920 else 14921 whole_archive_flag_spec_F77= 14922 fi 14923 supports_anon_versioning=no 14924 case `$LD -v 2>/dev/null` in 14925 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14926 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14927 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14928 *\ 2.11.*) ;; # other 2.11 versions 14929 *) supports_anon_versioning=yes ;; 14930 esac 14931 14932 # See if GNU ld supports shared libraries. 14933 case $host_os in 14934 aix[3-9]*) 14935 # On AIX/PPC, the GNU linker is very broken 14936 if test "$host_cpu" != ia64; then 14937 ld_shlibs_F77=no 14938 cat <<EOF 1>&2 14939 14940*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14941*** to be unable to reliably create shared libraries on AIX. 14942*** Therefore, libtool is disabling shared libraries support. If you 14943*** really care for shared libraries, you may want to modify your PATH 14944*** so that a non-GNU linker is found, and then restart. 14945 14946EOF 14947 fi 14948 ;; 14949 14950 amigaos*) 14951 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)' 14952 hardcode_libdir_flag_spec_F77='-L$libdir' 14953 hardcode_minus_L_F77=yes 14954 14955 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14956 # that the semantics of dynamic libraries on AmigaOS, at least up 14957 # to version 4, is to share data among multiple programs linked 14958 # with the same dynamic library. Since this doesn't match the 14959 # behavior of shared libraries on other platforms, we can't use 14960 # them. 14961 ld_shlibs_F77=no 14962 ;; 14963 14964 beos*) 14965 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14966 allow_undefined_flag_F77=unsupported 14967 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14968 # support --undefined. This deserves some investigation. FIXME 14969 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14970 else 14971 ld_shlibs_F77=no 14972 fi 14973 ;; 14974 14975 cygwin* | mingw* | pw32*) 14976 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14977 # as there is no search path for DLLs. 14978 hardcode_libdir_flag_spec_F77='-L$libdir' 14979 allow_undefined_flag_F77=unsupported 14980 always_export_symbols_F77=no 14981 enable_shared_with_static_runtimes_F77=yes 14982 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 14983 14984 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14985 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14986 # If the export-symbols file already is a .def file (1st line 14987 # is EXPORTS), use it as is; otherwise, prepend... 14988 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14989 cp $export_symbols $output_objdir/$soname.def; 14990 else 14991 echo EXPORTS > $output_objdir/$soname.def; 14992 cat $export_symbols >> $output_objdir/$soname.def; 14993 fi~ 14994 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14995 else 14996 ld_shlibs_F77=no 14997 fi 14998 ;; 14999 15000 interix[3-9]*) 15001 hardcode_direct_F77=no 15002 hardcode_shlibpath_var_F77=no 15003 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15004 export_dynamic_flag_spec_F77='${wl}-E' 15005 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15006 # Instead, shared libraries are loaded at an image base (0x10000000 by 15007 # default) and relocated if they conflict, which is a slow very memory 15008 # consuming and fragmenting process. To avoid this, we pick a random, 15009 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15010 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15011 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' 15012 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' 15013 ;; 15014 15015 gnu* | linux* | k*bsd*-gnu) 15016 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15017 tmp_addflag= 15018 case $cc_basename,$host_cpu in 15019 pgcc*) # Portland Group C compiler 15020 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' 15021 tmp_addflag=' $pic_flag' 15022 ;; 15023 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 15024 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' 15025 tmp_addflag=' $pic_flag -Mnomain' ;; 15026 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 15027 tmp_addflag=' -i_dynamic' ;; 15028 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 15029 tmp_addflag=' -i_dynamic -nofor_main' ;; 15030 ifc* | ifort*) # Intel Fortran compiler 15031 tmp_addflag=' -nofor_main' ;; 15032 esac 15033 case `$CC -V 2>&1 | sed 5q` in 15034 *Sun\ C*) # Sun C 5.9 15035 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' 15036 tmp_sharedflag='-G' ;; 15037 *Sun\ F*) # Sun Fortran 8.3 15038 tmp_sharedflag='-G' ;; 15039 *) 15040 tmp_sharedflag='-shared' ;; 15041 esac 15042 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15043 15044 if test $supports_anon_versioning = yes; then 15045 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 15046 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15047 $echo "local: *; };" >> $output_objdir/$libname.ver~ 15048 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 15049 fi 15050 else 15051 ld_shlibs_F77=no 15052 fi 15053 ;; 15054 15055 netbsd*) 15056 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15057 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15058 wlarc= 15059 else 15060 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15061 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15062 fi 15063 ;; 15064 15065 solaris*) 15066 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 15067 ld_shlibs_F77=no 15068 cat <<EOF 1>&2 15069 15070*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15071*** create shared libraries on Solaris systems. Therefore, libtool 15072*** is disabling shared libraries support. We urge you to upgrade GNU 15073*** binutils to release 2.9.1 or newer. Another option is to modify 15074*** your PATH or compiler configuration so that the native linker is 15075*** used, and then restart. 15076 15077EOF 15078 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15079 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15080 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15081 else 15082 ld_shlibs_F77=no 15083 fi 15084 ;; 15085 15086 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15087 case `$LD -v 2>&1` in 15088 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15089 ld_shlibs_F77=no 15090 cat <<_LT_EOF 1>&2 15091 15092*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 15093*** reliably create shared libraries on SCO systems. Therefore, libtool 15094*** is disabling shared libraries support. We urge you to upgrade GNU 15095*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15096*** your PATH or compiler configuration so that the native linker is 15097*** used, and then restart. 15098 15099_LT_EOF 15100 ;; 15101 *) 15102 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15103 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 15104 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 15105 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 15106 else 15107 ld_shlibs_F77=no 15108 fi 15109 ;; 15110 esac 15111 ;; 15112 15113 sunos4*) 15114 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15115 wlarc= 15116 hardcode_direct_F77=yes 15117 hardcode_shlibpath_var_F77=no 15118 ;; 15119 15120 *) 15121 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15122 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15123 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15124 else 15125 ld_shlibs_F77=no 15126 fi 15127 ;; 15128 esac 15129 15130 if test "$ld_shlibs_F77" = no; then 15131 runpath_var= 15132 hardcode_libdir_flag_spec_F77= 15133 export_dynamic_flag_spec_F77= 15134 whole_archive_flag_spec_F77= 15135 fi 15136 else 15137 # PORTME fill in a description of your system's linker (not GNU ld) 15138 case $host_os in 15139 aix3*) 15140 allow_undefined_flag_F77=unsupported 15141 always_export_symbols_F77=yes 15142 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' 15143 # Note: this linker hardcodes the directories in LIBPATH if there 15144 # are no directories specified by -L. 15145 hardcode_minus_L_F77=yes 15146 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 15147 # Neither direct hardcoding nor static linking is supported with a 15148 # broken collect2. 15149 hardcode_direct_F77=unsupported 15150 fi 15151 ;; 15152 15153 aix[4-9]*) 15154 if test "$host_cpu" = ia64; then 15155 # On IA64, the linker does run time linking by default, so we don't 15156 # have to do anything special. 15157 aix_use_runtimelinking=no 15158 exp_sym_flag='-Bexport' 15159 no_entry_flag="" 15160 else 15161 # If we're using GNU nm, then we don't want the "-C" option. 15162 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15163 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 15164 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' 15165 else 15166 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' 15167 fi 15168 aix_use_runtimelinking=no 15169 15170 # Test if we are trying to use run time linking or normal 15171 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15172 # need to do runtime linking. 15173 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15174 for ld_flag in $LDFLAGS; do 15175 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15176 aix_use_runtimelinking=yes 15177 break 15178 fi 15179 done 15180 ;; 15181 esac 15182 15183 exp_sym_flag='-bexport' 15184 no_entry_flag='-bnoentry' 15185 fi 15186 15187 # When large executables or shared objects are built, AIX ld can 15188 # have problems creating the table of contents. If linking a library 15189 # or program results in "error TOC overflow" add -mminimal-toc to 15190 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15191 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15192 15193 archive_cmds_F77='' 15194 hardcode_direct_F77=yes 15195 hardcode_libdir_separator_F77=':' 15196 link_all_deplibs_F77=yes 15197 15198 if test "$GCC" = yes; then 15199 case $host_os in aix4.[012]|aix4.[012].*) 15200 # We only want to do this on AIX 4.2 and lower, the check 15201 # below for broken collect2 doesn't work under 4.3+ 15202 collect2name=`${CC} -print-prog-name=collect2` 15203 if test -f "$collect2name" && \ 15204 strings "$collect2name" | grep resolve_lib_name >/dev/null 15205 then 15206 # We have reworked collect2 15207 : 15208 else 15209 # We have old collect2 15210 hardcode_direct_F77=unsupported 15211 # It fails to find uninstalled libraries when the uninstalled 15212 # path is not listed in the libpath. Setting hardcode_minus_L 15213 # to unsupported forces relinking 15214 hardcode_minus_L_F77=yes 15215 hardcode_libdir_flag_spec_F77='-L$libdir' 15216 hardcode_libdir_separator_F77= 15217 fi 15218 ;; 15219 esac 15220 shared_flag='-shared' 15221 if test "$aix_use_runtimelinking" = yes; then 15222 shared_flag="$shared_flag "'${wl}-G' 15223 fi 15224 else 15225 # not using gcc 15226 if test "$host_cpu" = ia64; then 15227 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15228 # chokes on -Wl,-G. The following line is correct: 15229 shared_flag='-G' 15230 else 15231 if test "$aix_use_runtimelinking" = yes; then 15232 shared_flag='${wl}-G' 15233 else 15234 shared_flag='${wl}-bM:SRE' 15235 fi 15236 fi 15237 fi 15238 15239 # It seems that -bexpall does not export symbols beginning with 15240 # underscore (_), so it is better to generate a list of symbols to export. 15241 always_export_symbols_F77=yes 15242 if test "$aix_use_runtimelinking" = yes; then 15243 # Warning - without using the other runtime loading flags (-brtl), 15244 # -berok will link without error, but may produce a broken library. 15245 allow_undefined_flag_F77='-berok' 15246 # Determine the default libpath from the value encoded in an empty executable. 15247 cat >conftest.$ac_ext <<_ACEOF 15248 program main 15249 15250 end 15251_ACEOF 15252rm -f conftest.$ac_objext conftest$ac_exeext 15253if { (ac_try="$ac_link" 15254case "(($ac_try" in 15255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15256 *) ac_try_echo=$ac_try;; 15257esac 15258eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15259$as_echo "$ac_try_echo") >&5 15260 (eval "$ac_link") 2>conftest.er1 15261 ac_status=$? 15262 grep -v '^ *+' conftest.er1 >conftest.err 15263 rm -f conftest.er1 15264 cat conftest.err >&5 15265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15266 (exit $ac_status); } && { 15267 test -z "$ac_f77_werror_flag" || 15268 test ! -s conftest.err 15269 } && test -s conftest$ac_exeext && { 15270 test "$cross_compiling" = yes || 15271 $as_test_x conftest$ac_exeext 15272 }; then 15273 15274lt_aix_libpath_sed=' 15275 /Import File Strings/,/^$/ { 15276 /^0/ { 15277 s/^0 *\(.*\)$/\1/ 15278 p 15279 } 15280 }' 15281aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15282# Check for a 64-bit object if we didn't find anything. 15283if test -z "$aix_libpath"; then 15284 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15285fi 15286else 15287 $as_echo "$as_me: failed program was:" >&5 15288sed 's/^/| /' conftest.$ac_ext >&5 15289 15290 15291fi 15292 15293rm -rf conftest.dSYM 15294rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15295 conftest$ac_exeext conftest.$ac_ext 15296if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15297 15298 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15299 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" 15300 else 15301 if test "$host_cpu" = ia64; then 15302 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 15303 allow_undefined_flag_F77="-z nodefs" 15304 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" 15305 else 15306 # Determine the default libpath from the value encoded in an empty executable. 15307 cat >conftest.$ac_ext <<_ACEOF 15308 program main 15309 15310 end 15311_ACEOF 15312rm -f conftest.$ac_objext conftest$ac_exeext 15313if { (ac_try="$ac_link" 15314case "(($ac_try" in 15315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15316 *) ac_try_echo=$ac_try;; 15317esac 15318eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15319$as_echo "$ac_try_echo") >&5 15320 (eval "$ac_link") 2>conftest.er1 15321 ac_status=$? 15322 grep -v '^ *+' conftest.er1 >conftest.err 15323 rm -f conftest.er1 15324 cat conftest.err >&5 15325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15326 (exit $ac_status); } && { 15327 test -z "$ac_f77_werror_flag" || 15328 test ! -s conftest.err 15329 } && test -s conftest$ac_exeext && { 15330 test "$cross_compiling" = yes || 15331 $as_test_x conftest$ac_exeext 15332 }; then 15333 15334lt_aix_libpath_sed=' 15335 /Import File Strings/,/^$/ { 15336 /^0/ { 15337 s/^0 *\(.*\)$/\1/ 15338 p 15339 } 15340 }' 15341aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15342# Check for a 64-bit object if we didn't find anything. 15343if test -z "$aix_libpath"; then 15344 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15345fi 15346else 15347 $as_echo "$as_me: failed program was:" >&5 15348sed 's/^/| /' conftest.$ac_ext >&5 15349 15350 15351fi 15352 15353rm -rf conftest.dSYM 15354rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15355 conftest$ac_exeext conftest.$ac_ext 15356if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15357 15358 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15359 # Warning - without using the other run time loading flags, 15360 # -berok will link without error, but may produce a broken library. 15361 no_undefined_flag_F77=' ${wl}-bernotok' 15362 allow_undefined_flag_F77=' ${wl}-berok' 15363 # Exported symbols can be pulled into shared objects from archives 15364 whole_archive_flag_spec_F77='$convenience' 15365 archive_cmds_need_lc_F77=yes 15366 # This is similar to how AIX traditionally builds its shared libraries. 15367 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' 15368 fi 15369 fi 15370 ;; 15371 15372 amigaos*) 15373 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)' 15374 hardcode_libdir_flag_spec_F77='-L$libdir' 15375 hardcode_minus_L_F77=yes 15376 # see comment about different semantics on the GNU ld section 15377 ld_shlibs_F77=no 15378 ;; 15379 15380 bsdi[45]*) 15381 export_dynamic_flag_spec_F77=-rdynamic 15382 ;; 15383 15384 cygwin* | mingw* | pw32*) 15385 # When not using gcc, we currently assume that we are using 15386 # Microsoft Visual C++. 15387 # hardcode_libdir_flag_spec is actually meaningless, as there is 15388 # no search path for DLLs. 15389 hardcode_libdir_flag_spec_F77=' ' 15390 allow_undefined_flag_F77=unsupported 15391 # Tell ltmain to make .lib files, not .a files. 15392 libext=lib 15393 # Tell ltmain to make .dll files, not .so files. 15394 shrext_cmds=".dll" 15395 # FIXME: Setting linknames here is a bad hack. 15396 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15397 # The linker will automatically build a .lib file if we build a DLL. 15398 old_archive_From_new_cmds_F77='true' 15399 # FIXME: Should let the user specify the lib program. 15400 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' 15401 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 15402 enable_shared_with_static_runtimes_F77=yes 15403 ;; 15404 15405 darwin* | rhapsody*) 15406 case $host_os in 15407 rhapsody* | darwin1.[012]) 15408 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 15409 ;; 15410 *) # Darwin 1.3 on 15411 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15412 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15413 else 15414 case ${MACOSX_DEPLOYMENT_TARGET} in 15415 10.[012]) 15416 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15417 ;; 15418 10.*) 15419 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 15420 ;; 15421 esac 15422 fi 15423 ;; 15424 esac 15425 archive_cmds_need_lc_F77=no 15426 hardcode_direct_F77=no 15427 hardcode_automatic_F77=yes 15428 hardcode_shlibpath_var_F77=unsupported 15429 whole_archive_flag_spec_F77='' 15430 link_all_deplibs_F77=yes 15431 if test "$GCC" = yes ; then 15432 output_verbose_link_cmd='echo' 15433 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}" 15434 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 15435 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}" 15436 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}" 15437 else 15438 case $cc_basename in 15439 xlc*) 15440 output_verbose_link_cmd='echo' 15441 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 15442 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15443 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15444 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}' 15445 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}' 15446 ;; 15447 *) 15448 ld_shlibs_F77=no 15449 ;; 15450 esac 15451 fi 15452 ;; 15453 15454 dgux*) 15455 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15456 hardcode_libdir_flag_spec_F77='-L$libdir' 15457 hardcode_shlibpath_var_F77=no 15458 ;; 15459 15460 freebsd1*) 15461 ld_shlibs_F77=no 15462 ;; 15463 15464 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15465 # support. Future versions do this automatically, but an explicit c++rt0.o 15466 # does not break anything, and helps significantly (at the cost of a little 15467 # extra space). 15468 freebsd2.2*) 15469 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15470 hardcode_libdir_flag_spec_F77='-R$libdir' 15471 hardcode_direct_F77=yes 15472 hardcode_shlibpath_var_F77=no 15473 ;; 15474 15475 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15476 freebsd2*) 15477 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15478 hardcode_direct_F77=yes 15479 hardcode_minus_L_F77=yes 15480 hardcode_shlibpath_var_F77=no 15481 ;; 15482 15483 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15484 freebsd* | dragonfly*) 15485 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15486 hardcode_libdir_flag_spec_F77='-R$libdir' 15487 hardcode_direct_F77=yes 15488 hardcode_shlibpath_var_F77=no 15489 ;; 15490 15491 hpux9*) 15492 if test "$GCC" = yes; then 15493 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' 15494 else 15495 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' 15496 fi 15497 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15498 hardcode_libdir_separator_F77=: 15499 hardcode_direct_F77=yes 15500 15501 # hardcode_minus_L: Not really in the search PATH, 15502 # but as the default location of the library. 15503 hardcode_minus_L_F77=yes 15504 export_dynamic_flag_spec_F77='${wl}-E' 15505 ;; 15506 15507 hpux10*) 15508 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15509 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15510 else 15511 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15512 fi 15513 if test "$with_gnu_ld" = no; then 15514 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15515 hardcode_libdir_separator_F77=: 15516 15517 hardcode_direct_F77=yes 15518 export_dynamic_flag_spec_F77='${wl}-E' 15519 15520 # hardcode_minus_L: Not really in the search PATH, 15521 # but as the default location of the library. 15522 hardcode_minus_L_F77=yes 15523 fi 15524 ;; 15525 15526 hpux11*) 15527 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15528 case $host_cpu in 15529 hppa*64*) 15530 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15531 ;; 15532 ia64*) 15533 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15534 ;; 15535 *) 15536 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15537 ;; 15538 esac 15539 else 15540 case $host_cpu in 15541 hppa*64*) 15542 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15543 ;; 15544 ia64*) 15545 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15546 ;; 15547 *) 15548 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15549 ;; 15550 esac 15551 fi 15552 if test "$with_gnu_ld" = no; then 15553 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15554 hardcode_libdir_separator_F77=: 15555 15556 case $host_cpu in 15557 hppa*64*|ia64*) 15558 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15559 hardcode_direct_F77=no 15560 hardcode_shlibpath_var_F77=no 15561 ;; 15562 *) 15563 hardcode_direct_F77=yes 15564 export_dynamic_flag_spec_F77='${wl}-E' 15565 15566 # hardcode_minus_L: Not really in the search PATH, 15567 # but as the default location of the library. 15568 hardcode_minus_L_F77=yes 15569 ;; 15570 esac 15571 fi 15572 ;; 15573 15574 irix5* | irix6* | nonstopux*) 15575 if test "$GCC" = yes; then 15576 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' 15577 else 15578 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' 15579 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 15580 fi 15581 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15582 hardcode_libdir_separator_F77=: 15583 link_all_deplibs_F77=yes 15584 ;; 15585 15586 netbsd*) 15587 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15588 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15589 else 15590 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15591 fi 15592 hardcode_libdir_flag_spec_F77='-R$libdir' 15593 hardcode_direct_F77=yes 15594 hardcode_shlibpath_var_F77=no 15595 ;; 15596 15597 newsos6) 15598 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15599 hardcode_direct_F77=yes 15600 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15601 hardcode_libdir_separator_F77=: 15602 hardcode_shlibpath_var_F77=no 15603 ;; 15604 15605 openbsd*) 15606 if test -f /usr/libexec/ld.so; then 15607 hardcode_direct_F77=yes 15608 hardcode_shlibpath_var_F77=no 15609 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15610 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15611 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15612 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15613 export_dynamic_flag_spec_F77='${wl}-E' 15614 else 15615 case $host_os in 15616 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15617 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15618 hardcode_libdir_flag_spec_F77='-R$libdir' 15619 ;; 15620 *) 15621 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15622 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15623 ;; 15624 esac 15625 fi 15626 else 15627 ld_shlibs_F77=no 15628 fi 15629 ;; 15630 15631 os2*) 15632 hardcode_libdir_flag_spec_F77='-L$libdir' 15633 hardcode_minus_L_F77=yes 15634 allow_undefined_flag_F77=unsupported 15635 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' 15636 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15637 ;; 15638 15639 osf3*) 15640 if test "$GCC" = yes; then 15641 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15642 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' 15643 else 15644 allow_undefined_flag_F77=' -expect_unresolved \*' 15645 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' 15646 fi 15647 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15648 hardcode_libdir_separator_F77=: 15649 ;; 15650 15651 osf4* | osf5*) # as osf3* with the addition of -msym flag 15652 if test "$GCC" = yes; then 15653 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15654 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' 15655 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15656 else 15657 allow_undefined_flag_F77=' -expect_unresolved \*' 15658 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' 15659 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~ 15660 $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' 15661 15662 # Both c and cxx compiler support -rpath directly 15663 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15664 fi 15665 hardcode_libdir_separator_F77=: 15666 ;; 15667 15668 solaris*) 15669 no_undefined_flag_F77=' -z text' 15670 if test "$GCC" = yes; then 15671 wlarc='${wl}' 15672 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15673 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15674 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15675 else 15676 wlarc='' 15677 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15678 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15679 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15680 fi 15681 hardcode_libdir_flag_spec_F77='-R$libdir' 15682 hardcode_shlibpath_var_F77=no 15683 case $host_os in 15684 solaris2.[0-5] | solaris2.[0-5].*) ;; 15685 *) 15686 # The compiler driver will combine and reorder linker options, 15687 # but understands `-z linker_flag'. GCC discards it without `$wl', 15688 # but is careful enough not to reorder. 15689 # Supported since Solaris 2.6 (maybe 2.5.1?) 15690 if test "$GCC" = yes; then 15691 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 15692 else 15693 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' 15694 fi 15695 ;; 15696 esac 15697 link_all_deplibs_F77=yes 15698 ;; 15699 15700 sunos4*) 15701 if test "x$host_vendor" = xsequent; then 15702 # Use $CC to link under sequent, because it throws in some extra .o 15703 # files that make .init and .fini sections work. 15704 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15705 else 15706 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15707 fi 15708 hardcode_libdir_flag_spec_F77='-L$libdir' 15709 hardcode_direct_F77=yes 15710 hardcode_minus_L_F77=yes 15711 hardcode_shlibpath_var_F77=no 15712 ;; 15713 15714 sysv4) 15715 case $host_vendor in 15716 sni) 15717 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15718 hardcode_direct_F77=yes # is this really true??? 15719 ;; 15720 siemens) 15721 ## LD is ld it makes a PLAMLIB 15722 ## CC just makes a GrossModule. 15723 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15724 reload_cmds_F77='$CC -r -o $output$reload_objs' 15725 hardcode_direct_F77=no 15726 ;; 15727 motorola) 15728 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15729 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15730 ;; 15731 esac 15732 runpath_var='LD_RUN_PATH' 15733 hardcode_shlibpath_var_F77=no 15734 ;; 15735 15736 sysv4.3*) 15737 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15738 hardcode_shlibpath_var_F77=no 15739 export_dynamic_flag_spec_F77='-Bexport' 15740 ;; 15741 15742 sysv4*MP*) 15743 if test -d /usr/nec; then 15744 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15745 hardcode_shlibpath_var_F77=no 15746 runpath_var=LD_RUN_PATH 15747 hardcode_runpath_var=yes 15748 ld_shlibs_F77=yes 15749 fi 15750 ;; 15751 15752 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15753 no_undefined_flag_F77='${wl}-z,text' 15754 archive_cmds_need_lc_F77=no 15755 hardcode_shlibpath_var_F77=no 15756 runpath_var='LD_RUN_PATH' 15757 15758 if test "$GCC" = yes; then 15759 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15760 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15761 else 15762 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15763 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15764 fi 15765 ;; 15766 15767 sysv5* | sco3.2v5* | sco5v6*) 15768 # Note: We can NOT use -z defs as we might desire, because we do not 15769 # link with -lc, and that would cause any symbols used from libc to 15770 # always be unresolved, which means just about no library would 15771 # ever link correctly. If we're not using GNU ld we use -z text 15772 # though, which does catch some bad symbols but isn't as heavy-handed 15773 # as -z defs. 15774 no_undefined_flag_F77='${wl}-z,text' 15775 allow_undefined_flag_F77='${wl}-z,nodefs' 15776 archive_cmds_need_lc_F77=no 15777 hardcode_shlibpath_var_F77=no 15778 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15779 hardcode_libdir_separator_F77=':' 15780 link_all_deplibs_F77=yes 15781 export_dynamic_flag_spec_F77='${wl}-Bexport' 15782 runpath_var='LD_RUN_PATH' 15783 15784 if test "$GCC" = yes; then 15785 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15786 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15787 else 15788 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15789 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15790 fi 15791 ;; 15792 15793 uts4*) 15794 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15795 hardcode_libdir_flag_spec_F77='-L$libdir' 15796 hardcode_shlibpath_var_F77=no 15797 ;; 15798 15799 *) 15800 ld_shlibs_F77=no 15801 ;; 15802 esac 15803 fi 15804 15805{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15806$as_echo "$ld_shlibs_F77" >&6; } 15807test "$ld_shlibs_F77" = no && can_build_shared=no 15808 15809# 15810# Do we need to explicitly link libc? 15811# 15812case "x$archive_cmds_need_lc_F77" in 15813x|xyes) 15814 # Assume -lc should be added 15815 archive_cmds_need_lc_F77=yes 15816 15817 if test "$enable_shared" = yes && test "$GCC" = yes; then 15818 case $archive_cmds_F77 in 15819 *'~'*) 15820 # FIXME: we may have to deal with multi-command sequences. 15821 ;; 15822 '$CC '*) 15823 # Test whether the compiler implicitly links with -lc since on some 15824 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15825 # to ld, don't add -lc before -lgcc. 15826 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15827$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15828 $rm conftest* 15829 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15830 15831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15832 (eval $ac_compile) 2>&5 15833 ac_status=$? 15834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15835 (exit $ac_status); } 2>conftest.err; then 15836 soname=conftest 15837 lib=conftest 15838 libobjs=conftest.$ac_objext 15839 deplibs= 15840 wl=$lt_prog_compiler_wl_F77 15841 pic_flag=$lt_prog_compiler_pic_F77 15842 compiler_flags=-v 15843 linker_flags=-v 15844 verstring= 15845 output_objdir=. 15846 libname=conftest 15847 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15848 allow_undefined_flag_F77= 15849 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15850 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15851 ac_status=$? 15852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15853 (exit $ac_status); } 15854 then 15855 archive_cmds_need_lc_F77=no 15856 else 15857 archive_cmds_need_lc_F77=yes 15858 fi 15859 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15860 else 15861 cat conftest.err 1>&5 15862 fi 15863 $rm conftest* 15864 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15865$as_echo "$archive_cmds_need_lc_F77" >&6; } 15866 ;; 15867 esac 15868 fi 15869 ;; 15870esac 15871 15872{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15873$as_echo_n "checking dynamic linker characteristics... " >&6; } 15874library_names_spec= 15875libname_spec='lib$name' 15876soname_spec= 15877shrext_cmds=".so" 15878postinstall_cmds= 15879postuninstall_cmds= 15880finish_cmds= 15881finish_eval= 15882shlibpath_var= 15883shlibpath_overrides_runpath=unknown 15884version_type=none 15885dynamic_linker="$host_os ld.so" 15886sys_lib_dlsearch_path_spec="/lib /usr/lib" 15887 15888need_lib_prefix=unknown 15889hardcode_into_libs=no 15890 15891# when you set need_version to no, make sure it does not cause -set_version 15892# flags to be left without arguments 15893need_version=unknown 15894 15895case $host_os in 15896aix3*) 15897 version_type=linux 15898 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15899 shlibpath_var=LIBPATH 15900 15901 # AIX 3 has no versioning support, so we append a major version to the name. 15902 soname_spec='${libname}${release}${shared_ext}$major' 15903 ;; 15904 15905aix[4-9]*) 15906 version_type=linux 15907 need_lib_prefix=no 15908 need_version=no 15909 hardcode_into_libs=yes 15910 if test "$host_cpu" = ia64; then 15911 # AIX 5 supports IA64 15912 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15913 shlibpath_var=LD_LIBRARY_PATH 15914 else 15915 # With GCC up to 2.95.x, collect2 would create an import file 15916 # for dependence libraries. The import file would start with 15917 # the line `#! .'. This would cause the generated library to 15918 # depend on `.', always an invalid library. This was fixed in 15919 # development snapshots of GCC prior to 3.0. 15920 case $host_os in 15921 aix4 | aix4.[01] | aix4.[01].*) 15922 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15923 echo ' yes ' 15924 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15925 : 15926 else 15927 can_build_shared=no 15928 fi 15929 ;; 15930 esac 15931 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15932 # soname into executable. Probably we can add versioning support to 15933 # collect2, so additional links can be useful in future. 15934 if test "$aix_use_runtimelinking" = yes; then 15935 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15936 # instead of lib<name>.a to let people know that these are not 15937 # typical AIX shared libraries. 15938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15939 else 15940 # We preserve .a as extension for shared libraries through AIX4.2 15941 # and later when we are not doing run time linking. 15942 library_names_spec='${libname}${release}.a $libname.a' 15943 soname_spec='${libname}${release}${shared_ext}$major' 15944 fi 15945 shlibpath_var=LIBPATH 15946 fi 15947 ;; 15948 15949amigaos*) 15950 library_names_spec='$libname.ixlibrary $libname.a' 15951 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15952 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' 15953 ;; 15954 15955beos*) 15956 library_names_spec='${libname}${shared_ext}' 15957 dynamic_linker="$host_os ld.so" 15958 shlibpath_var=LIBRARY_PATH 15959 ;; 15960 15961bsdi[45]*) 15962 version_type=linux 15963 need_version=no 15964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15965 soname_spec='${libname}${release}${shared_ext}$major' 15966 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15967 shlibpath_var=LD_LIBRARY_PATH 15968 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15969 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15970 # the default ld.so.conf also contains /usr/contrib/lib and 15971 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15972 # libtool to hard-code these into programs 15973 ;; 15974 15975cygwin* | mingw* | pw32*) 15976 version_type=windows 15977 shrext_cmds=".dll" 15978 need_version=no 15979 need_lib_prefix=no 15980 15981 case $GCC,$host_os in 15982 yes,cygwin* | yes,mingw* | yes,pw32*) 15983 library_names_spec='$libname.dll.a' 15984 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15985 postinstall_cmds='base_file=`basename \${file}`~ 15986 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15987 dldir=$destdir/`dirname \$dlpath`~ 15988 test -d \$dldir || mkdir -p \$dldir~ 15989 $install_prog $dir/$dlname \$dldir/$dlname~ 15990 chmod a+x \$dldir/$dlname' 15991 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15992 dlpath=$dir/\$dldll~ 15993 $rm \$dlpath' 15994 shlibpath_overrides_runpath=yes 15995 15996 case $host_os in 15997 cygwin*) 15998 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15999 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16000 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 16001 ;; 16002 mingw*) 16003 # MinGW DLLs use traditional 'lib' prefix 16004 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16005 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16006 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 16007 # It is most probably a Windows format PATH printed by 16008 # mingw gcc, but we are running on Cygwin. Gcc prints its search 16009 # path with ; separators, and with drive letters. We can handle the 16010 # drive letters (cygwin fileutils understands them), so leave them, 16011 # especially as we might pass files found there to a mingw objdump, 16012 # which wouldn't understand a cygwinified path. Ahh. 16013 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16014 else 16015 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16016 fi 16017 ;; 16018 pw32*) 16019 # pw32 DLLs use 'pw' prefix rather than 'lib' 16020 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16021 ;; 16022 esac 16023 ;; 16024 16025 *) 16026 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 16027 ;; 16028 esac 16029 dynamic_linker='Win32 ld.exe' 16030 # FIXME: first we should search . and the directory the executable is in 16031 shlibpath_var=PATH 16032 ;; 16033 16034darwin* | rhapsody*) 16035 dynamic_linker="$host_os dyld" 16036 version_type=darwin 16037 need_lib_prefix=no 16038 need_version=no 16039 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16040 soname_spec='${libname}${release}${major}$shared_ext' 16041 shlibpath_overrides_runpath=yes 16042 shlibpath_var=DYLD_LIBRARY_PATH 16043 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16044 16045 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16046 ;; 16047 16048dgux*) 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 shlibpath_var=LD_LIBRARY_PATH 16055 ;; 16056 16057freebsd1*) 16058 dynamic_linker=no 16059 ;; 16060 16061freebsd* | dragonfly*) 16062 # DragonFly does not have aout. When/if they implement a new 16063 # versioning mechanism, adjust this. 16064 if test -x /usr/bin/objformat; then 16065 objformat=`/usr/bin/objformat` 16066 else 16067 case $host_os in 16068 freebsd[123]*) objformat=aout ;; 16069 *) objformat=elf ;; 16070 esac 16071 fi 16072 # Handle Gentoo/FreeBSD as it was Linux 16073 case $host_vendor in 16074 gentoo) 16075 version_type=linux ;; 16076 *) 16077 version_type=freebsd-$objformat ;; 16078 esac 16079 16080 case $version_type in 16081 freebsd-elf*) 16082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16083 need_version=no 16084 need_lib_prefix=no 16085 ;; 16086 freebsd-*) 16087 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 16088 need_version=yes 16089 ;; 16090 linux) 16091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16092 soname_spec='${libname}${release}${shared_ext}$major' 16093 need_lib_prefix=no 16094 need_version=no 16095 ;; 16096 esac 16097 shlibpath_var=LD_LIBRARY_PATH 16098 case $host_os in 16099 freebsd2*) 16100 shlibpath_overrides_runpath=yes 16101 ;; 16102 freebsd3.[01]* | freebsdelf3.[01]*) 16103 shlibpath_overrides_runpath=yes 16104 hardcode_into_libs=yes 16105 ;; 16106 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16107 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16108 shlibpath_overrides_runpath=no 16109 hardcode_into_libs=yes 16110 ;; 16111 *) # from 4.6 on, and DragonFly 16112 shlibpath_overrides_runpath=yes 16113 hardcode_into_libs=yes 16114 ;; 16115 esac 16116 ;; 16117 16118gnu*) 16119 version_type=linux 16120 need_lib_prefix=no 16121 need_version=no 16122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16123 soname_spec='${libname}${release}${shared_ext}$major' 16124 shlibpath_var=LD_LIBRARY_PATH 16125 hardcode_into_libs=yes 16126 ;; 16127 16128hpux9* | hpux10* | hpux11*) 16129 # Give a soname corresponding to the major version so that dld.sl refuses to 16130 # link against other versions. 16131 version_type=sunos 16132 need_lib_prefix=no 16133 need_version=no 16134 case $host_cpu in 16135 ia64*) 16136 shrext_cmds='.so' 16137 hardcode_into_libs=yes 16138 dynamic_linker="$host_os dld.so" 16139 shlibpath_var=LD_LIBRARY_PATH 16140 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16142 soname_spec='${libname}${release}${shared_ext}$major' 16143 if test "X$HPUX_IA64_MODE" = X32; then 16144 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16145 else 16146 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16147 fi 16148 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16149 ;; 16150 hppa*64*) 16151 shrext_cmds='.sl' 16152 hardcode_into_libs=yes 16153 dynamic_linker="$host_os dld.sl" 16154 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16155 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16157 soname_spec='${libname}${release}${shared_ext}$major' 16158 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16159 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16160 ;; 16161 *) 16162 shrext_cmds='.sl' 16163 dynamic_linker="$host_os dld.sl" 16164 shlibpath_var=SHLIB_PATH 16165 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16167 soname_spec='${libname}${release}${shared_ext}$major' 16168 ;; 16169 esac 16170 # HP-UX runs *really* slowly unless shared libraries are mode 555. 16171 postinstall_cmds='chmod 555 $lib' 16172 ;; 16173 16174interix[3-9]*) 16175 version_type=linux 16176 need_lib_prefix=no 16177 need_version=no 16178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16179 soname_spec='${libname}${release}${shared_ext}$major' 16180 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16181 shlibpath_var=LD_LIBRARY_PATH 16182 shlibpath_overrides_runpath=no 16183 hardcode_into_libs=yes 16184 ;; 16185 16186irix5* | irix6* | nonstopux*) 16187 case $host_os in 16188 nonstopux*) version_type=nonstopux ;; 16189 *) 16190 if test "$lt_cv_prog_gnu_ld" = yes; then 16191 version_type=linux 16192 else 16193 version_type=irix 16194 fi ;; 16195 esac 16196 need_lib_prefix=no 16197 need_version=no 16198 soname_spec='${libname}${release}${shared_ext}$major' 16199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16200 case $host_os in 16201 irix5* | nonstopux*) 16202 libsuff= shlibsuff= 16203 ;; 16204 *) 16205 case $LD in # libtool.m4 will add one of these switches to LD 16206 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16207 libsuff= shlibsuff= libmagic=32-bit;; 16208 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16209 libsuff=32 shlibsuff=N32 libmagic=N32;; 16210 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16211 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16212 *) libsuff= shlibsuff= libmagic=never-match;; 16213 esac 16214 ;; 16215 esac 16216 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16217 shlibpath_overrides_runpath=no 16218 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16219 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16220 hardcode_into_libs=yes 16221 ;; 16222 16223# No shared lib support for Linux oldld, aout, or coff. 16224linux*oldld* | linux*aout* | linux*coff*) 16225 dynamic_linker=no 16226 ;; 16227 16228# This must be Linux ELF. 16229linux* | k*bsd*-gnu) 16230 version_type=linux 16231 need_lib_prefix=no 16232 need_version=no 16233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16234 soname_spec='${libname}${release}${shared_ext}$major' 16235 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16236 shlibpath_var=LD_LIBRARY_PATH 16237 shlibpath_overrides_runpath=no 16238 # This implies no fast_install, which is unacceptable. 16239 # Some rework will be needed to allow for fast_install 16240 # before this can be enabled. 16241 hardcode_into_libs=yes 16242 16243 # Append ld.so.conf contents to the search path 16244 if test -f /etc/ld.so.conf; then 16245 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' ' '` 16246 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16247 fi 16248 16249 # We used to test for /lib/ld.so.1 and disable shared libraries on 16250 # powerpc, because MkLinux only supported shared libraries with the 16251 # GNU dynamic linker. Since this was broken with cross compilers, 16252 # most powerpc-linux boxes support dynamic linking these days and 16253 # people can always --disable-shared, the test was removed, and we 16254 # assume the GNU/Linux dynamic linker is in use. 16255 dynamic_linker='GNU/Linux ld.so' 16256 ;; 16257 16258netbsd*) 16259 version_type=sunos 16260 need_lib_prefix=no 16261 need_version=no 16262 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16264 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16265 dynamic_linker='NetBSD (a.out) ld.so' 16266 else 16267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16268 soname_spec='${libname}${release}${shared_ext}$major' 16269 dynamic_linker='NetBSD ld.elf_so' 16270 fi 16271 shlibpath_var=LD_LIBRARY_PATH 16272 shlibpath_overrides_runpath=yes 16273 hardcode_into_libs=yes 16274 ;; 16275 16276newsos6) 16277 version_type=linux 16278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16279 shlibpath_var=LD_LIBRARY_PATH 16280 shlibpath_overrides_runpath=yes 16281 ;; 16282 16283nto-qnx*) 16284 version_type=linux 16285 need_lib_prefix=no 16286 need_version=no 16287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16288 soname_spec='${libname}${release}${shared_ext}$major' 16289 shlibpath_var=LD_LIBRARY_PATH 16290 shlibpath_overrides_runpath=yes 16291 ;; 16292 16293openbsd*) 16294 version_type=sunos 16295 sys_lib_dlsearch_path_spec="/usr/lib" 16296 need_lib_prefix=no 16297 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16298 case $host_os in 16299 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16300 *) need_version=no ;; 16301 esac 16302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16303 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16304 shlibpath_var=LD_LIBRARY_PATH 16305 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16306 case $host_os in 16307 openbsd2.[89] | openbsd2.[89].*) 16308 shlibpath_overrides_runpath=no 16309 ;; 16310 *) 16311 shlibpath_overrides_runpath=yes 16312 ;; 16313 esac 16314 else 16315 shlibpath_overrides_runpath=yes 16316 fi 16317 ;; 16318 16319os2*) 16320 libname_spec='$name' 16321 shrext_cmds=".dll" 16322 need_lib_prefix=no 16323 library_names_spec='$libname${shared_ext} $libname.a' 16324 dynamic_linker='OS/2 ld.exe' 16325 shlibpath_var=LIBPATH 16326 ;; 16327 16328osf3* | osf4* | osf5*) 16329 version_type=osf 16330 need_lib_prefix=no 16331 need_version=no 16332 soname_spec='${libname}${release}${shared_ext}$major' 16333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16334 shlibpath_var=LD_LIBRARY_PATH 16335 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16336 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16337 ;; 16338 16339rdos*) 16340 dynamic_linker=no 16341 ;; 16342 16343solaris*) 16344 version_type=linux 16345 need_lib_prefix=no 16346 need_version=no 16347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16348 soname_spec='${libname}${release}${shared_ext}$major' 16349 shlibpath_var=LD_LIBRARY_PATH 16350 shlibpath_overrides_runpath=yes 16351 hardcode_into_libs=yes 16352 # ldd complains unless libraries are executable 16353 postinstall_cmds='chmod +x $lib' 16354 ;; 16355 16356sunos4*) 16357 version_type=sunos 16358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16359 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16360 shlibpath_var=LD_LIBRARY_PATH 16361 shlibpath_overrides_runpath=yes 16362 if test "$with_gnu_ld" = yes; then 16363 need_lib_prefix=no 16364 fi 16365 need_version=yes 16366 ;; 16367 16368sysv4 | sysv4.3*) 16369 version_type=linux 16370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16371 soname_spec='${libname}${release}${shared_ext}$major' 16372 shlibpath_var=LD_LIBRARY_PATH 16373 case $host_vendor in 16374 sni) 16375 shlibpath_overrides_runpath=no 16376 need_lib_prefix=no 16377 export_dynamic_flag_spec='${wl}-Blargedynsym' 16378 runpath_var=LD_RUN_PATH 16379 ;; 16380 siemens) 16381 need_lib_prefix=no 16382 ;; 16383 motorola) 16384 need_lib_prefix=no 16385 need_version=no 16386 shlibpath_overrides_runpath=no 16387 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16388 ;; 16389 esac 16390 ;; 16391 16392sysv4*MP*) 16393 if test -d /usr/nec ;then 16394 version_type=linux 16395 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16396 soname_spec='$libname${shared_ext}.$major' 16397 shlibpath_var=LD_LIBRARY_PATH 16398 fi 16399 ;; 16400 16401sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16402 version_type=freebsd-elf 16403 need_lib_prefix=no 16404 need_version=no 16405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16406 soname_spec='${libname}${release}${shared_ext}$major' 16407 shlibpath_var=LD_LIBRARY_PATH 16408 hardcode_into_libs=yes 16409 if test "$with_gnu_ld" = yes; then 16410 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16411 shlibpath_overrides_runpath=no 16412 else 16413 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16414 shlibpath_overrides_runpath=yes 16415 case $host_os in 16416 sco3.2v5*) 16417 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16418 ;; 16419 esac 16420 fi 16421 sys_lib_dlsearch_path_spec='/usr/lib' 16422 ;; 16423 16424uts4*) 16425 version_type=linux 16426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16427 soname_spec='${libname}${release}${shared_ext}$major' 16428 shlibpath_var=LD_LIBRARY_PATH 16429 ;; 16430 16431*) 16432 dynamic_linker=no 16433 ;; 16434esac 16435{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16436$as_echo "$dynamic_linker" >&6; } 16437test "$dynamic_linker" = no && can_build_shared=no 16438 16439if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 16440 $as_echo_n "(cached) " >&6 16441else 16442 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 16443fi 16444 16445sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 16446if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 16447 $as_echo_n "(cached) " >&6 16448else 16449 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 16450fi 16451 16452sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 16453 16454variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16455if test "$GCC" = yes; then 16456 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16457fi 16458 16459{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16460$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16461hardcode_action_F77= 16462if test -n "$hardcode_libdir_flag_spec_F77" || \ 16463 test -n "$runpath_var_F77" || \ 16464 test "X$hardcode_automatic_F77" = "Xyes" ; then 16465 16466 # We can hardcode non-existant directories. 16467 if test "$hardcode_direct_F77" != no && 16468 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16469 # have to relink, otherwise we might link with an installed library 16470 # when we should be linking with a yet-to-be-installed one 16471 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 16472 test "$hardcode_minus_L_F77" != no; then 16473 # Linking always hardcodes the temporary library directory. 16474 hardcode_action_F77=relink 16475 else 16476 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16477 hardcode_action_F77=immediate 16478 fi 16479else 16480 # We cannot hardcode anything, or else we can only hardcode existing 16481 # directories. 16482 hardcode_action_F77=unsupported 16483fi 16484{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 16485$as_echo "$hardcode_action_F77" >&6; } 16486 16487if test "$hardcode_action_F77" = relink; then 16488 # Fast installation is not supported 16489 enable_fast_install=no 16490elif test "$shlibpath_overrides_runpath" = yes || 16491 test "$enable_shared" = no; then 16492 # Fast installation is not necessary 16493 enable_fast_install=needless 16494fi 16495 16496 16497# The else clause should only fire when bootstrapping the 16498# libtool distribution, otherwise you forgot to ship ltmain.sh 16499# with your package, and you will get complaints that there are 16500# no rules to generate ltmain.sh. 16501if test -f "$ltmain"; then 16502 # See if we are running on zsh, and set the options which allow our commands through 16503 # without removal of \ escapes. 16504 if test -n "${ZSH_VERSION+set}" ; then 16505 setopt NO_GLOB_SUBST 16506 fi 16507 # Now quote all the things that may contain metacharacters while being 16508 # careful not to overquote the AC_SUBSTed values. We take copies of the 16509 # variables and quote the copies for generation of the libtool script. 16510 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 16511 SED SHELL STRIP \ 16512 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16513 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16514 deplibs_check_method reload_flag reload_cmds need_locks \ 16515 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16516 lt_cv_sys_global_symbol_to_c_name_address \ 16517 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16518 old_postinstall_cmds old_postuninstall_cmds \ 16519 compiler_F77 \ 16520 CC_F77 \ 16521 LD_F77 \ 16522 lt_prog_compiler_wl_F77 \ 16523 lt_prog_compiler_pic_F77 \ 16524 lt_prog_compiler_static_F77 \ 16525 lt_prog_compiler_no_builtin_flag_F77 \ 16526 export_dynamic_flag_spec_F77 \ 16527 thread_safe_flag_spec_F77 \ 16528 whole_archive_flag_spec_F77 \ 16529 enable_shared_with_static_runtimes_F77 \ 16530 old_archive_cmds_F77 \ 16531 old_archive_from_new_cmds_F77 \ 16532 predep_objects_F77 \ 16533 postdep_objects_F77 \ 16534 predeps_F77 \ 16535 postdeps_F77 \ 16536 compiler_lib_search_path_F77 \ 16537 compiler_lib_search_dirs_F77 \ 16538 archive_cmds_F77 \ 16539 archive_expsym_cmds_F77 \ 16540 postinstall_cmds_F77 \ 16541 postuninstall_cmds_F77 \ 16542 old_archive_from_expsyms_cmds_F77 \ 16543 allow_undefined_flag_F77 \ 16544 no_undefined_flag_F77 \ 16545 export_symbols_cmds_F77 \ 16546 hardcode_libdir_flag_spec_F77 \ 16547 hardcode_libdir_flag_spec_ld_F77 \ 16548 hardcode_libdir_separator_F77 \ 16549 hardcode_automatic_F77 \ 16550 module_cmds_F77 \ 16551 module_expsym_cmds_F77 \ 16552 lt_cv_prog_compiler_c_o_F77 \ 16553 fix_srcfile_path_F77 \ 16554 exclude_expsyms_F77 \ 16555 include_expsyms_F77; do 16556 16557 case $var in 16558 old_archive_cmds_F77 | \ 16559 old_archive_from_new_cmds_F77 | \ 16560 archive_cmds_F77 | \ 16561 archive_expsym_cmds_F77 | \ 16562 module_cmds_F77 | \ 16563 module_expsym_cmds_F77 | \ 16564 old_archive_from_expsyms_cmds_F77 | \ 16565 export_symbols_cmds_F77 | \ 16566 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16567 postinstall_cmds | postuninstall_cmds | \ 16568 old_postinstall_cmds | old_postuninstall_cmds | \ 16569 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16570 # Double-quote double-evaled strings. 16571 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16572 ;; 16573 *) 16574 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16575 ;; 16576 esac 16577 done 16578 16579 case $lt_echo in 16580 *'\$0 --fallback-echo"') 16581 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16582 ;; 16583 esac 16584 16585cfgfile="$ofile" 16586 16587 cat <<__EOF__ >> "$cfgfile" 16588# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16589 16590# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16591 16592# Shell to use when invoking shell scripts. 16593SHELL=$lt_SHELL 16594 16595# Whether or not to build shared libraries. 16596build_libtool_libs=$enable_shared 16597 16598# Whether or not to build static libraries. 16599build_old_libs=$enable_static 16600 16601# Whether or not to add -lc for building shared libraries. 16602build_libtool_need_lc=$archive_cmds_need_lc_F77 16603 16604# Whether or not to disallow shared libs when runtime libs are static 16605allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 16606 16607# Whether or not to optimize for fast installation. 16608fast_install=$enable_fast_install 16609 16610# The host system. 16611host_alias=$host_alias 16612host=$host 16613host_os=$host_os 16614 16615# The build system. 16616build_alias=$build_alias 16617build=$build 16618build_os=$build_os 16619 16620# An echo program that does not interpret backslashes. 16621echo=$lt_echo 16622 16623# The archiver. 16624AR=$lt_AR 16625AR_FLAGS=$lt_AR_FLAGS 16626 16627# A C compiler. 16628LTCC=$lt_LTCC 16629 16630# LTCC compiler flags. 16631LTCFLAGS=$lt_LTCFLAGS 16632 16633# A language-specific compiler. 16634CC=$lt_compiler_F77 16635 16636# Is the compiler the GNU C compiler? 16637with_gcc=$GCC_F77 16638 16639# An ERE matcher. 16640EGREP=$lt_EGREP 16641 16642# The linker used to build libraries. 16643LD=$lt_LD_F77 16644 16645# Whether we need hard or soft links. 16646LN_S=$lt_LN_S 16647 16648# A BSD-compatible nm program. 16649NM=$lt_NM 16650 16651# A symbol stripping program 16652STRIP=$lt_STRIP 16653 16654# Used to examine libraries when file_magic_cmd begins "file" 16655MAGIC_CMD=$MAGIC_CMD 16656 16657# Used on cygwin: DLL creation program. 16658DLLTOOL="$DLLTOOL" 16659 16660# Used on cygwin: object dumper. 16661OBJDUMP="$OBJDUMP" 16662 16663# Used on cygwin: assembler. 16664AS="$AS" 16665 16666# The name of the directory that contains temporary libtool files. 16667objdir=$objdir 16668 16669# How to create reloadable object files. 16670reload_flag=$lt_reload_flag 16671reload_cmds=$lt_reload_cmds 16672 16673# How to pass a linker flag through the compiler. 16674wl=$lt_lt_prog_compiler_wl_F77 16675 16676# Object file suffix (normally "o"). 16677objext="$ac_objext" 16678 16679# Old archive suffix (normally "a"). 16680libext="$libext" 16681 16682# Shared library suffix (normally ".so"). 16683shrext_cmds='$shrext_cmds' 16684 16685# Executable file suffix (normally ""). 16686exeext="$exeext" 16687 16688# Additional compiler flags for building library objects. 16689pic_flag=$lt_lt_prog_compiler_pic_F77 16690pic_mode=$pic_mode 16691 16692# What is the maximum length of a command? 16693max_cmd_len=$lt_cv_sys_max_cmd_len 16694 16695# Does compiler simultaneously support -c and -o options? 16696compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16697 16698# Must we lock files when doing compilation? 16699need_locks=$lt_need_locks 16700 16701# Do we need the lib prefix for modules? 16702need_lib_prefix=$need_lib_prefix 16703 16704# Do we need a version for libraries? 16705need_version=$need_version 16706 16707# Whether dlopen is supported. 16708dlopen_support=$enable_dlopen 16709 16710# Whether dlopen of programs is supported. 16711dlopen_self=$enable_dlopen_self 16712 16713# Whether dlopen of statically linked programs is supported. 16714dlopen_self_static=$enable_dlopen_self_static 16715 16716# Compiler flag to prevent dynamic linking. 16717link_static_flag=$lt_lt_prog_compiler_static_F77 16718 16719# Compiler flag to turn off builtin functions. 16720no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16721 16722# Compiler flag to allow reflexive dlopens. 16723export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16724 16725# Compiler flag to generate shared objects directly from archives. 16726whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16727 16728# Compiler flag to generate thread-safe objects. 16729thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16730 16731# Library versioning type. 16732version_type=$version_type 16733 16734# Format of library name prefix. 16735libname_spec=$lt_libname_spec 16736 16737# List of archive names. First name is the real one, the rest are links. 16738# The last name is the one that the linker finds with -lNAME. 16739library_names_spec=$lt_library_names_spec 16740 16741# The coded name of the library, if different from the real name. 16742soname_spec=$lt_soname_spec 16743 16744# Commands used to build and install an old-style archive. 16745RANLIB=$lt_RANLIB 16746old_archive_cmds=$lt_old_archive_cmds_F77 16747old_postinstall_cmds=$lt_old_postinstall_cmds 16748old_postuninstall_cmds=$lt_old_postuninstall_cmds 16749 16750# Create an old-style archive from a shared archive. 16751old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16752 16753# Create a temporary old-style archive to link instead of a shared archive. 16754old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16755 16756# Commands used to build and install a shared archive. 16757archive_cmds=$lt_archive_cmds_F77 16758archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16759postinstall_cmds=$lt_postinstall_cmds 16760postuninstall_cmds=$lt_postuninstall_cmds 16761 16762# Commands used to build a loadable module (assumed same as above if empty) 16763module_cmds=$lt_module_cmds_F77 16764module_expsym_cmds=$lt_module_expsym_cmds_F77 16765 16766# Commands to strip libraries. 16767old_striplib=$lt_old_striplib 16768striplib=$lt_striplib 16769 16770# Dependencies to place before the objects being linked to create a 16771# shared library. 16772predep_objects=$lt_predep_objects_F77 16773 16774# Dependencies to place after the objects being linked to create a 16775# shared library. 16776postdep_objects=$lt_postdep_objects_F77 16777 16778# Dependencies to place before the objects being linked to create a 16779# shared library. 16780predeps=$lt_predeps_F77 16781 16782# Dependencies to place after the objects being linked to create a 16783# shared library. 16784postdeps=$lt_postdeps_F77 16785 16786# The directories searched by this compiler when creating a shared 16787# library 16788compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77 16789 16790# The library search path used internally by the compiler when linking 16791# a shared library. 16792compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16793 16794# Method to check whether dependent libraries are shared objects. 16795deplibs_check_method=$lt_deplibs_check_method 16796 16797# Command to use when deplibs_check_method == file_magic. 16798file_magic_cmd=$lt_file_magic_cmd 16799 16800# Flag that allows shared libraries with undefined symbols to be built. 16801allow_undefined_flag=$lt_allow_undefined_flag_F77 16802 16803# Flag that forces no undefined symbols. 16804no_undefined_flag=$lt_no_undefined_flag_F77 16805 16806# Commands used to finish a libtool library installation in a directory. 16807finish_cmds=$lt_finish_cmds 16808 16809# Same as above, but a single script fragment to be evaled but not shown. 16810finish_eval=$lt_finish_eval 16811 16812# Take the output of nm and produce a listing of raw symbols and C names. 16813global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16814 16815# Transform the output of nm in a proper C declaration 16816global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16817 16818# Transform the output of nm in a C name address pair 16819global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16820 16821# This is the shared library runtime path variable. 16822runpath_var=$runpath_var 16823 16824# This is the shared library path variable. 16825shlibpath_var=$shlibpath_var 16826 16827# Is shlibpath searched before the hard-coded library search path? 16828shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16829 16830# How to hardcode a shared library path into an executable. 16831hardcode_action=$hardcode_action_F77 16832 16833# Whether we should hardcode library paths into libraries. 16834hardcode_into_libs=$hardcode_into_libs 16835 16836# Flag to hardcode \$libdir into a binary during linking. 16837# This must work even if \$libdir does not exist. 16838hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16839 16840# If ld is used when linking, flag to hardcode \$libdir into 16841# a binary during linking. This must work even if \$libdir does 16842# not exist. 16843hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16844 16845# Whether we need a single -rpath flag with a separated argument. 16846hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16847 16848# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16849# resulting binary. 16850hardcode_direct=$hardcode_direct_F77 16851 16852# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16853# resulting binary. 16854hardcode_minus_L=$hardcode_minus_L_F77 16855 16856# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16857# the resulting binary. 16858hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16859 16860# Set to yes if building a shared library automatically hardcodes DIR into the library 16861# and all subsequent libraries and executables linked against it. 16862hardcode_automatic=$hardcode_automatic_F77 16863 16864# Variables whose values should be saved in libtool wrapper scripts and 16865# restored at relink time. 16866variables_saved_for_relink="$variables_saved_for_relink" 16867 16868# Whether libtool must link a program against all its dependency libraries. 16869link_all_deplibs=$link_all_deplibs_F77 16870 16871# Compile-time system search path for libraries 16872sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16873 16874# Run-time system search path for libraries 16875sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16876 16877# Fix the shell variable \$srcfile for the compiler. 16878fix_srcfile_path=$lt_fix_srcfile_path 16879 16880# Set to yes if exported symbols are required. 16881always_export_symbols=$always_export_symbols_F77 16882 16883# The commands to list exported symbols. 16884export_symbols_cmds=$lt_export_symbols_cmds_F77 16885 16886# The commands to extract the exported symbol list from a shared archive. 16887extract_expsyms_cmds=$lt_extract_expsyms_cmds 16888 16889# Symbols that should not be listed in the preloaded symbols. 16890exclude_expsyms=$lt_exclude_expsyms_F77 16891 16892# Symbols that must always be exported. 16893include_expsyms=$lt_include_expsyms_F77 16894 16895# ### END LIBTOOL TAG CONFIG: $tagname 16896 16897__EOF__ 16898 16899 16900else 16901 # If there is no Makefile yet, we rely on a make rule to execute 16902 # `config.status --recheck' to rerun these tests and create the 16903 # libtool script then. 16904 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16905 if test -f "$ltmain_in"; then 16906 test -f Makefile && make "$ltmain" 16907 fi 16908fi 16909 16910 16911ac_ext=c 16912ac_cpp='$CPP $CPPFLAGS' 16913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16915ac_compiler_gnu=$ac_cv_c_compiler_gnu 16916 16917CC="$lt_save_CC" 16918 16919 else 16920 tagname="" 16921 fi 16922 ;; 16923 16924 GCJ) 16925 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16926 16927 16928# Source file extension for Java test sources. 16929ac_ext=java 16930 16931# Object file extension for compiled Java test sources. 16932objext=o 16933objext_GCJ=$objext 16934 16935# Code to be used in simple compile tests 16936lt_simple_compile_test_code="class foo {}" 16937 16938# Code to be used in simple link tests 16939lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' 16940 16941# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16942 16943# If no C compiler was specified, use CC. 16944LTCC=${LTCC-"$CC"} 16945 16946# If no C compiler flags were specified, use CFLAGS. 16947LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16948 16949# Allow CC to be a program name with arguments. 16950compiler=$CC 16951 16952 16953# save warnings/boilerplate of simple test code 16954ac_outfile=conftest.$ac_objext 16955echo "$lt_simple_compile_test_code" >conftest.$ac_ext 16956eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16957_lt_compiler_boilerplate=`cat conftest.err` 16958$rm conftest* 16959 16960ac_outfile=conftest.$ac_objext 16961echo "$lt_simple_link_test_code" >conftest.$ac_ext 16962eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16963_lt_linker_boilerplate=`cat conftest.err` 16964$rm -r conftest* 16965 16966 16967# Allow CC to be a program name with arguments. 16968lt_save_CC="$CC" 16969CC=${GCJ-"gcj"} 16970compiler=$CC 16971compiler_GCJ=$CC 16972for cc_temp in $compiler""; do 16973 case $cc_temp in 16974 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16975 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16976 \-*) ;; 16977 *) break;; 16978 esac 16979done 16980cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16981 16982 16983# GCJ did not exist at the time GCC didn't implicitly link libc in. 16984archive_cmds_need_lc_GCJ=no 16985 16986old_archive_cmds_GCJ=$old_archive_cmds 16987 16988 16989lt_prog_compiler_no_builtin_flag_GCJ= 16990 16991if test "$GCC" = yes; then 16992 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16993 16994 16995{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16996$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 16997if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16998 $as_echo_n "(cached) " >&6 16999else 17000 lt_cv_prog_compiler_rtti_exceptions=no 17001 ac_outfile=conftest.$ac_objext 17002 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17003 lt_compiler_flag="-fno-rtti -fno-exceptions" 17004 # Insert the option either (1) after the last *FLAGS variable, or 17005 # (2) before a word containing "conftest.", or (3) at the end. 17006 # Note that $ac_compile itself does not contain backslashes and begins 17007 # with a dollar sign (not a hyphen), so the echo should work correctly. 17008 # The option is referenced via a variable to avoid confusing sed. 17009 lt_compile=`echo "$ac_compile" | $SED \ 17010 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17011 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17012 -e 's:$: $lt_compiler_flag:'` 17013 (eval echo "\"\$as_me:17013: $lt_compile\"" >&5) 17014 (eval "$lt_compile" 2>conftest.err) 17015 ac_status=$? 17016 cat conftest.err >&5 17017 echo "$as_me:17017: \$? = $ac_status" >&5 17018 if (exit $ac_status) && test -s "$ac_outfile"; then 17019 # The compiler can only warn and ignore the option if not recognized 17020 # So say no if there are warnings other than the usual output. 17021 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17022 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17023 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17024 lt_cv_prog_compiler_rtti_exceptions=yes 17025 fi 17026 fi 17027 $rm conftest* 17028 17029fi 17030{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 17031$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 17032 17033if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 17034 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 17035else 17036 : 17037fi 17038 17039fi 17040 17041lt_prog_compiler_wl_GCJ= 17042lt_prog_compiler_pic_GCJ= 17043lt_prog_compiler_static_GCJ= 17044 17045{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 17046$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 17047 17048 if test "$GCC" = yes; then 17049 lt_prog_compiler_wl_GCJ='-Wl,' 17050 lt_prog_compiler_static_GCJ='-static' 17051 17052 case $host_os in 17053 aix*) 17054 # All AIX code is PIC. 17055 if test "$host_cpu" = ia64; then 17056 # AIX 5 now supports IA64 processor 17057 lt_prog_compiler_static_GCJ='-Bstatic' 17058 fi 17059 ;; 17060 17061 amigaos*) 17062 # FIXME: we need at least 68020 code to build shared libraries, but 17063 # adding the `-m68020' flag to GCC prevents building anything better, 17064 # like `-m68040'. 17065 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 17066 ;; 17067 17068 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 17069 # PIC is the default for these OSes. 17070 ;; 17071 17072 mingw* | cygwin* | pw32* | os2*) 17073 # This hack is so that the source file can tell whether it is being 17074 # built for inclusion in a dll (and should export symbols for example). 17075 # Although the cygwin gcc ignores -fPIC, still need this for old-style 17076 # (--disable-auto-import) libraries 17077 17078 ;; 17079 17080 darwin* | rhapsody*) 17081 # PIC is the default on this platform 17082 # Common symbols not allowed in MH_DYLIB files 17083 lt_prog_compiler_pic_GCJ='-fno-common' 17084 ;; 17085 17086 interix[3-9]*) 17087 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 17088 # Instead, we relocate shared libraries at runtime. 17089 ;; 17090 17091 msdosdjgpp*) 17092 # Just because we use GCC doesn't mean we suddenly get shared libraries 17093 # on systems that don't support them. 17094 lt_prog_compiler_can_build_shared_GCJ=no 17095 enable_shared=no 17096 ;; 17097 17098 sysv4*MP*) 17099 if test -d /usr/nec; then 17100 lt_prog_compiler_pic_GCJ=-Kconform_pic 17101 fi 17102 ;; 17103 17104 hpux*) 17105 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17106 # not for PA HP-UX. 17107 case $host_cpu in 17108 hppa*64*|ia64*) 17109 # +Z the default 17110 ;; 17111 *) 17112 lt_prog_compiler_pic_GCJ='-fPIC' 17113 ;; 17114 esac 17115 ;; 17116 17117 *) 17118 lt_prog_compiler_pic_GCJ='-fPIC' 17119 ;; 17120 esac 17121 else 17122 # PORTME Check for flag to pass linker flags through the system compiler. 17123 case $host_os in 17124 aix*) 17125 lt_prog_compiler_wl_GCJ='-Wl,' 17126 if test "$host_cpu" = ia64; then 17127 # AIX 5 now supports IA64 processor 17128 lt_prog_compiler_static_GCJ='-Bstatic' 17129 else 17130 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 17131 fi 17132 ;; 17133 darwin*) 17134 # PIC is the default on this platform 17135 # Common symbols not allowed in MH_DYLIB files 17136 case $cc_basename in 17137 xlc*) 17138 lt_prog_compiler_pic_GCJ='-qnocommon' 17139 lt_prog_compiler_wl_GCJ='-Wl,' 17140 ;; 17141 esac 17142 ;; 17143 17144 mingw* | cygwin* | pw32* | os2*) 17145 # This hack is so that the source file can tell whether it is being 17146 # built for inclusion in a dll (and should export symbols for example). 17147 17148 ;; 17149 17150 hpux9* | hpux10* | hpux11*) 17151 lt_prog_compiler_wl_GCJ='-Wl,' 17152 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17153 # not for PA HP-UX. 17154 case $host_cpu in 17155 hppa*64*|ia64*) 17156 # +Z the default 17157 ;; 17158 *) 17159 lt_prog_compiler_pic_GCJ='+Z' 17160 ;; 17161 esac 17162 # Is there a better lt_prog_compiler_static that works with the bundled CC? 17163 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 17164 ;; 17165 17166 irix5* | irix6* | nonstopux*) 17167 lt_prog_compiler_wl_GCJ='-Wl,' 17168 # PIC (with -KPIC) is the default. 17169 lt_prog_compiler_static_GCJ='-non_shared' 17170 ;; 17171 17172 newsos6) 17173 lt_prog_compiler_pic_GCJ='-KPIC' 17174 lt_prog_compiler_static_GCJ='-Bstatic' 17175 ;; 17176 17177 linux* | k*bsd*-gnu) 17178 case $cc_basename in 17179 icc* | ecc*) 17180 lt_prog_compiler_wl_GCJ='-Wl,' 17181 lt_prog_compiler_pic_GCJ='-KPIC' 17182 lt_prog_compiler_static_GCJ='-static' 17183 ;; 17184 pgcc* | pgf77* | pgf90* | pgf95*) 17185 # Portland Group compilers (*not* the Pentium gcc compiler, 17186 # which looks to be a dead project) 17187 lt_prog_compiler_wl_GCJ='-Wl,' 17188 lt_prog_compiler_pic_GCJ='-fpic' 17189 lt_prog_compiler_static_GCJ='-Bstatic' 17190 ;; 17191 ccc*) 17192 lt_prog_compiler_wl_GCJ='-Wl,' 17193 # All Alpha code is PIC. 17194 lt_prog_compiler_static_GCJ='-non_shared' 17195 ;; 17196 *) 17197 case `$CC -V 2>&1 | sed 5q` in 17198 *Sun\ C*) 17199 # Sun C 5.9 17200 lt_prog_compiler_pic_GCJ='-KPIC' 17201 lt_prog_compiler_static_GCJ='-Bstatic' 17202 lt_prog_compiler_wl_GCJ='-Wl,' 17203 ;; 17204 *Sun\ F*) 17205 # Sun Fortran 8.3 passes all unrecognized flags to the linker 17206 lt_prog_compiler_pic_GCJ='-KPIC' 17207 lt_prog_compiler_static_GCJ='-Bstatic' 17208 lt_prog_compiler_wl_GCJ='' 17209 ;; 17210 esac 17211 ;; 17212 esac 17213 ;; 17214 17215 osf3* | osf4* | osf5*) 17216 lt_prog_compiler_wl_GCJ='-Wl,' 17217 # All OSF/1 code is PIC. 17218 lt_prog_compiler_static_GCJ='-non_shared' 17219 ;; 17220 17221 rdos*) 17222 lt_prog_compiler_static_GCJ='-non_shared' 17223 ;; 17224 17225 solaris*) 17226 lt_prog_compiler_pic_GCJ='-KPIC' 17227 lt_prog_compiler_static_GCJ='-Bstatic' 17228 case $cc_basename in 17229 f77* | f90* | f95*) 17230 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 17231 *) 17232 lt_prog_compiler_wl_GCJ='-Wl,';; 17233 esac 17234 ;; 17235 17236 sunos4*) 17237 lt_prog_compiler_wl_GCJ='-Qoption ld ' 17238 lt_prog_compiler_pic_GCJ='-PIC' 17239 lt_prog_compiler_static_GCJ='-Bstatic' 17240 ;; 17241 17242 sysv4 | sysv4.2uw2* | sysv4.3*) 17243 lt_prog_compiler_wl_GCJ='-Wl,' 17244 lt_prog_compiler_pic_GCJ='-KPIC' 17245 lt_prog_compiler_static_GCJ='-Bstatic' 17246 ;; 17247 17248 sysv4*MP*) 17249 if test -d /usr/nec ;then 17250 lt_prog_compiler_pic_GCJ='-Kconform_pic' 17251 lt_prog_compiler_static_GCJ='-Bstatic' 17252 fi 17253 ;; 17254 17255 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 17256 lt_prog_compiler_wl_GCJ='-Wl,' 17257 lt_prog_compiler_pic_GCJ='-KPIC' 17258 lt_prog_compiler_static_GCJ='-Bstatic' 17259 ;; 17260 17261 unicos*) 17262 lt_prog_compiler_wl_GCJ='-Wl,' 17263 lt_prog_compiler_can_build_shared_GCJ=no 17264 ;; 17265 17266 uts4*) 17267 lt_prog_compiler_pic_GCJ='-pic' 17268 lt_prog_compiler_static_GCJ='-Bstatic' 17269 ;; 17270 17271 *) 17272 lt_prog_compiler_can_build_shared_GCJ=no 17273 ;; 17274 esac 17275 fi 17276 17277{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 17278$as_echo "$lt_prog_compiler_pic_GCJ" >&6; } 17279 17280# 17281# Check to make sure the PIC flag actually works. 17282# 17283if test -n "$lt_prog_compiler_pic_GCJ"; then 17284 17285{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 17286$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; } 17287if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then 17288 $as_echo_n "(cached) " >&6 17289else 17290 lt_cv_prog_compiler_pic_works_GCJ=no 17291 ac_outfile=conftest.$ac_objext 17292 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17293 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 17294 # Insert the option either (1) after the last *FLAGS variable, or 17295 # (2) before a word containing "conftest.", or (3) at the end. 17296 # Note that $ac_compile itself does not contain backslashes and begins 17297 # with a dollar sign (not a hyphen), so the echo should work correctly. 17298 # The option is referenced via a variable to avoid confusing sed. 17299 lt_compile=`echo "$ac_compile" | $SED \ 17300 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17301 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17302 -e 's:$: $lt_compiler_flag:'` 17303 (eval echo "\"\$as_me:17303: $lt_compile\"" >&5) 17304 (eval "$lt_compile" 2>conftest.err) 17305 ac_status=$? 17306 cat conftest.err >&5 17307 echo "$as_me:17307: \$? = $ac_status" >&5 17308 if (exit $ac_status) && test -s "$ac_outfile"; then 17309 # The compiler can only warn and ignore the option if not recognized 17310 # So say no if there are warnings other than the usual output. 17311 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17312 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17313 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17314 lt_cv_prog_compiler_pic_works_GCJ=yes 17315 fi 17316 fi 17317 $rm conftest* 17318 17319fi 17320{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5 17321$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; } 17322 17323if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then 17324 case $lt_prog_compiler_pic_GCJ in 17325 "" | " "*) ;; 17326 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 17327 esac 17328else 17329 lt_prog_compiler_pic_GCJ= 17330 lt_prog_compiler_can_build_shared_GCJ=no 17331fi 17332 17333fi 17334case $host_os in 17335 # For platforms which do not support PIC, -DPIC is meaningless: 17336 *djgpp*) 17337 lt_prog_compiler_pic_GCJ= 17338 ;; 17339 *) 17340 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 17341 ;; 17342esac 17343 17344# 17345# Check to make sure the static flag actually works. 17346# 17347wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 17348{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17349$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 17350if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then 17351 $as_echo_n "(cached) " >&6 17352else 17353 lt_cv_prog_compiler_static_works_GCJ=no 17354 save_LDFLAGS="$LDFLAGS" 17355 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17356 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17357 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17358 # The linker can only warn and ignore the option if not recognized 17359 # So say no if there are warnings 17360 if test -s conftest.err; then 17361 # Append any errors to the config.log. 17362 cat conftest.err 1>&5 17363 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 17364 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17365 if diff conftest.exp conftest.er2 >/dev/null; then 17366 lt_cv_prog_compiler_static_works_GCJ=yes 17367 fi 17368 else 17369 lt_cv_prog_compiler_static_works_GCJ=yes 17370 fi 17371 fi 17372 $rm -r conftest* 17373 LDFLAGS="$save_LDFLAGS" 17374 17375fi 17376{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5 17377$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; } 17378 17379if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then 17380 : 17381else 17382 lt_prog_compiler_static_GCJ= 17383fi 17384 17385 17386{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 17387$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17388if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 17389 $as_echo_n "(cached) " >&6 17390else 17391 lt_cv_prog_compiler_c_o_GCJ=no 17392 $rm -r conftest 2>/dev/null 17393 mkdir conftest 17394 cd conftest 17395 mkdir out 17396 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17397 17398 lt_compiler_flag="-o out/conftest2.$ac_objext" 17399 # Insert the option either (1) after the last *FLAGS variable, or 17400 # (2) before a word containing "conftest.", or (3) at the end. 17401 # Note that $ac_compile itself does not contain backslashes and begins 17402 # with a dollar sign (not a hyphen), so the echo should work correctly. 17403 lt_compile=`echo "$ac_compile" | $SED \ 17404 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17405 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17406 -e 's:$: $lt_compiler_flag:'` 17407 (eval echo "\"\$as_me:17407: $lt_compile\"" >&5) 17408 (eval "$lt_compile" 2>out/conftest.err) 17409 ac_status=$? 17410 cat out/conftest.err >&5 17411 echo "$as_me:17411: \$? = $ac_status" >&5 17412 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17413 then 17414 # The compiler can only warn and ignore the option if not recognized 17415 # So say no if there are warnings 17416 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 17417 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17418 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17419 lt_cv_prog_compiler_c_o_GCJ=yes 17420 fi 17421 fi 17422 chmod u+w . 2>&5 17423 $rm conftest* 17424 # SGI C++ compiler will create directory out/ii_files/ for 17425 # template instantiation 17426 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 17427 $rm out/* && rmdir out 17428 cd .. 17429 rmdir conftest 17430 $rm conftest* 17431 17432fi 17433{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 17434$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; } 17435 17436 17437hard_links="nottested" 17438if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 17439 # do not overwrite the value of need_locks provided by the user 17440 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 17441$as_echo_n "checking if we can lock with hard links... " >&6; } 17442 hard_links=yes 17443 $rm conftest* 17444 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17445 touch conftest.a 17446 ln conftest.a conftest.b 2>&5 || hard_links=no 17447 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17448 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 17449$as_echo "$hard_links" >&6; } 17450 if test "$hard_links" = no; then 17451 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17452$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17453 need_locks=warn 17454 fi 17455else 17456 need_locks=no 17457fi 17458 17459{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17460$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 17461 17462 runpath_var= 17463 allow_undefined_flag_GCJ= 17464 enable_shared_with_static_runtimes_GCJ=no 17465 archive_cmds_GCJ= 17466 archive_expsym_cmds_GCJ= 17467 old_archive_From_new_cmds_GCJ= 17468 old_archive_from_expsyms_cmds_GCJ= 17469 export_dynamic_flag_spec_GCJ= 17470 whole_archive_flag_spec_GCJ= 17471 thread_safe_flag_spec_GCJ= 17472 hardcode_libdir_flag_spec_GCJ= 17473 hardcode_libdir_flag_spec_ld_GCJ= 17474 hardcode_libdir_separator_GCJ= 17475 hardcode_direct_GCJ=no 17476 hardcode_minus_L_GCJ=no 17477 hardcode_shlibpath_var_GCJ=unsupported 17478 link_all_deplibs_GCJ=unknown 17479 hardcode_automatic_GCJ=no 17480 module_cmds_GCJ= 17481 module_expsym_cmds_GCJ= 17482 always_export_symbols_GCJ=no 17483 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17484 # include_expsyms should be a list of space-separated symbols to be *always* 17485 # included in the symbol list 17486 include_expsyms_GCJ= 17487 # exclude_expsyms can be an extended regexp of symbols to exclude 17488 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17489 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17490 # as well as any symbol that contains `d'. 17491 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 17492 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17493 # platforms (ab)use it in PIC code, but their linkers get confused if 17494 # the symbol is explicitly referenced. Since portable code cannot 17495 # rely on this symbol name, it's probably fine to never include it in 17496 # preloaded symbol tables. 17497 # Exclude shared library initialization/finalization symbols. 17498 extract_expsyms_cmds= 17499 # Just being paranoid about ensuring that cc_basename is set. 17500 for cc_temp in $compiler""; do 17501 case $cc_temp in 17502 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17503 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17504 \-*) ;; 17505 *) break;; 17506 esac 17507done 17508cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17509 17510 case $host_os in 17511 cygwin* | mingw* | pw32*) 17512 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17513 # When not using gcc, we currently assume that we are using 17514 # Microsoft Visual C++. 17515 if test "$GCC" != yes; then 17516 with_gnu_ld=no 17517 fi 17518 ;; 17519 interix*) 17520 # we just hope/assume this is gcc and not c89 (= MSVC++) 17521 with_gnu_ld=yes 17522 ;; 17523 openbsd*) 17524 with_gnu_ld=no 17525 ;; 17526 esac 17527 17528 ld_shlibs_GCJ=yes 17529 if test "$with_gnu_ld" = yes; then 17530 # If archive_cmds runs LD, not CC, wlarc should be empty 17531 wlarc='${wl}' 17532 17533 # Set some defaults for GNU ld with shared library support. These 17534 # are reset later if shared libraries are not supported. Putting them 17535 # here allows them to be overridden if necessary. 17536 runpath_var=LD_RUN_PATH 17537 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 17538 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 17539 # ancient GNU ld didn't support --whole-archive et. al. 17540 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17541 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17542 else 17543 whole_archive_flag_spec_GCJ= 17544 fi 17545 supports_anon_versioning=no 17546 case `$LD -v 2>/dev/null` in 17547 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17548 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17549 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17550 *\ 2.11.*) ;; # other 2.11 versions 17551 *) supports_anon_versioning=yes ;; 17552 esac 17553 17554 # See if GNU ld supports shared libraries. 17555 case $host_os in 17556 aix[3-9]*) 17557 # On AIX/PPC, the GNU linker is very broken 17558 if test "$host_cpu" != ia64; then 17559 ld_shlibs_GCJ=no 17560 cat <<EOF 1>&2 17561 17562*** Warning: the GNU linker, at least up to release 2.9.1, is reported 17563*** to be unable to reliably create shared libraries on AIX. 17564*** Therefore, libtool is disabling shared libraries support. If you 17565*** really care for shared libraries, you may want to modify your PATH 17566*** so that a non-GNU linker is found, and then restart. 17567 17568EOF 17569 fi 17570 ;; 17571 17572 amigaos*) 17573 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)' 17574 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17575 hardcode_minus_L_GCJ=yes 17576 17577 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 17578 # that the semantics of dynamic libraries on AmigaOS, at least up 17579 # to version 4, is to share data among multiple programs linked 17580 # with the same dynamic library. Since this doesn't match the 17581 # behavior of shared libraries on other platforms, we can't use 17582 # them. 17583 ld_shlibs_GCJ=no 17584 ;; 17585 17586 beos*) 17587 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17588 allow_undefined_flag_GCJ=unsupported 17589 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17590 # support --undefined. This deserves some investigation. FIXME 17591 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17592 else 17593 ld_shlibs_GCJ=no 17594 fi 17595 ;; 17596 17597 cygwin* | mingw* | pw32*) 17598 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 17599 # as there is no search path for DLLs. 17600 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17601 allow_undefined_flag_GCJ=unsupported 17602 always_export_symbols_GCJ=no 17603 enable_shared_with_static_runtimes_GCJ=yes 17604 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 17605 17606 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17607 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17608 # If the export-symbols file already is a .def file (1st line 17609 # is EXPORTS), use it as is; otherwise, prepend... 17610 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17611 cp $export_symbols $output_objdir/$soname.def; 17612 else 17613 echo EXPORTS > $output_objdir/$soname.def; 17614 cat $export_symbols >> $output_objdir/$soname.def; 17615 fi~ 17616 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17617 else 17618 ld_shlibs_GCJ=no 17619 fi 17620 ;; 17621 17622 interix[3-9]*) 17623 hardcode_direct_GCJ=no 17624 hardcode_shlibpath_var_GCJ=no 17625 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17626 export_dynamic_flag_spec_GCJ='${wl}-E' 17627 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17628 # Instead, shared libraries are loaded at an image base (0x10000000 by 17629 # default) and relocated if they conflict, which is a slow very memory 17630 # consuming and fragmenting process. To avoid this, we pick a random, 17631 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17632 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17633 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' 17634 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' 17635 ;; 17636 17637 gnu* | linux* | k*bsd*-gnu) 17638 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17639 tmp_addflag= 17640 case $cc_basename,$host_cpu in 17641 pgcc*) # Portland Group C compiler 17642 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' 17643 tmp_addflag=' $pic_flag' 17644 ;; 17645 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17646 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' 17647 tmp_addflag=' $pic_flag -Mnomain' ;; 17648 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17649 tmp_addflag=' -i_dynamic' ;; 17650 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17651 tmp_addflag=' -i_dynamic -nofor_main' ;; 17652 ifc* | ifort*) # Intel Fortran compiler 17653 tmp_addflag=' -nofor_main' ;; 17654 esac 17655 case `$CC -V 2>&1 | sed 5q` in 17656 *Sun\ C*) # Sun C 5.9 17657 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' 17658 tmp_sharedflag='-G' ;; 17659 *Sun\ F*) # Sun Fortran 8.3 17660 tmp_sharedflag='-G' ;; 17661 *) 17662 tmp_sharedflag='-shared' ;; 17663 esac 17664 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17665 17666 if test $supports_anon_versioning = yes; then 17667 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17668 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17669 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17670 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17671 fi 17672 else 17673 ld_shlibs_GCJ=no 17674 fi 17675 ;; 17676 17677 netbsd*) 17678 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17679 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17680 wlarc= 17681 else 17682 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17683 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17684 fi 17685 ;; 17686 17687 solaris*) 17688 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17689 ld_shlibs_GCJ=no 17690 cat <<EOF 1>&2 17691 17692*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17693*** create shared libraries on Solaris systems. Therefore, libtool 17694*** is disabling shared libraries support. We urge you to upgrade GNU 17695*** binutils to release 2.9.1 or newer. Another option is to modify 17696*** your PATH or compiler configuration so that the native linker is 17697*** used, and then restart. 17698 17699EOF 17700 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17701 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17702 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17703 else 17704 ld_shlibs_GCJ=no 17705 fi 17706 ;; 17707 17708 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17709 case `$LD -v 2>&1` in 17710 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17711 ld_shlibs_GCJ=no 17712 cat <<_LT_EOF 1>&2 17713 17714*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17715*** reliably create shared libraries on SCO systems. Therefore, libtool 17716*** is disabling shared libraries support. We urge you to upgrade GNU 17717*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17718*** your PATH or compiler configuration so that the native linker is 17719*** used, and then restart. 17720 17721_LT_EOF 17722 ;; 17723 *) 17724 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17725 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17726 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17727 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17728 else 17729 ld_shlibs_GCJ=no 17730 fi 17731 ;; 17732 esac 17733 ;; 17734 17735 sunos4*) 17736 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17737 wlarc= 17738 hardcode_direct_GCJ=yes 17739 hardcode_shlibpath_var_GCJ=no 17740 ;; 17741 17742 *) 17743 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17744 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17745 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17746 else 17747 ld_shlibs_GCJ=no 17748 fi 17749 ;; 17750 esac 17751 17752 if test "$ld_shlibs_GCJ" = no; then 17753 runpath_var= 17754 hardcode_libdir_flag_spec_GCJ= 17755 export_dynamic_flag_spec_GCJ= 17756 whole_archive_flag_spec_GCJ= 17757 fi 17758 else 17759 # PORTME fill in a description of your system's linker (not GNU ld) 17760 case $host_os in 17761 aix3*) 17762 allow_undefined_flag_GCJ=unsupported 17763 always_export_symbols_GCJ=yes 17764 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' 17765 # Note: this linker hardcodes the directories in LIBPATH if there 17766 # are no directories specified by -L. 17767 hardcode_minus_L_GCJ=yes 17768 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17769 # Neither direct hardcoding nor static linking is supported with a 17770 # broken collect2. 17771 hardcode_direct_GCJ=unsupported 17772 fi 17773 ;; 17774 17775 aix[4-9]*) 17776 if test "$host_cpu" = ia64; then 17777 # On IA64, the linker does run time linking by default, so we don't 17778 # have to do anything special. 17779 aix_use_runtimelinking=no 17780 exp_sym_flag='-Bexport' 17781 no_entry_flag="" 17782 else 17783 # If we're using GNU nm, then we don't want the "-C" option. 17784 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17785 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17786 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' 17787 else 17788 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' 17789 fi 17790 aix_use_runtimelinking=no 17791 17792 # Test if we are trying to use run time linking or normal 17793 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17794 # need to do runtime linking. 17795 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 17796 for ld_flag in $LDFLAGS; do 17797 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17798 aix_use_runtimelinking=yes 17799 break 17800 fi 17801 done 17802 ;; 17803 esac 17804 17805 exp_sym_flag='-bexport' 17806 no_entry_flag='-bnoentry' 17807 fi 17808 17809 # When large executables or shared objects are built, AIX ld can 17810 # have problems creating the table of contents. If linking a library 17811 # or program results in "error TOC overflow" add -mminimal-toc to 17812 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17813 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17814 17815 archive_cmds_GCJ='' 17816 hardcode_direct_GCJ=yes 17817 hardcode_libdir_separator_GCJ=':' 17818 link_all_deplibs_GCJ=yes 17819 17820 if test "$GCC" = yes; then 17821 case $host_os in aix4.[012]|aix4.[012].*) 17822 # We only want to do this on AIX 4.2 and lower, the check 17823 # below for broken collect2 doesn't work under 4.3+ 17824 collect2name=`${CC} -print-prog-name=collect2` 17825 if test -f "$collect2name" && \ 17826 strings "$collect2name" | grep resolve_lib_name >/dev/null 17827 then 17828 # We have reworked collect2 17829 : 17830 else 17831 # We have old collect2 17832 hardcode_direct_GCJ=unsupported 17833 # It fails to find uninstalled libraries when the uninstalled 17834 # path is not listed in the libpath. Setting hardcode_minus_L 17835 # to unsupported forces relinking 17836 hardcode_minus_L_GCJ=yes 17837 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17838 hardcode_libdir_separator_GCJ= 17839 fi 17840 ;; 17841 esac 17842 shared_flag='-shared' 17843 if test "$aix_use_runtimelinking" = yes; then 17844 shared_flag="$shared_flag "'${wl}-G' 17845 fi 17846 else 17847 # not using gcc 17848 if test "$host_cpu" = ia64; then 17849 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17850 # chokes on -Wl,-G. The following line is correct: 17851 shared_flag='-G' 17852 else 17853 if test "$aix_use_runtimelinking" = yes; then 17854 shared_flag='${wl}-G' 17855 else 17856 shared_flag='${wl}-bM:SRE' 17857 fi 17858 fi 17859 fi 17860 17861 # It seems that -bexpall does not export symbols beginning with 17862 # underscore (_), so it is better to generate a list of symbols to export. 17863 always_export_symbols_GCJ=yes 17864 if test "$aix_use_runtimelinking" = yes; then 17865 # Warning - without using the other runtime loading flags (-brtl), 17866 # -berok will link without error, but may produce a broken library. 17867 allow_undefined_flag_GCJ='-berok' 17868 # Determine the default libpath from the value encoded in an empty executable. 17869 cat >conftest.$ac_ext <<_ACEOF 17870/* confdefs.h. */ 17871_ACEOF 17872cat confdefs.h >>conftest.$ac_ext 17873cat >>conftest.$ac_ext <<_ACEOF 17874/* end confdefs.h. */ 17875 17876int 17877main () 17878{ 17879 17880 ; 17881 return 0; 17882} 17883_ACEOF 17884rm -f conftest.$ac_objext conftest$ac_exeext 17885if { (ac_try="$ac_link" 17886case "(($ac_try" in 17887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17888 *) ac_try_echo=$ac_try;; 17889esac 17890eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17891$as_echo "$ac_try_echo") >&5 17892 (eval "$ac_link") 2>conftest.er1 17893 ac_status=$? 17894 grep -v '^ *+' conftest.er1 >conftest.err 17895 rm -f conftest.er1 17896 cat conftest.err >&5 17897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17898 (exit $ac_status); } && { 17899 test -z "$ac_c_werror_flag" || 17900 test ! -s conftest.err 17901 } && test -s conftest$ac_exeext && { 17902 test "$cross_compiling" = yes || 17903 $as_test_x conftest$ac_exeext 17904 }; then 17905 17906lt_aix_libpath_sed=' 17907 /Import File Strings/,/^$/ { 17908 /^0/ { 17909 s/^0 *\(.*\)$/\1/ 17910 p 17911 } 17912 }' 17913aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17914# Check for a 64-bit object if we didn't find anything. 17915if test -z "$aix_libpath"; then 17916 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17917fi 17918else 17919 $as_echo "$as_me: failed program was:" >&5 17920sed 's/^/| /' conftest.$ac_ext >&5 17921 17922 17923fi 17924 17925rm -rf conftest.dSYM 17926rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17927 conftest$ac_exeext conftest.$ac_ext 17928if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17929 17930 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17931 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" 17932 else 17933 if test "$host_cpu" = ia64; then 17934 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17935 allow_undefined_flag_GCJ="-z nodefs" 17936 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" 17937 else 17938 # Determine the default libpath from the value encoded in an empty executable. 17939 cat >conftest.$ac_ext <<_ACEOF 17940/* confdefs.h. */ 17941_ACEOF 17942cat confdefs.h >>conftest.$ac_ext 17943cat >>conftest.$ac_ext <<_ACEOF 17944/* end confdefs.h. */ 17945 17946int 17947main () 17948{ 17949 17950 ; 17951 return 0; 17952} 17953_ACEOF 17954rm -f conftest.$ac_objext conftest$ac_exeext 17955if { (ac_try="$ac_link" 17956case "(($ac_try" in 17957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17958 *) ac_try_echo=$ac_try;; 17959esac 17960eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17961$as_echo "$ac_try_echo") >&5 17962 (eval "$ac_link") 2>conftest.er1 17963 ac_status=$? 17964 grep -v '^ *+' conftest.er1 >conftest.err 17965 rm -f conftest.er1 17966 cat conftest.err >&5 17967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17968 (exit $ac_status); } && { 17969 test -z "$ac_c_werror_flag" || 17970 test ! -s conftest.err 17971 } && test -s conftest$ac_exeext && { 17972 test "$cross_compiling" = yes || 17973 $as_test_x conftest$ac_exeext 17974 }; then 17975 17976lt_aix_libpath_sed=' 17977 /Import File Strings/,/^$/ { 17978 /^0/ { 17979 s/^0 *\(.*\)$/\1/ 17980 p 17981 } 17982 }' 17983aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17984# Check for a 64-bit object if we didn't find anything. 17985if test -z "$aix_libpath"; then 17986 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17987fi 17988else 17989 $as_echo "$as_me: failed program was:" >&5 17990sed 's/^/| /' conftest.$ac_ext >&5 17991 17992 17993fi 17994 17995rm -rf conftest.dSYM 17996rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17997 conftest$ac_exeext conftest.$ac_ext 17998if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17999 18000 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 18001 # Warning - without using the other run time loading flags, 18002 # -berok will link without error, but may produce a broken library. 18003 no_undefined_flag_GCJ=' ${wl}-bernotok' 18004 allow_undefined_flag_GCJ=' ${wl}-berok' 18005 # Exported symbols can be pulled into shared objects from archives 18006 whole_archive_flag_spec_GCJ='$convenience' 18007 archive_cmds_need_lc_GCJ=yes 18008 # This is similar to how AIX traditionally builds its shared libraries. 18009 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' 18010 fi 18011 fi 18012 ;; 18013 18014 amigaos*) 18015 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)' 18016 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18017 hardcode_minus_L_GCJ=yes 18018 # see comment about different semantics on the GNU ld section 18019 ld_shlibs_GCJ=no 18020 ;; 18021 18022 bsdi[45]*) 18023 export_dynamic_flag_spec_GCJ=-rdynamic 18024 ;; 18025 18026 cygwin* | mingw* | pw32*) 18027 # When not using gcc, we currently assume that we are using 18028 # Microsoft Visual C++. 18029 # hardcode_libdir_flag_spec is actually meaningless, as there is 18030 # no search path for DLLs. 18031 hardcode_libdir_flag_spec_GCJ=' ' 18032 allow_undefined_flag_GCJ=unsupported 18033 # Tell ltmain to make .lib files, not .a files. 18034 libext=lib 18035 # Tell ltmain to make .dll files, not .so files. 18036 shrext_cmds=".dll" 18037 # FIXME: Setting linknames here is a bad hack. 18038 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 18039 # The linker will automatically build a .lib file if we build a DLL. 18040 old_archive_From_new_cmds_GCJ='true' 18041 # FIXME: Should let the user specify the lib program. 18042 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' 18043 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 18044 enable_shared_with_static_runtimes_GCJ=yes 18045 ;; 18046 18047 darwin* | rhapsody*) 18048 case $host_os in 18049 rhapsody* | darwin1.[012]) 18050 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 18051 ;; 18052 *) # Darwin 1.3 on 18053 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 18054 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 18055 else 18056 case ${MACOSX_DEPLOYMENT_TARGET} in 18057 10.[012]) 18058 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 18059 ;; 18060 10.*) 18061 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 18062 ;; 18063 esac 18064 fi 18065 ;; 18066 esac 18067 archive_cmds_need_lc_GCJ=no 18068 hardcode_direct_GCJ=no 18069 hardcode_automatic_GCJ=yes 18070 hardcode_shlibpath_var_GCJ=unsupported 18071 whole_archive_flag_spec_GCJ='' 18072 link_all_deplibs_GCJ=yes 18073 if test "$GCC" = yes ; then 18074 output_verbose_link_cmd='echo' 18075 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}" 18076 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 18077 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}" 18078 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}" 18079 else 18080 case $cc_basename in 18081 xlc*) 18082 output_verbose_link_cmd='echo' 18083 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 18084 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 18085 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 18086 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}' 18087 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}' 18088 ;; 18089 *) 18090 ld_shlibs_GCJ=no 18091 ;; 18092 esac 18093 fi 18094 ;; 18095 18096 dgux*) 18097 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18098 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18099 hardcode_shlibpath_var_GCJ=no 18100 ;; 18101 18102 freebsd1*) 18103 ld_shlibs_GCJ=no 18104 ;; 18105 18106 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 18107 # support. Future versions do this automatically, but an explicit c++rt0.o 18108 # does not break anything, and helps significantly (at the cost of a little 18109 # extra space). 18110 freebsd2.2*) 18111 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 18112 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18113 hardcode_direct_GCJ=yes 18114 hardcode_shlibpath_var_GCJ=no 18115 ;; 18116 18117 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 18118 freebsd2*) 18119 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18120 hardcode_direct_GCJ=yes 18121 hardcode_minus_L_GCJ=yes 18122 hardcode_shlibpath_var_GCJ=no 18123 ;; 18124 18125 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 18126 freebsd* | dragonfly*) 18127 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 18128 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18129 hardcode_direct_GCJ=yes 18130 hardcode_shlibpath_var_GCJ=no 18131 ;; 18132 18133 hpux9*) 18134 if test "$GCC" = yes; then 18135 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' 18136 else 18137 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' 18138 fi 18139 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18140 hardcode_libdir_separator_GCJ=: 18141 hardcode_direct_GCJ=yes 18142 18143 # hardcode_minus_L: Not really in the search PATH, 18144 # but as the default location of the library. 18145 hardcode_minus_L_GCJ=yes 18146 export_dynamic_flag_spec_GCJ='${wl}-E' 18147 ;; 18148 18149 hpux10*) 18150 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18151 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18152 else 18153 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 18154 fi 18155 if test "$with_gnu_ld" = no; then 18156 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18157 hardcode_libdir_separator_GCJ=: 18158 18159 hardcode_direct_GCJ=yes 18160 export_dynamic_flag_spec_GCJ='${wl}-E' 18161 18162 # hardcode_minus_L: Not really in the search PATH, 18163 # but as the default location of the library. 18164 hardcode_minus_L_GCJ=yes 18165 fi 18166 ;; 18167 18168 hpux11*) 18169 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18170 case $host_cpu in 18171 hppa*64*) 18172 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18173 ;; 18174 ia64*) 18175 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18176 ;; 18177 *) 18178 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18179 ;; 18180 esac 18181 else 18182 case $host_cpu in 18183 hppa*64*) 18184 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18185 ;; 18186 ia64*) 18187 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18188 ;; 18189 *) 18190 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18191 ;; 18192 esac 18193 fi 18194 if test "$with_gnu_ld" = no; then 18195 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18196 hardcode_libdir_separator_GCJ=: 18197 18198 case $host_cpu in 18199 hppa*64*|ia64*) 18200 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 18201 hardcode_direct_GCJ=no 18202 hardcode_shlibpath_var_GCJ=no 18203 ;; 18204 *) 18205 hardcode_direct_GCJ=yes 18206 export_dynamic_flag_spec_GCJ='${wl}-E' 18207 18208 # hardcode_minus_L: Not really in the search PATH, 18209 # but as the default location of the library. 18210 hardcode_minus_L_GCJ=yes 18211 ;; 18212 esac 18213 fi 18214 ;; 18215 18216 irix5* | irix6* | nonstopux*) 18217 if test "$GCC" = yes; then 18218 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' 18219 else 18220 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' 18221 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 18222 fi 18223 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18224 hardcode_libdir_separator_GCJ=: 18225 link_all_deplibs_GCJ=yes 18226 ;; 18227 18228 netbsd*) 18229 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18230 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 18231 else 18232 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 18233 fi 18234 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18235 hardcode_direct_GCJ=yes 18236 hardcode_shlibpath_var_GCJ=no 18237 ;; 18238 18239 newsos6) 18240 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18241 hardcode_direct_GCJ=yes 18242 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18243 hardcode_libdir_separator_GCJ=: 18244 hardcode_shlibpath_var_GCJ=no 18245 ;; 18246 18247 openbsd*) 18248 if test -f /usr/libexec/ld.so; then 18249 hardcode_direct_GCJ=yes 18250 hardcode_shlibpath_var_GCJ=no 18251 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18252 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18253 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 18254 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18255 export_dynamic_flag_spec_GCJ='${wl}-E' 18256 else 18257 case $host_os in 18258 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 18259 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18260 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18261 ;; 18262 *) 18263 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18264 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18265 ;; 18266 esac 18267 fi 18268 else 18269 ld_shlibs_GCJ=no 18270 fi 18271 ;; 18272 18273 os2*) 18274 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18275 hardcode_minus_L_GCJ=yes 18276 allow_undefined_flag_GCJ=unsupported 18277 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' 18278 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 18279 ;; 18280 18281 osf3*) 18282 if test "$GCC" = yes; then 18283 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18284 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' 18285 else 18286 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18287 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' 18288 fi 18289 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18290 hardcode_libdir_separator_GCJ=: 18291 ;; 18292 18293 osf4* | osf5*) # as osf3* with the addition of -msym flag 18294 if test "$GCC" = yes; then 18295 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18296 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' 18297 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18298 else 18299 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18300 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' 18301 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~ 18302 $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' 18303 18304 # Both c and cxx compiler support -rpath directly 18305 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 18306 fi 18307 hardcode_libdir_separator_GCJ=: 18308 ;; 18309 18310 solaris*) 18311 no_undefined_flag_GCJ=' -z text' 18312 if test "$GCC" = yes; then 18313 wlarc='${wl}' 18314 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18315 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18316 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 18317 else 18318 wlarc='' 18319 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 18320 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18321 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 18322 fi 18323 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18324 hardcode_shlibpath_var_GCJ=no 18325 case $host_os in 18326 solaris2.[0-5] | solaris2.[0-5].*) ;; 18327 *) 18328 # The compiler driver will combine and reorder linker options, 18329 # but understands `-z linker_flag'. GCC discards it without `$wl', 18330 # but is careful enough not to reorder. 18331 # Supported since Solaris 2.6 (maybe 2.5.1?) 18332 if test "$GCC" = yes; then 18333 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 18334 else 18335 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' 18336 fi 18337 ;; 18338 esac 18339 link_all_deplibs_GCJ=yes 18340 ;; 18341 18342 sunos4*) 18343 if test "x$host_vendor" = xsequent; then 18344 # Use $CC to link under sequent, because it throws in some extra .o 18345 # files that make .init and .fini sections work. 18346 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 18347 else 18348 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 18349 fi 18350 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18351 hardcode_direct_GCJ=yes 18352 hardcode_minus_L_GCJ=yes 18353 hardcode_shlibpath_var_GCJ=no 18354 ;; 18355 18356 sysv4) 18357 case $host_vendor in 18358 sni) 18359 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18360 hardcode_direct_GCJ=yes # is this really true??? 18361 ;; 18362 siemens) 18363 ## LD is ld it makes a PLAMLIB 18364 ## CC just makes a GrossModule. 18365 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18366 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 18367 hardcode_direct_GCJ=no 18368 ;; 18369 motorola) 18370 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18371 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 18372 ;; 18373 esac 18374 runpath_var='LD_RUN_PATH' 18375 hardcode_shlibpath_var_GCJ=no 18376 ;; 18377 18378 sysv4.3*) 18379 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18380 hardcode_shlibpath_var_GCJ=no 18381 export_dynamic_flag_spec_GCJ='-Bexport' 18382 ;; 18383 18384 sysv4*MP*) 18385 if test -d /usr/nec; then 18386 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18387 hardcode_shlibpath_var_GCJ=no 18388 runpath_var=LD_RUN_PATH 18389 hardcode_runpath_var=yes 18390 ld_shlibs_GCJ=yes 18391 fi 18392 ;; 18393 18394 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 18395 no_undefined_flag_GCJ='${wl}-z,text' 18396 archive_cmds_need_lc_GCJ=no 18397 hardcode_shlibpath_var_GCJ=no 18398 runpath_var='LD_RUN_PATH' 18399 18400 if test "$GCC" = yes; then 18401 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18402 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18403 else 18404 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18405 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18406 fi 18407 ;; 18408 18409 sysv5* | sco3.2v5* | sco5v6*) 18410 # Note: We can NOT use -z defs as we might desire, because we do not 18411 # link with -lc, and that would cause any symbols used from libc to 18412 # always be unresolved, which means just about no library would 18413 # ever link correctly. If we're not using GNU ld we use -z text 18414 # though, which does catch some bad symbols but isn't as heavy-handed 18415 # as -z defs. 18416 no_undefined_flag_GCJ='${wl}-z,text' 18417 allow_undefined_flag_GCJ='${wl}-z,nodefs' 18418 archive_cmds_need_lc_GCJ=no 18419 hardcode_shlibpath_var_GCJ=no 18420 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 18421 hardcode_libdir_separator_GCJ=':' 18422 link_all_deplibs_GCJ=yes 18423 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 18424 runpath_var='LD_RUN_PATH' 18425 18426 if test "$GCC" = yes; then 18427 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18428 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18429 else 18430 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18431 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18432 fi 18433 ;; 18434 18435 uts4*) 18436 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18437 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18438 hardcode_shlibpath_var_GCJ=no 18439 ;; 18440 18441 *) 18442 ld_shlibs_GCJ=no 18443 ;; 18444 esac 18445 fi 18446 18447{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 18448$as_echo "$ld_shlibs_GCJ" >&6; } 18449test "$ld_shlibs_GCJ" = no && can_build_shared=no 18450 18451# 18452# Do we need to explicitly link libc? 18453# 18454case "x$archive_cmds_need_lc_GCJ" in 18455x|xyes) 18456 # Assume -lc should be added 18457 archive_cmds_need_lc_GCJ=yes 18458 18459 if test "$enable_shared" = yes && test "$GCC" = yes; then 18460 case $archive_cmds_GCJ in 18461 *'~'*) 18462 # FIXME: we may have to deal with multi-command sequences. 18463 ;; 18464 '$CC '*) 18465 # Test whether the compiler implicitly links with -lc since on some 18466 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18467 # to ld, don't add -lc before -lgcc. 18468 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 18469$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 18470 $rm conftest* 18471 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18472 18473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18474 (eval $ac_compile) 2>&5 18475 ac_status=$? 18476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18477 (exit $ac_status); } 2>conftest.err; then 18478 soname=conftest 18479 lib=conftest 18480 libobjs=conftest.$ac_objext 18481 deplibs= 18482 wl=$lt_prog_compiler_wl_GCJ 18483 pic_flag=$lt_prog_compiler_pic_GCJ 18484 compiler_flags=-v 18485 linker_flags=-v 18486 verstring= 18487 output_objdir=. 18488 libname=conftest 18489 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 18490 allow_undefined_flag_GCJ= 18491 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 18492 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18493 ac_status=$? 18494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18495 (exit $ac_status); } 18496 then 18497 archive_cmds_need_lc_GCJ=no 18498 else 18499 archive_cmds_need_lc_GCJ=yes 18500 fi 18501 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 18502 else 18503 cat conftest.err 1>&5 18504 fi 18505 $rm conftest* 18506 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 18507$as_echo "$archive_cmds_need_lc_GCJ" >&6; } 18508 ;; 18509 esac 18510 fi 18511 ;; 18512esac 18513 18514{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 18515$as_echo_n "checking dynamic linker characteristics... " >&6; } 18516library_names_spec= 18517libname_spec='lib$name' 18518soname_spec= 18519shrext_cmds=".so" 18520postinstall_cmds= 18521postuninstall_cmds= 18522finish_cmds= 18523finish_eval= 18524shlibpath_var= 18525shlibpath_overrides_runpath=unknown 18526version_type=none 18527dynamic_linker="$host_os ld.so" 18528sys_lib_dlsearch_path_spec="/lib /usr/lib" 18529 18530need_lib_prefix=unknown 18531hardcode_into_libs=no 18532 18533# when you set need_version to no, make sure it does not cause -set_version 18534# flags to be left without arguments 18535need_version=unknown 18536 18537case $host_os in 18538aix3*) 18539 version_type=linux 18540 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18541 shlibpath_var=LIBPATH 18542 18543 # AIX 3 has no versioning support, so we append a major version to the name. 18544 soname_spec='${libname}${release}${shared_ext}$major' 18545 ;; 18546 18547aix[4-9]*) 18548 version_type=linux 18549 need_lib_prefix=no 18550 need_version=no 18551 hardcode_into_libs=yes 18552 if test "$host_cpu" = ia64; then 18553 # AIX 5 supports IA64 18554 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18555 shlibpath_var=LD_LIBRARY_PATH 18556 else 18557 # With GCC up to 2.95.x, collect2 would create an import file 18558 # for dependence libraries. The import file would start with 18559 # the line `#! .'. This would cause the generated library to 18560 # depend on `.', always an invalid library. This was fixed in 18561 # development snapshots of GCC prior to 3.0. 18562 case $host_os in 18563 aix4 | aix4.[01] | aix4.[01].*) 18564 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18565 echo ' yes ' 18566 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 18567 : 18568 else 18569 can_build_shared=no 18570 fi 18571 ;; 18572 esac 18573 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18574 # soname into executable. Probably we can add versioning support to 18575 # collect2, so additional links can be useful in future. 18576 if test "$aix_use_runtimelinking" = yes; then 18577 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18578 # instead of lib<name>.a to let people know that these are not 18579 # typical AIX shared libraries. 18580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18581 else 18582 # We preserve .a as extension for shared libraries through AIX4.2 18583 # and later when we are not doing run time linking. 18584 library_names_spec='${libname}${release}.a $libname.a' 18585 soname_spec='${libname}${release}${shared_ext}$major' 18586 fi 18587 shlibpath_var=LIBPATH 18588 fi 18589 ;; 18590 18591amigaos*) 18592 library_names_spec='$libname.ixlibrary $libname.a' 18593 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18594 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' 18595 ;; 18596 18597beos*) 18598 library_names_spec='${libname}${shared_ext}' 18599 dynamic_linker="$host_os ld.so" 18600 shlibpath_var=LIBRARY_PATH 18601 ;; 18602 18603bsdi[45]*) 18604 version_type=linux 18605 need_version=no 18606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18607 soname_spec='${libname}${release}${shared_ext}$major' 18608 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18609 shlibpath_var=LD_LIBRARY_PATH 18610 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18611 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18612 # the default ld.so.conf also contains /usr/contrib/lib and 18613 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18614 # libtool to hard-code these into programs 18615 ;; 18616 18617cygwin* | mingw* | pw32*) 18618 version_type=windows 18619 shrext_cmds=".dll" 18620 need_version=no 18621 need_lib_prefix=no 18622 18623 case $GCC,$host_os in 18624 yes,cygwin* | yes,mingw* | yes,pw32*) 18625 library_names_spec='$libname.dll.a' 18626 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18627 postinstall_cmds='base_file=`basename \${file}`~ 18628 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18629 dldir=$destdir/`dirname \$dlpath`~ 18630 test -d \$dldir || mkdir -p \$dldir~ 18631 $install_prog $dir/$dlname \$dldir/$dlname~ 18632 chmod a+x \$dldir/$dlname' 18633 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18634 dlpath=$dir/\$dldll~ 18635 $rm \$dlpath' 18636 shlibpath_overrides_runpath=yes 18637 18638 case $host_os in 18639 cygwin*) 18640 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18641 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18642 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 18643 ;; 18644 mingw*) 18645 # MinGW DLLs use traditional 'lib' prefix 18646 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18647 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18648 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18649 # It is most probably a Windows format PATH printed by 18650 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18651 # path with ; separators, and with drive letters. We can handle the 18652 # drive letters (cygwin fileutils understands them), so leave them, 18653 # especially as we might pass files found there to a mingw objdump, 18654 # which wouldn't understand a cygwinified path. Ahh. 18655 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18656 else 18657 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18658 fi 18659 ;; 18660 pw32*) 18661 # pw32 DLLs use 'pw' prefix rather than 'lib' 18662 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18663 ;; 18664 esac 18665 ;; 18666 18667 *) 18668 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18669 ;; 18670 esac 18671 dynamic_linker='Win32 ld.exe' 18672 # FIXME: first we should search . and the directory the executable is in 18673 shlibpath_var=PATH 18674 ;; 18675 18676darwin* | rhapsody*) 18677 dynamic_linker="$host_os dyld" 18678 version_type=darwin 18679 need_lib_prefix=no 18680 need_version=no 18681 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18682 soname_spec='${libname}${release}${major}$shared_ext' 18683 shlibpath_overrides_runpath=yes 18684 shlibpath_var=DYLD_LIBRARY_PATH 18685 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18686 18687 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18688 ;; 18689 18690dgux*) 18691 version_type=linux 18692 need_lib_prefix=no 18693 need_version=no 18694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18695 soname_spec='${libname}${release}${shared_ext}$major' 18696 shlibpath_var=LD_LIBRARY_PATH 18697 ;; 18698 18699freebsd1*) 18700 dynamic_linker=no 18701 ;; 18702 18703freebsd* | dragonfly*) 18704 # DragonFly does not have aout. When/if they implement a new 18705 # versioning mechanism, adjust this. 18706 if test -x /usr/bin/objformat; then 18707 objformat=`/usr/bin/objformat` 18708 else 18709 case $host_os in 18710 freebsd[123]*) objformat=aout ;; 18711 *) objformat=elf ;; 18712 esac 18713 fi 18714 # Handle Gentoo/FreeBSD as it was Linux 18715 case $host_vendor in 18716 gentoo) 18717 version_type=linux ;; 18718 *) 18719 version_type=freebsd-$objformat ;; 18720 esac 18721 18722 case $version_type in 18723 freebsd-elf*) 18724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18725 need_version=no 18726 need_lib_prefix=no 18727 ;; 18728 freebsd-*) 18729 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18730 need_version=yes 18731 ;; 18732 linux) 18733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18734 soname_spec='${libname}${release}${shared_ext}$major' 18735 need_lib_prefix=no 18736 need_version=no 18737 ;; 18738 esac 18739 shlibpath_var=LD_LIBRARY_PATH 18740 case $host_os in 18741 freebsd2*) 18742 shlibpath_overrides_runpath=yes 18743 ;; 18744 freebsd3.[01]* | freebsdelf3.[01]*) 18745 shlibpath_overrides_runpath=yes 18746 hardcode_into_libs=yes 18747 ;; 18748 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18749 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18750 shlibpath_overrides_runpath=no 18751 hardcode_into_libs=yes 18752 ;; 18753 *) # from 4.6 on, and DragonFly 18754 shlibpath_overrides_runpath=yes 18755 hardcode_into_libs=yes 18756 ;; 18757 esac 18758 ;; 18759 18760gnu*) 18761 version_type=linux 18762 need_lib_prefix=no 18763 need_version=no 18764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18765 soname_spec='${libname}${release}${shared_ext}$major' 18766 shlibpath_var=LD_LIBRARY_PATH 18767 hardcode_into_libs=yes 18768 ;; 18769 18770hpux9* | hpux10* | hpux11*) 18771 # Give a soname corresponding to the major version so that dld.sl refuses to 18772 # link against other versions. 18773 version_type=sunos 18774 need_lib_prefix=no 18775 need_version=no 18776 case $host_cpu in 18777 ia64*) 18778 shrext_cmds='.so' 18779 hardcode_into_libs=yes 18780 dynamic_linker="$host_os dld.so" 18781 shlibpath_var=LD_LIBRARY_PATH 18782 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18784 soname_spec='${libname}${release}${shared_ext}$major' 18785 if test "X$HPUX_IA64_MODE" = X32; then 18786 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18787 else 18788 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18789 fi 18790 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18791 ;; 18792 hppa*64*) 18793 shrext_cmds='.sl' 18794 hardcode_into_libs=yes 18795 dynamic_linker="$host_os dld.sl" 18796 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18797 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18799 soname_spec='${libname}${release}${shared_ext}$major' 18800 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18801 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18802 ;; 18803 *) 18804 shrext_cmds='.sl' 18805 dynamic_linker="$host_os dld.sl" 18806 shlibpath_var=SHLIB_PATH 18807 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18809 soname_spec='${libname}${release}${shared_ext}$major' 18810 ;; 18811 esac 18812 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18813 postinstall_cmds='chmod 555 $lib' 18814 ;; 18815 18816interix[3-9]*) 18817 version_type=linux 18818 need_lib_prefix=no 18819 need_version=no 18820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18821 soname_spec='${libname}${release}${shared_ext}$major' 18822 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18823 shlibpath_var=LD_LIBRARY_PATH 18824 shlibpath_overrides_runpath=no 18825 hardcode_into_libs=yes 18826 ;; 18827 18828irix5* | irix6* | nonstopux*) 18829 case $host_os in 18830 nonstopux*) version_type=nonstopux ;; 18831 *) 18832 if test "$lt_cv_prog_gnu_ld" = yes; then 18833 version_type=linux 18834 else 18835 version_type=irix 18836 fi ;; 18837 esac 18838 need_lib_prefix=no 18839 need_version=no 18840 soname_spec='${libname}${release}${shared_ext}$major' 18841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18842 case $host_os in 18843 irix5* | nonstopux*) 18844 libsuff= shlibsuff= 18845 ;; 18846 *) 18847 case $LD in # libtool.m4 will add one of these switches to LD 18848 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18849 libsuff= shlibsuff= libmagic=32-bit;; 18850 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18851 libsuff=32 shlibsuff=N32 libmagic=N32;; 18852 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18853 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18854 *) libsuff= shlibsuff= libmagic=never-match;; 18855 esac 18856 ;; 18857 esac 18858 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18859 shlibpath_overrides_runpath=no 18860 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18861 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18862 hardcode_into_libs=yes 18863 ;; 18864 18865# No shared lib support for Linux oldld, aout, or coff. 18866linux*oldld* | linux*aout* | linux*coff*) 18867 dynamic_linker=no 18868 ;; 18869 18870# This must be Linux ELF. 18871linux* | k*bsd*-gnu) 18872 version_type=linux 18873 need_lib_prefix=no 18874 need_version=no 18875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18876 soname_spec='${libname}${release}${shared_ext}$major' 18877 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18878 shlibpath_var=LD_LIBRARY_PATH 18879 shlibpath_overrides_runpath=no 18880 # This implies no fast_install, which is unacceptable. 18881 # Some rework will be needed to allow for fast_install 18882 # before this can be enabled. 18883 hardcode_into_libs=yes 18884 18885 # Append ld.so.conf contents to the search path 18886 if test -f /etc/ld.so.conf; then 18887 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' ' '` 18888 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18889 fi 18890 18891 # We used to test for /lib/ld.so.1 and disable shared libraries on 18892 # powerpc, because MkLinux only supported shared libraries with the 18893 # GNU dynamic linker. Since this was broken with cross compilers, 18894 # most powerpc-linux boxes support dynamic linking these days and 18895 # people can always --disable-shared, the test was removed, and we 18896 # assume the GNU/Linux dynamic linker is in use. 18897 dynamic_linker='GNU/Linux ld.so' 18898 ;; 18899 18900netbsd*) 18901 version_type=sunos 18902 need_lib_prefix=no 18903 need_version=no 18904 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18906 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18907 dynamic_linker='NetBSD (a.out) ld.so' 18908 else 18909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18910 soname_spec='${libname}${release}${shared_ext}$major' 18911 dynamic_linker='NetBSD ld.elf_so' 18912 fi 18913 shlibpath_var=LD_LIBRARY_PATH 18914 shlibpath_overrides_runpath=yes 18915 hardcode_into_libs=yes 18916 ;; 18917 18918newsos6) 18919 version_type=linux 18920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18921 shlibpath_var=LD_LIBRARY_PATH 18922 shlibpath_overrides_runpath=yes 18923 ;; 18924 18925nto-qnx*) 18926 version_type=linux 18927 need_lib_prefix=no 18928 need_version=no 18929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18930 soname_spec='${libname}${release}${shared_ext}$major' 18931 shlibpath_var=LD_LIBRARY_PATH 18932 shlibpath_overrides_runpath=yes 18933 ;; 18934 18935openbsd*) 18936 version_type=sunos 18937 sys_lib_dlsearch_path_spec="/usr/lib" 18938 need_lib_prefix=no 18939 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18940 case $host_os in 18941 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18942 *) need_version=no ;; 18943 esac 18944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18945 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18946 shlibpath_var=LD_LIBRARY_PATH 18947 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18948 case $host_os in 18949 openbsd2.[89] | openbsd2.[89].*) 18950 shlibpath_overrides_runpath=no 18951 ;; 18952 *) 18953 shlibpath_overrides_runpath=yes 18954 ;; 18955 esac 18956 else 18957 shlibpath_overrides_runpath=yes 18958 fi 18959 ;; 18960 18961os2*) 18962 libname_spec='$name' 18963 shrext_cmds=".dll" 18964 need_lib_prefix=no 18965 library_names_spec='$libname${shared_ext} $libname.a' 18966 dynamic_linker='OS/2 ld.exe' 18967 shlibpath_var=LIBPATH 18968 ;; 18969 18970osf3* | osf4* | osf5*) 18971 version_type=osf 18972 need_lib_prefix=no 18973 need_version=no 18974 soname_spec='${libname}${release}${shared_ext}$major' 18975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18976 shlibpath_var=LD_LIBRARY_PATH 18977 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18978 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18979 ;; 18980 18981rdos*) 18982 dynamic_linker=no 18983 ;; 18984 18985solaris*) 18986 version_type=linux 18987 need_lib_prefix=no 18988 need_version=no 18989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18990 soname_spec='${libname}${release}${shared_ext}$major' 18991 shlibpath_var=LD_LIBRARY_PATH 18992 shlibpath_overrides_runpath=yes 18993 hardcode_into_libs=yes 18994 # ldd complains unless libraries are executable 18995 postinstall_cmds='chmod +x $lib' 18996 ;; 18997 18998sunos4*) 18999 version_type=sunos 19000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19001 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 19002 shlibpath_var=LD_LIBRARY_PATH 19003 shlibpath_overrides_runpath=yes 19004 if test "$with_gnu_ld" = yes; then 19005 need_lib_prefix=no 19006 fi 19007 need_version=yes 19008 ;; 19009 19010sysv4 | sysv4.3*) 19011 version_type=linux 19012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19013 soname_spec='${libname}${release}${shared_ext}$major' 19014 shlibpath_var=LD_LIBRARY_PATH 19015 case $host_vendor in 19016 sni) 19017 shlibpath_overrides_runpath=no 19018 need_lib_prefix=no 19019 export_dynamic_flag_spec='${wl}-Blargedynsym' 19020 runpath_var=LD_RUN_PATH 19021 ;; 19022 siemens) 19023 need_lib_prefix=no 19024 ;; 19025 motorola) 19026 need_lib_prefix=no 19027 need_version=no 19028 shlibpath_overrides_runpath=no 19029 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 19030 ;; 19031 esac 19032 ;; 19033 19034sysv4*MP*) 19035 if test -d /usr/nec ;then 19036 version_type=linux 19037 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 19038 soname_spec='$libname${shared_ext}.$major' 19039 shlibpath_var=LD_LIBRARY_PATH 19040 fi 19041 ;; 19042 19043sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 19044 version_type=freebsd-elf 19045 need_lib_prefix=no 19046 need_version=no 19047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 19048 soname_spec='${libname}${release}${shared_ext}$major' 19049 shlibpath_var=LD_LIBRARY_PATH 19050 hardcode_into_libs=yes 19051 if test "$with_gnu_ld" = yes; then 19052 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 19053 shlibpath_overrides_runpath=no 19054 else 19055 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 19056 shlibpath_overrides_runpath=yes 19057 case $host_os in 19058 sco3.2v5*) 19059 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 19060 ;; 19061 esac 19062 fi 19063 sys_lib_dlsearch_path_spec='/usr/lib' 19064 ;; 19065 19066uts4*) 19067 version_type=linux 19068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19069 soname_spec='${libname}${release}${shared_ext}$major' 19070 shlibpath_var=LD_LIBRARY_PATH 19071 ;; 19072 19073*) 19074 dynamic_linker=no 19075 ;; 19076esac 19077{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 19078$as_echo "$dynamic_linker" >&6; } 19079test "$dynamic_linker" = no && can_build_shared=no 19080 19081if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 19082 $as_echo_n "(cached) " >&6 19083else 19084 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 19085fi 19086 19087sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 19088if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 19089 $as_echo_n "(cached) " >&6 19090else 19091 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 19092fi 19093 19094sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 19095 19096variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 19097if test "$GCC" = yes; then 19098 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 19099fi 19100 19101{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 19102$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 19103hardcode_action_GCJ= 19104if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 19105 test -n "$runpath_var_GCJ" || \ 19106 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 19107 19108 # We can hardcode non-existant directories. 19109 if test "$hardcode_direct_GCJ" != no && 19110 # If the only mechanism to avoid hardcoding is shlibpath_var, we 19111 # have to relink, otherwise we might link with an installed library 19112 # when we should be linking with a yet-to-be-installed one 19113 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 19114 test "$hardcode_minus_L_GCJ" != no; then 19115 # Linking always hardcodes the temporary library directory. 19116 hardcode_action_GCJ=relink 19117 else 19118 # We can link without hardcoding, and we can hardcode nonexisting dirs. 19119 hardcode_action_GCJ=immediate 19120 fi 19121else 19122 # We cannot hardcode anything, or else we can only hardcode existing 19123 # directories. 19124 hardcode_action_GCJ=unsupported 19125fi 19126{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 19127$as_echo "$hardcode_action_GCJ" >&6; } 19128 19129if test "$hardcode_action_GCJ" = relink; then 19130 # Fast installation is not supported 19131 enable_fast_install=no 19132elif test "$shlibpath_overrides_runpath" = yes || 19133 test "$enable_shared" = no; then 19134 # Fast installation is not necessary 19135 enable_fast_install=needless 19136fi 19137 19138 19139# The else clause should only fire when bootstrapping the 19140# libtool distribution, otherwise you forgot to ship ltmain.sh 19141# with your package, and you will get complaints that there are 19142# no rules to generate ltmain.sh. 19143if test -f "$ltmain"; then 19144 # See if we are running on zsh, and set the options which allow our commands through 19145 # without removal of \ escapes. 19146 if test -n "${ZSH_VERSION+set}" ; then 19147 setopt NO_GLOB_SUBST 19148 fi 19149 # Now quote all the things that may contain metacharacters while being 19150 # careful not to overquote the AC_SUBSTed values. We take copies of the 19151 # variables and quote the copies for generation of the libtool script. 19152 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19153 SED SHELL STRIP \ 19154 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19155 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19156 deplibs_check_method reload_flag reload_cmds need_locks \ 19157 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19158 lt_cv_sys_global_symbol_to_c_name_address \ 19159 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19160 old_postinstall_cmds old_postuninstall_cmds \ 19161 compiler_GCJ \ 19162 CC_GCJ \ 19163 LD_GCJ \ 19164 lt_prog_compiler_wl_GCJ \ 19165 lt_prog_compiler_pic_GCJ \ 19166 lt_prog_compiler_static_GCJ \ 19167 lt_prog_compiler_no_builtin_flag_GCJ \ 19168 export_dynamic_flag_spec_GCJ \ 19169 thread_safe_flag_spec_GCJ \ 19170 whole_archive_flag_spec_GCJ \ 19171 enable_shared_with_static_runtimes_GCJ \ 19172 old_archive_cmds_GCJ \ 19173 old_archive_from_new_cmds_GCJ \ 19174 predep_objects_GCJ \ 19175 postdep_objects_GCJ \ 19176 predeps_GCJ \ 19177 postdeps_GCJ \ 19178 compiler_lib_search_path_GCJ \ 19179 compiler_lib_search_dirs_GCJ \ 19180 archive_cmds_GCJ \ 19181 archive_expsym_cmds_GCJ \ 19182 postinstall_cmds_GCJ \ 19183 postuninstall_cmds_GCJ \ 19184 old_archive_from_expsyms_cmds_GCJ \ 19185 allow_undefined_flag_GCJ \ 19186 no_undefined_flag_GCJ \ 19187 export_symbols_cmds_GCJ \ 19188 hardcode_libdir_flag_spec_GCJ \ 19189 hardcode_libdir_flag_spec_ld_GCJ \ 19190 hardcode_libdir_separator_GCJ \ 19191 hardcode_automatic_GCJ \ 19192 module_cmds_GCJ \ 19193 module_expsym_cmds_GCJ \ 19194 lt_cv_prog_compiler_c_o_GCJ \ 19195 fix_srcfile_path_GCJ \ 19196 exclude_expsyms_GCJ \ 19197 include_expsyms_GCJ; do 19198 19199 case $var in 19200 old_archive_cmds_GCJ | \ 19201 old_archive_from_new_cmds_GCJ | \ 19202 archive_cmds_GCJ | \ 19203 archive_expsym_cmds_GCJ | \ 19204 module_cmds_GCJ | \ 19205 module_expsym_cmds_GCJ | \ 19206 old_archive_from_expsyms_cmds_GCJ | \ 19207 export_symbols_cmds_GCJ | \ 19208 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19209 postinstall_cmds | postuninstall_cmds | \ 19210 old_postinstall_cmds | old_postuninstall_cmds | \ 19211 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19212 # Double-quote double-evaled strings. 19213 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19214 ;; 19215 *) 19216 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19217 ;; 19218 esac 19219 done 19220 19221 case $lt_echo in 19222 *'\$0 --fallback-echo"') 19223 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19224 ;; 19225 esac 19226 19227cfgfile="$ofile" 19228 19229 cat <<__EOF__ >> "$cfgfile" 19230# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19231 19232# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19233 19234# Shell to use when invoking shell scripts. 19235SHELL=$lt_SHELL 19236 19237# Whether or not to build shared libraries. 19238build_libtool_libs=$enable_shared 19239 19240# Whether or not to build static libraries. 19241build_old_libs=$enable_static 19242 19243# Whether or not to add -lc for building shared libraries. 19244build_libtool_need_lc=$archive_cmds_need_lc_GCJ 19245 19246# Whether or not to disallow shared libs when runtime libs are static 19247allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 19248 19249# Whether or not to optimize for fast installation. 19250fast_install=$enable_fast_install 19251 19252# The host system. 19253host_alias=$host_alias 19254host=$host 19255host_os=$host_os 19256 19257# The build system. 19258build_alias=$build_alias 19259build=$build 19260build_os=$build_os 19261 19262# An echo program that does not interpret backslashes. 19263echo=$lt_echo 19264 19265# The archiver. 19266AR=$lt_AR 19267AR_FLAGS=$lt_AR_FLAGS 19268 19269# A C compiler. 19270LTCC=$lt_LTCC 19271 19272# LTCC compiler flags. 19273LTCFLAGS=$lt_LTCFLAGS 19274 19275# A language-specific compiler. 19276CC=$lt_compiler_GCJ 19277 19278# Is the compiler the GNU C compiler? 19279with_gcc=$GCC_GCJ 19280 19281# An ERE matcher. 19282EGREP=$lt_EGREP 19283 19284# The linker used to build libraries. 19285LD=$lt_LD_GCJ 19286 19287# Whether we need hard or soft links. 19288LN_S=$lt_LN_S 19289 19290# A BSD-compatible nm program. 19291NM=$lt_NM 19292 19293# A symbol stripping program 19294STRIP=$lt_STRIP 19295 19296# Used to examine libraries when file_magic_cmd begins "file" 19297MAGIC_CMD=$MAGIC_CMD 19298 19299# Used on cygwin: DLL creation program. 19300DLLTOOL="$DLLTOOL" 19301 19302# Used on cygwin: object dumper. 19303OBJDUMP="$OBJDUMP" 19304 19305# Used on cygwin: assembler. 19306AS="$AS" 19307 19308# The name of the directory that contains temporary libtool files. 19309objdir=$objdir 19310 19311# How to create reloadable object files. 19312reload_flag=$lt_reload_flag 19313reload_cmds=$lt_reload_cmds 19314 19315# How to pass a linker flag through the compiler. 19316wl=$lt_lt_prog_compiler_wl_GCJ 19317 19318# Object file suffix (normally "o"). 19319objext="$ac_objext" 19320 19321# Old archive suffix (normally "a"). 19322libext="$libext" 19323 19324# Shared library suffix (normally ".so"). 19325shrext_cmds='$shrext_cmds' 19326 19327# Executable file suffix (normally ""). 19328exeext="$exeext" 19329 19330# Additional compiler flags for building library objects. 19331pic_flag=$lt_lt_prog_compiler_pic_GCJ 19332pic_mode=$pic_mode 19333 19334# What is the maximum length of a command? 19335max_cmd_len=$lt_cv_sys_max_cmd_len 19336 19337# Does compiler simultaneously support -c and -o options? 19338compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 19339 19340# Must we lock files when doing compilation? 19341need_locks=$lt_need_locks 19342 19343# Do we need the lib prefix for modules? 19344need_lib_prefix=$need_lib_prefix 19345 19346# Do we need a version for libraries? 19347need_version=$need_version 19348 19349# Whether dlopen is supported. 19350dlopen_support=$enable_dlopen 19351 19352# Whether dlopen of programs is supported. 19353dlopen_self=$enable_dlopen_self 19354 19355# Whether dlopen of statically linked programs is supported. 19356dlopen_self_static=$enable_dlopen_self_static 19357 19358# Compiler flag to prevent dynamic linking. 19359link_static_flag=$lt_lt_prog_compiler_static_GCJ 19360 19361# Compiler flag to turn off builtin functions. 19362no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19363 19364# Compiler flag to allow reflexive dlopens. 19365export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19366 19367# Compiler flag to generate shared objects directly from archives. 19368whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19369 19370# Compiler flag to generate thread-safe objects. 19371thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19372 19373# Library versioning type. 19374version_type=$version_type 19375 19376# Format of library name prefix. 19377libname_spec=$lt_libname_spec 19378 19379# List of archive names. First name is the real one, the rest are links. 19380# The last name is the one that the linker finds with -lNAME. 19381library_names_spec=$lt_library_names_spec 19382 19383# The coded name of the library, if different from the real name. 19384soname_spec=$lt_soname_spec 19385 19386# Commands used to build and install an old-style archive. 19387RANLIB=$lt_RANLIB 19388old_archive_cmds=$lt_old_archive_cmds_GCJ 19389old_postinstall_cmds=$lt_old_postinstall_cmds 19390old_postuninstall_cmds=$lt_old_postuninstall_cmds 19391 19392# Create an old-style archive from a shared archive. 19393old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19394 19395# Create a temporary old-style archive to link instead of a shared archive. 19396old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19397 19398# Commands used to build and install a shared archive. 19399archive_cmds=$lt_archive_cmds_GCJ 19400archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19401postinstall_cmds=$lt_postinstall_cmds 19402postuninstall_cmds=$lt_postuninstall_cmds 19403 19404# Commands used to build a loadable module (assumed same as above if empty) 19405module_cmds=$lt_module_cmds_GCJ 19406module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19407 19408# Commands to strip libraries. 19409old_striplib=$lt_old_striplib 19410striplib=$lt_striplib 19411 19412# Dependencies to place before the objects being linked to create a 19413# shared library. 19414predep_objects=$lt_predep_objects_GCJ 19415 19416# Dependencies to place after the objects being linked to create a 19417# shared library. 19418postdep_objects=$lt_postdep_objects_GCJ 19419 19420# Dependencies to place before the objects being linked to create a 19421# shared library. 19422predeps=$lt_predeps_GCJ 19423 19424# Dependencies to place after the objects being linked to create a 19425# shared library. 19426postdeps=$lt_postdeps_GCJ 19427 19428# The directories searched by this compiler when creating a shared 19429# library 19430compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ 19431 19432# The library search path used internally by the compiler when linking 19433# a shared library. 19434compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19435 19436# Method to check whether dependent libraries are shared objects. 19437deplibs_check_method=$lt_deplibs_check_method 19438 19439# Command to use when deplibs_check_method == file_magic. 19440file_magic_cmd=$lt_file_magic_cmd 19441 19442# Flag that allows shared libraries with undefined symbols to be built. 19443allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19444 19445# Flag that forces no undefined symbols. 19446no_undefined_flag=$lt_no_undefined_flag_GCJ 19447 19448# Commands used to finish a libtool library installation in a directory. 19449finish_cmds=$lt_finish_cmds 19450 19451# Same as above, but a single script fragment to be evaled but not shown. 19452finish_eval=$lt_finish_eval 19453 19454# Take the output of nm and produce a listing of raw symbols and C names. 19455global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19456 19457# Transform the output of nm in a proper C declaration 19458global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19459 19460# Transform the output of nm in a C name address pair 19461global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19462 19463# This is the shared library runtime path variable. 19464runpath_var=$runpath_var 19465 19466# This is the shared library path variable. 19467shlibpath_var=$shlibpath_var 19468 19469# Is shlibpath searched before the hard-coded library search path? 19470shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19471 19472# How to hardcode a shared library path into an executable. 19473hardcode_action=$hardcode_action_GCJ 19474 19475# Whether we should hardcode library paths into libraries. 19476hardcode_into_libs=$hardcode_into_libs 19477 19478# Flag to hardcode \$libdir into a binary during linking. 19479# This must work even if \$libdir does not exist. 19480hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19481 19482# If ld is used when linking, flag to hardcode \$libdir into 19483# a binary during linking. This must work even if \$libdir does 19484# not exist. 19485hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19486 19487# Whether we need a single -rpath flag with a separated argument. 19488hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19489 19490# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19491# resulting binary. 19492hardcode_direct=$hardcode_direct_GCJ 19493 19494# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19495# resulting binary. 19496hardcode_minus_L=$hardcode_minus_L_GCJ 19497 19498# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19499# the resulting binary. 19500hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19501 19502# Set to yes if building a shared library automatically hardcodes DIR into the library 19503# and all subsequent libraries and executables linked against it. 19504hardcode_automatic=$hardcode_automatic_GCJ 19505 19506# Variables whose values should be saved in libtool wrapper scripts and 19507# restored at relink time. 19508variables_saved_for_relink="$variables_saved_for_relink" 19509 19510# Whether libtool must link a program against all its dependency libraries. 19511link_all_deplibs=$link_all_deplibs_GCJ 19512 19513# Compile-time system search path for libraries 19514sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19515 19516# Run-time system search path for libraries 19517sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19518 19519# Fix the shell variable \$srcfile for the compiler. 19520fix_srcfile_path=$lt_fix_srcfile_path 19521 19522# Set to yes if exported symbols are required. 19523always_export_symbols=$always_export_symbols_GCJ 19524 19525# The commands to list exported symbols. 19526export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19527 19528# The commands to extract the exported symbol list from a shared archive. 19529extract_expsyms_cmds=$lt_extract_expsyms_cmds 19530 19531# Symbols that should not be listed in the preloaded symbols. 19532exclude_expsyms=$lt_exclude_expsyms_GCJ 19533 19534# Symbols that must always be exported. 19535include_expsyms=$lt_include_expsyms_GCJ 19536 19537# ### END LIBTOOL TAG CONFIG: $tagname 19538 19539__EOF__ 19540 19541 19542else 19543 # If there is no Makefile yet, we rely on a make rule to execute 19544 # `config.status --recheck' to rerun these tests and create the 19545 # libtool script then. 19546 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19547 if test -f "$ltmain_in"; then 19548 test -f Makefile && make "$ltmain" 19549 fi 19550fi 19551 19552 19553ac_ext=c 19554ac_cpp='$CPP $CPPFLAGS' 19555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19557ac_compiler_gnu=$ac_cv_c_compiler_gnu 19558 19559CC="$lt_save_CC" 19560 19561 else 19562 tagname="" 19563 fi 19564 ;; 19565 19566 RC) 19567 19568 19569# Source file extension for RC test sources. 19570ac_ext=rc 19571 19572# Object file extension for compiled RC test sources. 19573objext=o 19574objext_RC=$objext 19575 19576# Code to be used in simple compile tests 19577lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 19578 19579# Code to be used in simple link tests 19580lt_simple_link_test_code="$lt_simple_compile_test_code" 19581 19582# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19583 19584# If no C compiler was specified, use CC. 19585LTCC=${LTCC-"$CC"} 19586 19587# If no C compiler flags were specified, use CFLAGS. 19588LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19589 19590# Allow CC to be a program name with arguments. 19591compiler=$CC 19592 19593 19594# save warnings/boilerplate of simple test code 19595ac_outfile=conftest.$ac_objext 19596echo "$lt_simple_compile_test_code" >conftest.$ac_ext 19597eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19598_lt_compiler_boilerplate=`cat conftest.err` 19599$rm conftest* 19600 19601ac_outfile=conftest.$ac_objext 19602echo "$lt_simple_link_test_code" >conftest.$ac_ext 19603eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19604_lt_linker_boilerplate=`cat conftest.err` 19605$rm -r conftest* 19606 19607 19608# Allow CC to be a program name with arguments. 19609lt_save_CC="$CC" 19610CC=${RC-"windres"} 19611compiler=$CC 19612compiler_RC=$CC 19613for cc_temp in $compiler""; do 19614 case $cc_temp in 19615 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19616 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19617 \-*) ;; 19618 *) break;; 19619 esac 19620done 19621cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19622 19623lt_cv_prog_compiler_c_o_RC=yes 19624 19625# The else clause should only fire when bootstrapping the 19626# libtool distribution, otherwise you forgot to ship ltmain.sh 19627# with your package, and you will get complaints that there are 19628# no rules to generate ltmain.sh. 19629if test -f "$ltmain"; then 19630 # See if we are running on zsh, and set the options which allow our commands through 19631 # without removal of \ escapes. 19632 if test -n "${ZSH_VERSION+set}" ; then 19633 setopt NO_GLOB_SUBST 19634 fi 19635 # Now quote all the things that may contain metacharacters while being 19636 # careful not to overquote the AC_SUBSTed values. We take copies of the 19637 # variables and quote the copies for generation of the libtool script. 19638 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19639 SED SHELL STRIP \ 19640 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19641 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19642 deplibs_check_method reload_flag reload_cmds need_locks \ 19643 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19644 lt_cv_sys_global_symbol_to_c_name_address \ 19645 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19646 old_postinstall_cmds old_postuninstall_cmds \ 19647 compiler_RC \ 19648 CC_RC \ 19649 LD_RC \ 19650 lt_prog_compiler_wl_RC \ 19651 lt_prog_compiler_pic_RC \ 19652 lt_prog_compiler_static_RC \ 19653 lt_prog_compiler_no_builtin_flag_RC \ 19654 export_dynamic_flag_spec_RC \ 19655 thread_safe_flag_spec_RC \ 19656 whole_archive_flag_spec_RC \ 19657 enable_shared_with_static_runtimes_RC \ 19658 old_archive_cmds_RC \ 19659 old_archive_from_new_cmds_RC \ 19660 predep_objects_RC \ 19661 postdep_objects_RC \ 19662 predeps_RC \ 19663 postdeps_RC \ 19664 compiler_lib_search_path_RC \ 19665 compiler_lib_search_dirs_RC \ 19666 archive_cmds_RC \ 19667 archive_expsym_cmds_RC \ 19668 postinstall_cmds_RC \ 19669 postuninstall_cmds_RC \ 19670 old_archive_from_expsyms_cmds_RC \ 19671 allow_undefined_flag_RC \ 19672 no_undefined_flag_RC \ 19673 export_symbols_cmds_RC \ 19674 hardcode_libdir_flag_spec_RC \ 19675 hardcode_libdir_flag_spec_ld_RC \ 19676 hardcode_libdir_separator_RC \ 19677 hardcode_automatic_RC \ 19678 module_cmds_RC \ 19679 module_expsym_cmds_RC \ 19680 lt_cv_prog_compiler_c_o_RC \ 19681 fix_srcfile_path_RC \ 19682 exclude_expsyms_RC \ 19683 include_expsyms_RC; do 19684 19685 case $var in 19686 old_archive_cmds_RC | \ 19687 old_archive_from_new_cmds_RC | \ 19688 archive_cmds_RC | \ 19689 archive_expsym_cmds_RC | \ 19690 module_cmds_RC | \ 19691 module_expsym_cmds_RC | \ 19692 old_archive_from_expsyms_cmds_RC | \ 19693 export_symbols_cmds_RC | \ 19694 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19695 postinstall_cmds | postuninstall_cmds | \ 19696 old_postinstall_cmds | old_postuninstall_cmds | \ 19697 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19698 # Double-quote double-evaled strings. 19699 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19700 ;; 19701 *) 19702 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19703 ;; 19704 esac 19705 done 19706 19707 case $lt_echo in 19708 *'\$0 --fallback-echo"') 19709 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19710 ;; 19711 esac 19712 19713cfgfile="$ofile" 19714 19715 cat <<__EOF__ >> "$cfgfile" 19716# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19717 19718# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19719 19720# Shell to use when invoking shell scripts. 19721SHELL=$lt_SHELL 19722 19723# Whether or not to build shared libraries. 19724build_libtool_libs=$enable_shared 19725 19726# Whether or not to build static libraries. 19727build_old_libs=$enable_static 19728 19729# Whether or not to add -lc for building shared libraries. 19730build_libtool_need_lc=$archive_cmds_need_lc_RC 19731 19732# Whether or not to disallow shared libs when runtime libs are static 19733allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19734 19735# Whether or not to optimize for fast installation. 19736fast_install=$enable_fast_install 19737 19738# The host system. 19739host_alias=$host_alias 19740host=$host 19741host_os=$host_os 19742 19743# The build system. 19744build_alias=$build_alias 19745build=$build 19746build_os=$build_os 19747 19748# An echo program that does not interpret backslashes. 19749echo=$lt_echo 19750 19751# The archiver. 19752AR=$lt_AR 19753AR_FLAGS=$lt_AR_FLAGS 19754 19755# A C compiler. 19756LTCC=$lt_LTCC 19757 19758# LTCC compiler flags. 19759LTCFLAGS=$lt_LTCFLAGS 19760 19761# A language-specific compiler. 19762CC=$lt_compiler_RC 19763 19764# Is the compiler the GNU C compiler? 19765with_gcc=$GCC_RC 19766 19767# An ERE matcher. 19768EGREP=$lt_EGREP 19769 19770# The linker used to build libraries. 19771LD=$lt_LD_RC 19772 19773# Whether we need hard or soft links. 19774LN_S=$lt_LN_S 19775 19776# A BSD-compatible nm program. 19777NM=$lt_NM 19778 19779# A symbol stripping program 19780STRIP=$lt_STRIP 19781 19782# Used to examine libraries when file_magic_cmd begins "file" 19783MAGIC_CMD=$MAGIC_CMD 19784 19785# Used on cygwin: DLL creation program. 19786DLLTOOL="$DLLTOOL" 19787 19788# Used on cygwin: object dumper. 19789OBJDUMP="$OBJDUMP" 19790 19791# Used on cygwin: assembler. 19792AS="$AS" 19793 19794# The name of the directory that contains temporary libtool files. 19795objdir=$objdir 19796 19797# How to create reloadable object files. 19798reload_flag=$lt_reload_flag 19799reload_cmds=$lt_reload_cmds 19800 19801# How to pass a linker flag through the compiler. 19802wl=$lt_lt_prog_compiler_wl_RC 19803 19804# Object file suffix (normally "o"). 19805objext="$ac_objext" 19806 19807# Old archive suffix (normally "a"). 19808libext="$libext" 19809 19810# Shared library suffix (normally ".so"). 19811shrext_cmds='$shrext_cmds' 19812 19813# Executable file suffix (normally ""). 19814exeext="$exeext" 19815 19816# Additional compiler flags for building library objects. 19817pic_flag=$lt_lt_prog_compiler_pic_RC 19818pic_mode=$pic_mode 19819 19820# What is the maximum length of a command? 19821max_cmd_len=$lt_cv_sys_max_cmd_len 19822 19823# Does compiler simultaneously support -c and -o options? 19824compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19825 19826# Must we lock files when doing compilation? 19827need_locks=$lt_need_locks 19828 19829# Do we need the lib prefix for modules? 19830need_lib_prefix=$need_lib_prefix 19831 19832# Do we need a version for libraries? 19833need_version=$need_version 19834 19835# Whether dlopen is supported. 19836dlopen_support=$enable_dlopen 19837 19838# Whether dlopen of programs is supported. 19839dlopen_self=$enable_dlopen_self 19840 19841# Whether dlopen of statically linked programs is supported. 19842dlopen_self_static=$enable_dlopen_self_static 19843 19844# Compiler flag to prevent dynamic linking. 19845link_static_flag=$lt_lt_prog_compiler_static_RC 19846 19847# Compiler flag to turn off builtin functions. 19848no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19849 19850# Compiler flag to allow reflexive dlopens. 19851export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19852 19853# Compiler flag to generate shared objects directly from archives. 19854whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19855 19856# Compiler flag to generate thread-safe objects. 19857thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19858 19859# Library versioning type. 19860version_type=$version_type 19861 19862# Format of library name prefix. 19863libname_spec=$lt_libname_spec 19864 19865# List of archive names. First name is the real one, the rest are links. 19866# The last name is the one that the linker finds with -lNAME. 19867library_names_spec=$lt_library_names_spec 19868 19869# The coded name of the library, if different from the real name. 19870soname_spec=$lt_soname_spec 19871 19872# Commands used to build and install an old-style archive. 19873RANLIB=$lt_RANLIB 19874old_archive_cmds=$lt_old_archive_cmds_RC 19875old_postinstall_cmds=$lt_old_postinstall_cmds 19876old_postuninstall_cmds=$lt_old_postuninstall_cmds 19877 19878# Create an old-style archive from a shared archive. 19879old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19880 19881# Create a temporary old-style archive to link instead of a shared archive. 19882old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19883 19884# Commands used to build and install a shared archive. 19885archive_cmds=$lt_archive_cmds_RC 19886archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19887postinstall_cmds=$lt_postinstall_cmds 19888postuninstall_cmds=$lt_postuninstall_cmds 19889 19890# Commands used to build a loadable module (assumed same as above if empty) 19891module_cmds=$lt_module_cmds_RC 19892module_expsym_cmds=$lt_module_expsym_cmds_RC 19893 19894# Commands to strip libraries. 19895old_striplib=$lt_old_striplib 19896striplib=$lt_striplib 19897 19898# Dependencies to place before the objects being linked to create a 19899# shared library. 19900predep_objects=$lt_predep_objects_RC 19901 19902# Dependencies to place after the objects being linked to create a 19903# shared library. 19904postdep_objects=$lt_postdep_objects_RC 19905 19906# Dependencies to place before the objects being linked to create a 19907# shared library. 19908predeps=$lt_predeps_RC 19909 19910# Dependencies to place after the objects being linked to create a 19911# shared library. 19912postdeps=$lt_postdeps_RC 19913 19914# The directories searched by this compiler when creating a shared 19915# library 19916compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC 19917 19918# The library search path used internally by the compiler when linking 19919# a shared library. 19920compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19921 19922# Method to check whether dependent libraries are shared objects. 19923deplibs_check_method=$lt_deplibs_check_method 19924 19925# Command to use when deplibs_check_method == file_magic. 19926file_magic_cmd=$lt_file_magic_cmd 19927 19928# Flag that allows shared libraries with undefined symbols to be built. 19929allow_undefined_flag=$lt_allow_undefined_flag_RC 19930 19931# Flag that forces no undefined symbols. 19932no_undefined_flag=$lt_no_undefined_flag_RC 19933 19934# Commands used to finish a libtool library installation in a directory. 19935finish_cmds=$lt_finish_cmds 19936 19937# Same as above, but a single script fragment to be evaled but not shown. 19938finish_eval=$lt_finish_eval 19939 19940# Take the output of nm and produce a listing of raw symbols and C names. 19941global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19942 19943# Transform the output of nm in a proper C declaration 19944global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19945 19946# Transform the output of nm in a C name address pair 19947global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19948 19949# This is the shared library runtime path variable. 19950runpath_var=$runpath_var 19951 19952# This is the shared library path variable. 19953shlibpath_var=$shlibpath_var 19954 19955# Is shlibpath searched before the hard-coded library search path? 19956shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19957 19958# How to hardcode a shared library path into an executable. 19959hardcode_action=$hardcode_action_RC 19960 19961# Whether we should hardcode library paths into libraries. 19962hardcode_into_libs=$hardcode_into_libs 19963 19964# Flag to hardcode \$libdir into a binary during linking. 19965# This must work even if \$libdir does not exist. 19966hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19967 19968# If ld is used when linking, flag to hardcode \$libdir into 19969# a binary during linking. This must work even if \$libdir does 19970# not exist. 19971hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19972 19973# Whether we need a single -rpath flag with a separated argument. 19974hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19975 19976# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19977# resulting binary. 19978hardcode_direct=$hardcode_direct_RC 19979 19980# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19981# resulting binary. 19982hardcode_minus_L=$hardcode_minus_L_RC 19983 19984# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19985# the resulting binary. 19986hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19987 19988# Set to yes if building a shared library automatically hardcodes DIR into the library 19989# and all subsequent libraries and executables linked against it. 19990hardcode_automatic=$hardcode_automatic_RC 19991 19992# Variables whose values should be saved in libtool wrapper scripts and 19993# restored at relink time. 19994variables_saved_for_relink="$variables_saved_for_relink" 19995 19996# Whether libtool must link a program against all its dependency libraries. 19997link_all_deplibs=$link_all_deplibs_RC 19998 19999# Compile-time system search path for libraries 20000sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20001 20002# Run-time system search path for libraries 20003sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20004 20005# Fix the shell variable \$srcfile for the compiler. 20006fix_srcfile_path=$lt_fix_srcfile_path 20007 20008# Set to yes if exported symbols are required. 20009always_export_symbols=$always_export_symbols_RC 20010 20011# The commands to list exported symbols. 20012export_symbols_cmds=$lt_export_symbols_cmds_RC 20013 20014# The commands to extract the exported symbol list from a shared archive. 20015extract_expsyms_cmds=$lt_extract_expsyms_cmds 20016 20017# Symbols that should not be listed in the preloaded symbols. 20018exclude_expsyms=$lt_exclude_expsyms_RC 20019 20020# Symbols that must always be exported. 20021include_expsyms=$lt_include_expsyms_RC 20022 20023# ### END LIBTOOL TAG CONFIG: $tagname 20024 20025__EOF__ 20026 20027 20028else 20029 # If there is no Makefile yet, we rely on a make rule to execute 20030 # `config.status --recheck' to rerun these tests and create the 20031 # libtool script then. 20032 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 20033 if test -f "$ltmain_in"; then 20034 test -f Makefile && make "$ltmain" 20035 fi 20036fi 20037 20038 20039ac_ext=c 20040ac_cpp='$CPP $CPPFLAGS' 20041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20043ac_compiler_gnu=$ac_cv_c_compiler_gnu 20044 20045CC="$lt_save_CC" 20046 20047 ;; 20048 20049 *) 20050 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 20051$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 20052 { (exit 1); exit 1; }; } 20053 ;; 20054 esac 20055 20056 # Append the new tag name to the list of available tags. 20057 if test -n "$tagname" ; then 20058 available_tags="$available_tags $tagname" 20059 fi 20060 fi 20061 done 20062 IFS="$lt_save_ifs" 20063 20064 # Now substitute the updated list of available tags. 20065 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 20066 mv "${ofile}T" "$ofile" 20067 chmod +x "$ofile" 20068 else 20069 rm -f "${ofile}T" 20070 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 20071$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 20072 { (exit 1); exit 1; }; } 20073 fi 20074fi 20075 20076 20077 20078# This can be used to rebuild libtool when needed 20079LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 20080 20081# Always use our own libtool. 20082LIBTOOL='$(SHELL) $(top_builddir)/libtool' 20083 20084# Prevent multiple expansion 20085 20086 20087 20088 20089 20090 20091 20092 20093 20094 20095 20096 20097 20098 20099 20100 20101 20102 20103 20104 20105ac_ext=c 20106ac_cpp='$CPP $CPPFLAGS' 20107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20109ac_compiler_gnu=$ac_cv_c_compiler_gnu 20110if test -n "$ac_tool_prefix"; then 20111 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 20112set dummy ${ac_tool_prefix}gcc; ac_word=$2 20113{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20114$as_echo_n "checking for $ac_word... " >&6; } 20115if test "${ac_cv_prog_CC+set}" = set; then 20116 $as_echo_n "(cached) " >&6 20117else 20118 if test -n "$CC"; then 20119 ac_cv_prog_CC="$CC" # Let the user override the test. 20120else 20121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20122for as_dir in $PATH 20123do 20124 IFS=$as_save_IFS 20125 test -z "$as_dir" && as_dir=. 20126 for ac_exec_ext in '' $ac_executable_extensions; do 20127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20128 ac_cv_prog_CC="${ac_tool_prefix}gcc" 20129 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20130 break 2 20131 fi 20132done 20133done 20134IFS=$as_save_IFS 20135 20136fi 20137fi 20138CC=$ac_cv_prog_CC 20139if test -n "$CC"; then 20140 { $as_echo "$as_me:$LINENO: result: $CC" >&5 20141$as_echo "$CC" >&6; } 20142else 20143 { $as_echo "$as_me:$LINENO: result: no" >&5 20144$as_echo "no" >&6; } 20145fi 20146 20147 20148fi 20149if test -z "$ac_cv_prog_CC"; then 20150 ac_ct_CC=$CC 20151 # Extract the first word of "gcc", so it can be a program name with args. 20152set dummy gcc; ac_word=$2 20153{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20154$as_echo_n "checking for $ac_word... " >&6; } 20155if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 20156 $as_echo_n "(cached) " >&6 20157else 20158 if test -n "$ac_ct_CC"; then 20159 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 20160else 20161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20162for as_dir in $PATH 20163do 20164 IFS=$as_save_IFS 20165 test -z "$as_dir" && as_dir=. 20166 for ac_exec_ext in '' $ac_executable_extensions; do 20167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20168 ac_cv_prog_ac_ct_CC="gcc" 20169 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20170 break 2 20171 fi 20172done 20173done 20174IFS=$as_save_IFS 20175 20176fi 20177fi 20178ac_ct_CC=$ac_cv_prog_ac_ct_CC 20179if test -n "$ac_ct_CC"; then 20180 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 20181$as_echo "$ac_ct_CC" >&6; } 20182else 20183 { $as_echo "$as_me:$LINENO: result: no" >&5 20184$as_echo "no" >&6; } 20185fi 20186 20187 if test "x$ac_ct_CC" = x; then 20188 CC="" 20189 else 20190 case $cross_compiling:$ac_tool_warned in 20191yes:) 20192{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 20193$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 20194ac_tool_warned=yes ;; 20195esac 20196 CC=$ac_ct_CC 20197 fi 20198else 20199 CC="$ac_cv_prog_CC" 20200fi 20201 20202if test -z "$CC"; then 20203 if test -n "$ac_tool_prefix"; then 20204 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 20205set dummy ${ac_tool_prefix}cc; ac_word=$2 20206{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20207$as_echo_n "checking for $ac_word... " >&6; } 20208if test "${ac_cv_prog_CC+set}" = set; then 20209 $as_echo_n "(cached) " >&6 20210else 20211 if test -n "$CC"; then 20212 ac_cv_prog_CC="$CC" # Let the user override the test. 20213else 20214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20215for as_dir in $PATH 20216do 20217 IFS=$as_save_IFS 20218 test -z "$as_dir" && as_dir=. 20219 for ac_exec_ext in '' $ac_executable_extensions; do 20220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20221 ac_cv_prog_CC="${ac_tool_prefix}cc" 20222 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20223 break 2 20224 fi 20225done 20226done 20227IFS=$as_save_IFS 20228 20229fi 20230fi 20231CC=$ac_cv_prog_CC 20232if test -n "$CC"; then 20233 { $as_echo "$as_me:$LINENO: result: $CC" >&5 20234$as_echo "$CC" >&6; } 20235else 20236 { $as_echo "$as_me:$LINENO: result: no" >&5 20237$as_echo "no" >&6; } 20238fi 20239 20240 20241 fi 20242fi 20243if test -z "$CC"; then 20244 # Extract the first word of "cc", so it can be a program name with args. 20245set dummy cc; ac_word=$2 20246{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20247$as_echo_n "checking for $ac_word... " >&6; } 20248if test "${ac_cv_prog_CC+set}" = set; then 20249 $as_echo_n "(cached) " >&6 20250else 20251 if test -n "$CC"; then 20252 ac_cv_prog_CC="$CC" # Let the user override the test. 20253else 20254 ac_prog_rejected=no 20255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20256for as_dir in $PATH 20257do 20258 IFS=$as_save_IFS 20259 test -z "$as_dir" && as_dir=. 20260 for ac_exec_ext in '' $ac_executable_extensions; do 20261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20262 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 20263 ac_prog_rejected=yes 20264 continue 20265 fi 20266 ac_cv_prog_CC="cc" 20267 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20268 break 2 20269 fi 20270done 20271done 20272IFS=$as_save_IFS 20273 20274if test $ac_prog_rejected = yes; then 20275 # We found a bogon in the path, so make sure we never use it. 20276 set dummy $ac_cv_prog_CC 20277 shift 20278 if test $# != 0; then 20279 # We chose a different compiler from the bogus one. 20280 # However, it has the same basename, so the bogon will be chosen 20281 # first if we set CC to just the basename; use the full file name. 20282 shift 20283 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 20284 fi 20285fi 20286fi 20287fi 20288CC=$ac_cv_prog_CC 20289if test -n "$CC"; then 20290 { $as_echo "$as_me:$LINENO: result: $CC" >&5 20291$as_echo "$CC" >&6; } 20292else 20293 { $as_echo "$as_me:$LINENO: result: no" >&5 20294$as_echo "no" >&6; } 20295fi 20296 20297 20298fi 20299if test -z "$CC"; then 20300 if test -n "$ac_tool_prefix"; then 20301 for ac_prog in cl.exe 20302 do 20303 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 20304set dummy $ac_tool_prefix$ac_prog; ac_word=$2 20305{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20306$as_echo_n "checking for $ac_word... " >&6; } 20307if test "${ac_cv_prog_CC+set}" = set; then 20308 $as_echo_n "(cached) " >&6 20309else 20310 if test -n "$CC"; then 20311 ac_cv_prog_CC="$CC" # Let the user override the test. 20312else 20313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20314for as_dir in $PATH 20315do 20316 IFS=$as_save_IFS 20317 test -z "$as_dir" && as_dir=. 20318 for ac_exec_ext in '' $ac_executable_extensions; do 20319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20320 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 20321 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20322 break 2 20323 fi 20324done 20325done 20326IFS=$as_save_IFS 20327 20328fi 20329fi 20330CC=$ac_cv_prog_CC 20331if test -n "$CC"; then 20332 { $as_echo "$as_me:$LINENO: result: $CC" >&5 20333$as_echo "$CC" >&6; } 20334else 20335 { $as_echo "$as_me:$LINENO: result: no" >&5 20336$as_echo "no" >&6; } 20337fi 20338 20339 20340 test -n "$CC" && break 20341 done 20342fi 20343if test -z "$CC"; then 20344 ac_ct_CC=$CC 20345 for ac_prog in cl.exe 20346do 20347 # Extract the first word of "$ac_prog", so it can be a program name with args. 20348set dummy $ac_prog; ac_word=$2 20349{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20350$as_echo_n "checking for $ac_word... " >&6; } 20351if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 20352 $as_echo_n "(cached) " >&6 20353else 20354 if test -n "$ac_ct_CC"; then 20355 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 20356else 20357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20358for as_dir in $PATH 20359do 20360 IFS=$as_save_IFS 20361 test -z "$as_dir" && as_dir=. 20362 for ac_exec_ext in '' $ac_executable_extensions; do 20363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20364 ac_cv_prog_ac_ct_CC="$ac_prog" 20365 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20366 break 2 20367 fi 20368done 20369done 20370IFS=$as_save_IFS 20371 20372fi 20373fi 20374ac_ct_CC=$ac_cv_prog_ac_ct_CC 20375if test -n "$ac_ct_CC"; then 20376 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 20377$as_echo "$ac_ct_CC" >&6; } 20378else 20379 { $as_echo "$as_me:$LINENO: result: no" >&5 20380$as_echo "no" >&6; } 20381fi 20382 20383 20384 test -n "$ac_ct_CC" && break 20385done 20386 20387 if test "x$ac_ct_CC" = x; then 20388 CC="" 20389 else 20390 case $cross_compiling:$ac_tool_warned in 20391yes:) 20392{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 20393$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 20394ac_tool_warned=yes ;; 20395esac 20396 CC=$ac_ct_CC 20397 fi 20398fi 20399 20400fi 20401 20402 20403test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 20404$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20405{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 20406See \`config.log' for more details." >&5 20407$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 20408See \`config.log' for more details." >&2;} 20409 { (exit 1); exit 1; }; }; } 20410 20411# Provide some information about the compiler. 20412$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 20413set X $ac_compile 20414ac_compiler=$2 20415{ (ac_try="$ac_compiler --version >&5" 20416case "(($ac_try" in 20417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20418 *) ac_try_echo=$ac_try;; 20419esac 20420eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20421$as_echo "$ac_try_echo") >&5 20422 (eval "$ac_compiler --version >&5") 2>&5 20423 ac_status=$? 20424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20425 (exit $ac_status); } 20426{ (ac_try="$ac_compiler -v >&5" 20427case "(($ac_try" in 20428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20429 *) ac_try_echo=$ac_try;; 20430esac 20431eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20432$as_echo "$ac_try_echo") >&5 20433 (eval "$ac_compiler -v >&5") 2>&5 20434 ac_status=$? 20435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20436 (exit $ac_status); } 20437{ (ac_try="$ac_compiler -V >&5" 20438case "(($ac_try" in 20439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20440 *) ac_try_echo=$ac_try;; 20441esac 20442eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20443$as_echo "$ac_try_echo") >&5 20444 (eval "$ac_compiler -V >&5") 2>&5 20445 ac_status=$? 20446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20447 (exit $ac_status); } 20448 20449{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 20450$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 20451if test "${ac_cv_c_compiler_gnu+set}" = set; then 20452 $as_echo_n "(cached) " >&6 20453else 20454 cat >conftest.$ac_ext <<_ACEOF 20455/* confdefs.h. */ 20456_ACEOF 20457cat confdefs.h >>conftest.$ac_ext 20458cat >>conftest.$ac_ext <<_ACEOF 20459/* end confdefs.h. */ 20460 20461int 20462main () 20463{ 20464#ifndef __GNUC__ 20465 choke me 20466#endif 20467 20468 ; 20469 return 0; 20470} 20471_ACEOF 20472rm -f conftest.$ac_objext 20473if { (ac_try="$ac_compile" 20474case "(($ac_try" in 20475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20476 *) ac_try_echo=$ac_try;; 20477esac 20478eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20479$as_echo "$ac_try_echo") >&5 20480 (eval "$ac_compile") 2>conftest.er1 20481 ac_status=$? 20482 grep -v '^ *+' conftest.er1 >conftest.err 20483 rm -f conftest.er1 20484 cat conftest.err >&5 20485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20486 (exit $ac_status); } && { 20487 test -z "$ac_c_werror_flag" || 20488 test ! -s conftest.err 20489 } && test -s conftest.$ac_objext; then 20490 ac_compiler_gnu=yes 20491else 20492 $as_echo "$as_me: failed program was:" >&5 20493sed 's/^/| /' conftest.$ac_ext >&5 20494 20495 ac_compiler_gnu=no 20496fi 20497 20498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20499ac_cv_c_compiler_gnu=$ac_compiler_gnu 20500 20501fi 20502{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 20503$as_echo "$ac_cv_c_compiler_gnu" >&6; } 20504if test $ac_compiler_gnu = yes; then 20505 GCC=yes 20506else 20507 GCC= 20508fi 20509ac_test_CFLAGS=${CFLAGS+set} 20510ac_save_CFLAGS=$CFLAGS 20511{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 20512$as_echo_n "checking whether $CC accepts -g... " >&6; } 20513if test "${ac_cv_prog_cc_g+set}" = set; then 20514 $as_echo_n "(cached) " >&6 20515else 20516 ac_save_c_werror_flag=$ac_c_werror_flag 20517 ac_c_werror_flag=yes 20518 ac_cv_prog_cc_g=no 20519 CFLAGS="-g" 20520 cat >conftest.$ac_ext <<_ACEOF 20521/* confdefs.h. */ 20522_ACEOF 20523cat confdefs.h >>conftest.$ac_ext 20524cat >>conftest.$ac_ext <<_ACEOF 20525/* end confdefs.h. */ 20526 20527int 20528main () 20529{ 20530 20531 ; 20532 return 0; 20533} 20534_ACEOF 20535rm -f conftest.$ac_objext 20536if { (ac_try="$ac_compile" 20537case "(($ac_try" in 20538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20539 *) ac_try_echo=$ac_try;; 20540esac 20541eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20542$as_echo "$ac_try_echo") >&5 20543 (eval "$ac_compile") 2>conftest.er1 20544 ac_status=$? 20545 grep -v '^ *+' conftest.er1 >conftest.err 20546 rm -f conftest.er1 20547 cat conftest.err >&5 20548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20549 (exit $ac_status); } && { 20550 test -z "$ac_c_werror_flag" || 20551 test ! -s conftest.err 20552 } && test -s conftest.$ac_objext; then 20553 ac_cv_prog_cc_g=yes 20554else 20555 $as_echo "$as_me: failed program was:" >&5 20556sed 's/^/| /' conftest.$ac_ext >&5 20557 20558 CFLAGS="" 20559 cat >conftest.$ac_ext <<_ACEOF 20560/* confdefs.h. */ 20561_ACEOF 20562cat confdefs.h >>conftest.$ac_ext 20563cat >>conftest.$ac_ext <<_ACEOF 20564/* end confdefs.h. */ 20565 20566int 20567main () 20568{ 20569 20570 ; 20571 return 0; 20572} 20573_ACEOF 20574rm -f conftest.$ac_objext 20575if { (ac_try="$ac_compile" 20576case "(($ac_try" in 20577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20578 *) ac_try_echo=$ac_try;; 20579esac 20580eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20581$as_echo "$ac_try_echo") >&5 20582 (eval "$ac_compile") 2>conftest.er1 20583 ac_status=$? 20584 grep -v '^ *+' conftest.er1 >conftest.err 20585 rm -f conftest.er1 20586 cat conftest.err >&5 20587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20588 (exit $ac_status); } && { 20589 test -z "$ac_c_werror_flag" || 20590 test ! -s conftest.err 20591 } && test -s conftest.$ac_objext; then 20592 : 20593else 20594 $as_echo "$as_me: failed program was:" >&5 20595sed 's/^/| /' conftest.$ac_ext >&5 20596 20597 ac_c_werror_flag=$ac_save_c_werror_flag 20598 CFLAGS="-g" 20599 cat >conftest.$ac_ext <<_ACEOF 20600/* confdefs.h. */ 20601_ACEOF 20602cat confdefs.h >>conftest.$ac_ext 20603cat >>conftest.$ac_ext <<_ACEOF 20604/* end confdefs.h. */ 20605 20606int 20607main () 20608{ 20609 20610 ; 20611 return 0; 20612} 20613_ACEOF 20614rm -f conftest.$ac_objext 20615if { (ac_try="$ac_compile" 20616case "(($ac_try" in 20617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20618 *) ac_try_echo=$ac_try;; 20619esac 20620eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20621$as_echo "$ac_try_echo") >&5 20622 (eval "$ac_compile") 2>conftest.er1 20623 ac_status=$? 20624 grep -v '^ *+' conftest.er1 >conftest.err 20625 rm -f conftest.er1 20626 cat conftest.err >&5 20627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20628 (exit $ac_status); } && { 20629 test -z "$ac_c_werror_flag" || 20630 test ! -s conftest.err 20631 } && test -s conftest.$ac_objext; then 20632 ac_cv_prog_cc_g=yes 20633else 20634 $as_echo "$as_me: failed program was:" >&5 20635sed 's/^/| /' conftest.$ac_ext >&5 20636 20637 20638fi 20639 20640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20641fi 20642 20643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20644fi 20645 20646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20647 ac_c_werror_flag=$ac_save_c_werror_flag 20648fi 20649{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 20650$as_echo "$ac_cv_prog_cc_g" >&6; } 20651if test "$ac_test_CFLAGS" = set; then 20652 CFLAGS=$ac_save_CFLAGS 20653elif test $ac_cv_prog_cc_g = yes; then 20654 if test "$GCC" = yes; then 20655 CFLAGS="-g -O2" 20656 else 20657 CFLAGS="-g" 20658 fi 20659else 20660 if test "$GCC" = yes; then 20661 CFLAGS="-O2" 20662 else 20663 CFLAGS= 20664 fi 20665fi 20666{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 20667$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 20668if test "${ac_cv_prog_cc_c89+set}" = set; then 20669 $as_echo_n "(cached) " >&6 20670else 20671 ac_cv_prog_cc_c89=no 20672ac_save_CC=$CC 20673cat >conftest.$ac_ext <<_ACEOF 20674/* confdefs.h. */ 20675_ACEOF 20676cat confdefs.h >>conftest.$ac_ext 20677cat >>conftest.$ac_ext <<_ACEOF 20678/* end confdefs.h. */ 20679#include <stdarg.h> 20680#include <stdio.h> 20681#include <sys/types.h> 20682#include <sys/stat.h> 20683/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 20684struct buf { int x; }; 20685FILE * (*rcsopen) (struct buf *, struct stat *, int); 20686static char *e (p, i) 20687 char **p; 20688 int i; 20689{ 20690 return p[i]; 20691} 20692static char *f (char * (*g) (char **, int), char **p, ...) 20693{ 20694 char *s; 20695 va_list v; 20696 va_start (v,p); 20697 s = g (p, va_arg (v,int)); 20698 va_end (v); 20699 return s; 20700} 20701 20702/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 20703 function prototypes and stuff, but not '\xHH' hex character constants. 20704 These don't provoke an error unfortunately, instead are silently treated 20705 as 'x'. The following induces an error, until -std is added to get 20706 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 20707 array size at least. It's necessary to write '\x00'==0 to get something 20708 that's true only with -std. */ 20709int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 20710 20711/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 20712 inside strings and character constants. */ 20713#define FOO(x) 'x' 20714int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 20715 20716int test (int i, double x); 20717struct s1 {int (*f) (int a);}; 20718struct s2 {int (*f) (double a);}; 20719int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 20720int argc; 20721char **argv; 20722int 20723main () 20724{ 20725return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 20726 ; 20727 return 0; 20728} 20729_ACEOF 20730for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 20731 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 20732do 20733 CC="$ac_save_CC $ac_arg" 20734 rm -f conftest.$ac_objext 20735if { (ac_try="$ac_compile" 20736case "(($ac_try" in 20737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20738 *) ac_try_echo=$ac_try;; 20739esac 20740eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20741$as_echo "$ac_try_echo") >&5 20742 (eval "$ac_compile") 2>conftest.er1 20743 ac_status=$? 20744 grep -v '^ *+' conftest.er1 >conftest.err 20745 rm -f conftest.er1 20746 cat conftest.err >&5 20747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20748 (exit $ac_status); } && { 20749 test -z "$ac_c_werror_flag" || 20750 test ! -s conftest.err 20751 } && test -s conftest.$ac_objext; then 20752 ac_cv_prog_cc_c89=$ac_arg 20753else 20754 $as_echo "$as_me: failed program was:" >&5 20755sed 's/^/| /' conftest.$ac_ext >&5 20756 20757 20758fi 20759 20760rm -f core conftest.err conftest.$ac_objext 20761 test "x$ac_cv_prog_cc_c89" != "xno" && break 20762done 20763rm -f conftest.$ac_ext 20764CC=$ac_save_CC 20765 20766fi 20767# AC_CACHE_VAL 20768case "x$ac_cv_prog_cc_c89" in 20769 x) 20770 { $as_echo "$as_me:$LINENO: result: none needed" >&5 20771$as_echo "none needed" >&6; } ;; 20772 xno) 20773 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 20774$as_echo "unsupported" >&6; } ;; 20775 *) 20776 CC="$CC $ac_cv_prog_cc_c89" 20777 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 20778$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 20779esac 20780 20781 20782ac_ext=c 20783ac_cpp='$CPP $CPPFLAGS' 20784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20786ac_compiler_gnu=$ac_cv_c_compiler_gnu 20787 20788depcc="$CC" am_compiler_list= 20789 20790{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 20791$as_echo_n "checking dependency style of $depcc... " >&6; } 20792if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 20793 $as_echo_n "(cached) " >&6 20794else 20795 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 20796 # We make a subdir and do the tests there. Otherwise we can end up 20797 # making bogus files that we don't know about and never remove. For 20798 # instance it was reported that on HP-UX the gcc test will end up 20799 # making a dummy file named `D' -- because `-MD' means `put the output 20800 # in D'. 20801 mkdir conftest.dir 20802 # Copy depcomp to subdir because otherwise we won't find it if we're 20803 # using a relative directory. 20804 cp "$am_depcomp" conftest.dir 20805 cd conftest.dir 20806 # We will build objects and dependencies in a subdirectory because 20807 # it helps to detect inapplicable dependency modes. For instance 20808 # both Tru64's cc and ICC support -MD to output dependencies as a 20809 # side effect of compilation, but ICC will put the dependencies in 20810 # the current directory while Tru64 will put them in the object 20811 # directory. 20812 mkdir sub 20813 20814 am_cv_CC_dependencies_compiler_type=none 20815 if test "$am_compiler_list" = ""; then 20816 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 20817 fi 20818 for depmode in $am_compiler_list; do 20819 # Setup a source with many dependencies, because some compilers 20820 # like to wrap large dependency lists on column 80 (with \), and 20821 # we should not choose a depcomp mode which is confused by this. 20822 # 20823 # We need to recreate these files for each test, as the compiler may 20824 # overwrite some of them when testing with obscure command lines. 20825 # This happens at least with the AIX C compiler. 20826 : > sub/conftest.c 20827 for i in 1 2 3 4 5 6; do 20828 echo '#include "conftst'$i'.h"' >> sub/conftest.c 20829 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 20830 # Solaris 8's {/usr,}/bin/sh. 20831 touch sub/conftst$i.h 20832 done 20833 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 20834 20835 case $depmode in 20836 nosideeffect) 20837 # after this tag, mechanisms are not by side-effect, so they'll 20838 # only be used when explicitly requested 20839 if test "x$enable_dependency_tracking" = xyes; then 20840 continue 20841 else 20842 break 20843 fi 20844 ;; 20845 none) break ;; 20846 esac 20847 # We check with `-c' and `-o' for the sake of the "dashmstdout" 20848 # mode. It turns out that the SunPro C++ compiler does not properly 20849 # handle `-M -o', and we need to detect this. 20850 if depmode=$depmode \ 20851 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 20852 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 20853 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 20854 >/dev/null 2>conftest.err && 20855 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 20856 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 20857 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 20858 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 20859 # icc doesn't choke on unknown options, it will just issue warnings 20860 # or remarks (even with -Werror). So we grep stderr for any message 20861 # that says an option was ignored or not supported. 20862 # When given -MP, icc 7.0 and 7.1 complain thusly: 20863 # icc: Command line warning: ignoring option '-M'; no argument required 20864 # The diagnosis changed in icc 8.0: 20865 # icc: Command line remark: option '-MP' not supported 20866 if (grep 'ignoring option' conftest.err || 20867 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 20868 am_cv_CC_dependencies_compiler_type=$depmode 20869 break 20870 fi 20871 fi 20872 done 20873 20874 cd .. 20875 rm -rf conftest.dir 20876else 20877 am_cv_CC_dependencies_compiler_type=none 20878fi 20879 20880fi 20881{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 20882$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 20883CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 20884 20885 if 20886 test "x$enable_dependency_tracking" != xno \ 20887 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 20888 am__fastdepCC_TRUE= 20889 am__fastdepCC_FALSE='#' 20890else 20891 am__fastdepCC_TRUE='#' 20892 am__fastdepCC_FALSE= 20893fi 20894 20895 20896 20897 20898 20899 20900 20901# Check whether --with-xorg-module-dir was given. 20902if test "${with_xorg_module_dir+set}" = set; then 20903 withval=$with_xorg_module_dir; moduledir="$withval" 20904else 20905 moduledir="$libdir/xorg/modules" 20906fi 20907 20908 20909# Checks for extensions 20910 20911 SAVE_CFLAGS="$CFLAGS" 20912 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 20913 cat >conftest.$ac_ext <<_ACEOF 20914/* confdefs.h. */ 20915_ACEOF 20916cat confdefs.h >>conftest.$ac_ext 20917cat >>conftest.$ac_ext <<_ACEOF 20918/* end confdefs.h. */ 20919 20920#include "xorg-server.h" 20921#if !defined RANDR 20922#error RANDR not defined 20923#endif 20924 20925int 20926main () 20927{ 20928 20929 ; 20930 return 0; 20931} 20932_ACEOF 20933rm -f conftest.$ac_objext 20934if { (ac_try="$ac_compile" 20935case "(($ac_try" in 20936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20937 *) ac_try_echo=$ac_try;; 20938esac 20939eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20940$as_echo "$ac_try_echo") >&5 20941 (eval "$ac_compile") 2>conftest.er1 20942 ac_status=$? 20943 grep -v '^ *+' conftest.er1 >conftest.err 20944 rm -f conftest.er1 20945 cat conftest.err >&5 20946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20947 (exit $ac_status); } && { 20948 test -z "$ac_c_werror_flag" || 20949 test ! -s conftest.err 20950 } && test -s conftest.$ac_objext; then 20951 _EXT_CHECK=yes 20952else 20953 $as_echo "$as_me: failed program was:" >&5 20954sed 's/^/| /' conftest.$ac_ext >&5 20955 20956 _EXT_CHECK=no 20957fi 20958 20959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20960 CFLAGS="$SAVE_CFLAGS" 20961 { $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5 20962$as_echo_n "checking if RANDR is defined... " >&6; } 20963 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 20964$as_echo "$_EXT_CHECK" >&6; } 20965 if test "$_EXT_CHECK" != no; then 20966 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 20967 fi 20968 20969 20970 SAVE_CFLAGS="$CFLAGS" 20971 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 20972 cat >conftest.$ac_ext <<_ACEOF 20973/* confdefs.h. */ 20974_ACEOF 20975cat confdefs.h >>conftest.$ac_ext 20976cat >>conftest.$ac_ext <<_ACEOF 20977/* end confdefs.h. */ 20978 20979#include "xorg-server.h" 20980#if !defined RENDER 20981#error RENDER not defined 20982#endif 20983 20984int 20985main () 20986{ 20987 20988 ; 20989 return 0; 20990} 20991_ACEOF 20992rm -f conftest.$ac_objext 20993if { (ac_try="$ac_compile" 20994case "(($ac_try" in 20995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20996 *) ac_try_echo=$ac_try;; 20997esac 20998eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20999$as_echo "$ac_try_echo") >&5 21000 (eval "$ac_compile") 2>conftest.er1 21001 ac_status=$? 21002 grep -v '^ *+' conftest.er1 >conftest.err 21003 rm -f conftest.er1 21004 cat conftest.err >&5 21005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21006 (exit $ac_status); } && { 21007 test -z "$ac_c_werror_flag" || 21008 test ! -s conftest.err 21009 } && test -s conftest.$ac_objext; then 21010 _EXT_CHECK=yes 21011else 21012 $as_echo "$as_me: failed program was:" >&5 21013sed 's/^/| /' conftest.$ac_ext >&5 21014 21015 _EXT_CHECK=no 21016fi 21017 21018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21019 CFLAGS="$SAVE_CFLAGS" 21020 { $as_echo "$as_me:$LINENO: checking if RENDER is defined" >&5 21021$as_echo_n "checking if RENDER is defined... " >&6; } 21022 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 21023$as_echo "$_EXT_CHECK" >&6; } 21024 if test "$_EXT_CHECK" != no; then 21025 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 21026 fi 21027 21028 21029 SAVE_CFLAGS="$CFLAGS" 21030 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 21031 cat >conftest.$ac_ext <<_ACEOF 21032/* confdefs.h. */ 21033_ACEOF 21034cat confdefs.h >>conftest.$ac_ext 21035cat >>conftest.$ac_ext <<_ACEOF 21036/* end confdefs.h. */ 21037 21038#include "xorg-server.h" 21039#if !defined XV 21040#error XV not defined 21041#endif 21042 21043int 21044main () 21045{ 21046 21047 ; 21048 return 0; 21049} 21050_ACEOF 21051rm -f conftest.$ac_objext 21052if { (ac_try="$ac_compile" 21053case "(($ac_try" in 21054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21055 *) ac_try_echo=$ac_try;; 21056esac 21057eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21058$as_echo "$ac_try_echo") >&5 21059 (eval "$ac_compile") 2>conftest.er1 21060 ac_status=$? 21061 grep -v '^ *+' conftest.er1 >conftest.err 21062 rm -f conftest.er1 21063 cat conftest.err >&5 21064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21065 (exit $ac_status); } && { 21066 test -z "$ac_c_werror_flag" || 21067 test ! -s conftest.err 21068 } && test -s conftest.$ac_objext; then 21069 _EXT_CHECK=yes 21070else 21071 $as_echo "$as_me: failed program was:" >&5 21072sed 's/^/| /' conftest.$ac_ext >&5 21073 21074 _EXT_CHECK=no 21075fi 21076 21077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21078 CFLAGS="$SAVE_CFLAGS" 21079 { $as_echo "$as_me:$LINENO: checking if XV is defined" >&5 21080$as_echo_n "checking if XV is defined... " >&6; } 21081 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 21082$as_echo "$_EXT_CHECK" >&6; } 21083 if test "$_EXT_CHECK" != no; then 21084 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 21085 fi 21086 21087 21088 SAVE_CFLAGS="$CFLAGS" 21089 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 21090 cat >conftest.$ac_ext <<_ACEOF 21091/* confdefs.h. */ 21092_ACEOF 21093cat confdefs.h >>conftest.$ac_ext 21094cat >>conftest.$ac_ext <<_ACEOF 21095/* end confdefs.h. */ 21096 21097#include "xorg-server.h" 21098#if !defined DPMSExtension 21099#error DPMSExtension not defined 21100#endif 21101 21102int 21103main () 21104{ 21105 21106 ; 21107 return 0; 21108} 21109_ACEOF 21110rm -f conftest.$ac_objext 21111if { (ac_try="$ac_compile" 21112case "(($ac_try" in 21113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21114 *) ac_try_echo=$ac_try;; 21115esac 21116eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21117$as_echo "$ac_try_echo") >&5 21118 (eval "$ac_compile") 2>conftest.er1 21119 ac_status=$? 21120 grep -v '^ *+' conftest.er1 >conftest.err 21121 rm -f conftest.er1 21122 cat conftest.err >&5 21123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21124 (exit $ac_status); } && { 21125 test -z "$ac_c_werror_flag" || 21126 test ! -s conftest.err 21127 } && test -s conftest.$ac_objext; then 21128 _EXT_CHECK=yes 21129else 21130 $as_echo "$as_me: failed program was:" >&5 21131sed 's/^/| /' conftest.$ac_ext >&5 21132 21133 _EXT_CHECK=no 21134fi 21135 21136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21137 CFLAGS="$SAVE_CFLAGS" 21138 { $as_echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5 21139$as_echo_n "checking if DPMSExtension is defined... " >&6; } 21140 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 21141$as_echo "$_EXT_CHECK" >&6; } 21142 if test "$_EXT_CHECK" != no; then 21143 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 21144 fi 21145 21146 21147# Checks for pkg-config packages 21148 21149 21150if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 21151 if test -n "$ac_tool_prefix"; then 21152 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 21153set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 21154{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 21155$as_echo_n "checking for $ac_word... " >&6; } 21156if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 21157 $as_echo_n "(cached) " >&6 21158else 21159 case $PKG_CONFIG in 21160 [\\/]* | ?:[\\/]*) 21161 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 21162 ;; 21163 *) 21164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21165for as_dir in $PATH 21166do 21167 IFS=$as_save_IFS 21168 test -z "$as_dir" && as_dir=. 21169 for ac_exec_ext in '' $ac_executable_extensions; do 21170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21171 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 21172 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21173 break 2 21174 fi 21175done 21176done 21177IFS=$as_save_IFS 21178 21179 ;; 21180esac 21181fi 21182PKG_CONFIG=$ac_cv_path_PKG_CONFIG 21183if test -n "$PKG_CONFIG"; then 21184 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 21185$as_echo "$PKG_CONFIG" >&6; } 21186else 21187 { $as_echo "$as_me:$LINENO: result: no" >&5 21188$as_echo "no" >&6; } 21189fi 21190 21191 21192fi 21193if test -z "$ac_cv_path_PKG_CONFIG"; then 21194 ac_pt_PKG_CONFIG=$PKG_CONFIG 21195 # Extract the first word of "pkg-config", so it can be a program name with args. 21196set dummy pkg-config; ac_word=$2 21197{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 21198$as_echo_n "checking for $ac_word... " >&6; } 21199if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 21200 $as_echo_n "(cached) " >&6 21201else 21202 case $ac_pt_PKG_CONFIG in 21203 [\\/]* | ?:[\\/]*) 21204 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 21205 ;; 21206 *) 21207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21208for as_dir in $PATH 21209do 21210 IFS=$as_save_IFS 21211 test -z "$as_dir" && as_dir=. 21212 for ac_exec_ext in '' $ac_executable_extensions; do 21213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21214 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 21215 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21216 break 2 21217 fi 21218done 21219done 21220IFS=$as_save_IFS 21221 21222 ;; 21223esac 21224fi 21225ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 21226if test -n "$ac_pt_PKG_CONFIG"; then 21227 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 21228$as_echo "$ac_pt_PKG_CONFIG" >&6; } 21229else 21230 { $as_echo "$as_me:$LINENO: result: no" >&5 21231$as_echo "no" >&6; } 21232fi 21233 21234 if test "x$ac_pt_PKG_CONFIG" = x; then 21235 PKG_CONFIG="" 21236 else 21237 case $cross_compiling:$ac_tool_warned in 21238yes:) 21239{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 21240$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 21241ac_tool_warned=yes ;; 21242esac 21243 PKG_CONFIG=$ac_pt_PKG_CONFIG 21244 fi 21245else 21246 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 21247fi 21248 21249fi 21250if test -n "$PKG_CONFIG"; then 21251 _pkg_min_version=0.9.0 21252 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 21253$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 21254 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 21255 { $as_echo "$as_me:$LINENO: result: yes" >&5 21256$as_echo "yes" >&6; } 21257 else 21258 { $as_echo "$as_me:$LINENO: result: no" >&5 21259$as_echo "no" >&6; } 21260 PKG_CONFIG="" 21261 fi 21262 21263fi 21264 21265pkg_failed=no 21266{ $as_echo "$as_me:$LINENO: checking for XORG" >&5 21267$as_echo_n "checking for XORG... " >&6; } 21268 21269if test -n "$XORG_CFLAGS"; then 21270 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 21271 elif test -n "$PKG_CONFIG"; then 21272 if test -n "$PKG_CONFIG" && \ 21273 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5 21274 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 21275 ac_status=$? 21276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21277 (exit $ac_status); }; then 21278 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 21279else 21280 pkg_failed=yes 21281fi 21282 else 21283 pkg_failed=untried 21284fi 21285if test -n "$XORG_LIBS"; then 21286 pkg_cv_XORG_LIBS="$XORG_LIBS" 21287 elif test -n "$PKG_CONFIG"; then 21288 if test -n "$PKG_CONFIG" && \ 21289 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5 21290 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 21291 ac_status=$? 21292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21293 (exit $ac_status); }; then 21294 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 21295else 21296 pkg_failed=yes 21297fi 21298 else 21299 pkg_failed=untried 21300fi 21301 21302 21303 21304if test $pkg_failed = yes; then 21305 21306if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21307 _pkg_short_errors_supported=yes 21308else 21309 _pkg_short_errors_supported=no 21310fi 21311 if test $_pkg_short_errors_supported = yes; then 21312 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 21313 else 21314 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 21315 fi 21316 # Put the nasty error message in config.log where it belongs 21317 echo "$XORG_PKG_ERRORS" >&5 21318 21319 { { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met: 21320 21321$XORG_PKG_ERRORS 21322 21323Consider adjusting the PKG_CONFIG_PATH environment variable if you 21324installed software in a non-standard prefix. 21325 21326Alternatively, you may set the environment variables XORG_CFLAGS 21327and XORG_LIBS to avoid the need to call pkg-config. 21328See the pkg-config man page for more details. 21329" >&5 21330$as_echo "$as_me: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met: 21331 21332$XORG_PKG_ERRORS 21333 21334Consider adjusting the PKG_CONFIG_PATH environment variable if you 21335installed software in a non-standard prefix. 21336 21337Alternatively, you may set the environment variables XORG_CFLAGS 21338and XORG_LIBS to avoid the need to call pkg-config. 21339See the pkg-config man page for more details. 21340" >&2;} 21341 { (exit 1); exit 1; }; } 21342elif test $pkg_failed = untried; then 21343 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 21344$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21345{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 21346is in your PATH or set the PKG_CONFIG environment variable to the full 21347path to pkg-config. 21348 21349Alternatively, you may set the environment variables XORG_CFLAGS 21350and XORG_LIBS to avoid the need to call pkg-config. 21351See the pkg-config man page for more details. 21352 21353To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21354See \`config.log' for more details." >&5 21355$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 21356is in your PATH or set the PKG_CONFIG environment variable to the full 21357path to pkg-config. 21358 21359Alternatively, you may set the environment variables XORG_CFLAGS 21360and XORG_LIBS to avoid the need to call pkg-config. 21361See the pkg-config man page for more details. 21362 21363To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21364See \`config.log' for more details." >&2;} 21365 { (exit 1); exit 1; }; }; } 21366else 21367 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 21368 XORG_LIBS=$pkg_cv_XORG_LIBS 21369 { $as_echo "$as_me:$LINENO: result: yes" >&5 21370$as_echo "yes" >&6; } 21371 : 21372fi 21373sdkdir=$(pkg-config --variable=sdkdir xorg-server) 21374 21375# Checks for libraries. 21376SAVE_CPPFLAGS="$CPPFLAGS" 21377CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 21378{ $as_echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5 21379$as_echo_n "checking whether XSERVER_LIBPCIACCESS is declared... " >&6; } 21380if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then 21381 $as_echo_n "(cached) " >&6 21382else 21383 cat >conftest.$ac_ext <<_ACEOF 21384/* confdefs.h. */ 21385_ACEOF 21386cat confdefs.h >>conftest.$ac_ext 21387cat >>conftest.$ac_ext <<_ACEOF 21388/* end confdefs.h. */ 21389#include "xorg-server.h" 21390 21391int 21392main () 21393{ 21394#ifndef XSERVER_LIBPCIACCESS 21395 (void) XSERVER_LIBPCIACCESS; 21396#endif 21397 21398 ; 21399 return 0; 21400} 21401_ACEOF 21402rm -f conftest.$ac_objext 21403if { (ac_try="$ac_compile" 21404case "(($ac_try" in 21405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21406 *) ac_try_echo=$ac_try;; 21407esac 21408eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21409$as_echo "$ac_try_echo") >&5 21410 (eval "$ac_compile") 2>conftest.er1 21411 ac_status=$? 21412 grep -v '^ *+' conftest.er1 >conftest.err 21413 rm -f conftest.er1 21414 cat conftest.err >&5 21415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21416 (exit $ac_status); } && { 21417 test -z "$ac_c_werror_flag" || 21418 test ! -s conftest.err 21419 } && test -s conftest.$ac_objext; then 21420 ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes 21421else 21422 $as_echo "$as_me: failed program was:" >&5 21423sed 's/^/| /' conftest.$ac_ext >&5 21424 21425 ac_cv_have_decl_XSERVER_LIBPCIACCESS=no 21426fi 21427 21428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21429fi 21430{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5 21431$as_echo "$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; } 21432if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then 21433 XSERVER_LIBPCIACCESS=yes 21434else 21435 XSERVER_LIBPCIACCESS=no 21436fi 21437 21438{ $as_echo "$as_me:$LINENO: checking for xf86Modes.h" >&5 21439$as_echo_n "checking for xf86Modes.h... " >&6; } 21440if test "${ac_cv_header_xf86Modes_h+set}" = set; then 21441 $as_echo_n "(cached) " >&6 21442else 21443 cat >conftest.$ac_ext <<_ACEOF 21444/* confdefs.h. */ 21445_ACEOF 21446cat confdefs.h >>conftest.$ac_ext 21447cat >>conftest.$ac_ext <<_ACEOF 21448/* end confdefs.h. */ 21449#include "xorg-server.h" 21450 21451#include <xf86Modes.h> 21452_ACEOF 21453rm -f conftest.$ac_objext 21454if { (ac_try="$ac_compile" 21455case "(($ac_try" in 21456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21457 *) ac_try_echo=$ac_try;; 21458esac 21459eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21460$as_echo "$ac_try_echo") >&5 21461 (eval "$ac_compile") 2>conftest.er1 21462 ac_status=$? 21463 grep -v '^ *+' conftest.er1 >conftest.err 21464 rm -f conftest.er1 21465 cat conftest.err >&5 21466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21467 (exit $ac_status); } && { 21468 test -z "$ac_c_werror_flag" || 21469 test ! -s conftest.err 21470 } && test -s conftest.$ac_objext; then 21471 ac_cv_header_xf86Modes_h=yes 21472else 21473 $as_echo "$as_me: failed program was:" >&5 21474sed 's/^/| /' conftest.$ac_ext >&5 21475 21476 ac_cv_header_xf86Modes_h=no 21477fi 21478 21479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21480fi 21481{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf86Modes_h" >&5 21482$as_echo "$ac_cv_header_xf86Modes_h" >&6; } 21483if test "x$ac_cv_header_xf86Modes_h" = x""yes; then 21484 XMODES=yes 21485else 21486 XMODES=no 21487fi 21488 21489 21490CPPFLAGS="$SAVE_CPPFLAGS" 21491 21492# Checks for header files. 21493{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 21494$as_echo_n "checking for ANSI C header files... " >&6; } 21495if test "${ac_cv_header_stdc+set}" = set; then 21496 $as_echo_n "(cached) " >&6 21497else 21498 cat >conftest.$ac_ext <<_ACEOF 21499/* confdefs.h. */ 21500_ACEOF 21501cat confdefs.h >>conftest.$ac_ext 21502cat >>conftest.$ac_ext <<_ACEOF 21503/* end confdefs.h. */ 21504#include <stdlib.h> 21505#include <stdarg.h> 21506#include <string.h> 21507#include <float.h> 21508 21509int 21510main () 21511{ 21512 21513 ; 21514 return 0; 21515} 21516_ACEOF 21517rm -f conftest.$ac_objext 21518if { (ac_try="$ac_compile" 21519case "(($ac_try" in 21520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21521 *) ac_try_echo=$ac_try;; 21522esac 21523eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21524$as_echo "$ac_try_echo") >&5 21525 (eval "$ac_compile") 2>conftest.er1 21526 ac_status=$? 21527 grep -v '^ *+' conftest.er1 >conftest.err 21528 rm -f conftest.er1 21529 cat conftest.err >&5 21530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21531 (exit $ac_status); } && { 21532 test -z "$ac_c_werror_flag" || 21533 test ! -s conftest.err 21534 } && test -s conftest.$ac_objext; then 21535 ac_cv_header_stdc=yes 21536else 21537 $as_echo "$as_me: failed program was:" >&5 21538sed 's/^/| /' conftest.$ac_ext >&5 21539 21540 ac_cv_header_stdc=no 21541fi 21542 21543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21544 21545if test $ac_cv_header_stdc = yes; then 21546 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 21547 cat >conftest.$ac_ext <<_ACEOF 21548/* confdefs.h. */ 21549_ACEOF 21550cat confdefs.h >>conftest.$ac_ext 21551cat >>conftest.$ac_ext <<_ACEOF 21552/* end confdefs.h. */ 21553#include <string.h> 21554 21555_ACEOF 21556if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21557 $EGREP "memchr" >/dev/null 2>&1; then 21558 : 21559else 21560 ac_cv_header_stdc=no 21561fi 21562rm -f conftest* 21563 21564fi 21565 21566if test $ac_cv_header_stdc = yes; then 21567 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 21568 cat >conftest.$ac_ext <<_ACEOF 21569/* confdefs.h. */ 21570_ACEOF 21571cat confdefs.h >>conftest.$ac_ext 21572cat >>conftest.$ac_ext <<_ACEOF 21573/* end confdefs.h. */ 21574#include <stdlib.h> 21575 21576_ACEOF 21577if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21578 $EGREP "free" >/dev/null 2>&1; then 21579 : 21580else 21581 ac_cv_header_stdc=no 21582fi 21583rm -f conftest* 21584 21585fi 21586 21587if test $ac_cv_header_stdc = yes; then 21588 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 21589 if test "$cross_compiling" = yes; then 21590 : 21591else 21592 cat >conftest.$ac_ext <<_ACEOF 21593/* confdefs.h. */ 21594_ACEOF 21595cat confdefs.h >>conftest.$ac_ext 21596cat >>conftest.$ac_ext <<_ACEOF 21597/* end confdefs.h. */ 21598#include <ctype.h> 21599#include <stdlib.h> 21600#if ((' ' & 0x0FF) == 0x020) 21601# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 21602# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 21603#else 21604# define ISLOWER(c) \ 21605 (('a' <= (c) && (c) <= 'i') \ 21606 || ('j' <= (c) && (c) <= 'r') \ 21607 || ('s' <= (c) && (c) <= 'z')) 21608# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 21609#endif 21610 21611#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 21612int 21613main () 21614{ 21615 int i; 21616 for (i = 0; i < 256; i++) 21617 if (XOR (islower (i), ISLOWER (i)) 21618 || toupper (i) != TOUPPER (i)) 21619 return 2; 21620 return 0; 21621} 21622_ACEOF 21623rm -f conftest$ac_exeext 21624if { (ac_try="$ac_link" 21625case "(($ac_try" in 21626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21627 *) ac_try_echo=$ac_try;; 21628esac 21629eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21630$as_echo "$ac_try_echo") >&5 21631 (eval "$ac_link") 2>&5 21632 ac_status=$? 21633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21634 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21635 { (case "(($ac_try" in 21636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21637 *) ac_try_echo=$ac_try;; 21638esac 21639eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21640$as_echo "$ac_try_echo") >&5 21641 (eval "$ac_try") 2>&5 21642 ac_status=$? 21643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21644 (exit $ac_status); }; }; then 21645 : 21646else 21647 $as_echo "$as_me: program exited with status $ac_status" >&5 21648$as_echo "$as_me: failed program was:" >&5 21649sed 's/^/| /' conftest.$ac_ext >&5 21650 21651( exit $ac_status ) 21652ac_cv_header_stdc=no 21653fi 21654rm -rf conftest.dSYM 21655rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21656fi 21657 21658 21659fi 21660fi 21661{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 21662$as_echo "$ac_cv_header_stdc" >&6; } 21663if test $ac_cv_header_stdc = yes; then 21664 21665cat >>confdefs.h <<\_ACEOF 21666#define STDC_HEADERS 1 21667_ACEOF 21668 21669fi 21670 21671 21672if test "x$XSERVER_LIBPCIACCESS" = xyes; then 21673 21674pkg_failed=no 21675{ $as_echo "$as_me:$LINENO: checking for PCIACCESS" >&5 21676$as_echo_n "checking for PCIACCESS... " >&6; } 21677 21678if test -n "$PCIACCESS_CFLAGS"; then 21679 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 21680 elif test -n "$PKG_CONFIG"; then 21681 if test -n "$PKG_CONFIG" && \ 21682 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5 21683 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 21684 ac_status=$? 21685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21686 (exit $ac_status); }; then 21687 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null` 21688else 21689 pkg_failed=yes 21690fi 21691 else 21692 pkg_failed=untried 21693fi 21694if test -n "$PCIACCESS_LIBS"; then 21695 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 21696 elif test -n "$PKG_CONFIG"; then 21697 if test -n "$PKG_CONFIG" && \ 21698 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5 21699 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 21700 ac_status=$? 21701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21702 (exit $ac_status); }; then 21703 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null` 21704else 21705 pkg_failed=yes 21706fi 21707 else 21708 pkg_failed=untried 21709fi 21710 21711 21712 21713if test $pkg_failed = yes; then 21714 21715if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21716 _pkg_short_errors_supported=yes 21717else 21718 _pkg_short_errors_supported=no 21719fi 21720 if test $_pkg_short_errors_supported = yes; then 21721 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1` 21722 else 21723 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1` 21724 fi 21725 # Put the nasty error message in config.log where it belongs 21726 echo "$PCIACCESS_PKG_ERRORS" >&5 21727 21728 { { $as_echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.8.0) were not met: 21729 21730$PCIACCESS_PKG_ERRORS 21731 21732Consider adjusting the PKG_CONFIG_PATH environment variable if you 21733installed software in a non-standard prefix. 21734 21735Alternatively, you may set the environment variables PCIACCESS_CFLAGS 21736and PCIACCESS_LIBS to avoid the need to call pkg-config. 21737See the pkg-config man page for more details. 21738" >&5 21739$as_echo "$as_me: error: Package requirements (pciaccess >= 0.8.0) were not met: 21740 21741$PCIACCESS_PKG_ERRORS 21742 21743Consider adjusting the PKG_CONFIG_PATH environment variable if you 21744installed software in a non-standard prefix. 21745 21746Alternatively, you may set the environment variables PCIACCESS_CFLAGS 21747and PCIACCESS_LIBS to avoid the need to call pkg-config. 21748See the pkg-config man page for more details. 21749" >&2;} 21750 { (exit 1); exit 1; }; } 21751elif test $pkg_failed = untried; then 21752 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 21753$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21754{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 21755is in your PATH or set the PKG_CONFIG environment variable to the full 21756path to pkg-config. 21757 21758Alternatively, you may set the environment variables PCIACCESS_CFLAGS 21759and PCIACCESS_LIBS to avoid the need to call pkg-config. 21760See the pkg-config man page for more details. 21761 21762To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21763See \`config.log' for more details." >&5 21764$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 21765is in your PATH or set the PKG_CONFIG environment variable to the full 21766path to pkg-config. 21767 21768Alternatively, you may set the environment variables PCIACCESS_CFLAGS 21769and PCIACCESS_LIBS to avoid the need to call pkg-config. 21770See the pkg-config man page for more details. 21771 21772To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21773See \`config.log' for more details." >&2;} 21774 { (exit 1); exit 1; }; }; } 21775else 21776 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 21777 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 21778 { $as_echo "$as_me:$LINENO: result: yes" >&5 21779$as_echo "yes" >&6; } 21780 : 21781fi 21782 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS" 21783fi 21784 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 21785 XSERVER_LIBPCIACCESS_TRUE= 21786 XSERVER_LIBPCIACCESS_FALSE='#' 21787else 21788 XSERVER_LIBPCIACCESS_TRUE='#' 21789 XSERVER_LIBPCIACCESS_FALSE= 21790fi 21791 21792 if test "x$XMODES" = xyes; then 21793 XMODES_TRUE= 21794 XMODES_FALSE='#' 21795else 21796 XMODES_TRUE='#' 21797 XMODES_FALSE= 21798fi 21799 21800 21801if test "x$XMODES" = xyes; then 21802 21803cat >>confdefs.h <<\_ACEOF 21804#define HAVE_XMODES 1 21805_ACEOF 21806 21807fi 21808 21809 21810 21811if test "x$GCC" = xyes ; then 21812 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 21813-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 21814-Wbad-function-cast" 21815 case `gcc -dumpversion` in 21816 3.4.* | 4.*) 21817 CWARNFLAGS+=" -Wold-style-definition -Wdeclaration-after-statement" 21818 ;; 21819 esac 21820else 21821 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5 21822$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; } 21823if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then 21824 $as_echo_n "(cached) " >&6 21825else 21826 cat >conftest.$ac_ext <<_ACEOF 21827/* confdefs.h. */ 21828_ACEOF 21829cat confdefs.h >>conftest.$ac_ext 21830cat >>conftest.$ac_ext <<_ACEOF 21831/* end confdefs.h. */ 21832$ac_includes_default 21833int 21834main () 21835{ 21836#ifndef __SUNPRO_C 21837 (void) __SUNPRO_C; 21838#endif 21839 21840 ; 21841 return 0; 21842} 21843_ACEOF 21844rm -f conftest.$ac_objext 21845if { (ac_try="$ac_compile" 21846case "(($ac_try" in 21847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21848 *) ac_try_echo=$ac_try;; 21849esac 21850eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21851$as_echo "$ac_try_echo") >&5 21852 (eval "$ac_compile") 2>conftest.er1 21853 ac_status=$? 21854 grep -v '^ *+' conftest.er1 >conftest.err 21855 rm -f conftest.er1 21856 cat conftest.err >&5 21857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21858 (exit $ac_status); } && { 21859 test -z "$ac_c_werror_flag" || 21860 test ! -s conftest.err 21861 } && test -s conftest.$ac_objext; then 21862 ac_cv_have_decl___SUNPRO_C=yes 21863else 21864 $as_echo "$as_me: failed program was:" >&5 21865sed 's/^/| /' conftest.$ac_ext >&5 21866 21867 ac_cv_have_decl___SUNPRO_C=no 21868fi 21869 21870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21871fi 21872{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5 21873$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; } 21874if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then 21875 SUNCC="yes" 21876else 21877 SUNCC="no" 21878fi 21879 21880 if test "x$SUNCC" = "xyes"; then 21881 CWARNFLAGS="-v" 21882 fi 21883fi 21884 21885 21886XORG_CFLAGS="$CWARNFLAGS $XORG_CFLAGS" 21887 21888 21889 21890DRIVER_NAME=siliconmotion 21891 21892 21893 21894 21895 21896if test x$APP_MAN_SUFFIX = x ; then 21897 APP_MAN_SUFFIX=1 21898fi 21899if test x$APP_MAN_DIR = x ; then 21900 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 21901fi 21902 21903if test x$LIB_MAN_SUFFIX = x ; then 21904 LIB_MAN_SUFFIX=3 21905fi 21906if test x$LIB_MAN_DIR = x ; then 21907 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 21908fi 21909 21910if test x$FILE_MAN_SUFFIX = x ; then 21911 case $host_os in 21912 solaris*) FILE_MAN_SUFFIX=4 ;; 21913 *) FILE_MAN_SUFFIX=5 ;; 21914 esac 21915fi 21916if test x$FILE_MAN_DIR = x ; then 21917 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 21918fi 21919 21920if test x$MISC_MAN_SUFFIX = x ; then 21921 case $host_os in 21922 solaris*) MISC_MAN_SUFFIX=5 ;; 21923 *) MISC_MAN_SUFFIX=7 ;; 21924 esac 21925fi 21926if test x$MISC_MAN_DIR = x ; then 21927 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 21928fi 21929 21930if test x$DRIVER_MAN_SUFFIX = x ; then 21931 case $host_os in 21932 solaris*) DRIVER_MAN_SUFFIX=7 ;; 21933 *) DRIVER_MAN_SUFFIX=4 ;; 21934 esac 21935fi 21936if test x$DRIVER_MAN_DIR = x ; then 21937 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 21938fi 21939 21940if test x$ADMIN_MAN_SUFFIX = x ; then 21941 case $host_os in 21942 solaris*) ADMIN_MAN_SUFFIX=1m ;; 21943 *) ADMIN_MAN_SUFFIX=8 ;; 21944 esac 21945fi 21946if test x$ADMIN_MAN_DIR = x ; then 21947 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 21948fi 21949 21950 21951 21952 21953 21954 21955 21956 21957 21958 21959 21960 21961 21962 21963 21964 21965 21966# Check whether --with-release-version was given. 21967if test "${with_release_version+set}" = set; then 21968 withval=$with_release_version; RELEASE_VERSION="$withval" 21969else 21970 RELEASE_VERSION="" 21971fi 21972 21973 if test "x$RELEASE_VERSION" != "x"; then 21974 PACKAGE="$PACKAGE-$RELEASE_VERSION" 21975 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 21976 { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 21977$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;} 21978 fi 21979 21980cat >>confdefs.h <<_ACEOF 21981#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 21982_ACEOF 21983 21984 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 21985 if test "x$PVM" = "x"; then 21986 PVM="0" 21987 fi 21988 21989cat >>confdefs.h <<_ACEOF 21990#define PACKAGE_VERSION_MINOR $PVM 21991_ACEOF 21992 21993 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 21994 if test "x$PVP" = "x"; then 21995 PVP="0" 21996 fi 21997 21998cat >>confdefs.h <<_ACEOF 21999#define PACKAGE_VERSION_PATCHLEVEL $PVP 22000_ACEOF 22001 22002 22003 22004CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \ 22005mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \ 22006echo 'git directory not found: installing possibly empty changelog.' >&2)" 22007 22008distcleancheck_listfiles='find . -type f ! -name ChangeLog -print' 22009 22010 22011 22012ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 22013 22014cat >confcache <<\_ACEOF 22015# This file is a shell script that caches the results of configure 22016# tests run on this system so they can be shared between configure 22017# scripts and configure runs, see configure's option --config-cache. 22018# It is not useful on other systems. If it contains results you don't 22019# want to keep, you may remove or edit it. 22020# 22021# config.status only pays attention to the cache file if you give it 22022# the --recheck option to rerun configure. 22023# 22024# `ac_cv_env_foo' variables (set or unset) will be overridden when 22025# loading this file, other *unset* `ac_cv_foo' will be assigned the 22026# following values. 22027 22028_ACEOF 22029 22030# The following way of writing the cache mishandles newlines in values, 22031# but we know of no workaround that is simple, portable, and efficient. 22032# So, we kill variables containing newlines. 22033# Ultrix sh set writes to stderr and can't be redirected directly, 22034# and sets the high bit in the cache file unless we assign to the vars. 22035( 22036 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 22037 eval ac_val=\$$ac_var 22038 case $ac_val in #( 22039 *${as_nl}*) 22040 case $ac_var in #( 22041 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 22042$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 22043 esac 22044 case $ac_var in #( 22045 _ | IFS | as_nl) ;; #( 22046 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 22047 *) $as_unset $ac_var ;; 22048 esac ;; 22049 esac 22050 done 22051 22052 (set) 2>&1 | 22053 case $as_nl`(ac_space=' '; set) 2>&1` in #( 22054 *${as_nl}ac_space=\ *) 22055 # `set' does not quote correctly, so add quotes (double-quote 22056 # substitution turns \\\\ into \\, and sed turns \\ into \). 22057 sed -n \ 22058 "s/'/'\\\\''/g; 22059 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 22060 ;; #( 22061 *) 22062 # `set' quotes correctly as required by POSIX, so do not add quotes. 22063 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 22064 ;; 22065 esac | 22066 sort 22067) | 22068 sed ' 22069 /^ac_cv_env_/b end 22070 t clear 22071 :clear 22072 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 22073 t end 22074 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 22075 :end' >>confcache 22076if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 22077 if test -w "$cache_file"; then 22078 test "x$cache_file" != "x/dev/null" && 22079 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 22080$as_echo "$as_me: updating cache $cache_file" >&6;} 22081 cat confcache >$cache_file 22082 else 22083 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 22084$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 22085 fi 22086fi 22087rm -f confcache 22088 22089test "x$prefix" = xNONE && prefix=$ac_default_prefix 22090# Let make expand exec_prefix. 22091test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 22092 22093DEFS=-DHAVE_CONFIG_H 22094 22095ac_libobjs= 22096ac_ltlibobjs= 22097for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 22098 # 1. Remove the extension, and $U if already installed. 22099 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 22100 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 22101 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 22102 # will be set to the directory where LIBOBJS objects are built. 22103 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 22104 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 22105done 22106LIBOBJS=$ac_libobjs 22107 22108LTLIBOBJS=$ac_ltlibobjs 22109 22110 22111if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 22112 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 22113Usually this means the macro was only invoked conditionally." >&5 22114$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 22115Usually this means the macro was only invoked conditionally." >&2;} 22116 { (exit 1); exit 1; }; } 22117fi 22118if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 22119 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 22120Usually this means the macro was only invoked conditionally." >&5 22121$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 22122Usually this means the macro was only invoked conditionally." >&2;} 22123 { (exit 1); exit 1; }; } 22124fi 22125if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22126 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 22127Usually this means the macro was only invoked conditionally." >&5 22128$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 22129Usually this means the macro was only invoked conditionally." >&2;} 22130 { (exit 1); exit 1; }; } 22131fi 22132if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 22133 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 22134Usually this means the macro was only invoked conditionally." >&5 22135$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 22136Usually this means the macro was only invoked conditionally." >&2;} 22137 { (exit 1); exit 1; }; } 22138fi 22139if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22140 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 22141Usually this means the macro was only invoked conditionally." >&5 22142$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 22143Usually this means the macro was only invoked conditionally." >&2;} 22144 { (exit 1); exit 1; }; } 22145fi 22146if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then 22147 { { $as_echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined. 22148Usually this means the macro was only invoked conditionally." >&5 22149$as_echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined. 22150Usually this means the macro was only invoked conditionally." >&2;} 22151 { (exit 1); exit 1; }; } 22152fi 22153if test -z "${XMODES_TRUE}" && test -z "${XMODES_FALSE}"; then 22154 { { $as_echo "$as_me:$LINENO: error: conditional \"XMODES\" was never defined. 22155Usually this means the macro was only invoked conditionally." >&5 22156$as_echo "$as_me: error: conditional \"XMODES\" was never defined. 22157Usually this means the macro was only invoked conditionally." >&2;} 22158 { (exit 1); exit 1; }; } 22159fi 22160 22161: ${CONFIG_STATUS=./config.status} 22162ac_write_fail=0 22163ac_clean_files_save=$ac_clean_files 22164ac_clean_files="$ac_clean_files $CONFIG_STATUS" 22165{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 22166$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 22167cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22168#! $SHELL 22169# Generated by $as_me. 22170# Run this file to recreate the current configuration. 22171# Compiler output produced by configure, useful for debugging 22172# configure, is in config.log if it exists. 22173 22174debug=false 22175ac_cs_recheck=false 22176ac_cs_silent=false 22177SHELL=\${CONFIG_SHELL-$SHELL} 22178_ACEOF 22179 22180cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22181## --------------------- ## 22182## M4sh Initialization. ## 22183## --------------------- ## 22184 22185# Be more Bourne compatible 22186DUALCASE=1; export DUALCASE # for MKS sh 22187if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 22188 emulate sh 22189 NULLCMD=: 22190 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 22191 # is contrary to our usage. Disable this feature. 22192 alias -g '${1+"$@"}'='"$@"' 22193 setopt NO_GLOB_SUBST 22194else 22195 case `(set -o) 2>/dev/null` in 22196 *posix*) set -o posix ;; 22197esac 22198 22199fi 22200 22201 22202 22203 22204# PATH needs CR 22205# Avoid depending upon Character Ranges. 22206as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22207as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22208as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22209as_cr_digits='0123456789' 22210as_cr_alnum=$as_cr_Letters$as_cr_digits 22211 22212as_nl=' 22213' 22214export as_nl 22215# Printing a long string crashes Solaris 7 /usr/bin/printf. 22216as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 22217as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 22218as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 22219if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 22220 as_echo='printf %s\n' 22221 as_echo_n='printf %s' 22222else 22223 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 22224 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 22225 as_echo_n='/usr/ucb/echo -n' 22226 else 22227 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 22228 as_echo_n_body='eval 22229 arg=$1; 22230 case $arg in 22231 *"$as_nl"*) 22232 expr "X$arg" : "X\\(.*\\)$as_nl"; 22233 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 22234 esac; 22235 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 22236 ' 22237 export as_echo_n_body 22238 as_echo_n='sh -c $as_echo_n_body as_echo' 22239 fi 22240 export as_echo_body 22241 as_echo='sh -c $as_echo_body as_echo' 22242fi 22243 22244# The user is always right. 22245if test "${PATH_SEPARATOR+set}" != set; then 22246 PATH_SEPARATOR=: 22247 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 22248 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 22249 PATH_SEPARATOR=';' 22250 } 22251fi 22252 22253# Support unset when possible. 22254if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 22255 as_unset=unset 22256else 22257 as_unset=false 22258fi 22259 22260 22261# IFS 22262# We need space, tab and new line, in precisely that order. Quoting is 22263# there to prevent editors from complaining about space-tab. 22264# (If _AS_PATH_WALK were called with IFS unset, it would disable word 22265# splitting by setting IFS to empty value.) 22266IFS=" "" $as_nl" 22267 22268# Find who we are. Look in the path if we contain no directory separator. 22269case $0 in 22270 *[\\/]* ) as_myself=$0 ;; 22271 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22272for as_dir in $PATH 22273do 22274 IFS=$as_save_IFS 22275 test -z "$as_dir" && as_dir=. 22276 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 22277done 22278IFS=$as_save_IFS 22279 22280 ;; 22281esac 22282# We did not find ourselves, most probably we were run as `sh COMMAND' 22283# in which case we are not to be found in the path. 22284if test "x$as_myself" = x; then 22285 as_myself=$0 22286fi 22287if test ! -f "$as_myself"; then 22288 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 22289 { (exit 1); exit 1; } 22290fi 22291 22292# Work around bugs in pre-3.0 UWIN ksh. 22293for as_var in ENV MAIL MAILPATH 22294do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 22295done 22296PS1='$ ' 22297PS2='> ' 22298PS4='+ ' 22299 22300# NLS nuisances. 22301LC_ALL=C 22302export LC_ALL 22303LANGUAGE=C 22304export LANGUAGE 22305 22306# Required to use basename. 22307if expr a : '\(a\)' >/dev/null 2>&1 && 22308 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22309 as_expr=expr 22310else 22311 as_expr=false 22312fi 22313 22314if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 22315 as_basename=basename 22316else 22317 as_basename=false 22318fi 22319 22320 22321# Name of the executable. 22322as_me=`$as_basename -- "$0" || 22323$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22324 X"$0" : 'X\(//\)$' \| \ 22325 X"$0" : 'X\(/\)' \| . 2>/dev/null || 22326$as_echo X/"$0" | 22327 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22328 s//\1/ 22329 q 22330 } 22331 /^X\/\(\/\/\)$/{ 22332 s//\1/ 22333 q 22334 } 22335 /^X\/\(\/\).*/{ 22336 s//\1/ 22337 q 22338 } 22339 s/.*/./; q'` 22340 22341# CDPATH. 22342$as_unset CDPATH 22343 22344 22345 22346 as_lineno_1=$LINENO 22347 as_lineno_2=$LINENO 22348 test "x$as_lineno_1" != "x$as_lineno_2" && 22349 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 22350 22351 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 22352 # uniformly replaced by the line number. The first 'sed' inserts a 22353 # line-number line after each line using $LINENO; the second 'sed' 22354 # does the real work. The second script uses 'N' to pair each 22355 # line-number line with the line containing $LINENO, and appends 22356 # trailing '-' during substitution so that $LINENO is not a special 22357 # case at line end. 22358 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 22359 # scripts with optimization help from Paolo Bonzini. Blame Lee 22360 # E. McMahon (1931-1989) for sed's syntax. :-) 22361 sed -n ' 22362 p 22363 /[$]LINENO/= 22364 ' <$as_myself | 22365 sed ' 22366 s/[$]LINENO.*/&-/ 22367 t lineno 22368 b 22369 :lineno 22370 N 22371 :loop 22372 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 22373 t loop 22374 s/-\n.*// 22375 ' >$as_me.lineno && 22376 chmod +x "$as_me.lineno" || 22377 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 22378 { (exit 1); exit 1; }; } 22379 22380 # Don't try to exec as it changes $[0], causing all sort of problems 22381 # (the dirname of $[0] is not the place where we might find the 22382 # original and so on. Autoconf is especially sensitive to this). 22383 . "./$as_me.lineno" 22384 # Exit status is that of the last command. 22385 exit 22386} 22387 22388 22389if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22390 as_dirname=dirname 22391else 22392 as_dirname=false 22393fi 22394 22395ECHO_C= ECHO_N= ECHO_T= 22396case `echo -n x` in 22397-n*) 22398 case `echo 'x\c'` in 22399 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 22400 *) ECHO_C='\c';; 22401 esac;; 22402*) 22403 ECHO_N='-n';; 22404esac 22405if expr a : '\(a\)' >/dev/null 2>&1 && 22406 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22407 as_expr=expr 22408else 22409 as_expr=false 22410fi 22411 22412rm -f conf$$ conf$$.exe conf$$.file 22413if test -d conf$$.dir; then 22414 rm -f conf$$.dir/conf$$.file 22415else 22416 rm -f conf$$.dir 22417 mkdir conf$$.dir 2>/dev/null 22418fi 22419if (echo >conf$$.file) 2>/dev/null; then 22420 if ln -s conf$$.file conf$$ 2>/dev/null; then 22421 as_ln_s='ln -s' 22422 # ... but there are two gotchas: 22423 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 22424 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 22425 # In both cases, we have to default to `cp -p'. 22426 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 22427 as_ln_s='cp -p' 22428 elif ln conf$$.file conf$$ 2>/dev/null; then 22429 as_ln_s=ln 22430 else 22431 as_ln_s='cp -p' 22432 fi 22433else 22434 as_ln_s='cp -p' 22435fi 22436rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 22437rmdir conf$$.dir 2>/dev/null 22438 22439if mkdir -p . 2>/dev/null; then 22440 as_mkdir_p=: 22441else 22442 test -d ./-p && rmdir ./-p 22443 as_mkdir_p=false 22444fi 22445 22446if test -x / >/dev/null 2>&1; then 22447 as_test_x='test -x' 22448else 22449 if ls -dL / >/dev/null 2>&1; then 22450 as_ls_L_option=L 22451 else 22452 as_ls_L_option= 22453 fi 22454 as_test_x=' 22455 eval sh -c '\'' 22456 if test -d "$1"; then 22457 test -d "$1/."; 22458 else 22459 case $1 in 22460 -*)set "./$1";; 22461 esac; 22462 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 22463 ???[sx]*):;;*)false;;esac;fi 22464 '\'' sh 22465 ' 22466fi 22467as_executable_p=$as_test_x 22468 22469# Sed expression to map a string onto a valid CPP name. 22470as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 22471 22472# Sed expression to map a string onto a valid variable name. 22473as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 22474 22475 22476exec 6>&1 22477 22478# Save the log message, to keep $[0] and so on meaningful, and to 22479# report actual input values of CONFIG_FILES etc. instead of their 22480# values after options handling. 22481ac_log=" 22482This file was extended by xf86-video-siliconmotion $as_me 1.7.1, which was 22483generated by GNU Autoconf 2.63. Invocation command line was 22484 22485 CONFIG_FILES = $CONFIG_FILES 22486 CONFIG_HEADERS = $CONFIG_HEADERS 22487 CONFIG_LINKS = $CONFIG_LINKS 22488 CONFIG_COMMANDS = $CONFIG_COMMANDS 22489 $ $0 $@ 22490 22491on `(hostname || uname -n) 2>/dev/null | sed 1q` 22492" 22493 22494_ACEOF 22495 22496case $ac_config_files in *" 22497"*) set x $ac_config_files; shift; ac_config_files=$*;; 22498esac 22499 22500case $ac_config_headers in *" 22501"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 22502esac 22503 22504 22505cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22506# Files that config.status was made for. 22507config_files="$ac_config_files" 22508config_headers="$ac_config_headers" 22509config_commands="$ac_config_commands" 22510 22511_ACEOF 22512 22513cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22514ac_cs_usage="\ 22515\`$as_me' instantiates files from templates according to the 22516current configuration. 22517 22518Usage: $0 [OPTION]... [FILE]... 22519 22520 -h, --help print this help, then exit 22521 -V, --version print version number and configuration settings, then exit 22522 -q, --quiet, --silent 22523 do not print progress messages 22524 -d, --debug don't remove temporary files 22525 --recheck update $as_me by reconfiguring in the same conditions 22526 --file=FILE[:TEMPLATE] 22527 instantiate the configuration file FILE 22528 --header=FILE[:TEMPLATE] 22529 instantiate the configuration header FILE 22530 22531Configuration files: 22532$config_files 22533 22534Configuration headers: 22535$config_headers 22536 22537Configuration commands: 22538$config_commands 22539 22540Report bugs to <bug-autoconf@gnu.org>." 22541 22542_ACEOF 22543cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22544ac_cs_version="\\ 22545xf86-video-siliconmotion config.status 1.7.1 22546configured by $0, generated by GNU Autoconf 2.63, 22547 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 22548 22549Copyright (C) 2008 Free Software Foundation, Inc. 22550This config.status script is free software; the Free Software Foundation 22551gives unlimited permission to copy, distribute and modify it." 22552 22553ac_pwd='$ac_pwd' 22554srcdir='$srcdir' 22555INSTALL='$INSTALL' 22556MKDIR_P='$MKDIR_P' 22557AWK='$AWK' 22558test -n "\$AWK" || AWK=awk 22559_ACEOF 22560 22561cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22562# The default lists apply if the user does not specify any file. 22563ac_need_defaults=: 22564while test $# != 0 22565do 22566 case $1 in 22567 --*=*) 22568 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22569 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 22570 ac_shift=: 22571 ;; 22572 *) 22573 ac_option=$1 22574 ac_optarg=$2 22575 ac_shift=shift 22576 ;; 22577 esac 22578 22579 case $ac_option in 22580 # Handling of the options. 22581 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22582 ac_cs_recheck=: ;; 22583 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 22584 $as_echo "$ac_cs_version"; exit ;; 22585 --debug | --debu | --deb | --de | --d | -d ) 22586 debug=: ;; 22587 --file | --fil | --fi | --f ) 22588 $ac_shift 22589 case $ac_optarg in 22590 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22591 esac 22592 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 22593 ac_need_defaults=false;; 22594 --header | --heade | --head | --hea ) 22595 $ac_shift 22596 case $ac_optarg in 22597 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22598 esac 22599 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 22600 ac_need_defaults=false;; 22601 --he | --h) 22602 # Conflict between --help and --header 22603 { $as_echo "$as_me: error: ambiguous option: $1 22604Try \`$0 --help' for more information." >&2 22605 { (exit 1); exit 1; }; };; 22606 --help | --hel | -h ) 22607 $as_echo "$ac_cs_usage"; exit ;; 22608 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22609 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22610 ac_cs_silent=: ;; 22611 22612 # This is an error. 22613 -*) { $as_echo "$as_me: error: unrecognized option: $1 22614Try \`$0 --help' for more information." >&2 22615 { (exit 1); exit 1; }; } ;; 22616 22617 *) ac_config_targets="$ac_config_targets $1" 22618 ac_need_defaults=false ;; 22619 22620 esac 22621 shift 22622done 22623 22624ac_configure_extra_args= 22625 22626if $ac_cs_silent; then 22627 exec 6>/dev/null 22628 ac_configure_extra_args="$ac_configure_extra_args --silent" 22629fi 22630 22631_ACEOF 22632cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22633if \$ac_cs_recheck; then 22634 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22635 shift 22636 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 22637 CONFIG_SHELL='$SHELL' 22638 export CONFIG_SHELL 22639 exec "\$@" 22640fi 22641 22642_ACEOF 22643cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22644exec 5>>config.log 22645{ 22646 echo 22647 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22648## Running $as_me. ## 22649_ASBOX 22650 $as_echo "$ac_log" 22651} >&5 22652 22653_ACEOF 22654cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22655# 22656# INIT-COMMANDS 22657# 22658AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 22659 22660_ACEOF 22661 22662cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22663 22664# Handling of arguments. 22665for ac_config_target in $ac_config_targets 22666do 22667 case $ac_config_target in 22668 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 22669 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22670 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22671 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 22672 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 22673 22674 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 22675$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 22676 { (exit 1); exit 1; }; };; 22677 esac 22678done 22679 22680 22681# If the user did not use the arguments to specify the items to instantiate, 22682# then the envvar interface is used. Set only those that are not. 22683# We use the long form for the default assignment because of an extremely 22684# bizarre bug on SunOS 4.1.3. 22685if $ac_need_defaults; then 22686 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22687 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22688 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22689fi 22690 22691# Have a temporary directory for convenience. Make it in the build tree 22692# simply because there is no reason against having it here, and in addition, 22693# creating and moving files from /tmp can sometimes cause problems. 22694# Hook for its removal unless debugging. 22695# Note that there is a small window in which the directory will not be cleaned: 22696# after its creation but before its name has been assigned to `$tmp'. 22697$debug || 22698{ 22699 tmp= 22700 trap 'exit_status=$? 22701 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 22702' 0 22703 trap '{ (exit 1); exit 1; }' 1 2 13 15 22704} 22705# Create a (secure) tmp directory for tmp files. 22706 22707{ 22708 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22709 test -n "$tmp" && test -d "$tmp" 22710} || 22711{ 22712 tmp=./conf$$-$RANDOM 22713 (umask 077 && mkdir "$tmp") 22714} || 22715{ 22716 $as_echo "$as_me: cannot create a temporary directory in ." >&2 22717 { (exit 1); exit 1; } 22718} 22719 22720# Set up the scripts for CONFIG_FILES section. 22721# No need to generate them if there are no CONFIG_FILES. 22722# This happens for instance with `./config.status config.h'. 22723if test -n "$CONFIG_FILES"; then 22724 22725 22726ac_cr=' 22727' 22728ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 22729if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 22730 ac_cs_awk_cr='\\r' 22731else 22732 ac_cs_awk_cr=$ac_cr 22733fi 22734 22735echo 'BEGIN {' >"$tmp/subs1.awk" && 22736_ACEOF 22737 22738 22739{ 22740 echo "cat >conf$$subs.awk <<_ACEOF" && 22741 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 22742 echo "_ACEOF" 22743} >conf$$subs.sh || 22744 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22745$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22746 { (exit 1); exit 1; }; } 22747ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 22748ac_delim='%!_!# ' 22749for ac_last_try in false false false false false :; do 22750 . ./conf$$subs.sh || 22751 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22752$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22753 { (exit 1); exit 1; }; } 22754 22755 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 22756 if test $ac_delim_n = $ac_delim_num; then 22757 break 22758 elif $ac_last_try; then 22759 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22760$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22761 { (exit 1); exit 1; }; } 22762 else 22763 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22764 fi 22765done 22766rm -f conf$$subs.sh 22767 22768cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22769cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 22770_ACEOF 22771sed -n ' 22772h 22773s/^/S["/; s/!.*/"]=/ 22774p 22775g 22776s/^[^!]*!// 22777:repl 22778t repl 22779s/'"$ac_delim"'$// 22780t delim 22781:nl 22782h 22783s/\(.\{148\}\).*/\1/ 22784t more1 22785s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 22786p 22787n 22788b repl 22789:more1 22790s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22791p 22792g 22793s/.\{148\}// 22794t nl 22795:delim 22796h 22797s/\(.\{148\}\).*/\1/ 22798t more2 22799s/["\\]/\\&/g; s/^/"/; s/$/"/ 22800p 22801b 22802:more2 22803s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22804p 22805g 22806s/.\{148\}// 22807t delim 22808' <conf$$subs.awk | sed ' 22809/^[^""]/{ 22810 N 22811 s/\n// 22812} 22813' >>$CONFIG_STATUS || ac_write_fail=1 22814rm -f conf$$subs.awk 22815cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22816_ACAWK 22817cat >>"\$tmp/subs1.awk" <<_ACAWK && 22818 for (key in S) S_is_set[key] = 1 22819 FS = "" 22820 22821} 22822{ 22823 line = $ 0 22824 nfields = split(line, field, "@") 22825 substed = 0 22826 len = length(field[1]) 22827 for (i = 2; i < nfields; i++) { 22828 key = field[i] 22829 keylen = length(key) 22830 if (S_is_set[key]) { 22831 value = S[key] 22832 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 22833 len += length(value) + length(field[++i]) 22834 substed = 1 22835 } else 22836 len += 1 + keylen 22837 } 22838 22839 print line 22840} 22841 22842_ACAWK 22843_ACEOF 22844cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22845if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 22846 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 22847else 22848 cat 22849fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 22850 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 22851$as_echo "$as_me: error: could not setup config files machinery" >&2;} 22852 { (exit 1); exit 1; }; } 22853_ACEOF 22854 22855# VPATH may cause trouble with some makes, so we remove $(srcdir), 22856# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 22857# trailing colons and then remove the whole line if VPATH becomes empty 22858# (actually we leave an empty line to preserve line numbers). 22859if test "x$srcdir" = x.; then 22860 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 22861s/:*\$(srcdir):*/:/ 22862s/:*\${srcdir}:*/:/ 22863s/:*@srcdir@:*/:/ 22864s/^\([^=]*=[ ]*\):*/\1/ 22865s/:*$// 22866s/^[^=]*=[ ]*$// 22867}' 22868fi 22869 22870cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22871fi # test -n "$CONFIG_FILES" 22872 22873# Set up the scripts for CONFIG_HEADERS section. 22874# No need to generate them if there are no CONFIG_HEADERS. 22875# This happens for instance with `./config.status Makefile'. 22876if test -n "$CONFIG_HEADERS"; then 22877cat >"$tmp/defines.awk" <<\_ACAWK || 22878BEGIN { 22879_ACEOF 22880 22881# Transform confdefs.h into an awk script `defines.awk', embedded as 22882# here-document in config.status, that substitutes the proper values into 22883# config.h.in to produce config.h. 22884 22885# Create a delimiter string that does not exist in confdefs.h, to ease 22886# handling of long lines. 22887ac_delim='%!_!# ' 22888for ac_last_try in false false :; do 22889 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 22890 if test -z "$ac_t"; then 22891 break 22892 elif $ac_last_try; then 22893 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 22894$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 22895 { (exit 1); exit 1; }; } 22896 else 22897 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22898 fi 22899done 22900 22901# For the awk script, D is an array of macro values keyed by name, 22902# likewise P contains macro parameters if any. Preserve backslash 22903# newline sequences. 22904 22905ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22906sed -n ' 22907s/.\{148\}/&'"$ac_delim"'/g 22908t rset 22909:rset 22910s/^[ ]*#[ ]*define[ ][ ]*/ / 22911t def 22912d 22913:def 22914s/\\$// 22915t bsnl 22916s/["\\]/\\&/g 22917s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22918D["\1"]=" \3"/p 22919s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 22920d 22921:bsnl 22922s/["\\]/\\&/g 22923s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22924D["\1"]=" \3\\\\\\n"\\/p 22925t cont 22926s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 22927t cont 22928d 22929:cont 22930n 22931s/.\{148\}/&'"$ac_delim"'/g 22932t clear 22933:clear 22934s/\\$// 22935t bsnlc 22936s/["\\]/\\&/g; s/^/"/; s/$/"/p 22937d 22938:bsnlc 22939s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 22940b cont 22941' <confdefs.h | sed ' 22942s/'"$ac_delim"'/"\\\ 22943"/g' >>$CONFIG_STATUS || ac_write_fail=1 22944 22945cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22946 for (key in D) D_is_set[key] = 1 22947 FS = "" 22948} 22949/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 22950 line = \$ 0 22951 split(line, arg, " ") 22952 if (arg[1] == "#") { 22953 defundef = arg[2] 22954 mac1 = arg[3] 22955 } else { 22956 defundef = substr(arg[1], 2) 22957 mac1 = arg[2] 22958 } 22959 split(mac1, mac2, "(") #) 22960 macro = mac2[1] 22961 prefix = substr(line, 1, index(line, defundef) - 1) 22962 if (D_is_set[macro]) { 22963 # Preserve the white space surrounding the "#". 22964 print prefix "define", macro P[macro] D[macro] 22965 next 22966 } else { 22967 # Replace #undef with comments. This is necessary, for example, 22968 # in the case of _POSIX_SOURCE, which is predefined and required 22969 # on some systems where configure will not decide to define it. 22970 if (defundef == "undef") { 22971 print "/*", prefix defundef, macro, "*/" 22972 next 22973 } 22974 } 22975} 22976{ print } 22977_ACAWK 22978_ACEOF 22979cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22980 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 22981$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 22982 { (exit 1); exit 1; }; } 22983fi # test -n "$CONFIG_HEADERS" 22984 22985 22986eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 22987shift 22988for ac_tag 22989do 22990 case $ac_tag in 22991 :[FHLC]) ac_mode=$ac_tag; continue;; 22992 esac 22993 case $ac_mode$ac_tag in 22994 :[FHL]*:*);; 22995 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 22996$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 22997 { (exit 1); exit 1; }; };; 22998 :[FH]-) ac_tag=-:-;; 22999 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 23000 esac 23001 ac_save_IFS=$IFS 23002 IFS=: 23003 set x $ac_tag 23004 IFS=$ac_save_IFS 23005 shift 23006 ac_file=$1 23007 shift 23008 23009 case $ac_mode in 23010 :L) ac_source=$1;; 23011 :[FH]) 23012 ac_file_inputs= 23013 for ac_f 23014 do 23015 case $ac_f in 23016 -) ac_f="$tmp/stdin";; 23017 *) # Look for the file first in the build tree, then in the source tree 23018 # (if the path is not absolute). The absolute path cannot be DOS-style, 23019 # because $ac_f cannot contain `:'. 23020 test -f "$ac_f" || 23021 case $ac_f in 23022 [\\/$]*) false;; 23023 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 23024 esac || 23025 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 23026$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 23027 { (exit 1); exit 1; }; };; 23028 esac 23029 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 23030 ac_file_inputs="$ac_file_inputs '$ac_f'" 23031 done 23032 23033 # Let's still pretend it is `configure' which instantiates (i.e., don't 23034 # use $as_me), people would be surprised to read: 23035 # /* config.h. Generated by config.status. */ 23036 configure_input='Generated from '` 23037 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 23038 `' by configure.' 23039 if test x"$ac_file" != x-; then 23040 configure_input="$ac_file. $configure_input" 23041 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 23042$as_echo "$as_me: creating $ac_file" >&6;} 23043 fi 23044 # Neutralize special characters interpreted by sed in replacement strings. 23045 case $configure_input in #( 23046 *\&* | *\|* | *\\* ) 23047 ac_sed_conf_input=`$as_echo "$configure_input" | 23048 sed 's/[\\\\&|]/\\\\&/g'`;; #( 23049 *) ac_sed_conf_input=$configure_input;; 23050 esac 23051 23052 case $ac_tag in 23053 *:-:* | *:-) cat >"$tmp/stdin" \ 23054 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 23055$as_echo "$as_me: error: could not create $ac_file" >&2;} 23056 { (exit 1); exit 1; }; } ;; 23057 esac 23058 ;; 23059 esac 23060 23061 ac_dir=`$as_dirname -- "$ac_file" || 23062$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23063 X"$ac_file" : 'X\(//\)[^/]' \| \ 23064 X"$ac_file" : 'X\(//\)$' \| \ 23065 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 23066$as_echo X"$ac_file" | 23067 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23068 s//\1/ 23069 q 23070 } 23071 /^X\(\/\/\)[^/].*/{ 23072 s//\1/ 23073 q 23074 } 23075 /^X\(\/\/\)$/{ 23076 s//\1/ 23077 q 23078 } 23079 /^X\(\/\).*/{ 23080 s//\1/ 23081 q 23082 } 23083 s/.*/./; q'` 23084 { as_dir="$ac_dir" 23085 case $as_dir in #( 23086 -*) as_dir=./$as_dir;; 23087 esac 23088 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 23089 as_dirs= 23090 while :; do 23091 case $as_dir in #( 23092 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 23093 *) as_qdir=$as_dir;; 23094 esac 23095 as_dirs="'$as_qdir' $as_dirs" 23096 as_dir=`$as_dirname -- "$as_dir" || 23097$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23098 X"$as_dir" : 'X\(//\)[^/]' \| \ 23099 X"$as_dir" : 'X\(//\)$' \| \ 23100 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23101$as_echo X"$as_dir" | 23102 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23103 s//\1/ 23104 q 23105 } 23106 /^X\(\/\/\)[^/].*/{ 23107 s//\1/ 23108 q 23109 } 23110 /^X\(\/\/\)$/{ 23111 s//\1/ 23112 q 23113 } 23114 /^X\(\/\).*/{ 23115 s//\1/ 23116 q 23117 } 23118 s/.*/./; q'` 23119 test -d "$as_dir" && break 23120 done 23121 test -z "$as_dirs" || eval "mkdir $as_dirs" 23122 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 23123$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 23124 { (exit 1); exit 1; }; }; } 23125 ac_builddir=. 23126 23127case "$ac_dir" in 23128.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23129*) 23130 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 23131 # A ".." for each directory in $ac_dir_suffix. 23132 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 23133 case $ac_top_builddir_sub in 23134 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23135 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23136 esac ;; 23137esac 23138ac_abs_top_builddir=$ac_pwd 23139ac_abs_builddir=$ac_pwd$ac_dir_suffix 23140# for backward compatibility: 23141ac_top_builddir=$ac_top_build_prefix 23142 23143case $srcdir in 23144 .) # We are building in place. 23145 ac_srcdir=. 23146 ac_top_srcdir=$ac_top_builddir_sub 23147 ac_abs_top_srcdir=$ac_pwd ;; 23148 [\\/]* | ?:[\\/]* ) # Absolute name. 23149 ac_srcdir=$srcdir$ac_dir_suffix; 23150 ac_top_srcdir=$srcdir 23151 ac_abs_top_srcdir=$srcdir ;; 23152 *) # Relative name. 23153 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23154 ac_top_srcdir=$ac_top_build_prefix$srcdir 23155 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23156esac 23157ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23158 23159 23160 case $ac_mode in 23161 :F) 23162 # 23163 # CONFIG_FILE 23164 # 23165 23166 case $INSTALL in 23167 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23168 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 23169 esac 23170 ac_MKDIR_P=$MKDIR_P 23171 case $MKDIR_P in 23172 [\\/$]* | ?:[\\/]* ) ;; 23173 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 23174 esac 23175_ACEOF 23176 23177cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23178# If the template does not know about datarootdir, expand it. 23179# FIXME: This hack should be removed a few years after 2.60. 23180ac_datarootdir_hack=; ac_datarootdir_seen= 23181 23182ac_sed_dataroot=' 23183/datarootdir/ { 23184 p 23185 q 23186} 23187/@datadir@/p 23188/@docdir@/p 23189/@infodir@/p 23190/@localedir@/p 23191/@mandir@/p 23192' 23193case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 23194*datarootdir*) ac_datarootdir_seen=yes;; 23195*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 23196 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 23197$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 23198_ACEOF 23199cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23200 ac_datarootdir_hack=' 23201 s&@datadir@&$datadir&g 23202 s&@docdir@&$docdir&g 23203 s&@infodir@&$infodir&g 23204 s&@localedir@&$localedir&g 23205 s&@mandir@&$mandir&g 23206 s&\\\${datarootdir}&$datarootdir&g' ;; 23207esac 23208_ACEOF 23209 23210# Neutralize VPATH when `$srcdir' = `.'. 23211# Shell code in configure.ac might set extrasub. 23212# FIXME: do we really want to maintain this feature? 23213cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23214ac_sed_extra="$ac_vpsub 23215$extrasub 23216_ACEOF 23217cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23218:t 23219/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23220s|@configure_input@|$ac_sed_conf_input|;t t 23221s&@top_builddir@&$ac_top_builddir_sub&;t t 23222s&@top_build_prefix@&$ac_top_build_prefix&;t t 23223s&@srcdir@&$ac_srcdir&;t t 23224s&@abs_srcdir@&$ac_abs_srcdir&;t t 23225s&@top_srcdir@&$ac_top_srcdir&;t t 23226s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 23227s&@builddir@&$ac_builddir&;t t 23228s&@abs_builddir@&$ac_abs_builddir&;t t 23229s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 23230s&@INSTALL@&$ac_INSTALL&;t t 23231s&@MKDIR_P@&$ac_MKDIR_P&;t t 23232$ac_datarootdir_hack 23233" 23234eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 23235 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 23236$as_echo "$as_me: error: could not create $ac_file" >&2;} 23237 { (exit 1); exit 1; }; } 23238 23239test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 23240 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 23241 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 23242 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23243which seems to be undefined. Please make sure it is defined." >&5 23244$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23245which seems to be undefined. Please make sure it is defined." >&2;} 23246 23247 rm -f "$tmp/stdin" 23248 case $ac_file in 23249 -) cat "$tmp/out" && rm -f "$tmp/out";; 23250 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 23251 esac \ 23252 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 23253$as_echo "$as_me: error: could not create $ac_file" >&2;} 23254 { (exit 1); exit 1; }; } 23255 ;; 23256 :H) 23257 # 23258 # CONFIG_HEADER 23259 # 23260 if test x"$ac_file" != x-; then 23261 { 23262 $as_echo "/* $configure_input */" \ 23263 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 23264 } >"$tmp/config.h" \ 23265 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 23266$as_echo "$as_me: error: could not create $ac_file" >&2;} 23267 { (exit 1); exit 1; }; } 23268 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 23269 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 23270$as_echo "$as_me: $ac_file is unchanged" >&6;} 23271 else 23272 rm -f "$ac_file" 23273 mv "$tmp/config.h" "$ac_file" \ 23274 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 23275$as_echo "$as_me: error: could not create $ac_file" >&2;} 23276 { (exit 1); exit 1; }; } 23277 fi 23278 else 23279 $as_echo "/* $configure_input */" \ 23280 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 23281 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 23282$as_echo "$as_me: error: could not create -" >&2;} 23283 { (exit 1); exit 1; }; } 23284 fi 23285# Compute "$ac_file"'s index in $config_headers. 23286_am_arg="$ac_file" 23287_am_stamp_count=1 23288for _am_header in $config_headers :; do 23289 case $_am_header in 23290 $_am_arg | $_am_arg:* ) 23291 break ;; 23292 * ) 23293 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 23294 esac 23295done 23296echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 23297$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23298 X"$_am_arg" : 'X\(//\)[^/]' \| \ 23299 X"$_am_arg" : 'X\(//\)$' \| \ 23300 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 23301$as_echo X"$_am_arg" | 23302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23303 s//\1/ 23304 q 23305 } 23306 /^X\(\/\/\)[^/].*/{ 23307 s//\1/ 23308 q 23309 } 23310 /^X\(\/\/\)$/{ 23311 s//\1/ 23312 q 23313 } 23314 /^X\(\/\).*/{ 23315 s//\1/ 23316 q 23317 } 23318 s/.*/./; q'`/stamp-h$_am_stamp_count 23319 ;; 23320 23321 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 23322$as_echo "$as_me: executing $ac_file commands" >&6;} 23323 ;; 23324 esac 23325 23326 23327 case $ac_file$ac_mode in 23328 "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files 23329# are listed without --file. Let's play safe and only enable the eval 23330# if we detect the quoting. 23331case $CONFIG_FILES in 23332*\'*) eval set x "$CONFIG_FILES" ;; 23333*) set x $CONFIG_FILES ;; 23334esac 23335shift 23336for mf 23337do 23338 # Strip MF so we end up with the name of the file. 23339 mf=`echo "$mf" | sed -e 's/:.*$//'` 23340 # Check whether this is an Automake generated Makefile or not. 23341 # We used to match only the files named `Makefile.in', but 23342 # some people rename them; so instead we look at the file content. 23343 # Grep'ing the first line is not enough: some people post-process 23344 # each Makefile.in and add a new line on top of each file to say so. 23345 # Grep'ing the whole file is not good either: AIX grep has a line 23346 # limit of 2048, but all sed's we know have understand at least 4000. 23347 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 23348 dirpart=`$as_dirname -- "$mf" || 23349$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23350 X"$mf" : 'X\(//\)[^/]' \| \ 23351 X"$mf" : 'X\(//\)$' \| \ 23352 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 23353$as_echo X"$mf" | 23354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23355 s//\1/ 23356 q 23357 } 23358 /^X\(\/\/\)[^/].*/{ 23359 s//\1/ 23360 q 23361 } 23362 /^X\(\/\/\)$/{ 23363 s//\1/ 23364 q 23365 } 23366 /^X\(\/\).*/{ 23367 s//\1/ 23368 q 23369 } 23370 s/.*/./; q'` 23371 else 23372 continue 23373 fi 23374 # Extract the definition of DEPDIR, am__include, and am__quote 23375 # from the Makefile without running `make'. 23376 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 23377 test -z "$DEPDIR" && continue 23378 am__include=`sed -n 's/^am__include = //p' < "$mf"` 23379 test -z "am__include" && continue 23380 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 23381 # When using ansi2knr, U may be empty or an underscore; expand it 23382 U=`sed -n 's/^U = //p' < "$mf"` 23383 # Find all dependency output files, they are included files with 23384 # $(DEPDIR) in their names. We invoke sed twice because it is the 23385 # simplest approach to changing $(DEPDIR) to its actual value in the 23386 # expansion. 23387 for file in `sed -n " 23388 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 23389 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 23390 # Make sure the directory exists. 23391 test -f "$dirpart/$file" && continue 23392 fdir=`$as_dirname -- "$file" || 23393$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23394 X"$file" : 'X\(//\)[^/]' \| \ 23395 X"$file" : 'X\(//\)$' \| \ 23396 X"$file" : 'X\(/\)' \| . 2>/dev/null || 23397$as_echo X"$file" | 23398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23399 s//\1/ 23400 q 23401 } 23402 /^X\(\/\/\)[^/].*/{ 23403 s//\1/ 23404 q 23405 } 23406 /^X\(\/\/\)$/{ 23407 s//\1/ 23408 q 23409 } 23410 /^X\(\/\).*/{ 23411 s//\1/ 23412 q 23413 } 23414 s/.*/./; q'` 23415 { as_dir=$dirpart/$fdir 23416 case $as_dir in #( 23417 -*) as_dir=./$as_dir;; 23418 esac 23419 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 23420 as_dirs= 23421 while :; do 23422 case $as_dir in #( 23423 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 23424 *) as_qdir=$as_dir;; 23425 esac 23426 as_dirs="'$as_qdir' $as_dirs" 23427 as_dir=`$as_dirname -- "$as_dir" || 23428$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23429 X"$as_dir" : 'X\(//\)[^/]' \| \ 23430 X"$as_dir" : 'X\(//\)$' \| \ 23431 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23432$as_echo X"$as_dir" | 23433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23434 s//\1/ 23435 q 23436 } 23437 /^X\(\/\/\)[^/].*/{ 23438 s//\1/ 23439 q 23440 } 23441 /^X\(\/\/\)$/{ 23442 s//\1/ 23443 q 23444 } 23445 /^X\(\/\).*/{ 23446 s//\1/ 23447 q 23448 } 23449 s/.*/./; q'` 23450 test -d "$as_dir" && break 23451 done 23452 test -z "$as_dirs" || eval "mkdir $as_dirs" 23453 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 23454$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 23455 { (exit 1); exit 1; }; }; } 23456 # echo "creating $dirpart/$file" 23457 echo '# dummy' > "$dirpart/$file" 23458 done 23459done 23460 ;; 23461 23462 esac 23463done # for ac_tag 23464 23465 23466{ (exit 0); exit 0; } 23467_ACEOF 23468chmod +x $CONFIG_STATUS 23469ac_clean_files=$ac_clean_files_save 23470 23471test $ac_write_fail = 0 || 23472 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 23473$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 23474 { (exit 1); exit 1; }; } 23475 23476 23477# configure is writing to config.log, and then calls config.status. 23478# config.status does its own redirection, appending to config.log. 23479# Unfortunately, on DOS this fails, as config.log is still kept open 23480# by configure, so config.status won't be able to write to it; its 23481# output is simply discarded. So we exec the FD to /dev/null, 23482# effectively closing config.log, so it can be properly (re)opened and 23483# appended to by config.status. When coming back to configure, we 23484# need to make the FD available again. 23485if test "$no_create" != yes; then 23486 ac_cs_success=: 23487 ac_config_status_args= 23488 test "$silent" = yes && 23489 ac_config_status_args="$ac_config_status_args --quiet" 23490 exec 5>/dev/null 23491 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23492 exec 5>>config.log 23493 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23494 # would make configure fail if this is the last instruction. 23495 $ac_cs_success || { (exit 1); exit 1; } 23496fi 23497if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 23498 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 23499$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 23500fi 23501 23502