configure revision 4f6cd06f
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.63 for xf86-video-glint 1.2.2. 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-glint' 752PACKAGE_TARNAME='xf86-video-glint' 753PACKAGE_VERSION='1.2.2' 754PACKAGE_STRING='xf86-video-glint 1.2.2' 755PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 756 757ac_unique_file="Makefile.am" 758# Factoring default headers for most tests. 759ac_includes_default="\ 760#include <stdio.h> 761#ifdef HAVE_SYS_TYPES_H 762# include <sys/types.h> 763#endif 764#ifdef HAVE_SYS_STAT_H 765# include <sys/stat.h> 766#endif 767#ifdef STDC_HEADERS 768# include <stdlib.h> 769# include <stddef.h> 770#else 771# ifdef HAVE_STDLIB_H 772# include <stdlib.h> 773# endif 774#endif 775#ifdef HAVE_STRING_H 776# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 777# include <memory.h> 778# endif 779# include <string.h> 780#endif 781#ifdef HAVE_STRINGS_H 782# include <strings.h> 783#endif 784#ifdef HAVE_INTTYPES_H 785# include <inttypes.h> 786#endif 787#ifdef HAVE_STDINT_H 788# include <stdint.h> 789#endif 790#ifdef HAVE_UNISTD_H 791# include <unistd.h> 792#endif" 793 794ac_subst_vars='LTLIBOBJS 795LIBOBJS 796ADMIN_MAN_DIR 797DRIVER_MAN_DIR 798MISC_MAN_DIR 799FILE_MAN_DIR 800LIB_MAN_DIR 801APP_MAN_DIR 802ADMIN_MAN_SUFFIX 803DRIVER_MAN_SUFFIX 804MISC_MAN_SUFFIX 805FILE_MAN_SUFFIX 806LIB_MAN_SUFFIX 807APP_MAN_SUFFIX 808DRIVER_NAME 809moduledir 810XSERVER_LIBPCIACCESS_FALSE 811XSERVER_LIBPCIACCESS_TRUE 812PCIACCESS_LIBS 813PCIACCESS_CFLAGS 814DRI_LIBS 815DRI_CFLAGS 816DRI_FALSE 817DRI_TRUE 818XORG_LIBS 819XORG_CFLAGS 820PKG_CONFIG 821LIBTOOL 822ac_ct_F77 823FFLAGS 824F77 825CXXCPP 826am__fastdepCXX_FALSE 827am__fastdepCXX_TRUE 828CXXDEPMODE 829ac_ct_CXX 830CXXFLAGS 831CXX 832CPP 833NMEDIT 834DSYMUTIL 835RANLIB 836AR 837ECHO 838LN_S 839EGREP 840GREP 841SED 842am__fastdepCC_FALSE 843am__fastdepCC_TRUE 844CCDEPMODE 845AMDEPBACKSLASH 846AMDEP_FALSE 847AMDEP_TRUE 848am__quote 849am__include 850DEPDIR 851OBJEXT 852EXEEXT 853ac_ct_CC 854CPPFLAGS 855LDFLAGS 856CFLAGS 857CC 858host_os 859host_vendor 860host_cpu 861host 862build_os 863build_vendor 864build_cpu 865build 866MAINT 867MAINTAINER_MODE_FALSE 868MAINTAINER_MODE_TRUE 869am__untar 870am__tar 871AMTAR 872am__leading_dot 873SET_MAKE 874AWK 875mkdir_p 876MKDIR_P 877INSTALL_STRIP_PROGRAM 878STRIP 879install_sh 880MAKEINFO 881AUTOHEADER 882AUTOMAKE 883AUTOCONF 884ACLOCAL 885VERSION 886PACKAGE 887CYGPATH_W 888am__isrc 889INSTALL_DATA 890INSTALL_SCRIPT 891INSTALL_PROGRAM 892target_alias 893host_alias 894build_alias 895LIBS 896ECHO_T 897ECHO_N 898ECHO_C 899DEFS 900mandir 901localedir 902libdir 903psdir 904pdfdir 905dvidir 906htmldir 907infodir 908docdir 909oldincludedir 910includedir 911localstatedir 912sharedstatedir 913sysconfdir 914datadir 915datarootdir 916libexecdir 917sbindir 918bindir 919program_transform_name 920prefix 921exec_prefix 922PACKAGE_BUGREPORT 923PACKAGE_STRING 924PACKAGE_VERSION 925PACKAGE_TARNAME 926PACKAGE_NAME 927PATH_SEPARATOR 928SHELL' 929ac_subst_files='' 930ac_user_opts=' 931enable_option_checking 932enable_maintainer_mode 933enable_static 934enable_shared 935enable_fast_install 936enable_dependency_tracking 937with_gnu_ld 938enable_libtool_lock 939with_pic 940with_tags 941with_xorg_module_dir 942enable_dri 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 963DRI_CFLAGS 964DRI_LIBS 965PCIACCESS_CFLAGS 966PCIACCESS_LIBS' 967 968 969# Initialize some variables set by options. 970ac_init_help= 971ac_init_version=false 972ac_unrecognized_opts= 973ac_unrecognized_sep= 974# The variables have the same names as the options, with 975# dashes changed to underlines. 976cache_file=/dev/null 977exec_prefix=NONE 978no_create= 979no_recursion= 980prefix=NONE 981program_prefix=NONE 982program_suffix=NONE 983program_transform_name=s,x,x, 984silent= 985site= 986srcdir= 987verbose= 988x_includes=NONE 989x_libraries=NONE 990 991# Installation directory options. 992# These are left unexpanded so users can "make install exec_prefix=/foo" 993# and all the variables that are supposed to be based on exec_prefix 994# by default will actually change. 995# Use braces instead of parens because sh, perl, etc. also accept them. 996# (The list follows the same order as the GNU Coding Standards.) 997bindir='${exec_prefix}/bin' 998sbindir='${exec_prefix}/sbin' 999libexecdir='${exec_prefix}/libexec' 1000datarootdir='${prefix}/share' 1001datadir='${datarootdir}' 1002sysconfdir='${prefix}/etc' 1003sharedstatedir='${prefix}/com' 1004localstatedir='${prefix}/var' 1005includedir='${prefix}/include' 1006oldincludedir='/usr/include' 1007docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1008infodir='${datarootdir}/info' 1009htmldir='${docdir}' 1010dvidir='${docdir}' 1011pdfdir='${docdir}' 1012psdir='${docdir}' 1013libdir='${exec_prefix}/lib' 1014localedir='${datarootdir}/locale' 1015mandir='${datarootdir}/man' 1016 1017ac_prev= 1018ac_dashdash= 1019for ac_option 1020do 1021 # If the previous option needs an argument, assign it. 1022 if test -n "$ac_prev"; then 1023 eval $ac_prev=\$ac_option 1024 ac_prev= 1025 continue 1026 fi 1027 1028 case $ac_option in 1029 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1030 *) ac_optarg=yes ;; 1031 esac 1032 1033 # Accept the important Cygnus configure options, so we can diagnose typos. 1034 1035 case $ac_dashdash$ac_option in 1036 --) 1037 ac_dashdash=yes ;; 1038 1039 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1040 ac_prev=bindir ;; 1041 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1042 bindir=$ac_optarg ;; 1043 1044 -build | --build | --buil | --bui | --bu) 1045 ac_prev=build_alias ;; 1046 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1047 build_alias=$ac_optarg ;; 1048 1049 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1050 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1051 ac_prev=cache_file ;; 1052 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1053 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1054 cache_file=$ac_optarg ;; 1055 1056 --config-cache | -C) 1057 cache_file=config.cache ;; 1058 1059 -datadir | --datadir | --datadi | --datad) 1060 ac_prev=datadir ;; 1061 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1062 datadir=$ac_optarg ;; 1063 1064 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1065 | --dataroo | --dataro | --datar) 1066 ac_prev=datarootdir ;; 1067 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1068 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1069 datarootdir=$ac_optarg ;; 1070 1071 -disable-* | --disable-*) 1072 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1073 # Reject names that are not valid shell variable names. 1074 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1075 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1076 { (exit 1); exit 1; }; } 1077 ac_useropt_orig=$ac_useropt 1078 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1079 case $ac_user_opts in 1080 *" 1081"enable_$ac_useropt" 1082"*) ;; 1083 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1084 ac_unrecognized_sep=', ';; 1085 esac 1086 eval enable_$ac_useropt=no ;; 1087 1088 -docdir | --docdir | --docdi | --doc | --do) 1089 ac_prev=docdir ;; 1090 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1091 docdir=$ac_optarg ;; 1092 1093 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1094 ac_prev=dvidir ;; 1095 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1096 dvidir=$ac_optarg ;; 1097 1098 -enable-* | --enable-*) 1099 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1100 # Reject names that are not valid shell variable names. 1101 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1102 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1103 { (exit 1); exit 1; }; } 1104 ac_useropt_orig=$ac_useropt 1105 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1106 case $ac_user_opts in 1107 *" 1108"enable_$ac_useropt" 1109"*) ;; 1110 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1111 ac_unrecognized_sep=', ';; 1112 esac 1113 eval enable_$ac_useropt=\$ac_optarg ;; 1114 1115 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1116 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1117 | --exec | --exe | --ex) 1118 ac_prev=exec_prefix ;; 1119 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1120 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1121 | --exec=* | --exe=* | --ex=*) 1122 exec_prefix=$ac_optarg ;; 1123 1124 -gas | --gas | --ga | --g) 1125 # Obsolete; use --with-gas. 1126 with_gas=yes ;; 1127 1128 -help | --help | --hel | --he | -h) 1129 ac_init_help=long ;; 1130 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1131 ac_init_help=recursive ;; 1132 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1133 ac_init_help=short ;; 1134 1135 -host | --host | --hos | --ho) 1136 ac_prev=host_alias ;; 1137 -host=* | --host=* | --hos=* | --ho=*) 1138 host_alias=$ac_optarg ;; 1139 1140 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1141 ac_prev=htmldir ;; 1142 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1143 | --ht=*) 1144 htmldir=$ac_optarg ;; 1145 1146 -includedir | --includedir | --includedi | --included | --include \ 1147 | --includ | --inclu | --incl | --inc) 1148 ac_prev=includedir ;; 1149 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1150 | --includ=* | --inclu=* | --incl=* | --inc=*) 1151 includedir=$ac_optarg ;; 1152 1153 -infodir | --infodir | --infodi | --infod | --info | --inf) 1154 ac_prev=infodir ;; 1155 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1156 infodir=$ac_optarg ;; 1157 1158 -libdir | --libdir | --libdi | --libd) 1159 ac_prev=libdir ;; 1160 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1161 libdir=$ac_optarg ;; 1162 1163 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1164 | --libexe | --libex | --libe) 1165 ac_prev=libexecdir ;; 1166 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1167 | --libexe=* | --libex=* | --libe=*) 1168 libexecdir=$ac_optarg ;; 1169 1170 -localedir | --localedir | --localedi | --localed | --locale) 1171 ac_prev=localedir ;; 1172 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1173 localedir=$ac_optarg ;; 1174 1175 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1176 | --localstate | --localstat | --localsta | --localst | --locals) 1177 ac_prev=localstatedir ;; 1178 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1179 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1180 localstatedir=$ac_optarg ;; 1181 1182 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1183 ac_prev=mandir ;; 1184 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1185 mandir=$ac_optarg ;; 1186 1187 -nfp | --nfp | --nf) 1188 # Obsolete; use --without-fp. 1189 with_fp=no ;; 1190 1191 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1192 | --no-cr | --no-c | -n) 1193 no_create=yes ;; 1194 1195 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1196 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1197 no_recursion=yes ;; 1198 1199 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1200 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1201 | --oldin | --oldi | --old | --ol | --o) 1202 ac_prev=oldincludedir ;; 1203 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1204 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1205 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1206 oldincludedir=$ac_optarg ;; 1207 1208 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1209 ac_prev=prefix ;; 1210 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1211 prefix=$ac_optarg ;; 1212 1213 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1214 | --program-pre | --program-pr | --program-p) 1215 ac_prev=program_prefix ;; 1216 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1217 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1218 program_prefix=$ac_optarg ;; 1219 1220 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1221 | --program-suf | --program-su | --program-s) 1222 ac_prev=program_suffix ;; 1223 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1224 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1225 program_suffix=$ac_optarg ;; 1226 1227 -program-transform-name | --program-transform-name \ 1228 | --program-transform-nam | --program-transform-na \ 1229 | --program-transform-n | --program-transform- \ 1230 | --program-transform | --program-transfor \ 1231 | --program-transfo | --program-transf \ 1232 | --program-trans | --program-tran \ 1233 | --progr-tra | --program-tr | --program-t) 1234 ac_prev=program_transform_name ;; 1235 -program-transform-name=* | --program-transform-name=* \ 1236 | --program-transform-nam=* | --program-transform-na=* \ 1237 | --program-transform-n=* | --program-transform-=* \ 1238 | --program-transform=* | --program-transfor=* \ 1239 | --program-transfo=* | --program-transf=* \ 1240 | --program-trans=* | --program-tran=* \ 1241 | --progr-tra=* | --program-tr=* | --program-t=*) 1242 program_transform_name=$ac_optarg ;; 1243 1244 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1245 ac_prev=pdfdir ;; 1246 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1247 pdfdir=$ac_optarg ;; 1248 1249 -psdir | --psdir | --psdi | --psd | --ps) 1250 ac_prev=psdir ;; 1251 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1252 psdir=$ac_optarg ;; 1253 1254 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1255 | -silent | --silent | --silen | --sile | --sil) 1256 silent=yes ;; 1257 1258 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1259 ac_prev=sbindir ;; 1260 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1261 | --sbi=* | --sb=*) 1262 sbindir=$ac_optarg ;; 1263 1264 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1265 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1266 | --sharedst | --shareds | --shared | --share | --shar \ 1267 | --sha | --sh) 1268 ac_prev=sharedstatedir ;; 1269 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1270 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1271 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1272 | --sha=* | --sh=*) 1273 sharedstatedir=$ac_optarg ;; 1274 1275 -site | --site | --sit) 1276 ac_prev=site ;; 1277 -site=* | --site=* | --sit=*) 1278 site=$ac_optarg ;; 1279 1280 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1281 ac_prev=srcdir ;; 1282 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1283 srcdir=$ac_optarg ;; 1284 1285 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1286 | --syscon | --sysco | --sysc | --sys | --sy) 1287 ac_prev=sysconfdir ;; 1288 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1289 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1290 sysconfdir=$ac_optarg ;; 1291 1292 -target | --target | --targe | --targ | --tar | --ta | --t) 1293 ac_prev=target_alias ;; 1294 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1295 target_alias=$ac_optarg ;; 1296 1297 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1298 verbose=yes ;; 1299 1300 -version | --version | --versio | --versi | --vers | -V) 1301 ac_init_version=: ;; 1302 1303 -with-* | --with-*) 1304 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1305 # Reject names that are not valid shell variable names. 1306 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1307 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1308 { (exit 1); exit 1; }; } 1309 ac_useropt_orig=$ac_useropt 1310 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1311 case $ac_user_opts in 1312 *" 1313"with_$ac_useropt" 1314"*) ;; 1315 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1316 ac_unrecognized_sep=', ';; 1317 esac 1318 eval with_$ac_useropt=\$ac_optarg ;; 1319 1320 -without-* | --without-*) 1321 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1322 # Reject names that are not valid shell variable names. 1323 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1324 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1325 { (exit 1); exit 1; }; } 1326 ac_useropt_orig=$ac_useropt 1327 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1328 case $ac_user_opts in 1329 *" 1330"with_$ac_useropt" 1331"*) ;; 1332 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1333 ac_unrecognized_sep=', ';; 1334 esac 1335 eval with_$ac_useropt=no ;; 1336 1337 --x) 1338 # Obsolete; use --with-x. 1339 with_x=yes ;; 1340 1341 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1342 | --x-incl | --x-inc | --x-in | --x-i) 1343 ac_prev=x_includes ;; 1344 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1345 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1346 x_includes=$ac_optarg ;; 1347 1348 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1349 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1350 ac_prev=x_libraries ;; 1351 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1352 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1353 x_libraries=$ac_optarg ;; 1354 1355 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1356Try \`$0 --help' for more information." >&2 1357 { (exit 1); exit 1; }; } 1358 ;; 1359 1360 *=*) 1361 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1362 # Reject names that are not valid shell variable names. 1363 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1364 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1365 { (exit 1); exit 1; }; } 1366 eval $ac_envvar=\$ac_optarg 1367 export $ac_envvar ;; 1368 1369 *) 1370 # FIXME: should be removed in autoconf 3.0. 1371 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1372 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1373 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1374 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1375 ;; 1376 1377 esac 1378done 1379 1380if test -n "$ac_prev"; then 1381 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1382 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1383 { (exit 1); exit 1; }; } 1384fi 1385 1386if test -n "$ac_unrecognized_opts"; then 1387 case $enable_option_checking in 1388 no) ;; 1389 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1390 { (exit 1); exit 1; }; } ;; 1391 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1392 esac 1393fi 1394 1395# Check all directory arguments for consistency. 1396for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1397 datadir sysconfdir sharedstatedir localstatedir includedir \ 1398 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1399 libdir localedir mandir 1400do 1401 eval ac_val=\$$ac_var 1402 # Remove trailing slashes. 1403 case $ac_val in 1404 */ ) 1405 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1406 eval $ac_var=\$ac_val;; 1407 esac 1408 # Be sure to have absolute directory names. 1409 case $ac_val in 1410 [\\/$]* | ?:[\\/]* ) continue;; 1411 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1412 esac 1413 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1414 { (exit 1); exit 1; }; } 1415done 1416 1417# There might be people who depend on the old broken behavior: `$host' 1418# used to hold the argument of --host etc. 1419# FIXME: To remove some day. 1420build=$build_alias 1421host=$host_alias 1422target=$target_alias 1423 1424# FIXME: To remove some day. 1425if test "x$host_alias" != x; then 1426 if test "x$build_alias" = x; then 1427 cross_compiling=maybe 1428 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1429 If a cross compiler is detected then cross compile mode will be used." >&2 1430 elif test "x$build_alias" != "x$host_alias"; then 1431 cross_compiling=yes 1432 fi 1433fi 1434 1435ac_tool_prefix= 1436test -n "$host_alias" && ac_tool_prefix=$host_alias- 1437 1438test "$silent" = yes && exec 6>/dev/null 1439 1440 1441ac_pwd=`pwd` && test -n "$ac_pwd" && 1442ac_ls_di=`ls -di .` && 1443ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1444 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1445 { (exit 1); exit 1; }; } 1446test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1447 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1448 { (exit 1); exit 1; }; } 1449 1450 1451# Find the source files, if location was not specified. 1452if test -z "$srcdir"; then 1453 ac_srcdir_defaulted=yes 1454 # Try the directory containing this script, then the parent directory. 1455 ac_confdir=`$as_dirname -- "$as_myself" || 1456$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1457 X"$as_myself" : 'X\(//\)[^/]' \| \ 1458 X"$as_myself" : 'X\(//\)$' \| \ 1459 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1460$as_echo X"$as_myself" | 1461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1462 s//\1/ 1463 q 1464 } 1465 /^X\(\/\/\)[^/].*/{ 1466 s//\1/ 1467 q 1468 } 1469 /^X\(\/\/\)$/{ 1470 s//\1/ 1471 q 1472 } 1473 /^X\(\/\).*/{ 1474 s//\1/ 1475 q 1476 } 1477 s/.*/./; q'` 1478 srcdir=$ac_confdir 1479 if test ! -r "$srcdir/$ac_unique_file"; then 1480 srcdir=.. 1481 fi 1482else 1483 ac_srcdir_defaulted=no 1484fi 1485if test ! -r "$srcdir/$ac_unique_file"; then 1486 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1487 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1488 { (exit 1); exit 1; }; } 1489fi 1490ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1491ac_abs_confdir=`( 1492 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1493 { (exit 1); exit 1; }; } 1494 pwd)` 1495# When building in place, set srcdir=. 1496if test "$ac_abs_confdir" = "$ac_pwd"; then 1497 srcdir=. 1498fi 1499# Remove unnecessary trailing slashes from srcdir. 1500# Double slashes in file names in object file debugging info 1501# mess up M-x gdb in Emacs. 1502case $srcdir in 1503*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1504esac 1505for ac_var in $ac_precious_vars; do 1506 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1507 eval ac_env_${ac_var}_value=\$${ac_var} 1508 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1509 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1510done 1511 1512# 1513# Report the --help message. 1514# 1515if test "$ac_init_help" = "long"; then 1516 # Omit some internal or obsolete options to make the list less imposing. 1517 # This message is too long to be a string in the A/UX 3.1 sh. 1518 cat <<_ACEOF 1519\`configure' configures xf86-video-glint 1.2.2 to adapt to many kinds of systems. 1520 1521Usage: $0 [OPTION]... [VAR=VALUE]... 1522 1523To assign environment variables (e.g., CC, CFLAGS...), specify them as 1524VAR=VALUE. See below for descriptions of some of the useful variables. 1525 1526Defaults for the options are specified in brackets. 1527 1528Configuration: 1529 -h, --help display this help and exit 1530 --help=short display options specific to this package 1531 --help=recursive display the short help of all the included packages 1532 -V, --version display version information and exit 1533 -q, --quiet, --silent do not print \`checking...' messages 1534 --cache-file=FILE cache test results in FILE [disabled] 1535 -C, --config-cache alias for \`--cache-file=config.cache' 1536 -n, --no-create do not create output files 1537 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1538 1539Installation directories: 1540 --prefix=PREFIX install architecture-independent files in PREFIX 1541 [$ac_default_prefix] 1542 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1543 [PREFIX] 1544 1545By default, \`make install' will install all the files in 1546\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1547an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1548for instance \`--prefix=\$HOME'. 1549 1550For better control, use the options below. 1551 1552Fine tuning of the installation directories: 1553 --bindir=DIR user executables [EPREFIX/bin] 1554 --sbindir=DIR system admin executables [EPREFIX/sbin] 1555 --libexecdir=DIR program executables [EPREFIX/libexec] 1556 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1557 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1558 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1559 --libdir=DIR object code libraries [EPREFIX/lib] 1560 --includedir=DIR C header files [PREFIX/include] 1561 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1562 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1563 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1564 --infodir=DIR info documentation [DATAROOTDIR/info] 1565 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1566 --mandir=DIR man documentation [DATAROOTDIR/man] 1567 --docdir=DIR documentation root 1568 [DATAROOTDIR/doc/xf86-video-glint] 1569 --htmldir=DIR html documentation [DOCDIR] 1570 --dvidir=DIR dvi documentation [DOCDIR] 1571 --pdfdir=DIR pdf documentation [DOCDIR] 1572 --psdir=DIR ps documentation [DOCDIR] 1573_ACEOF 1574 1575 cat <<\_ACEOF 1576 1577Program names: 1578 --program-prefix=PREFIX prepend PREFIX to installed program names 1579 --program-suffix=SUFFIX append SUFFIX to installed program names 1580 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1581 1582System types: 1583 --build=BUILD configure for building on BUILD [guessed] 1584 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1585_ACEOF 1586fi 1587 1588if test -n "$ac_init_help"; then 1589 case $ac_init_help in 1590 short | recursive ) echo "Configuration of xf86-video-glint 1.2.2:";; 1591 esac 1592 cat <<\_ACEOF 1593 1594Optional Features: 1595 --disable-option-checking ignore unrecognized --enable/--with options 1596 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1597 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1598 --enable-maintainer-mode enable make rules and dependencies not useful 1599 (and sometimes confusing) to the casual installer 1600 --enable-static[=PKGS] build static libraries [default=no] 1601 --enable-shared[=PKGS] build shared libraries [default=yes] 1602 --enable-fast-install[=PKGS] 1603 optimize for fast installation [default=yes] 1604 --disable-dependency-tracking speeds up one-time build 1605 --enable-dependency-tracking do not reject slow dependency extractors 1606 --disable-libtool-lock avoid locking (might break parallel builds) 1607 --disable-dri Disable DRI support [default=auto] 1608 1609Optional Packages: 1610 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1611 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1612 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1613 --with-pic try to use only PIC/non-PIC objects [default=use 1614 both] 1615 --with-tags[=TAGS] include additional configurations [automatic] 1616 --with-xorg-module-dir=DIR 1617 Default xorg module directory 1618 [default=$libdir/xorg/modules] 1619 --with-release-version=STRING 1620 Use release version string in package name 1621 1622Some influential environment variables: 1623 CC C compiler command 1624 CFLAGS C compiler flags 1625 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1626 nonstandard directory <lib dir> 1627 LIBS libraries to pass to the linker, e.g. -l<library> 1628 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1629 you have headers in a nonstandard directory <include dir> 1630 CPP C preprocessor 1631 CXX C++ compiler command 1632 CXXFLAGS C++ compiler flags 1633 CXXCPP C++ preprocessor 1634 F77 Fortran 77 compiler command 1635 FFLAGS Fortran 77 compiler flags 1636 PKG_CONFIG path to pkg-config utility 1637 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1638 XORG_LIBS linker flags for XORG, overriding pkg-config 1639 DRI_CFLAGS C compiler flags for DRI, overriding pkg-config 1640 DRI_LIBS linker flags for DRI, overriding pkg-config 1641 PCIACCESS_CFLAGS 1642 C compiler flags for PCIACCESS, overriding pkg-config 1643 PCIACCESS_LIBS 1644 linker flags for PCIACCESS, overriding pkg-config 1645 1646Use these variables to override the choices made by `configure' or to help 1647it to find libraries and programs with nonstandard names/locations. 1648 1649Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1650_ACEOF 1651ac_status=$? 1652fi 1653 1654if test "$ac_init_help" = "recursive"; then 1655 # If there are subdirs, report their specific --help. 1656 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1657 test -d "$ac_dir" || 1658 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1659 continue 1660 ac_builddir=. 1661 1662case "$ac_dir" in 1663.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1664*) 1665 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1666 # A ".." for each directory in $ac_dir_suffix. 1667 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1668 case $ac_top_builddir_sub in 1669 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1670 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1671 esac ;; 1672esac 1673ac_abs_top_builddir=$ac_pwd 1674ac_abs_builddir=$ac_pwd$ac_dir_suffix 1675# for backward compatibility: 1676ac_top_builddir=$ac_top_build_prefix 1677 1678case $srcdir in 1679 .) # We are building in place. 1680 ac_srcdir=. 1681 ac_top_srcdir=$ac_top_builddir_sub 1682 ac_abs_top_srcdir=$ac_pwd ;; 1683 [\\/]* | ?:[\\/]* ) # Absolute name. 1684 ac_srcdir=$srcdir$ac_dir_suffix; 1685 ac_top_srcdir=$srcdir 1686 ac_abs_top_srcdir=$srcdir ;; 1687 *) # Relative name. 1688 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1689 ac_top_srcdir=$ac_top_build_prefix$srcdir 1690 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1691esac 1692ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1693 1694 cd "$ac_dir" || { ac_status=$?; continue; } 1695 # Check for guested configure. 1696 if test -f "$ac_srcdir/configure.gnu"; then 1697 echo && 1698 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1699 elif test -f "$ac_srcdir/configure"; then 1700 echo && 1701 $SHELL "$ac_srcdir/configure" --help=recursive 1702 else 1703 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1704 fi || ac_status=$? 1705 cd "$ac_pwd" || { ac_status=$?; break; } 1706 done 1707fi 1708 1709test -n "$ac_init_help" && exit $ac_status 1710if $ac_init_version; then 1711 cat <<\_ACEOF 1712xf86-video-glint configure 1.2.2 1713generated by GNU Autoconf 2.63 1714 1715Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 17162002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1717This configure script is free software; the Free Software Foundation 1718gives unlimited permission to copy, distribute and modify it. 1719_ACEOF 1720 exit 1721fi 1722cat >config.log <<_ACEOF 1723This file contains any messages produced by compilers while 1724running configure, to aid debugging if configure makes a mistake. 1725 1726It was created by xf86-video-glint $as_me 1.2.2, which was 1727generated by GNU Autoconf 2.63. Invocation command line was 1728 1729 $ $0 $@ 1730 1731_ACEOF 1732exec 5>>config.log 1733{ 1734cat <<_ASUNAME 1735## --------- ## 1736## Platform. ## 1737## --------- ## 1738 1739hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1740uname -m = `(uname -m) 2>/dev/null || echo unknown` 1741uname -r = `(uname -r) 2>/dev/null || echo unknown` 1742uname -s = `(uname -s) 2>/dev/null || echo unknown` 1743uname -v = `(uname -v) 2>/dev/null || echo unknown` 1744 1745/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1746/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1747 1748/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1749/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1750/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1751/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1752/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1753/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1754/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1755 1756_ASUNAME 1757 1758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1759for as_dir in $PATH 1760do 1761 IFS=$as_save_IFS 1762 test -z "$as_dir" && as_dir=. 1763 $as_echo "PATH: $as_dir" 1764done 1765IFS=$as_save_IFS 1766 1767} >&5 1768 1769cat >&5 <<_ACEOF 1770 1771 1772## ----------- ## 1773## Core tests. ## 1774## ----------- ## 1775 1776_ACEOF 1777 1778 1779# Keep a trace of the command line. 1780# Strip out --no-create and --no-recursion so they do not pile up. 1781# Strip out --silent because we don't want to record it for future runs. 1782# Also quote any args containing shell meta-characters. 1783# Make two passes to allow for proper duplicate-argument suppression. 1784ac_configure_args= 1785ac_configure_args0= 1786ac_configure_args1= 1787ac_must_keep_next=false 1788for ac_pass in 1 2 1789do 1790 for ac_arg 1791 do 1792 case $ac_arg in 1793 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1794 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1795 | -silent | --silent | --silen | --sile | --sil) 1796 continue ;; 1797 *\'*) 1798 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1799 esac 1800 case $ac_pass in 1801 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1802 2) 1803 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1804 if test $ac_must_keep_next = true; then 1805 ac_must_keep_next=false # Got value, back to normal. 1806 else 1807 case $ac_arg in 1808 *=* | --config-cache | -C | -disable-* | --disable-* \ 1809 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1810 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1811 | -with-* | --with-* | -without-* | --without-* | --x) 1812 case "$ac_configure_args0 " in 1813 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1814 esac 1815 ;; 1816 -* ) ac_must_keep_next=true ;; 1817 esac 1818 fi 1819 ac_configure_args="$ac_configure_args '$ac_arg'" 1820 ;; 1821 esac 1822 done 1823done 1824$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1825$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1826 1827# When interrupted or exit'd, cleanup temporary files, and complete 1828# config.log. We remove comments because anyway the quotes in there 1829# would cause problems or look ugly. 1830# WARNING: Use '\'' to represent an apostrophe within the trap. 1831# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1832trap 'exit_status=$? 1833 # Save into config.log some information that might help in debugging. 1834 { 1835 echo 1836 1837 cat <<\_ASBOX 1838## ---------------- ## 1839## Cache variables. ## 1840## ---------------- ## 1841_ASBOX 1842 echo 1843 # The following way of writing the cache mishandles newlines in values, 1844( 1845 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1846 eval ac_val=\$$ac_var 1847 case $ac_val in #( 1848 *${as_nl}*) 1849 case $ac_var in #( 1850 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1851$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1852 esac 1853 case $ac_var in #( 1854 _ | IFS | as_nl) ;; #( 1855 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1856 *) $as_unset $ac_var ;; 1857 esac ;; 1858 esac 1859 done 1860 (set) 2>&1 | 1861 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1862 *${as_nl}ac_space=\ *) 1863 sed -n \ 1864 "s/'\''/'\''\\\\'\'''\''/g; 1865 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1866 ;; #( 1867 *) 1868 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1869 ;; 1870 esac | 1871 sort 1872) 1873 echo 1874 1875 cat <<\_ASBOX 1876## ----------------- ## 1877## Output variables. ## 1878## ----------------- ## 1879_ASBOX 1880 echo 1881 for ac_var in $ac_subst_vars 1882 do 1883 eval ac_val=\$$ac_var 1884 case $ac_val in 1885 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1886 esac 1887 $as_echo "$ac_var='\''$ac_val'\''" 1888 done | sort 1889 echo 1890 1891 if test -n "$ac_subst_files"; then 1892 cat <<\_ASBOX 1893## ------------------- ## 1894## File substitutions. ## 1895## ------------------- ## 1896_ASBOX 1897 echo 1898 for ac_var in $ac_subst_files 1899 do 1900 eval ac_val=\$$ac_var 1901 case $ac_val in 1902 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1903 esac 1904 $as_echo "$ac_var='\''$ac_val'\''" 1905 done | sort 1906 echo 1907 fi 1908 1909 if test -s confdefs.h; then 1910 cat <<\_ASBOX 1911## ----------- ## 1912## confdefs.h. ## 1913## ----------- ## 1914_ASBOX 1915 echo 1916 cat confdefs.h 1917 echo 1918 fi 1919 test "$ac_signal" != 0 && 1920 $as_echo "$as_me: caught signal $ac_signal" 1921 $as_echo "$as_me: exit $exit_status" 1922 } >&5 1923 rm -f core *.core core.conftest.* && 1924 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1925 exit $exit_status 1926' 0 1927for ac_signal in 1 2 13 15; do 1928 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1929done 1930ac_signal=0 1931 1932# confdefs.h avoids OS command line length limits that DEFS can exceed. 1933rm -f -r conftest* confdefs.h 1934 1935# Predefined preprocessor variables. 1936 1937cat >>confdefs.h <<_ACEOF 1938#define PACKAGE_NAME "$PACKAGE_NAME" 1939_ACEOF 1940 1941 1942cat >>confdefs.h <<_ACEOF 1943#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1944_ACEOF 1945 1946 1947cat >>confdefs.h <<_ACEOF 1948#define PACKAGE_VERSION "$PACKAGE_VERSION" 1949_ACEOF 1950 1951 1952cat >>confdefs.h <<_ACEOF 1953#define PACKAGE_STRING "$PACKAGE_STRING" 1954_ACEOF 1955 1956 1957cat >>confdefs.h <<_ACEOF 1958#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1959_ACEOF 1960 1961 1962# Let the site file select an alternate cache file if it wants to. 1963# Prefer an explicitly selected file to automatically selected ones. 1964ac_site_file1=NONE 1965ac_site_file2=NONE 1966if test -n "$CONFIG_SITE"; then 1967 ac_site_file1=$CONFIG_SITE 1968elif test "x$prefix" != xNONE; then 1969 ac_site_file1=$prefix/share/config.site 1970 ac_site_file2=$prefix/etc/config.site 1971else 1972 ac_site_file1=$ac_default_prefix/share/config.site 1973 ac_site_file2=$ac_default_prefix/etc/config.site 1974fi 1975for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1976do 1977 test "x$ac_site_file" = xNONE && continue 1978 if test -r "$ac_site_file"; then 1979 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1980$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1981 sed 's/^/| /' "$ac_site_file" >&5 1982 . "$ac_site_file" 1983 fi 1984done 1985 1986if test -r "$cache_file"; then 1987 # Some versions of bash will fail to source /dev/null (special 1988 # files actually), so we avoid doing that. 1989 if test -f "$cache_file"; then 1990 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1991$as_echo "$as_me: loading cache $cache_file" >&6;} 1992 case $cache_file in 1993 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1994 *) . "./$cache_file";; 1995 esac 1996 fi 1997else 1998 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1999$as_echo "$as_me: creating cache $cache_file" >&6;} 2000 >$cache_file 2001fi 2002 2003# Check that the precious variables saved in the cache have kept the same 2004# value. 2005ac_cache_corrupted=false 2006for ac_var in $ac_precious_vars; do 2007 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2008 eval ac_new_set=\$ac_env_${ac_var}_set 2009 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2010 eval ac_new_val=\$ac_env_${ac_var}_value 2011 case $ac_old_set,$ac_new_set in 2012 set,) 2013 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2014$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2015 ac_cache_corrupted=: ;; 2016 ,set) 2017 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 2018$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2019 ac_cache_corrupted=: ;; 2020 ,);; 2021 *) 2022 if test "x$ac_old_val" != "x$ac_new_val"; then 2023 # differences in whitespace do not lead to failure. 2024 ac_old_val_w=`echo x $ac_old_val` 2025 ac_new_val_w=`echo x $ac_new_val` 2026 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2027 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 2028$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2029 ac_cache_corrupted=: 2030 else 2031 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2032$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2033 eval $ac_var=\$ac_old_val 2034 fi 2035 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 2036$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2037 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 2038$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2039 fi;; 2040 esac 2041 # Pass precious variables to config.status. 2042 if test "$ac_new_set" = set; then 2043 case $ac_new_val in 2044 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2045 *) ac_arg=$ac_var=$ac_new_val ;; 2046 esac 2047 case " $ac_configure_args " in 2048 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2049 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2050 esac 2051 fi 2052done 2053if $ac_cache_corrupted; then 2054 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2055$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2056 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2057$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2058 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2059$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2060 { (exit 1); exit 1; }; } 2061fi 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087ac_ext=c 2088ac_cpp='$CPP $CPPFLAGS' 2089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2091ac_compiler_gnu=$ac_cv_c_compiler_gnu 2092 2093 2094 2095 2096ac_config_headers="$ac_config_headers config.h" 2097 2098ac_aux_dir= 2099for ac_dir in . "$srcdir"/.; do 2100 if test -f "$ac_dir/install-sh"; then 2101 ac_aux_dir=$ac_dir 2102 ac_install_sh="$ac_aux_dir/install-sh -c" 2103 break 2104 elif test -f "$ac_dir/install.sh"; then 2105 ac_aux_dir=$ac_dir 2106 ac_install_sh="$ac_aux_dir/install.sh -c" 2107 break 2108 elif test -f "$ac_dir/shtool"; then 2109 ac_aux_dir=$ac_dir 2110 ac_install_sh="$ac_aux_dir/shtool install -c" 2111 break 2112 fi 2113done 2114if test -z "$ac_aux_dir"; then 2115 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5 2116$as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;} 2117 { (exit 1); exit 1; }; } 2118fi 2119 2120# These three variables are undocumented and unsupported, 2121# and are intended to be withdrawn in a future Autoconf release. 2122# They can cause serious problems if a builder's source tree is in a directory 2123# whose full name contains unusual characters. 2124ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2125ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2126ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2127 2128 2129 2130am__api_version='1.10' 2131 2132# Find a good install program. We prefer a C program (faster), 2133# so one script is as good as another. But avoid the broken or 2134# incompatible versions: 2135# SysV /etc/install, /usr/sbin/install 2136# SunOS /usr/etc/install 2137# IRIX /sbin/install 2138# AIX /bin/install 2139# AmigaOS /C/install, which installs bootblocks on floppy discs 2140# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2141# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2142# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2143# OS/2's system install, which has a completely different semantic 2144# ./install, which can be erroneously created by make from ./install.sh. 2145# Reject install programs that cannot install multiple files. 2146{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2147$as_echo_n "checking for a BSD-compatible install... " >&6; } 2148if test -z "$INSTALL"; then 2149if test "${ac_cv_path_install+set}" = set; then 2150 $as_echo_n "(cached) " >&6 2151else 2152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2153for as_dir in $PATH 2154do 2155 IFS=$as_save_IFS 2156 test -z "$as_dir" && as_dir=. 2157 # Account for people who put trailing slashes in PATH elements. 2158case $as_dir/ in 2159 ./ | .// | /cC/* | \ 2160 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2161 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2162 /usr/ucb/* ) ;; 2163 *) 2164 # OSF1 and SCO ODT 3.0 have their own names for install. 2165 # Don't use installbsd from OSF since it installs stuff as root 2166 # by default. 2167 for ac_prog in ginstall scoinst install; do 2168 for ac_exec_ext in '' $ac_executable_extensions; do 2169 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2170 if test $ac_prog = install && 2171 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2172 # AIX install. It has an incompatible calling convention. 2173 : 2174 elif test $ac_prog = install && 2175 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2176 # program-specific install script used by HP pwplus--don't use. 2177 : 2178 else 2179 rm -rf conftest.one conftest.two conftest.dir 2180 echo one > conftest.one 2181 echo two > conftest.two 2182 mkdir conftest.dir 2183 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2184 test -s conftest.one && test -s conftest.two && 2185 test -s conftest.dir/conftest.one && 2186 test -s conftest.dir/conftest.two 2187 then 2188 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2189 break 3 2190 fi 2191 fi 2192 fi 2193 done 2194 done 2195 ;; 2196esac 2197 2198done 2199IFS=$as_save_IFS 2200 2201rm -rf conftest.one conftest.two conftest.dir 2202 2203fi 2204 if test "${ac_cv_path_install+set}" = set; then 2205 INSTALL=$ac_cv_path_install 2206 else 2207 # As a last resort, use the slow shell script. Don't cache a 2208 # value for INSTALL within a source directory, because that will 2209 # break other packages using the cache if that directory is 2210 # removed, or if the value is a relative name. 2211 INSTALL=$ac_install_sh 2212 fi 2213fi 2214{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2215$as_echo "$INSTALL" >&6; } 2216 2217# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2218# It thinks the first close brace ends the variable substitution. 2219test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2220 2221test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2222 2223test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2224 2225{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2226$as_echo_n "checking whether build environment is sane... " >&6; } 2227# Just in case 2228sleep 1 2229echo timestamp > conftest.file 2230# Do `set' in a subshell so we don't clobber the current shell's 2231# arguments. Must try -L first in case configure is actually a 2232# symlink; some systems play weird games with the mod time of symlinks 2233# (eg FreeBSD returns the mod time of the symlink's containing 2234# directory). 2235if ( 2236 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2237 if test "$*" = "X"; then 2238 # -L didn't work. 2239 set X `ls -t $srcdir/configure conftest.file` 2240 fi 2241 rm -f conftest.file 2242 if test "$*" != "X $srcdir/configure conftest.file" \ 2243 && test "$*" != "X conftest.file $srcdir/configure"; then 2244 2245 # If neither matched, then we have a broken ls. This can happen 2246 # if, for instance, CONFIG_SHELL is bash and it inherits a 2247 # broken ls alias from the environment. This has actually 2248 # happened. Such a system could not be considered "sane". 2249 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2250alias in your environment" >&5 2251$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2252alias in your environment" >&2;} 2253 { (exit 1); exit 1; }; } 2254 fi 2255 2256 test "$2" = conftest.file 2257 ) 2258then 2259 # Ok. 2260 : 2261else 2262 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2263Check your system clock" >&5 2264$as_echo "$as_me: error: newly created file is older than distributed files! 2265Check your system clock" >&2;} 2266 { (exit 1); exit 1; }; } 2267fi 2268{ $as_echo "$as_me:$LINENO: result: yes" >&5 2269$as_echo "yes" >&6; } 2270test "$program_prefix" != NONE && 2271 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2272# Use a double $ so make ignores it. 2273test "$program_suffix" != NONE && 2274 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2275# Double any \ or $. 2276# By default was `s,x,x', remove it if useless. 2277ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2278program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2279 2280# expand $ac_aux_dir to an absolute path 2281am_aux_dir=`cd $ac_aux_dir && pwd` 2282 2283test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2284# Use eval to expand $SHELL 2285if eval "$MISSING --run true"; then 2286 am_missing_run="$MISSING --run " 2287else 2288 am_missing_run= 2289 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2290$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2291fi 2292 2293{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2294$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2295if test -z "$MKDIR_P"; then 2296 if test "${ac_cv_path_mkdir+set}" = set; then 2297 $as_echo_n "(cached) " >&6 2298else 2299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2300for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2301do 2302 IFS=$as_save_IFS 2303 test -z "$as_dir" && as_dir=. 2304 for ac_prog in mkdir gmkdir; do 2305 for ac_exec_ext in '' $ac_executable_extensions; do 2306 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2307 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2308 'mkdir (GNU coreutils) '* | \ 2309 'mkdir (coreutils) '* | \ 2310 'mkdir (fileutils) '4.1*) 2311 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2312 break 3;; 2313 esac 2314 done 2315 done 2316done 2317IFS=$as_save_IFS 2318 2319fi 2320 2321 if test "${ac_cv_path_mkdir+set}" = set; then 2322 MKDIR_P="$ac_cv_path_mkdir -p" 2323 else 2324 # As a last resort, use the slow shell script. Don't cache a 2325 # value for MKDIR_P within a source directory, because that will 2326 # break other packages using the cache if that directory is 2327 # removed, or if the value is a relative name. 2328 test -d ./--version && rmdir ./--version 2329 MKDIR_P="$ac_install_sh -d" 2330 fi 2331fi 2332{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2333$as_echo "$MKDIR_P" >&6; } 2334 2335mkdir_p="$MKDIR_P" 2336case $mkdir_p in 2337 [\\/$]* | ?:[\\/]*) ;; 2338 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2339esac 2340 2341for ac_prog in gawk mawk nawk awk 2342do 2343 # Extract the first word of "$ac_prog", so it can be a program name with args. 2344set dummy $ac_prog; ac_word=$2 2345{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2346$as_echo_n "checking for $ac_word... " >&6; } 2347if test "${ac_cv_prog_AWK+set}" = set; then 2348 $as_echo_n "(cached) " >&6 2349else 2350 if test -n "$AWK"; then 2351 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2352else 2353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2354for as_dir in $PATH 2355do 2356 IFS=$as_save_IFS 2357 test -z "$as_dir" && as_dir=. 2358 for ac_exec_ext in '' $ac_executable_extensions; do 2359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2360 ac_cv_prog_AWK="$ac_prog" 2361 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2362 break 2 2363 fi 2364done 2365done 2366IFS=$as_save_IFS 2367 2368fi 2369fi 2370AWK=$ac_cv_prog_AWK 2371if test -n "$AWK"; then 2372 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2373$as_echo "$AWK" >&6; } 2374else 2375 { $as_echo "$as_me:$LINENO: result: no" >&5 2376$as_echo "no" >&6; } 2377fi 2378 2379 2380 test -n "$AWK" && break 2381done 2382 2383{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2384$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2385set x ${MAKE-make} 2386ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2387if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2388 $as_echo_n "(cached) " >&6 2389else 2390 cat >conftest.make <<\_ACEOF 2391SHELL = /bin/sh 2392all: 2393 @echo '@@@%%%=$(MAKE)=@@@%%%' 2394_ACEOF 2395# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2396case `${MAKE-make} -f conftest.make 2>/dev/null` in 2397 *@@@%%%=?*=@@@%%%*) 2398 eval ac_cv_prog_make_${ac_make}_set=yes;; 2399 *) 2400 eval ac_cv_prog_make_${ac_make}_set=no;; 2401esac 2402rm -f conftest.make 2403fi 2404if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2405 { $as_echo "$as_me:$LINENO: result: yes" >&5 2406$as_echo "yes" >&6; } 2407 SET_MAKE= 2408else 2409 { $as_echo "$as_me:$LINENO: result: no" >&5 2410$as_echo "no" >&6; } 2411 SET_MAKE="MAKE=${MAKE-make}" 2412fi 2413 2414rm -rf .tst 2>/dev/null 2415mkdir .tst 2>/dev/null 2416if test -d .tst; then 2417 am__leading_dot=. 2418else 2419 am__leading_dot=_ 2420fi 2421rmdir .tst 2>/dev/null 2422 2423if test "`cd $srcdir && pwd`" != "`pwd`"; then 2424 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2425 # is not polluted with repeated "-I." 2426 am__isrc=' -I$(srcdir)' 2427 # test to see if srcdir already configured 2428 if test -f $srcdir/config.status; then 2429 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2430$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2431 { (exit 1); exit 1; }; } 2432 fi 2433fi 2434 2435# test whether we have cygpath 2436if test -z "$CYGPATH_W"; then 2437 if (cygpath --version) >/dev/null 2>/dev/null; then 2438 CYGPATH_W='cygpath -w' 2439 else 2440 CYGPATH_W=echo 2441 fi 2442fi 2443 2444 2445# Define the identity of the package. 2446 PACKAGE='xf86-video-glint' 2447 VERSION='1.2.2' 2448 2449 2450cat >>confdefs.h <<_ACEOF 2451#define PACKAGE "$PACKAGE" 2452_ACEOF 2453 2454 2455cat >>confdefs.h <<_ACEOF 2456#define VERSION "$VERSION" 2457_ACEOF 2458 2459# Some tools Automake needs. 2460 2461ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2462 2463 2464AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2465 2466 2467AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2468 2469 2470AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2471 2472 2473MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2474 2475install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2476 2477# Installed binaries are usually stripped using `strip' when the user 2478# run `make install-strip'. However `strip' might not be the right 2479# tool to use in cross-compilation environments, therefore Automake 2480# will honor the `STRIP' environment variable to overrule this program. 2481if test "$cross_compiling" != no; then 2482 if test -n "$ac_tool_prefix"; then 2483 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2484set dummy ${ac_tool_prefix}strip; ac_word=$2 2485{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2486$as_echo_n "checking for $ac_word... " >&6; } 2487if test "${ac_cv_prog_STRIP+set}" = set; then 2488 $as_echo_n "(cached) " >&6 2489else 2490 if test -n "$STRIP"; then 2491 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2492else 2493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2494for as_dir in $PATH 2495do 2496 IFS=$as_save_IFS 2497 test -z "$as_dir" && as_dir=. 2498 for ac_exec_ext in '' $ac_executable_extensions; do 2499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2500 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2501 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2502 break 2 2503 fi 2504done 2505done 2506IFS=$as_save_IFS 2507 2508fi 2509fi 2510STRIP=$ac_cv_prog_STRIP 2511if test -n "$STRIP"; then 2512 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2513$as_echo "$STRIP" >&6; } 2514else 2515 { $as_echo "$as_me:$LINENO: result: no" >&5 2516$as_echo "no" >&6; } 2517fi 2518 2519 2520fi 2521if test -z "$ac_cv_prog_STRIP"; then 2522 ac_ct_STRIP=$STRIP 2523 # Extract the first word of "strip", so it can be a program name with args. 2524set dummy strip; ac_word=$2 2525{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2526$as_echo_n "checking for $ac_word... " >&6; } 2527if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2528 $as_echo_n "(cached) " >&6 2529else 2530 if test -n "$ac_ct_STRIP"; then 2531 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2532else 2533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2534for as_dir in $PATH 2535do 2536 IFS=$as_save_IFS 2537 test -z "$as_dir" && as_dir=. 2538 for ac_exec_ext in '' $ac_executable_extensions; do 2539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2540 ac_cv_prog_ac_ct_STRIP="strip" 2541 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2542 break 2 2543 fi 2544done 2545done 2546IFS=$as_save_IFS 2547 2548fi 2549fi 2550ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2551if test -n "$ac_ct_STRIP"; then 2552 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2553$as_echo "$ac_ct_STRIP" >&6; } 2554else 2555 { $as_echo "$as_me:$LINENO: result: no" >&5 2556$as_echo "no" >&6; } 2557fi 2558 2559 if test "x$ac_ct_STRIP" = x; then 2560 STRIP=":" 2561 else 2562 case $cross_compiling:$ac_tool_warned in 2563yes:) 2564{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2565$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2566ac_tool_warned=yes ;; 2567esac 2568 STRIP=$ac_ct_STRIP 2569 fi 2570else 2571 STRIP="$ac_cv_prog_STRIP" 2572fi 2573 2574fi 2575INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2576 2577# We need awk for the "check" target. The system "awk" is bad on 2578# some platforms. 2579# Always define AMTAR for backward compatibility. 2580 2581AMTAR=${AMTAR-"${am_missing_run}tar"} 2582 2583am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2584 2585 2586 2587 2588 2589 2590{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2591$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2592 # Check whether --enable-maintainer-mode was given. 2593if test "${enable_maintainer_mode+set}" = set; then 2594 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2595else 2596 USE_MAINTAINER_MODE=no 2597fi 2598 2599 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2600$as_echo "$USE_MAINTAINER_MODE" >&6; } 2601 if test $USE_MAINTAINER_MODE = yes; then 2602 MAINTAINER_MODE_TRUE= 2603 MAINTAINER_MODE_FALSE='#' 2604else 2605 MAINTAINER_MODE_TRUE='#' 2606 MAINTAINER_MODE_FALSE= 2607fi 2608 2609 MAINT=$MAINTAINER_MODE_TRUE 2610 2611 2612 2613# Checks for programs. 2614# Check whether --enable-static was given. 2615if test "${enable_static+set}" = set; then 2616 enableval=$enable_static; p=${PACKAGE-default} 2617 case $enableval in 2618 yes) enable_static=yes ;; 2619 no) enable_static=no ;; 2620 *) 2621 enable_static=no 2622 # Look at the argument we got. We use all the common list separators. 2623 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2624 for pkg in $enableval; do 2625 IFS="$lt_save_ifs" 2626 if test "X$pkg" = "X$p"; then 2627 enable_static=yes 2628 fi 2629 done 2630 IFS="$lt_save_ifs" 2631 ;; 2632 esac 2633else 2634 enable_static=no 2635fi 2636 2637 2638 2639# Check whether --enable-shared was given. 2640if test "${enable_shared+set}" = set; then 2641 enableval=$enable_shared; p=${PACKAGE-default} 2642 case $enableval in 2643 yes) enable_shared=yes ;; 2644 no) enable_shared=no ;; 2645 *) 2646 enable_shared=no 2647 # Look at the argument we got. We use all the common list separators. 2648 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2649 for pkg in $enableval; do 2650 IFS="$lt_save_ifs" 2651 if test "X$pkg" = "X$p"; then 2652 enable_shared=yes 2653 fi 2654 done 2655 IFS="$lt_save_ifs" 2656 ;; 2657 esac 2658else 2659 enable_shared=yes 2660fi 2661 2662 2663# Check whether --enable-fast-install was given. 2664if test "${enable_fast_install+set}" = set; then 2665 enableval=$enable_fast_install; p=${PACKAGE-default} 2666 case $enableval in 2667 yes) enable_fast_install=yes ;; 2668 no) enable_fast_install=no ;; 2669 *) 2670 enable_fast_install=no 2671 # Look at the argument we got. We use all the common list separators. 2672 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2673 for pkg in $enableval; do 2674 IFS="$lt_save_ifs" 2675 if test "X$pkg" = "X$p"; then 2676 enable_fast_install=yes 2677 fi 2678 done 2679 IFS="$lt_save_ifs" 2680 ;; 2681 esac 2682else 2683 enable_fast_install=yes 2684fi 2685 2686 2687# Make sure we can run config.sub. 2688$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2689 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2690$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2691 { (exit 1); exit 1; }; } 2692 2693{ $as_echo "$as_me:$LINENO: checking build system type" >&5 2694$as_echo_n "checking build system type... " >&6; } 2695if test "${ac_cv_build+set}" = set; then 2696 $as_echo_n "(cached) " >&6 2697else 2698 ac_build_alias=$build_alias 2699test "x$ac_build_alias" = x && 2700 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2701test "x$ac_build_alias" = x && 2702 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2703$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2704 { (exit 1); exit 1; }; } 2705ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2706 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2707$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2708 { (exit 1); exit 1; }; } 2709 2710fi 2711{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2712$as_echo "$ac_cv_build" >&6; } 2713case $ac_cv_build in 2714*-*-*) ;; 2715*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2716$as_echo "$as_me: error: invalid value of canonical build" >&2;} 2717 { (exit 1); exit 1; }; };; 2718esac 2719build=$ac_cv_build 2720ac_save_IFS=$IFS; IFS='-' 2721set x $ac_cv_build 2722shift 2723build_cpu=$1 2724build_vendor=$2 2725shift; shift 2726# Remember, the first character of IFS is used to create $*, 2727# except with old shells: 2728build_os=$* 2729IFS=$ac_save_IFS 2730case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2731 2732 2733{ $as_echo "$as_me:$LINENO: checking host system type" >&5 2734$as_echo_n "checking host system type... " >&6; } 2735if test "${ac_cv_host+set}" = set; then 2736 $as_echo_n "(cached) " >&6 2737else 2738 if test "x$host_alias" = x; then 2739 ac_cv_host=$ac_cv_build 2740else 2741 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2742 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2743$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2744 { (exit 1); exit 1; }; } 2745fi 2746 2747fi 2748{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2749$as_echo "$ac_cv_host" >&6; } 2750case $ac_cv_host in 2751*-*-*) ;; 2752*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2753$as_echo "$as_me: error: invalid value of canonical host" >&2;} 2754 { (exit 1); exit 1; }; };; 2755esac 2756host=$ac_cv_host 2757ac_save_IFS=$IFS; IFS='-' 2758set x $ac_cv_host 2759shift 2760host_cpu=$1 2761host_vendor=$2 2762shift; shift 2763# Remember, the first character of IFS is used to create $*, 2764# except with old shells: 2765host_os=$* 2766IFS=$ac_save_IFS 2767case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2768 2769 2770DEPDIR="${am__leading_dot}deps" 2771 2772ac_config_commands="$ac_config_commands depfiles" 2773 2774 2775am_make=${MAKE-make} 2776cat > confinc << 'END' 2777am__doit: 2778 @echo done 2779.PHONY: am__doit 2780END 2781# If we don't find an include directive, just comment out the code. 2782{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2783$as_echo_n "checking for style of include used by $am_make... " >&6; } 2784am__include="#" 2785am__quote= 2786_am_result=none 2787# First try GNU make style include. 2788echo "include confinc" > confmf 2789# We grep out `Entering directory' and `Leaving directory' 2790# messages which can occur if `w' ends up in MAKEFLAGS. 2791# In particular we don't look at `^make:' because GNU make might 2792# be invoked under some other name (usually "gmake"), in which 2793# case it prints its new name instead of `make'. 2794if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2795 am__include=include 2796 am__quote= 2797 _am_result=GNU 2798fi 2799# Now try BSD make style include. 2800if test "$am__include" = "#"; then 2801 echo '.include "confinc"' > confmf 2802 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2803 am__include=.include 2804 am__quote="\"" 2805 _am_result=BSD 2806 fi 2807fi 2808 2809 2810{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 2811$as_echo "$_am_result" >&6; } 2812rm -f confinc confmf 2813 2814# Check whether --enable-dependency-tracking was given. 2815if test "${enable_dependency_tracking+set}" = set; then 2816 enableval=$enable_dependency_tracking; 2817fi 2818 2819if test "x$enable_dependency_tracking" != xno; then 2820 am_depcomp="$ac_aux_dir/depcomp" 2821 AMDEPBACKSLASH='\' 2822fi 2823 if test "x$enable_dependency_tracking" != xno; then 2824 AMDEP_TRUE= 2825 AMDEP_FALSE='#' 2826else 2827 AMDEP_TRUE='#' 2828 AMDEP_FALSE= 2829fi 2830 2831 2832ac_ext=c 2833ac_cpp='$CPP $CPPFLAGS' 2834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2835ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2836ac_compiler_gnu=$ac_cv_c_compiler_gnu 2837if test -n "$ac_tool_prefix"; then 2838 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2839set dummy ${ac_tool_prefix}gcc; ac_word=$2 2840{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2841$as_echo_n "checking for $ac_word... " >&6; } 2842if test "${ac_cv_prog_CC+set}" = set; then 2843 $as_echo_n "(cached) " >&6 2844else 2845 if test -n "$CC"; then 2846 ac_cv_prog_CC="$CC" # Let the user override the test. 2847else 2848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2849for as_dir in $PATH 2850do 2851 IFS=$as_save_IFS 2852 test -z "$as_dir" && as_dir=. 2853 for ac_exec_ext in '' $ac_executable_extensions; do 2854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2855 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2856 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2857 break 2 2858 fi 2859done 2860done 2861IFS=$as_save_IFS 2862 2863fi 2864fi 2865CC=$ac_cv_prog_CC 2866if test -n "$CC"; then 2867 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2868$as_echo "$CC" >&6; } 2869else 2870 { $as_echo "$as_me:$LINENO: result: no" >&5 2871$as_echo "no" >&6; } 2872fi 2873 2874 2875fi 2876if test -z "$ac_cv_prog_CC"; then 2877 ac_ct_CC=$CC 2878 # Extract the first word of "gcc", so it can be a program name with args. 2879set dummy gcc; ac_word=$2 2880{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2881$as_echo_n "checking for $ac_word... " >&6; } 2882if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2883 $as_echo_n "(cached) " >&6 2884else 2885 if test -n "$ac_ct_CC"; then 2886 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2887else 2888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2889for as_dir in $PATH 2890do 2891 IFS=$as_save_IFS 2892 test -z "$as_dir" && as_dir=. 2893 for ac_exec_ext in '' $ac_executable_extensions; do 2894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2895 ac_cv_prog_ac_ct_CC="gcc" 2896 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2897 break 2 2898 fi 2899done 2900done 2901IFS=$as_save_IFS 2902 2903fi 2904fi 2905ac_ct_CC=$ac_cv_prog_ac_ct_CC 2906if test -n "$ac_ct_CC"; then 2907 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2908$as_echo "$ac_ct_CC" >&6; } 2909else 2910 { $as_echo "$as_me:$LINENO: result: no" >&5 2911$as_echo "no" >&6; } 2912fi 2913 2914 if test "x$ac_ct_CC" = x; then 2915 CC="" 2916 else 2917 case $cross_compiling:$ac_tool_warned in 2918yes:) 2919{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2920$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2921ac_tool_warned=yes ;; 2922esac 2923 CC=$ac_ct_CC 2924 fi 2925else 2926 CC="$ac_cv_prog_CC" 2927fi 2928 2929if test -z "$CC"; then 2930 if test -n "$ac_tool_prefix"; then 2931 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2932set dummy ${ac_tool_prefix}cc; ac_word=$2 2933{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2934$as_echo_n "checking for $ac_word... " >&6; } 2935if test "${ac_cv_prog_CC+set}" = set; then 2936 $as_echo_n "(cached) " >&6 2937else 2938 if test -n "$CC"; then 2939 ac_cv_prog_CC="$CC" # Let the user override the test. 2940else 2941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2942for as_dir in $PATH 2943do 2944 IFS=$as_save_IFS 2945 test -z "$as_dir" && as_dir=. 2946 for ac_exec_ext in '' $ac_executable_extensions; do 2947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2948 ac_cv_prog_CC="${ac_tool_prefix}cc" 2949 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2950 break 2 2951 fi 2952done 2953done 2954IFS=$as_save_IFS 2955 2956fi 2957fi 2958CC=$ac_cv_prog_CC 2959if test -n "$CC"; then 2960 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2961$as_echo "$CC" >&6; } 2962else 2963 { $as_echo "$as_me:$LINENO: result: no" >&5 2964$as_echo "no" >&6; } 2965fi 2966 2967 2968 fi 2969fi 2970if test -z "$CC"; then 2971 # Extract the first word of "cc", so it can be a program name with args. 2972set dummy cc; ac_word=$2 2973{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2974$as_echo_n "checking for $ac_word... " >&6; } 2975if test "${ac_cv_prog_CC+set}" = set; then 2976 $as_echo_n "(cached) " >&6 2977else 2978 if test -n "$CC"; then 2979 ac_cv_prog_CC="$CC" # Let the user override the test. 2980else 2981 ac_prog_rejected=no 2982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2983for as_dir in $PATH 2984do 2985 IFS=$as_save_IFS 2986 test -z "$as_dir" && as_dir=. 2987 for ac_exec_ext in '' $ac_executable_extensions; do 2988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2989 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2990 ac_prog_rejected=yes 2991 continue 2992 fi 2993 ac_cv_prog_CC="cc" 2994 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2995 break 2 2996 fi 2997done 2998done 2999IFS=$as_save_IFS 3000 3001if test $ac_prog_rejected = yes; then 3002 # We found a bogon in the path, so make sure we never use it. 3003 set dummy $ac_cv_prog_CC 3004 shift 3005 if test $# != 0; then 3006 # We chose a different compiler from the bogus one. 3007 # However, it has the same basename, so the bogon will be chosen 3008 # first if we set CC to just the basename; use the full file name. 3009 shift 3010 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3011 fi 3012fi 3013fi 3014fi 3015CC=$ac_cv_prog_CC 3016if test -n "$CC"; then 3017 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3018$as_echo "$CC" >&6; } 3019else 3020 { $as_echo "$as_me:$LINENO: result: no" >&5 3021$as_echo "no" >&6; } 3022fi 3023 3024 3025fi 3026if test -z "$CC"; then 3027 if test -n "$ac_tool_prefix"; then 3028 for ac_prog in cl.exe 3029 do 3030 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3031set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3032{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3033$as_echo_n "checking for $ac_word... " >&6; } 3034if test "${ac_cv_prog_CC+set}" = set; then 3035 $as_echo_n "(cached) " >&6 3036else 3037 if test -n "$CC"; then 3038 ac_cv_prog_CC="$CC" # Let the user override the test. 3039else 3040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3041for as_dir in $PATH 3042do 3043 IFS=$as_save_IFS 3044 test -z "$as_dir" && as_dir=. 3045 for ac_exec_ext in '' $ac_executable_extensions; do 3046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3047 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3048 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3049 break 2 3050 fi 3051done 3052done 3053IFS=$as_save_IFS 3054 3055fi 3056fi 3057CC=$ac_cv_prog_CC 3058if test -n "$CC"; then 3059 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3060$as_echo "$CC" >&6; } 3061else 3062 { $as_echo "$as_me:$LINENO: result: no" >&5 3063$as_echo "no" >&6; } 3064fi 3065 3066 3067 test -n "$CC" && break 3068 done 3069fi 3070if test -z "$CC"; then 3071 ac_ct_CC=$CC 3072 for ac_prog in cl.exe 3073do 3074 # Extract the first word of "$ac_prog", so it can be a program name with args. 3075set dummy $ac_prog; ac_word=$2 3076{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3077$as_echo_n "checking for $ac_word... " >&6; } 3078if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3079 $as_echo_n "(cached) " >&6 3080else 3081 if test -n "$ac_ct_CC"; then 3082 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3083else 3084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3085for as_dir in $PATH 3086do 3087 IFS=$as_save_IFS 3088 test -z "$as_dir" && as_dir=. 3089 for ac_exec_ext in '' $ac_executable_extensions; do 3090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3091 ac_cv_prog_ac_ct_CC="$ac_prog" 3092 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3093 break 2 3094 fi 3095done 3096done 3097IFS=$as_save_IFS 3098 3099fi 3100fi 3101ac_ct_CC=$ac_cv_prog_ac_ct_CC 3102if test -n "$ac_ct_CC"; then 3103 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3104$as_echo "$ac_ct_CC" >&6; } 3105else 3106 { $as_echo "$as_me:$LINENO: result: no" >&5 3107$as_echo "no" >&6; } 3108fi 3109 3110 3111 test -n "$ac_ct_CC" && break 3112done 3113 3114 if test "x$ac_ct_CC" = x; then 3115 CC="" 3116 else 3117 case $cross_compiling:$ac_tool_warned in 3118yes:) 3119{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 3120$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3121ac_tool_warned=yes ;; 3122esac 3123 CC=$ac_ct_CC 3124 fi 3125fi 3126 3127fi 3128 3129 3130test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3131$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3132{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3133See \`config.log' for more details." >&5 3134$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 3135See \`config.log' for more details." >&2;} 3136 { (exit 1); exit 1; }; }; } 3137 3138# Provide some information about the compiler. 3139$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 3140set X $ac_compile 3141ac_compiler=$2 3142{ (ac_try="$ac_compiler --version >&5" 3143case "(($ac_try" in 3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3145 *) ac_try_echo=$ac_try;; 3146esac 3147eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3148$as_echo "$ac_try_echo") >&5 3149 (eval "$ac_compiler --version >&5") 2>&5 3150 ac_status=$? 3151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3152 (exit $ac_status); } 3153{ (ac_try="$ac_compiler -v >&5" 3154case "(($ac_try" in 3155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3156 *) ac_try_echo=$ac_try;; 3157esac 3158eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3159$as_echo "$ac_try_echo") >&5 3160 (eval "$ac_compiler -v >&5") 2>&5 3161 ac_status=$? 3162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3163 (exit $ac_status); } 3164{ (ac_try="$ac_compiler -V >&5" 3165case "(($ac_try" in 3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3167 *) ac_try_echo=$ac_try;; 3168esac 3169eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3170$as_echo "$ac_try_echo") >&5 3171 (eval "$ac_compiler -V >&5") 2>&5 3172 ac_status=$? 3173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3174 (exit $ac_status); } 3175 3176cat >conftest.$ac_ext <<_ACEOF 3177/* confdefs.h. */ 3178_ACEOF 3179cat confdefs.h >>conftest.$ac_ext 3180cat >>conftest.$ac_ext <<_ACEOF 3181/* end confdefs.h. */ 3182 3183int 3184main () 3185{ 3186 3187 ; 3188 return 0; 3189} 3190_ACEOF 3191ac_clean_files_save=$ac_clean_files 3192ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3193# Try to create an executable without -o first, disregard a.out. 3194# It will help us diagnose broken compilers, and finding out an intuition 3195# of exeext. 3196{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3197$as_echo_n "checking for C compiler default output file name... " >&6; } 3198ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3199 3200# The possible output files: 3201ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3202 3203ac_rmfiles= 3204for ac_file in $ac_files 3205do 3206 case $ac_file in 3207 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3208 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3209 esac 3210done 3211rm -f $ac_rmfiles 3212 3213if { (ac_try="$ac_link_default" 3214case "(($ac_try" in 3215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3216 *) ac_try_echo=$ac_try;; 3217esac 3218eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3219$as_echo "$ac_try_echo") >&5 3220 (eval "$ac_link_default") 2>&5 3221 ac_status=$? 3222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3223 (exit $ac_status); }; then 3224 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3225# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3226# in a Makefile. We should not override ac_cv_exeext if it was cached, 3227# so that the user can short-circuit this test for compilers unknown to 3228# Autoconf. 3229for ac_file in $ac_files '' 3230do 3231 test -f "$ac_file" || continue 3232 case $ac_file in 3233 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3234 ;; 3235 [ab].out ) 3236 # We found the default executable, but exeext='' is most 3237 # certainly right. 3238 break;; 3239 *.* ) 3240 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3241 then :; else 3242 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3243 fi 3244 # We set ac_cv_exeext here because the later test for it is not 3245 # safe: cross compilers may not add the suffix if given an `-o' 3246 # argument, so we may need to know it at that point already. 3247 # Even if this section looks crufty: it has the advantage of 3248 # actually working. 3249 break;; 3250 * ) 3251 break;; 3252 esac 3253done 3254test "$ac_cv_exeext" = no && ac_cv_exeext= 3255 3256else 3257 ac_file='' 3258fi 3259 3260{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 3261$as_echo "$ac_file" >&6; } 3262if test -z "$ac_file"; then 3263 $as_echo "$as_me: failed program was:" >&5 3264sed 's/^/| /' conftest.$ac_ext >&5 3265 3266{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3267$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3268{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 3269See \`config.log' for more details." >&5 3270$as_echo "$as_me: error: C compiler cannot create executables 3271See \`config.log' for more details." >&2;} 3272 { (exit 77); exit 77; }; }; } 3273fi 3274 3275ac_exeext=$ac_cv_exeext 3276 3277# Check that the compiler produces executables we can run. If not, either 3278# the compiler is broken, or we cross compile. 3279{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3280$as_echo_n "checking whether the C compiler works... " >&6; } 3281# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3282# If not cross compiling, check that we can run a simple program. 3283if test "$cross_compiling" != yes; then 3284 if { ac_try='./$ac_file' 3285 { (case "(($ac_try" in 3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3287 *) ac_try_echo=$ac_try;; 3288esac 3289eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3290$as_echo "$ac_try_echo") >&5 3291 (eval "$ac_try") 2>&5 3292 ac_status=$? 3293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3294 (exit $ac_status); }; }; then 3295 cross_compiling=no 3296 else 3297 if test "$cross_compiling" = maybe; then 3298 cross_compiling=yes 3299 else 3300 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3301$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3302{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 3303If you meant to cross compile, use \`--host'. 3304See \`config.log' for more details." >&5 3305$as_echo "$as_me: error: cannot run C compiled programs. 3306If you meant to cross compile, use \`--host'. 3307See \`config.log' for more details." >&2;} 3308 { (exit 1); exit 1; }; }; } 3309 fi 3310 fi 3311fi 3312{ $as_echo "$as_me:$LINENO: result: yes" >&5 3313$as_echo "yes" >&6; } 3314 3315rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3316ac_clean_files=$ac_clean_files_save 3317# Check that the compiler produces executables we can run. If not, either 3318# the compiler is broken, or we cross compile. 3319{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3320$as_echo_n "checking whether we are cross compiling... " >&6; } 3321{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 3322$as_echo "$cross_compiling" >&6; } 3323 3324{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 3325$as_echo_n "checking for suffix of executables... " >&6; } 3326if { (ac_try="$ac_link" 3327case "(($ac_try" in 3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3329 *) ac_try_echo=$ac_try;; 3330esac 3331eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3332$as_echo "$ac_try_echo") >&5 3333 (eval "$ac_link") 2>&5 3334 ac_status=$? 3335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3336 (exit $ac_status); }; then 3337 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3338# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3339# work properly (i.e., refer to `conftest.exe'), while it won't with 3340# `rm'. 3341for ac_file in conftest.exe conftest conftest.*; do 3342 test -f "$ac_file" || continue 3343 case $ac_file in 3344 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3345 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3346 break;; 3347 * ) break;; 3348 esac 3349done 3350else 3351 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3352$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3353{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3354See \`config.log' for more details." >&5 3355$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3356See \`config.log' for more details." >&2;} 3357 { (exit 1); exit 1; }; }; } 3358fi 3359 3360rm -f conftest$ac_cv_exeext 3361{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3362$as_echo "$ac_cv_exeext" >&6; } 3363 3364rm -f conftest.$ac_ext 3365EXEEXT=$ac_cv_exeext 3366ac_exeext=$EXEEXT 3367{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 3368$as_echo_n "checking for suffix of object files... " >&6; } 3369if test "${ac_cv_objext+set}" = set; then 3370 $as_echo_n "(cached) " >&6 3371else 3372 cat >conftest.$ac_ext <<_ACEOF 3373/* confdefs.h. */ 3374_ACEOF 3375cat confdefs.h >>conftest.$ac_ext 3376cat >>conftest.$ac_ext <<_ACEOF 3377/* end confdefs.h. */ 3378 3379int 3380main () 3381{ 3382 3383 ; 3384 return 0; 3385} 3386_ACEOF 3387rm -f conftest.o conftest.obj 3388if { (ac_try="$ac_compile" 3389case "(($ac_try" in 3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3391 *) ac_try_echo=$ac_try;; 3392esac 3393eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3394$as_echo "$ac_try_echo") >&5 3395 (eval "$ac_compile") 2>&5 3396 ac_status=$? 3397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3398 (exit $ac_status); }; then 3399 for ac_file in conftest.o conftest.obj conftest.*; do 3400 test -f "$ac_file" || continue; 3401 case $ac_file in 3402 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3403 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3404 break;; 3405 esac 3406done 3407else 3408 $as_echo "$as_me: failed program was:" >&5 3409sed 's/^/| /' conftest.$ac_ext >&5 3410 3411{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3412$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3413{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3414See \`config.log' for more details." >&5 3415$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3416See \`config.log' for more details." >&2;} 3417 { (exit 1); exit 1; }; }; } 3418fi 3419 3420rm -f conftest.$ac_cv_objext conftest.$ac_ext 3421fi 3422{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3423$as_echo "$ac_cv_objext" >&6; } 3424OBJEXT=$ac_cv_objext 3425ac_objext=$OBJEXT 3426{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3427$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3428if test "${ac_cv_c_compiler_gnu+set}" = set; then 3429 $as_echo_n "(cached) " >&6 3430else 3431 cat >conftest.$ac_ext <<_ACEOF 3432/* confdefs.h. */ 3433_ACEOF 3434cat confdefs.h >>conftest.$ac_ext 3435cat >>conftest.$ac_ext <<_ACEOF 3436/* end confdefs.h. */ 3437 3438int 3439main () 3440{ 3441#ifndef __GNUC__ 3442 choke me 3443#endif 3444 3445 ; 3446 return 0; 3447} 3448_ACEOF 3449rm -f conftest.$ac_objext 3450if { (ac_try="$ac_compile" 3451case "(($ac_try" in 3452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3453 *) ac_try_echo=$ac_try;; 3454esac 3455eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3456$as_echo "$ac_try_echo") >&5 3457 (eval "$ac_compile") 2>conftest.er1 3458 ac_status=$? 3459 grep -v '^ *+' conftest.er1 >conftest.err 3460 rm -f conftest.er1 3461 cat conftest.err >&5 3462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3463 (exit $ac_status); } && { 3464 test -z "$ac_c_werror_flag" || 3465 test ! -s conftest.err 3466 } && test -s conftest.$ac_objext; then 3467 ac_compiler_gnu=yes 3468else 3469 $as_echo "$as_me: failed program was:" >&5 3470sed 's/^/| /' conftest.$ac_ext >&5 3471 3472 ac_compiler_gnu=no 3473fi 3474 3475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3476ac_cv_c_compiler_gnu=$ac_compiler_gnu 3477 3478fi 3479{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3480$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3481if test $ac_compiler_gnu = yes; then 3482 GCC=yes 3483else 3484 GCC= 3485fi 3486ac_test_CFLAGS=${CFLAGS+set} 3487ac_save_CFLAGS=$CFLAGS 3488{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3489$as_echo_n "checking whether $CC accepts -g... " >&6; } 3490if test "${ac_cv_prog_cc_g+set}" = set; then 3491 $as_echo_n "(cached) " >&6 3492else 3493 ac_save_c_werror_flag=$ac_c_werror_flag 3494 ac_c_werror_flag=yes 3495 ac_cv_prog_cc_g=no 3496 CFLAGS="-g" 3497 cat >conftest.$ac_ext <<_ACEOF 3498/* confdefs.h. */ 3499_ACEOF 3500cat confdefs.h >>conftest.$ac_ext 3501cat >>conftest.$ac_ext <<_ACEOF 3502/* end confdefs.h. */ 3503 3504int 3505main () 3506{ 3507 3508 ; 3509 return 0; 3510} 3511_ACEOF 3512rm -f conftest.$ac_objext 3513if { (ac_try="$ac_compile" 3514case "(($ac_try" in 3515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3516 *) ac_try_echo=$ac_try;; 3517esac 3518eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3519$as_echo "$ac_try_echo") >&5 3520 (eval "$ac_compile") 2>conftest.er1 3521 ac_status=$? 3522 grep -v '^ *+' conftest.er1 >conftest.err 3523 rm -f conftest.er1 3524 cat conftest.err >&5 3525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3526 (exit $ac_status); } && { 3527 test -z "$ac_c_werror_flag" || 3528 test ! -s conftest.err 3529 } && test -s conftest.$ac_objext; then 3530 ac_cv_prog_cc_g=yes 3531else 3532 $as_echo "$as_me: failed program was:" >&5 3533sed 's/^/| /' conftest.$ac_ext >&5 3534 3535 CFLAGS="" 3536 cat >conftest.$ac_ext <<_ACEOF 3537/* confdefs.h. */ 3538_ACEOF 3539cat confdefs.h >>conftest.$ac_ext 3540cat >>conftest.$ac_ext <<_ACEOF 3541/* end confdefs.h. */ 3542 3543int 3544main () 3545{ 3546 3547 ; 3548 return 0; 3549} 3550_ACEOF 3551rm -f conftest.$ac_objext 3552if { (ac_try="$ac_compile" 3553case "(($ac_try" in 3554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3555 *) ac_try_echo=$ac_try;; 3556esac 3557eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3558$as_echo "$ac_try_echo") >&5 3559 (eval "$ac_compile") 2>conftest.er1 3560 ac_status=$? 3561 grep -v '^ *+' conftest.er1 >conftest.err 3562 rm -f conftest.er1 3563 cat conftest.err >&5 3564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3565 (exit $ac_status); } && { 3566 test -z "$ac_c_werror_flag" || 3567 test ! -s conftest.err 3568 } && test -s conftest.$ac_objext; then 3569 : 3570else 3571 $as_echo "$as_me: failed program was:" >&5 3572sed 's/^/| /' conftest.$ac_ext >&5 3573 3574 ac_c_werror_flag=$ac_save_c_werror_flag 3575 CFLAGS="-g" 3576 cat >conftest.$ac_ext <<_ACEOF 3577/* confdefs.h. */ 3578_ACEOF 3579cat confdefs.h >>conftest.$ac_ext 3580cat >>conftest.$ac_ext <<_ACEOF 3581/* end confdefs.h. */ 3582 3583int 3584main () 3585{ 3586 3587 ; 3588 return 0; 3589} 3590_ACEOF 3591rm -f conftest.$ac_objext 3592if { (ac_try="$ac_compile" 3593case "(($ac_try" in 3594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3595 *) ac_try_echo=$ac_try;; 3596esac 3597eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3598$as_echo "$ac_try_echo") >&5 3599 (eval "$ac_compile") 2>conftest.er1 3600 ac_status=$? 3601 grep -v '^ *+' conftest.er1 >conftest.err 3602 rm -f conftest.er1 3603 cat conftest.err >&5 3604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3605 (exit $ac_status); } && { 3606 test -z "$ac_c_werror_flag" || 3607 test ! -s conftest.err 3608 } && test -s conftest.$ac_objext; then 3609 ac_cv_prog_cc_g=yes 3610else 3611 $as_echo "$as_me: failed program was:" >&5 3612sed 's/^/| /' conftest.$ac_ext >&5 3613 3614 3615fi 3616 3617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3618fi 3619 3620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3621fi 3622 3623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3624 ac_c_werror_flag=$ac_save_c_werror_flag 3625fi 3626{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3627$as_echo "$ac_cv_prog_cc_g" >&6; } 3628if test "$ac_test_CFLAGS" = set; then 3629 CFLAGS=$ac_save_CFLAGS 3630elif test $ac_cv_prog_cc_g = yes; then 3631 if test "$GCC" = yes; then 3632 CFLAGS="-g -O2" 3633 else 3634 CFLAGS="-g" 3635 fi 3636else 3637 if test "$GCC" = yes; then 3638 CFLAGS="-O2" 3639 else 3640 CFLAGS= 3641 fi 3642fi 3643{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3644$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3645if test "${ac_cv_prog_cc_c89+set}" = set; then 3646 $as_echo_n "(cached) " >&6 3647else 3648 ac_cv_prog_cc_c89=no 3649ac_save_CC=$CC 3650cat >conftest.$ac_ext <<_ACEOF 3651/* confdefs.h. */ 3652_ACEOF 3653cat confdefs.h >>conftest.$ac_ext 3654cat >>conftest.$ac_ext <<_ACEOF 3655/* end confdefs.h. */ 3656#include <stdarg.h> 3657#include <stdio.h> 3658#include <sys/types.h> 3659#include <sys/stat.h> 3660/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3661struct buf { int x; }; 3662FILE * (*rcsopen) (struct buf *, struct stat *, int); 3663static char *e (p, i) 3664 char **p; 3665 int i; 3666{ 3667 return p[i]; 3668} 3669static char *f (char * (*g) (char **, int), char **p, ...) 3670{ 3671 char *s; 3672 va_list v; 3673 va_start (v,p); 3674 s = g (p, va_arg (v,int)); 3675 va_end (v); 3676 return s; 3677} 3678 3679/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3680 function prototypes and stuff, but not '\xHH' hex character constants. 3681 These don't provoke an error unfortunately, instead are silently treated 3682 as 'x'. The following induces an error, until -std is added to get 3683 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3684 array size at least. It's necessary to write '\x00'==0 to get something 3685 that's true only with -std. */ 3686int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3687 3688/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3689 inside strings and character constants. */ 3690#define FOO(x) 'x' 3691int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3692 3693int test (int i, double x); 3694struct s1 {int (*f) (int a);}; 3695struct s2 {int (*f) (double a);}; 3696int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3697int argc; 3698char **argv; 3699int 3700main () 3701{ 3702return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3703 ; 3704 return 0; 3705} 3706_ACEOF 3707for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3708 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3709do 3710 CC="$ac_save_CC $ac_arg" 3711 rm -f conftest.$ac_objext 3712if { (ac_try="$ac_compile" 3713case "(($ac_try" in 3714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3715 *) ac_try_echo=$ac_try;; 3716esac 3717eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3718$as_echo "$ac_try_echo") >&5 3719 (eval "$ac_compile") 2>conftest.er1 3720 ac_status=$? 3721 grep -v '^ *+' conftest.er1 >conftest.err 3722 rm -f conftest.er1 3723 cat conftest.err >&5 3724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3725 (exit $ac_status); } && { 3726 test -z "$ac_c_werror_flag" || 3727 test ! -s conftest.err 3728 } && test -s conftest.$ac_objext; then 3729 ac_cv_prog_cc_c89=$ac_arg 3730else 3731 $as_echo "$as_me: failed program was:" >&5 3732sed 's/^/| /' conftest.$ac_ext >&5 3733 3734 3735fi 3736 3737rm -f core conftest.err conftest.$ac_objext 3738 test "x$ac_cv_prog_cc_c89" != "xno" && break 3739done 3740rm -f conftest.$ac_ext 3741CC=$ac_save_CC 3742 3743fi 3744# AC_CACHE_VAL 3745case "x$ac_cv_prog_cc_c89" in 3746 x) 3747 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3748$as_echo "none needed" >&6; } ;; 3749 xno) 3750 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3751$as_echo "unsupported" >&6; } ;; 3752 *) 3753 CC="$CC $ac_cv_prog_cc_c89" 3754 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3755$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3756esac 3757 3758 3759ac_ext=c 3760ac_cpp='$CPP $CPPFLAGS' 3761ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3762ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3763ac_compiler_gnu=$ac_cv_c_compiler_gnu 3764 3765depcc="$CC" am_compiler_list= 3766 3767{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3768$as_echo_n "checking dependency style of $depcc... " >&6; } 3769if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3770 $as_echo_n "(cached) " >&6 3771else 3772 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3773 # We make a subdir and do the tests there. Otherwise we can end up 3774 # making bogus files that we don't know about and never remove. For 3775 # instance it was reported that on HP-UX the gcc test will end up 3776 # making a dummy file named `D' -- because `-MD' means `put the output 3777 # in D'. 3778 mkdir conftest.dir 3779 # Copy depcomp to subdir because otherwise we won't find it if we're 3780 # using a relative directory. 3781 cp "$am_depcomp" conftest.dir 3782 cd conftest.dir 3783 # We will build objects and dependencies in a subdirectory because 3784 # it helps to detect inapplicable dependency modes. For instance 3785 # both Tru64's cc and ICC support -MD to output dependencies as a 3786 # side effect of compilation, but ICC will put the dependencies in 3787 # the current directory while Tru64 will put them in the object 3788 # directory. 3789 mkdir sub 3790 3791 am_cv_CC_dependencies_compiler_type=none 3792 if test "$am_compiler_list" = ""; then 3793 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3794 fi 3795 for depmode in $am_compiler_list; do 3796 # Setup a source with many dependencies, because some compilers 3797 # like to wrap large dependency lists on column 80 (with \), and 3798 # we should not choose a depcomp mode which is confused by this. 3799 # 3800 # We need to recreate these files for each test, as the compiler may 3801 # overwrite some of them when testing with obscure command lines. 3802 # This happens at least with the AIX C compiler. 3803 : > sub/conftest.c 3804 for i in 1 2 3 4 5 6; do 3805 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3806 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3807 # Solaris 8's {/usr,}/bin/sh. 3808 touch sub/conftst$i.h 3809 done 3810 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3811 3812 case $depmode in 3813 nosideeffect) 3814 # after this tag, mechanisms are not by side-effect, so they'll 3815 # only be used when explicitly requested 3816 if test "x$enable_dependency_tracking" = xyes; then 3817 continue 3818 else 3819 break 3820 fi 3821 ;; 3822 none) break ;; 3823 esac 3824 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3825 # mode. It turns out that the SunPro C++ compiler does not properly 3826 # handle `-M -o', and we need to detect this. 3827 if depmode=$depmode \ 3828 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3829 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3830 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3831 >/dev/null 2>conftest.err && 3832 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3833 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3834 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3835 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3836 # icc doesn't choke on unknown options, it will just issue warnings 3837 # or remarks (even with -Werror). So we grep stderr for any message 3838 # that says an option was ignored or not supported. 3839 # When given -MP, icc 7.0 and 7.1 complain thusly: 3840 # icc: Command line warning: ignoring option '-M'; no argument required 3841 # The diagnosis changed in icc 8.0: 3842 # icc: Command line remark: option '-MP' not supported 3843 if (grep 'ignoring option' conftest.err || 3844 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3845 am_cv_CC_dependencies_compiler_type=$depmode 3846 break 3847 fi 3848 fi 3849 done 3850 3851 cd .. 3852 rm -rf conftest.dir 3853else 3854 am_cv_CC_dependencies_compiler_type=none 3855fi 3856 3857fi 3858{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3859$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3860CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3861 3862 if 3863 test "x$enable_dependency_tracking" != xno \ 3864 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3865 am__fastdepCC_TRUE= 3866 am__fastdepCC_FALSE='#' 3867else 3868 am__fastdepCC_TRUE='#' 3869 am__fastdepCC_FALSE= 3870fi 3871 3872 3873{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3874$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3875if test "${lt_cv_path_SED+set}" = set; then 3876 $as_echo_n "(cached) " >&6 3877else 3878 # Loop through the user's path and test for sed and gsed. 3879# Then use that list of sed's as ones to test for truncation. 3880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3881for as_dir in $PATH 3882do 3883 IFS=$as_save_IFS 3884 test -z "$as_dir" && as_dir=. 3885 for lt_ac_prog in sed gsed; do 3886 for ac_exec_ext in '' $ac_executable_extensions; do 3887 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then 3888 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3889 fi 3890 done 3891 done 3892done 3893IFS=$as_save_IFS 3894lt_ac_max=0 3895lt_ac_count=0 3896# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3897# along with /bin/sed that truncates output. 3898for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3899 test ! -f $lt_ac_sed && continue 3900 cat /dev/null > conftest.in 3901 lt_ac_count=0 3902 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3903 # Check for GNU sed and select it if it is found. 3904 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3905 lt_cv_path_SED=$lt_ac_sed 3906 break 3907 fi 3908 while true; do 3909 cat conftest.in conftest.in >conftest.tmp 3910 mv conftest.tmp conftest.in 3911 cp conftest.in conftest.nl 3912 echo >>conftest.nl 3913 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3914 cmp -s conftest.out conftest.nl || break 3915 # 10000 chars as input seems more than enough 3916 test $lt_ac_count -gt 10 && break 3917 lt_ac_count=`expr $lt_ac_count + 1` 3918 if test $lt_ac_count -gt $lt_ac_max; then 3919 lt_ac_max=$lt_ac_count 3920 lt_cv_path_SED=$lt_ac_sed 3921 fi 3922 done 3923done 3924 3925fi 3926 3927SED=$lt_cv_path_SED 3928 3929{ $as_echo "$as_me:$LINENO: result: $SED" >&5 3930$as_echo "$SED" >&6; } 3931 3932{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3933$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3934if test "${ac_cv_path_GREP+set}" = set; then 3935 $as_echo_n "(cached) " >&6 3936else 3937 if test -z "$GREP"; then 3938 ac_path_GREP_found=false 3939 # Loop through the user's path and test for each of PROGNAME-LIST 3940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3941for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3942do 3943 IFS=$as_save_IFS 3944 test -z "$as_dir" && as_dir=. 3945 for ac_prog in grep ggrep; do 3946 for ac_exec_ext in '' $ac_executable_extensions; do 3947 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3948 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3949# Check for GNU ac_path_GREP and select it if it is found. 3950 # Check for GNU $ac_path_GREP 3951case `"$ac_path_GREP" --version 2>&1` in 3952*GNU*) 3953 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3954*) 3955 ac_count=0 3956 $as_echo_n 0123456789 >"conftest.in" 3957 while : 3958 do 3959 cat "conftest.in" "conftest.in" >"conftest.tmp" 3960 mv "conftest.tmp" "conftest.in" 3961 cp "conftest.in" "conftest.nl" 3962 $as_echo 'GREP' >> "conftest.nl" 3963 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3964 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3965 ac_count=`expr $ac_count + 1` 3966 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3967 # Best one so far, save it but keep looking for a better one 3968 ac_cv_path_GREP="$ac_path_GREP" 3969 ac_path_GREP_max=$ac_count 3970 fi 3971 # 10*(2^10) chars as input seems more than enough 3972 test $ac_count -gt 10 && break 3973 done 3974 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3975esac 3976 3977 $ac_path_GREP_found && break 3 3978 done 3979 done 3980done 3981IFS=$as_save_IFS 3982 if test -z "$ac_cv_path_GREP"; then 3983 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3984$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3985 { (exit 1); exit 1; }; } 3986 fi 3987else 3988 ac_cv_path_GREP=$GREP 3989fi 3990 3991fi 3992{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3993$as_echo "$ac_cv_path_GREP" >&6; } 3994 GREP="$ac_cv_path_GREP" 3995 3996 3997{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 3998$as_echo_n "checking for egrep... " >&6; } 3999if test "${ac_cv_path_EGREP+set}" = set; then 4000 $as_echo_n "(cached) " >&6 4001else 4002 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4003 then ac_cv_path_EGREP="$GREP -E" 4004 else 4005 if test -z "$EGREP"; then 4006 ac_path_EGREP_found=false 4007 # Loop through the user's path and test for each of PROGNAME-LIST 4008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4009for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4010do 4011 IFS=$as_save_IFS 4012 test -z "$as_dir" && as_dir=. 4013 for ac_prog in egrep; do 4014 for ac_exec_ext in '' $ac_executable_extensions; do 4015 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4016 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4017# Check for GNU ac_path_EGREP and select it if it is found. 4018 # Check for GNU $ac_path_EGREP 4019case `"$ac_path_EGREP" --version 2>&1` in 4020*GNU*) 4021 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4022*) 4023 ac_count=0 4024 $as_echo_n 0123456789 >"conftest.in" 4025 while : 4026 do 4027 cat "conftest.in" "conftest.in" >"conftest.tmp" 4028 mv "conftest.tmp" "conftest.in" 4029 cp "conftest.in" "conftest.nl" 4030 $as_echo 'EGREP' >> "conftest.nl" 4031 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4032 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4033 ac_count=`expr $ac_count + 1` 4034 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4035 # Best one so far, save it but keep looking for a better one 4036 ac_cv_path_EGREP="$ac_path_EGREP" 4037 ac_path_EGREP_max=$ac_count 4038 fi 4039 # 10*(2^10) chars as input seems more than enough 4040 test $ac_count -gt 10 && break 4041 done 4042 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4043esac 4044 4045 $ac_path_EGREP_found && break 3 4046 done 4047 done 4048done 4049IFS=$as_save_IFS 4050 if test -z "$ac_cv_path_EGREP"; then 4051 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4052$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4053 { (exit 1); exit 1; }; } 4054 fi 4055else 4056 ac_cv_path_EGREP=$EGREP 4057fi 4058 4059 fi 4060fi 4061{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4062$as_echo "$ac_cv_path_EGREP" >&6; } 4063 EGREP="$ac_cv_path_EGREP" 4064 4065 4066 4067# Check whether --with-gnu-ld was given. 4068if test "${with_gnu_ld+set}" = set; then 4069 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4070else 4071 with_gnu_ld=no 4072fi 4073 4074ac_prog=ld 4075if test "$GCC" = yes; then 4076 # Check if gcc -print-prog-name=ld gives a path. 4077 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4078$as_echo_n "checking for ld used by $CC... " >&6; } 4079 case $host in 4080 *-*-mingw*) 4081 # gcc leaves a trailing carriage return which upsets mingw 4082 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4083 *) 4084 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4085 esac 4086 case $ac_prog in 4087 # Accept absolute paths. 4088 [\\/]* | ?:[\\/]*) 4089 re_direlt='/[^/][^/]*/\.\./' 4090 # Canonicalize the pathname of ld 4091 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 4092 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4093 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 4094 done 4095 test -z "$LD" && LD="$ac_prog" 4096 ;; 4097 "") 4098 # If it fails, then pretend we aren't using GCC. 4099 ac_prog=ld 4100 ;; 4101 *) 4102 # If it is relative, then search for the first ld in PATH. 4103 with_gnu_ld=unknown 4104 ;; 4105 esac 4106elif test "$with_gnu_ld" = yes; then 4107 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 4108$as_echo_n "checking for GNU ld... " >&6; } 4109else 4110 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4111$as_echo_n "checking for non-GNU ld... " >&6; } 4112fi 4113if test "${lt_cv_path_LD+set}" = set; then 4114 $as_echo_n "(cached) " >&6 4115else 4116 if test -z "$LD"; then 4117 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4118 for ac_dir in $PATH; do 4119 IFS="$lt_save_ifs" 4120 test -z "$ac_dir" && ac_dir=. 4121 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4122 lt_cv_path_LD="$ac_dir/$ac_prog" 4123 # Check to see if the program is GNU ld. I'd rather use --version, 4124 # but apparently some variants of GNU ld only accept -v. 4125 # Break only if it was the GNU/non-GNU ld that we prefer. 4126 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4127 *GNU* | *'with BFD'*) 4128 test "$with_gnu_ld" != no && break 4129 ;; 4130 *) 4131 test "$with_gnu_ld" != yes && break 4132 ;; 4133 esac 4134 fi 4135 done 4136 IFS="$lt_save_ifs" 4137else 4138 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4139fi 4140fi 4141 4142LD="$lt_cv_path_LD" 4143if test -n "$LD"; then 4144 { $as_echo "$as_me:$LINENO: result: $LD" >&5 4145$as_echo "$LD" >&6; } 4146else 4147 { $as_echo "$as_me:$LINENO: result: no" >&5 4148$as_echo "no" >&6; } 4149fi 4150test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4151$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4152 { (exit 1); exit 1; }; } 4153{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4154$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4155if test "${lt_cv_prog_gnu_ld+set}" = set; then 4156 $as_echo_n "(cached) " >&6 4157else 4158 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4159case `$LD -v 2>&1 </dev/null` in 4160*GNU* | *'with BFD'*) 4161 lt_cv_prog_gnu_ld=yes 4162 ;; 4163*) 4164 lt_cv_prog_gnu_ld=no 4165 ;; 4166esac 4167fi 4168{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4169$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4170with_gnu_ld=$lt_cv_prog_gnu_ld 4171 4172 4173{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4174$as_echo_n "checking for $LD option to reload object files... " >&6; } 4175if test "${lt_cv_ld_reload_flag+set}" = set; then 4176 $as_echo_n "(cached) " >&6 4177else 4178 lt_cv_ld_reload_flag='-r' 4179fi 4180{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4181$as_echo "$lt_cv_ld_reload_flag" >&6; } 4182reload_flag=$lt_cv_ld_reload_flag 4183case $reload_flag in 4184"" | " "*) ;; 4185*) reload_flag=" $reload_flag" ;; 4186esac 4187reload_cmds='$LD$reload_flag -o $output$reload_objs' 4188case $host_os in 4189 darwin*) 4190 if test "$GCC" = yes; then 4191 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4192 else 4193 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4194 fi 4195 ;; 4196esac 4197 4198{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4199$as_echo_n "checking for BSD-compatible nm... " >&6; } 4200if test "${lt_cv_path_NM+set}" = set; then 4201 $as_echo_n "(cached) " >&6 4202else 4203 if test -n "$NM"; then 4204 # Let the user override the test. 4205 lt_cv_path_NM="$NM" 4206else 4207 lt_nm_to_check="${ac_tool_prefix}nm" 4208 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4209 lt_nm_to_check="$lt_nm_to_check nm" 4210 fi 4211 for lt_tmp_nm in $lt_nm_to_check; do 4212 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4213 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4214 IFS="$lt_save_ifs" 4215 test -z "$ac_dir" && ac_dir=. 4216 tmp_nm="$ac_dir/$lt_tmp_nm" 4217 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4218 # Check to see if the nm accepts a BSD-compat flag. 4219 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4220 # nm: unknown option "B" ignored 4221 # Tru64's nm complains that /dev/null is an invalid object file 4222 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4223 */dev/null* | *'Invalid file or object type'*) 4224 lt_cv_path_NM="$tmp_nm -B" 4225 break 4226 ;; 4227 *) 4228 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4229 */dev/null*) 4230 lt_cv_path_NM="$tmp_nm -p" 4231 break 4232 ;; 4233 *) 4234 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4235 continue # so that we can try to find one that supports BSD flags 4236 ;; 4237 esac 4238 ;; 4239 esac 4240 fi 4241 done 4242 IFS="$lt_save_ifs" 4243 done 4244 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4245fi 4246fi 4247{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4248$as_echo "$lt_cv_path_NM" >&6; } 4249NM="$lt_cv_path_NM" 4250 4251{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 4252$as_echo_n "checking whether ln -s works... " >&6; } 4253LN_S=$as_ln_s 4254if test "$LN_S" = "ln -s"; then 4255 { $as_echo "$as_me:$LINENO: result: yes" >&5 4256$as_echo "yes" >&6; } 4257else 4258 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4259$as_echo "no, using $LN_S" >&6; } 4260fi 4261 4262{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 4263$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4264if test "${lt_cv_deplibs_check_method+set}" = set; then 4265 $as_echo_n "(cached) " >&6 4266else 4267 lt_cv_file_magic_cmd='$MAGIC_CMD' 4268lt_cv_file_magic_test_file= 4269lt_cv_deplibs_check_method='unknown' 4270# Need to set the preceding variable on all platforms that support 4271# interlibrary dependencies. 4272# 'none' -- dependencies not supported. 4273# `unknown' -- same as none, but documents that we really don't know. 4274# 'pass_all' -- all dependencies passed with no checks. 4275# 'test_compile' -- check by making test program. 4276# 'file_magic [[regex]]' -- check by looking for files in library path 4277# which responds to the $file_magic_cmd with a given extended regex. 4278# If you have `file' or equivalent on your system and you're not sure 4279# whether `pass_all' will *always* work, you probably want this one. 4280 4281case $host_os in 4282aix[4-9]*) 4283 lt_cv_deplibs_check_method=pass_all 4284 ;; 4285 4286beos*) 4287 lt_cv_deplibs_check_method=pass_all 4288 ;; 4289 4290bsdi[45]*) 4291 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4292 lt_cv_file_magic_cmd='/usr/bin/file -L' 4293 lt_cv_file_magic_test_file=/shlib/libc.so 4294 ;; 4295 4296cygwin*) 4297 # func_win32_libid is a shell function defined in ltmain.sh 4298 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4299 lt_cv_file_magic_cmd='func_win32_libid' 4300 ;; 4301 4302mingw* | pw32*) 4303 # Base MSYS/MinGW do not provide the 'file' command needed by 4304 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4305 # unless we find 'file', for example because we are cross-compiling. 4306 if ( file / ) >/dev/null 2>&1; then 4307 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4308 lt_cv_file_magic_cmd='func_win32_libid' 4309 else 4310 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4311 lt_cv_file_magic_cmd='$OBJDUMP -f' 4312 fi 4313 ;; 4314 4315darwin* | rhapsody*) 4316 lt_cv_deplibs_check_method=pass_all 4317 ;; 4318 4319freebsd* | dragonfly*) 4320 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4321 case $host_cpu in 4322 i*86 ) 4323 # Not sure whether the presence of OpenBSD here was a mistake. 4324 # Let's accept both of them until this is cleared up. 4325 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4326 lt_cv_file_magic_cmd=/usr/bin/file 4327 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4328 ;; 4329 esac 4330 else 4331 lt_cv_deplibs_check_method=pass_all 4332 fi 4333 ;; 4334 4335gnu*) 4336 lt_cv_deplibs_check_method=pass_all 4337 ;; 4338 4339hpux10.20* | hpux11*) 4340 lt_cv_file_magic_cmd=/usr/bin/file 4341 case $host_cpu in 4342 ia64*) 4343 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4344 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4345 ;; 4346 hppa*64*) 4347 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]' 4348 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4349 ;; 4350 *) 4351 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4352 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4353 ;; 4354 esac 4355 ;; 4356 4357interix[3-9]*) 4358 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4359 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4360 ;; 4361 4362irix5* | irix6* | nonstopux*) 4363 case $LD in 4364 *-32|*"-32 ") libmagic=32-bit;; 4365 *-n32|*"-n32 ") libmagic=N32;; 4366 *-64|*"-64 ") libmagic=64-bit;; 4367 *) libmagic=never-match;; 4368 esac 4369 lt_cv_deplibs_check_method=pass_all 4370 ;; 4371 4372# This must be Linux ELF. 4373linux* | k*bsd*-gnu) 4374 lt_cv_deplibs_check_method=pass_all 4375 ;; 4376 4377netbsd*) 4378 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4379 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4380 else 4381 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4382 fi 4383 ;; 4384 4385newos6*) 4386 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4387 lt_cv_file_magic_cmd=/usr/bin/file 4388 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4389 ;; 4390 4391nto-qnx*) 4392 lt_cv_deplibs_check_method=unknown 4393 ;; 4394 4395openbsd*) 4396 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4397 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4398 else 4399 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4400 fi 4401 ;; 4402 4403osf3* | osf4* | osf5*) 4404 lt_cv_deplibs_check_method=pass_all 4405 ;; 4406 4407rdos*) 4408 lt_cv_deplibs_check_method=pass_all 4409 ;; 4410 4411solaris*) 4412 lt_cv_deplibs_check_method=pass_all 4413 ;; 4414 4415sysv4 | sysv4.3*) 4416 case $host_vendor in 4417 motorola) 4418 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]' 4419 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4420 ;; 4421 ncr) 4422 lt_cv_deplibs_check_method=pass_all 4423 ;; 4424 sequent) 4425 lt_cv_file_magic_cmd='/bin/file' 4426 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4427 ;; 4428 sni) 4429 lt_cv_file_magic_cmd='/bin/file' 4430 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4431 lt_cv_file_magic_test_file=/lib/libc.so 4432 ;; 4433 siemens) 4434 lt_cv_deplibs_check_method=pass_all 4435 ;; 4436 pc) 4437 lt_cv_deplibs_check_method=pass_all 4438 ;; 4439 esac 4440 ;; 4441 4442sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4443 lt_cv_deplibs_check_method=pass_all 4444 ;; 4445esac 4446 4447fi 4448{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4449$as_echo "$lt_cv_deplibs_check_method" >&6; } 4450file_magic_cmd=$lt_cv_file_magic_cmd 4451deplibs_check_method=$lt_cv_deplibs_check_method 4452test -z "$deplibs_check_method" && deplibs_check_method=unknown 4453 4454 4455 4456 4457# If no C compiler was specified, use CC. 4458LTCC=${LTCC-"$CC"} 4459 4460# If no C compiler flags were specified, use CFLAGS. 4461LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4462 4463# Allow CC to be a program name with arguments. 4464compiler=$CC 4465 4466 4467# Check whether --enable-libtool-lock was given. 4468if test "${enable_libtool_lock+set}" = set; then 4469 enableval=$enable_libtool_lock; 4470fi 4471 4472test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4473 4474# Some flags need to be propagated to the compiler or linker for good 4475# libtool support. 4476case $host in 4477ia64-*-hpux*) 4478 # Find out which ABI we are using. 4479 echo 'int i;' > conftest.$ac_ext 4480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4481 (eval $ac_compile) 2>&5 4482 ac_status=$? 4483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4484 (exit $ac_status); }; then 4485 case `/usr/bin/file conftest.$ac_objext` in 4486 *ELF-32*) 4487 HPUX_IA64_MODE="32" 4488 ;; 4489 *ELF-64*) 4490 HPUX_IA64_MODE="64" 4491 ;; 4492 esac 4493 fi 4494 rm -rf conftest* 4495 ;; 4496*-*-irix6*) 4497 # Find out which ABI we are using. 4498 echo '#line 4498 "configure"' > conftest.$ac_ext 4499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4500 (eval $ac_compile) 2>&5 4501 ac_status=$? 4502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4503 (exit $ac_status); }; then 4504 if test "$lt_cv_prog_gnu_ld" = yes; then 4505 case `/usr/bin/file conftest.$ac_objext` in 4506 *32-bit*) 4507 LD="${LD-ld} -melf32bsmip" 4508 ;; 4509 *N32*) 4510 LD="${LD-ld} -melf32bmipn32" 4511 ;; 4512 *64-bit*) 4513 LD="${LD-ld} -melf64bmip" 4514 ;; 4515 esac 4516 else 4517 case `/usr/bin/file conftest.$ac_objext` in 4518 *32-bit*) 4519 LD="${LD-ld} -32" 4520 ;; 4521 *N32*) 4522 LD="${LD-ld} -n32" 4523 ;; 4524 *64-bit*) 4525 LD="${LD-ld} -64" 4526 ;; 4527 esac 4528 fi 4529 fi 4530 rm -rf conftest* 4531 ;; 4532 4533x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 4534s390*-*linux*|sparc*-*linux*) 4535 # Find out which ABI we are using. 4536 echo 'int i;' > conftest.$ac_ext 4537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4538 (eval $ac_compile) 2>&5 4539 ac_status=$? 4540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4541 (exit $ac_status); }; then 4542 case `/usr/bin/file conftest.o` in 4543 *32-bit*) 4544 case $host in 4545 x86_64-*kfreebsd*-gnu) 4546 LD="${LD-ld} -m elf_i386_fbsd" 4547 ;; 4548 x86_64-*linux*) 4549 LD="${LD-ld} -m elf_i386" 4550 ;; 4551 ppc64-*linux*|powerpc64-*linux*) 4552 LD="${LD-ld} -m elf32ppclinux" 4553 ;; 4554 s390x-*linux*) 4555 LD="${LD-ld} -m elf_s390" 4556 ;; 4557 sparc64-*linux*) 4558 LD="${LD-ld} -m elf32_sparc" 4559 ;; 4560 esac 4561 ;; 4562 *64-bit*) 4563 libsuff=64 4564 case $host in 4565 x86_64-*kfreebsd*-gnu) 4566 LD="${LD-ld} -m elf_x86_64_fbsd" 4567 ;; 4568 x86_64-*linux*) 4569 LD="${LD-ld} -m elf_x86_64" 4570 ;; 4571 ppc*-*linux*|powerpc*-*linux*) 4572 LD="${LD-ld} -m elf64ppc" 4573 ;; 4574 s390*-*linux*) 4575 LD="${LD-ld} -m elf64_s390" 4576 ;; 4577 sparc*-*linux*) 4578 LD="${LD-ld} -m elf64_sparc" 4579 ;; 4580 esac 4581 ;; 4582 esac 4583 fi 4584 rm -rf conftest* 4585 ;; 4586 4587*-*-sco3.2v5*) 4588 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4589 SAVE_CFLAGS="$CFLAGS" 4590 CFLAGS="$CFLAGS -belf" 4591 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4592$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 4593if test "${lt_cv_cc_needs_belf+set}" = set; then 4594 $as_echo_n "(cached) " >&6 4595else 4596 ac_ext=c 4597ac_cpp='$CPP $CPPFLAGS' 4598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4600ac_compiler_gnu=$ac_cv_c_compiler_gnu 4601 4602 cat >conftest.$ac_ext <<_ACEOF 4603/* confdefs.h. */ 4604_ACEOF 4605cat confdefs.h >>conftest.$ac_ext 4606cat >>conftest.$ac_ext <<_ACEOF 4607/* end confdefs.h. */ 4608 4609int 4610main () 4611{ 4612 4613 ; 4614 return 0; 4615} 4616_ACEOF 4617rm -f conftest.$ac_objext conftest$ac_exeext 4618if { (ac_try="$ac_link" 4619case "(($ac_try" in 4620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4621 *) ac_try_echo=$ac_try;; 4622esac 4623eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4624$as_echo "$ac_try_echo") >&5 4625 (eval "$ac_link") 2>conftest.er1 4626 ac_status=$? 4627 grep -v '^ *+' conftest.er1 >conftest.err 4628 rm -f conftest.er1 4629 cat conftest.err >&5 4630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4631 (exit $ac_status); } && { 4632 test -z "$ac_c_werror_flag" || 4633 test ! -s conftest.err 4634 } && test -s conftest$ac_exeext && { 4635 test "$cross_compiling" = yes || 4636 $as_test_x conftest$ac_exeext 4637 }; then 4638 lt_cv_cc_needs_belf=yes 4639else 4640 $as_echo "$as_me: failed program was:" >&5 4641sed 's/^/| /' conftest.$ac_ext >&5 4642 4643 lt_cv_cc_needs_belf=no 4644fi 4645 4646rm -rf conftest.dSYM 4647rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4648 conftest$ac_exeext conftest.$ac_ext 4649 ac_ext=c 4650ac_cpp='$CPP $CPPFLAGS' 4651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4653ac_compiler_gnu=$ac_cv_c_compiler_gnu 4654 4655fi 4656{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4657$as_echo "$lt_cv_cc_needs_belf" >&6; } 4658 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4659 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4660 CFLAGS="$SAVE_CFLAGS" 4661 fi 4662 ;; 4663sparc*-*solaris*) 4664 # Find out which ABI we are using. 4665 echo 'int i;' > conftest.$ac_ext 4666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4667 (eval $ac_compile) 2>&5 4668 ac_status=$? 4669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4670 (exit $ac_status); }; then 4671 case `/usr/bin/file conftest.o` in 4672 *64-bit*) 4673 case $lt_cv_prog_gnu_ld in 4674 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4675 *) 4676 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 4677 LD="${LD-ld} -64" 4678 fi 4679 ;; 4680 esac 4681 ;; 4682 esac 4683 fi 4684 rm -rf conftest* 4685 ;; 4686 4687 4688esac 4689 4690need_locks="$enable_libtool_lock" 4691 4692 4693ac_ext=c 4694ac_cpp='$CPP $CPPFLAGS' 4695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4697ac_compiler_gnu=$ac_cv_c_compiler_gnu 4698{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4699$as_echo_n "checking how to run the C preprocessor... " >&6; } 4700# On Suns, sometimes $CPP names a directory. 4701if test -n "$CPP" && test -d "$CPP"; then 4702 CPP= 4703fi 4704if test -z "$CPP"; then 4705 if test "${ac_cv_prog_CPP+set}" = set; then 4706 $as_echo_n "(cached) " >&6 4707else 4708 # Double quotes because CPP needs to be expanded 4709 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4710 do 4711 ac_preproc_ok=false 4712for ac_c_preproc_warn_flag in '' yes 4713do 4714 # Use a header file that comes with gcc, so configuring glibc 4715 # with a fresh cross-compiler works. 4716 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4717 # <limits.h> exists even on freestanding compilers. 4718 # On the NeXT, cc -E runs the code through the compiler's parser, 4719 # not just through cpp. "Syntax error" is here to catch this case. 4720 cat >conftest.$ac_ext <<_ACEOF 4721/* confdefs.h. */ 4722_ACEOF 4723cat confdefs.h >>conftest.$ac_ext 4724cat >>conftest.$ac_ext <<_ACEOF 4725/* end confdefs.h. */ 4726#ifdef __STDC__ 4727# include <limits.h> 4728#else 4729# include <assert.h> 4730#endif 4731 Syntax error 4732_ACEOF 4733if { (ac_try="$ac_cpp conftest.$ac_ext" 4734case "(($ac_try" in 4735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4736 *) ac_try_echo=$ac_try;; 4737esac 4738eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4739$as_echo "$ac_try_echo") >&5 4740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4741 ac_status=$? 4742 grep -v '^ *+' conftest.er1 >conftest.err 4743 rm -f conftest.er1 4744 cat conftest.err >&5 4745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4746 (exit $ac_status); } >/dev/null && { 4747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4748 test ! -s conftest.err 4749 }; then 4750 : 4751else 4752 $as_echo "$as_me: failed program was:" >&5 4753sed 's/^/| /' conftest.$ac_ext >&5 4754 4755 # Broken: fails on valid input. 4756continue 4757fi 4758 4759rm -f conftest.err conftest.$ac_ext 4760 4761 # OK, works on sane cases. Now check whether nonexistent headers 4762 # can be detected and how. 4763 cat >conftest.$ac_ext <<_ACEOF 4764/* confdefs.h. */ 4765_ACEOF 4766cat confdefs.h >>conftest.$ac_ext 4767cat >>conftest.$ac_ext <<_ACEOF 4768/* end confdefs.h. */ 4769#include <ac_nonexistent.h> 4770_ACEOF 4771if { (ac_try="$ac_cpp conftest.$ac_ext" 4772case "(($ac_try" in 4773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4774 *) ac_try_echo=$ac_try;; 4775esac 4776eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4777$as_echo "$ac_try_echo") >&5 4778 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4779 ac_status=$? 4780 grep -v '^ *+' conftest.er1 >conftest.err 4781 rm -f conftest.er1 4782 cat conftest.err >&5 4783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4784 (exit $ac_status); } >/dev/null && { 4785 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4786 test ! -s conftest.err 4787 }; then 4788 # Broken: success on invalid input. 4789continue 4790else 4791 $as_echo "$as_me: failed program was:" >&5 4792sed 's/^/| /' conftest.$ac_ext >&5 4793 4794 # Passes both tests. 4795ac_preproc_ok=: 4796break 4797fi 4798 4799rm -f conftest.err conftest.$ac_ext 4800 4801done 4802# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4803rm -f conftest.err conftest.$ac_ext 4804if $ac_preproc_ok; then 4805 break 4806fi 4807 4808 done 4809 ac_cv_prog_CPP=$CPP 4810 4811fi 4812 CPP=$ac_cv_prog_CPP 4813else 4814 ac_cv_prog_CPP=$CPP 4815fi 4816{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 4817$as_echo "$CPP" >&6; } 4818ac_preproc_ok=false 4819for ac_c_preproc_warn_flag in '' yes 4820do 4821 # Use a header file that comes with gcc, so configuring glibc 4822 # with a fresh cross-compiler works. 4823 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4824 # <limits.h> exists even on freestanding compilers. 4825 # On the NeXT, cc -E runs the code through the compiler's parser, 4826 # not just through cpp. "Syntax error" is here to catch this case. 4827 cat >conftest.$ac_ext <<_ACEOF 4828/* confdefs.h. */ 4829_ACEOF 4830cat confdefs.h >>conftest.$ac_ext 4831cat >>conftest.$ac_ext <<_ACEOF 4832/* end confdefs.h. */ 4833#ifdef __STDC__ 4834# include <limits.h> 4835#else 4836# include <assert.h> 4837#endif 4838 Syntax error 4839_ACEOF 4840if { (ac_try="$ac_cpp conftest.$ac_ext" 4841case "(($ac_try" in 4842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4843 *) ac_try_echo=$ac_try;; 4844esac 4845eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4846$as_echo "$ac_try_echo") >&5 4847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4848 ac_status=$? 4849 grep -v '^ *+' conftest.er1 >conftest.err 4850 rm -f conftest.er1 4851 cat conftest.err >&5 4852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4853 (exit $ac_status); } >/dev/null && { 4854 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4855 test ! -s conftest.err 4856 }; then 4857 : 4858else 4859 $as_echo "$as_me: failed program was:" >&5 4860sed 's/^/| /' conftest.$ac_ext >&5 4861 4862 # Broken: fails on valid input. 4863continue 4864fi 4865 4866rm -f conftest.err conftest.$ac_ext 4867 4868 # OK, works on sane cases. Now check whether nonexistent headers 4869 # can be detected and how. 4870 cat >conftest.$ac_ext <<_ACEOF 4871/* confdefs.h. */ 4872_ACEOF 4873cat confdefs.h >>conftest.$ac_ext 4874cat >>conftest.$ac_ext <<_ACEOF 4875/* end confdefs.h. */ 4876#include <ac_nonexistent.h> 4877_ACEOF 4878if { (ac_try="$ac_cpp conftest.$ac_ext" 4879case "(($ac_try" in 4880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4881 *) ac_try_echo=$ac_try;; 4882esac 4883eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4884$as_echo "$ac_try_echo") >&5 4885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4886 ac_status=$? 4887 grep -v '^ *+' conftest.er1 >conftest.err 4888 rm -f conftest.er1 4889 cat conftest.err >&5 4890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4891 (exit $ac_status); } >/dev/null && { 4892 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4893 test ! -s conftest.err 4894 }; then 4895 # Broken: success on invalid input. 4896continue 4897else 4898 $as_echo "$as_me: failed program was:" >&5 4899sed 's/^/| /' conftest.$ac_ext >&5 4900 4901 # Passes both tests. 4902ac_preproc_ok=: 4903break 4904fi 4905 4906rm -f conftest.err conftest.$ac_ext 4907 4908done 4909# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4910rm -f conftest.err conftest.$ac_ext 4911if $ac_preproc_ok; then 4912 : 4913else 4914 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 4915$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4916{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4917See \`config.log' for more details." >&5 4918$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4919See \`config.log' for more details." >&2;} 4920 { (exit 1); exit 1; }; }; } 4921fi 4922 4923ac_ext=c 4924ac_cpp='$CPP $CPPFLAGS' 4925ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4926ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4927ac_compiler_gnu=$ac_cv_c_compiler_gnu 4928 4929 4930{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4931$as_echo_n "checking for ANSI C header files... " >&6; } 4932if test "${ac_cv_header_stdc+set}" = set; then 4933 $as_echo_n "(cached) " >&6 4934else 4935 cat >conftest.$ac_ext <<_ACEOF 4936/* confdefs.h. */ 4937_ACEOF 4938cat confdefs.h >>conftest.$ac_ext 4939cat >>conftest.$ac_ext <<_ACEOF 4940/* end confdefs.h. */ 4941#include <stdlib.h> 4942#include <stdarg.h> 4943#include <string.h> 4944#include <float.h> 4945 4946int 4947main () 4948{ 4949 4950 ; 4951 return 0; 4952} 4953_ACEOF 4954rm -f conftest.$ac_objext 4955if { (ac_try="$ac_compile" 4956case "(($ac_try" in 4957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4958 *) ac_try_echo=$ac_try;; 4959esac 4960eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4961$as_echo "$ac_try_echo") >&5 4962 (eval "$ac_compile") 2>conftest.er1 4963 ac_status=$? 4964 grep -v '^ *+' conftest.er1 >conftest.err 4965 rm -f conftest.er1 4966 cat conftest.err >&5 4967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4968 (exit $ac_status); } && { 4969 test -z "$ac_c_werror_flag" || 4970 test ! -s conftest.err 4971 } && test -s conftest.$ac_objext; then 4972 ac_cv_header_stdc=yes 4973else 4974 $as_echo "$as_me: failed program was:" >&5 4975sed 's/^/| /' conftest.$ac_ext >&5 4976 4977 ac_cv_header_stdc=no 4978fi 4979 4980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4981 4982if test $ac_cv_header_stdc = yes; then 4983 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4984 cat >conftest.$ac_ext <<_ACEOF 4985/* confdefs.h. */ 4986_ACEOF 4987cat confdefs.h >>conftest.$ac_ext 4988cat >>conftest.$ac_ext <<_ACEOF 4989/* end confdefs.h. */ 4990#include <string.h> 4991 4992_ACEOF 4993if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4994 $EGREP "memchr" >/dev/null 2>&1; then 4995 : 4996else 4997 ac_cv_header_stdc=no 4998fi 4999rm -f conftest* 5000 5001fi 5002 5003if test $ac_cv_header_stdc = yes; then 5004 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5005 cat >conftest.$ac_ext <<_ACEOF 5006/* confdefs.h. */ 5007_ACEOF 5008cat confdefs.h >>conftest.$ac_ext 5009cat >>conftest.$ac_ext <<_ACEOF 5010/* end confdefs.h. */ 5011#include <stdlib.h> 5012 5013_ACEOF 5014if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5015 $EGREP "free" >/dev/null 2>&1; then 5016 : 5017else 5018 ac_cv_header_stdc=no 5019fi 5020rm -f conftest* 5021 5022fi 5023 5024if test $ac_cv_header_stdc = yes; then 5025 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5026 if test "$cross_compiling" = yes; then 5027 : 5028else 5029 cat >conftest.$ac_ext <<_ACEOF 5030/* confdefs.h. */ 5031_ACEOF 5032cat confdefs.h >>conftest.$ac_ext 5033cat >>conftest.$ac_ext <<_ACEOF 5034/* end confdefs.h. */ 5035#include <ctype.h> 5036#include <stdlib.h> 5037#if ((' ' & 0x0FF) == 0x020) 5038# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5039# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5040#else 5041# define ISLOWER(c) \ 5042 (('a' <= (c) && (c) <= 'i') \ 5043 || ('j' <= (c) && (c) <= 'r') \ 5044 || ('s' <= (c) && (c) <= 'z')) 5045# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5046#endif 5047 5048#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5049int 5050main () 5051{ 5052 int i; 5053 for (i = 0; i < 256; i++) 5054 if (XOR (islower (i), ISLOWER (i)) 5055 || toupper (i) != TOUPPER (i)) 5056 return 2; 5057 return 0; 5058} 5059_ACEOF 5060rm -f conftest$ac_exeext 5061if { (ac_try="$ac_link" 5062case "(($ac_try" in 5063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5064 *) ac_try_echo=$ac_try;; 5065esac 5066eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5067$as_echo "$ac_try_echo") >&5 5068 (eval "$ac_link") 2>&5 5069 ac_status=$? 5070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5072 { (case "(($ac_try" in 5073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5074 *) ac_try_echo=$ac_try;; 5075esac 5076eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5077$as_echo "$ac_try_echo") >&5 5078 (eval "$ac_try") 2>&5 5079 ac_status=$? 5080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5081 (exit $ac_status); }; }; then 5082 : 5083else 5084 $as_echo "$as_me: program exited with status $ac_status" >&5 5085$as_echo "$as_me: failed program was:" >&5 5086sed 's/^/| /' conftest.$ac_ext >&5 5087 5088( exit $ac_status ) 5089ac_cv_header_stdc=no 5090fi 5091rm -rf conftest.dSYM 5092rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5093fi 5094 5095 5096fi 5097fi 5098{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5099$as_echo "$ac_cv_header_stdc" >&6; } 5100if test $ac_cv_header_stdc = yes; then 5101 5102cat >>confdefs.h <<\_ACEOF 5103#define STDC_HEADERS 1 5104_ACEOF 5105 5106fi 5107 5108# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5119 inttypes.h stdint.h unistd.h 5120do 5121as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5122{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5123$as_echo_n "checking for $ac_header... " >&6; } 5124if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5125 $as_echo_n "(cached) " >&6 5126else 5127 cat >conftest.$ac_ext <<_ACEOF 5128/* confdefs.h. */ 5129_ACEOF 5130cat confdefs.h >>conftest.$ac_ext 5131cat >>conftest.$ac_ext <<_ACEOF 5132/* end confdefs.h. */ 5133$ac_includes_default 5134 5135#include <$ac_header> 5136_ACEOF 5137rm -f conftest.$ac_objext 5138if { (ac_try="$ac_compile" 5139case "(($ac_try" in 5140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5141 *) ac_try_echo=$ac_try;; 5142esac 5143eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5144$as_echo "$ac_try_echo") >&5 5145 (eval "$ac_compile") 2>conftest.er1 5146 ac_status=$? 5147 grep -v '^ *+' conftest.er1 >conftest.err 5148 rm -f conftest.er1 5149 cat conftest.err >&5 5150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5151 (exit $ac_status); } && { 5152 test -z "$ac_c_werror_flag" || 5153 test ! -s conftest.err 5154 } && test -s conftest.$ac_objext; then 5155 eval "$as_ac_Header=yes" 5156else 5157 $as_echo "$as_me: failed program was:" >&5 5158sed 's/^/| /' conftest.$ac_ext >&5 5159 5160 eval "$as_ac_Header=no" 5161fi 5162 5163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5164fi 5165ac_res=`eval 'as_val=${'$as_ac_Header'} 5166 $as_echo "$as_val"'` 5167 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5168$as_echo "$ac_res" >&6; } 5169as_val=`eval 'as_val=${'$as_ac_Header'} 5170 $as_echo "$as_val"'` 5171 if test "x$as_val" = x""yes; then 5172 cat >>confdefs.h <<_ACEOF 5173#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5174_ACEOF 5175 5176fi 5177 5178done 5179 5180 5181 5182for ac_header in dlfcn.h 5183do 5184as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5185if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5186 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5187$as_echo_n "checking for $ac_header... " >&6; } 5188if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5189 $as_echo_n "(cached) " >&6 5190fi 5191ac_res=`eval 'as_val=${'$as_ac_Header'} 5192 $as_echo "$as_val"'` 5193 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5194$as_echo "$ac_res" >&6; } 5195else 5196 # Is the header compilable? 5197{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 5198$as_echo_n "checking $ac_header usability... " >&6; } 5199cat >conftest.$ac_ext <<_ACEOF 5200/* confdefs.h. */ 5201_ACEOF 5202cat confdefs.h >>conftest.$ac_ext 5203cat >>conftest.$ac_ext <<_ACEOF 5204/* end confdefs.h. */ 5205$ac_includes_default 5206#include <$ac_header> 5207_ACEOF 5208rm -f conftest.$ac_objext 5209if { (ac_try="$ac_compile" 5210case "(($ac_try" in 5211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5212 *) ac_try_echo=$ac_try;; 5213esac 5214eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5215$as_echo "$ac_try_echo") >&5 5216 (eval "$ac_compile") 2>conftest.er1 5217 ac_status=$? 5218 grep -v '^ *+' conftest.er1 >conftest.err 5219 rm -f conftest.er1 5220 cat conftest.err >&5 5221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5222 (exit $ac_status); } && { 5223 test -z "$ac_c_werror_flag" || 5224 test ! -s conftest.err 5225 } && test -s conftest.$ac_objext; then 5226 ac_header_compiler=yes 5227else 5228 $as_echo "$as_me: failed program was:" >&5 5229sed 's/^/| /' conftest.$ac_ext >&5 5230 5231 ac_header_compiler=no 5232fi 5233 5234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5235{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5236$as_echo "$ac_header_compiler" >&6; } 5237 5238# Is the header present? 5239{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 5240$as_echo_n "checking $ac_header presence... " >&6; } 5241cat >conftest.$ac_ext <<_ACEOF 5242/* confdefs.h. */ 5243_ACEOF 5244cat confdefs.h >>conftest.$ac_ext 5245cat >>conftest.$ac_ext <<_ACEOF 5246/* end confdefs.h. */ 5247#include <$ac_header> 5248_ACEOF 5249if { (ac_try="$ac_cpp conftest.$ac_ext" 5250case "(($ac_try" in 5251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5252 *) ac_try_echo=$ac_try;; 5253esac 5254eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5255$as_echo "$ac_try_echo") >&5 5256 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5257 ac_status=$? 5258 grep -v '^ *+' conftest.er1 >conftest.err 5259 rm -f conftest.er1 5260 cat conftest.err >&5 5261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5262 (exit $ac_status); } >/dev/null && { 5263 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5264 test ! -s conftest.err 5265 }; then 5266 ac_header_preproc=yes 5267else 5268 $as_echo "$as_me: failed program was:" >&5 5269sed 's/^/| /' conftest.$ac_ext >&5 5270 5271 ac_header_preproc=no 5272fi 5273 5274rm -f conftest.err conftest.$ac_ext 5275{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5276$as_echo "$ac_header_preproc" >&6; } 5277 5278# So? What about this header? 5279case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5280 yes:no: ) 5281 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5282$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5284$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5285 ac_header_preproc=yes 5286 ;; 5287 no:yes:* ) 5288 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5289$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5290 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5291$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5292 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5293$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5294 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5295$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5296 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5297$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5298 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5299$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5300 ( cat <<\_ASBOX 5301## ---------------------------------------------------------------------- ## 5302## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 5303## ---------------------------------------------------------------------- ## 5304_ASBOX 5305 ) | sed "s/^/$as_me: WARNING: /" >&2 5306 ;; 5307esac 5308{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5309$as_echo_n "checking for $ac_header... " >&6; } 5310if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5311 $as_echo_n "(cached) " >&6 5312else 5313 eval "$as_ac_Header=\$ac_header_preproc" 5314fi 5315ac_res=`eval 'as_val=${'$as_ac_Header'} 5316 $as_echo "$as_val"'` 5317 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5318$as_echo "$ac_res" >&6; } 5319 5320fi 5321as_val=`eval 'as_val=${'$as_ac_Header'} 5322 $as_echo "$as_val"'` 5323 if test "x$as_val" = x""yes; then 5324 cat >>confdefs.h <<_ACEOF 5325#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5326_ACEOF 5327 5328fi 5329 5330done 5331 5332ac_ext=cpp 5333ac_cpp='$CXXCPP $CPPFLAGS' 5334ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5335ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5336ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5337if test -z "$CXX"; then 5338 if test -n "$CCC"; then 5339 CXX=$CCC 5340 else 5341 if test -n "$ac_tool_prefix"; then 5342 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5343 do 5344 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5345set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5346{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5347$as_echo_n "checking for $ac_word... " >&6; } 5348if test "${ac_cv_prog_CXX+set}" = set; then 5349 $as_echo_n "(cached) " >&6 5350else 5351 if test -n "$CXX"; then 5352 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5353else 5354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5355for as_dir in $PATH 5356do 5357 IFS=$as_save_IFS 5358 test -z "$as_dir" && as_dir=. 5359 for ac_exec_ext in '' $ac_executable_extensions; do 5360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5361 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5362 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5363 break 2 5364 fi 5365done 5366done 5367IFS=$as_save_IFS 5368 5369fi 5370fi 5371CXX=$ac_cv_prog_CXX 5372if test -n "$CXX"; then 5373 { $as_echo "$as_me:$LINENO: result: $CXX" >&5 5374$as_echo "$CXX" >&6; } 5375else 5376 { $as_echo "$as_me:$LINENO: result: no" >&5 5377$as_echo "no" >&6; } 5378fi 5379 5380 5381 test -n "$CXX" && break 5382 done 5383fi 5384if test -z "$CXX"; then 5385 ac_ct_CXX=$CXX 5386 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5387do 5388 # Extract the first word of "$ac_prog", so it can be a program name with args. 5389set dummy $ac_prog; ac_word=$2 5390{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5391$as_echo_n "checking for $ac_word... " >&6; } 5392if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5393 $as_echo_n "(cached) " >&6 5394else 5395 if test -n "$ac_ct_CXX"; then 5396 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5397else 5398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5399for as_dir in $PATH 5400do 5401 IFS=$as_save_IFS 5402 test -z "$as_dir" && as_dir=. 5403 for ac_exec_ext in '' $ac_executable_extensions; do 5404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5405 ac_cv_prog_ac_ct_CXX="$ac_prog" 5406 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5407 break 2 5408 fi 5409done 5410done 5411IFS=$as_save_IFS 5412 5413fi 5414fi 5415ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5416if test -n "$ac_ct_CXX"; then 5417 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5418$as_echo "$ac_ct_CXX" >&6; } 5419else 5420 { $as_echo "$as_me:$LINENO: result: no" >&5 5421$as_echo "no" >&6; } 5422fi 5423 5424 5425 test -n "$ac_ct_CXX" && break 5426done 5427 5428 if test "x$ac_ct_CXX" = x; then 5429 CXX="g++" 5430 else 5431 case $cross_compiling:$ac_tool_warned in 5432yes:) 5433{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5434$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5435ac_tool_warned=yes ;; 5436esac 5437 CXX=$ac_ct_CXX 5438 fi 5439fi 5440 5441 fi 5442fi 5443# Provide some information about the compiler. 5444$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5445set X $ac_compile 5446ac_compiler=$2 5447{ (ac_try="$ac_compiler --version >&5" 5448case "(($ac_try" in 5449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5450 *) ac_try_echo=$ac_try;; 5451esac 5452eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5453$as_echo "$ac_try_echo") >&5 5454 (eval "$ac_compiler --version >&5") 2>&5 5455 ac_status=$? 5456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5457 (exit $ac_status); } 5458{ (ac_try="$ac_compiler -v >&5" 5459case "(($ac_try" in 5460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5461 *) ac_try_echo=$ac_try;; 5462esac 5463eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5464$as_echo "$ac_try_echo") >&5 5465 (eval "$ac_compiler -v >&5") 2>&5 5466 ac_status=$? 5467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5468 (exit $ac_status); } 5469{ (ac_try="$ac_compiler -V >&5" 5470case "(($ac_try" in 5471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5472 *) ac_try_echo=$ac_try;; 5473esac 5474eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5475$as_echo "$ac_try_echo") >&5 5476 (eval "$ac_compiler -V >&5") 2>&5 5477 ac_status=$? 5478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5479 (exit $ac_status); } 5480 5481{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5482$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 5483if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5484 $as_echo_n "(cached) " >&6 5485else 5486 cat >conftest.$ac_ext <<_ACEOF 5487/* confdefs.h. */ 5488_ACEOF 5489cat confdefs.h >>conftest.$ac_ext 5490cat >>conftest.$ac_ext <<_ACEOF 5491/* end confdefs.h. */ 5492 5493int 5494main () 5495{ 5496#ifndef __GNUC__ 5497 choke me 5498#endif 5499 5500 ; 5501 return 0; 5502} 5503_ACEOF 5504rm -f conftest.$ac_objext 5505if { (ac_try="$ac_compile" 5506case "(($ac_try" in 5507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5508 *) ac_try_echo=$ac_try;; 5509esac 5510eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5511$as_echo "$ac_try_echo") >&5 5512 (eval "$ac_compile") 2>conftest.er1 5513 ac_status=$? 5514 grep -v '^ *+' conftest.er1 >conftest.err 5515 rm -f conftest.er1 5516 cat conftest.err >&5 5517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5518 (exit $ac_status); } && { 5519 test -z "$ac_cxx_werror_flag" || 5520 test ! -s conftest.err 5521 } && test -s conftest.$ac_objext; then 5522 ac_compiler_gnu=yes 5523else 5524 $as_echo "$as_me: failed program was:" >&5 5525sed 's/^/| /' conftest.$ac_ext >&5 5526 5527 ac_compiler_gnu=no 5528fi 5529 5530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5531ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5532 5533fi 5534{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5535$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 5536if test $ac_compiler_gnu = yes; then 5537 GXX=yes 5538else 5539 GXX= 5540fi 5541ac_test_CXXFLAGS=${CXXFLAGS+set} 5542ac_save_CXXFLAGS=$CXXFLAGS 5543{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5544$as_echo_n "checking whether $CXX accepts -g... " >&6; } 5545if test "${ac_cv_prog_cxx_g+set}" = set; then 5546 $as_echo_n "(cached) " >&6 5547else 5548 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5549 ac_cxx_werror_flag=yes 5550 ac_cv_prog_cxx_g=no 5551 CXXFLAGS="-g" 5552 cat >conftest.$ac_ext <<_ACEOF 5553/* confdefs.h. */ 5554_ACEOF 5555cat confdefs.h >>conftest.$ac_ext 5556cat >>conftest.$ac_ext <<_ACEOF 5557/* end confdefs.h. */ 5558 5559int 5560main () 5561{ 5562 5563 ; 5564 return 0; 5565} 5566_ACEOF 5567rm -f conftest.$ac_objext 5568if { (ac_try="$ac_compile" 5569case "(($ac_try" in 5570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5571 *) ac_try_echo=$ac_try;; 5572esac 5573eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5574$as_echo "$ac_try_echo") >&5 5575 (eval "$ac_compile") 2>conftest.er1 5576 ac_status=$? 5577 grep -v '^ *+' conftest.er1 >conftest.err 5578 rm -f conftest.er1 5579 cat conftest.err >&5 5580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5581 (exit $ac_status); } && { 5582 test -z "$ac_cxx_werror_flag" || 5583 test ! -s conftest.err 5584 } && test -s conftest.$ac_objext; then 5585 ac_cv_prog_cxx_g=yes 5586else 5587 $as_echo "$as_me: failed program was:" >&5 5588sed 's/^/| /' conftest.$ac_ext >&5 5589 5590 CXXFLAGS="" 5591 cat >conftest.$ac_ext <<_ACEOF 5592/* confdefs.h. */ 5593_ACEOF 5594cat confdefs.h >>conftest.$ac_ext 5595cat >>conftest.$ac_ext <<_ACEOF 5596/* end confdefs.h. */ 5597 5598int 5599main () 5600{ 5601 5602 ; 5603 return 0; 5604} 5605_ACEOF 5606rm -f conftest.$ac_objext 5607if { (ac_try="$ac_compile" 5608case "(($ac_try" in 5609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5610 *) ac_try_echo=$ac_try;; 5611esac 5612eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5613$as_echo "$ac_try_echo") >&5 5614 (eval "$ac_compile") 2>conftest.er1 5615 ac_status=$? 5616 grep -v '^ *+' conftest.er1 >conftest.err 5617 rm -f conftest.er1 5618 cat conftest.err >&5 5619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5620 (exit $ac_status); } && { 5621 test -z "$ac_cxx_werror_flag" || 5622 test ! -s conftest.err 5623 } && test -s conftest.$ac_objext; then 5624 : 5625else 5626 $as_echo "$as_me: failed program was:" >&5 5627sed 's/^/| /' conftest.$ac_ext >&5 5628 5629 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5630 CXXFLAGS="-g" 5631 cat >conftest.$ac_ext <<_ACEOF 5632/* confdefs.h. */ 5633_ACEOF 5634cat confdefs.h >>conftest.$ac_ext 5635cat >>conftest.$ac_ext <<_ACEOF 5636/* end confdefs.h. */ 5637 5638int 5639main () 5640{ 5641 5642 ; 5643 return 0; 5644} 5645_ACEOF 5646rm -f conftest.$ac_objext 5647if { (ac_try="$ac_compile" 5648case "(($ac_try" in 5649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5650 *) ac_try_echo=$ac_try;; 5651esac 5652eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5653$as_echo "$ac_try_echo") >&5 5654 (eval "$ac_compile") 2>conftest.er1 5655 ac_status=$? 5656 grep -v '^ *+' conftest.er1 >conftest.err 5657 rm -f conftest.er1 5658 cat conftest.err >&5 5659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5660 (exit $ac_status); } && { 5661 test -z "$ac_cxx_werror_flag" || 5662 test ! -s conftest.err 5663 } && test -s conftest.$ac_objext; then 5664 ac_cv_prog_cxx_g=yes 5665else 5666 $as_echo "$as_me: failed program was:" >&5 5667sed 's/^/| /' conftest.$ac_ext >&5 5668 5669 5670fi 5671 5672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5673fi 5674 5675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5676fi 5677 5678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5679 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5680fi 5681{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5682$as_echo "$ac_cv_prog_cxx_g" >&6; } 5683if test "$ac_test_CXXFLAGS" = set; then 5684 CXXFLAGS=$ac_save_CXXFLAGS 5685elif test $ac_cv_prog_cxx_g = yes; then 5686 if test "$GXX" = yes; then 5687 CXXFLAGS="-g -O2" 5688 else 5689 CXXFLAGS="-g" 5690 fi 5691else 5692 if test "$GXX" = yes; then 5693 CXXFLAGS="-O2" 5694 else 5695 CXXFLAGS= 5696 fi 5697fi 5698ac_ext=cpp 5699ac_cpp='$CXXCPP $CPPFLAGS' 5700ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5701ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5702ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5703 5704depcc="$CXX" am_compiler_list= 5705 5706{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5707$as_echo_n "checking dependency style of $depcc... " >&6; } 5708if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5709 $as_echo_n "(cached) " >&6 5710else 5711 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5712 # We make a subdir and do the tests there. Otherwise we can end up 5713 # making bogus files that we don't know about and never remove. For 5714 # instance it was reported that on HP-UX the gcc test will end up 5715 # making a dummy file named `D' -- because `-MD' means `put the output 5716 # in D'. 5717 mkdir conftest.dir 5718 # Copy depcomp to subdir because otherwise we won't find it if we're 5719 # using a relative directory. 5720 cp "$am_depcomp" conftest.dir 5721 cd conftest.dir 5722 # We will build objects and dependencies in a subdirectory because 5723 # it helps to detect inapplicable dependency modes. For instance 5724 # both Tru64's cc and ICC support -MD to output dependencies as a 5725 # side effect of compilation, but ICC will put the dependencies in 5726 # the current directory while Tru64 will put them in the object 5727 # directory. 5728 mkdir sub 5729 5730 am_cv_CXX_dependencies_compiler_type=none 5731 if test "$am_compiler_list" = ""; then 5732 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5733 fi 5734 for depmode in $am_compiler_list; do 5735 # Setup a source with many dependencies, because some compilers 5736 # like to wrap large dependency lists on column 80 (with \), and 5737 # we should not choose a depcomp mode which is confused by this. 5738 # 5739 # We need to recreate these files for each test, as the compiler may 5740 # overwrite some of them when testing with obscure command lines. 5741 # This happens at least with the AIX C compiler. 5742 : > sub/conftest.c 5743 for i in 1 2 3 4 5 6; do 5744 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5745 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5746 # Solaris 8's {/usr,}/bin/sh. 5747 touch sub/conftst$i.h 5748 done 5749 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5750 5751 case $depmode in 5752 nosideeffect) 5753 # after this tag, mechanisms are not by side-effect, so they'll 5754 # only be used when explicitly requested 5755 if test "x$enable_dependency_tracking" = xyes; then 5756 continue 5757 else 5758 break 5759 fi 5760 ;; 5761 none) break ;; 5762 esac 5763 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5764 # mode. It turns out that the SunPro C++ compiler does not properly 5765 # handle `-M -o', and we need to detect this. 5766 if depmode=$depmode \ 5767 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5768 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5769 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5770 >/dev/null 2>conftest.err && 5771 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5772 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5773 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5774 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5775 # icc doesn't choke on unknown options, it will just issue warnings 5776 # or remarks (even with -Werror). So we grep stderr for any message 5777 # that says an option was ignored or not supported. 5778 # When given -MP, icc 7.0 and 7.1 complain thusly: 5779 # icc: Command line warning: ignoring option '-M'; no argument required 5780 # The diagnosis changed in icc 8.0: 5781 # icc: Command line remark: option '-MP' not supported 5782 if (grep 'ignoring option' conftest.err || 5783 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5784 am_cv_CXX_dependencies_compiler_type=$depmode 5785 break 5786 fi 5787 fi 5788 done 5789 5790 cd .. 5791 rm -rf conftest.dir 5792else 5793 am_cv_CXX_dependencies_compiler_type=none 5794fi 5795 5796fi 5797{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5798$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 5799CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5800 5801 if 5802 test "x$enable_dependency_tracking" != xno \ 5803 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5804 am__fastdepCXX_TRUE= 5805 am__fastdepCXX_FALSE='#' 5806else 5807 am__fastdepCXX_TRUE='#' 5808 am__fastdepCXX_FALSE= 5809fi 5810 5811 5812 5813 5814if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5815 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5816 (test "X$CXX" != "Xg++"))) ; then 5817 ac_ext=cpp 5818ac_cpp='$CXXCPP $CPPFLAGS' 5819ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5820ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5821ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5822{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5823$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 5824if test -z "$CXXCPP"; then 5825 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5826 $as_echo_n "(cached) " >&6 5827else 5828 # Double quotes because CXXCPP needs to be expanded 5829 for CXXCPP in "$CXX -E" "/lib/cpp" 5830 do 5831 ac_preproc_ok=false 5832for ac_cxx_preproc_warn_flag in '' yes 5833do 5834 # Use a header file that comes with gcc, so configuring glibc 5835 # with a fresh cross-compiler works. 5836 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5837 # <limits.h> exists even on freestanding compilers. 5838 # On the NeXT, cc -E runs the code through the compiler's parser, 5839 # not just through cpp. "Syntax error" is here to catch this case. 5840 cat >conftest.$ac_ext <<_ACEOF 5841/* confdefs.h. */ 5842_ACEOF 5843cat confdefs.h >>conftest.$ac_ext 5844cat >>conftest.$ac_ext <<_ACEOF 5845/* end confdefs.h. */ 5846#ifdef __STDC__ 5847# include <limits.h> 5848#else 5849# include <assert.h> 5850#endif 5851 Syntax error 5852_ACEOF 5853if { (ac_try="$ac_cpp conftest.$ac_ext" 5854case "(($ac_try" in 5855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5856 *) ac_try_echo=$ac_try;; 5857esac 5858eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5859$as_echo "$ac_try_echo") >&5 5860 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5861 ac_status=$? 5862 grep -v '^ *+' conftest.er1 >conftest.err 5863 rm -f conftest.er1 5864 cat conftest.err >&5 5865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5866 (exit $ac_status); } >/dev/null && { 5867 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5868 test ! -s conftest.err 5869 }; then 5870 : 5871else 5872 $as_echo "$as_me: failed program was:" >&5 5873sed 's/^/| /' conftest.$ac_ext >&5 5874 5875 # Broken: fails on valid input. 5876continue 5877fi 5878 5879rm -f conftest.err conftest.$ac_ext 5880 5881 # OK, works on sane cases. Now check whether nonexistent headers 5882 # can be detected and how. 5883 cat >conftest.$ac_ext <<_ACEOF 5884/* confdefs.h. */ 5885_ACEOF 5886cat confdefs.h >>conftest.$ac_ext 5887cat >>conftest.$ac_ext <<_ACEOF 5888/* end confdefs.h. */ 5889#include <ac_nonexistent.h> 5890_ACEOF 5891if { (ac_try="$ac_cpp conftest.$ac_ext" 5892case "(($ac_try" in 5893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5894 *) ac_try_echo=$ac_try;; 5895esac 5896eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5897$as_echo "$ac_try_echo") >&5 5898 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5899 ac_status=$? 5900 grep -v '^ *+' conftest.er1 >conftest.err 5901 rm -f conftest.er1 5902 cat conftest.err >&5 5903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5904 (exit $ac_status); } >/dev/null && { 5905 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5906 test ! -s conftest.err 5907 }; then 5908 # Broken: success on invalid input. 5909continue 5910else 5911 $as_echo "$as_me: failed program was:" >&5 5912sed 's/^/| /' conftest.$ac_ext >&5 5913 5914 # Passes both tests. 5915ac_preproc_ok=: 5916break 5917fi 5918 5919rm -f conftest.err conftest.$ac_ext 5920 5921done 5922# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5923rm -f conftest.err conftest.$ac_ext 5924if $ac_preproc_ok; then 5925 break 5926fi 5927 5928 done 5929 ac_cv_prog_CXXCPP=$CXXCPP 5930 5931fi 5932 CXXCPP=$ac_cv_prog_CXXCPP 5933else 5934 ac_cv_prog_CXXCPP=$CXXCPP 5935fi 5936{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5 5937$as_echo "$CXXCPP" >&6; } 5938ac_preproc_ok=false 5939for ac_cxx_preproc_warn_flag in '' yes 5940do 5941 # Use a header file that comes with gcc, so configuring glibc 5942 # with a fresh cross-compiler works. 5943 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5944 # <limits.h> exists even on freestanding compilers. 5945 # On the NeXT, cc -E runs the code through the compiler's parser, 5946 # not just through cpp. "Syntax error" is here to catch this case. 5947 cat >conftest.$ac_ext <<_ACEOF 5948/* confdefs.h. */ 5949_ACEOF 5950cat confdefs.h >>conftest.$ac_ext 5951cat >>conftest.$ac_ext <<_ACEOF 5952/* end confdefs.h. */ 5953#ifdef __STDC__ 5954# include <limits.h> 5955#else 5956# include <assert.h> 5957#endif 5958 Syntax error 5959_ACEOF 5960if { (ac_try="$ac_cpp conftest.$ac_ext" 5961case "(($ac_try" in 5962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5963 *) ac_try_echo=$ac_try;; 5964esac 5965eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5966$as_echo "$ac_try_echo") >&5 5967 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5968 ac_status=$? 5969 grep -v '^ *+' conftest.er1 >conftest.err 5970 rm -f conftest.er1 5971 cat conftest.err >&5 5972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5973 (exit $ac_status); } >/dev/null && { 5974 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5975 test ! -s conftest.err 5976 }; then 5977 : 5978else 5979 $as_echo "$as_me: failed program was:" >&5 5980sed 's/^/| /' conftest.$ac_ext >&5 5981 5982 # Broken: fails on valid input. 5983continue 5984fi 5985 5986rm -f conftest.err conftest.$ac_ext 5987 5988 # OK, works on sane cases. Now check whether nonexistent headers 5989 # can be detected and how. 5990 cat >conftest.$ac_ext <<_ACEOF 5991/* confdefs.h. */ 5992_ACEOF 5993cat confdefs.h >>conftest.$ac_ext 5994cat >>conftest.$ac_ext <<_ACEOF 5995/* end confdefs.h. */ 5996#include <ac_nonexistent.h> 5997_ACEOF 5998if { (ac_try="$ac_cpp conftest.$ac_ext" 5999case "(($ac_try" in 6000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6001 *) ac_try_echo=$ac_try;; 6002esac 6003eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6004$as_echo "$ac_try_echo") >&5 6005 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6006 ac_status=$? 6007 grep -v '^ *+' conftest.er1 >conftest.err 6008 rm -f conftest.er1 6009 cat conftest.err >&5 6010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6011 (exit $ac_status); } >/dev/null && { 6012 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6013 test ! -s conftest.err 6014 }; then 6015 # Broken: success on invalid input. 6016continue 6017else 6018 $as_echo "$as_me: failed program was:" >&5 6019sed 's/^/| /' conftest.$ac_ext >&5 6020 6021 # Passes both tests. 6022ac_preproc_ok=: 6023break 6024fi 6025 6026rm -f conftest.err conftest.$ac_ext 6027 6028done 6029# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6030rm -f conftest.err conftest.$ac_ext 6031if $ac_preproc_ok; then 6032 : 6033else 6034 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 6035$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6036{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6037See \`config.log' for more details." >&5 6038$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6039See \`config.log' for more details." >&2;} 6040 { (exit 1); exit 1; }; }; } 6041fi 6042 6043ac_ext=cpp 6044ac_cpp='$CXXCPP $CPPFLAGS' 6045ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6046ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6047ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6048 6049fi 6050 6051 6052ac_ext=f 6053ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6054ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6055ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6056if test -n "$ac_tool_prefix"; then 6057 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 6058 do 6059 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6060set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6061{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6062$as_echo_n "checking for $ac_word... " >&6; } 6063if test "${ac_cv_prog_F77+set}" = set; then 6064 $as_echo_n "(cached) " >&6 6065else 6066 if test -n "$F77"; then 6067 ac_cv_prog_F77="$F77" # Let the user override the test. 6068else 6069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6070for as_dir in $PATH 6071do 6072 IFS=$as_save_IFS 6073 test -z "$as_dir" && as_dir=. 6074 for ac_exec_ext in '' $ac_executable_extensions; do 6075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6076 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 6077 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6078 break 2 6079 fi 6080done 6081done 6082IFS=$as_save_IFS 6083 6084fi 6085fi 6086F77=$ac_cv_prog_F77 6087if test -n "$F77"; then 6088 { $as_echo "$as_me:$LINENO: result: $F77" >&5 6089$as_echo "$F77" >&6; } 6090else 6091 { $as_echo "$as_me:$LINENO: result: no" >&5 6092$as_echo "no" >&6; } 6093fi 6094 6095 6096 test -n "$F77" && break 6097 done 6098fi 6099if test -z "$F77"; then 6100 ac_ct_F77=$F77 6101 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 6102do 6103 # Extract the first word of "$ac_prog", so it can be a program name with args. 6104set dummy $ac_prog; ac_word=$2 6105{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6106$as_echo_n "checking for $ac_word... " >&6; } 6107if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 6108 $as_echo_n "(cached) " >&6 6109else 6110 if test -n "$ac_ct_F77"; then 6111 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 6112else 6113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6114for as_dir in $PATH 6115do 6116 IFS=$as_save_IFS 6117 test -z "$as_dir" && as_dir=. 6118 for ac_exec_ext in '' $ac_executable_extensions; do 6119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6120 ac_cv_prog_ac_ct_F77="$ac_prog" 6121 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6122 break 2 6123 fi 6124done 6125done 6126IFS=$as_save_IFS 6127 6128fi 6129fi 6130ac_ct_F77=$ac_cv_prog_ac_ct_F77 6131if test -n "$ac_ct_F77"; then 6132 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 6133$as_echo "$ac_ct_F77" >&6; } 6134else 6135 { $as_echo "$as_me:$LINENO: result: no" >&5 6136$as_echo "no" >&6; } 6137fi 6138 6139 6140 test -n "$ac_ct_F77" && break 6141done 6142 6143 if test "x$ac_ct_F77" = x; then 6144 F77="" 6145 else 6146 case $cross_compiling:$ac_tool_warned in 6147yes:) 6148{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6149$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6150ac_tool_warned=yes ;; 6151esac 6152 F77=$ac_ct_F77 6153 fi 6154fi 6155 6156 6157# Provide some information about the compiler. 6158$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 6159set X $ac_compile 6160ac_compiler=$2 6161{ (ac_try="$ac_compiler --version >&5" 6162case "(($ac_try" in 6163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6164 *) ac_try_echo=$ac_try;; 6165esac 6166eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6167$as_echo "$ac_try_echo") >&5 6168 (eval "$ac_compiler --version >&5") 2>&5 6169 ac_status=$? 6170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6171 (exit $ac_status); } 6172{ (ac_try="$ac_compiler -v >&5" 6173case "(($ac_try" in 6174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6175 *) ac_try_echo=$ac_try;; 6176esac 6177eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6178$as_echo "$ac_try_echo") >&5 6179 (eval "$ac_compiler -v >&5") 2>&5 6180 ac_status=$? 6181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6182 (exit $ac_status); } 6183{ (ac_try="$ac_compiler -V >&5" 6184case "(($ac_try" in 6185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6186 *) ac_try_echo=$ac_try;; 6187esac 6188eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6189$as_echo "$ac_try_echo") >&5 6190 (eval "$ac_compiler -V >&5") 2>&5 6191 ac_status=$? 6192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6193 (exit $ac_status); } 6194rm -f a.out 6195 6196# If we don't use `.F' as extension, the preprocessor is not run on the 6197# input file. (Note that this only needs to work for GNU compilers.) 6198ac_save_ext=$ac_ext 6199ac_ext=F 6200{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6201$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; } 6202if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6203 $as_echo_n "(cached) " >&6 6204else 6205 cat >conftest.$ac_ext <<_ACEOF 6206 program main 6207#ifndef __GNUC__ 6208 choke me 6209#endif 6210 6211 end 6212_ACEOF 6213rm -f conftest.$ac_objext 6214if { (ac_try="$ac_compile" 6215case "(($ac_try" in 6216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6217 *) ac_try_echo=$ac_try;; 6218esac 6219eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6220$as_echo "$ac_try_echo") >&5 6221 (eval "$ac_compile") 2>conftest.er1 6222 ac_status=$? 6223 grep -v '^ *+' conftest.er1 >conftest.err 6224 rm -f conftest.er1 6225 cat conftest.err >&5 6226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6227 (exit $ac_status); } && { 6228 test -z "$ac_f77_werror_flag" || 6229 test ! -s conftest.err 6230 } && test -s conftest.$ac_objext; then 6231 ac_compiler_gnu=yes 6232else 6233 $as_echo "$as_me: failed program was:" >&5 6234sed 's/^/| /' conftest.$ac_ext >&5 6235 6236 ac_compiler_gnu=no 6237fi 6238 6239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6240ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6241 6242fi 6243{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6244$as_echo "$ac_cv_f77_compiler_gnu" >&6; } 6245ac_ext=$ac_save_ext 6246ac_test_FFLAGS=${FFLAGS+set} 6247ac_save_FFLAGS=$FFLAGS 6248FFLAGS= 6249{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6250$as_echo_n "checking whether $F77 accepts -g... " >&6; } 6251if test "${ac_cv_prog_f77_g+set}" = set; then 6252 $as_echo_n "(cached) " >&6 6253else 6254 FFLAGS=-g 6255cat >conftest.$ac_ext <<_ACEOF 6256 program main 6257 6258 end 6259_ACEOF 6260rm -f conftest.$ac_objext 6261if { (ac_try="$ac_compile" 6262case "(($ac_try" in 6263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6264 *) ac_try_echo=$ac_try;; 6265esac 6266eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6267$as_echo "$ac_try_echo") >&5 6268 (eval "$ac_compile") 2>conftest.er1 6269 ac_status=$? 6270 grep -v '^ *+' conftest.er1 >conftest.err 6271 rm -f conftest.er1 6272 cat conftest.err >&5 6273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6274 (exit $ac_status); } && { 6275 test -z "$ac_f77_werror_flag" || 6276 test ! -s conftest.err 6277 } && test -s conftest.$ac_objext; then 6278 ac_cv_prog_f77_g=yes 6279else 6280 $as_echo "$as_me: failed program was:" >&5 6281sed 's/^/| /' conftest.$ac_ext >&5 6282 6283 ac_cv_prog_f77_g=no 6284fi 6285 6286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6287 6288fi 6289{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6290$as_echo "$ac_cv_prog_f77_g" >&6; } 6291if test "$ac_test_FFLAGS" = set; then 6292 FFLAGS=$ac_save_FFLAGS 6293elif test $ac_cv_prog_f77_g = yes; then 6294 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6295 FFLAGS="-g -O2" 6296 else 6297 FFLAGS="-g" 6298 fi 6299else 6300 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6301 FFLAGS="-O2" 6302 else 6303 FFLAGS= 6304 fi 6305fi 6306 6307if test $ac_compiler_gnu = yes; then 6308 G77=yes 6309else 6310 G77= 6311fi 6312ac_ext=c 6313ac_cpp='$CPP $CPPFLAGS' 6314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6316ac_compiler_gnu=$ac_cv_c_compiler_gnu 6317 6318 6319 6320# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6321# find the maximum length of command line arguments 6322{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6323$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6324if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6325 $as_echo_n "(cached) " >&6 6326else 6327 i=0 6328 teststring="ABCD" 6329 6330 case $build_os in 6331 msdosdjgpp*) 6332 # On DJGPP, this test can blow up pretty badly due to problems in libc 6333 # (any single argument exceeding 2000 bytes causes a buffer overrun 6334 # during glob expansion). Even if it were fixed, the result of this 6335 # check would be larger than it should be. 6336 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6337 ;; 6338 6339 gnu*) 6340 # Under GNU Hurd, this test is not required because there is 6341 # no limit to the length of command line arguments. 6342 # Libtool will interpret -1 as no limit whatsoever 6343 lt_cv_sys_max_cmd_len=-1; 6344 ;; 6345 6346 cygwin* | mingw*) 6347 # On Win9x/ME, this test blows up -- it succeeds, but takes 6348 # about 5 minutes as the teststring grows exponentially. 6349 # Worse, since 9x/ME are not pre-emptively multitasking, 6350 # you end up with a "frozen" computer, even though with patience 6351 # the test eventually succeeds (with a max line length of 256k). 6352 # Instead, let's just punt: use the minimum linelength reported by 6353 # all of the supported platforms: 8192 (on NT/2K/XP). 6354 lt_cv_sys_max_cmd_len=8192; 6355 ;; 6356 6357 amigaos*) 6358 # On AmigaOS with pdksh, this test takes hours, literally. 6359 # So we just punt and use a minimum line length of 8192. 6360 lt_cv_sys_max_cmd_len=8192; 6361 ;; 6362 6363 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6364 # This has been around since 386BSD, at least. Likely further. 6365 if test -x /sbin/sysctl; then 6366 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6367 elif test -x /usr/sbin/sysctl; then 6368 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6369 else 6370 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6371 fi 6372 # And add a safety zone 6373 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6374 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6375 ;; 6376 6377 interix*) 6378 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6379 lt_cv_sys_max_cmd_len=196608 6380 ;; 6381 6382 osf*) 6383 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6384 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6385 # nice to cause kernel panics so lets avoid the loop below. 6386 # First set a reasonable default. 6387 lt_cv_sys_max_cmd_len=16384 6388 # 6389 if test -x /sbin/sysconfig; then 6390 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6391 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6392 esac 6393 fi 6394 ;; 6395 sco3.2v5*) 6396 lt_cv_sys_max_cmd_len=102400 6397 ;; 6398 sysv5* | sco5v6* | sysv4.2uw2*) 6399 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6400 if test -n "$kargmax"; then 6401 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6402 else 6403 lt_cv_sys_max_cmd_len=32768 6404 fi 6405 ;; 6406 *) 6407 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6408 if test -n "$lt_cv_sys_max_cmd_len"; then 6409 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6410 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6411 else 6412 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6413 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6414 = "XX$teststring") >/dev/null 2>&1 && 6415 new_result=`expr "X$teststring" : ".*" 2>&1` && 6416 lt_cv_sys_max_cmd_len=$new_result && 6417 test $i != 17 # 1/2 MB should be enough 6418 do 6419 i=`expr $i + 1` 6420 teststring=$teststring$teststring 6421 done 6422 teststring= 6423 # Add a significant safety factor because C++ compilers can tack on massive 6424 # amounts of additional arguments before passing them to the linker. 6425 # It appears as though 1/2 is a usable value. 6426 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6427 fi 6428 ;; 6429 esac 6430 6431fi 6432 6433if test -n $lt_cv_sys_max_cmd_len ; then 6434 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6435$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6436else 6437 { $as_echo "$as_me:$LINENO: result: none" >&5 6438$as_echo "none" >&6; } 6439fi 6440 6441 6442 6443 6444 6445# Check for command to grab the raw symbol name followed by C symbol from nm. 6446{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6447$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6448if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6449 $as_echo_n "(cached) " >&6 6450else 6451 6452# These are sane defaults that work on at least a few old systems. 6453# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6454 6455# Character class describing NM global symbol codes. 6456symcode='[BCDEGRST]' 6457 6458# Regexp to match symbols that can be accessed directly from C. 6459sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6460 6461# Transform an extracted symbol line into a proper C declaration 6462lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6463 6464# Transform an extracted symbol line into symbol name and symbol address 6465lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 6466 6467# Define system-specific variables. 6468case $host_os in 6469aix*) 6470 symcode='[BCDT]' 6471 ;; 6472cygwin* | mingw* | pw32*) 6473 symcode='[ABCDGISTW]' 6474 ;; 6475hpux*) # Its linker distinguishes data from code symbols 6476 if test "$host_cpu" = ia64; then 6477 symcode='[ABCDEGRST]' 6478 fi 6479 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6480 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'" 6481 ;; 6482linux* | k*bsd*-gnu) 6483 if test "$host_cpu" = ia64; then 6484 symcode='[ABCDGIRSTW]' 6485 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6486 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'" 6487 fi 6488 ;; 6489irix* | nonstopux*) 6490 symcode='[BCDEGRST]' 6491 ;; 6492osf*) 6493 symcode='[BCDEGQRST]' 6494 ;; 6495solaris*) 6496 symcode='[BDRT]' 6497 ;; 6498sco3.2v5*) 6499 symcode='[DT]' 6500 ;; 6501sysv4.2uw2*) 6502 symcode='[DT]' 6503 ;; 6504sysv5* | sco5v6* | unixware* | OpenUNIX*) 6505 symcode='[ABDT]' 6506 ;; 6507sysv4) 6508 symcode='[DFNSTU]' 6509 ;; 6510esac 6511 6512# Handle CRLF in mingw tool chain 6513opt_cr= 6514case $build_os in 6515mingw*) 6516 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6517 ;; 6518esac 6519 6520# If we're using GNU nm, then use its standard symbol codes. 6521case `$NM -V 2>&1` in 6522*GNU* | *'with BFD'*) 6523 symcode='[ABCDGIRSTW]' ;; 6524esac 6525 6526# Try without a prefix undercore, then with it. 6527for ac_symprfx in "" "_"; do 6528 6529 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6530 symxfrm="\\1 $ac_symprfx\\2 \\2" 6531 6532 # Write the raw and C identifiers. 6533 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6534 6535 # Check to see that the pipe works correctly. 6536 pipe_works=no 6537 6538 rm -f conftest* 6539 cat > conftest.$ac_ext <<EOF 6540#ifdef __cplusplus 6541extern "C" { 6542#endif 6543char nm_test_var; 6544void nm_test_func(){} 6545#ifdef __cplusplus 6546} 6547#endif 6548int main(){nm_test_var='a';nm_test_func();return(0);} 6549EOF 6550 6551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6552 (eval $ac_compile) 2>&5 6553 ac_status=$? 6554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6555 (exit $ac_status); }; then 6556 # Now try to grab the symbols. 6557 nlist=conftest.nm 6558 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6559 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6560 ac_status=$? 6561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6562 (exit $ac_status); } && test -s "$nlist"; then 6563 # Try sorting and uniquifying the output. 6564 if sort "$nlist" | uniq > "$nlist"T; then 6565 mv -f "$nlist"T "$nlist" 6566 else 6567 rm -f "$nlist"T 6568 fi 6569 6570 # Make sure that we snagged all the symbols we need. 6571 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6572 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6573 cat <<EOF > conftest.$ac_ext 6574#ifdef __cplusplus 6575extern "C" { 6576#endif 6577 6578EOF 6579 # Now generate the symbol file. 6580 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6581 6582 cat <<EOF >> conftest.$ac_ext 6583#if defined (__STDC__) && __STDC__ 6584# define lt_ptr_t void * 6585#else 6586# define lt_ptr_t char * 6587# define const 6588#endif 6589 6590/* The mapping between symbol names and symbols. */ 6591const struct { 6592 const char *name; 6593 lt_ptr_t address; 6594} 6595lt_preloaded_symbols[] = 6596{ 6597EOF 6598 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6599 cat <<\EOF >> conftest.$ac_ext 6600 {0, (lt_ptr_t) 0} 6601}; 6602 6603#ifdef __cplusplus 6604} 6605#endif 6606EOF 6607 # Now try linking the two files. 6608 mv conftest.$ac_objext conftstm.$ac_objext 6609 lt_save_LIBS="$LIBS" 6610 lt_save_CFLAGS="$CFLAGS" 6611 LIBS="conftstm.$ac_objext" 6612 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6614 (eval $ac_link) 2>&5 6615 ac_status=$? 6616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6617 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6618 pipe_works=yes 6619 fi 6620 LIBS="$lt_save_LIBS" 6621 CFLAGS="$lt_save_CFLAGS" 6622 else 6623 echo "cannot find nm_test_func in $nlist" >&5 6624 fi 6625 else 6626 echo "cannot find nm_test_var in $nlist" >&5 6627 fi 6628 else 6629 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6630 fi 6631 else 6632 echo "$progname: failed program was:" >&5 6633 cat conftest.$ac_ext >&5 6634 fi 6635 rm -rf conftest* conftst* 6636 6637 # Do not use the global_symbol_pipe unless it works. 6638 if test "$pipe_works" = yes; then 6639 break 6640 else 6641 lt_cv_sys_global_symbol_pipe= 6642 fi 6643done 6644 6645fi 6646 6647if test -z "$lt_cv_sys_global_symbol_pipe"; then 6648 lt_cv_sys_global_symbol_to_cdecl= 6649fi 6650if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6651 { $as_echo "$as_me:$LINENO: result: failed" >&5 6652$as_echo "failed" >&6; } 6653else 6654 { $as_echo "$as_me:$LINENO: result: ok" >&5 6655$as_echo "ok" >&6; } 6656fi 6657 6658{ $as_echo "$as_me:$LINENO: checking for objdir" >&5 6659$as_echo_n "checking for objdir... " >&6; } 6660if test "${lt_cv_objdir+set}" = set; then 6661 $as_echo_n "(cached) " >&6 6662else 6663 rm -f .libs 2>/dev/null 6664mkdir .libs 2>/dev/null 6665if test -d .libs; then 6666 lt_cv_objdir=.libs 6667else 6668 # MS-DOS does not allow filenames that begin with a dot. 6669 lt_cv_objdir=_libs 6670fi 6671rmdir .libs 2>/dev/null 6672fi 6673{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6674$as_echo "$lt_cv_objdir" >&6; } 6675objdir=$lt_cv_objdir 6676 6677 6678 6679 6680 6681case $host_os in 6682aix3*) 6683 # AIX sometimes has problems with the GCC collect2 program. For some 6684 # reason, if we set the COLLECT_NAMES environment variable, the problems 6685 # vanish in a puff of smoke. 6686 if test "X${COLLECT_NAMES+set}" != Xset; then 6687 COLLECT_NAMES= 6688 export COLLECT_NAMES 6689 fi 6690 ;; 6691esac 6692 6693# Sed substitution that helps us do robust quoting. It backslashifies 6694# metacharacters that are still active within double-quoted strings. 6695Xsed='sed -e 1s/^X//' 6696sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6697 6698# Same as above, but do not quote variable references. 6699double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6700 6701# Sed substitution to delay expansion of an escaped shell variable in a 6702# double_quote_subst'ed string. 6703delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6704 6705# Sed substitution to avoid accidental globbing in evaled expressions 6706no_glob_subst='s/\*/\\\*/g' 6707 6708# Constants: 6709rm="rm -f" 6710 6711# Global variables: 6712default_ofile=libtool 6713can_build_shared=yes 6714 6715# All known linkers require a `.a' archive for static linking (except MSVC, 6716# which needs '.lib'). 6717libext=a 6718ltmain="$ac_aux_dir/ltmain.sh" 6719ofile="$default_ofile" 6720with_gnu_ld="$lt_cv_prog_gnu_ld" 6721 6722if test -n "$ac_tool_prefix"; then 6723 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6724set dummy ${ac_tool_prefix}ar; ac_word=$2 6725{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6726$as_echo_n "checking for $ac_word... " >&6; } 6727if test "${ac_cv_prog_AR+set}" = set; then 6728 $as_echo_n "(cached) " >&6 6729else 6730 if test -n "$AR"; then 6731 ac_cv_prog_AR="$AR" # Let the user override the test. 6732else 6733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6734for as_dir in $PATH 6735do 6736 IFS=$as_save_IFS 6737 test -z "$as_dir" && as_dir=. 6738 for ac_exec_ext in '' $ac_executable_extensions; do 6739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6740 ac_cv_prog_AR="${ac_tool_prefix}ar" 6741 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6742 break 2 6743 fi 6744done 6745done 6746IFS=$as_save_IFS 6747 6748fi 6749fi 6750AR=$ac_cv_prog_AR 6751if test -n "$AR"; then 6752 { $as_echo "$as_me:$LINENO: result: $AR" >&5 6753$as_echo "$AR" >&6; } 6754else 6755 { $as_echo "$as_me:$LINENO: result: no" >&5 6756$as_echo "no" >&6; } 6757fi 6758 6759 6760fi 6761if test -z "$ac_cv_prog_AR"; then 6762 ac_ct_AR=$AR 6763 # Extract the first word of "ar", so it can be a program name with args. 6764set dummy ar; ac_word=$2 6765{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6766$as_echo_n "checking for $ac_word... " >&6; } 6767if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6768 $as_echo_n "(cached) " >&6 6769else 6770 if test -n "$ac_ct_AR"; then 6771 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6772else 6773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6774for as_dir in $PATH 6775do 6776 IFS=$as_save_IFS 6777 test -z "$as_dir" && as_dir=. 6778 for ac_exec_ext in '' $ac_executable_extensions; do 6779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6780 ac_cv_prog_ac_ct_AR="ar" 6781 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6782 break 2 6783 fi 6784done 6785done 6786IFS=$as_save_IFS 6787 6788fi 6789fi 6790ac_ct_AR=$ac_cv_prog_ac_ct_AR 6791if test -n "$ac_ct_AR"; then 6792 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6793$as_echo "$ac_ct_AR" >&6; } 6794else 6795 { $as_echo "$as_me:$LINENO: result: no" >&5 6796$as_echo "no" >&6; } 6797fi 6798 6799 if test "x$ac_ct_AR" = x; then 6800 AR="false" 6801 else 6802 case $cross_compiling:$ac_tool_warned in 6803yes:) 6804{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6805$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6806ac_tool_warned=yes ;; 6807esac 6808 AR=$ac_ct_AR 6809 fi 6810else 6811 AR="$ac_cv_prog_AR" 6812fi 6813 6814if test -n "$ac_tool_prefix"; then 6815 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6816set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6817{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6818$as_echo_n "checking for $ac_word... " >&6; } 6819if test "${ac_cv_prog_RANLIB+set}" = set; then 6820 $as_echo_n "(cached) " >&6 6821else 6822 if test -n "$RANLIB"; then 6823 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6824else 6825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6826for as_dir in $PATH 6827do 6828 IFS=$as_save_IFS 6829 test -z "$as_dir" && as_dir=. 6830 for ac_exec_ext in '' $ac_executable_extensions; do 6831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6832 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6833 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6834 break 2 6835 fi 6836done 6837done 6838IFS=$as_save_IFS 6839 6840fi 6841fi 6842RANLIB=$ac_cv_prog_RANLIB 6843if test -n "$RANLIB"; then 6844 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 6845$as_echo "$RANLIB" >&6; } 6846else 6847 { $as_echo "$as_me:$LINENO: result: no" >&5 6848$as_echo "no" >&6; } 6849fi 6850 6851 6852fi 6853if test -z "$ac_cv_prog_RANLIB"; then 6854 ac_ct_RANLIB=$RANLIB 6855 # Extract the first word of "ranlib", so it can be a program name with args. 6856set dummy ranlib; ac_word=$2 6857{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6858$as_echo_n "checking for $ac_word... " >&6; } 6859if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6860 $as_echo_n "(cached) " >&6 6861else 6862 if test -n "$ac_ct_RANLIB"; then 6863 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6864else 6865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6866for as_dir in $PATH 6867do 6868 IFS=$as_save_IFS 6869 test -z "$as_dir" && as_dir=. 6870 for ac_exec_ext in '' $ac_executable_extensions; do 6871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6872 ac_cv_prog_ac_ct_RANLIB="ranlib" 6873 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6874 break 2 6875 fi 6876done 6877done 6878IFS=$as_save_IFS 6879 6880fi 6881fi 6882ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6883if test -n "$ac_ct_RANLIB"; then 6884 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6885$as_echo "$ac_ct_RANLIB" >&6; } 6886else 6887 { $as_echo "$as_me:$LINENO: result: no" >&5 6888$as_echo "no" >&6; } 6889fi 6890 6891 if test "x$ac_ct_RANLIB" = x; then 6892 RANLIB=":" 6893 else 6894 case $cross_compiling:$ac_tool_warned in 6895yes:) 6896{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6897$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6898ac_tool_warned=yes ;; 6899esac 6900 RANLIB=$ac_ct_RANLIB 6901 fi 6902else 6903 RANLIB="$ac_cv_prog_RANLIB" 6904fi 6905 6906if test -n "$ac_tool_prefix"; then 6907 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6908set dummy ${ac_tool_prefix}strip; ac_word=$2 6909{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6910$as_echo_n "checking for $ac_word... " >&6; } 6911if test "${ac_cv_prog_STRIP+set}" = set; then 6912 $as_echo_n "(cached) " >&6 6913else 6914 if test -n "$STRIP"; then 6915 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6916else 6917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6918for as_dir in $PATH 6919do 6920 IFS=$as_save_IFS 6921 test -z "$as_dir" && as_dir=. 6922 for ac_exec_ext in '' $ac_executable_extensions; do 6923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6924 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6925 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6926 break 2 6927 fi 6928done 6929done 6930IFS=$as_save_IFS 6931 6932fi 6933fi 6934STRIP=$ac_cv_prog_STRIP 6935if test -n "$STRIP"; then 6936 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 6937$as_echo "$STRIP" >&6; } 6938else 6939 { $as_echo "$as_me:$LINENO: result: no" >&5 6940$as_echo "no" >&6; } 6941fi 6942 6943 6944fi 6945if test -z "$ac_cv_prog_STRIP"; then 6946 ac_ct_STRIP=$STRIP 6947 # Extract the first word of "strip", so it can be a program name with args. 6948set dummy strip; ac_word=$2 6949{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6950$as_echo_n "checking for $ac_word... " >&6; } 6951if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6952 $as_echo_n "(cached) " >&6 6953else 6954 if test -n "$ac_ct_STRIP"; then 6955 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6956else 6957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6958for as_dir in $PATH 6959do 6960 IFS=$as_save_IFS 6961 test -z "$as_dir" && as_dir=. 6962 for ac_exec_ext in '' $ac_executable_extensions; do 6963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6964 ac_cv_prog_ac_ct_STRIP="strip" 6965 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6966 break 2 6967 fi 6968done 6969done 6970IFS=$as_save_IFS 6971 6972fi 6973fi 6974ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6975if test -n "$ac_ct_STRIP"; then 6976 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6977$as_echo "$ac_ct_STRIP" >&6; } 6978else 6979 { $as_echo "$as_me:$LINENO: result: no" >&5 6980$as_echo "no" >&6; } 6981fi 6982 6983 if test "x$ac_ct_STRIP" = x; then 6984 STRIP=":" 6985 else 6986 case $cross_compiling:$ac_tool_warned in 6987yes:) 6988{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6989$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6990ac_tool_warned=yes ;; 6991esac 6992 STRIP=$ac_ct_STRIP 6993 fi 6994else 6995 STRIP="$ac_cv_prog_STRIP" 6996fi 6997 6998 6999old_CC="$CC" 7000old_CFLAGS="$CFLAGS" 7001 7002# Set sane defaults for various variables 7003test -z "$AR" && AR=ar 7004test -z "$AR_FLAGS" && AR_FLAGS=cru 7005test -z "$AS" && AS=as 7006test -z "$CC" && CC=cc 7007test -z "$LTCC" && LTCC=$CC 7008test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7009test -z "$DLLTOOL" && DLLTOOL=dlltool 7010test -z "$LD" && LD=ld 7011test -z "$LN_S" && LN_S="ln -s" 7012test -z "$MAGIC_CMD" && MAGIC_CMD=file 7013test -z "$NM" && NM=nm 7014test -z "$SED" && SED=sed 7015test -z "$OBJDUMP" && OBJDUMP=objdump 7016test -z "$RANLIB" && RANLIB=: 7017test -z "$STRIP" && STRIP=: 7018test -z "$ac_objext" && ac_objext=o 7019 7020# Determine commands to create old-style static archives. 7021old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7022old_postinstall_cmds='chmod 644 $oldlib' 7023old_postuninstall_cmds= 7024 7025if test -n "$RANLIB"; then 7026 case $host_os in 7027 openbsd*) 7028 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7029 ;; 7030 *) 7031 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7032 ;; 7033 esac 7034 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7035fi 7036 7037for cc_temp in $compiler""; do 7038 case $cc_temp in 7039 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7040 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7041 \-*) ;; 7042 *) break;; 7043 esac 7044done 7045cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7046 7047 7048# Only perform the check for file, if the check method requires it 7049case $deplibs_check_method in 7050file_magic*) 7051 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7052 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7053$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7054if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7055 $as_echo_n "(cached) " >&6 7056else 7057 case $MAGIC_CMD in 7058[\\/*] | ?:[\\/]*) 7059 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7060 ;; 7061*) 7062 lt_save_MAGIC_CMD="$MAGIC_CMD" 7063 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7064 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7065 for ac_dir in $ac_dummy; do 7066 IFS="$lt_save_ifs" 7067 test -z "$ac_dir" && ac_dir=. 7068 if test -f $ac_dir/${ac_tool_prefix}file; then 7069 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7070 if test -n "$file_magic_test_file"; then 7071 case $deplibs_check_method in 7072 "file_magic "*) 7073 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7074 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7075 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7076 $EGREP "$file_magic_regex" > /dev/null; then 7077 : 7078 else 7079 cat <<EOF 1>&2 7080 7081*** Warning: the command libtool uses to detect shared libraries, 7082*** $file_magic_cmd, produces output that libtool cannot recognize. 7083*** The result is that libtool may fail to recognize shared libraries 7084*** as such. This will affect the creation of libtool libraries that 7085*** depend on shared libraries, but programs linked with such libtool 7086*** libraries will work regardless of this problem. Nevertheless, you 7087*** may want to report the problem to your system manager and/or to 7088*** bug-libtool@gnu.org 7089 7090EOF 7091 fi ;; 7092 esac 7093 fi 7094 break 7095 fi 7096 done 7097 IFS="$lt_save_ifs" 7098 MAGIC_CMD="$lt_save_MAGIC_CMD" 7099 ;; 7100esac 7101fi 7102 7103MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7104if test -n "$MAGIC_CMD"; then 7105 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7106$as_echo "$MAGIC_CMD" >&6; } 7107else 7108 { $as_echo "$as_me:$LINENO: result: no" >&5 7109$as_echo "no" >&6; } 7110fi 7111 7112if test -z "$lt_cv_path_MAGIC_CMD"; then 7113 if test -n "$ac_tool_prefix"; then 7114 { $as_echo "$as_me:$LINENO: checking for file" >&5 7115$as_echo_n "checking for file... " >&6; } 7116if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7117 $as_echo_n "(cached) " >&6 7118else 7119 case $MAGIC_CMD in 7120[\\/*] | ?:[\\/]*) 7121 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7122 ;; 7123*) 7124 lt_save_MAGIC_CMD="$MAGIC_CMD" 7125 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7126 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7127 for ac_dir in $ac_dummy; do 7128 IFS="$lt_save_ifs" 7129 test -z "$ac_dir" && ac_dir=. 7130 if test -f $ac_dir/file; then 7131 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7132 if test -n "$file_magic_test_file"; then 7133 case $deplibs_check_method in 7134 "file_magic "*) 7135 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7136 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7137 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7138 $EGREP "$file_magic_regex" > /dev/null; then 7139 : 7140 else 7141 cat <<EOF 1>&2 7142 7143*** Warning: the command libtool uses to detect shared libraries, 7144*** $file_magic_cmd, produces output that libtool cannot recognize. 7145*** The result is that libtool may fail to recognize shared libraries 7146*** as such. This will affect the creation of libtool libraries that 7147*** depend on shared libraries, but programs linked with such libtool 7148*** libraries will work regardless of this problem. Nevertheless, you 7149*** may want to report the problem to your system manager and/or to 7150*** bug-libtool@gnu.org 7151 7152EOF 7153 fi ;; 7154 esac 7155 fi 7156 break 7157 fi 7158 done 7159 IFS="$lt_save_ifs" 7160 MAGIC_CMD="$lt_save_MAGIC_CMD" 7161 ;; 7162esac 7163fi 7164 7165MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7166if test -n "$MAGIC_CMD"; then 7167 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7168$as_echo "$MAGIC_CMD" >&6; } 7169else 7170 { $as_echo "$as_me:$LINENO: result: no" >&5 7171$as_echo "no" >&6; } 7172fi 7173 7174 else 7175 MAGIC_CMD=: 7176 fi 7177fi 7178 7179 fi 7180 ;; 7181esac 7182 7183 7184 case $host_os in 7185 rhapsody* | darwin*) 7186 if test -n "$ac_tool_prefix"; then 7187 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7188set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7189{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7190$as_echo_n "checking for $ac_word... " >&6; } 7191if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 7192 $as_echo_n "(cached) " >&6 7193else 7194 if test -n "$DSYMUTIL"; then 7195 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7196else 7197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7198for as_dir in $PATH 7199do 7200 IFS=$as_save_IFS 7201 test -z "$as_dir" && as_dir=. 7202 for ac_exec_ext in '' $ac_executable_extensions; do 7203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7204 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7205 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7206 break 2 7207 fi 7208done 7209done 7210IFS=$as_save_IFS 7211 7212fi 7213fi 7214DSYMUTIL=$ac_cv_prog_DSYMUTIL 7215if test -n "$DSYMUTIL"; then 7216 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 7217$as_echo "$DSYMUTIL" >&6; } 7218else 7219 { $as_echo "$as_me:$LINENO: result: no" >&5 7220$as_echo "no" >&6; } 7221fi 7222 7223 7224fi 7225if test -z "$ac_cv_prog_DSYMUTIL"; then 7226 ac_ct_DSYMUTIL=$DSYMUTIL 7227 # Extract the first word of "dsymutil", so it can be a program name with args. 7228set dummy dsymutil; ac_word=$2 7229{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7230$as_echo_n "checking for $ac_word... " >&6; } 7231if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 7232 $as_echo_n "(cached) " >&6 7233else 7234 if test -n "$ac_ct_DSYMUTIL"; then 7235 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7236else 7237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7238for as_dir in $PATH 7239do 7240 IFS=$as_save_IFS 7241 test -z "$as_dir" && as_dir=. 7242 for ac_exec_ext in '' $ac_executable_extensions; do 7243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7244 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7245 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7246 break 2 7247 fi 7248done 7249done 7250IFS=$as_save_IFS 7251 7252fi 7253fi 7254ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7255if test -n "$ac_ct_DSYMUTIL"; then 7256 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 7257$as_echo "$ac_ct_DSYMUTIL" >&6; } 7258else 7259 { $as_echo "$as_me:$LINENO: result: no" >&5 7260$as_echo "no" >&6; } 7261fi 7262 7263 if test "x$ac_ct_DSYMUTIL" = x; then 7264 DSYMUTIL=":" 7265 else 7266 case $cross_compiling:$ac_tool_warned in 7267yes:) 7268{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7269$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7270ac_tool_warned=yes ;; 7271esac 7272 DSYMUTIL=$ac_ct_DSYMUTIL 7273 fi 7274else 7275 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7276fi 7277 7278 if test -n "$ac_tool_prefix"; then 7279 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7280set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7281{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7282$as_echo_n "checking for $ac_word... " >&6; } 7283if test "${ac_cv_prog_NMEDIT+set}" = set; then 7284 $as_echo_n "(cached) " >&6 7285else 7286 if test -n "$NMEDIT"; then 7287 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7288else 7289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7290for as_dir in $PATH 7291do 7292 IFS=$as_save_IFS 7293 test -z "$as_dir" && as_dir=. 7294 for ac_exec_ext in '' $ac_executable_extensions; do 7295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7296 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7297 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7298 break 2 7299 fi 7300done 7301done 7302IFS=$as_save_IFS 7303 7304fi 7305fi 7306NMEDIT=$ac_cv_prog_NMEDIT 7307if test -n "$NMEDIT"; then 7308 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 7309$as_echo "$NMEDIT" >&6; } 7310else 7311 { $as_echo "$as_me:$LINENO: result: no" >&5 7312$as_echo "no" >&6; } 7313fi 7314 7315 7316fi 7317if test -z "$ac_cv_prog_NMEDIT"; then 7318 ac_ct_NMEDIT=$NMEDIT 7319 # Extract the first word of "nmedit", so it can be a program name with args. 7320set dummy nmedit; ac_word=$2 7321{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7322$as_echo_n "checking for $ac_word... " >&6; } 7323if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 7324 $as_echo_n "(cached) " >&6 7325else 7326 if test -n "$ac_ct_NMEDIT"; then 7327 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7328else 7329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7330for as_dir in $PATH 7331do 7332 IFS=$as_save_IFS 7333 test -z "$as_dir" && as_dir=. 7334 for ac_exec_ext in '' $ac_executable_extensions; do 7335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7336 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7337 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7338 break 2 7339 fi 7340done 7341done 7342IFS=$as_save_IFS 7343 7344fi 7345fi 7346ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7347if test -n "$ac_ct_NMEDIT"; then 7348 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 7349$as_echo "$ac_ct_NMEDIT" >&6; } 7350else 7351 { $as_echo "$as_me:$LINENO: result: no" >&5 7352$as_echo "no" >&6; } 7353fi 7354 7355 if test "x$ac_ct_NMEDIT" = x; then 7356 NMEDIT=":" 7357 else 7358 case $cross_compiling:$ac_tool_warned in 7359yes:) 7360{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7361$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7362ac_tool_warned=yes ;; 7363esac 7364 NMEDIT=$ac_ct_NMEDIT 7365 fi 7366else 7367 NMEDIT="$ac_cv_prog_NMEDIT" 7368fi 7369 7370 7371 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 7372$as_echo_n "checking for -single_module linker flag... " >&6; } 7373if test "${lt_cv_apple_cc_single_mod+set}" = set; then 7374 $as_echo_n "(cached) " >&6 7375else 7376 lt_cv_apple_cc_single_mod=no 7377 if test -z "${LT_MULTI_MODULE}"; then 7378 # By default we will add the -single_module flag. You can override 7379 # by either setting the environment variable LT_MULTI_MODULE 7380 # non-empty at configure time, or by adding -multi_module to the 7381 # link flags. 7382 echo "int foo(void){return 1;}" > conftest.c 7383 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7384 -dynamiclib ${wl}-single_module conftest.c 7385 if test -f libconftest.dylib; then 7386 lt_cv_apple_cc_single_mod=yes 7387 rm -rf libconftest.dylib* 7388 fi 7389 rm conftest.c 7390 fi 7391fi 7392{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 7393$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7394 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 7395$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7396if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 7397 $as_echo_n "(cached) " >&6 7398else 7399 lt_cv_ld_exported_symbols_list=no 7400 save_LDFLAGS=$LDFLAGS 7401 echo "_main" > conftest.sym 7402 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7403 cat >conftest.$ac_ext <<_ACEOF 7404/* confdefs.h. */ 7405_ACEOF 7406cat confdefs.h >>conftest.$ac_ext 7407cat >>conftest.$ac_ext <<_ACEOF 7408/* end confdefs.h. */ 7409 7410int 7411main () 7412{ 7413 7414 ; 7415 return 0; 7416} 7417_ACEOF 7418rm -f conftest.$ac_objext conftest$ac_exeext 7419if { (ac_try="$ac_link" 7420case "(($ac_try" in 7421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7422 *) ac_try_echo=$ac_try;; 7423esac 7424eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7425$as_echo "$ac_try_echo") >&5 7426 (eval "$ac_link") 2>conftest.er1 7427 ac_status=$? 7428 grep -v '^ *+' conftest.er1 >conftest.err 7429 rm -f conftest.er1 7430 cat conftest.err >&5 7431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7432 (exit $ac_status); } && { 7433 test -z "$ac_c_werror_flag" || 7434 test ! -s conftest.err 7435 } && test -s conftest$ac_exeext && { 7436 test "$cross_compiling" = yes || 7437 $as_test_x conftest$ac_exeext 7438 }; then 7439 lt_cv_ld_exported_symbols_list=yes 7440else 7441 $as_echo "$as_me: failed program was:" >&5 7442sed 's/^/| /' conftest.$ac_ext >&5 7443 7444 lt_cv_ld_exported_symbols_list=no 7445fi 7446 7447rm -rf conftest.dSYM 7448rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7449 conftest$ac_exeext conftest.$ac_ext 7450 LDFLAGS="$save_LDFLAGS" 7451 7452fi 7453{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 7454$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7455 case $host_os in 7456 rhapsody* | darwin1.[0123]) 7457 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7458 darwin1.*) 7459 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7460 darwin*) 7461 # if running on 10.5 or later, the deployment target defaults 7462 # to the OS version, if on x86, and 10.4, the deployment 7463 # target defaults to 10.4. Don't you love it? 7464 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7465 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7466 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7467 10.[012]*) 7468 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7469 10.*) 7470 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7471 esac 7472 ;; 7473 esac 7474 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7475 _lt_dar_single_mod='$single_module' 7476 fi 7477 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7478 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7479 else 7480 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}" 7481 fi 7482 if test "$DSYMUTIL" != ":"; then 7483 _lt_dsymutil="~$DSYMUTIL \$lib || :" 7484 else 7485 _lt_dsymutil= 7486 fi 7487 ;; 7488 esac 7489 7490 7491enable_dlopen=no 7492enable_win32_dll=no 7493 7494# Check whether --enable-libtool-lock was given. 7495if test "${enable_libtool_lock+set}" = set; then 7496 enableval=$enable_libtool_lock; 7497fi 7498 7499test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7500 7501 7502# Check whether --with-pic was given. 7503if test "${with_pic+set}" = set; then 7504 withval=$with_pic; pic_mode="$withval" 7505else 7506 pic_mode=default 7507fi 7508 7509test -z "$pic_mode" && pic_mode=default 7510 7511# Use C for the default configuration in the libtool script 7512tagname= 7513lt_save_CC="$CC" 7514ac_ext=c 7515ac_cpp='$CPP $CPPFLAGS' 7516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7518ac_compiler_gnu=$ac_cv_c_compiler_gnu 7519 7520 7521# Source file extension for C test sources. 7522ac_ext=c 7523 7524# Object file extension for compiled C test sources. 7525objext=o 7526objext=$objext 7527 7528# Code to be used in simple compile tests 7529lt_simple_compile_test_code="int some_variable = 0;" 7530 7531# Code to be used in simple link tests 7532lt_simple_link_test_code='int main(){return(0);}' 7533 7534 7535# If no C compiler was specified, use CC. 7536LTCC=${LTCC-"$CC"} 7537 7538# If no C compiler flags were specified, use CFLAGS. 7539LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7540 7541# Allow CC to be a program name with arguments. 7542compiler=$CC 7543 7544 7545# save warnings/boilerplate of simple test code 7546ac_outfile=conftest.$ac_objext 7547echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7548eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7549_lt_compiler_boilerplate=`cat conftest.err` 7550$rm conftest* 7551 7552ac_outfile=conftest.$ac_objext 7553echo "$lt_simple_link_test_code" >conftest.$ac_ext 7554eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7555_lt_linker_boilerplate=`cat conftest.err` 7556$rm -r conftest* 7557 7558 7559 7560lt_prog_compiler_no_builtin_flag= 7561 7562if test "$GCC" = yes; then 7563 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7564 7565 7566{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7567$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7568if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7569 $as_echo_n "(cached) " >&6 7570else 7571 lt_cv_prog_compiler_rtti_exceptions=no 7572 ac_outfile=conftest.$ac_objext 7573 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7574 lt_compiler_flag="-fno-rtti -fno-exceptions" 7575 # Insert the option either (1) after the last *FLAGS variable, or 7576 # (2) before a word containing "conftest.", or (3) at the end. 7577 # Note that $ac_compile itself does not contain backslashes and begins 7578 # with a dollar sign (not a hyphen), so the echo should work correctly. 7579 # The option is referenced via a variable to avoid confusing sed. 7580 lt_compile=`echo "$ac_compile" | $SED \ 7581 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7582 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7583 -e 's:$: $lt_compiler_flag:'` 7584 (eval echo "\"\$as_me:7584: $lt_compile\"" >&5) 7585 (eval "$lt_compile" 2>conftest.err) 7586 ac_status=$? 7587 cat conftest.err >&5 7588 echo "$as_me:7588: \$? = $ac_status" >&5 7589 if (exit $ac_status) && test -s "$ac_outfile"; then 7590 # The compiler can only warn and ignore the option if not recognized 7591 # So say no if there are warnings other than the usual output. 7592 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7593 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7594 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7595 lt_cv_prog_compiler_rtti_exceptions=yes 7596 fi 7597 fi 7598 $rm conftest* 7599 7600fi 7601{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7602$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7603 7604if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7605 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7606else 7607 : 7608fi 7609 7610fi 7611 7612lt_prog_compiler_wl= 7613lt_prog_compiler_pic= 7614lt_prog_compiler_static= 7615 7616{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7617$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7618 7619 if test "$GCC" = yes; then 7620 lt_prog_compiler_wl='-Wl,' 7621 lt_prog_compiler_static='-static' 7622 7623 case $host_os in 7624 aix*) 7625 # All AIX code is PIC. 7626 if test "$host_cpu" = ia64; then 7627 # AIX 5 now supports IA64 processor 7628 lt_prog_compiler_static='-Bstatic' 7629 fi 7630 ;; 7631 7632 amigaos*) 7633 # FIXME: we need at least 68020 code to build shared libraries, but 7634 # adding the `-m68020' flag to GCC prevents building anything better, 7635 # like `-m68040'. 7636 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7637 ;; 7638 7639 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7640 # PIC is the default for these OSes. 7641 ;; 7642 7643 mingw* | cygwin* | pw32* | os2*) 7644 # This hack is so that the source file can tell whether it is being 7645 # built for inclusion in a dll (and should export symbols for example). 7646 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7647 # (--disable-auto-import) libraries 7648 lt_prog_compiler_pic='-DDLL_EXPORT' 7649 ;; 7650 7651 darwin* | rhapsody*) 7652 # PIC is the default on this platform 7653 # Common symbols not allowed in MH_DYLIB files 7654 lt_prog_compiler_pic='-fno-common' 7655 ;; 7656 7657 interix[3-9]*) 7658 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7659 # Instead, we relocate shared libraries at runtime. 7660 ;; 7661 7662 msdosdjgpp*) 7663 # Just because we use GCC doesn't mean we suddenly get shared libraries 7664 # on systems that don't support them. 7665 lt_prog_compiler_can_build_shared=no 7666 enable_shared=no 7667 ;; 7668 7669 sysv4*MP*) 7670 if test -d /usr/nec; then 7671 lt_prog_compiler_pic=-Kconform_pic 7672 fi 7673 ;; 7674 7675 hpux*) 7676 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7677 # not for PA HP-UX. 7678 case $host_cpu in 7679 hppa*64*|ia64*) 7680 # +Z the default 7681 ;; 7682 *) 7683 lt_prog_compiler_pic='-fPIC' 7684 ;; 7685 esac 7686 ;; 7687 7688 *) 7689 lt_prog_compiler_pic='-fPIC' 7690 ;; 7691 esac 7692 else 7693 # PORTME Check for flag to pass linker flags through the system compiler. 7694 case $host_os in 7695 aix*) 7696 lt_prog_compiler_wl='-Wl,' 7697 if test "$host_cpu" = ia64; then 7698 # AIX 5 now supports IA64 processor 7699 lt_prog_compiler_static='-Bstatic' 7700 else 7701 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7702 fi 7703 ;; 7704 darwin*) 7705 # PIC is the default on this platform 7706 # Common symbols not allowed in MH_DYLIB files 7707 case $cc_basename in 7708 xlc*) 7709 lt_prog_compiler_pic='-qnocommon' 7710 lt_prog_compiler_wl='-Wl,' 7711 ;; 7712 esac 7713 ;; 7714 7715 mingw* | cygwin* | pw32* | os2*) 7716 # This hack is so that the source file can tell whether it is being 7717 # built for inclusion in a dll (and should export symbols for example). 7718 lt_prog_compiler_pic='-DDLL_EXPORT' 7719 ;; 7720 7721 hpux9* | hpux10* | hpux11*) 7722 lt_prog_compiler_wl='-Wl,' 7723 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7724 # not for PA HP-UX. 7725 case $host_cpu in 7726 hppa*64*|ia64*) 7727 # +Z the default 7728 ;; 7729 *) 7730 lt_prog_compiler_pic='+Z' 7731 ;; 7732 esac 7733 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7734 lt_prog_compiler_static='${wl}-a ${wl}archive' 7735 ;; 7736 7737 irix5* | irix6* | nonstopux*) 7738 lt_prog_compiler_wl='-Wl,' 7739 # PIC (with -KPIC) is the default. 7740 lt_prog_compiler_static='-non_shared' 7741 ;; 7742 7743 newsos6) 7744 lt_prog_compiler_pic='-KPIC' 7745 lt_prog_compiler_static='-Bstatic' 7746 ;; 7747 7748 linux* | k*bsd*-gnu) 7749 case $cc_basename in 7750 icc* | ecc*) 7751 lt_prog_compiler_wl='-Wl,' 7752 lt_prog_compiler_pic='-KPIC' 7753 lt_prog_compiler_static='-static' 7754 ;; 7755 pgcc* | pgf77* | pgf90* | pgf95*) 7756 # Portland Group compilers (*not* the Pentium gcc compiler, 7757 # which looks to be a dead project) 7758 lt_prog_compiler_wl='-Wl,' 7759 lt_prog_compiler_pic='-fpic' 7760 lt_prog_compiler_static='-Bstatic' 7761 ;; 7762 ccc*) 7763 lt_prog_compiler_wl='-Wl,' 7764 # All Alpha code is PIC. 7765 lt_prog_compiler_static='-non_shared' 7766 ;; 7767 *) 7768 case `$CC -V 2>&1 | sed 5q` in 7769 *Sun\ C*) 7770 # Sun C 5.9 7771 lt_prog_compiler_pic='-KPIC' 7772 lt_prog_compiler_static='-Bstatic' 7773 lt_prog_compiler_wl='-Wl,' 7774 ;; 7775 *Sun\ F*) 7776 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7777 lt_prog_compiler_pic='-KPIC' 7778 lt_prog_compiler_static='-Bstatic' 7779 lt_prog_compiler_wl='' 7780 ;; 7781 esac 7782 ;; 7783 esac 7784 ;; 7785 7786 osf3* | osf4* | osf5*) 7787 lt_prog_compiler_wl='-Wl,' 7788 # All OSF/1 code is PIC. 7789 lt_prog_compiler_static='-non_shared' 7790 ;; 7791 7792 rdos*) 7793 lt_prog_compiler_static='-non_shared' 7794 ;; 7795 7796 solaris*) 7797 lt_prog_compiler_pic='-KPIC' 7798 lt_prog_compiler_static='-Bstatic' 7799 case $cc_basename in 7800 f77* | f90* | f95*) 7801 lt_prog_compiler_wl='-Qoption ld ';; 7802 *) 7803 lt_prog_compiler_wl='-Wl,';; 7804 esac 7805 ;; 7806 7807 sunos4*) 7808 lt_prog_compiler_wl='-Qoption ld ' 7809 lt_prog_compiler_pic='-PIC' 7810 lt_prog_compiler_static='-Bstatic' 7811 ;; 7812 7813 sysv4 | sysv4.2uw2* | sysv4.3*) 7814 lt_prog_compiler_wl='-Wl,' 7815 lt_prog_compiler_pic='-KPIC' 7816 lt_prog_compiler_static='-Bstatic' 7817 ;; 7818 7819 sysv4*MP*) 7820 if test -d /usr/nec ;then 7821 lt_prog_compiler_pic='-Kconform_pic' 7822 lt_prog_compiler_static='-Bstatic' 7823 fi 7824 ;; 7825 7826 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7827 lt_prog_compiler_wl='-Wl,' 7828 lt_prog_compiler_pic='-KPIC' 7829 lt_prog_compiler_static='-Bstatic' 7830 ;; 7831 7832 unicos*) 7833 lt_prog_compiler_wl='-Wl,' 7834 lt_prog_compiler_can_build_shared=no 7835 ;; 7836 7837 uts4*) 7838 lt_prog_compiler_pic='-pic' 7839 lt_prog_compiler_static='-Bstatic' 7840 ;; 7841 7842 *) 7843 lt_prog_compiler_can_build_shared=no 7844 ;; 7845 esac 7846 fi 7847 7848{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7849$as_echo "$lt_prog_compiler_pic" >&6; } 7850 7851# 7852# Check to make sure the PIC flag actually works. 7853# 7854if test -n "$lt_prog_compiler_pic"; then 7855 7856{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7857$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7858if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 7859 $as_echo_n "(cached) " >&6 7860else 7861 lt_cv_prog_compiler_pic_works=no 7862 ac_outfile=conftest.$ac_objext 7863 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7864 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7865 # Insert the option either (1) after the last *FLAGS variable, or 7866 # (2) before a word containing "conftest.", or (3) at the end. 7867 # Note that $ac_compile itself does not contain backslashes and begins 7868 # with a dollar sign (not a hyphen), so the echo should work correctly. 7869 # The option is referenced via a variable to avoid confusing sed. 7870 lt_compile=`echo "$ac_compile" | $SED \ 7871 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7872 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7873 -e 's:$: $lt_compiler_flag:'` 7874 (eval echo "\"\$as_me:7874: $lt_compile\"" >&5) 7875 (eval "$lt_compile" 2>conftest.err) 7876 ac_status=$? 7877 cat conftest.err >&5 7878 echo "$as_me:7878: \$? = $ac_status" >&5 7879 if (exit $ac_status) && test -s "$ac_outfile"; then 7880 # The compiler can only warn and ignore the option if not recognized 7881 # So say no if there are warnings other than the usual output. 7882 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7883 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7884 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7885 lt_cv_prog_compiler_pic_works=yes 7886 fi 7887 fi 7888 $rm conftest* 7889 7890fi 7891{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 7892$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7893 7894if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7895 case $lt_prog_compiler_pic in 7896 "" | " "*) ;; 7897 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7898 esac 7899else 7900 lt_prog_compiler_pic= 7901 lt_prog_compiler_can_build_shared=no 7902fi 7903 7904fi 7905case $host_os in 7906 # For platforms which do not support PIC, -DPIC is meaningless: 7907 *djgpp*) 7908 lt_prog_compiler_pic= 7909 ;; 7910 *) 7911 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7912 ;; 7913esac 7914 7915# 7916# Check to make sure the static flag actually works. 7917# 7918wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7919{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7920$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7921if test "${lt_cv_prog_compiler_static_works+set}" = set; then 7922 $as_echo_n "(cached) " >&6 7923else 7924 lt_cv_prog_compiler_static_works=no 7925 save_LDFLAGS="$LDFLAGS" 7926 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7927 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7928 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7929 # The linker can only warn and ignore the option if not recognized 7930 # So say no if there are warnings 7931 if test -s conftest.err; then 7932 # Append any errors to the config.log. 7933 cat conftest.err 1>&5 7934 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7935 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7936 if diff conftest.exp conftest.er2 >/dev/null; then 7937 lt_cv_prog_compiler_static_works=yes 7938 fi 7939 else 7940 lt_cv_prog_compiler_static_works=yes 7941 fi 7942 fi 7943 $rm -r conftest* 7944 LDFLAGS="$save_LDFLAGS" 7945 7946fi 7947{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 7948$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 7949 7950if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7951 : 7952else 7953 lt_prog_compiler_static= 7954fi 7955 7956 7957{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7958$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7959if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7960 $as_echo_n "(cached) " >&6 7961else 7962 lt_cv_prog_compiler_c_o=no 7963 $rm -r conftest 2>/dev/null 7964 mkdir conftest 7965 cd conftest 7966 mkdir out 7967 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7968 7969 lt_compiler_flag="-o out/conftest2.$ac_objext" 7970 # Insert the option either (1) after the last *FLAGS variable, or 7971 # (2) before a word containing "conftest.", or (3) at the end. 7972 # Note that $ac_compile itself does not contain backslashes and begins 7973 # with a dollar sign (not a hyphen), so the echo should work correctly. 7974 lt_compile=`echo "$ac_compile" | $SED \ 7975 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7976 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7977 -e 's:$: $lt_compiler_flag:'` 7978 (eval echo "\"\$as_me:7978: $lt_compile\"" >&5) 7979 (eval "$lt_compile" 2>out/conftest.err) 7980 ac_status=$? 7981 cat out/conftest.err >&5 7982 echo "$as_me:7982: \$? = $ac_status" >&5 7983 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7984 then 7985 # The compiler can only warn and ignore the option if not recognized 7986 # So say no if there are warnings 7987 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7988 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7989 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7990 lt_cv_prog_compiler_c_o=yes 7991 fi 7992 fi 7993 chmod u+w . 2>&5 7994 $rm conftest* 7995 # SGI C++ compiler will create directory out/ii_files/ for 7996 # template instantiation 7997 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7998 $rm out/* && rmdir out 7999 cd .. 8000 rmdir conftest 8001 $rm conftest* 8002 8003fi 8004{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8005$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8006 8007 8008hard_links="nottested" 8009if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8010 # do not overwrite the value of need_locks provided by the user 8011 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8012$as_echo_n "checking if we can lock with hard links... " >&6; } 8013 hard_links=yes 8014 $rm conftest* 8015 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8016 touch conftest.a 8017 ln conftest.a conftest.b 2>&5 || hard_links=no 8018 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8019 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 8020$as_echo "$hard_links" >&6; } 8021 if test "$hard_links" = no; then 8022 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8023$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8024 need_locks=warn 8025 fi 8026else 8027 need_locks=no 8028fi 8029 8030{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8031$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8032 8033 runpath_var= 8034 allow_undefined_flag= 8035 enable_shared_with_static_runtimes=no 8036 archive_cmds= 8037 archive_expsym_cmds= 8038 old_archive_From_new_cmds= 8039 old_archive_from_expsyms_cmds= 8040 export_dynamic_flag_spec= 8041 whole_archive_flag_spec= 8042 thread_safe_flag_spec= 8043 hardcode_libdir_flag_spec= 8044 hardcode_libdir_flag_spec_ld= 8045 hardcode_libdir_separator= 8046 hardcode_direct=no 8047 hardcode_minus_L=no 8048 hardcode_shlibpath_var=unsupported 8049 link_all_deplibs=unknown 8050 hardcode_automatic=no 8051 module_cmds= 8052 module_expsym_cmds= 8053 always_export_symbols=no 8054 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8055 # include_expsyms should be a list of space-separated symbols to be *always* 8056 # included in the symbol list 8057 include_expsyms= 8058 # exclude_expsyms can be an extended regexp of symbols to exclude 8059 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8060 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8061 # as well as any symbol that contains `d'. 8062 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8063 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8064 # platforms (ab)use it in PIC code, but their linkers get confused if 8065 # the symbol is explicitly referenced. Since portable code cannot 8066 # rely on this symbol name, it's probably fine to never include it in 8067 # preloaded symbol tables. 8068 # Exclude shared library initialization/finalization symbols. 8069 extract_expsyms_cmds= 8070 # Just being paranoid about ensuring that cc_basename is set. 8071 for cc_temp in $compiler""; do 8072 case $cc_temp in 8073 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8074 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8075 \-*) ;; 8076 *) break;; 8077 esac 8078done 8079cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8080 8081 case $host_os in 8082 cygwin* | mingw* | pw32*) 8083 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8084 # When not using gcc, we currently assume that we are using 8085 # Microsoft Visual C++. 8086 if test "$GCC" != yes; then 8087 with_gnu_ld=no 8088 fi 8089 ;; 8090 interix*) 8091 # we just hope/assume this is gcc and not c89 (= MSVC++) 8092 with_gnu_ld=yes 8093 ;; 8094 openbsd*) 8095 with_gnu_ld=no 8096 ;; 8097 esac 8098 8099 ld_shlibs=yes 8100 if test "$with_gnu_ld" = yes; then 8101 # If archive_cmds runs LD, not CC, wlarc should be empty 8102 wlarc='${wl}' 8103 8104 # Set some defaults for GNU ld with shared library support. These 8105 # are reset later if shared libraries are not supported. Putting them 8106 # here allows them to be overridden if necessary. 8107 runpath_var=LD_RUN_PATH 8108 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 8109 export_dynamic_flag_spec='${wl}--export-dynamic' 8110 # ancient GNU ld didn't support --whole-archive et. al. 8111 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 8112 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8113 else 8114 whole_archive_flag_spec= 8115 fi 8116 supports_anon_versioning=no 8117 case `$LD -v 2>/dev/null` in 8118 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8119 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8120 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8121 *\ 2.11.*) ;; # other 2.11 versions 8122 *) supports_anon_versioning=yes ;; 8123 esac 8124 8125 # See if GNU ld supports shared libraries. 8126 case $host_os in 8127 aix[3-9]*) 8128 # On AIX/PPC, the GNU linker is very broken 8129 if test "$host_cpu" != ia64; then 8130 ld_shlibs=no 8131 cat <<EOF 1>&2 8132 8133*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8134*** to be unable to reliably create shared libraries on AIX. 8135*** Therefore, libtool is disabling shared libraries support. If you 8136*** really care for shared libraries, you may want to modify your PATH 8137*** so that a non-GNU linker is found, and then restart. 8138 8139EOF 8140 fi 8141 ;; 8142 8143 amigaos*) 8144 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)' 8145 hardcode_libdir_flag_spec='-L$libdir' 8146 hardcode_minus_L=yes 8147 8148 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 8149 # that the semantics of dynamic libraries on AmigaOS, at least up 8150 # to version 4, is to share data among multiple programs linked 8151 # with the same dynamic library. Since this doesn't match the 8152 # behavior of shared libraries on other platforms, we can't use 8153 # them. 8154 ld_shlibs=no 8155 ;; 8156 8157 beos*) 8158 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8159 allow_undefined_flag=unsupported 8160 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8161 # support --undefined. This deserves some investigation. FIXME 8162 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8163 else 8164 ld_shlibs=no 8165 fi 8166 ;; 8167 8168 cygwin* | mingw* | pw32*) 8169 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8170 # as there is no search path for DLLs. 8171 hardcode_libdir_flag_spec='-L$libdir' 8172 allow_undefined_flag=unsupported 8173 always_export_symbols=no 8174 enable_shared_with_static_runtimes=yes 8175 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8176 8177 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 8178 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8179 # If the export-symbols file already is a .def file (1st line 8180 # is EXPORTS), use it as is; otherwise, prepend... 8181 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8182 cp $export_symbols $output_objdir/$soname.def; 8183 else 8184 echo EXPORTS > $output_objdir/$soname.def; 8185 cat $export_symbols >> $output_objdir/$soname.def; 8186 fi~ 8187 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8188 else 8189 ld_shlibs=no 8190 fi 8191 ;; 8192 8193 interix[3-9]*) 8194 hardcode_direct=no 8195 hardcode_shlibpath_var=no 8196 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8197 export_dynamic_flag_spec='${wl}-E' 8198 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8199 # Instead, shared libraries are loaded at an image base (0x10000000 by 8200 # default) and relocated if they conflict, which is a slow very memory 8201 # consuming and fragmenting process. To avoid this, we pick a random, 8202 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8203 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8204 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8205 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' 8206 ;; 8207 8208 gnu* | linux* | k*bsd*-gnu) 8209 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8210 tmp_addflag= 8211 case $cc_basename,$host_cpu in 8212 pgcc*) # Portland Group C compiler 8213 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' 8214 tmp_addflag=' $pic_flag' 8215 ;; 8216 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8217 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' 8218 tmp_addflag=' $pic_flag -Mnomain' ;; 8219 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8220 tmp_addflag=' -i_dynamic' ;; 8221 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8222 tmp_addflag=' -i_dynamic -nofor_main' ;; 8223 ifc* | ifort*) # Intel Fortran compiler 8224 tmp_addflag=' -nofor_main' ;; 8225 esac 8226 case `$CC -V 2>&1 | sed 5q` in 8227 *Sun\ C*) # Sun C 5.9 8228 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' 8229 tmp_sharedflag='-G' ;; 8230 *Sun\ F*) # Sun Fortran 8.3 8231 tmp_sharedflag='-G' ;; 8232 *) 8233 tmp_sharedflag='-shared' ;; 8234 esac 8235 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8236 8237 if test $supports_anon_versioning = yes; then 8238 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8239 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8240 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8241 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8242 fi 8243 else 8244 ld_shlibs=no 8245 fi 8246 ;; 8247 8248 netbsd*) 8249 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8250 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8251 wlarc= 8252 else 8253 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8254 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8255 fi 8256 ;; 8257 8258 solaris*) 8259 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8260 ld_shlibs=no 8261 cat <<EOF 1>&2 8262 8263*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8264*** create shared libraries on Solaris systems. Therefore, libtool 8265*** is disabling shared libraries support. We urge you to upgrade GNU 8266*** binutils to release 2.9.1 or newer. Another option is to modify 8267*** your PATH or compiler configuration so that the native linker is 8268*** used, and then restart. 8269 8270EOF 8271 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8272 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8273 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8274 else 8275 ld_shlibs=no 8276 fi 8277 ;; 8278 8279 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8280 case `$LD -v 2>&1` in 8281 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8282 ld_shlibs=no 8283 cat <<_LT_EOF 1>&2 8284 8285*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8286*** reliably create shared libraries on SCO systems. Therefore, libtool 8287*** is disabling shared libraries support. We urge you to upgrade GNU 8288*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8289*** your PATH or compiler configuration so that the native linker is 8290*** used, and then restart. 8291 8292_LT_EOF 8293 ;; 8294 *) 8295 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8296 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 8297 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 8298 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 8299 else 8300 ld_shlibs=no 8301 fi 8302 ;; 8303 esac 8304 ;; 8305 8306 sunos4*) 8307 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8308 wlarc= 8309 hardcode_direct=yes 8310 hardcode_shlibpath_var=no 8311 ;; 8312 8313 *) 8314 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8315 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8316 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8317 else 8318 ld_shlibs=no 8319 fi 8320 ;; 8321 esac 8322 8323 if test "$ld_shlibs" = no; then 8324 runpath_var= 8325 hardcode_libdir_flag_spec= 8326 export_dynamic_flag_spec= 8327 whole_archive_flag_spec= 8328 fi 8329 else 8330 # PORTME fill in a description of your system's linker (not GNU ld) 8331 case $host_os in 8332 aix3*) 8333 allow_undefined_flag=unsupported 8334 always_export_symbols=yes 8335 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' 8336 # Note: this linker hardcodes the directories in LIBPATH if there 8337 # are no directories specified by -L. 8338 hardcode_minus_L=yes 8339 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8340 # Neither direct hardcoding nor static linking is supported with a 8341 # broken collect2. 8342 hardcode_direct=unsupported 8343 fi 8344 ;; 8345 8346 aix[4-9]*) 8347 if test "$host_cpu" = ia64; then 8348 # On IA64, the linker does run time linking by default, so we don't 8349 # have to do anything special. 8350 aix_use_runtimelinking=no 8351 exp_sym_flag='-Bexport' 8352 no_entry_flag="" 8353 else 8354 # If we're using GNU nm, then we don't want the "-C" option. 8355 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8356 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 8357 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' 8358 else 8359 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' 8360 fi 8361 aix_use_runtimelinking=no 8362 8363 # Test if we are trying to use run time linking or normal 8364 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8365 # need to do runtime linking. 8366 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8367 for ld_flag in $LDFLAGS; do 8368 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8369 aix_use_runtimelinking=yes 8370 break 8371 fi 8372 done 8373 ;; 8374 esac 8375 8376 exp_sym_flag='-bexport' 8377 no_entry_flag='-bnoentry' 8378 fi 8379 8380 # When large executables or shared objects are built, AIX ld can 8381 # have problems creating the table of contents. If linking a library 8382 # or program results in "error TOC overflow" add -mminimal-toc to 8383 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8384 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8385 8386 archive_cmds='' 8387 hardcode_direct=yes 8388 hardcode_libdir_separator=':' 8389 link_all_deplibs=yes 8390 8391 if test "$GCC" = yes; then 8392 case $host_os in aix4.[012]|aix4.[012].*) 8393 # We only want to do this on AIX 4.2 and lower, the check 8394 # below for broken collect2 doesn't work under 4.3+ 8395 collect2name=`${CC} -print-prog-name=collect2` 8396 if test -f "$collect2name" && \ 8397 strings "$collect2name" | grep resolve_lib_name >/dev/null 8398 then 8399 # We have reworked collect2 8400 : 8401 else 8402 # We have old collect2 8403 hardcode_direct=unsupported 8404 # It fails to find uninstalled libraries when the uninstalled 8405 # path is not listed in the libpath. Setting hardcode_minus_L 8406 # to unsupported forces relinking 8407 hardcode_minus_L=yes 8408 hardcode_libdir_flag_spec='-L$libdir' 8409 hardcode_libdir_separator= 8410 fi 8411 ;; 8412 esac 8413 shared_flag='-shared' 8414 if test "$aix_use_runtimelinking" = yes; then 8415 shared_flag="$shared_flag "'${wl}-G' 8416 fi 8417 else 8418 # not using gcc 8419 if test "$host_cpu" = ia64; then 8420 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8421 # chokes on -Wl,-G. The following line is correct: 8422 shared_flag='-G' 8423 else 8424 if test "$aix_use_runtimelinking" = yes; then 8425 shared_flag='${wl}-G' 8426 else 8427 shared_flag='${wl}-bM:SRE' 8428 fi 8429 fi 8430 fi 8431 8432 # It seems that -bexpall does not export symbols beginning with 8433 # underscore (_), so it is better to generate a list of symbols to export. 8434 always_export_symbols=yes 8435 if test "$aix_use_runtimelinking" = yes; then 8436 # Warning - without using the other runtime loading flags (-brtl), 8437 # -berok will link without error, but may produce a broken library. 8438 allow_undefined_flag='-berok' 8439 # Determine the default libpath from the value encoded in an empty executable. 8440 cat >conftest.$ac_ext <<_ACEOF 8441/* confdefs.h. */ 8442_ACEOF 8443cat confdefs.h >>conftest.$ac_ext 8444cat >>conftest.$ac_ext <<_ACEOF 8445/* end confdefs.h. */ 8446 8447int 8448main () 8449{ 8450 8451 ; 8452 return 0; 8453} 8454_ACEOF 8455rm -f conftest.$ac_objext conftest$ac_exeext 8456if { (ac_try="$ac_link" 8457case "(($ac_try" in 8458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8459 *) ac_try_echo=$ac_try;; 8460esac 8461eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8462$as_echo "$ac_try_echo") >&5 8463 (eval "$ac_link") 2>conftest.er1 8464 ac_status=$? 8465 grep -v '^ *+' conftest.er1 >conftest.err 8466 rm -f conftest.er1 8467 cat conftest.err >&5 8468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8469 (exit $ac_status); } && { 8470 test -z "$ac_c_werror_flag" || 8471 test ! -s conftest.err 8472 } && test -s conftest$ac_exeext && { 8473 test "$cross_compiling" = yes || 8474 $as_test_x conftest$ac_exeext 8475 }; then 8476 8477lt_aix_libpath_sed=' 8478 /Import File Strings/,/^$/ { 8479 /^0/ { 8480 s/^0 *\(.*\)$/\1/ 8481 p 8482 } 8483 }' 8484aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8485# Check for a 64-bit object if we didn't find anything. 8486if test -z "$aix_libpath"; then 8487 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8488fi 8489else 8490 $as_echo "$as_me: failed program was:" >&5 8491sed 's/^/| /' conftest.$ac_ext >&5 8492 8493 8494fi 8495 8496rm -rf conftest.dSYM 8497rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8498 conftest$ac_exeext conftest.$ac_ext 8499if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8500 8501 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8502 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" 8503 else 8504 if test "$host_cpu" = ia64; then 8505 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8506 allow_undefined_flag="-z nodefs" 8507 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" 8508 else 8509 # Determine the default libpath from the value encoded in an empty executable. 8510 cat >conftest.$ac_ext <<_ACEOF 8511/* confdefs.h. */ 8512_ACEOF 8513cat confdefs.h >>conftest.$ac_ext 8514cat >>conftest.$ac_ext <<_ACEOF 8515/* end confdefs.h. */ 8516 8517int 8518main () 8519{ 8520 8521 ; 8522 return 0; 8523} 8524_ACEOF 8525rm -f conftest.$ac_objext conftest$ac_exeext 8526if { (ac_try="$ac_link" 8527case "(($ac_try" in 8528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8529 *) ac_try_echo=$ac_try;; 8530esac 8531eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8532$as_echo "$ac_try_echo") >&5 8533 (eval "$ac_link") 2>conftest.er1 8534 ac_status=$? 8535 grep -v '^ *+' conftest.er1 >conftest.err 8536 rm -f conftest.er1 8537 cat conftest.err >&5 8538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8539 (exit $ac_status); } && { 8540 test -z "$ac_c_werror_flag" || 8541 test ! -s conftest.err 8542 } && test -s conftest$ac_exeext && { 8543 test "$cross_compiling" = yes || 8544 $as_test_x conftest$ac_exeext 8545 }; then 8546 8547lt_aix_libpath_sed=' 8548 /Import File Strings/,/^$/ { 8549 /^0/ { 8550 s/^0 *\(.*\)$/\1/ 8551 p 8552 } 8553 }' 8554aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8555# Check for a 64-bit object if we didn't find anything. 8556if test -z "$aix_libpath"; then 8557 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8558fi 8559else 8560 $as_echo "$as_me: failed program was:" >&5 8561sed 's/^/| /' conftest.$ac_ext >&5 8562 8563 8564fi 8565 8566rm -rf conftest.dSYM 8567rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8568 conftest$ac_exeext conftest.$ac_ext 8569if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8570 8571 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8572 # Warning - without using the other run time loading flags, 8573 # -berok will link without error, but may produce a broken library. 8574 no_undefined_flag=' ${wl}-bernotok' 8575 allow_undefined_flag=' ${wl}-berok' 8576 # Exported symbols can be pulled into shared objects from archives 8577 whole_archive_flag_spec='$convenience' 8578 archive_cmds_need_lc=yes 8579 # This is similar to how AIX traditionally builds its shared libraries. 8580 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' 8581 fi 8582 fi 8583 ;; 8584 8585 amigaos*) 8586 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)' 8587 hardcode_libdir_flag_spec='-L$libdir' 8588 hardcode_minus_L=yes 8589 # see comment about different semantics on the GNU ld section 8590 ld_shlibs=no 8591 ;; 8592 8593 bsdi[45]*) 8594 export_dynamic_flag_spec=-rdynamic 8595 ;; 8596 8597 cygwin* | mingw* | pw32*) 8598 # When not using gcc, we currently assume that we are using 8599 # Microsoft Visual C++. 8600 # hardcode_libdir_flag_spec is actually meaningless, as there is 8601 # no search path for DLLs. 8602 hardcode_libdir_flag_spec=' ' 8603 allow_undefined_flag=unsupported 8604 # Tell ltmain to make .lib files, not .a files. 8605 libext=lib 8606 # Tell ltmain to make .dll files, not .so files. 8607 shrext_cmds=".dll" 8608 # FIXME: Setting linknames here is a bad hack. 8609 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8610 # The linker will automatically build a .lib file if we build a DLL. 8611 old_archive_From_new_cmds='true' 8612 # FIXME: Should let the user specify the lib program. 8613 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8614 fix_srcfile_path='`cygpath -w "$srcfile"`' 8615 enable_shared_with_static_runtimes=yes 8616 ;; 8617 8618 darwin* | rhapsody*) 8619 case $host_os in 8620 rhapsody* | darwin1.[012]) 8621 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8622 ;; 8623 *) # Darwin 1.3 on 8624 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8625 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8626 else 8627 case ${MACOSX_DEPLOYMENT_TARGET} in 8628 10.[012]) 8629 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8630 ;; 8631 10.*) 8632 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8633 ;; 8634 esac 8635 fi 8636 ;; 8637 esac 8638 archive_cmds_need_lc=no 8639 hardcode_direct=no 8640 hardcode_automatic=yes 8641 hardcode_shlibpath_var=unsupported 8642 whole_archive_flag_spec='' 8643 link_all_deplibs=yes 8644 if test "$GCC" = yes ; then 8645 output_verbose_link_cmd='echo' 8646 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8647 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8648 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}" 8649 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}" 8650 else 8651 case $cc_basename in 8652 xlc*) 8653 output_verbose_link_cmd='echo' 8654 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 8655 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8656 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8657 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}' 8658 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}' 8659 ;; 8660 *) 8661 ld_shlibs=no 8662 ;; 8663 esac 8664 fi 8665 ;; 8666 8667 dgux*) 8668 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8669 hardcode_libdir_flag_spec='-L$libdir' 8670 hardcode_shlibpath_var=no 8671 ;; 8672 8673 freebsd1*) 8674 ld_shlibs=no 8675 ;; 8676 8677 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8678 # support. Future versions do this automatically, but an explicit c++rt0.o 8679 # does not break anything, and helps significantly (at the cost of a little 8680 # extra space). 8681 freebsd2.2*) 8682 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8683 hardcode_libdir_flag_spec='-R$libdir' 8684 hardcode_direct=yes 8685 hardcode_shlibpath_var=no 8686 ;; 8687 8688 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8689 freebsd2*) 8690 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8691 hardcode_direct=yes 8692 hardcode_minus_L=yes 8693 hardcode_shlibpath_var=no 8694 ;; 8695 8696 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8697 freebsd* | dragonfly*) 8698 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8699 hardcode_libdir_flag_spec='-R$libdir' 8700 hardcode_direct=yes 8701 hardcode_shlibpath_var=no 8702 ;; 8703 8704 hpux9*) 8705 if test "$GCC" = yes; then 8706 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' 8707 else 8708 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' 8709 fi 8710 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8711 hardcode_libdir_separator=: 8712 hardcode_direct=yes 8713 8714 # hardcode_minus_L: Not really in the search PATH, 8715 # but as the default location of the library. 8716 hardcode_minus_L=yes 8717 export_dynamic_flag_spec='${wl}-E' 8718 ;; 8719 8720 hpux10*) 8721 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8722 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8723 else 8724 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8725 fi 8726 if test "$with_gnu_ld" = no; then 8727 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8728 hardcode_libdir_separator=: 8729 8730 hardcode_direct=yes 8731 export_dynamic_flag_spec='${wl}-E' 8732 8733 # hardcode_minus_L: Not really in the search PATH, 8734 # but as the default location of the library. 8735 hardcode_minus_L=yes 8736 fi 8737 ;; 8738 8739 hpux11*) 8740 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8741 case $host_cpu in 8742 hppa*64*) 8743 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8744 ;; 8745 ia64*) 8746 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8747 ;; 8748 *) 8749 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8750 ;; 8751 esac 8752 else 8753 case $host_cpu in 8754 hppa*64*) 8755 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8756 ;; 8757 ia64*) 8758 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8759 ;; 8760 *) 8761 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8762 ;; 8763 esac 8764 fi 8765 if test "$with_gnu_ld" = no; then 8766 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8767 hardcode_libdir_separator=: 8768 8769 case $host_cpu in 8770 hppa*64*|ia64*) 8771 hardcode_libdir_flag_spec_ld='+b $libdir' 8772 hardcode_direct=no 8773 hardcode_shlibpath_var=no 8774 ;; 8775 *) 8776 hardcode_direct=yes 8777 export_dynamic_flag_spec='${wl}-E' 8778 8779 # hardcode_minus_L: Not really in the search PATH, 8780 # but as the default location of the library. 8781 hardcode_minus_L=yes 8782 ;; 8783 esac 8784 fi 8785 ;; 8786 8787 irix5* | irix6* | nonstopux*) 8788 if test "$GCC" = yes; then 8789 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' 8790 else 8791 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' 8792 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8793 fi 8794 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8795 hardcode_libdir_separator=: 8796 link_all_deplibs=yes 8797 ;; 8798 8799 netbsd*) 8800 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8801 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8802 else 8803 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8804 fi 8805 hardcode_libdir_flag_spec='-R$libdir' 8806 hardcode_direct=yes 8807 hardcode_shlibpath_var=no 8808 ;; 8809 8810 newsos6) 8811 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8812 hardcode_direct=yes 8813 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8814 hardcode_libdir_separator=: 8815 hardcode_shlibpath_var=no 8816 ;; 8817 8818 openbsd*) 8819 if test -f /usr/libexec/ld.so; then 8820 hardcode_direct=yes 8821 hardcode_shlibpath_var=no 8822 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8823 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8824 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8825 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8826 export_dynamic_flag_spec='${wl}-E' 8827 else 8828 case $host_os in 8829 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8830 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8831 hardcode_libdir_flag_spec='-R$libdir' 8832 ;; 8833 *) 8834 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8835 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8836 ;; 8837 esac 8838 fi 8839 else 8840 ld_shlibs=no 8841 fi 8842 ;; 8843 8844 os2*) 8845 hardcode_libdir_flag_spec='-L$libdir' 8846 hardcode_minus_L=yes 8847 allow_undefined_flag=unsupported 8848 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' 8849 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8850 ;; 8851 8852 osf3*) 8853 if test "$GCC" = yes; then 8854 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8855 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' 8856 else 8857 allow_undefined_flag=' -expect_unresolved \*' 8858 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' 8859 fi 8860 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8861 hardcode_libdir_separator=: 8862 ;; 8863 8864 osf4* | osf5*) # as osf3* with the addition of -msym flag 8865 if test "$GCC" = yes; then 8866 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8867 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' 8868 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8869 else 8870 allow_undefined_flag=' -expect_unresolved \*' 8871 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' 8872 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8873 $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' 8874 8875 # Both c and cxx compiler support -rpath directly 8876 hardcode_libdir_flag_spec='-rpath $libdir' 8877 fi 8878 hardcode_libdir_separator=: 8879 ;; 8880 8881 solaris*) 8882 no_undefined_flag=' -z text' 8883 if test "$GCC" = yes; then 8884 wlarc='${wl}' 8885 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8886 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8887 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8888 else 8889 wlarc='' 8890 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8891 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8892 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8893 fi 8894 hardcode_libdir_flag_spec='-R$libdir' 8895 hardcode_shlibpath_var=no 8896 case $host_os in 8897 solaris2.[0-5] | solaris2.[0-5].*) ;; 8898 *) 8899 # The compiler driver will combine and reorder linker options, 8900 # but understands `-z linker_flag'. GCC discards it without `$wl', 8901 # but is careful enough not to reorder. 8902 # Supported since Solaris 2.6 (maybe 2.5.1?) 8903 if test "$GCC" = yes; then 8904 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8905 else 8906 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8907 fi 8908 ;; 8909 esac 8910 link_all_deplibs=yes 8911 ;; 8912 8913 sunos4*) 8914 if test "x$host_vendor" = xsequent; then 8915 # Use $CC to link under sequent, because it throws in some extra .o 8916 # files that make .init and .fini sections work. 8917 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8918 else 8919 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8920 fi 8921 hardcode_libdir_flag_spec='-L$libdir' 8922 hardcode_direct=yes 8923 hardcode_minus_L=yes 8924 hardcode_shlibpath_var=no 8925 ;; 8926 8927 sysv4) 8928 case $host_vendor in 8929 sni) 8930 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8931 hardcode_direct=yes # is this really true??? 8932 ;; 8933 siemens) 8934 ## LD is ld it makes a PLAMLIB 8935 ## CC just makes a GrossModule. 8936 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8937 reload_cmds='$CC -r -o $output$reload_objs' 8938 hardcode_direct=no 8939 ;; 8940 motorola) 8941 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8942 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8943 ;; 8944 esac 8945 runpath_var='LD_RUN_PATH' 8946 hardcode_shlibpath_var=no 8947 ;; 8948 8949 sysv4.3*) 8950 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8951 hardcode_shlibpath_var=no 8952 export_dynamic_flag_spec='-Bexport' 8953 ;; 8954 8955 sysv4*MP*) 8956 if test -d /usr/nec; then 8957 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8958 hardcode_shlibpath_var=no 8959 runpath_var=LD_RUN_PATH 8960 hardcode_runpath_var=yes 8961 ld_shlibs=yes 8962 fi 8963 ;; 8964 8965 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 8966 no_undefined_flag='${wl}-z,text' 8967 archive_cmds_need_lc=no 8968 hardcode_shlibpath_var=no 8969 runpath_var='LD_RUN_PATH' 8970 8971 if test "$GCC" = yes; then 8972 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8973 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8974 else 8975 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8976 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8977 fi 8978 ;; 8979 8980 sysv5* | sco3.2v5* | sco5v6*) 8981 # Note: We can NOT use -z defs as we might desire, because we do not 8982 # link with -lc, and that would cause any symbols used from libc to 8983 # always be unresolved, which means just about no library would 8984 # ever link correctly. If we're not using GNU ld we use -z text 8985 # though, which does catch some bad symbols but isn't as heavy-handed 8986 # as -z defs. 8987 no_undefined_flag='${wl}-z,text' 8988 allow_undefined_flag='${wl}-z,nodefs' 8989 archive_cmds_need_lc=no 8990 hardcode_shlibpath_var=no 8991 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8992 hardcode_libdir_separator=':' 8993 link_all_deplibs=yes 8994 export_dynamic_flag_spec='${wl}-Bexport' 8995 runpath_var='LD_RUN_PATH' 8996 8997 if test "$GCC" = yes; then 8998 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8999 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9000 else 9001 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9002 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9003 fi 9004 ;; 9005 9006 uts4*) 9007 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9008 hardcode_libdir_flag_spec='-L$libdir' 9009 hardcode_shlibpath_var=no 9010 ;; 9011 9012 *) 9013 ld_shlibs=no 9014 ;; 9015 esac 9016 fi 9017 9018{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9019$as_echo "$ld_shlibs" >&6; } 9020test "$ld_shlibs" = no && can_build_shared=no 9021 9022# 9023# Do we need to explicitly link libc? 9024# 9025case "x$archive_cmds_need_lc" in 9026x|xyes) 9027 # Assume -lc should be added 9028 archive_cmds_need_lc=yes 9029 9030 if test "$enable_shared" = yes && test "$GCC" = yes; then 9031 case $archive_cmds in 9032 *'~'*) 9033 # FIXME: we may have to deal with multi-command sequences. 9034 ;; 9035 '$CC '*) 9036 # Test whether the compiler implicitly links with -lc since on some 9037 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9038 # to ld, don't add -lc before -lgcc. 9039 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9040$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9041 $rm conftest* 9042 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9043 9044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9045 (eval $ac_compile) 2>&5 9046 ac_status=$? 9047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9048 (exit $ac_status); } 2>conftest.err; then 9049 soname=conftest 9050 lib=conftest 9051 libobjs=conftest.$ac_objext 9052 deplibs= 9053 wl=$lt_prog_compiler_wl 9054 pic_flag=$lt_prog_compiler_pic 9055 compiler_flags=-v 9056 linker_flags=-v 9057 verstring= 9058 output_objdir=. 9059 libname=conftest 9060 lt_save_allow_undefined_flag=$allow_undefined_flag 9061 allow_undefined_flag= 9062 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 9063 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 9064 ac_status=$? 9065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9066 (exit $ac_status); } 9067 then 9068 archive_cmds_need_lc=no 9069 else 9070 archive_cmds_need_lc=yes 9071 fi 9072 allow_undefined_flag=$lt_save_allow_undefined_flag 9073 else 9074 cat conftest.err 1>&5 9075 fi 9076 $rm conftest* 9077 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9078$as_echo "$archive_cmds_need_lc" >&6; } 9079 ;; 9080 esac 9081 fi 9082 ;; 9083esac 9084 9085{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9086$as_echo_n "checking dynamic linker characteristics... " >&6; } 9087library_names_spec= 9088libname_spec='lib$name' 9089soname_spec= 9090shrext_cmds=".so" 9091postinstall_cmds= 9092postuninstall_cmds= 9093finish_cmds= 9094finish_eval= 9095shlibpath_var= 9096shlibpath_overrides_runpath=unknown 9097version_type=none 9098dynamic_linker="$host_os ld.so" 9099sys_lib_dlsearch_path_spec="/lib /usr/lib" 9100 9101if test "$GCC" = yes; then 9102 case $host_os in 9103 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9104 *) lt_awk_arg="/^libraries:/" ;; 9105 esac 9106 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9107 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 9108 # if the path contains ";" then we assume it to be the separator 9109 # otherwise default to the standard path separator (i.e. ":") - it is 9110 # assumed that no part of a normal pathname contains ";" but that should 9111 # okay in the real world where ";" in dirpaths is itself problematic. 9112 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9113 else 9114 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9115 fi 9116 # Ok, now we have the path, separated by spaces, we can step through it 9117 # and add multilib dir if necessary. 9118 lt_tmp_lt_search_path_spec= 9119 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9120 for lt_sys_path in $lt_search_path_spec; do 9121 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9122 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9123 else 9124 test -d "$lt_sys_path" && \ 9125 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9126 fi 9127 done 9128 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 9129BEGIN {RS=" "; FS="/|\n";} { 9130 lt_foo=""; 9131 lt_count=0; 9132 for (lt_i = NF; lt_i > 0; lt_i--) { 9133 if ($lt_i != "" && $lt_i != ".") { 9134 if ($lt_i == "..") { 9135 lt_count++; 9136 } else { 9137 if (lt_count == 0) { 9138 lt_foo="/" $lt_i lt_foo; 9139 } else { 9140 lt_count--; 9141 } 9142 } 9143 } 9144 } 9145 if (lt_foo != "") { lt_freq[lt_foo]++; } 9146 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9147}'` 9148 sys_lib_search_path_spec=`echo $lt_search_path_spec` 9149else 9150 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9151fi 9152need_lib_prefix=unknown 9153hardcode_into_libs=no 9154 9155# when you set need_version to no, make sure it does not cause -set_version 9156# flags to be left without arguments 9157need_version=unknown 9158 9159case $host_os in 9160aix3*) 9161 version_type=linux 9162 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9163 shlibpath_var=LIBPATH 9164 9165 # AIX 3 has no versioning support, so we append a major version to the name. 9166 soname_spec='${libname}${release}${shared_ext}$major' 9167 ;; 9168 9169aix[4-9]*) 9170 version_type=linux 9171 need_lib_prefix=no 9172 need_version=no 9173 hardcode_into_libs=yes 9174 if test "$host_cpu" = ia64; then 9175 # AIX 5 supports IA64 9176 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9177 shlibpath_var=LD_LIBRARY_PATH 9178 else 9179 # With GCC up to 2.95.x, collect2 would create an import file 9180 # for dependence libraries. The import file would start with 9181 # the line `#! .'. This would cause the generated library to 9182 # depend on `.', always an invalid library. This was fixed in 9183 # development snapshots of GCC prior to 3.0. 9184 case $host_os in 9185 aix4 | aix4.[01] | aix4.[01].*) 9186 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9187 echo ' yes ' 9188 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 9189 : 9190 else 9191 can_build_shared=no 9192 fi 9193 ;; 9194 esac 9195 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9196 # soname into executable. Probably we can add versioning support to 9197 # collect2, so additional links can be useful in future. 9198 if test "$aix_use_runtimelinking" = yes; then 9199 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9200 # instead of lib<name>.a to let people know that these are not 9201 # typical AIX shared libraries. 9202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9203 else 9204 # We preserve .a as extension for shared libraries through AIX4.2 9205 # and later when we are not doing run time linking. 9206 library_names_spec='${libname}${release}.a $libname.a' 9207 soname_spec='${libname}${release}${shared_ext}$major' 9208 fi 9209 shlibpath_var=LIBPATH 9210 fi 9211 ;; 9212 9213amigaos*) 9214 library_names_spec='$libname.ixlibrary $libname.a' 9215 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9216 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' 9217 ;; 9218 9219beos*) 9220 library_names_spec='${libname}${shared_ext}' 9221 dynamic_linker="$host_os ld.so" 9222 shlibpath_var=LIBRARY_PATH 9223 ;; 9224 9225bsdi[45]*) 9226 version_type=linux 9227 need_version=no 9228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9229 soname_spec='${libname}${release}${shared_ext}$major' 9230 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9231 shlibpath_var=LD_LIBRARY_PATH 9232 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9233 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9234 # the default ld.so.conf also contains /usr/contrib/lib and 9235 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9236 # libtool to hard-code these into programs 9237 ;; 9238 9239cygwin* | mingw* | pw32*) 9240 version_type=windows 9241 shrext_cmds=".dll" 9242 need_version=no 9243 need_lib_prefix=no 9244 9245 case $GCC,$host_os in 9246 yes,cygwin* | yes,mingw* | yes,pw32*) 9247 library_names_spec='$libname.dll.a' 9248 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9249 postinstall_cmds='base_file=`basename \${file}`~ 9250 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9251 dldir=$destdir/`dirname \$dlpath`~ 9252 test -d \$dldir || mkdir -p \$dldir~ 9253 $install_prog $dir/$dlname \$dldir/$dlname~ 9254 chmod a+x \$dldir/$dlname' 9255 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9256 dlpath=$dir/\$dldll~ 9257 $rm \$dlpath' 9258 shlibpath_overrides_runpath=yes 9259 9260 case $host_os in 9261 cygwin*) 9262 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9263 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9264 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9265 ;; 9266 mingw*) 9267 # MinGW DLLs use traditional 'lib' prefix 9268 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9269 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9270 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9271 # It is most probably a Windows format PATH printed by 9272 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9273 # path with ; separators, and with drive letters. We can handle the 9274 # drive letters (cygwin fileutils understands them), so leave them, 9275 # especially as we might pass files found there to a mingw objdump, 9276 # which wouldn't understand a cygwinified path. Ahh. 9277 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9278 else 9279 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9280 fi 9281 ;; 9282 pw32*) 9283 # pw32 DLLs use 'pw' prefix rather than 'lib' 9284 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9285 ;; 9286 esac 9287 ;; 9288 9289 *) 9290 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9291 ;; 9292 esac 9293 dynamic_linker='Win32 ld.exe' 9294 # FIXME: first we should search . and the directory the executable is in 9295 shlibpath_var=PATH 9296 ;; 9297 9298darwin* | rhapsody*) 9299 dynamic_linker="$host_os dyld" 9300 version_type=darwin 9301 need_lib_prefix=no 9302 need_version=no 9303 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9304 soname_spec='${libname}${release}${major}$shared_ext' 9305 shlibpath_overrides_runpath=yes 9306 shlibpath_var=DYLD_LIBRARY_PATH 9307 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9308 9309 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9310 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9311 ;; 9312 9313dgux*) 9314 version_type=linux 9315 need_lib_prefix=no 9316 need_version=no 9317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9318 soname_spec='${libname}${release}${shared_ext}$major' 9319 shlibpath_var=LD_LIBRARY_PATH 9320 ;; 9321 9322freebsd1*) 9323 dynamic_linker=no 9324 ;; 9325 9326freebsd* | dragonfly*) 9327 # DragonFly does not have aout. When/if they implement a new 9328 # versioning mechanism, adjust this. 9329 if test -x /usr/bin/objformat; then 9330 objformat=`/usr/bin/objformat` 9331 else 9332 case $host_os in 9333 freebsd[123]*) objformat=aout ;; 9334 *) objformat=elf ;; 9335 esac 9336 fi 9337 version_type=freebsd-$objformat 9338 case $version_type in 9339 freebsd-elf*) 9340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9341 need_version=no 9342 need_lib_prefix=no 9343 ;; 9344 freebsd-*) 9345 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9346 need_version=yes 9347 ;; 9348 esac 9349 shlibpath_var=LD_LIBRARY_PATH 9350 case $host_os in 9351 freebsd2*) 9352 shlibpath_overrides_runpath=yes 9353 ;; 9354 freebsd3.[01]* | freebsdelf3.[01]*) 9355 shlibpath_overrides_runpath=yes 9356 hardcode_into_libs=yes 9357 ;; 9358 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9359 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9360 shlibpath_overrides_runpath=no 9361 hardcode_into_libs=yes 9362 ;; 9363 *) # from 4.6 on, and DragonFly 9364 shlibpath_overrides_runpath=yes 9365 hardcode_into_libs=yes 9366 ;; 9367 esac 9368 ;; 9369 9370gnu*) 9371 version_type=linux 9372 need_lib_prefix=no 9373 need_version=no 9374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9375 soname_spec='${libname}${release}${shared_ext}$major' 9376 shlibpath_var=LD_LIBRARY_PATH 9377 hardcode_into_libs=yes 9378 ;; 9379 9380hpux9* | hpux10* | hpux11*) 9381 # Give a soname corresponding to the major version so that dld.sl refuses to 9382 # link against other versions. 9383 version_type=sunos 9384 need_lib_prefix=no 9385 need_version=no 9386 case $host_cpu in 9387 ia64*) 9388 shrext_cmds='.so' 9389 hardcode_into_libs=yes 9390 dynamic_linker="$host_os dld.so" 9391 shlibpath_var=LD_LIBRARY_PATH 9392 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9394 soname_spec='${libname}${release}${shared_ext}$major' 9395 if test "X$HPUX_IA64_MODE" = X32; then 9396 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9397 else 9398 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9399 fi 9400 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9401 ;; 9402 hppa*64*) 9403 shrext_cmds='.sl' 9404 hardcode_into_libs=yes 9405 dynamic_linker="$host_os dld.sl" 9406 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9407 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9409 soname_spec='${libname}${release}${shared_ext}$major' 9410 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9411 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9412 ;; 9413 *) 9414 shrext_cmds='.sl' 9415 dynamic_linker="$host_os dld.sl" 9416 shlibpath_var=SHLIB_PATH 9417 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9419 soname_spec='${libname}${release}${shared_ext}$major' 9420 ;; 9421 esac 9422 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9423 postinstall_cmds='chmod 555 $lib' 9424 ;; 9425 9426interix[3-9]*) 9427 version_type=linux 9428 need_lib_prefix=no 9429 need_version=no 9430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9431 soname_spec='${libname}${release}${shared_ext}$major' 9432 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9433 shlibpath_var=LD_LIBRARY_PATH 9434 shlibpath_overrides_runpath=no 9435 hardcode_into_libs=yes 9436 ;; 9437 9438irix5* | irix6* | nonstopux*) 9439 case $host_os in 9440 nonstopux*) version_type=nonstopux ;; 9441 *) 9442 if test "$lt_cv_prog_gnu_ld" = yes; then 9443 version_type=linux 9444 else 9445 version_type=irix 9446 fi ;; 9447 esac 9448 need_lib_prefix=no 9449 need_version=no 9450 soname_spec='${libname}${release}${shared_ext}$major' 9451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9452 case $host_os in 9453 irix5* | nonstopux*) 9454 libsuff= shlibsuff= 9455 ;; 9456 *) 9457 case $LD in # libtool.m4 will add one of these switches to LD 9458 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9459 libsuff= shlibsuff= libmagic=32-bit;; 9460 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9461 libsuff=32 shlibsuff=N32 libmagic=N32;; 9462 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9463 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9464 *) libsuff= shlibsuff= libmagic=never-match;; 9465 esac 9466 ;; 9467 esac 9468 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9469 shlibpath_overrides_runpath=no 9470 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9471 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9472 hardcode_into_libs=yes 9473 ;; 9474 9475# No shared lib support for Linux oldld, aout, or coff. 9476linux*oldld* | linux*aout* | linux*coff*) 9477 dynamic_linker=no 9478 ;; 9479 9480# This must be Linux ELF. 9481linux* | k*bsd*-gnu) 9482 version_type=linux 9483 need_lib_prefix=no 9484 need_version=no 9485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9486 soname_spec='${libname}${release}${shared_ext}$major' 9487 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9488 shlibpath_var=LD_LIBRARY_PATH 9489 shlibpath_overrides_runpath=no 9490 # This implies no fast_install, which is unacceptable. 9491 # Some rework will be needed to allow for fast_install 9492 # before this can be enabled. 9493 hardcode_into_libs=yes 9494 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9495 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9496 9497 # Append ld.so.conf contents to the search path 9498 if test -f /etc/ld.so.conf; then 9499 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' ' '` 9500 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 9501 fi 9502 9503 # We used to test for /lib/ld.so.1 and disable shared libraries on 9504 # powerpc, because MkLinux only supported shared libraries with the 9505 # GNU dynamic linker. Since this was broken with cross compilers, 9506 # most powerpc-linux boxes support dynamic linking these days and 9507 # people can always --disable-shared, the test was removed, and we 9508 # assume the GNU/Linux dynamic linker is in use. 9509 dynamic_linker='GNU/Linux ld.so' 9510 ;; 9511 9512netbsd*) 9513 version_type=sunos 9514 need_lib_prefix=no 9515 need_version=no 9516 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9518 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9519 dynamic_linker='NetBSD (a.out) ld.so' 9520 else 9521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9522 soname_spec='${libname}${release}${shared_ext}$major' 9523 dynamic_linker='NetBSD ld.elf_so' 9524 fi 9525 shlibpath_var=LD_LIBRARY_PATH 9526 shlibpath_overrides_runpath=yes 9527 hardcode_into_libs=yes 9528 ;; 9529 9530newsos6) 9531 version_type=linux 9532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9533 shlibpath_var=LD_LIBRARY_PATH 9534 shlibpath_overrides_runpath=yes 9535 ;; 9536 9537nto-qnx*) 9538 version_type=linux 9539 need_lib_prefix=no 9540 need_version=no 9541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9542 soname_spec='${libname}${release}${shared_ext}$major' 9543 shlibpath_var=LD_LIBRARY_PATH 9544 shlibpath_overrides_runpath=yes 9545 ;; 9546 9547openbsd*) 9548 version_type=sunos 9549 sys_lib_dlsearch_path_spec="/usr/lib" 9550 need_lib_prefix=no 9551 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9552 case $host_os in 9553 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9554 *) need_version=no ;; 9555 esac 9556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9557 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9558 shlibpath_var=LD_LIBRARY_PATH 9559 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9560 case $host_os in 9561 openbsd2.[89] | openbsd2.[89].*) 9562 shlibpath_overrides_runpath=no 9563 ;; 9564 *) 9565 shlibpath_overrides_runpath=yes 9566 ;; 9567 esac 9568 else 9569 shlibpath_overrides_runpath=yes 9570 fi 9571 ;; 9572 9573os2*) 9574 libname_spec='$name' 9575 shrext_cmds=".dll" 9576 need_lib_prefix=no 9577 library_names_spec='$libname${shared_ext} $libname.a' 9578 dynamic_linker='OS/2 ld.exe' 9579 shlibpath_var=LIBPATH 9580 ;; 9581 9582osf3* | osf4* | osf5*) 9583 version_type=osf 9584 need_lib_prefix=no 9585 need_version=no 9586 soname_spec='${libname}${release}${shared_ext}$major' 9587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9588 shlibpath_var=LD_LIBRARY_PATH 9589 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9590 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9591 ;; 9592 9593rdos*) 9594 dynamic_linker=no 9595 ;; 9596 9597solaris*) 9598 version_type=linux 9599 need_lib_prefix=no 9600 need_version=no 9601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9602 soname_spec='${libname}${release}${shared_ext}$major' 9603 shlibpath_var=LD_LIBRARY_PATH 9604 shlibpath_overrides_runpath=yes 9605 hardcode_into_libs=yes 9606 # ldd complains unless libraries are executable 9607 postinstall_cmds='chmod +x $lib' 9608 ;; 9609 9610sunos4*) 9611 version_type=sunos 9612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9613 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9614 shlibpath_var=LD_LIBRARY_PATH 9615 shlibpath_overrides_runpath=yes 9616 if test "$with_gnu_ld" = yes; then 9617 need_lib_prefix=no 9618 fi 9619 need_version=yes 9620 ;; 9621 9622sysv4 | sysv4.3*) 9623 version_type=linux 9624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9625 soname_spec='${libname}${release}${shared_ext}$major' 9626 shlibpath_var=LD_LIBRARY_PATH 9627 case $host_vendor in 9628 sni) 9629 shlibpath_overrides_runpath=no 9630 need_lib_prefix=no 9631 export_dynamic_flag_spec='${wl}-Blargedynsym' 9632 runpath_var=LD_RUN_PATH 9633 ;; 9634 siemens) 9635 need_lib_prefix=no 9636 ;; 9637 motorola) 9638 need_lib_prefix=no 9639 need_version=no 9640 shlibpath_overrides_runpath=no 9641 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9642 ;; 9643 esac 9644 ;; 9645 9646sysv4*MP*) 9647 if test -d /usr/nec ;then 9648 version_type=linux 9649 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9650 soname_spec='$libname${shared_ext}.$major' 9651 shlibpath_var=LD_LIBRARY_PATH 9652 fi 9653 ;; 9654 9655sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9656 version_type=freebsd-elf 9657 need_lib_prefix=no 9658 need_version=no 9659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9660 soname_spec='${libname}${release}${shared_ext}$major' 9661 shlibpath_var=LD_LIBRARY_PATH 9662 hardcode_into_libs=yes 9663 if test "$with_gnu_ld" = yes; then 9664 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9665 shlibpath_overrides_runpath=no 9666 else 9667 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9668 shlibpath_overrides_runpath=yes 9669 case $host_os in 9670 sco3.2v5*) 9671 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9672 ;; 9673 esac 9674 fi 9675 sys_lib_dlsearch_path_spec='/usr/lib' 9676 ;; 9677 9678uts4*) 9679 version_type=linux 9680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9681 soname_spec='${libname}${release}${shared_ext}$major' 9682 shlibpath_var=LD_LIBRARY_PATH 9683 ;; 9684 9685*) 9686 dynamic_linker=no 9687 ;; 9688esac 9689{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9690$as_echo "$dynamic_linker" >&6; } 9691test "$dynamic_linker" = no && can_build_shared=no 9692 9693if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 9694 $as_echo_n "(cached) " >&6 9695else 9696 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 9697fi 9698 9699sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 9700if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 9701 $as_echo_n "(cached) " >&6 9702else 9703 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 9704fi 9705 9706sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 9707 9708variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9709if test "$GCC" = yes; then 9710 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9711fi 9712 9713{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9714$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 9715hardcode_action= 9716if test -n "$hardcode_libdir_flag_spec" || \ 9717 test -n "$runpath_var" || \ 9718 test "X$hardcode_automatic" = "Xyes" ; then 9719 9720 # We can hardcode non-existant directories. 9721 if test "$hardcode_direct" != no && 9722 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9723 # have to relink, otherwise we might link with an installed library 9724 # when we should be linking with a yet-to-be-installed one 9725 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9726 test "$hardcode_minus_L" != no; then 9727 # Linking always hardcodes the temporary library directory. 9728 hardcode_action=relink 9729 else 9730 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9731 hardcode_action=immediate 9732 fi 9733else 9734 # We cannot hardcode anything, or else we can only hardcode existing 9735 # directories. 9736 hardcode_action=unsupported 9737fi 9738{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 9739$as_echo "$hardcode_action" >&6; } 9740 9741if test "$hardcode_action" = relink; then 9742 # Fast installation is not supported 9743 enable_fast_install=no 9744elif test "$shlibpath_overrides_runpath" = yes || 9745 test "$enable_shared" = no; then 9746 # Fast installation is not necessary 9747 enable_fast_install=needless 9748fi 9749 9750striplib= 9751old_striplib= 9752{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9753$as_echo_n "checking whether stripping libraries is possible... " >&6; } 9754if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9755 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9756 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9757 { $as_echo "$as_me:$LINENO: result: yes" >&5 9758$as_echo "yes" >&6; } 9759else 9760# FIXME - insert some real tests, host_os isn't really good enough 9761 case $host_os in 9762 darwin*) 9763 if test -n "$STRIP" ; then 9764 striplib="$STRIP -x" 9765 old_striplib="$STRIP -S" 9766 { $as_echo "$as_me:$LINENO: result: yes" >&5 9767$as_echo "yes" >&6; } 9768 else 9769 { $as_echo "$as_me:$LINENO: result: no" >&5 9770$as_echo "no" >&6; } 9771fi 9772 ;; 9773 *) 9774 { $as_echo "$as_me:$LINENO: result: no" >&5 9775$as_echo "no" >&6; } 9776 ;; 9777 esac 9778fi 9779 9780if test "x$enable_dlopen" != xyes; then 9781 enable_dlopen=unknown 9782 enable_dlopen_self=unknown 9783 enable_dlopen_self_static=unknown 9784else 9785 lt_cv_dlopen=no 9786 lt_cv_dlopen_libs= 9787 9788 case $host_os in 9789 beos*) 9790 lt_cv_dlopen="load_add_on" 9791 lt_cv_dlopen_libs= 9792 lt_cv_dlopen_self=yes 9793 ;; 9794 9795 mingw* | pw32*) 9796 lt_cv_dlopen="LoadLibrary" 9797 lt_cv_dlopen_libs= 9798 ;; 9799 9800 cygwin*) 9801 lt_cv_dlopen="dlopen" 9802 lt_cv_dlopen_libs= 9803 ;; 9804 9805 darwin*) 9806 # if libdl is installed we need to link against it 9807 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9808$as_echo_n "checking for dlopen in -ldl... " >&6; } 9809if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9810 $as_echo_n "(cached) " >&6 9811else 9812 ac_check_lib_save_LIBS=$LIBS 9813LIBS="-ldl $LIBS" 9814cat >conftest.$ac_ext <<_ACEOF 9815/* confdefs.h. */ 9816_ACEOF 9817cat confdefs.h >>conftest.$ac_ext 9818cat >>conftest.$ac_ext <<_ACEOF 9819/* end confdefs.h. */ 9820 9821/* Override any GCC internal prototype to avoid an error. 9822 Use char because int might match the return type of a GCC 9823 builtin and then its argument prototype would still apply. */ 9824#ifdef __cplusplus 9825extern "C" 9826#endif 9827char dlopen (); 9828int 9829main () 9830{ 9831return dlopen (); 9832 ; 9833 return 0; 9834} 9835_ACEOF 9836rm -f conftest.$ac_objext conftest$ac_exeext 9837if { (ac_try="$ac_link" 9838case "(($ac_try" in 9839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9840 *) ac_try_echo=$ac_try;; 9841esac 9842eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9843$as_echo "$ac_try_echo") >&5 9844 (eval "$ac_link") 2>conftest.er1 9845 ac_status=$? 9846 grep -v '^ *+' conftest.er1 >conftest.err 9847 rm -f conftest.er1 9848 cat conftest.err >&5 9849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9850 (exit $ac_status); } && { 9851 test -z "$ac_c_werror_flag" || 9852 test ! -s conftest.err 9853 } && test -s conftest$ac_exeext && { 9854 test "$cross_compiling" = yes || 9855 $as_test_x conftest$ac_exeext 9856 }; then 9857 ac_cv_lib_dl_dlopen=yes 9858else 9859 $as_echo "$as_me: failed program was:" >&5 9860sed 's/^/| /' conftest.$ac_ext >&5 9861 9862 ac_cv_lib_dl_dlopen=no 9863fi 9864 9865rm -rf conftest.dSYM 9866rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9867 conftest$ac_exeext conftest.$ac_ext 9868LIBS=$ac_check_lib_save_LIBS 9869fi 9870{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9871$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 9872if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 9873 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9874else 9875 9876 lt_cv_dlopen="dyld" 9877 lt_cv_dlopen_libs= 9878 lt_cv_dlopen_self=yes 9879 9880fi 9881 9882 ;; 9883 9884 *) 9885 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 9886$as_echo_n "checking for shl_load... " >&6; } 9887if test "${ac_cv_func_shl_load+set}" = set; then 9888 $as_echo_n "(cached) " >&6 9889else 9890 cat >conftest.$ac_ext <<_ACEOF 9891/* confdefs.h. */ 9892_ACEOF 9893cat confdefs.h >>conftest.$ac_ext 9894cat >>conftest.$ac_ext <<_ACEOF 9895/* end confdefs.h. */ 9896/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9897 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9898#define shl_load innocuous_shl_load 9899 9900/* System header to define __stub macros and hopefully few prototypes, 9901 which can conflict with char shl_load (); below. 9902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9903 <limits.h> exists even on freestanding compilers. */ 9904 9905#ifdef __STDC__ 9906# include <limits.h> 9907#else 9908# include <assert.h> 9909#endif 9910 9911#undef shl_load 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 shl_load (); 9920/* The GNU C library defines this for functions which it implements 9921 to always fail with ENOSYS. Some functions are actually named 9922 something starting with __ and the normal name is an alias. */ 9923#if defined __stub_shl_load || defined __stub___shl_load 9924choke me 9925#endif 9926 9927int 9928main () 9929{ 9930return shl_load (); 9931 ; 9932 return 0; 9933} 9934_ACEOF 9935rm -f conftest.$ac_objext conftest$ac_exeext 9936if { (ac_try="$ac_link" 9937case "(($ac_try" in 9938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9939 *) ac_try_echo=$ac_try;; 9940esac 9941eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9942$as_echo "$ac_try_echo") >&5 9943 (eval "$ac_link") 2>conftest.er1 9944 ac_status=$? 9945 grep -v '^ *+' conftest.er1 >conftest.err 9946 rm -f conftest.er1 9947 cat conftest.err >&5 9948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9949 (exit $ac_status); } && { 9950 test -z "$ac_c_werror_flag" || 9951 test ! -s conftest.err 9952 } && test -s conftest$ac_exeext && { 9953 test "$cross_compiling" = yes || 9954 $as_test_x conftest$ac_exeext 9955 }; then 9956 ac_cv_func_shl_load=yes 9957else 9958 $as_echo "$as_me: failed program was:" >&5 9959sed 's/^/| /' conftest.$ac_ext >&5 9960 9961 ac_cv_func_shl_load=no 9962fi 9963 9964rm -rf conftest.dSYM 9965rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9966 conftest$ac_exeext conftest.$ac_ext 9967fi 9968{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9969$as_echo "$ac_cv_func_shl_load" >&6; } 9970if test "x$ac_cv_func_shl_load" = x""yes; then 9971 lt_cv_dlopen="shl_load" 9972else 9973 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9974$as_echo_n "checking for shl_load in -ldld... " >&6; } 9975if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9976 $as_echo_n "(cached) " >&6 9977else 9978 ac_check_lib_save_LIBS=$LIBS 9979LIBS="-ldld $LIBS" 9980cat >conftest.$ac_ext <<_ACEOF 9981/* confdefs.h. */ 9982_ACEOF 9983cat confdefs.h >>conftest.$ac_ext 9984cat >>conftest.$ac_ext <<_ACEOF 9985/* end confdefs.h. */ 9986 9987/* Override any GCC internal prototype to avoid an error. 9988 Use char because int might match the return type of a GCC 9989 builtin and then its argument prototype would still apply. */ 9990#ifdef __cplusplus 9991extern "C" 9992#endif 9993char shl_load (); 9994int 9995main () 9996{ 9997return shl_load (); 9998 ; 9999 return 0; 10000} 10001_ACEOF 10002rm -f conftest.$ac_objext conftest$ac_exeext 10003if { (ac_try="$ac_link" 10004case "(($ac_try" in 10005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10006 *) ac_try_echo=$ac_try;; 10007esac 10008eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10009$as_echo "$ac_try_echo") >&5 10010 (eval "$ac_link") 2>conftest.er1 10011 ac_status=$? 10012 grep -v '^ *+' conftest.er1 >conftest.err 10013 rm -f conftest.er1 10014 cat conftest.err >&5 10015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10016 (exit $ac_status); } && { 10017 test -z "$ac_c_werror_flag" || 10018 test ! -s conftest.err 10019 } && test -s conftest$ac_exeext && { 10020 test "$cross_compiling" = yes || 10021 $as_test_x conftest$ac_exeext 10022 }; then 10023 ac_cv_lib_dld_shl_load=yes 10024else 10025 $as_echo "$as_me: failed program was:" >&5 10026sed 's/^/| /' conftest.$ac_ext >&5 10027 10028 ac_cv_lib_dld_shl_load=no 10029fi 10030 10031rm -rf conftest.dSYM 10032rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10033 conftest$ac_exeext conftest.$ac_ext 10034LIBS=$ac_check_lib_save_LIBS 10035fi 10036{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10037$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10038if test "x$ac_cv_lib_dld_shl_load" = x""yes; then 10039 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10040else 10041 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 10042$as_echo_n "checking for dlopen... " >&6; } 10043if test "${ac_cv_func_dlopen+set}" = set; then 10044 $as_echo_n "(cached) " >&6 10045else 10046 cat >conftest.$ac_ext <<_ACEOF 10047/* confdefs.h. */ 10048_ACEOF 10049cat confdefs.h >>conftest.$ac_ext 10050cat >>conftest.$ac_ext <<_ACEOF 10051/* end confdefs.h. */ 10052/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10053 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10054#define dlopen innocuous_dlopen 10055 10056/* System header to define __stub macros and hopefully few prototypes, 10057 which can conflict with char dlopen (); below. 10058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10059 <limits.h> exists even on freestanding compilers. */ 10060 10061#ifdef __STDC__ 10062# include <limits.h> 10063#else 10064# include <assert.h> 10065#endif 10066 10067#undef dlopen 10068 10069/* Override any GCC internal prototype to avoid an error. 10070 Use char because int might match the return type of a GCC 10071 builtin and then its argument prototype would still apply. */ 10072#ifdef __cplusplus 10073extern "C" 10074#endif 10075char dlopen (); 10076/* The GNU C library defines this for functions which it implements 10077 to always fail with ENOSYS. Some functions are actually named 10078 something starting with __ and the normal name is an alias. */ 10079#if defined __stub_dlopen || defined __stub___dlopen 10080choke me 10081#endif 10082 10083int 10084main () 10085{ 10086return dlopen (); 10087 ; 10088 return 0; 10089} 10090_ACEOF 10091rm -f conftest.$ac_objext conftest$ac_exeext 10092if { (ac_try="$ac_link" 10093case "(($ac_try" in 10094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10095 *) ac_try_echo=$ac_try;; 10096esac 10097eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10098$as_echo "$ac_try_echo") >&5 10099 (eval "$ac_link") 2>conftest.er1 10100 ac_status=$? 10101 grep -v '^ *+' conftest.er1 >conftest.err 10102 rm -f conftest.er1 10103 cat conftest.err >&5 10104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10105 (exit $ac_status); } && { 10106 test -z "$ac_c_werror_flag" || 10107 test ! -s conftest.err 10108 } && test -s conftest$ac_exeext && { 10109 test "$cross_compiling" = yes || 10110 $as_test_x conftest$ac_exeext 10111 }; then 10112 ac_cv_func_dlopen=yes 10113else 10114 $as_echo "$as_me: failed program was:" >&5 10115sed 's/^/| /' conftest.$ac_ext >&5 10116 10117 ac_cv_func_dlopen=no 10118fi 10119 10120rm -rf conftest.dSYM 10121rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10122 conftest$ac_exeext conftest.$ac_ext 10123fi 10124{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10125$as_echo "$ac_cv_func_dlopen" >&6; } 10126if test "x$ac_cv_func_dlopen" = x""yes; then 10127 lt_cv_dlopen="dlopen" 10128else 10129 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10130$as_echo_n "checking for dlopen in -ldl... " >&6; } 10131if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10132 $as_echo_n "(cached) " >&6 10133else 10134 ac_check_lib_save_LIBS=$LIBS 10135LIBS="-ldl $LIBS" 10136cat >conftest.$ac_ext <<_ACEOF 10137/* confdefs.h. */ 10138_ACEOF 10139cat confdefs.h >>conftest.$ac_ext 10140cat >>conftest.$ac_ext <<_ACEOF 10141/* end confdefs.h. */ 10142 10143/* Override any GCC internal prototype to avoid an error. 10144 Use char because int might match the return type of a GCC 10145 builtin and then its argument prototype would still apply. */ 10146#ifdef __cplusplus 10147extern "C" 10148#endif 10149char dlopen (); 10150int 10151main () 10152{ 10153return dlopen (); 10154 ; 10155 return 0; 10156} 10157_ACEOF 10158rm -f conftest.$ac_objext conftest$ac_exeext 10159if { (ac_try="$ac_link" 10160case "(($ac_try" in 10161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10162 *) ac_try_echo=$ac_try;; 10163esac 10164eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10165$as_echo "$ac_try_echo") >&5 10166 (eval "$ac_link") 2>conftest.er1 10167 ac_status=$? 10168 grep -v '^ *+' conftest.er1 >conftest.err 10169 rm -f conftest.er1 10170 cat conftest.err >&5 10171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10172 (exit $ac_status); } && { 10173 test -z "$ac_c_werror_flag" || 10174 test ! -s conftest.err 10175 } && test -s conftest$ac_exeext && { 10176 test "$cross_compiling" = yes || 10177 $as_test_x conftest$ac_exeext 10178 }; then 10179 ac_cv_lib_dl_dlopen=yes 10180else 10181 $as_echo "$as_me: failed program was:" >&5 10182sed 's/^/| /' conftest.$ac_ext >&5 10183 10184 ac_cv_lib_dl_dlopen=no 10185fi 10186 10187rm -rf conftest.dSYM 10188rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10189 conftest$ac_exeext conftest.$ac_ext 10190LIBS=$ac_check_lib_save_LIBS 10191fi 10192{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10193$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10194if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 10195 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10196else 10197 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10198$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10199if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10200 $as_echo_n "(cached) " >&6 10201else 10202 ac_check_lib_save_LIBS=$LIBS 10203LIBS="-lsvld $LIBS" 10204cat >conftest.$ac_ext <<_ACEOF 10205/* confdefs.h. */ 10206_ACEOF 10207cat confdefs.h >>conftest.$ac_ext 10208cat >>conftest.$ac_ext <<_ACEOF 10209/* end confdefs.h. */ 10210 10211/* Override any GCC internal prototype to avoid an error. 10212 Use char because int might match the return type of a GCC 10213 builtin and then its argument prototype would still apply. */ 10214#ifdef __cplusplus 10215extern "C" 10216#endif 10217char dlopen (); 10218int 10219main () 10220{ 10221return dlopen (); 10222 ; 10223 return 0; 10224} 10225_ACEOF 10226rm -f conftest.$ac_objext conftest$ac_exeext 10227if { (ac_try="$ac_link" 10228case "(($ac_try" in 10229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10230 *) ac_try_echo=$ac_try;; 10231esac 10232eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10233$as_echo "$ac_try_echo") >&5 10234 (eval "$ac_link") 2>conftest.er1 10235 ac_status=$? 10236 grep -v '^ *+' conftest.er1 >conftest.err 10237 rm -f conftest.er1 10238 cat conftest.err >&5 10239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10240 (exit $ac_status); } && { 10241 test -z "$ac_c_werror_flag" || 10242 test ! -s conftest.err 10243 } && test -s conftest$ac_exeext && { 10244 test "$cross_compiling" = yes || 10245 $as_test_x conftest$ac_exeext 10246 }; then 10247 ac_cv_lib_svld_dlopen=yes 10248else 10249 $as_echo "$as_me: failed program was:" >&5 10250sed 's/^/| /' conftest.$ac_ext >&5 10251 10252 ac_cv_lib_svld_dlopen=no 10253fi 10254 10255rm -rf conftest.dSYM 10256rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10257 conftest$ac_exeext conftest.$ac_ext 10258LIBS=$ac_check_lib_save_LIBS 10259fi 10260{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10261$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10262if test "x$ac_cv_lib_svld_dlopen" = x""yes; then 10263 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10264else 10265 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10266$as_echo_n "checking for dld_link in -ldld... " >&6; } 10267if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10268 $as_echo_n "(cached) " >&6 10269else 10270 ac_check_lib_save_LIBS=$LIBS 10271LIBS="-ldld $LIBS" 10272cat >conftest.$ac_ext <<_ACEOF 10273/* confdefs.h. */ 10274_ACEOF 10275cat confdefs.h >>conftest.$ac_ext 10276cat >>conftest.$ac_ext <<_ACEOF 10277/* end confdefs.h. */ 10278 10279/* Override any GCC internal prototype to avoid an error. 10280 Use char because int might match the return type of a GCC 10281 builtin and then its argument prototype would still apply. */ 10282#ifdef __cplusplus 10283extern "C" 10284#endif 10285char dld_link (); 10286int 10287main () 10288{ 10289return dld_link (); 10290 ; 10291 return 0; 10292} 10293_ACEOF 10294rm -f conftest.$ac_objext conftest$ac_exeext 10295if { (ac_try="$ac_link" 10296case "(($ac_try" in 10297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10298 *) ac_try_echo=$ac_try;; 10299esac 10300eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10301$as_echo "$ac_try_echo") >&5 10302 (eval "$ac_link") 2>conftest.er1 10303 ac_status=$? 10304 grep -v '^ *+' conftest.er1 >conftest.err 10305 rm -f conftest.er1 10306 cat conftest.err >&5 10307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10308 (exit $ac_status); } && { 10309 test -z "$ac_c_werror_flag" || 10310 test ! -s conftest.err 10311 } && test -s conftest$ac_exeext && { 10312 test "$cross_compiling" = yes || 10313 $as_test_x conftest$ac_exeext 10314 }; then 10315 ac_cv_lib_dld_dld_link=yes 10316else 10317 $as_echo "$as_me: failed program was:" >&5 10318sed 's/^/| /' conftest.$ac_ext >&5 10319 10320 ac_cv_lib_dld_dld_link=no 10321fi 10322 10323rm -rf conftest.dSYM 10324rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10325 conftest$ac_exeext conftest.$ac_ext 10326LIBS=$ac_check_lib_save_LIBS 10327fi 10328{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10329$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10330if test "x$ac_cv_lib_dld_dld_link" = x""yes; then 10331 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10332fi 10333 10334 10335fi 10336 10337 10338fi 10339 10340 10341fi 10342 10343 10344fi 10345 10346 10347fi 10348 10349 ;; 10350 esac 10351 10352 if test "x$lt_cv_dlopen" != xno; then 10353 enable_dlopen=yes 10354 else 10355 enable_dlopen=no 10356 fi 10357 10358 case $lt_cv_dlopen in 10359 dlopen) 10360 save_CPPFLAGS="$CPPFLAGS" 10361 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10362 10363 save_LDFLAGS="$LDFLAGS" 10364 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10365 10366 save_LIBS="$LIBS" 10367 LIBS="$lt_cv_dlopen_libs $LIBS" 10368 10369 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10370$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10371if test "${lt_cv_dlopen_self+set}" = set; then 10372 $as_echo_n "(cached) " >&6 10373else 10374 if test "$cross_compiling" = yes; then : 10375 lt_cv_dlopen_self=cross 10376else 10377 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10378 lt_status=$lt_dlunknown 10379 cat > conftest.$ac_ext <<EOF 10380#line 10380 "configure" 10381#include "confdefs.h" 10382 10383#if HAVE_DLFCN_H 10384#include <dlfcn.h> 10385#endif 10386 10387#include <stdio.h> 10388 10389#ifdef RTLD_GLOBAL 10390# define LT_DLGLOBAL RTLD_GLOBAL 10391#else 10392# ifdef DL_GLOBAL 10393# define LT_DLGLOBAL DL_GLOBAL 10394# else 10395# define LT_DLGLOBAL 0 10396# endif 10397#endif 10398 10399/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10400 find out it does not work in some platform. */ 10401#ifndef LT_DLLAZY_OR_NOW 10402# ifdef RTLD_LAZY 10403# define LT_DLLAZY_OR_NOW RTLD_LAZY 10404# else 10405# ifdef DL_LAZY 10406# define LT_DLLAZY_OR_NOW DL_LAZY 10407# else 10408# ifdef RTLD_NOW 10409# define LT_DLLAZY_OR_NOW RTLD_NOW 10410# else 10411# ifdef DL_NOW 10412# define LT_DLLAZY_OR_NOW DL_NOW 10413# else 10414# define LT_DLLAZY_OR_NOW 0 10415# endif 10416# endif 10417# endif 10418# endif 10419#endif 10420 10421#ifdef __cplusplus 10422extern "C" void exit (int); 10423#endif 10424 10425void fnord() { int i=42;} 10426int main () 10427{ 10428 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10429 int status = $lt_dlunknown; 10430 10431 if (self) 10432 { 10433 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10434 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10435 /* dlclose (self); */ 10436 } 10437 else 10438 puts (dlerror ()); 10439 10440 exit (status); 10441} 10442EOF 10443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10444 (eval $ac_link) 2>&5 10445 ac_status=$? 10446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10447 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10448 (./conftest; exit; ) >&5 2>/dev/null 10449 lt_status=$? 10450 case x$lt_status in 10451 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10452 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10453 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10454 esac 10455 else : 10456 # compilation failed 10457 lt_cv_dlopen_self=no 10458 fi 10459fi 10460rm -fr conftest* 10461 10462 10463fi 10464{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10465$as_echo "$lt_cv_dlopen_self" >&6; } 10466 10467 if test "x$lt_cv_dlopen_self" = xyes; then 10468 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10469 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10470$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10471if test "${lt_cv_dlopen_self_static+set}" = set; then 10472 $as_echo_n "(cached) " >&6 10473else 10474 if test "$cross_compiling" = yes; then : 10475 lt_cv_dlopen_self_static=cross 10476else 10477 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10478 lt_status=$lt_dlunknown 10479 cat > conftest.$ac_ext <<EOF 10480#line 10480 "configure" 10481#include "confdefs.h" 10482 10483#if HAVE_DLFCN_H 10484#include <dlfcn.h> 10485#endif 10486 10487#include <stdio.h> 10488 10489#ifdef RTLD_GLOBAL 10490# define LT_DLGLOBAL RTLD_GLOBAL 10491#else 10492# ifdef DL_GLOBAL 10493# define LT_DLGLOBAL DL_GLOBAL 10494# else 10495# define LT_DLGLOBAL 0 10496# endif 10497#endif 10498 10499/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10500 find out it does not work in some platform. */ 10501#ifndef LT_DLLAZY_OR_NOW 10502# ifdef RTLD_LAZY 10503# define LT_DLLAZY_OR_NOW RTLD_LAZY 10504# else 10505# ifdef DL_LAZY 10506# define LT_DLLAZY_OR_NOW DL_LAZY 10507# else 10508# ifdef RTLD_NOW 10509# define LT_DLLAZY_OR_NOW RTLD_NOW 10510# else 10511# ifdef DL_NOW 10512# define LT_DLLAZY_OR_NOW DL_NOW 10513# else 10514# define LT_DLLAZY_OR_NOW 0 10515# endif 10516# endif 10517# endif 10518# endif 10519#endif 10520 10521#ifdef __cplusplus 10522extern "C" void exit (int); 10523#endif 10524 10525void fnord() { int i=42;} 10526int main () 10527{ 10528 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10529 int status = $lt_dlunknown; 10530 10531 if (self) 10532 { 10533 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10534 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10535 /* dlclose (self); */ 10536 } 10537 else 10538 puts (dlerror ()); 10539 10540 exit (status); 10541} 10542EOF 10543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10544 (eval $ac_link) 2>&5 10545 ac_status=$? 10546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10547 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10548 (./conftest; exit; ) >&5 2>/dev/null 10549 lt_status=$? 10550 case x$lt_status in 10551 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10552 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10553 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10554 esac 10555 else : 10556 # compilation failed 10557 lt_cv_dlopen_self_static=no 10558 fi 10559fi 10560rm -fr conftest* 10561 10562 10563fi 10564{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10565$as_echo "$lt_cv_dlopen_self_static" >&6; } 10566 fi 10567 10568 CPPFLAGS="$save_CPPFLAGS" 10569 LDFLAGS="$save_LDFLAGS" 10570 LIBS="$save_LIBS" 10571 ;; 10572 esac 10573 10574 case $lt_cv_dlopen_self in 10575 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10576 *) enable_dlopen_self=unknown ;; 10577 esac 10578 10579 case $lt_cv_dlopen_self_static in 10580 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10581 *) enable_dlopen_self_static=unknown ;; 10582 esac 10583fi 10584 10585 10586# Report which library types will actually be built 10587{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10588$as_echo_n "checking if libtool supports shared libraries... " >&6; } 10589{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 10590$as_echo "$can_build_shared" >&6; } 10591 10592{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10593$as_echo_n "checking whether to build shared libraries... " >&6; } 10594test "$can_build_shared" = "no" && enable_shared=no 10595 10596# On AIX, shared libraries and static libraries use the same namespace, and 10597# are all built from PIC. 10598case $host_os in 10599aix3*) 10600 test "$enable_shared" = yes && enable_static=no 10601 if test -n "$RANLIB"; then 10602 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10603 postinstall_cmds='$RANLIB $lib' 10604 fi 10605 ;; 10606 10607aix[4-9]*) 10608 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10609 test "$enable_shared" = yes && enable_static=no 10610 fi 10611 ;; 10612esac 10613{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 10614$as_echo "$enable_shared" >&6; } 10615 10616{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10617$as_echo_n "checking whether to build static libraries... " >&6; } 10618# Make sure either enable_shared or enable_static is yes. 10619test "$enable_shared" = yes || enable_static=yes 10620{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5 10621$as_echo "$enable_static" >&6; } 10622 10623# The else clause should only fire when bootstrapping the 10624# libtool distribution, otherwise you forgot to ship ltmain.sh 10625# with your package, and you will get complaints that there are 10626# no rules to generate ltmain.sh. 10627if test -f "$ltmain"; then 10628 # See if we are running on zsh, and set the options which allow our commands through 10629 # without removal of \ escapes. 10630 if test -n "${ZSH_VERSION+set}" ; then 10631 setopt NO_GLOB_SUBST 10632 fi 10633 # Now quote all the things that may contain metacharacters while being 10634 # careful not to overquote the AC_SUBSTed values. We take copies of the 10635 # variables and quote the copies for generation of the libtool script. 10636 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10637 SED SHELL STRIP \ 10638 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10639 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10640 deplibs_check_method reload_flag reload_cmds need_locks \ 10641 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10642 lt_cv_sys_global_symbol_to_c_name_address \ 10643 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10644 old_postinstall_cmds old_postuninstall_cmds \ 10645 compiler \ 10646 CC \ 10647 LD \ 10648 lt_prog_compiler_wl \ 10649 lt_prog_compiler_pic \ 10650 lt_prog_compiler_static \ 10651 lt_prog_compiler_no_builtin_flag \ 10652 export_dynamic_flag_spec \ 10653 thread_safe_flag_spec \ 10654 whole_archive_flag_spec \ 10655 enable_shared_with_static_runtimes \ 10656 old_archive_cmds \ 10657 old_archive_from_new_cmds \ 10658 predep_objects \ 10659 postdep_objects \ 10660 predeps \ 10661 postdeps \ 10662 compiler_lib_search_path \ 10663 compiler_lib_search_dirs \ 10664 archive_cmds \ 10665 archive_expsym_cmds \ 10666 postinstall_cmds \ 10667 postuninstall_cmds \ 10668 old_archive_from_expsyms_cmds \ 10669 allow_undefined_flag \ 10670 no_undefined_flag \ 10671 export_symbols_cmds \ 10672 hardcode_libdir_flag_spec \ 10673 hardcode_libdir_flag_spec_ld \ 10674 hardcode_libdir_separator \ 10675 hardcode_automatic \ 10676 module_cmds \ 10677 module_expsym_cmds \ 10678 lt_cv_prog_compiler_c_o \ 10679 fix_srcfile_path \ 10680 exclude_expsyms \ 10681 include_expsyms; do 10682 10683 case $var in 10684 old_archive_cmds | \ 10685 old_archive_from_new_cmds | \ 10686 archive_cmds | \ 10687 archive_expsym_cmds | \ 10688 module_cmds | \ 10689 module_expsym_cmds | \ 10690 old_archive_from_expsyms_cmds | \ 10691 export_symbols_cmds | \ 10692 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10693 postinstall_cmds | postuninstall_cmds | \ 10694 old_postinstall_cmds | old_postuninstall_cmds | \ 10695 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10696 # Double-quote double-evaled strings. 10697 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10698 ;; 10699 *) 10700 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10701 ;; 10702 esac 10703 done 10704 10705 case $lt_echo in 10706 *'\$0 --fallback-echo"') 10707 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10708 ;; 10709 esac 10710 10711cfgfile="${ofile}T" 10712 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10713 $rm -f "$cfgfile" 10714 { $as_echo "$as_me:$LINENO: creating $ofile" >&5 10715$as_echo "$as_me: creating $ofile" >&6;} 10716 10717 cat <<__EOF__ >> "$cfgfile" 10718#! $SHELL 10719 10720# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10721# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10722# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10723# 10724# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 10725# Free Software Foundation, Inc. 10726# 10727# This file is part of GNU Libtool: 10728# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10729# 10730# This program is free software; you can redistribute it and/or modify 10731# it under the terms of the GNU General Public License as published by 10732# the Free Software Foundation; either version 2 of the License, or 10733# (at your option) any later version. 10734# 10735# This program is distributed in the hope that it will be useful, but 10736# WITHOUT ANY WARRANTY; without even the implied warranty of 10737# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10738# General Public License for more details. 10739# 10740# You should have received a copy of the GNU General Public License 10741# along with this program; if not, write to the Free Software 10742# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10743# 10744# As a special exception to the GNU General Public License, if you 10745# distribute this file as part of a program that contains a 10746# configuration script generated by Autoconf, you may include it under 10747# the same distribution terms that you use for the rest of that program. 10748 10749# A sed program that does not truncate output. 10750SED=$lt_SED 10751 10752# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10753Xsed="$SED -e 1s/^X//" 10754 10755# The HP-UX ksh and POSIX shell print the target directory to stdout 10756# if CDPATH is set. 10757(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10758 10759# The names of the tagged configurations supported by this script. 10760available_tags= 10761 10762# ### BEGIN LIBTOOL CONFIG 10763 10764# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10765 10766# Shell to use when invoking shell scripts. 10767SHELL=$lt_SHELL 10768 10769# Whether or not to build shared libraries. 10770build_libtool_libs=$enable_shared 10771 10772# Whether or not to build static libraries. 10773build_old_libs=$enable_static 10774 10775# Whether or not to add -lc for building shared libraries. 10776build_libtool_need_lc=$archive_cmds_need_lc 10777 10778# Whether or not to disallow shared libs when runtime libs are static 10779allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10780 10781# Whether or not to optimize for fast installation. 10782fast_install=$enable_fast_install 10783 10784# The host system. 10785host_alias=$host_alias 10786host=$host 10787host_os=$host_os 10788 10789# The build system. 10790build_alias=$build_alias 10791build=$build 10792build_os=$build_os 10793 10794# An echo program that does not interpret backslashes. 10795echo=$lt_echo 10796 10797# The archiver. 10798AR=$lt_AR 10799AR_FLAGS=$lt_AR_FLAGS 10800 10801# A C compiler. 10802LTCC=$lt_LTCC 10803 10804# LTCC compiler flags. 10805LTCFLAGS=$lt_LTCFLAGS 10806 10807# A language-specific compiler. 10808CC=$lt_compiler 10809 10810# Is the compiler the GNU C compiler? 10811with_gcc=$GCC 10812 10813# An ERE matcher. 10814EGREP=$lt_EGREP 10815 10816# The linker used to build libraries. 10817LD=$lt_LD 10818 10819# Whether we need hard or soft links. 10820LN_S=$lt_LN_S 10821 10822# A BSD-compatible nm program. 10823NM=$lt_NM 10824 10825# A symbol stripping program 10826STRIP=$lt_STRIP 10827 10828# Used to examine libraries when file_magic_cmd begins "file" 10829MAGIC_CMD=$MAGIC_CMD 10830 10831# Used on cygwin: DLL creation program. 10832DLLTOOL="$DLLTOOL" 10833 10834# Used on cygwin: object dumper. 10835OBJDUMP="$OBJDUMP" 10836 10837# Used on cygwin: assembler. 10838AS="$AS" 10839 10840# The name of the directory that contains temporary libtool files. 10841objdir=$objdir 10842 10843# How to create reloadable object files. 10844reload_flag=$lt_reload_flag 10845reload_cmds=$lt_reload_cmds 10846 10847# How to pass a linker flag through the compiler. 10848wl=$lt_lt_prog_compiler_wl 10849 10850# Object file suffix (normally "o"). 10851objext="$ac_objext" 10852 10853# Old archive suffix (normally "a"). 10854libext="$libext" 10855 10856# Shared library suffix (normally ".so"). 10857shrext_cmds='$shrext_cmds' 10858 10859# Executable file suffix (normally ""). 10860exeext="$exeext" 10861 10862# Additional compiler flags for building library objects. 10863pic_flag=$lt_lt_prog_compiler_pic 10864pic_mode=$pic_mode 10865 10866# What is the maximum length of a command? 10867max_cmd_len=$lt_cv_sys_max_cmd_len 10868 10869# Does compiler simultaneously support -c and -o options? 10870compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10871 10872# Must we lock files when doing compilation? 10873need_locks=$lt_need_locks 10874 10875# Do we need the lib prefix for modules? 10876need_lib_prefix=$need_lib_prefix 10877 10878# Do we need a version for libraries? 10879need_version=$need_version 10880 10881# Whether dlopen is supported. 10882dlopen_support=$enable_dlopen 10883 10884# Whether dlopen of programs is supported. 10885dlopen_self=$enable_dlopen_self 10886 10887# Whether dlopen of statically linked programs is supported. 10888dlopen_self_static=$enable_dlopen_self_static 10889 10890# Compiler flag to prevent dynamic linking. 10891link_static_flag=$lt_lt_prog_compiler_static 10892 10893# Compiler flag to turn off builtin functions. 10894no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10895 10896# Compiler flag to allow reflexive dlopens. 10897export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10898 10899# Compiler flag to generate shared objects directly from archives. 10900whole_archive_flag_spec=$lt_whole_archive_flag_spec 10901 10902# Compiler flag to generate thread-safe objects. 10903thread_safe_flag_spec=$lt_thread_safe_flag_spec 10904 10905# Library versioning type. 10906version_type=$version_type 10907 10908# Format of library name prefix. 10909libname_spec=$lt_libname_spec 10910 10911# List of archive names. First name is the real one, the rest are links. 10912# The last name is the one that the linker finds with -lNAME. 10913library_names_spec=$lt_library_names_spec 10914 10915# The coded name of the library, if different from the real name. 10916soname_spec=$lt_soname_spec 10917 10918# Commands used to build and install an old-style archive. 10919RANLIB=$lt_RANLIB 10920old_archive_cmds=$lt_old_archive_cmds 10921old_postinstall_cmds=$lt_old_postinstall_cmds 10922old_postuninstall_cmds=$lt_old_postuninstall_cmds 10923 10924# Create an old-style archive from a shared archive. 10925old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10926 10927# Create a temporary old-style archive to link instead of a shared archive. 10928old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10929 10930# Commands used to build and install a shared archive. 10931archive_cmds=$lt_archive_cmds 10932archive_expsym_cmds=$lt_archive_expsym_cmds 10933postinstall_cmds=$lt_postinstall_cmds 10934postuninstall_cmds=$lt_postuninstall_cmds 10935 10936# Commands used to build a loadable module (assumed same as above if empty) 10937module_cmds=$lt_module_cmds 10938module_expsym_cmds=$lt_module_expsym_cmds 10939 10940# Commands to strip libraries. 10941old_striplib=$lt_old_striplib 10942striplib=$lt_striplib 10943 10944# Dependencies to place before the objects being linked to create a 10945# shared library. 10946predep_objects=$lt_predep_objects 10947 10948# Dependencies to place after the objects being linked to create a 10949# shared library. 10950postdep_objects=$lt_postdep_objects 10951 10952# Dependencies to place before the objects being linked to create a 10953# shared library. 10954predeps=$lt_predeps 10955 10956# Dependencies to place after the objects being linked to create a 10957# shared library. 10958postdeps=$lt_postdeps 10959 10960# The directories searched by this compiler when creating a shared 10961# library 10962compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 10963 10964# The library search path used internally by the compiler when linking 10965# a shared library. 10966compiler_lib_search_path=$lt_compiler_lib_search_path 10967 10968# Method to check whether dependent libraries are shared objects. 10969deplibs_check_method=$lt_deplibs_check_method 10970 10971# Command to use when deplibs_check_method == file_magic. 10972file_magic_cmd=$lt_file_magic_cmd 10973 10974# Flag that allows shared libraries with undefined symbols to be built. 10975allow_undefined_flag=$lt_allow_undefined_flag 10976 10977# Flag that forces no undefined symbols. 10978no_undefined_flag=$lt_no_undefined_flag 10979 10980# Commands used to finish a libtool library installation in a directory. 10981finish_cmds=$lt_finish_cmds 10982 10983# Same as above, but a single script fragment to be evaled but not shown. 10984finish_eval=$lt_finish_eval 10985 10986# Take the output of nm and produce a listing of raw symbols and C names. 10987global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10988 10989# Transform the output of nm in a proper C declaration 10990global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10991 10992# Transform the output of nm in a C name address pair 10993global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10994 10995# This is the shared library runtime path variable. 10996runpath_var=$runpath_var 10997 10998# This is the shared library path variable. 10999shlibpath_var=$shlibpath_var 11000 11001# Is shlibpath searched before the hard-coded library search path? 11002shlibpath_overrides_runpath=$shlibpath_overrides_runpath 11003 11004# How to hardcode a shared library path into an executable. 11005hardcode_action=$hardcode_action 11006 11007# Whether we should hardcode library paths into libraries. 11008hardcode_into_libs=$hardcode_into_libs 11009 11010# Flag to hardcode \$libdir into a binary during linking. 11011# This must work even if \$libdir does not exist. 11012hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 11013 11014# If ld is used when linking, flag to hardcode \$libdir into 11015# a binary during linking. This must work even if \$libdir does 11016# not exist. 11017hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 11018 11019# Whether we need a single -rpath flag with a separated argument. 11020hardcode_libdir_separator=$lt_hardcode_libdir_separator 11021 11022# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 11023# resulting binary. 11024hardcode_direct=$hardcode_direct 11025 11026# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 11027# resulting binary. 11028hardcode_minus_L=$hardcode_minus_L 11029 11030# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 11031# the resulting binary. 11032hardcode_shlibpath_var=$hardcode_shlibpath_var 11033 11034# Set to yes if building a shared library automatically hardcodes DIR into the library 11035# and all subsequent libraries and executables linked against it. 11036hardcode_automatic=$hardcode_automatic 11037 11038# Variables whose values should be saved in libtool wrapper scripts and 11039# restored at relink time. 11040variables_saved_for_relink="$variables_saved_for_relink" 11041 11042# Whether libtool must link a program against all its dependency libraries. 11043link_all_deplibs=$link_all_deplibs 11044 11045# Compile-time system search path for libraries 11046sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 11047 11048# Run-time system search path for libraries 11049sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 11050 11051# Fix the shell variable \$srcfile for the compiler. 11052fix_srcfile_path=$lt_fix_srcfile_path 11053 11054# Set to yes if exported symbols are required. 11055always_export_symbols=$always_export_symbols 11056 11057# The commands to list exported symbols. 11058export_symbols_cmds=$lt_export_symbols_cmds 11059 11060# The commands to extract the exported symbol list from a shared archive. 11061extract_expsyms_cmds=$lt_extract_expsyms_cmds 11062 11063# Symbols that should not be listed in the preloaded symbols. 11064exclude_expsyms=$lt_exclude_expsyms 11065 11066# Symbols that must always be exported. 11067include_expsyms=$lt_include_expsyms 11068 11069# ### END LIBTOOL CONFIG 11070 11071__EOF__ 11072 11073 11074 case $host_os in 11075 aix3*) 11076 cat <<\EOF >> "$cfgfile" 11077 11078# AIX sometimes has problems with the GCC collect2 program. For some 11079# reason, if we set the COLLECT_NAMES environment variable, the problems 11080# vanish in a puff of smoke. 11081if test "X${COLLECT_NAMES+set}" != Xset; then 11082 COLLECT_NAMES= 11083 export COLLECT_NAMES 11084fi 11085EOF 11086 ;; 11087 esac 11088 11089 # We use sed instead of cat because bash on DJGPP gets confused if 11090 # if finds mixed CR/LF and LF-only lines. Since sed operates in 11091 # text mode, it properly converts lines to CR/LF. This bash problem 11092 # is reportedly fixed, but why not run on old versions too? 11093 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 11094 11095 mv -f "$cfgfile" "$ofile" || \ 11096 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 11097 chmod +x "$ofile" 11098 11099else 11100 # If there is no Makefile yet, we rely on a make rule to execute 11101 # `config.status --recheck' to rerun these tests and create the 11102 # libtool script then. 11103 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 11104 if test -f "$ltmain_in"; then 11105 test -f Makefile && make "$ltmain" 11106 fi 11107fi 11108 11109 11110ac_ext=c 11111ac_cpp='$CPP $CPPFLAGS' 11112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11114ac_compiler_gnu=$ac_cv_c_compiler_gnu 11115 11116CC="$lt_save_CC" 11117 11118 11119# Check whether --with-tags was given. 11120if test "${with_tags+set}" = set; then 11121 withval=$with_tags; tagnames="$withval" 11122fi 11123 11124 11125if test -f "$ltmain" && test -n "$tagnames"; then 11126 if test ! -f "${ofile}"; then 11127 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 11128$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 11129 fi 11130 11131 if test -z "$LTCC"; then 11132 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 11133 if test -z "$LTCC"; then 11134 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 11135$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 11136 else 11137 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 11138$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 11139 fi 11140 fi 11141 if test -z "$LTCFLAGS"; then 11142 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 11143 fi 11144 11145 # Extract list of available tagged configurations in $ofile. 11146 # Note that this assumes the entire list is on one line. 11147 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 11148 11149 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11150 for tagname in $tagnames; do 11151 IFS="$lt_save_ifs" 11152 # Check whether tagname contains only valid characters 11153 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 11154 "") ;; 11155 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 11156$as_echo "$as_me: error: invalid tag name: $tagname" >&2;} 11157 { (exit 1); exit 1; }; } 11158 ;; 11159 esac 11160 11161 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 11162 then 11163 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 11164$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 11165 { (exit 1); exit 1; }; } 11166 fi 11167 11168 # Update the list of available tags. 11169 if test -n "$tagname"; then 11170 echo appending configuration tag \"$tagname\" to $ofile 11171 11172 case $tagname in 11173 CXX) 11174 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11175 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11176 (test "X$CXX" != "Xg++"))) ; then 11177 ac_ext=cpp 11178ac_cpp='$CXXCPP $CPPFLAGS' 11179ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11180ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11181ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11182 11183 11184 11185 11186archive_cmds_need_lc_CXX=no 11187allow_undefined_flag_CXX= 11188always_export_symbols_CXX=no 11189archive_expsym_cmds_CXX= 11190export_dynamic_flag_spec_CXX= 11191hardcode_direct_CXX=no 11192hardcode_libdir_flag_spec_CXX= 11193hardcode_libdir_flag_spec_ld_CXX= 11194hardcode_libdir_separator_CXX= 11195hardcode_minus_L_CXX=no 11196hardcode_shlibpath_var_CXX=unsupported 11197hardcode_automatic_CXX=no 11198module_cmds_CXX= 11199module_expsym_cmds_CXX= 11200link_all_deplibs_CXX=unknown 11201old_archive_cmds_CXX=$old_archive_cmds 11202no_undefined_flag_CXX= 11203whole_archive_flag_spec_CXX= 11204enable_shared_with_static_runtimes_CXX=no 11205 11206# Dependencies to place before and after the object being linked: 11207predep_objects_CXX= 11208postdep_objects_CXX= 11209predeps_CXX= 11210postdeps_CXX= 11211compiler_lib_search_path_CXX= 11212compiler_lib_search_dirs_CXX= 11213 11214# Source file extension for C++ test sources. 11215ac_ext=cpp 11216 11217# Object file extension for compiled C++ test sources. 11218objext=o 11219objext_CXX=$objext 11220 11221# Code to be used in simple compile tests 11222lt_simple_compile_test_code="int some_variable = 0;" 11223 11224# Code to be used in simple link tests 11225lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 11226 11227# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11228 11229# If no C compiler was specified, use CC. 11230LTCC=${LTCC-"$CC"} 11231 11232# If no C compiler flags were specified, use CFLAGS. 11233LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11234 11235# Allow CC to be a program name with arguments. 11236compiler=$CC 11237 11238 11239# save warnings/boilerplate of simple test code 11240ac_outfile=conftest.$ac_objext 11241echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11242eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11243_lt_compiler_boilerplate=`cat conftest.err` 11244$rm conftest* 11245 11246ac_outfile=conftest.$ac_objext 11247echo "$lt_simple_link_test_code" >conftest.$ac_ext 11248eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11249_lt_linker_boilerplate=`cat conftest.err` 11250$rm -r conftest* 11251 11252 11253# Allow CC to be a program name with arguments. 11254lt_save_CC=$CC 11255lt_save_LD=$LD 11256lt_save_GCC=$GCC 11257GCC=$GXX 11258lt_save_with_gnu_ld=$with_gnu_ld 11259lt_save_path_LD=$lt_cv_path_LD 11260if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11261 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11262else 11263 $as_unset lt_cv_prog_gnu_ld 11264fi 11265if test -n "${lt_cv_path_LDCXX+set}"; then 11266 lt_cv_path_LD=$lt_cv_path_LDCXX 11267else 11268 $as_unset lt_cv_path_LD 11269fi 11270test -z "${LDCXX+set}" || LD=$LDCXX 11271CC=${CXX-"c++"} 11272compiler=$CC 11273compiler_CXX=$CC 11274for cc_temp in $compiler""; do 11275 case $cc_temp in 11276 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11277 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11278 \-*) ;; 11279 *) break;; 11280 esac 11281done 11282cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11283 11284 11285# We don't want -fno-exception wen compiling C++ code, so set the 11286# no_builtin_flag separately 11287if test "$GXX" = yes; then 11288 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11289else 11290 lt_prog_compiler_no_builtin_flag_CXX= 11291fi 11292 11293if test "$GXX" = yes; then 11294 # Set up default GNU C++ configuration 11295 11296 11297# Check whether --with-gnu-ld was given. 11298if test "${with_gnu_ld+set}" = set; then 11299 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11300else 11301 with_gnu_ld=no 11302fi 11303 11304ac_prog=ld 11305if test "$GCC" = yes; then 11306 # Check if gcc -print-prog-name=ld gives a path. 11307 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 11308$as_echo_n "checking for ld used by $CC... " >&6; } 11309 case $host in 11310 *-*-mingw*) 11311 # gcc leaves a trailing carriage return which upsets mingw 11312 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11313 *) 11314 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11315 esac 11316 case $ac_prog in 11317 # Accept absolute paths. 11318 [\\/]* | ?:[\\/]*) 11319 re_direlt='/[^/][^/]*/\.\./' 11320 # Canonicalize the pathname of ld 11321 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 11322 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11323 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 11324 done 11325 test -z "$LD" && LD="$ac_prog" 11326 ;; 11327 "") 11328 # If it fails, then pretend we aren't using GCC. 11329 ac_prog=ld 11330 ;; 11331 *) 11332 # If it is relative, then search for the first ld in PATH. 11333 with_gnu_ld=unknown 11334 ;; 11335 esac 11336elif test "$with_gnu_ld" = yes; then 11337 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 11338$as_echo_n "checking for GNU ld... " >&6; } 11339else 11340 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 11341$as_echo_n "checking for non-GNU ld... " >&6; } 11342fi 11343if test "${lt_cv_path_LD+set}" = set; then 11344 $as_echo_n "(cached) " >&6 11345else 11346 if test -z "$LD"; then 11347 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11348 for ac_dir in $PATH; do 11349 IFS="$lt_save_ifs" 11350 test -z "$ac_dir" && ac_dir=. 11351 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11352 lt_cv_path_LD="$ac_dir/$ac_prog" 11353 # Check to see if the program is GNU ld. I'd rather use --version, 11354 # but apparently some variants of GNU ld only accept -v. 11355 # Break only if it was the GNU/non-GNU ld that we prefer. 11356 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11357 *GNU* | *'with BFD'*) 11358 test "$with_gnu_ld" != no && break 11359 ;; 11360 *) 11361 test "$with_gnu_ld" != yes && break 11362 ;; 11363 esac 11364 fi 11365 done 11366 IFS="$lt_save_ifs" 11367else 11368 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11369fi 11370fi 11371 11372LD="$lt_cv_path_LD" 11373if test -n "$LD"; then 11374 { $as_echo "$as_me:$LINENO: result: $LD" >&5 11375$as_echo "$LD" >&6; } 11376else 11377 { $as_echo "$as_me:$LINENO: result: no" >&5 11378$as_echo "no" >&6; } 11379fi 11380test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 11381$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 11382 { (exit 1); exit 1; }; } 11383{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 11384$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11385if test "${lt_cv_prog_gnu_ld+set}" = set; then 11386 $as_echo_n "(cached) " >&6 11387else 11388 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11389case `$LD -v 2>&1 </dev/null` in 11390*GNU* | *'with BFD'*) 11391 lt_cv_prog_gnu_ld=yes 11392 ;; 11393*) 11394 lt_cv_prog_gnu_ld=no 11395 ;; 11396esac 11397fi 11398{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 11399$as_echo "$lt_cv_prog_gnu_ld" >&6; } 11400with_gnu_ld=$lt_cv_prog_gnu_ld 11401 11402 11403 11404 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11405 # archiving commands below assume that GNU ld is being used. 11406 if test "$with_gnu_ld" = yes; then 11407 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11408 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' 11409 11410 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11411 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11412 11413 # If archive_cmds runs LD, not CC, wlarc should be empty 11414 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11415 # investigate it a little bit more. (MM) 11416 wlarc='${wl}' 11417 11418 # ancient GNU ld didn't support --whole-archive et. al. 11419 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 11420 grep 'no-whole-archive' > /dev/null; then 11421 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11422 else 11423 whole_archive_flag_spec_CXX= 11424 fi 11425 else 11426 with_gnu_ld=no 11427 wlarc= 11428 11429 # A generic and very simple default shared library creation 11430 # command for GNU C++ for the case where it uses the native 11431 # linker, instead of GNU ld. If possible, this setting should 11432 # overridden to take advantage of the native linker features on 11433 # the platform it is being used on. 11434 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11435 fi 11436 11437 # Commands to make compiler produce verbose output that lists 11438 # what "hidden" libraries, object files and flags are used when 11439 # linking a shared library. 11440 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11441 11442else 11443 GXX=no 11444 with_gnu_ld=no 11445 wlarc= 11446fi 11447 11448# PORTME: fill in a description of your system's C++ link characteristics 11449{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11450$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11451ld_shlibs_CXX=yes 11452case $host_os in 11453 aix3*) 11454 # FIXME: insert proper C++ library support 11455 ld_shlibs_CXX=no 11456 ;; 11457 aix[4-9]*) 11458 if test "$host_cpu" = ia64; then 11459 # On IA64, the linker does run time linking by default, so we don't 11460 # have to do anything special. 11461 aix_use_runtimelinking=no 11462 exp_sym_flag='-Bexport' 11463 no_entry_flag="" 11464 else 11465 aix_use_runtimelinking=no 11466 11467 # Test if we are trying to use run time linking or normal 11468 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11469 # need to do runtime linking. 11470 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11471 for ld_flag in $LDFLAGS; do 11472 case $ld_flag in 11473 *-brtl*) 11474 aix_use_runtimelinking=yes 11475 break 11476 ;; 11477 esac 11478 done 11479 ;; 11480 esac 11481 11482 exp_sym_flag='-bexport' 11483 no_entry_flag='-bnoentry' 11484 fi 11485 11486 # When large executables or shared objects are built, AIX ld can 11487 # have problems creating the table of contents. If linking a library 11488 # or program results in "error TOC overflow" add -mminimal-toc to 11489 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11490 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11491 11492 archive_cmds_CXX='' 11493 hardcode_direct_CXX=yes 11494 hardcode_libdir_separator_CXX=':' 11495 link_all_deplibs_CXX=yes 11496 11497 if test "$GXX" = yes; then 11498 case $host_os in aix4.[012]|aix4.[012].*) 11499 # We only want to do this on AIX 4.2 and lower, the check 11500 # below for broken collect2 doesn't work under 4.3+ 11501 collect2name=`${CC} -print-prog-name=collect2` 11502 if test -f "$collect2name" && \ 11503 strings "$collect2name" | grep resolve_lib_name >/dev/null 11504 then 11505 # We have reworked collect2 11506 : 11507 else 11508 # We have old collect2 11509 hardcode_direct_CXX=unsupported 11510 # It fails to find uninstalled libraries when the uninstalled 11511 # path is not listed in the libpath. Setting hardcode_minus_L 11512 # to unsupported forces relinking 11513 hardcode_minus_L_CXX=yes 11514 hardcode_libdir_flag_spec_CXX='-L$libdir' 11515 hardcode_libdir_separator_CXX= 11516 fi 11517 ;; 11518 esac 11519 shared_flag='-shared' 11520 if test "$aix_use_runtimelinking" = yes; then 11521 shared_flag="$shared_flag "'${wl}-G' 11522 fi 11523 else 11524 # not using gcc 11525 if test "$host_cpu" = ia64; then 11526 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11527 # chokes on -Wl,-G. The following line is correct: 11528 shared_flag='-G' 11529 else 11530 if test "$aix_use_runtimelinking" = yes; then 11531 shared_flag='${wl}-G' 11532 else 11533 shared_flag='${wl}-bM:SRE' 11534 fi 11535 fi 11536 fi 11537 11538 # It seems that -bexpall does not export symbols beginning with 11539 # underscore (_), so it is better to generate a list of symbols to export. 11540 always_export_symbols_CXX=yes 11541 if test "$aix_use_runtimelinking" = yes; then 11542 # Warning - without using the other runtime loading flags (-brtl), 11543 # -berok will link without error, but may produce a broken library. 11544 allow_undefined_flag_CXX='-berok' 11545 # Determine the default libpath from the value encoded in an empty executable. 11546 cat >conftest.$ac_ext <<_ACEOF 11547/* confdefs.h. */ 11548_ACEOF 11549cat confdefs.h >>conftest.$ac_ext 11550cat >>conftest.$ac_ext <<_ACEOF 11551/* end confdefs.h. */ 11552 11553int 11554main () 11555{ 11556 11557 ; 11558 return 0; 11559} 11560_ACEOF 11561rm -f conftest.$ac_objext conftest$ac_exeext 11562if { (ac_try="$ac_link" 11563case "(($ac_try" in 11564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11565 *) ac_try_echo=$ac_try;; 11566esac 11567eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11568$as_echo "$ac_try_echo") >&5 11569 (eval "$ac_link") 2>conftest.er1 11570 ac_status=$? 11571 grep -v '^ *+' conftest.er1 >conftest.err 11572 rm -f conftest.er1 11573 cat conftest.err >&5 11574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11575 (exit $ac_status); } && { 11576 test -z "$ac_cxx_werror_flag" || 11577 test ! -s conftest.err 11578 } && test -s conftest$ac_exeext && { 11579 test "$cross_compiling" = yes || 11580 $as_test_x conftest$ac_exeext 11581 }; then 11582 11583lt_aix_libpath_sed=' 11584 /Import File Strings/,/^$/ { 11585 /^0/ { 11586 s/^0 *\(.*\)$/\1/ 11587 p 11588 } 11589 }' 11590aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11591# Check for a 64-bit object if we didn't find anything. 11592if test -z "$aix_libpath"; then 11593 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11594fi 11595else 11596 $as_echo "$as_me: failed program was:" >&5 11597sed 's/^/| /' conftest.$ac_ext >&5 11598 11599 11600fi 11601 11602rm -rf conftest.dSYM 11603rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11604 conftest$ac_exeext conftest.$ac_ext 11605if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11606 11607 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11608 11609 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" 11610 else 11611 if test "$host_cpu" = ia64; then 11612 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11613 allow_undefined_flag_CXX="-z nodefs" 11614 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" 11615 else 11616 # Determine the default libpath from the value encoded in an empty executable. 11617 cat >conftest.$ac_ext <<_ACEOF 11618/* confdefs.h. */ 11619_ACEOF 11620cat confdefs.h >>conftest.$ac_ext 11621cat >>conftest.$ac_ext <<_ACEOF 11622/* end confdefs.h. */ 11623 11624int 11625main () 11626{ 11627 11628 ; 11629 return 0; 11630} 11631_ACEOF 11632rm -f conftest.$ac_objext conftest$ac_exeext 11633if { (ac_try="$ac_link" 11634case "(($ac_try" in 11635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11636 *) ac_try_echo=$ac_try;; 11637esac 11638eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11639$as_echo "$ac_try_echo") >&5 11640 (eval "$ac_link") 2>conftest.er1 11641 ac_status=$? 11642 grep -v '^ *+' conftest.er1 >conftest.err 11643 rm -f conftest.er1 11644 cat conftest.err >&5 11645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11646 (exit $ac_status); } && { 11647 test -z "$ac_cxx_werror_flag" || 11648 test ! -s conftest.err 11649 } && test -s conftest$ac_exeext && { 11650 test "$cross_compiling" = yes || 11651 $as_test_x conftest$ac_exeext 11652 }; then 11653 11654lt_aix_libpath_sed=' 11655 /Import File Strings/,/^$/ { 11656 /^0/ { 11657 s/^0 *\(.*\)$/\1/ 11658 p 11659 } 11660 }' 11661aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11662# Check for a 64-bit object if we didn't find anything. 11663if test -z "$aix_libpath"; then 11664 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11665fi 11666else 11667 $as_echo "$as_me: failed program was:" >&5 11668sed 's/^/| /' conftest.$ac_ext >&5 11669 11670 11671fi 11672 11673rm -rf conftest.dSYM 11674rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11675 conftest$ac_exeext conftest.$ac_ext 11676if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11677 11678 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11679 # Warning - without using the other run time loading flags, 11680 # -berok will link without error, but may produce a broken library. 11681 no_undefined_flag_CXX=' ${wl}-bernotok' 11682 allow_undefined_flag_CXX=' ${wl}-berok' 11683 # Exported symbols can be pulled into shared objects from archives 11684 whole_archive_flag_spec_CXX='$convenience' 11685 archive_cmds_need_lc_CXX=yes 11686 # This is similar to how AIX traditionally builds its shared libraries. 11687 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' 11688 fi 11689 fi 11690 ;; 11691 11692 beos*) 11693 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11694 allow_undefined_flag_CXX=unsupported 11695 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11696 # support --undefined. This deserves some investigation. FIXME 11697 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11698 else 11699 ld_shlibs_CXX=no 11700 fi 11701 ;; 11702 11703 chorus*) 11704 case $cc_basename in 11705 *) 11706 # FIXME: insert proper C++ library support 11707 ld_shlibs_CXX=no 11708 ;; 11709 esac 11710 ;; 11711 11712 cygwin* | mingw* | pw32*) 11713 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11714 # as there is no search path for DLLs. 11715 hardcode_libdir_flag_spec_CXX='-L$libdir' 11716 allow_undefined_flag_CXX=unsupported 11717 always_export_symbols_CXX=no 11718 enable_shared_with_static_runtimes_CXX=yes 11719 11720 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11721 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' 11722 # If the export-symbols file already is a .def file (1st line 11723 # is EXPORTS), use it as is; otherwise, prepend... 11724 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11725 cp $export_symbols $output_objdir/$soname.def; 11726 else 11727 echo EXPORTS > $output_objdir/$soname.def; 11728 cat $export_symbols >> $output_objdir/$soname.def; 11729 fi~ 11730 $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' 11731 else 11732 ld_shlibs_CXX=no 11733 fi 11734 ;; 11735 darwin* | rhapsody*) 11736 archive_cmds_need_lc_CXX=no 11737 hardcode_direct_CXX=no 11738 hardcode_automatic_CXX=yes 11739 hardcode_shlibpath_var_CXX=unsupported 11740 whole_archive_flag_spec_CXX='' 11741 link_all_deplibs_CXX=yes 11742 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 11743 if test "$GXX" = yes ; then 11744 output_verbose_link_cmd='echo' 11745 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}" 11746 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 11747 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}" 11748 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}" 11749 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 11750 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}" 11751 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}" 11752 fi 11753 else 11754 case $cc_basename in 11755 xlc*) 11756 output_verbose_link_cmd='echo' 11757 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' 11758 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11759 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11760 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}' 11761 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}' 11762 ;; 11763 *) 11764 ld_shlibs_CXX=no 11765 ;; 11766 esac 11767 fi 11768 ;; 11769 11770 dgux*) 11771 case $cc_basename in 11772 ec++*) 11773 # FIXME: insert proper C++ library support 11774 ld_shlibs_CXX=no 11775 ;; 11776 ghcx*) 11777 # Green Hills C++ Compiler 11778 # FIXME: insert proper C++ library support 11779 ld_shlibs_CXX=no 11780 ;; 11781 *) 11782 # FIXME: insert proper C++ library support 11783 ld_shlibs_CXX=no 11784 ;; 11785 esac 11786 ;; 11787 freebsd[12]*) 11788 # C++ shared libraries reported to be fairly broken before switch to ELF 11789 ld_shlibs_CXX=no 11790 ;; 11791 freebsd-elf*) 11792 archive_cmds_need_lc_CXX=no 11793 ;; 11794 freebsd* | dragonfly*) 11795 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11796 # conventions 11797 ld_shlibs_CXX=yes 11798 ;; 11799 gnu*) 11800 ;; 11801 hpux9*) 11802 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11803 hardcode_libdir_separator_CXX=: 11804 export_dynamic_flag_spec_CXX='${wl}-E' 11805 hardcode_direct_CXX=yes 11806 hardcode_minus_L_CXX=yes # Not in the search PATH, 11807 # but as the default 11808 # location of the library. 11809 11810 case $cc_basename in 11811 CC*) 11812 # FIXME: insert proper C++ library support 11813 ld_shlibs_CXX=no 11814 ;; 11815 aCC*) 11816 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' 11817 # Commands to make compiler produce verbose output that lists 11818 # what "hidden" libraries, object files and flags are used when 11819 # linking a shared library. 11820 # 11821 # There doesn't appear to be a way to prevent this compiler from 11822 # explicitly linking system object files so we need to strip them 11823 # from the output so that they don't get included in the library 11824 # dependencies. 11825 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' 11826 ;; 11827 *) 11828 if test "$GXX" = yes; then 11829 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' 11830 else 11831 # FIXME: insert proper C++ library support 11832 ld_shlibs_CXX=no 11833 fi 11834 ;; 11835 esac 11836 ;; 11837 hpux10*|hpux11*) 11838 if test $with_gnu_ld = no; then 11839 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11840 hardcode_libdir_separator_CXX=: 11841 11842 case $host_cpu in 11843 hppa*64*|ia64*) ;; 11844 *) 11845 export_dynamic_flag_spec_CXX='${wl}-E' 11846 ;; 11847 esac 11848 fi 11849 case $host_cpu in 11850 hppa*64*|ia64*) 11851 hardcode_direct_CXX=no 11852 hardcode_shlibpath_var_CXX=no 11853 ;; 11854 *) 11855 hardcode_direct_CXX=yes 11856 hardcode_minus_L_CXX=yes # Not in the search PATH, 11857 # but as the default 11858 # location of the library. 11859 ;; 11860 esac 11861 11862 case $cc_basename in 11863 CC*) 11864 # FIXME: insert proper C++ library support 11865 ld_shlibs_CXX=no 11866 ;; 11867 aCC*) 11868 case $host_cpu in 11869 hppa*64*) 11870 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11871 ;; 11872 ia64*) 11873 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11874 ;; 11875 *) 11876 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11877 ;; 11878 esac 11879 # Commands to make compiler produce verbose output that lists 11880 # what "hidden" libraries, object files and flags are used when 11881 # linking a shared library. 11882 # 11883 # There doesn't appear to be a way to prevent this compiler from 11884 # explicitly linking system object files so we need to strip them 11885 # from the output so that they don't get included in the library 11886 # dependencies. 11887 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' 11888 ;; 11889 *) 11890 if test "$GXX" = yes; then 11891 if test $with_gnu_ld = no; then 11892 case $host_cpu in 11893 hppa*64*) 11894 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11895 ;; 11896 ia64*) 11897 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11898 ;; 11899 *) 11900 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' 11901 ;; 11902 esac 11903 fi 11904 else 11905 # FIXME: insert proper C++ library support 11906 ld_shlibs_CXX=no 11907 fi 11908 ;; 11909 esac 11910 ;; 11911 interix[3-9]*) 11912 hardcode_direct_CXX=no 11913 hardcode_shlibpath_var_CXX=no 11914 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11915 export_dynamic_flag_spec_CXX='${wl}-E' 11916 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11917 # Instead, shared libraries are loaded at an image base (0x10000000 by 11918 # default) and relocated if they conflict, which is a slow very memory 11919 # consuming and fragmenting process. To avoid this, we pick a random, 11920 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11921 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11922 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' 11923 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' 11924 ;; 11925 irix5* | irix6*) 11926 case $cc_basename in 11927 CC*) 11928 # SGI C++ 11929 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' 11930 11931 # Archives containing C++ object files must be created using 11932 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11933 # necessary to make sure instantiated templates are included 11934 # in the archive. 11935 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11936 ;; 11937 *) 11938 if test "$GXX" = yes; then 11939 if test "$with_gnu_ld" = no; then 11940 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' 11941 else 11942 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' 11943 fi 11944 fi 11945 link_all_deplibs_CXX=yes 11946 ;; 11947 esac 11948 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11949 hardcode_libdir_separator_CXX=: 11950 ;; 11951 linux* | k*bsd*-gnu) 11952 case $cc_basename in 11953 KCC*) 11954 # Kuck and Associates, Inc. (KAI) C++ Compiler 11955 11956 # KCC will only create a shared library if the output file 11957 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11958 # to its proper name (with version) after linking. 11959 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' 11960 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' 11961 # Commands to make compiler produce verbose output that lists 11962 # what "hidden" libraries, object files and flags are used when 11963 # linking a shared library. 11964 # 11965 # There doesn't appear to be a way to prevent this compiler from 11966 # explicitly linking system object files so we need to strip them 11967 # from the output so that they don't get included in the library 11968 # dependencies. 11969 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' 11970 11971 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11972 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11973 11974 # Archives containing C++ object files must be created using 11975 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11976 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11977 ;; 11978 icpc*) 11979 # Intel C++ 11980 with_gnu_ld=yes 11981 # version 8.0 and above of icpc choke on multiply defined symbols 11982 # if we add $predep_objects and $postdep_objects, however 7.1 and 11983 # earlier do not add the objects themselves. 11984 case `$CC -V 2>&1` in 11985 *"Version 7."*) 11986 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11987 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' 11988 ;; 11989 *) # Version 8.0 or newer 11990 tmp_idyn= 11991 case $host_cpu in 11992 ia64*) tmp_idyn=' -i_dynamic';; 11993 esac 11994 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11995 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' 11996 ;; 11997 esac 11998 archive_cmds_need_lc_CXX=no 11999 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12000 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12001 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12002 ;; 12003 pgCC* | pgcpp*) 12004 # Portland Group C++ compiler 12005 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12006 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' 12007 12008 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12009 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12010 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' 12011 ;; 12012 cxx*) 12013 # Compaq C++ 12014 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12015 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' 12016 12017 runpath_var=LD_RUN_PATH 12018 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12019 hardcode_libdir_separator_CXX=: 12020 12021 # Commands to make compiler produce verbose output that lists 12022 # what "hidden" libraries, object files and flags are used when 12023 # linking a shared library. 12024 # 12025 # There doesn't appear to be a way to prevent this compiler from 12026 # explicitly linking system object files so we need to strip them 12027 # from the output so that they don't get included in the library 12028 # dependencies. 12029 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' 12030 ;; 12031 *) 12032 case `$CC -V 2>&1 | sed 5q` in 12033 *Sun\ C*) 12034 # Sun C++ 5.9 12035 no_undefined_flag_CXX=' -zdefs' 12036 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12037 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' 12038 hardcode_libdir_flag_spec_CXX='-R$libdir' 12039 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' 12040 12041 # Not sure whether something based on 12042 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 12043 # would be better. 12044 output_verbose_link_cmd='echo' 12045 12046 # Archives containing C++ object files must be created using 12047 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12048 # necessary to make sure instantiated templates are included 12049 # in the archive. 12050 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12051 ;; 12052 esac 12053 ;; 12054 esac 12055 ;; 12056 lynxos*) 12057 # FIXME: insert proper C++ library support 12058 ld_shlibs_CXX=no 12059 ;; 12060 m88k*) 12061 # FIXME: insert proper C++ library support 12062 ld_shlibs_CXX=no 12063 ;; 12064 mvs*) 12065 case $cc_basename in 12066 cxx*) 12067 # FIXME: insert proper C++ library support 12068 ld_shlibs_CXX=no 12069 ;; 12070 *) 12071 # FIXME: insert proper C++ library support 12072 ld_shlibs_CXX=no 12073 ;; 12074 esac 12075 ;; 12076 netbsd*) 12077 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12078 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12079 wlarc= 12080 hardcode_libdir_flag_spec_CXX='-R$libdir' 12081 hardcode_direct_CXX=yes 12082 hardcode_shlibpath_var_CXX=no 12083 fi 12084 # Workaround some broken pre-1.5 toolchains 12085 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12086 ;; 12087 openbsd2*) 12088 # C++ shared libraries are fairly broken 12089 ld_shlibs_CXX=no 12090 ;; 12091 openbsd*) 12092 if test -f /usr/libexec/ld.so; then 12093 hardcode_direct_CXX=yes 12094 hardcode_shlibpath_var_CXX=no 12095 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12096 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12097 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12098 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12099 export_dynamic_flag_spec_CXX='${wl}-E' 12100 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12101 fi 12102 output_verbose_link_cmd='echo' 12103 else 12104 ld_shlibs_CXX=no 12105 fi 12106 ;; 12107 osf3*) 12108 case $cc_basename in 12109 KCC*) 12110 # Kuck and Associates, Inc. (KAI) C++ Compiler 12111 12112 # KCC will only create a shared library if the output file 12113 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12114 # to its proper name (with version) after linking. 12115 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' 12116 12117 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12118 hardcode_libdir_separator_CXX=: 12119 12120 # Archives containing C++ object files must be created using 12121 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12122 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12123 12124 ;; 12125 RCC*) 12126 # Rational C++ 2.4.1 12127 # FIXME: insert proper C++ library support 12128 ld_shlibs_CXX=no 12129 ;; 12130 cxx*) 12131 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12132 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' 12133 12134 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12135 hardcode_libdir_separator_CXX=: 12136 12137 # Commands to make compiler produce verbose output that lists 12138 # what "hidden" libraries, object files and flags are used when 12139 # linking a shared library. 12140 # 12141 # There doesn't appear to be a way to prevent this compiler from 12142 # explicitly linking system object files so we need to strip them 12143 # from the output so that they don't get included in the library 12144 # dependencies. 12145 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' 12146 ;; 12147 *) 12148 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12149 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12150 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' 12151 12152 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12153 hardcode_libdir_separator_CXX=: 12154 12155 # Commands to make compiler produce verbose output that lists 12156 # what "hidden" libraries, object files and flags are used when 12157 # linking a shared library. 12158 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12159 12160 else 12161 # FIXME: insert proper C++ library support 12162 ld_shlibs_CXX=no 12163 fi 12164 ;; 12165 esac 12166 ;; 12167 osf4* | osf5*) 12168 case $cc_basename in 12169 KCC*) 12170 # Kuck and Associates, Inc. (KAI) C++ Compiler 12171 12172 # KCC will only create a shared library if the output file 12173 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12174 # to its proper name (with version) after linking. 12175 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' 12176 12177 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12178 hardcode_libdir_separator_CXX=: 12179 12180 # Archives containing C++ object files must be created using 12181 # the KAI C++ compiler. 12182 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 12183 ;; 12184 RCC*) 12185 # Rational C++ 2.4.1 12186 # FIXME: insert proper C++ library support 12187 ld_shlibs_CXX=no 12188 ;; 12189 cxx*) 12190 allow_undefined_flag_CXX=' -expect_unresolved \*' 12191 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' 12192 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12193 echo "-hidden">> $lib.exp~ 12194 $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~ 12195 $rm $lib.exp' 12196 12197 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12198 hardcode_libdir_separator_CXX=: 12199 12200 # Commands to make compiler produce verbose output that lists 12201 # what "hidden" libraries, object files and flags are used when 12202 # linking a shared library. 12203 # 12204 # There doesn't appear to be a way to prevent this compiler from 12205 # explicitly linking system object files so we need to strip them 12206 # from the output so that they don't get included in the library 12207 # dependencies. 12208 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' 12209 ;; 12210 *) 12211 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12212 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12213 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' 12214 12215 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12216 hardcode_libdir_separator_CXX=: 12217 12218 # Commands to make compiler produce verbose output that lists 12219 # what "hidden" libraries, object files and flags are used when 12220 # linking a shared library. 12221 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12222 12223 else 12224 # FIXME: insert proper C++ library support 12225 ld_shlibs_CXX=no 12226 fi 12227 ;; 12228 esac 12229 ;; 12230 psos*) 12231 # FIXME: insert proper C++ library support 12232 ld_shlibs_CXX=no 12233 ;; 12234 sunos4*) 12235 case $cc_basename in 12236 CC*) 12237 # Sun C++ 4.x 12238 # FIXME: insert proper C++ library support 12239 ld_shlibs_CXX=no 12240 ;; 12241 lcc*) 12242 # Lucid 12243 # FIXME: insert proper C++ library support 12244 ld_shlibs_CXX=no 12245 ;; 12246 *) 12247 # FIXME: insert proper C++ library support 12248 ld_shlibs_CXX=no 12249 ;; 12250 esac 12251 ;; 12252 solaris*) 12253 case $cc_basename in 12254 CC*) 12255 # Sun C++ 4.2, 5.x and Centerline C++ 12256 archive_cmds_need_lc_CXX=yes 12257 no_undefined_flag_CXX=' -zdefs' 12258 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12259 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12260 $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' 12261 12262 hardcode_libdir_flag_spec_CXX='-R$libdir' 12263 hardcode_shlibpath_var_CXX=no 12264 case $host_os in 12265 solaris2.[0-5] | solaris2.[0-5].*) ;; 12266 *) 12267 # The compiler driver will combine and reorder linker options, 12268 # but understands `-z linker_flag'. 12269 # Supported since Solaris 2.6 (maybe 2.5.1?) 12270 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 12271 ;; 12272 esac 12273 link_all_deplibs_CXX=yes 12274 12275 output_verbose_link_cmd='echo' 12276 12277 # Archives containing C++ object files must be created using 12278 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12279 # necessary to make sure instantiated templates are included 12280 # in the archive. 12281 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12282 ;; 12283 gcx*) 12284 # Green Hills C++ Compiler 12285 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12286 12287 # The C++ compiler must be used to create the archive. 12288 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12289 ;; 12290 *) 12291 # GNU C++ compiler with Solaris linker 12292 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12293 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12294 if $CC --version | grep -v '^2\.7' > /dev/null; then 12295 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12296 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12297 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12298 12299 # Commands to make compiler produce verbose output that lists 12300 # what "hidden" libraries, object files and flags are used when 12301 # linking a shared library. 12302 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12303 else 12304 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12305 # platform. 12306 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12307 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12308 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 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 -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12314 fi 12315 12316 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12317 case $host_os in 12318 solaris2.[0-5] | solaris2.[0-5].*) ;; 12319 *) 12320 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12321 ;; 12322 esac 12323 fi 12324 ;; 12325 esac 12326 ;; 12327 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12328 no_undefined_flag_CXX='${wl}-z,text' 12329 archive_cmds_need_lc_CXX=no 12330 hardcode_shlibpath_var_CXX=no 12331 runpath_var='LD_RUN_PATH' 12332 12333 case $cc_basename in 12334 CC*) 12335 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12336 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12337 ;; 12338 *) 12339 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12340 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12341 ;; 12342 esac 12343 ;; 12344 sysv5* | sco3.2v5* | sco5v6*) 12345 # Note: We can NOT use -z defs as we might desire, because we do not 12346 # link with -lc, and that would cause any symbols used from libc to 12347 # always be unresolved, which means just about no library would 12348 # ever link correctly. If we're not using GNU ld we use -z text 12349 # though, which does catch some bad symbols but isn't as heavy-handed 12350 # as -z defs. 12351 # For security reasons, it is highly recommended that you always 12352 # use absolute paths for naming shared libraries, and exclude the 12353 # DT_RUNPATH tag from executables and libraries. But doing so 12354 # requires that you compile everything twice, which is a pain. 12355 # So that behaviour is only enabled if SCOABSPATH is set to a 12356 # non-empty value in the environment. Most likely only useful for 12357 # creating official distributions of packages. 12358 # This is a hack until libtool officially supports absolute path 12359 # names for shared libraries. 12360 no_undefined_flag_CXX='${wl}-z,text' 12361 allow_undefined_flag_CXX='${wl}-z,nodefs' 12362 archive_cmds_need_lc_CXX=no 12363 hardcode_shlibpath_var_CXX=no 12364 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 12365 hardcode_libdir_separator_CXX=':' 12366 link_all_deplibs_CXX=yes 12367 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12368 runpath_var='LD_RUN_PATH' 12369 12370 case $cc_basename in 12371 CC*) 12372 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12373 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12374 ;; 12375 *) 12376 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12377 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12378 ;; 12379 esac 12380 ;; 12381 tandem*) 12382 case $cc_basename in 12383 NCC*) 12384 # NonStop-UX NCC 3.20 12385 # FIXME: insert proper C++ library support 12386 ld_shlibs_CXX=no 12387 ;; 12388 *) 12389 # FIXME: insert proper C++ library support 12390 ld_shlibs_CXX=no 12391 ;; 12392 esac 12393 ;; 12394 vxworks*) 12395 # FIXME: insert proper C++ library support 12396 ld_shlibs_CXX=no 12397 ;; 12398 *) 12399 # FIXME: insert proper C++ library support 12400 ld_shlibs_CXX=no 12401 ;; 12402esac 12403{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12404$as_echo "$ld_shlibs_CXX" >&6; } 12405test "$ld_shlibs_CXX" = no && can_build_shared=no 12406 12407GCC_CXX="$GXX" 12408LD_CXX="$LD" 12409 12410cat > conftest.$ac_ext <<EOF 12411class Foo 12412{ 12413public: 12414 Foo (void) { a = 0; } 12415private: 12416 int a; 12417}; 12418EOF 12419 12420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12421 (eval $ac_compile) 2>&5 12422 ac_status=$? 12423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12424 (exit $ac_status); }; then 12425 # Parse the compiler output and extract the necessary 12426 # objects, libraries and library flags. 12427 12428 # Sentinel used to keep track of whether or not we are before 12429 # the conftest object file. 12430 pre_test_object_deps_done=no 12431 12432 # The `*' in the case matches for architectures that use `case' in 12433 # $output_verbose_cmd can trigger glob expansion during the loop 12434 # eval without this substitution. 12435 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 12436 12437 for p in `eval $output_verbose_link_cmd`; do 12438 case $p in 12439 12440 -L* | -R* | -l*) 12441 # Some compilers place space between "-{L,R}" and the path. 12442 # Remove the space. 12443 if test $p = "-L" \ 12444 || test $p = "-R"; then 12445 prev=$p 12446 continue 12447 else 12448 prev= 12449 fi 12450 12451 if test "$pre_test_object_deps_done" = no; then 12452 case $p in 12453 -L* | -R*) 12454 # Internal compiler library paths should come after those 12455 # provided the user. The postdeps already come after the 12456 # user supplied libs so there is no need to process them. 12457 if test -z "$compiler_lib_search_path_CXX"; then 12458 compiler_lib_search_path_CXX="${prev}${p}" 12459 else 12460 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12461 fi 12462 ;; 12463 # The "-l" case would never come before the object being 12464 # linked, so don't bother handling this case. 12465 esac 12466 else 12467 if test -z "$postdeps_CXX"; then 12468 postdeps_CXX="${prev}${p}" 12469 else 12470 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12471 fi 12472 fi 12473 ;; 12474 12475 *.$objext) 12476 # This assumes that the test object file only shows up 12477 # once in the compiler output. 12478 if test "$p" = "conftest.$objext"; then 12479 pre_test_object_deps_done=yes 12480 continue 12481 fi 12482 12483 if test "$pre_test_object_deps_done" = no; then 12484 if test -z "$predep_objects_CXX"; then 12485 predep_objects_CXX="$p" 12486 else 12487 predep_objects_CXX="$predep_objects_CXX $p" 12488 fi 12489 else 12490 if test -z "$postdep_objects_CXX"; then 12491 postdep_objects_CXX="$p" 12492 else 12493 postdep_objects_CXX="$postdep_objects_CXX $p" 12494 fi 12495 fi 12496 ;; 12497 12498 *) ;; # Ignore the rest. 12499 12500 esac 12501 done 12502 12503 # Clean up. 12504 rm -f a.out a.exe 12505else 12506 echo "libtool.m4: error: problem compiling CXX test program" 12507fi 12508 12509$rm -f confest.$objext 12510 12511compiler_lib_search_dirs_CXX= 12512if test -n "$compiler_lib_search_path_CXX"; then 12513 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 12514fi 12515 12516# PORTME: override above test on systems where it is broken 12517case $host_os in 12518interix[3-9]*) 12519 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12520 # hack all around it, let's just trust "g++" to DTRT. 12521 predep_objects_CXX= 12522 postdep_objects_CXX= 12523 postdeps_CXX= 12524 ;; 12525 12526linux*) 12527 case `$CC -V 2>&1 | sed 5q` in 12528 *Sun\ C*) 12529 # Sun C++ 5.9 12530 # 12531 # The more standards-conforming stlport4 library is 12532 # incompatible with the Cstd library. Avoid specifying 12533 # it if it's in CXXFLAGS. Ignore libCrun as 12534 # -library=stlport4 depends on it. 12535 case " $CXX $CXXFLAGS " in 12536 *" -library=stlport4 "*) 12537 solaris_use_stlport4=yes 12538 ;; 12539 esac 12540 if test "$solaris_use_stlport4" != yes; then 12541 postdeps_CXX='-library=Cstd -library=Crun' 12542 fi 12543 ;; 12544 esac 12545 ;; 12546 12547solaris*) 12548 case $cc_basename in 12549 CC*) 12550 # The more standards-conforming stlport4 library is 12551 # incompatible with the Cstd library. Avoid specifying 12552 # it if it's in CXXFLAGS. Ignore libCrun as 12553 # -library=stlport4 depends on it. 12554 case " $CXX $CXXFLAGS " in 12555 *" -library=stlport4 "*) 12556 solaris_use_stlport4=yes 12557 ;; 12558 esac 12559 12560 # Adding this requires a known-good setup of shared libraries for 12561 # Sun compiler versions before 5.6, else PIC objects from an old 12562 # archive will be linked into the output, leading to subtle bugs. 12563 if test "$solaris_use_stlport4" != yes; then 12564 postdeps_CXX='-library=Cstd -library=Crun' 12565 fi 12566 ;; 12567 esac 12568 ;; 12569esac 12570 12571case " $postdeps_CXX " in 12572*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12573esac 12574 12575lt_prog_compiler_wl_CXX= 12576lt_prog_compiler_pic_CXX= 12577lt_prog_compiler_static_CXX= 12578 12579{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12580$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 12581 12582 # C++ specific cases for pic, static, wl, etc. 12583 if test "$GXX" = yes; then 12584 lt_prog_compiler_wl_CXX='-Wl,' 12585 lt_prog_compiler_static_CXX='-static' 12586 12587 case $host_os in 12588 aix*) 12589 # All AIX code is PIC. 12590 if test "$host_cpu" = ia64; then 12591 # AIX 5 now supports IA64 processor 12592 lt_prog_compiler_static_CXX='-Bstatic' 12593 fi 12594 ;; 12595 amigaos*) 12596 # FIXME: we need at least 68020 code to build shared libraries, but 12597 # adding the `-m68020' flag to GCC prevents building anything better, 12598 # like `-m68040'. 12599 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12600 ;; 12601 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12602 # PIC is the default for these OSes. 12603 ;; 12604 mingw* | cygwin* | os2* | pw32*) 12605 # This hack is so that the source file can tell whether it is being 12606 # built for inclusion in a dll (and should export symbols for example). 12607 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12608 # (--disable-auto-import) libraries 12609 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12610 ;; 12611 darwin* | rhapsody*) 12612 # PIC is the default on this platform 12613 # Common symbols not allowed in MH_DYLIB files 12614 lt_prog_compiler_pic_CXX='-fno-common' 12615 ;; 12616 *djgpp*) 12617 # DJGPP does not support shared libraries at all 12618 lt_prog_compiler_pic_CXX= 12619 ;; 12620 interix[3-9]*) 12621 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12622 # Instead, we relocate shared libraries at runtime. 12623 ;; 12624 sysv4*MP*) 12625 if test -d /usr/nec; then 12626 lt_prog_compiler_pic_CXX=-Kconform_pic 12627 fi 12628 ;; 12629 hpux*) 12630 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12631 # not for PA HP-UX. 12632 case $host_cpu in 12633 hppa*64*|ia64*) 12634 ;; 12635 *) 12636 lt_prog_compiler_pic_CXX='-fPIC' 12637 ;; 12638 esac 12639 ;; 12640 *) 12641 lt_prog_compiler_pic_CXX='-fPIC' 12642 ;; 12643 esac 12644 else 12645 case $host_os in 12646 aix[4-9]*) 12647 # All AIX code is PIC. 12648 if test "$host_cpu" = ia64; then 12649 # AIX 5 now supports IA64 processor 12650 lt_prog_compiler_static_CXX='-Bstatic' 12651 else 12652 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12653 fi 12654 ;; 12655 chorus*) 12656 case $cc_basename in 12657 cxch68*) 12658 # Green Hills C++ Compiler 12659 # _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" 12660 ;; 12661 esac 12662 ;; 12663 darwin*) 12664 # PIC is the default on this platform 12665 # Common symbols not allowed in MH_DYLIB files 12666 case $cc_basename in 12667 xlc*) 12668 lt_prog_compiler_pic_CXX='-qnocommon' 12669 lt_prog_compiler_wl_CXX='-Wl,' 12670 ;; 12671 esac 12672 ;; 12673 dgux*) 12674 case $cc_basename in 12675 ec++*) 12676 lt_prog_compiler_pic_CXX='-KPIC' 12677 ;; 12678 ghcx*) 12679 # Green Hills C++ Compiler 12680 lt_prog_compiler_pic_CXX='-pic' 12681 ;; 12682 *) 12683 ;; 12684 esac 12685 ;; 12686 freebsd* | dragonfly*) 12687 # FreeBSD uses GNU C++ 12688 ;; 12689 hpux9* | hpux10* | hpux11*) 12690 case $cc_basename in 12691 CC*) 12692 lt_prog_compiler_wl_CXX='-Wl,' 12693 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12694 if test "$host_cpu" != ia64; then 12695 lt_prog_compiler_pic_CXX='+Z' 12696 fi 12697 ;; 12698 aCC*) 12699 lt_prog_compiler_wl_CXX='-Wl,' 12700 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12701 case $host_cpu in 12702 hppa*64*|ia64*) 12703 # +Z the default 12704 ;; 12705 *) 12706 lt_prog_compiler_pic_CXX='+Z' 12707 ;; 12708 esac 12709 ;; 12710 *) 12711 ;; 12712 esac 12713 ;; 12714 interix*) 12715 # This is c89, which is MS Visual C++ (no shared libs) 12716 # Anyone wants to do a port? 12717 ;; 12718 irix5* | irix6* | nonstopux*) 12719 case $cc_basename in 12720 CC*) 12721 lt_prog_compiler_wl_CXX='-Wl,' 12722 lt_prog_compiler_static_CXX='-non_shared' 12723 # CC pic flag -KPIC is the default. 12724 ;; 12725 *) 12726 ;; 12727 esac 12728 ;; 12729 linux* | k*bsd*-gnu) 12730 case $cc_basename in 12731 KCC*) 12732 # KAI C++ Compiler 12733 lt_prog_compiler_wl_CXX='--backend -Wl,' 12734 lt_prog_compiler_pic_CXX='-fPIC' 12735 ;; 12736 icpc* | ecpc*) 12737 # Intel C++ 12738 lt_prog_compiler_wl_CXX='-Wl,' 12739 lt_prog_compiler_pic_CXX='-KPIC' 12740 lt_prog_compiler_static_CXX='-static' 12741 ;; 12742 pgCC* | pgcpp*) 12743 # Portland Group C++ compiler. 12744 lt_prog_compiler_wl_CXX='-Wl,' 12745 lt_prog_compiler_pic_CXX='-fpic' 12746 lt_prog_compiler_static_CXX='-Bstatic' 12747 ;; 12748 cxx*) 12749 # Compaq C++ 12750 # Make sure the PIC flag is empty. It appears that all Alpha 12751 # Linux and Compaq Tru64 Unix objects are PIC. 12752 lt_prog_compiler_pic_CXX= 12753 lt_prog_compiler_static_CXX='-non_shared' 12754 ;; 12755 *) 12756 case `$CC -V 2>&1 | sed 5q` in 12757 *Sun\ C*) 12758 # Sun C++ 5.9 12759 lt_prog_compiler_pic_CXX='-KPIC' 12760 lt_prog_compiler_static_CXX='-Bstatic' 12761 lt_prog_compiler_wl_CXX='-Qoption ld ' 12762 ;; 12763 esac 12764 ;; 12765 esac 12766 ;; 12767 lynxos*) 12768 ;; 12769 m88k*) 12770 ;; 12771 mvs*) 12772 case $cc_basename in 12773 cxx*) 12774 lt_prog_compiler_pic_CXX='-W c,exportall' 12775 ;; 12776 *) 12777 ;; 12778 esac 12779 ;; 12780 netbsd*) 12781 ;; 12782 osf3* | osf4* | osf5*) 12783 case $cc_basename in 12784 KCC*) 12785 lt_prog_compiler_wl_CXX='--backend -Wl,' 12786 ;; 12787 RCC*) 12788 # Rational C++ 2.4.1 12789 lt_prog_compiler_pic_CXX='-pic' 12790 ;; 12791 cxx*) 12792 # Digital/Compaq C++ 12793 lt_prog_compiler_wl_CXX='-Wl,' 12794 # Make sure the PIC flag is empty. It appears that all Alpha 12795 # Linux and Compaq Tru64 Unix objects are PIC. 12796 lt_prog_compiler_pic_CXX= 12797 lt_prog_compiler_static_CXX='-non_shared' 12798 ;; 12799 *) 12800 ;; 12801 esac 12802 ;; 12803 psos*) 12804 ;; 12805 solaris*) 12806 case $cc_basename in 12807 CC*) 12808 # Sun C++ 4.2, 5.x and Centerline C++ 12809 lt_prog_compiler_pic_CXX='-KPIC' 12810 lt_prog_compiler_static_CXX='-Bstatic' 12811 lt_prog_compiler_wl_CXX='-Qoption ld ' 12812 ;; 12813 gcx*) 12814 # Green Hills C++ Compiler 12815 lt_prog_compiler_pic_CXX='-PIC' 12816 ;; 12817 *) 12818 ;; 12819 esac 12820 ;; 12821 sunos4*) 12822 case $cc_basename in 12823 CC*) 12824 # Sun C++ 4.x 12825 lt_prog_compiler_pic_CXX='-pic' 12826 lt_prog_compiler_static_CXX='-Bstatic' 12827 ;; 12828 lcc*) 12829 # Lucid 12830 lt_prog_compiler_pic_CXX='-pic' 12831 ;; 12832 *) 12833 ;; 12834 esac 12835 ;; 12836 tandem*) 12837 case $cc_basename in 12838 NCC*) 12839 # NonStop-UX NCC 3.20 12840 lt_prog_compiler_pic_CXX='-KPIC' 12841 ;; 12842 *) 12843 ;; 12844 esac 12845 ;; 12846 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12847 case $cc_basename in 12848 CC*) 12849 lt_prog_compiler_wl_CXX='-Wl,' 12850 lt_prog_compiler_pic_CXX='-KPIC' 12851 lt_prog_compiler_static_CXX='-Bstatic' 12852 ;; 12853 esac 12854 ;; 12855 vxworks*) 12856 ;; 12857 *) 12858 lt_prog_compiler_can_build_shared_CXX=no 12859 ;; 12860 esac 12861 fi 12862 12863{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12864$as_echo "$lt_prog_compiler_pic_CXX" >&6; } 12865 12866# 12867# Check to make sure the PIC flag actually works. 12868# 12869if test -n "$lt_prog_compiler_pic_CXX"; then 12870 12871{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12872$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 12873if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then 12874 $as_echo_n "(cached) " >&6 12875else 12876 lt_cv_prog_compiler_pic_works_CXX=no 12877 ac_outfile=conftest.$ac_objext 12878 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12879 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12880 # Insert the option either (1) after the last *FLAGS variable, or 12881 # (2) before a word containing "conftest.", or (3) at the end. 12882 # Note that $ac_compile itself does not contain backslashes and begins 12883 # with a dollar sign (not a hyphen), so the echo should work correctly. 12884 # The option is referenced via a variable to avoid confusing sed. 12885 lt_compile=`echo "$ac_compile" | $SED \ 12886 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12887 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12888 -e 's:$: $lt_compiler_flag:'` 12889 (eval echo "\"\$as_me:12889: $lt_compile\"" >&5) 12890 (eval "$lt_compile" 2>conftest.err) 12891 ac_status=$? 12892 cat conftest.err >&5 12893 echo "$as_me:12893: \$? = $ac_status" >&5 12894 if (exit $ac_status) && test -s "$ac_outfile"; then 12895 # The compiler can only warn and ignore the option if not recognized 12896 # So say no if there are warnings other than the usual output. 12897 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12898 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12899 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12900 lt_cv_prog_compiler_pic_works_CXX=yes 12901 fi 12902 fi 12903 $rm conftest* 12904 12905fi 12906{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 12907$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 12908 12909if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 12910 case $lt_prog_compiler_pic_CXX in 12911 "" | " "*) ;; 12912 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12913 esac 12914else 12915 lt_prog_compiler_pic_CXX= 12916 lt_prog_compiler_can_build_shared_CXX=no 12917fi 12918 12919fi 12920case $host_os in 12921 # For platforms which do not support PIC, -DPIC is meaningless: 12922 *djgpp*) 12923 lt_prog_compiler_pic_CXX= 12924 ;; 12925 *) 12926 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12927 ;; 12928esac 12929 12930# 12931# Check to make sure the static flag actually works. 12932# 12933wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12934{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12935$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 12936if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then 12937 $as_echo_n "(cached) " >&6 12938else 12939 lt_cv_prog_compiler_static_works_CXX=no 12940 save_LDFLAGS="$LDFLAGS" 12941 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12942 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12943 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12944 # The linker can only warn and ignore the option if not recognized 12945 # So say no if there are warnings 12946 if test -s conftest.err; then 12947 # Append any errors to the config.log. 12948 cat conftest.err 1>&5 12949 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12950 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12951 if diff conftest.exp conftest.er2 >/dev/null; then 12952 lt_cv_prog_compiler_static_works_CXX=yes 12953 fi 12954 else 12955 lt_cv_prog_compiler_static_works_CXX=yes 12956 fi 12957 fi 12958 $rm -r conftest* 12959 LDFLAGS="$save_LDFLAGS" 12960 12961fi 12962{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5 12963$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 12964 12965if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 12966 : 12967else 12968 lt_prog_compiler_static_CXX= 12969fi 12970 12971 12972{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12973$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 12974if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12975 $as_echo_n "(cached) " >&6 12976else 12977 lt_cv_prog_compiler_c_o_CXX=no 12978 $rm -r conftest 2>/dev/null 12979 mkdir conftest 12980 cd conftest 12981 mkdir out 12982 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12983 12984 lt_compiler_flag="-o out/conftest2.$ac_objext" 12985 # Insert the option either (1) after the last *FLAGS variable, or 12986 # (2) before a word containing "conftest.", or (3) at the end. 12987 # Note that $ac_compile itself does not contain backslashes and begins 12988 # with a dollar sign (not a hyphen), so the echo should work correctly. 12989 lt_compile=`echo "$ac_compile" | $SED \ 12990 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12991 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12992 -e 's:$: $lt_compiler_flag:'` 12993 (eval echo "\"\$as_me:12993: $lt_compile\"" >&5) 12994 (eval "$lt_compile" 2>out/conftest.err) 12995 ac_status=$? 12996 cat out/conftest.err >&5 12997 echo "$as_me:12997: \$? = $ac_status" >&5 12998 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12999 then 13000 # The compiler can only warn and ignore the option if not recognized 13001 # So say no if there are warnings 13002 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13003 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13004 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13005 lt_cv_prog_compiler_c_o_CXX=yes 13006 fi 13007 fi 13008 chmod u+w . 2>&5 13009 $rm conftest* 13010 # SGI C++ compiler will create directory out/ii_files/ for 13011 # template instantiation 13012 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13013 $rm out/* && rmdir out 13014 cd .. 13015 rmdir conftest 13016 $rm conftest* 13017 13018fi 13019{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13020$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 13021 13022 13023hard_links="nottested" 13024if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 13025 # do not overwrite the value of need_locks provided by the user 13026 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13027$as_echo_n "checking if we can lock with hard links... " >&6; } 13028 hard_links=yes 13029 $rm conftest* 13030 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13031 touch conftest.a 13032 ln conftest.a conftest.b 2>&5 || hard_links=no 13033 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13034 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 13035$as_echo "$hard_links" >&6; } 13036 if test "$hard_links" = no; then 13037 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13038$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13039 need_locks=warn 13040 fi 13041else 13042 need_locks=no 13043fi 13044 13045{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13046$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13047 13048 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13049 case $host_os in 13050 aix[4-9]*) 13051 # If we're using GNU nm, then we don't want the "-C" option. 13052 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13053 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13054 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' 13055 else 13056 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' 13057 fi 13058 ;; 13059 pw32*) 13060 export_symbols_cmds_CXX="$ltdll_cmds" 13061 ;; 13062 cygwin* | mingw*) 13063 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' 13064 ;; 13065 *) 13066 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13067 ;; 13068 esac 13069 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 13070 13071{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 13072$as_echo "$ld_shlibs_CXX" >&6; } 13073test "$ld_shlibs_CXX" = no && can_build_shared=no 13074 13075# 13076# Do we need to explicitly link libc? 13077# 13078case "x$archive_cmds_need_lc_CXX" in 13079x|xyes) 13080 # Assume -lc should be added 13081 archive_cmds_need_lc_CXX=yes 13082 13083 if test "$enable_shared" = yes && test "$GCC" = yes; then 13084 case $archive_cmds_CXX in 13085 *'~'*) 13086 # FIXME: we may have to deal with multi-command sequences. 13087 ;; 13088 '$CC '*) 13089 # Test whether the compiler implicitly links with -lc since on some 13090 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13091 # to ld, don't add -lc before -lgcc. 13092 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 13093$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 13094 $rm conftest* 13095 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13096 13097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13098 (eval $ac_compile) 2>&5 13099 ac_status=$? 13100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13101 (exit $ac_status); } 2>conftest.err; then 13102 soname=conftest 13103 lib=conftest 13104 libobjs=conftest.$ac_objext 13105 deplibs= 13106 wl=$lt_prog_compiler_wl_CXX 13107 pic_flag=$lt_prog_compiler_pic_CXX 13108 compiler_flags=-v 13109 linker_flags=-v 13110 verstring= 13111 output_objdir=. 13112 libname=conftest 13113 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 13114 allow_undefined_flag_CXX= 13115 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 13116 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 13117 ac_status=$? 13118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13119 (exit $ac_status); } 13120 then 13121 archive_cmds_need_lc_CXX=no 13122 else 13123 archive_cmds_need_lc_CXX=yes 13124 fi 13125 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 13126 else 13127 cat conftest.err 1>&5 13128 fi 13129 $rm conftest* 13130 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 13131$as_echo "$archive_cmds_need_lc_CXX" >&6; } 13132 ;; 13133 esac 13134 fi 13135 ;; 13136esac 13137 13138{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 13139$as_echo_n "checking dynamic linker characteristics... " >&6; } 13140library_names_spec= 13141libname_spec='lib$name' 13142soname_spec= 13143shrext_cmds=".so" 13144postinstall_cmds= 13145postuninstall_cmds= 13146finish_cmds= 13147finish_eval= 13148shlibpath_var= 13149shlibpath_overrides_runpath=unknown 13150version_type=none 13151dynamic_linker="$host_os ld.so" 13152sys_lib_dlsearch_path_spec="/lib /usr/lib" 13153 13154need_lib_prefix=unknown 13155hardcode_into_libs=no 13156 13157# when you set need_version to no, make sure it does not cause -set_version 13158# flags to be left without arguments 13159need_version=unknown 13160 13161case $host_os in 13162aix3*) 13163 version_type=linux 13164 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13165 shlibpath_var=LIBPATH 13166 13167 # AIX 3 has no versioning support, so we append a major version to the name. 13168 soname_spec='${libname}${release}${shared_ext}$major' 13169 ;; 13170 13171aix[4-9]*) 13172 version_type=linux 13173 need_lib_prefix=no 13174 need_version=no 13175 hardcode_into_libs=yes 13176 if test "$host_cpu" = ia64; then 13177 # AIX 5 supports IA64 13178 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13179 shlibpath_var=LD_LIBRARY_PATH 13180 else 13181 # With GCC up to 2.95.x, collect2 would create an import file 13182 # for dependence libraries. The import file would start with 13183 # the line `#! .'. This would cause the generated library to 13184 # depend on `.', always an invalid library. This was fixed in 13185 # development snapshots of GCC prior to 3.0. 13186 case $host_os in 13187 aix4 | aix4.[01] | aix4.[01].*) 13188 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13189 echo ' yes ' 13190 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13191 : 13192 else 13193 can_build_shared=no 13194 fi 13195 ;; 13196 esac 13197 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13198 # soname into executable. Probably we can add versioning support to 13199 # collect2, so additional links can be useful in future. 13200 if test "$aix_use_runtimelinking" = yes; then 13201 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13202 # instead of lib<name>.a to let people know that these are not 13203 # typical AIX shared libraries. 13204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13205 else 13206 # We preserve .a as extension for shared libraries through AIX4.2 13207 # and later when we are not doing run time linking. 13208 library_names_spec='${libname}${release}.a $libname.a' 13209 soname_spec='${libname}${release}${shared_ext}$major' 13210 fi 13211 shlibpath_var=LIBPATH 13212 fi 13213 ;; 13214 13215amigaos*) 13216 library_names_spec='$libname.ixlibrary $libname.a' 13217 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13218 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' 13219 ;; 13220 13221beos*) 13222 library_names_spec='${libname}${shared_ext}' 13223 dynamic_linker="$host_os ld.so" 13224 shlibpath_var=LIBRARY_PATH 13225 ;; 13226 13227bsdi[45]*) 13228 version_type=linux 13229 need_version=no 13230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13231 soname_spec='${libname}${release}${shared_ext}$major' 13232 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13233 shlibpath_var=LD_LIBRARY_PATH 13234 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13235 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13236 # the default ld.so.conf also contains /usr/contrib/lib and 13237 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13238 # libtool to hard-code these into programs 13239 ;; 13240 13241cygwin* | mingw* | pw32*) 13242 version_type=windows 13243 shrext_cmds=".dll" 13244 need_version=no 13245 need_lib_prefix=no 13246 13247 case $GCC,$host_os in 13248 yes,cygwin* | yes,mingw* | yes,pw32*) 13249 library_names_spec='$libname.dll.a' 13250 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13251 postinstall_cmds='base_file=`basename \${file}`~ 13252 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13253 dldir=$destdir/`dirname \$dlpath`~ 13254 test -d \$dldir || mkdir -p \$dldir~ 13255 $install_prog $dir/$dlname \$dldir/$dlname~ 13256 chmod a+x \$dldir/$dlname' 13257 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13258 dlpath=$dir/\$dldll~ 13259 $rm \$dlpath' 13260 shlibpath_overrides_runpath=yes 13261 13262 case $host_os in 13263 cygwin*) 13264 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13265 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13266 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13267 ;; 13268 mingw*) 13269 # MinGW DLLs use traditional 'lib' prefix 13270 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13271 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13272 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13273 # It is most probably a Windows format PATH printed by 13274 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13275 # path with ; separators, and with drive letters. We can handle the 13276 # drive letters (cygwin fileutils understands them), so leave them, 13277 # especially as we might pass files found there to a mingw objdump, 13278 # which wouldn't understand a cygwinified path. Ahh. 13279 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13280 else 13281 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13282 fi 13283 ;; 13284 pw32*) 13285 # pw32 DLLs use 'pw' prefix rather than 'lib' 13286 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13287 ;; 13288 esac 13289 ;; 13290 13291 *) 13292 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13293 ;; 13294 esac 13295 dynamic_linker='Win32 ld.exe' 13296 # FIXME: first we should search . and the directory the executable is in 13297 shlibpath_var=PATH 13298 ;; 13299 13300darwin* | rhapsody*) 13301 dynamic_linker="$host_os dyld" 13302 version_type=darwin 13303 need_lib_prefix=no 13304 need_version=no 13305 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13306 soname_spec='${libname}${release}${major}$shared_ext' 13307 shlibpath_overrides_runpath=yes 13308 shlibpath_var=DYLD_LIBRARY_PATH 13309 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13310 13311 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13312 ;; 13313 13314dgux*) 13315 version_type=linux 13316 need_lib_prefix=no 13317 need_version=no 13318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13319 soname_spec='${libname}${release}${shared_ext}$major' 13320 shlibpath_var=LD_LIBRARY_PATH 13321 ;; 13322 13323freebsd1*) 13324 dynamic_linker=no 13325 ;; 13326 13327freebsd* | dragonfly*) 13328 # DragonFly does not have aout. When/if they implement a new 13329 # versioning mechanism, adjust this. 13330 if test -x /usr/bin/objformat; then 13331 objformat=`/usr/bin/objformat` 13332 else 13333 case $host_os in 13334 freebsd[123]*) objformat=aout ;; 13335 *) objformat=elf ;; 13336 esac 13337 fi 13338 version_type=freebsd-$objformat 13339 case $version_type in 13340 freebsd-elf*) 13341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13342 need_version=no 13343 need_lib_prefix=no 13344 ;; 13345 freebsd-*) 13346 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13347 need_version=yes 13348 ;; 13349 esac 13350 shlibpath_var=LD_LIBRARY_PATH 13351 case $host_os in 13352 freebsd2*) 13353 shlibpath_overrides_runpath=yes 13354 ;; 13355 freebsd3.[01]* | freebsdelf3.[01]*) 13356 shlibpath_overrides_runpath=yes 13357 hardcode_into_libs=yes 13358 ;; 13359 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13360 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13361 shlibpath_overrides_runpath=no 13362 hardcode_into_libs=yes 13363 ;; 13364 *) # from 4.6 on, and DragonFly 13365 shlibpath_overrides_runpath=yes 13366 hardcode_into_libs=yes 13367 ;; 13368 esac 13369 ;; 13370 13371gnu*) 13372 version_type=linux 13373 need_lib_prefix=no 13374 need_version=no 13375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13376 soname_spec='${libname}${release}${shared_ext}$major' 13377 shlibpath_var=LD_LIBRARY_PATH 13378 hardcode_into_libs=yes 13379 ;; 13380 13381hpux9* | hpux10* | hpux11*) 13382 # Give a soname corresponding to the major version so that dld.sl refuses to 13383 # link against other versions. 13384 version_type=sunos 13385 need_lib_prefix=no 13386 need_version=no 13387 case $host_cpu in 13388 ia64*) 13389 shrext_cmds='.so' 13390 hardcode_into_libs=yes 13391 dynamic_linker="$host_os dld.so" 13392 shlibpath_var=LD_LIBRARY_PATH 13393 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13395 soname_spec='${libname}${release}${shared_ext}$major' 13396 if test "X$HPUX_IA64_MODE" = X32; then 13397 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13398 else 13399 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13400 fi 13401 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13402 ;; 13403 hppa*64*) 13404 shrext_cmds='.sl' 13405 hardcode_into_libs=yes 13406 dynamic_linker="$host_os dld.sl" 13407 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13408 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13410 soname_spec='${libname}${release}${shared_ext}$major' 13411 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13412 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13413 ;; 13414 *) 13415 shrext_cmds='.sl' 13416 dynamic_linker="$host_os dld.sl" 13417 shlibpath_var=SHLIB_PATH 13418 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13420 soname_spec='${libname}${release}${shared_ext}$major' 13421 ;; 13422 esac 13423 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13424 postinstall_cmds='chmod 555 $lib' 13425 ;; 13426 13427interix[3-9]*) 13428 version_type=linux 13429 need_lib_prefix=no 13430 need_version=no 13431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13432 soname_spec='${libname}${release}${shared_ext}$major' 13433 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13434 shlibpath_var=LD_LIBRARY_PATH 13435 shlibpath_overrides_runpath=no 13436 hardcode_into_libs=yes 13437 ;; 13438 13439irix5* | irix6* | nonstopux*) 13440 case $host_os in 13441 nonstopux*) version_type=nonstopux ;; 13442 *) 13443 if test "$lt_cv_prog_gnu_ld" = yes; then 13444 version_type=linux 13445 else 13446 version_type=irix 13447 fi ;; 13448 esac 13449 need_lib_prefix=no 13450 need_version=no 13451 soname_spec='${libname}${release}${shared_ext}$major' 13452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13453 case $host_os in 13454 irix5* | nonstopux*) 13455 libsuff= shlibsuff= 13456 ;; 13457 *) 13458 case $LD in # libtool.m4 will add one of these switches to LD 13459 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13460 libsuff= shlibsuff= libmagic=32-bit;; 13461 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13462 libsuff=32 shlibsuff=N32 libmagic=N32;; 13463 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13464 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13465 *) libsuff= shlibsuff= libmagic=never-match;; 13466 esac 13467 ;; 13468 esac 13469 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13470 shlibpath_overrides_runpath=no 13471 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13472 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13473 hardcode_into_libs=yes 13474 ;; 13475 13476# No shared lib support for Linux oldld, aout, or coff. 13477linux*oldld* | linux*aout* | linux*coff*) 13478 dynamic_linker=no 13479 ;; 13480 13481# This must be Linux ELF. 13482linux* | k*bsd*-gnu) 13483 version_type=linux 13484 need_lib_prefix=no 13485 need_version=no 13486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13487 soname_spec='${libname}${release}${shared_ext}$major' 13488 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13489 shlibpath_var=LD_LIBRARY_PATH 13490 shlibpath_overrides_runpath=no 13491 # This implies no fast_install, which is unacceptable. 13492 # Some rework will be needed to allow for fast_install 13493 # before this can be enabled. 13494 hardcode_into_libs=yes 13495 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13496 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13497 13498 # Append ld.so.conf contents to the search path 13499 if test -f /etc/ld.so.conf; then 13500 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' ' '` 13501 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 13502 fi 13503 13504 # We used to test for /lib/ld.so.1 and disable shared libraries on 13505 # powerpc, because MkLinux only supported shared libraries with the 13506 # GNU dynamic linker. Since this was broken with cross compilers, 13507 # most powerpc-linux boxes support dynamic linking these days and 13508 # people can always --disable-shared, the test was removed, and we 13509 # assume the GNU/Linux dynamic linker is in use. 13510 dynamic_linker='GNU/Linux ld.so' 13511 ;; 13512 13513netbsd*) 13514 version_type=sunos 13515 need_lib_prefix=no 13516 need_version=no 13517 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13519 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13520 dynamic_linker='NetBSD (a.out) ld.so' 13521 else 13522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13523 soname_spec='${libname}${release}${shared_ext}$major' 13524 dynamic_linker='NetBSD ld.elf_so' 13525 fi 13526 shlibpath_var=LD_LIBRARY_PATH 13527 shlibpath_overrides_runpath=yes 13528 hardcode_into_libs=yes 13529 ;; 13530 13531newsos6) 13532 version_type=linux 13533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13534 shlibpath_var=LD_LIBRARY_PATH 13535 shlibpath_overrides_runpath=yes 13536 ;; 13537 13538nto-qnx*) 13539 version_type=linux 13540 need_lib_prefix=no 13541 need_version=no 13542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13543 soname_spec='${libname}${release}${shared_ext}$major' 13544 shlibpath_var=LD_LIBRARY_PATH 13545 shlibpath_overrides_runpath=yes 13546 ;; 13547 13548openbsd*) 13549 version_type=sunos 13550 sys_lib_dlsearch_path_spec="/usr/lib" 13551 need_lib_prefix=no 13552 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13553 case $host_os in 13554 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13555 *) need_version=no ;; 13556 esac 13557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13558 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13559 shlibpath_var=LD_LIBRARY_PATH 13560 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13561 case $host_os in 13562 openbsd2.[89] | openbsd2.[89].*) 13563 shlibpath_overrides_runpath=no 13564 ;; 13565 *) 13566 shlibpath_overrides_runpath=yes 13567 ;; 13568 esac 13569 else 13570 shlibpath_overrides_runpath=yes 13571 fi 13572 ;; 13573 13574os2*) 13575 libname_spec='$name' 13576 shrext_cmds=".dll" 13577 need_lib_prefix=no 13578 library_names_spec='$libname${shared_ext} $libname.a' 13579 dynamic_linker='OS/2 ld.exe' 13580 shlibpath_var=LIBPATH 13581 ;; 13582 13583osf3* | osf4* | osf5*) 13584 version_type=osf 13585 need_lib_prefix=no 13586 need_version=no 13587 soname_spec='${libname}${release}${shared_ext}$major' 13588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13589 shlibpath_var=LD_LIBRARY_PATH 13590 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13591 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13592 ;; 13593 13594rdos*) 13595 dynamic_linker=no 13596 ;; 13597 13598solaris*) 13599 version_type=linux 13600 need_lib_prefix=no 13601 need_version=no 13602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13603 soname_spec='${libname}${release}${shared_ext}$major' 13604 shlibpath_var=LD_LIBRARY_PATH 13605 shlibpath_overrides_runpath=yes 13606 hardcode_into_libs=yes 13607 # ldd complains unless libraries are executable 13608 postinstall_cmds='chmod +x $lib' 13609 ;; 13610 13611sunos4*) 13612 version_type=sunos 13613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13614 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13615 shlibpath_var=LD_LIBRARY_PATH 13616 shlibpath_overrides_runpath=yes 13617 if test "$with_gnu_ld" = yes; then 13618 need_lib_prefix=no 13619 fi 13620 need_version=yes 13621 ;; 13622 13623sysv4 | sysv4.3*) 13624 version_type=linux 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 shlibpath_var=LD_LIBRARY_PATH 13628 case $host_vendor in 13629 sni) 13630 shlibpath_overrides_runpath=no 13631 need_lib_prefix=no 13632 export_dynamic_flag_spec='${wl}-Blargedynsym' 13633 runpath_var=LD_RUN_PATH 13634 ;; 13635 siemens) 13636 need_lib_prefix=no 13637 ;; 13638 motorola) 13639 need_lib_prefix=no 13640 need_version=no 13641 shlibpath_overrides_runpath=no 13642 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13643 ;; 13644 esac 13645 ;; 13646 13647sysv4*MP*) 13648 if test -d /usr/nec ;then 13649 version_type=linux 13650 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13651 soname_spec='$libname${shared_ext}.$major' 13652 shlibpath_var=LD_LIBRARY_PATH 13653 fi 13654 ;; 13655 13656sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13657 version_type=freebsd-elf 13658 need_lib_prefix=no 13659 need_version=no 13660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13661 soname_spec='${libname}${release}${shared_ext}$major' 13662 shlibpath_var=LD_LIBRARY_PATH 13663 hardcode_into_libs=yes 13664 if test "$with_gnu_ld" = yes; then 13665 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13666 shlibpath_overrides_runpath=no 13667 else 13668 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13669 shlibpath_overrides_runpath=yes 13670 case $host_os in 13671 sco3.2v5*) 13672 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13673 ;; 13674 esac 13675 fi 13676 sys_lib_dlsearch_path_spec='/usr/lib' 13677 ;; 13678 13679uts4*) 13680 version_type=linux 13681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13682 soname_spec='${libname}${release}${shared_ext}$major' 13683 shlibpath_var=LD_LIBRARY_PATH 13684 ;; 13685 13686*) 13687 dynamic_linker=no 13688 ;; 13689esac 13690{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13691$as_echo "$dynamic_linker" >&6; } 13692test "$dynamic_linker" = no && can_build_shared=no 13693 13694if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 13695 $as_echo_n "(cached) " >&6 13696else 13697 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 13698fi 13699 13700sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 13701if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 13702 $as_echo_n "(cached) " >&6 13703else 13704 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 13705fi 13706 13707sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 13708 13709variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13710if test "$GCC" = yes; then 13711 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13712fi 13713 13714{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13715$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13716hardcode_action_CXX= 13717if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13718 test -n "$runpath_var_CXX" || \ 13719 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13720 13721 # We can hardcode non-existant directories. 13722 if test "$hardcode_direct_CXX" != no && 13723 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13724 # have to relink, otherwise we might link with an installed library 13725 # when we should be linking with a yet-to-be-installed one 13726 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13727 test "$hardcode_minus_L_CXX" != no; then 13728 # Linking always hardcodes the temporary library directory. 13729 hardcode_action_CXX=relink 13730 else 13731 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13732 hardcode_action_CXX=immediate 13733 fi 13734else 13735 # We cannot hardcode anything, or else we can only hardcode existing 13736 # directories. 13737 hardcode_action_CXX=unsupported 13738fi 13739{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13740$as_echo "$hardcode_action_CXX" >&6; } 13741 13742if test "$hardcode_action_CXX" = relink; then 13743 # Fast installation is not supported 13744 enable_fast_install=no 13745elif test "$shlibpath_overrides_runpath" = yes || 13746 test "$enable_shared" = no; then 13747 # Fast installation is not necessary 13748 enable_fast_install=needless 13749fi 13750 13751 13752# The else clause should only fire when bootstrapping the 13753# libtool distribution, otherwise you forgot to ship ltmain.sh 13754# with your package, and you will get complaints that there are 13755# no rules to generate ltmain.sh. 13756if test -f "$ltmain"; then 13757 # See if we are running on zsh, and set the options which allow our commands through 13758 # without removal of \ escapes. 13759 if test -n "${ZSH_VERSION+set}" ; then 13760 setopt NO_GLOB_SUBST 13761 fi 13762 # Now quote all the things that may contain metacharacters while being 13763 # careful not to overquote the AC_SUBSTed values. We take copies of the 13764 # variables and quote the copies for generation of the libtool script. 13765 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13766 SED SHELL STRIP \ 13767 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13768 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13769 deplibs_check_method reload_flag reload_cmds need_locks \ 13770 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13771 lt_cv_sys_global_symbol_to_c_name_address \ 13772 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13773 old_postinstall_cmds old_postuninstall_cmds \ 13774 compiler_CXX \ 13775 CC_CXX \ 13776 LD_CXX \ 13777 lt_prog_compiler_wl_CXX \ 13778 lt_prog_compiler_pic_CXX \ 13779 lt_prog_compiler_static_CXX \ 13780 lt_prog_compiler_no_builtin_flag_CXX \ 13781 export_dynamic_flag_spec_CXX \ 13782 thread_safe_flag_spec_CXX \ 13783 whole_archive_flag_spec_CXX \ 13784 enable_shared_with_static_runtimes_CXX \ 13785 old_archive_cmds_CXX \ 13786 old_archive_from_new_cmds_CXX \ 13787 predep_objects_CXX \ 13788 postdep_objects_CXX \ 13789 predeps_CXX \ 13790 postdeps_CXX \ 13791 compiler_lib_search_path_CXX \ 13792 compiler_lib_search_dirs_CXX \ 13793 archive_cmds_CXX \ 13794 archive_expsym_cmds_CXX \ 13795 postinstall_cmds_CXX \ 13796 postuninstall_cmds_CXX \ 13797 old_archive_from_expsyms_cmds_CXX \ 13798 allow_undefined_flag_CXX \ 13799 no_undefined_flag_CXX \ 13800 export_symbols_cmds_CXX \ 13801 hardcode_libdir_flag_spec_CXX \ 13802 hardcode_libdir_flag_spec_ld_CXX \ 13803 hardcode_libdir_separator_CXX \ 13804 hardcode_automatic_CXX \ 13805 module_cmds_CXX \ 13806 module_expsym_cmds_CXX \ 13807 lt_cv_prog_compiler_c_o_CXX \ 13808 fix_srcfile_path_CXX \ 13809 exclude_expsyms_CXX \ 13810 include_expsyms_CXX; do 13811 13812 case $var in 13813 old_archive_cmds_CXX | \ 13814 old_archive_from_new_cmds_CXX | \ 13815 archive_cmds_CXX | \ 13816 archive_expsym_cmds_CXX | \ 13817 module_cmds_CXX | \ 13818 module_expsym_cmds_CXX | \ 13819 old_archive_from_expsyms_cmds_CXX | \ 13820 export_symbols_cmds_CXX | \ 13821 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13822 postinstall_cmds | postuninstall_cmds | \ 13823 old_postinstall_cmds | old_postuninstall_cmds | \ 13824 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13825 # Double-quote double-evaled strings. 13826 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13827 ;; 13828 *) 13829 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13830 ;; 13831 esac 13832 done 13833 13834 case $lt_echo in 13835 *'\$0 --fallback-echo"') 13836 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13837 ;; 13838 esac 13839 13840cfgfile="$ofile" 13841 13842 cat <<__EOF__ >> "$cfgfile" 13843# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13844 13845# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13846 13847# Shell to use when invoking shell scripts. 13848SHELL=$lt_SHELL 13849 13850# Whether or not to build shared libraries. 13851build_libtool_libs=$enable_shared 13852 13853# Whether or not to build static libraries. 13854build_old_libs=$enable_static 13855 13856# Whether or not to add -lc for building shared libraries. 13857build_libtool_need_lc=$archive_cmds_need_lc_CXX 13858 13859# Whether or not to disallow shared libs when runtime libs are static 13860allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13861 13862# Whether or not to optimize for fast installation. 13863fast_install=$enable_fast_install 13864 13865# The host system. 13866host_alias=$host_alias 13867host=$host 13868host_os=$host_os 13869 13870# The build system. 13871build_alias=$build_alias 13872build=$build 13873build_os=$build_os 13874 13875# An echo program that does not interpret backslashes. 13876echo=$lt_echo 13877 13878# The archiver. 13879AR=$lt_AR 13880AR_FLAGS=$lt_AR_FLAGS 13881 13882# A C compiler. 13883LTCC=$lt_LTCC 13884 13885# LTCC compiler flags. 13886LTCFLAGS=$lt_LTCFLAGS 13887 13888# A language-specific compiler. 13889CC=$lt_compiler_CXX 13890 13891# Is the compiler the GNU C compiler? 13892with_gcc=$GCC_CXX 13893 13894# An ERE matcher. 13895EGREP=$lt_EGREP 13896 13897# The linker used to build libraries. 13898LD=$lt_LD_CXX 13899 13900# Whether we need hard or soft links. 13901LN_S=$lt_LN_S 13902 13903# A BSD-compatible nm program. 13904NM=$lt_NM 13905 13906# A symbol stripping program 13907STRIP=$lt_STRIP 13908 13909# Used to examine libraries when file_magic_cmd begins "file" 13910MAGIC_CMD=$MAGIC_CMD 13911 13912# Used on cygwin: DLL creation program. 13913DLLTOOL="$DLLTOOL" 13914 13915# Used on cygwin: object dumper. 13916OBJDUMP="$OBJDUMP" 13917 13918# Used on cygwin: assembler. 13919AS="$AS" 13920 13921# The name of the directory that contains temporary libtool files. 13922objdir=$objdir 13923 13924# How to create reloadable object files. 13925reload_flag=$lt_reload_flag 13926reload_cmds=$lt_reload_cmds 13927 13928# How to pass a linker flag through the compiler. 13929wl=$lt_lt_prog_compiler_wl_CXX 13930 13931# Object file suffix (normally "o"). 13932objext="$ac_objext" 13933 13934# Old archive suffix (normally "a"). 13935libext="$libext" 13936 13937# Shared library suffix (normally ".so"). 13938shrext_cmds='$shrext_cmds' 13939 13940# Executable file suffix (normally ""). 13941exeext="$exeext" 13942 13943# Additional compiler flags for building library objects. 13944pic_flag=$lt_lt_prog_compiler_pic_CXX 13945pic_mode=$pic_mode 13946 13947# What is the maximum length of a command? 13948max_cmd_len=$lt_cv_sys_max_cmd_len 13949 13950# Does compiler simultaneously support -c and -o options? 13951compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13952 13953# Must we lock files when doing compilation? 13954need_locks=$lt_need_locks 13955 13956# Do we need the lib prefix for modules? 13957need_lib_prefix=$need_lib_prefix 13958 13959# Do we need a version for libraries? 13960need_version=$need_version 13961 13962# Whether dlopen is supported. 13963dlopen_support=$enable_dlopen 13964 13965# Whether dlopen of programs is supported. 13966dlopen_self=$enable_dlopen_self 13967 13968# Whether dlopen of statically linked programs is supported. 13969dlopen_self_static=$enable_dlopen_self_static 13970 13971# Compiler flag to prevent dynamic linking. 13972link_static_flag=$lt_lt_prog_compiler_static_CXX 13973 13974# Compiler flag to turn off builtin functions. 13975no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13976 13977# Compiler flag to allow reflexive dlopens. 13978export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13979 13980# Compiler flag to generate shared objects directly from archives. 13981whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13982 13983# Compiler flag to generate thread-safe objects. 13984thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13985 13986# Library versioning type. 13987version_type=$version_type 13988 13989# Format of library name prefix. 13990libname_spec=$lt_libname_spec 13991 13992# List of archive names. First name is the real one, the rest are links. 13993# The last name is the one that the linker finds with -lNAME. 13994library_names_spec=$lt_library_names_spec 13995 13996# The coded name of the library, if different from the real name. 13997soname_spec=$lt_soname_spec 13998 13999# Commands used to build and install an old-style archive. 14000RANLIB=$lt_RANLIB 14001old_archive_cmds=$lt_old_archive_cmds_CXX 14002old_postinstall_cmds=$lt_old_postinstall_cmds 14003old_postuninstall_cmds=$lt_old_postuninstall_cmds 14004 14005# Create an old-style archive from a shared archive. 14006old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 14007 14008# Create a temporary old-style archive to link instead of a shared archive. 14009old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 14010 14011# Commands used to build and install a shared archive. 14012archive_cmds=$lt_archive_cmds_CXX 14013archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 14014postinstall_cmds=$lt_postinstall_cmds 14015postuninstall_cmds=$lt_postuninstall_cmds 14016 14017# Commands used to build a loadable module (assumed same as above if empty) 14018module_cmds=$lt_module_cmds_CXX 14019module_expsym_cmds=$lt_module_expsym_cmds_CXX 14020 14021# Commands to strip libraries. 14022old_striplib=$lt_old_striplib 14023striplib=$lt_striplib 14024 14025# Dependencies to place before the objects being linked to create a 14026# shared library. 14027predep_objects=$lt_predep_objects_CXX 14028 14029# Dependencies to place after the objects being linked to create a 14030# shared library. 14031postdep_objects=$lt_postdep_objects_CXX 14032 14033# Dependencies to place before the objects being linked to create a 14034# shared library. 14035predeps=$lt_predeps_CXX 14036 14037# Dependencies to place after the objects being linked to create a 14038# shared library. 14039postdeps=$lt_postdeps_CXX 14040 14041# The directories searched by this compiler when creating a shared 14042# library 14043compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 14044 14045# The library search path used internally by the compiler when linking 14046# a shared library. 14047compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 14048 14049# Method to check whether dependent libraries are shared objects. 14050deplibs_check_method=$lt_deplibs_check_method 14051 14052# Command to use when deplibs_check_method == file_magic. 14053file_magic_cmd=$lt_file_magic_cmd 14054 14055# Flag that allows shared libraries with undefined symbols to be built. 14056allow_undefined_flag=$lt_allow_undefined_flag_CXX 14057 14058# Flag that forces no undefined symbols. 14059no_undefined_flag=$lt_no_undefined_flag_CXX 14060 14061# Commands used to finish a libtool library installation in a directory. 14062finish_cmds=$lt_finish_cmds 14063 14064# Same as above, but a single script fragment to be evaled but not shown. 14065finish_eval=$lt_finish_eval 14066 14067# Take the output of nm and produce a listing of raw symbols and C names. 14068global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14069 14070# Transform the output of nm in a proper C declaration 14071global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14072 14073# Transform the output of nm in a C name address pair 14074global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14075 14076# This is the shared library runtime path variable. 14077runpath_var=$runpath_var 14078 14079# This is the shared library path variable. 14080shlibpath_var=$shlibpath_var 14081 14082# Is shlibpath searched before the hard-coded library search path? 14083shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14084 14085# How to hardcode a shared library path into an executable. 14086hardcode_action=$hardcode_action_CXX 14087 14088# Whether we should hardcode library paths into libraries. 14089hardcode_into_libs=$hardcode_into_libs 14090 14091# Flag to hardcode \$libdir into a binary during linking. 14092# This must work even if \$libdir does not exist. 14093hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 14094 14095# If ld is used when linking, flag to hardcode \$libdir into 14096# a binary during linking. This must work even if \$libdir does 14097# not exist. 14098hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 14099 14100# Whether we need a single -rpath flag with a separated argument. 14101hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 14102 14103# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 14104# resulting binary. 14105hardcode_direct=$hardcode_direct_CXX 14106 14107# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 14108# resulting binary. 14109hardcode_minus_L=$hardcode_minus_L_CXX 14110 14111# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 14112# the resulting binary. 14113hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 14114 14115# Set to yes if building a shared library automatically hardcodes DIR into the library 14116# and all subsequent libraries and executables linked against it. 14117hardcode_automatic=$hardcode_automatic_CXX 14118 14119# Variables whose values should be saved in libtool wrapper scripts and 14120# restored at relink time. 14121variables_saved_for_relink="$variables_saved_for_relink" 14122 14123# Whether libtool must link a program against all its dependency libraries. 14124link_all_deplibs=$link_all_deplibs_CXX 14125 14126# Compile-time system search path for libraries 14127sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14128 14129# Run-time system search path for libraries 14130sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14131 14132# Fix the shell variable \$srcfile for the compiler. 14133fix_srcfile_path=$lt_fix_srcfile_path 14134 14135# Set to yes if exported symbols are required. 14136always_export_symbols=$always_export_symbols_CXX 14137 14138# The commands to list exported symbols. 14139export_symbols_cmds=$lt_export_symbols_cmds_CXX 14140 14141# The commands to extract the exported symbol list from a shared archive. 14142extract_expsyms_cmds=$lt_extract_expsyms_cmds 14143 14144# Symbols that should not be listed in the preloaded symbols. 14145exclude_expsyms=$lt_exclude_expsyms_CXX 14146 14147# Symbols that must always be exported. 14148include_expsyms=$lt_include_expsyms_CXX 14149 14150# ### END LIBTOOL TAG CONFIG: $tagname 14151 14152__EOF__ 14153 14154 14155else 14156 # If there is no Makefile yet, we rely on a make rule to execute 14157 # `config.status --recheck' to rerun these tests and create the 14158 # libtool script then. 14159 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 14160 if test -f "$ltmain_in"; then 14161 test -f Makefile && make "$ltmain" 14162 fi 14163fi 14164 14165 14166ac_ext=c 14167ac_cpp='$CPP $CPPFLAGS' 14168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14170ac_compiler_gnu=$ac_cv_c_compiler_gnu 14171 14172CC=$lt_save_CC 14173LDCXX=$LD 14174LD=$lt_save_LD 14175GCC=$lt_save_GCC 14176with_gnu_ldcxx=$with_gnu_ld 14177with_gnu_ld=$lt_save_with_gnu_ld 14178lt_cv_path_LDCXX=$lt_cv_path_LD 14179lt_cv_path_LD=$lt_save_path_LD 14180lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14181lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14182 14183 else 14184 tagname="" 14185 fi 14186 ;; 14187 14188 F77) 14189 if test -n "$F77" && test "X$F77" != "Xno"; then 14190 14191ac_ext=f 14192ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 14193ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14194ac_compiler_gnu=$ac_cv_f77_compiler_gnu 14195 14196 14197archive_cmds_need_lc_F77=no 14198allow_undefined_flag_F77= 14199always_export_symbols_F77=no 14200archive_expsym_cmds_F77= 14201export_dynamic_flag_spec_F77= 14202hardcode_direct_F77=no 14203hardcode_libdir_flag_spec_F77= 14204hardcode_libdir_flag_spec_ld_F77= 14205hardcode_libdir_separator_F77= 14206hardcode_minus_L_F77=no 14207hardcode_automatic_F77=no 14208module_cmds_F77= 14209module_expsym_cmds_F77= 14210link_all_deplibs_F77=unknown 14211old_archive_cmds_F77=$old_archive_cmds 14212no_undefined_flag_F77= 14213whole_archive_flag_spec_F77= 14214enable_shared_with_static_runtimes_F77=no 14215 14216# Source file extension for f77 test sources. 14217ac_ext=f 14218 14219# Object file extension for compiled f77 test sources. 14220objext=o 14221objext_F77=$objext 14222 14223# Code to be used in simple compile tests 14224lt_simple_compile_test_code="\ 14225 subroutine t 14226 return 14227 end 14228" 14229 14230# Code to be used in simple link tests 14231lt_simple_link_test_code="\ 14232 program t 14233 end 14234" 14235 14236# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14237 14238# If no C compiler was specified, use CC. 14239LTCC=${LTCC-"$CC"} 14240 14241# If no C compiler flags were specified, use CFLAGS. 14242LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14243 14244# Allow CC to be a program name with arguments. 14245compiler=$CC 14246 14247 14248# save warnings/boilerplate of simple test code 14249ac_outfile=conftest.$ac_objext 14250echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14251eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14252_lt_compiler_boilerplate=`cat conftest.err` 14253$rm conftest* 14254 14255ac_outfile=conftest.$ac_objext 14256echo "$lt_simple_link_test_code" >conftest.$ac_ext 14257eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14258_lt_linker_boilerplate=`cat conftest.err` 14259$rm -r conftest* 14260 14261 14262# Allow CC to be a program name with arguments. 14263lt_save_CC="$CC" 14264CC=${F77-"f77"} 14265compiler=$CC 14266compiler_F77=$CC 14267for cc_temp in $compiler""; do 14268 case $cc_temp in 14269 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14270 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14271 \-*) ;; 14272 *) break;; 14273 esac 14274done 14275cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14276 14277 14278{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 14279$as_echo_n "checking if libtool supports shared libraries... " >&6; } 14280{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 14281$as_echo "$can_build_shared" >&6; } 14282 14283{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 14284$as_echo_n "checking whether to build shared libraries... " >&6; } 14285test "$can_build_shared" = "no" && enable_shared=no 14286 14287# On AIX, shared libraries and static libraries use the same namespace, and 14288# are all built from PIC. 14289case $host_os in 14290aix3*) 14291 test "$enable_shared" = yes && enable_static=no 14292 if test -n "$RANLIB"; then 14293 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14294 postinstall_cmds='$RANLIB $lib' 14295 fi 14296 ;; 14297aix[4-9]*) 14298 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14299 test "$enable_shared" = yes && enable_static=no 14300 fi 14301 ;; 14302esac 14303{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 14304$as_echo "$enable_shared" >&6; } 14305 14306{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 14307$as_echo_n "checking whether to build static libraries... " >&6; } 14308# Make sure either enable_shared or enable_static is yes. 14309test "$enable_shared" = yes || enable_static=yes 14310{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5 14311$as_echo "$enable_static" >&6; } 14312 14313GCC_F77="$G77" 14314LD_F77="$LD" 14315 14316lt_prog_compiler_wl_F77= 14317lt_prog_compiler_pic_F77= 14318lt_prog_compiler_static_F77= 14319 14320{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14321$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14322 14323 if test "$GCC" = yes; then 14324 lt_prog_compiler_wl_F77='-Wl,' 14325 lt_prog_compiler_static_F77='-static' 14326 14327 case $host_os in 14328 aix*) 14329 # All AIX code is PIC. 14330 if test "$host_cpu" = ia64; then 14331 # AIX 5 now supports IA64 processor 14332 lt_prog_compiler_static_F77='-Bstatic' 14333 fi 14334 ;; 14335 14336 amigaos*) 14337 # FIXME: we need at least 68020 code to build shared libraries, but 14338 # adding the `-m68020' flag to GCC prevents building anything better, 14339 # like `-m68040'. 14340 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14341 ;; 14342 14343 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14344 # PIC is the default for these OSes. 14345 ;; 14346 14347 mingw* | cygwin* | pw32* | os2*) 14348 # This hack is so that the source file can tell whether it is being 14349 # built for inclusion in a dll (and should export symbols for example). 14350 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14351 # (--disable-auto-import) libraries 14352 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14353 ;; 14354 14355 darwin* | rhapsody*) 14356 # PIC is the default on this platform 14357 # Common symbols not allowed in MH_DYLIB files 14358 lt_prog_compiler_pic_F77='-fno-common' 14359 ;; 14360 14361 interix[3-9]*) 14362 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14363 # Instead, we relocate shared libraries at runtime. 14364 ;; 14365 14366 msdosdjgpp*) 14367 # Just because we use GCC doesn't mean we suddenly get shared libraries 14368 # on systems that don't support them. 14369 lt_prog_compiler_can_build_shared_F77=no 14370 enable_shared=no 14371 ;; 14372 14373 sysv4*MP*) 14374 if test -d /usr/nec; then 14375 lt_prog_compiler_pic_F77=-Kconform_pic 14376 fi 14377 ;; 14378 14379 hpux*) 14380 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14381 # not for PA HP-UX. 14382 case $host_cpu in 14383 hppa*64*|ia64*) 14384 # +Z the default 14385 ;; 14386 *) 14387 lt_prog_compiler_pic_F77='-fPIC' 14388 ;; 14389 esac 14390 ;; 14391 14392 *) 14393 lt_prog_compiler_pic_F77='-fPIC' 14394 ;; 14395 esac 14396 else 14397 # PORTME Check for flag to pass linker flags through the system compiler. 14398 case $host_os in 14399 aix*) 14400 lt_prog_compiler_wl_F77='-Wl,' 14401 if test "$host_cpu" = ia64; then 14402 # AIX 5 now supports IA64 processor 14403 lt_prog_compiler_static_F77='-Bstatic' 14404 else 14405 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 14406 fi 14407 ;; 14408 darwin*) 14409 # PIC is the default on this platform 14410 # Common symbols not allowed in MH_DYLIB files 14411 case $cc_basename in 14412 xlc*) 14413 lt_prog_compiler_pic_F77='-qnocommon' 14414 lt_prog_compiler_wl_F77='-Wl,' 14415 ;; 14416 esac 14417 ;; 14418 14419 mingw* | cygwin* | pw32* | os2*) 14420 # This hack is so that the source file can tell whether it is being 14421 # built for inclusion in a dll (and should export symbols for example). 14422 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14423 ;; 14424 14425 hpux9* | hpux10* | hpux11*) 14426 lt_prog_compiler_wl_F77='-Wl,' 14427 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14428 # not for PA HP-UX. 14429 case $host_cpu in 14430 hppa*64*|ia64*) 14431 # +Z the default 14432 ;; 14433 *) 14434 lt_prog_compiler_pic_F77='+Z' 14435 ;; 14436 esac 14437 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14438 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 14439 ;; 14440 14441 irix5* | irix6* | nonstopux*) 14442 lt_prog_compiler_wl_F77='-Wl,' 14443 # PIC (with -KPIC) is the default. 14444 lt_prog_compiler_static_F77='-non_shared' 14445 ;; 14446 14447 newsos6) 14448 lt_prog_compiler_pic_F77='-KPIC' 14449 lt_prog_compiler_static_F77='-Bstatic' 14450 ;; 14451 14452 linux* | k*bsd*-gnu) 14453 case $cc_basename in 14454 icc* | ecc*) 14455 lt_prog_compiler_wl_F77='-Wl,' 14456 lt_prog_compiler_pic_F77='-KPIC' 14457 lt_prog_compiler_static_F77='-static' 14458 ;; 14459 pgcc* | pgf77* | pgf90* | pgf95*) 14460 # Portland Group compilers (*not* the Pentium gcc compiler, 14461 # which looks to be a dead project) 14462 lt_prog_compiler_wl_F77='-Wl,' 14463 lt_prog_compiler_pic_F77='-fpic' 14464 lt_prog_compiler_static_F77='-Bstatic' 14465 ;; 14466 ccc*) 14467 lt_prog_compiler_wl_F77='-Wl,' 14468 # All Alpha code is PIC. 14469 lt_prog_compiler_static_F77='-non_shared' 14470 ;; 14471 *) 14472 case `$CC -V 2>&1 | sed 5q` in 14473 *Sun\ C*) 14474 # Sun C 5.9 14475 lt_prog_compiler_pic_F77='-KPIC' 14476 lt_prog_compiler_static_F77='-Bstatic' 14477 lt_prog_compiler_wl_F77='-Wl,' 14478 ;; 14479 *Sun\ F*) 14480 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14481 lt_prog_compiler_pic_F77='-KPIC' 14482 lt_prog_compiler_static_F77='-Bstatic' 14483 lt_prog_compiler_wl_F77='' 14484 ;; 14485 esac 14486 ;; 14487 esac 14488 ;; 14489 14490 osf3* | osf4* | osf5*) 14491 lt_prog_compiler_wl_F77='-Wl,' 14492 # All OSF/1 code is PIC. 14493 lt_prog_compiler_static_F77='-non_shared' 14494 ;; 14495 14496 rdos*) 14497 lt_prog_compiler_static_F77='-non_shared' 14498 ;; 14499 14500 solaris*) 14501 lt_prog_compiler_pic_F77='-KPIC' 14502 lt_prog_compiler_static_F77='-Bstatic' 14503 case $cc_basename in 14504 f77* | f90* | f95*) 14505 lt_prog_compiler_wl_F77='-Qoption ld ';; 14506 *) 14507 lt_prog_compiler_wl_F77='-Wl,';; 14508 esac 14509 ;; 14510 14511 sunos4*) 14512 lt_prog_compiler_wl_F77='-Qoption ld ' 14513 lt_prog_compiler_pic_F77='-PIC' 14514 lt_prog_compiler_static_F77='-Bstatic' 14515 ;; 14516 14517 sysv4 | sysv4.2uw2* | sysv4.3*) 14518 lt_prog_compiler_wl_F77='-Wl,' 14519 lt_prog_compiler_pic_F77='-KPIC' 14520 lt_prog_compiler_static_F77='-Bstatic' 14521 ;; 14522 14523 sysv4*MP*) 14524 if test -d /usr/nec ;then 14525 lt_prog_compiler_pic_F77='-Kconform_pic' 14526 lt_prog_compiler_static_F77='-Bstatic' 14527 fi 14528 ;; 14529 14530 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14531 lt_prog_compiler_wl_F77='-Wl,' 14532 lt_prog_compiler_pic_F77='-KPIC' 14533 lt_prog_compiler_static_F77='-Bstatic' 14534 ;; 14535 14536 unicos*) 14537 lt_prog_compiler_wl_F77='-Wl,' 14538 lt_prog_compiler_can_build_shared_F77=no 14539 ;; 14540 14541 uts4*) 14542 lt_prog_compiler_pic_F77='-pic' 14543 lt_prog_compiler_static_F77='-Bstatic' 14544 ;; 14545 14546 *) 14547 lt_prog_compiler_can_build_shared_F77=no 14548 ;; 14549 esac 14550 fi 14551 14552{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14553$as_echo "$lt_prog_compiler_pic_F77" >&6; } 14554 14555# 14556# Check to make sure the PIC flag actually works. 14557# 14558if test -n "$lt_prog_compiler_pic_F77"; then 14559 14560{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14561$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; } 14562if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then 14563 $as_echo_n "(cached) " >&6 14564else 14565 lt_cv_prog_compiler_pic_works_F77=no 14566 ac_outfile=conftest.$ac_objext 14567 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14568 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14569 # Insert the option either (1) after the last *FLAGS variable, or 14570 # (2) before a word containing "conftest.", or (3) at the end. 14571 # Note that $ac_compile itself does not contain backslashes and begins 14572 # with a dollar sign (not a hyphen), so the echo should work correctly. 14573 # The option is referenced via a variable to avoid confusing sed. 14574 lt_compile=`echo "$ac_compile" | $SED \ 14575 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14576 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14577 -e 's:$: $lt_compiler_flag:'` 14578 (eval echo "\"\$as_me:14578: $lt_compile\"" >&5) 14579 (eval "$lt_compile" 2>conftest.err) 14580 ac_status=$? 14581 cat conftest.err >&5 14582 echo "$as_me:14582: \$? = $ac_status" >&5 14583 if (exit $ac_status) && test -s "$ac_outfile"; then 14584 # The compiler can only warn and ignore the option if not recognized 14585 # So say no if there are warnings other than the usual output. 14586 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14587 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14588 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14589 lt_cv_prog_compiler_pic_works_F77=yes 14590 fi 14591 fi 14592 $rm conftest* 14593 14594fi 14595{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5 14596$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; } 14597 14598if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then 14599 case $lt_prog_compiler_pic_F77 in 14600 "" | " "*) ;; 14601 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14602 esac 14603else 14604 lt_prog_compiler_pic_F77= 14605 lt_prog_compiler_can_build_shared_F77=no 14606fi 14607 14608fi 14609case $host_os in 14610 # For platforms which do not support PIC, -DPIC is meaningless: 14611 *djgpp*) 14612 lt_prog_compiler_pic_F77= 14613 ;; 14614 *) 14615 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14616 ;; 14617esac 14618 14619# 14620# Check to make sure the static flag actually works. 14621# 14622wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14623{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14624$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14625if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then 14626 $as_echo_n "(cached) " >&6 14627else 14628 lt_cv_prog_compiler_static_works_F77=no 14629 save_LDFLAGS="$LDFLAGS" 14630 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14631 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14632 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14633 # The linker can only warn and ignore the option if not recognized 14634 # So say no if there are warnings 14635 if test -s conftest.err; then 14636 # Append any errors to the config.log. 14637 cat conftest.err 1>&5 14638 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14639 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14640 if diff conftest.exp conftest.er2 >/dev/null; then 14641 lt_cv_prog_compiler_static_works_F77=yes 14642 fi 14643 else 14644 lt_cv_prog_compiler_static_works_F77=yes 14645 fi 14646 fi 14647 $rm -r conftest* 14648 LDFLAGS="$save_LDFLAGS" 14649 14650fi 14651{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5 14652$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; } 14653 14654if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then 14655 : 14656else 14657 lt_prog_compiler_static_F77= 14658fi 14659 14660 14661{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14662$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14663if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14664 $as_echo_n "(cached) " >&6 14665else 14666 lt_cv_prog_compiler_c_o_F77=no 14667 $rm -r conftest 2>/dev/null 14668 mkdir conftest 14669 cd conftest 14670 mkdir out 14671 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14672 14673 lt_compiler_flag="-o out/conftest2.$ac_objext" 14674 # Insert the option either (1) after the last *FLAGS variable, or 14675 # (2) before a word containing "conftest.", or (3) at the end. 14676 # Note that $ac_compile itself does not contain backslashes and begins 14677 # with a dollar sign (not a hyphen), so the echo should work correctly. 14678 lt_compile=`echo "$ac_compile" | $SED \ 14679 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14680 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14681 -e 's:$: $lt_compiler_flag:'` 14682 (eval echo "\"\$as_me:14682: $lt_compile\"" >&5) 14683 (eval "$lt_compile" 2>out/conftest.err) 14684 ac_status=$? 14685 cat out/conftest.err >&5 14686 echo "$as_me:14686: \$? = $ac_status" >&5 14687 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14688 then 14689 # The compiler can only warn and ignore the option if not recognized 14690 # So say no if there are warnings 14691 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14692 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14693 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14694 lt_cv_prog_compiler_c_o_F77=yes 14695 fi 14696 fi 14697 chmod u+w . 2>&5 14698 $rm conftest* 14699 # SGI C++ compiler will create directory out/ii_files/ for 14700 # template instantiation 14701 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14702 $rm out/* && rmdir out 14703 cd .. 14704 rmdir conftest 14705 $rm conftest* 14706 14707fi 14708{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14709$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; } 14710 14711 14712hard_links="nottested" 14713if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14714 # do not overwrite the value of need_locks provided by the user 14715 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14716$as_echo_n "checking if we can lock with hard links... " >&6; } 14717 hard_links=yes 14718 $rm conftest* 14719 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14720 touch conftest.a 14721 ln conftest.a conftest.b 2>&5 || hard_links=no 14722 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14723 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 14724$as_echo "$hard_links" >&6; } 14725 if test "$hard_links" = no; then 14726 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14727$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14728 need_locks=warn 14729 fi 14730else 14731 need_locks=no 14732fi 14733 14734{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14735$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14736 14737 runpath_var= 14738 allow_undefined_flag_F77= 14739 enable_shared_with_static_runtimes_F77=no 14740 archive_cmds_F77= 14741 archive_expsym_cmds_F77= 14742 old_archive_From_new_cmds_F77= 14743 old_archive_from_expsyms_cmds_F77= 14744 export_dynamic_flag_spec_F77= 14745 whole_archive_flag_spec_F77= 14746 thread_safe_flag_spec_F77= 14747 hardcode_libdir_flag_spec_F77= 14748 hardcode_libdir_flag_spec_ld_F77= 14749 hardcode_libdir_separator_F77= 14750 hardcode_direct_F77=no 14751 hardcode_minus_L_F77=no 14752 hardcode_shlibpath_var_F77=unsupported 14753 link_all_deplibs_F77=unknown 14754 hardcode_automatic_F77=no 14755 module_cmds_F77= 14756 module_expsym_cmds_F77= 14757 always_export_symbols_F77=no 14758 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14759 # include_expsyms should be a list of space-separated symbols to be *always* 14760 # included in the symbol list 14761 include_expsyms_F77= 14762 # exclude_expsyms can be an extended regexp of symbols to exclude 14763 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14764 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14765 # as well as any symbol that contains `d'. 14766 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14767 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14768 # platforms (ab)use it in PIC code, but their linkers get confused if 14769 # the symbol is explicitly referenced. Since portable code cannot 14770 # rely on this symbol name, it's probably fine to never include it in 14771 # preloaded symbol tables. 14772 # Exclude shared library initialization/finalization symbols. 14773 extract_expsyms_cmds= 14774 # Just being paranoid about ensuring that cc_basename is set. 14775 for cc_temp in $compiler""; do 14776 case $cc_temp in 14777 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14778 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14779 \-*) ;; 14780 *) break;; 14781 esac 14782done 14783cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14784 14785 case $host_os in 14786 cygwin* | mingw* | pw32*) 14787 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14788 # When not using gcc, we currently assume that we are using 14789 # Microsoft Visual C++. 14790 if test "$GCC" != yes; then 14791 with_gnu_ld=no 14792 fi 14793 ;; 14794 interix*) 14795 # we just hope/assume this is gcc and not c89 (= MSVC++) 14796 with_gnu_ld=yes 14797 ;; 14798 openbsd*) 14799 with_gnu_ld=no 14800 ;; 14801 esac 14802 14803 ld_shlibs_F77=yes 14804 if test "$with_gnu_ld" = yes; then 14805 # If archive_cmds runs LD, not CC, wlarc should be empty 14806 wlarc='${wl}' 14807 14808 # Set some defaults for GNU ld with shared library support. These 14809 # are reset later if shared libraries are not supported. Putting them 14810 # here allows them to be overridden if necessary. 14811 runpath_var=LD_RUN_PATH 14812 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14813 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14814 # ancient GNU ld didn't support --whole-archive et. al. 14815 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14816 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14817 else 14818 whole_archive_flag_spec_F77= 14819 fi 14820 supports_anon_versioning=no 14821 case `$LD -v 2>/dev/null` in 14822 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14823 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14824 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14825 *\ 2.11.*) ;; # other 2.11 versions 14826 *) supports_anon_versioning=yes ;; 14827 esac 14828 14829 # See if GNU ld supports shared libraries. 14830 case $host_os in 14831 aix[3-9]*) 14832 # On AIX/PPC, the GNU linker is very broken 14833 if test "$host_cpu" != ia64; then 14834 ld_shlibs_F77=no 14835 cat <<EOF 1>&2 14836 14837*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14838*** to be unable to reliably create shared libraries on AIX. 14839*** Therefore, libtool is disabling shared libraries support. If you 14840*** really care for shared libraries, you may want to modify your PATH 14841*** so that a non-GNU linker is found, and then restart. 14842 14843EOF 14844 fi 14845 ;; 14846 14847 amigaos*) 14848 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)' 14849 hardcode_libdir_flag_spec_F77='-L$libdir' 14850 hardcode_minus_L_F77=yes 14851 14852 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14853 # that the semantics of dynamic libraries on AmigaOS, at least up 14854 # to version 4, is to share data among multiple programs linked 14855 # with the same dynamic library. Since this doesn't match the 14856 # behavior of shared libraries on other platforms, we can't use 14857 # them. 14858 ld_shlibs_F77=no 14859 ;; 14860 14861 beos*) 14862 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14863 allow_undefined_flag_F77=unsupported 14864 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14865 # support --undefined. This deserves some investigation. FIXME 14866 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14867 else 14868 ld_shlibs_F77=no 14869 fi 14870 ;; 14871 14872 cygwin* | mingw* | pw32*) 14873 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14874 # as there is no search path for DLLs. 14875 hardcode_libdir_flag_spec_F77='-L$libdir' 14876 allow_undefined_flag_F77=unsupported 14877 always_export_symbols_F77=no 14878 enable_shared_with_static_runtimes_F77=yes 14879 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 14880 14881 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14882 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14883 # If the export-symbols file already is a .def file (1st line 14884 # is EXPORTS), use it as is; otherwise, prepend... 14885 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14886 cp $export_symbols $output_objdir/$soname.def; 14887 else 14888 echo EXPORTS > $output_objdir/$soname.def; 14889 cat $export_symbols >> $output_objdir/$soname.def; 14890 fi~ 14891 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14892 else 14893 ld_shlibs_F77=no 14894 fi 14895 ;; 14896 14897 interix[3-9]*) 14898 hardcode_direct_F77=no 14899 hardcode_shlibpath_var_F77=no 14900 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14901 export_dynamic_flag_spec_F77='${wl}-E' 14902 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14903 # Instead, shared libraries are loaded at an image base (0x10000000 by 14904 # default) and relocated if they conflict, which is a slow very memory 14905 # consuming and fragmenting process. To avoid this, we pick a random, 14906 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14907 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14908 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' 14909 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' 14910 ;; 14911 14912 gnu* | linux* | k*bsd*-gnu) 14913 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14914 tmp_addflag= 14915 case $cc_basename,$host_cpu in 14916 pgcc*) # Portland Group C compiler 14917 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' 14918 tmp_addflag=' $pic_flag' 14919 ;; 14920 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14921 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' 14922 tmp_addflag=' $pic_flag -Mnomain' ;; 14923 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14924 tmp_addflag=' -i_dynamic' ;; 14925 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14926 tmp_addflag=' -i_dynamic -nofor_main' ;; 14927 ifc* | ifort*) # Intel Fortran compiler 14928 tmp_addflag=' -nofor_main' ;; 14929 esac 14930 case `$CC -V 2>&1 | sed 5q` in 14931 *Sun\ C*) # Sun C 5.9 14932 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' 14933 tmp_sharedflag='-G' ;; 14934 *Sun\ F*) # Sun Fortran 8.3 14935 tmp_sharedflag='-G' ;; 14936 *) 14937 tmp_sharedflag='-shared' ;; 14938 esac 14939 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14940 14941 if test $supports_anon_versioning = yes; then 14942 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14943 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14944 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14945 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14946 fi 14947 else 14948 ld_shlibs_F77=no 14949 fi 14950 ;; 14951 14952 netbsd*) 14953 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14954 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14955 wlarc= 14956 else 14957 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14958 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14959 fi 14960 ;; 14961 14962 solaris*) 14963 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14964 ld_shlibs_F77=no 14965 cat <<EOF 1>&2 14966 14967*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14968*** create shared libraries on Solaris systems. Therefore, libtool 14969*** is disabling shared libraries support. We urge you to upgrade GNU 14970*** binutils to release 2.9.1 or newer. Another option is to modify 14971*** your PATH or compiler configuration so that the native linker is 14972*** used, and then restart. 14973 14974EOF 14975 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14976 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14977 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14978 else 14979 ld_shlibs_F77=no 14980 fi 14981 ;; 14982 14983 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14984 case `$LD -v 2>&1` in 14985 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14986 ld_shlibs_F77=no 14987 cat <<_LT_EOF 1>&2 14988 14989*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14990*** reliably create shared libraries on SCO systems. Therefore, libtool 14991*** is disabling shared libraries support. We urge you to upgrade GNU 14992*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14993*** your PATH or compiler configuration so that the native linker is 14994*** used, and then restart. 14995 14996_LT_EOF 14997 ;; 14998 *) 14999 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15000 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 15001 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 15002 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 15003 else 15004 ld_shlibs_F77=no 15005 fi 15006 ;; 15007 esac 15008 ;; 15009 15010 sunos4*) 15011 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15012 wlarc= 15013 hardcode_direct_F77=yes 15014 hardcode_shlibpath_var_F77=no 15015 ;; 15016 15017 *) 15018 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15019 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15020 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15021 else 15022 ld_shlibs_F77=no 15023 fi 15024 ;; 15025 esac 15026 15027 if test "$ld_shlibs_F77" = no; then 15028 runpath_var= 15029 hardcode_libdir_flag_spec_F77= 15030 export_dynamic_flag_spec_F77= 15031 whole_archive_flag_spec_F77= 15032 fi 15033 else 15034 # PORTME fill in a description of your system's linker (not GNU ld) 15035 case $host_os in 15036 aix3*) 15037 allow_undefined_flag_F77=unsupported 15038 always_export_symbols_F77=yes 15039 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' 15040 # Note: this linker hardcodes the directories in LIBPATH if there 15041 # are no directories specified by -L. 15042 hardcode_minus_L_F77=yes 15043 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 15044 # Neither direct hardcoding nor static linking is supported with a 15045 # broken collect2. 15046 hardcode_direct_F77=unsupported 15047 fi 15048 ;; 15049 15050 aix[4-9]*) 15051 if test "$host_cpu" = ia64; then 15052 # On IA64, the linker does run time linking by default, so we don't 15053 # have to do anything special. 15054 aix_use_runtimelinking=no 15055 exp_sym_flag='-Bexport' 15056 no_entry_flag="" 15057 else 15058 # If we're using GNU nm, then we don't want the "-C" option. 15059 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15060 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 15061 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' 15062 else 15063 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' 15064 fi 15065 aix_use_runtimelinking=no 15066 15067 # Test if we are trying to use run time linking or normal 15068 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15069 # need to do runtime linking. 15070 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15071 for ld_flag in $LDFLAGS; do 15072 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15073 aix_use_runtimelinking=yes 15074 break 15075 fi 15076 done 15077 ;; 15078 esac 15079 15080 exp_sym_flag='-bexport' 15081 no_entry_flag='-bnoentry' 15082 fi 15083 15084 # When large executables or shared objects are built, AIX ld can 15085 # have problems creating the table of contents. If linking a library 15086 # or program results in "error TOC overflow" add -mminimal-toc to 15087 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15088 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15089 15090 archive_cmds_F77='' 15091 hardcode_direct_F77=yes 15092 hardcode_libdir_separator_F77=':' 15093 link_all_deplibs_F77=yes 15094 15095 if test "$GCC" = yes; then 15096 case $host_os in aix4.[012]|aix4.[012].*) 15097 # We only want to do this on AIX 4.2 and lower, the check 15098 # below for broken collect2 doesn't work under 4.3+ 15099 collect2name=`${CC} -print-prog-name=collect2` 15100 if test -f "$collect2name" && \ 15101 strings "$collect2name" | grep resolve_lib_name >/dev/null 15102 then 15103 # We have reworked collect2 15104 : 15105 else 15106 # We have old collect2 15107 hardcode_direct_F77=unsupported 15108 # It fails to find uninstalled libraries when the uninstalled 15109 # path is not listed in the libpath. Setting hardcode_minus_L 15110 # to unsupported forces relinking 15111 hardcode_minus_L_F77=yes 15112 hardcode_libdir_flag_spec_F77='-L$libdir' 15113 hardcode_libdir_separator_F77= 15114 fi 15115 ;; 15116 esac 15117 shared_flag='-shared' 15118 if test "$aix_use_runtimelinking" = yes; then 15119 shared_flag="$shared_flag "'${wl}-G' 15120 fi 15121 else 15122 # not using gcc 15123 if test "$host_cpu" = ia64; then 15124 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15125 # chokes on -Wl,-G. The following line is correct: 15126 shared_flag='-G' 15127 else 15128 if test "$aix_use_runtimelinking" = yes; then 15129 shared_flag='${wl}-G' 15130 else 15131 shared_flag='${wl}-bM:SRE' 15132 fi 15133 fi 15134 fi 15135 15136 # It seems that -bexpall does not export symbols beginning with 15137 # underscore (_), so it is better to generate a list of symbols to export. 15138 always_export_symbols_F77=yes 15139 if test "$aix_use_runtimelinking" = yes; then 15140 # Warning - without using the other runtime loading flags (-brtl), 15141 # -berok will link without error, but may produce a broken library. 15142 allow_undefined_flag_F77='-berok' 15143 # Determine the default libpath from the value encoded in an empty executable. 15144 cat >conftest.$ac_ext <<_ACEOF 15145 program main 15146 15147 end 15148_ACEOF 15149rm -f conftest.$ac_objext conftest$ac_exeext 15150if { (ac_try="$ac_link" 15151case "(($ac_try" in 15152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15153 *) ac_try_echo=$ac_try;; 15154esac 15155eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15156$as_echo "$ac_try_echo") >&5 15157 (eval "$ac_link") 2>conftest.er1 15158 ac_status=$? 15159 grep -v '^ *+' conftest.er1 >conftest.err 15160 rm -f conftest.er1 15161 cat conftest.err >&5 15162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15163 (exit $ac_status); } && { 15164 test -z "$ac_f77_werror_flag" || 15165 test ! -s conftest.err 15166 } && test -s conftest$ac_exeext && { 15167 test "$cross_compiling" = yes || 15168 $as_test_x conftest$ac_exeext 15169 }; then 15170 15171lt_aix_libpath_sed=' 15172 /Import File Strings/,/^$/ { 15173 /^0/ { 15174 s/^0 *\(.*\)$/\1/ 15175 p 15176 } 15177 }' 15178aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15179# Check for a 64-bit object if we didn't find anything. 15180if test -z "$aix_libpath"; then 15181 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15182fi 15183else 15184 $as_echo "$as_me: failed program was:" >&5 15185sed 's/^/| /' conftest.$ac_ext >&5 15186 15187 15188fi 15189 15190rm -rf conftest.dSYM 15191rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15192 conftest$ac_exeext conftest.$ac_ext 15193if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15194 15195 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15196 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" 15197 else 15198 if test "$host_cpu" = ia64; then 15199 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 15200 allow_undefined_flag_F77="-z nodefs" 15201 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" 15202 else 15203 # Determine the default libpath from the value encoded in an empty executable. 15204 cat >conftest.$ac_ext <<_ACEOF 15205 program main 15206 15207 end 15208_ACEOF 15209rm -f conftest.$ac_objext conftest$ac_exeext 15210if { (ac_try="$ac_link" 15211case "(($ac_try" in 15212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15213 *) ac_try_echo=$ac_try;; 15214esac 15215eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15216$as_echo "$ac_try_echo") >&5 15217 (eval "$ac_link") 2>conftest.er1 15218 ac_status=$? 15219 grep -v '^ *+' conftest.er1 >conftest.err 15220 rm -f conftest.er1 15221 cat conftest.err >&5 15222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15223 (exit $ac_status); } && { 15224 test -z "$ac_f77_werror_flag" || 15225 test ! -s conftest.err 15226 } && test -s conftest$ac_exeext && { 15227 test "$cross_compiling" = yes || 15228 $as_test_x conftest$ac_exeext 15229 }; then 15230 15231lt_aix_libpath_sed=' 15232 /Import File Strings/,/^$/ { 15233 /^0/ { 15234 s/^0 *\(.*\)$/\1/ 15235 p 15236 } 15237 }' 15238aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15239# Check for a 64-bit object if we didn't find anything. 15240if test -z "$aix_libpath"; then 15241 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15242fi 15243else 15244 $as_echo "$as_me: failed program was:" >&5 15245sed 's/^/| /' conftest.$ac_ext >&5 15246 15247 15248fi 15249 15250rm -rf conftest.dSYM 15251rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15252 conftest$ac_exeext conftest.$ac_ext 15253if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15254 15255 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15256 # Warning - without using the other run time loading flags, 15257 # -berok will link without error, but may produce a broken library. 15258 no_undefined_flag_F77=' ${wl}-bernotok' 15259 allow_undefined_flag_F77=' ${wl}-berok' 15260 # Exported symbols can be pulled into shared objects from archives 15261 whole_archive_flag_spec_F77='$convenience' 15262 archive_cmds_need_lc_F77=yes 15263 # This is similar to how AIX traditionally builds its shared libraries. 15264 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' 15265 fi 15266 fi 15267 ;; 15268 15269 amigaos*) 15270 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)' 15271 hardcode_libdir_flag_spec_F77='-L$libdir' 15272 hardcode_minus_L_F77=yes 15273 # see comment about different semantics on the GNU ld section 15274 ld_shlibs_F77=no 15275 ;; 15276 15277 bsdi[45]*) 15278 export_dynamic_flag_spec_F77=-rdynamic 15279 ;; 15280 15281 cygwin* | mingw* | pw32*) 15282 # When not using gcc, we currently assume that we are using 15283 # Microsoft Visual C++. 15284 # hardcode_libdir_flag_spec is actually meaningless, as there is 15285 # no search path for DLLs. 15286 hardcode_libdir_flag_spec_F77=' ' 15287 allow_undefined_flag_F77=unsupported 15288 # Tell ltmain to make .lib files, not .a files. 15289 libext=lib 15290 # Tell ltmain to make .dll files, not .so files. 15291 shrext_cmds=".dll" 15292 # FIXME: Setting linknames here is a bad hack. 15293 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15294 # The linker will automatically build a .lib file if we build a DLL. 15295 old_archive_From_new_cmds_F77='true' 15296 # FIXME: Should let the user specify the lib program. 15297 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' 15298 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 15299 enable_shared_with_static_runtimes_F77=yes 15300 ;; 15301 15302 darwin* | rhapsody*) 15303 case $host_os in 15304 rhapsody* | darwin1.[012]) 15305 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 15306 ;; 15307 *) # Darwin 1.3 on 15308 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15309 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15310 else 15311 case ${MACOSX_DEPLOYMENT_TARGET} in 15312 10.[012]) 15313 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15314 ;; 15315 10.*) 15316 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 15317 ;; 15318 esac 15319 fi 15320 ;; 15321 esac 15322 archive_cmds_need_lc_F77=no 15323 hardcode_direct_F77=no 15324 hardcode_automatic_F77=yes 15325 hardcode_shlibpath_var_F77=unsupported 15326 whole_archive_flag_spec_F77='' 15327 link_all_deplibs_F77=yes 15328 if test "$GCC" = yes ; then 15329 output_verbose_link_cmd='echo' 15330 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}" 15331 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 15332 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}" 15333 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}" 15334 else 15335 case $cc_basename in 15336 xlc*) 15337 output_verbose_link_cmd='echo' 15338 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 15339 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15340 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15341 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}' 15342 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}' 15343 ;; 15344 *) 15345 ld_shlibs_F77=no 15346 ;; 15347 esac 15348 fi 15349 ;; 15350 15351 dgux*) 15352 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15353 hardcode_libdir_flag_spec_F77='-L$libdir' 15354 hardcode_shlibpath_var_F77=no 15355 ;; 15356 15357 freebsd1*) 15358 ld_shlibs_F77=no 15359 ;; 15360 15361 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15362 # support. Future versions do this automatically, but an explicit c++rt0.o 15363 # does not break anything, and helps significantly (at the cost of a little 15364 # extra space). 15365 freebsd2.2*) 15366 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15367 hardcode_libdir_flag_spec_F77='-R$libdir' 15368 hardcode_direct_F77=yes 15369 hardcode_shlibpath_var_F77=no 15370 ;; 15371 15372 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15373 freebsd2*) 15374 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15375 hardcode_direct_F77=yes 15376 hardcode_minus_L_F77=yes 15377 hardcode_shlibpath_var_F77=no 15378 ;; 15379 15380 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15381 freebsd* | dragonfly*) 15382 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15383 hardcode_libdir_flag_spec_F77='-R$libdir' 15384 hardcode_direct_F77=yes 15385 hardcode_shlibpath_var_F77=no 15386 ;; 15387 15388 hpux9*) 15389 if test "$GCC" = yes; then 15390 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' 15391 else 15392 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' 15393 fi 15394 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15395 hardcode_libdir_separator_F77=: 15396 hardcode_direct_F77=yes 15397 15398 # hardcode_minus_L: Not really in the search PATH, 15399 # but as the default location of the library. 15400 hardcode_minus_L_F77=yes 15401 export_dynamic_flag_spec_F77='${wl}-E' 15402 ;; 15403 15404 hpux10*) 15405 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15406 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15407 else 15408 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15409 fi 15410 if test "$with_gnu_ld" = no; then 15411 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15412 hardcode_libdir_separator_F77=: 15413 15414 hardcode_direct_F77=yes 15415 export_dynamic_flag_spec_F77='${wl}-E' 15416 15417 # hardcode_minus_L: Not really in the search PATH, 15418 # but as the default location of the library. 15419 hardcode_minus_L_F77=yes 15420 fi 15421 ;; 15422 15423 hpux11*) 15424 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15425 case $host_cpu in 15426 hppa*64*) 15427 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15428 ;; 15429 ia64*) 15430 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15431 ;; 15432 *) 15433 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15434 ;; 15435 esac 15436 else 15437 case $host_cpu in 15438 hppa*64*) 15439 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15440 ;; 15441 ia64*) 15442 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15443 ;; 15444 *) 15445 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15446 ;; 15447 esac 15448 fi 15449 if test "$with_gnu_ld" = no; then 15450 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15451 hardcode_libdir_separator_F77=: 15452 15453 case $host_cpu in 15454 hppa*64*|ia64*) 15455 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15456 hardcode_direct_F77=no 15457 hardcode_shlibpath_var_F77=no 15458 ;; 15459 *) 15460 hardcode_direct_F77=yes 15461 export_dynamic_flag_spec_F77='${wl}-E' 15462 15463 # hardcode_minus_L: Not really in the search PATH, 15464 # but as the default location of the library. 15465 hardcode_minus_L_F77=yes 15466 ;; 15467 esac 15468 fi 15469 ;; 15470 15471 irix5* | irix6* | nonstopux*) 15472 if test "$GCC" = yes; then 15473 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' 15474 else 15475 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' 15476 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 15477 fi 15478 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15479 hardcode_libdir_separator_F77=: 15480 link_all_deplibs_F77=yes 15481 ;; 15482 15483 netbsd*) 15484 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15485 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15486 else 15487 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15488 fi 15489 hardcode_libdir_flag_spec_F77='-R$libdir' 15490 hardcode_direct_F77=yes 15491 hardcode_shlibpath_var_F77=no 15492 ;; 15493 15494 newsos6) 15495 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15496 hardcode_direct_F77=yes 15497 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15498 hardcode_libdir_separator_F77=: 15499 hardcode_shlibpath_var_F77=no 15500 ;; 15501 15502 openbsd*) 15503 if test -f /usr/libexec/ld.so; then 15504 hardcode_direct_F77=yes 15505 hardcode_shlibpath_var_F77=no 15506 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15507 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15508 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15509 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15510 export_dynamic_flag_spec_F77='${wl}-E' 15511 else 15512 case $host_os in 15513 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15514 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15515 hardcode_libdir_flag_spec_F77='-R$libdir' 15516 ;; 15517 *) 15518 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15519 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15520 ;; 15521 esac 15522 fi 15523 else 15524 ld_shlibs_F77=no 15525 fi 15526 ;; 15527 15528 os2*) 15529 hardcode_libdir_flag_spec_F77='-L$libdir' 15530 hardcode_minus_L_F77=yes 15531 allow_undefined_flag_F77=unsupported 15532 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' 15533 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15534 ;; 15535 15536 osf3*) 15537 if test "$GCC" = yes; then 15538 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15539 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' 15540 else 15541 allow_undefined_flag_F77=' -expect_unresolved \*' 15542 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' 15543 fi 15544 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15545 hardcode_libdir_separator_F77=: 15546 ;; 15547 15548 osf4* | osf5*) # as osf3* with the addition of -msym flag 15549 if test "$GCC" = yes; then 15550 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15551 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' 15552 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15553 else 15554 allow_undefined_flag_F77=' -expect_unresolved \*' 15555 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' 15556 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~ 15557 $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' 15558 15559 # Both c and cxx compiler support -rpath directly 15560 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15561 fi 15562 hardcode_libdir_separator_F77=: 15563 ;; 15564 15565 solaris*) 15566 no_undefined_flag_F77=' -z text' 15567 if test "$GCC" = yes; then 15568 wlarc='${wl}' 15569 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15570 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15571 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15572 else 15573 wlarc='' 15574 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15575 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15576 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15577 fi 15578 hardcode_libdir_flag_spec_F77='-R$libdir' 15579 hardcode_shlibpath_var_F77=no 15580 case $host_os in 15581 solaris2.[0-5] | solaris2.[0-5].*) ;; 15582 *) 15583 # The compiler driver will combine and reorder linker options, 15584 # but understands `-z linker_flag'. GCC discards it without `$wl', 15585 # but is careful enough not to reorder. 15586 # Supported since Solaris 2.6 (maybe 2.5.1?) 15587 if test "$GCC" = yes; then 15588 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 15589 else 15590 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' 15591 fi 15592 ;; 15593 esac 15594 link_all_deplibs_F77=yes 15595 ;; 15596 15597 sunos4*) 15598 if test "x$host_vendor" = xsequent; then 15599 # Use $CC to link under sequent, because it throws in some extra .o 15600 # files that make .init and .fini sections work. 15601 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15602 else 15603 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15604 fi 15605 hardcode_libdir_flag_spec_F77='-L$libdir' 15606 hardcode_direct_F77=yes 15607 hardcode_minus_L_F77=yes 15608 hardcode_shlibpath_var_F77=no 15609 ;; 15610 15611 sysv4) 15612 case $host_vendor in 15613 sni) 15614 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15615 hardcode_direct_F77=yes # is this really true??? 15616 ;; 15617 siemens) 15618 ## LD is ld it makes a PLAMLIB 15619 ## CC just makes a GrossModule. 15620 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15621 reload_cmds_F77='$CC -r -o $output$reload_objs' 15622 hardcode_direct_F77=no 15623 ;; 15624 motorola) 15625 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15626 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15627 ;; 15628 esac 15629 runpath_var='LD_RUN_PATH' 15630 hardcode_shlibpath_var_F77=no 15631 ;; 15632 15633 sysv4.3*) 15634 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15635 hardcode_shlibpath_var_F77=no 15636 export_dynamic_flag_spec_F77='-Bexport' 15637 ;; 15638 15639 sysv4*MP*) 15640 if test -d /usr/nec; then 15641 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15642 hardcode_shlibpath_var_F77=no 15643 runpath_var=LD_RUN_PATH 15644 hardcode_runpath_var=yes 15645 ld_shlibs_F77=yes 15646 fi 15647 ;; 15648 15649 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15650 no_undefined_flag_F77='${wl}-z,text' 15651 archive_cmds_need_lc_F77=no 15652 hardcode_shlibpath_var_F77=no 15653 runpath_var='LD_RUN_PATH' 15654 15655 if test "$GCC" = yes; then 15656 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15657 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15658 else 15659 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15660 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15661 fi 15662 ;; 15663 15664 sysv5* | sco3.2v5* | sco5v6*) 15665 # Note: We can NOT use -z defs as we might desire, because we do not 15666 # link with -lc, and that would cause any symbols used from libc to 15667 # always be unresolved, which means just about no library would 15668 # ever link correctly. If we're not using GNU ld we use -z text 15669 # though, which does catch some bad symbols but isn't as heavy-handed 15670 # as -z defs. 15671 no_undefined_flag_F77='${wl}-z,text' 15672 allow_undefined_flag_F77='${wl}-z,nodefs' 15673 archive_cmds_need_lc_F77=no 15674 hardcode_shlibpath_var_F77=no 15675 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15676 hardcode_libdir_separator_F77=':' 15677 link_all_deplibs_F77=yes 15678 export_dynamic_flag_spec_F77='${wl}-Bexport' 15679 runpath_var='LD_RUN_PATH' 15680 15681 if test "$GCC" = yes; then 15682 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15683 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15684 else 15685 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15686 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15687 fi 15688 ;; 15689 15690 uts4*) 15691 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15692 hardcode_libdir_flag_spec_F77='-L$libdir' 15693 hardcode_shlibpath_var_F77=no 15694 ;; 15695 15696 *) 15697 ld_shlibs_F77=no 15698 ;; 15699 esac 15700 fi 15701 15702{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15703$as_echo "$ld_shlibs_F77" >&6; } 15704test "$ld_shlibs_F77" = no && can_build_shared=no 15705 15706# 15707# Do we need to explicitly link libc? 15708# 15709case "x$archive_cmds_need_lc_F77" in 15710x|xyes) 15711 # Assume -lc should be added 15712 archive_cmds_need_lc_F77=yes 15713 15714 if test "$enable_shared" = yes && test "$GCC" = yes; then 15715 case $archive_cmds_F77 in 15716 *'~'*) 15717 # FIXME: we may have to deal with multi-command sequences. 15718 ;; 15719 '$CC '*) 15720 # Test whether the compiler implicitly links with -lc since on some 15721 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15722 # to ld, don't add -lc before -lgcc. 15723 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15724$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15725 $rm conftest* 15726 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15727 15728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15729 (eval $ac_compile) 2>&5 15730 ac_status=$? 15731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15732 (exit $ac_status); } 2>conftest.err; then 15733 soname=conftest 15734 lib=conftest 15735 libobjs=conftest.$ac_objext 15736 deplibs= 15737 wl=$lt_prog_compiler_wl_F77 15738 pic_flag=$lt_prog_compiler_pic_F77 15739 compiler_flags=-v 15740 linker_flags=-v 15741 verstring= 15742 output_objdir=. 15743 libname=conftest 15744 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15745 allow_undefined_flag_F77= 15746 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15747 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15748 ac_status=$? 15749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15750 (exit $ac_status); } 15751 then 15752 archive_cmds_need_lc_F77=no 15753 else 15754 archive_cmds_need_lc_F77=yes 15755 fi 15756 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15757 else 15758 cat conftest.err 1>&5 15759 fi 15760 $rm conftest* 15761 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15762$as_echo "$archive_cmds_need_lc_F77" >&6; } 15763 ;; 15764 esac 15765 fi 15766 ;; 15767esac 15768 15769{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15770$as_echo_n "checking dynamic linker characteristics... " >&6; } 15771library_names_spec= 15772libname_spec='lib$name' 15773soname_spec= 15774shrext_cmds=".so" 15775postinstall_cmds= 15776postuninstall_cmds= 15777finish_cmds= 15778finish_eval= 15779shlibpath_var= 15780shlibpath_overrides_runpath=unknown 15781version_type=none 15782dynamic_linker="$host_os ld.so" 15783sys_lib_dlsearch_path_spec="/lib /usr/lib" 15784 15785need_lib_prefix=unknown 15786hardcode_into_libs=no 15787 15788# when you set need_version to no, make sure it does not cause -set_version 15789# flags to be left without arguments 15790need_version=unknown 15791 15792case $host_os in 15793aix3*) 15794 version_type=linux 15795 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15796 shlibpath_var=LIBPATH 15797 15798 # AIX 3 has no versioning support, so we append a major version to the name. 15799 soname_spec='${libname}${release}${shared_ext}$major' 15800 ;; 15801 15802aix[4-9]*) 15803 version_type=linux 15804 need_lib_prefix=no 15805 need_version=no 15806 hardcode_into_libs=yes 15807 if test "$host_cpu" = ia64; then 15808 # AIX 5 supports IA64 15809 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15810 shlibpath_var=LD_LIBRARY_PATH 15811 else 15812 # With GCC up to 2.95.x, collect2 would create an import file 15813 # for dependence libraries. The import file would start with 15814 # the line `#! .'. This would cause the generated library to 15815 # depend on `.', always an invalid library. This was fixed in 15816 # development snapshots of GCC prior to 3.0. 15817 case $host_os in 15818 aix4 | aix4.[01] | aix4.[01].*) 15819 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15820 echo ' yes ' 15821 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15822 : 15823 else 15824 can_build_shared=no 15825 fi 15826 ;; 15827 esac 15828 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15829 # soname into executable. Probably we can add versioning support to 15830 # collect2, so additional links can be useful in future. 15831 if test "$aix_use_runtimelinking" = yes; then 15832 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15833 # instead of lib<name>.a to let people know that these are not 15834 # typical AIX shared libraries. 15835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15836 else 15837 # We preserve .a as extension for shared libraries through AIX4.2 15838 # and later when we are not doing run time linking. 15839 library_names_spec='${libname}${release}.a $libname.a' 15840 soname_spec='${libname}${release}${shared_ext}$major' 15841 fi 15842 shlibpath_var=LIBPATH 15843 fi 15844 ;; 15845 15846amigaos*) 15847 library_names_spec='$libname.ixlibrary $libname.a' 15848 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15849 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' 15850 ;; 15851 15852beos*) 15853 library_names_spec='${libname}${shared_ext}' 15854 dynamic_linker="$host_os ld.so" 15855 shlibpath_var=LIBRARY_PATH 15856 ;; 15857 15858bsdi[45]*) 15859 version_type=linux 15860 need_version=no 15861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15862 soname_spec='${libname}${release}${shared_ext}$major' 15863 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15864 shlibpath_var=LD_LIBRARY_PATH 15865 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15866 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15867 # the default ld.so.conf also contains /usr/contrib/lib and 15868 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15869 # libtool to hard-code these into programs 15870 ;; 15871 15872cygwin* | mingw* | pw32*) 15873 version_type=windows 15874 shrext_cmds=".dll" 15875 need_version=no 15876 need_lib_prefix=no 15877 15878 case $GCC,$host_os in 15879 yes,cygwin* | yes,mingw* | yes,pw32*) 15880 library_names_spec='$libname.dll.a' 15881 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15882 postinstall_cmds='base_file=`basename \${file}`~ 15883 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15884 dldir=$destdir/`dirname \$dlpath`~ 15885 test -d \$dldir || mkdir -p \$dldir~ 15886 $install_prog $dir/$dlname \$dldir/$dlname~ 15887 chmod a+x \$dldir/$dlname' 15888 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15889 dlpath=$dir/\$dldll~ 15890 $rm \$dlpath' 15891 shlibpath_overrides_runpath=yes 15892 15893 case $host_os in 15894 cygwin*) 15895 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15896 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15897 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15898 ;; 15899 mingw*) 15900 # MinGW DLLs use traditional 'lib' prefix 15901 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15902 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15903 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15904 # It is most probably a Windows format PATH printed by 15905 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15906 # path with ; separators, and with drive letters. We can handle the 15907 # drive letters (cygwin fileutils understands them), so leave them, 15908 # especially as we might pass files found there to a mingw objdump, 15909 # which wouldn't understand a cygwinified path. Ahh. 15910 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15911 else 15912 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15913 fi 15914 ;; 15915 pw32*) 15916 # pw32 DLLs use 'pw' prefix rather than 'lib' 15917 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15918 ;; 15919 esac 15920 ;; 15921 15922 *) 15923 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15924 ;; 15925 esac 15926 dynamic_linker='Win32 ld.exe' 15927 # FIXME: first we should search . and the directory the executable is in 15928 shlibpath_var=PATH 15929 ;; 15930 15931darwin* | rhapsody*) 15932 dynamic_linker="$host_os dyld" 15933 version_type=darwin 15934 need_lib_prefix=no 15935 need_version=no 15936 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15937 soname_spec='${libname}${release}${major}$shared_ext' 15938 shlibpath_overrides_runpath=yes 15939 shlibpath_var=DYLD_LIBRARY_PATH 15940 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15941 15942 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15943 ;; 15944 15945dgux*) 15946 version_type=linux 15947 need_lib_prefix=no 15948 need_version=no 15949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15950 soname_spec='${libname}${release}${shared_ext}$major' 15951 shlibpath_var=LD_LIBRARY_PATH 15952 ;; 15953 15954freebsd1*) 15955 dynamic_linker=no 15956 ;; 15957 15958freebsd* | dragonfly*) 15959 # DragonFly does not have aout. When/if they implement a new 15960 # versioning mechanism, adjust this. 15961 if test -x /usr/bin/objformat; then 15962 objformat=`/usr/bin/objformat` 15963 else 15964 case $host_os in 15965 freebsd[123]*) objformat=aout ;; 15966 *) objformat=elf ;; 15967 esac 15968 fi 15969 version_type=freebsd-$objformat 15970 case $version_type in 15971 freebsd-elf*) 15972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15973 need_version=no 15974 need_lib_prefix=no 15975 ;; 15976 freebsd-*) 15977 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15978 need_version=yes 15979 ;; 15980 esac 15981 shlibpath_var=LD_LIBRARY_PATH 15982 case $host_os in 15983 freebsd2*) 15984 shlibpath_overrides_runpath=yes 15985 ;; 15986 freebsd3.[01]* | freebsdelf3.[01]*) 15987 shlibpath_overrides_runpath=yes 15988 hardcode_into_libs=yes 15989 ;; 15990 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15991 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15992 shlibpath_overrides_runpath=no 15993 hardcode_into_libs=yes 15994 ;; 15995 *) # from 4.6 on, and DragonFly 15996 shlibpath_overrides_runpath=yes 15997 hardcode_into_libs=yes 15998 ;; 15999 esac 16000 ;; 16001 16002gnu*) 16003 version_type=linux 16004 need_lib_prefix=no 16005 need_version=no 16006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16007 soname_spec='${libname}${release}${shared_ext}$major' 16008 shlibpath_var=LD_LIBRARY_PATH 16009 hardcode_into_libs=yes 16010 ;; 16011 16012hpux9* | hpux10* | hpux11*) 16013 # Give a soname corresponding to the major version so that dld.sl refuses to 16014 # link against other versions. 16015 version_type=sunos 16016 need_lib_prefix=no 16017 need_version=no 16018 case $host_cpu in 16019 ia64*) 16020 shrext_cmds='.so' 16021 hardcode_into_libs=yes 16022 dynamic_linker="$host_os dld.so" 16023 shlibpath_var=LD_LIBRARY_PATH 16024 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16026 soname_spec='${libname}${release}${shared_ext}$major' 16027 if test "X$HPUX_IA64_MODE" = X32; then 16028 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16029 else 16030 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16031 fi 16032 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16033 ;; 16034 hppa*64*) 16035 shrext_cmds='.sl' 16036 hardcode_into_libs=yes 16037 dynamic_linker="$host_os dld.sl" 16038 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16039 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16041 soname_spec='${libname}${release}${shared_ext}$major' 16042 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16043 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16044 ;; 16045 *) 16046 shrext_cmds='.sl' 16047 dynamic_linker="$host_os dld.sl" 16048 shlibpath_var=SHLIB_PATH 16049 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16051 soname_spec='${libname}${release}${shared_ext}$major' 16052 ;; 16053 esac 16054 # HP-UX runs *really* slowly unless shared libraries are mode 555. 16055 postinstall_cmds='chmod 555 $lib' 16056 ;; 16057 16058interix[3-9]*) 16059 version_type=linux 16060 need_lib_prefix=no 16061 need_version=no 16062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16063 soname_spec='${libname}${release}${shared_ext}$major' 16064 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16065 shlibpath_var=LD_LIBRARY_PATH 16066 shlibpath_overrides_runpath=no 16067 hardcode_into_libs=yes 16068 ;; 16069 16070irix5* | irix6* | nonstopux*) 16071 case $host_os in 16072 nonstopux*) version_type=nonstopux ;; 16073 *) 16074 if test "$lt_cv_prog_gnu_ld" = yes; then 16075 version_type=linux 16076 else 16077 version_type=irix 16078 fi ;; 16079 esac 16080 need_lib_prefix=no 16081 need_version=no 16082 soname_spec='${libname}${release}${shared_ext}$major' 16083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16084 case $host_os in 16085 irix5* | nonstopux*) 16086 libsuff= shlibsuff= 16087 ;; 16088 *) 16089 case $LD in # libtool.m4 will add one of these switches to LD 16090 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16091 libsuff= shlibsuff= libmagic=32-bit;; 16092 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16093 libsuff=32 shlibsuff=N32 libmagic=N32;; 16094 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16095 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16096 *) libsuff= shlibsuff= libmagic=never-match;; 16097 esac 16098 ;; 16099 esac 16100 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16101 shlibpath_overrides_runpath=no 16102 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16103 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16104 hardcode_into_libs=yes 16105 ;; 16106 16107# No shared lib support for Linux oldld, aout, or coff. 16108linux*oldld* | linux*aout* | linux*coff*) 16109 dynamic_linker=no 16110 ;; 16111 16112# This must be Linux ELF. 16113linux* | k*bsd*-gnu) 16114 version_type=linux 16115 need_lib_prefix=no 16116 need_version=no 16117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16118 soname_spec='${libname}${release}${shared_ext}$major' 16119 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16120 shlibpath_var=LD_LIBRARY_PATH 16121 shlibpath_overrides_runpath=no 16122 # This implies no fast_install, which is unacceptable. 16123 # Some rework will be needed to allow for fast_install 16124 # before this can be enabled. 16125 hardcode_into_libs=yes 16126 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16127 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16128 16129 # Append ld.so.conf contents to the search path 16130 if test -f /etc/ld.so.conf; then 16131 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' ' '` 16132 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 16133 fi 16134 16135 # We used to test for /lib/ld.so.1 and disable shared libraries on 16136 # powerpc, because MkLinux only supported shared libraries with the 16137 # GNU dynamic linker. Since this was broken with cross compilers, 16138 # most powerpc-linux boxes support dynamic linking these days and 16139 # people can always --disable-shared, the test was removed, and we 16140 # assume the GNU/Linux dynamic linker is in use. 16141 dynamic_linker='GNU/Linux ld.so' 16142 ;; 16143 16144netbsd*) 16145 version_type=sunos 16146 need_lib_prefix=no 16147 need_version=no 16148 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16150 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16151 dynamic_linker='NetBSD (a.out) ld.so' 16152 else 16153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16154 soname_spec='${libname}${release}${shared_ext}$major' 16155 dynamic_linker='NetBSD ld.elf_so' 16156 fi 16157 shlibpath_var=LD_LIBRARY_PATH 16158 shlibpath_overrides_runpath=yes 16159 hardcode_into_libs=yes 16160 ;; 16161 16162newsos6) 16163 version_type=linux 16164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16165 shlibpath_var=LD_LIBRARY_PATH 16166 shlibpath_overrides_runpath=yes 16167 ;; 16168 16169nto-qnx*) 16170 version_type=linux 16171 need_lib_prefix=no 16172 need_version=no 16173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16174 soname_spec='${libname}${release}${shared_ext}$major' 16175 shlibpath_var=LD_LIBRARY_PATH 16176 shlibpath_overrides_runpath=yes 16177 ;; 16178 16179openbsd*) 16180 version_type=sunos 16181 sys_lib_dlsearch_path_spec="/usr/lib" 16182 need_lib_prefix=no 16183 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16184 case $host_os in 16185 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16186 *) need_version=no ;; 16187 esac 16188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16189 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16190 shlibpath_var=LD_LIBRARY_PATH 16191 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16192 case $host_os in 16193 openbsd2.[89] | openbsd2.[89].*) 16194 shlibpath_overrides_runpath=no 16195 ;; 16196 *) 16197 shlibpath_overrides_runpath=yes 16198 ;; 16199 esac 16200 else 16201 shlibpath_overrides_runpath=yes 16202 fi 16203 ;; 16204 16205os2*) 16206 libname_spec='$name' 16207 shrext_cmds=".dll" 16208 need_lib_prefix=no 16209 library_names_spec='$libname${shared_ext} $libname.a' 16210 dynamic_linker='OS/2 ld.exe' 16211 shlibpath_var=LIBPATH 16212 ;; 16213 16214osf3* | osf4* | osf5*) 16215 version_type=osf 16216 need_lib_prefix=no 16217 need_version=no 16218 soname_spec='${libname}${release}${shared_ext}$major' 16219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16220 shlibpath_var=LD_LIBRARY_PATH 16221 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16222 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16223 ;; 16224 16225rdos*) 16226 dynamic_linker=no 16227 ;; 16228 16229solaris*) 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 shlibpath_var=LD_LIBRARY_PATH 16236 shlibpath_overrides_runpath=yes 16237 hardcode_into_libs=yes 16238 # ldd complains unless libraries are executable 16239 postinstall_cmds='chmod +x $lib' 16240 ;; 16241 16242sunos4*) 16243 version_type=sunos 16244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16245 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16246 shlibpath_var=LD_LIBRARY_PATH 16247 shlibpath_overrides_runpath=yes 16248 if test "$with_gnu_ld" = yes; then 16249 need_lib_prefix=no 16250 fi 16251 need_version=yes 16252 ;; 16253 16254sysv4 | sysv4.3*) 16255 version_type=linux 16256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16257 soname_spec='${libname}${release}${shared_ext}$major' 16258 shlibpath_var=LD_LIBRARY_PATH 16259 case $host_vendor in 16260 sni) 16261 shlibpath_overrides_runpath=no 16262 need_lib_prefix=no 16263 export_dynamic_flag_spec='${wl}-Blargedynsym' 16264 runpath_var=LD_RUN_PATH 16265 ;; 16266 siemens) 16267 need_lib_prefix=no 16268 ;; 16269 motorola) 16270 need_lib_prefix=no 16271 need_version=no 16272 shlibpath_overrides_runpath=no 16273 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16274 ;; 16275 esac 16276 ;; 16277 16278sysv4*MP*) 16279 if test -d /usr/nec ;then 16280 version_type=linux 16281 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16282 soname_spec='$libname${shared_ext}.$major' 16283 shlibpath_var=LD_LIBRARY_PATH 16284 fi 16285 ;; 16286 16287sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16288 version_type=freebsd-elf 16289 need_lib_prefix=no 16290 need_version=no 16291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16292 soname_spec='${libname}${release}${shared_ext}$major' 16293 shlibpath_var=LD_LIBRARY_PATH 16294 hardcode_into_libs=yes 16295 if test "$with_gnu_ld" = yes; then 16296 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16297 shlibpath_overrides_runpath=no 16298 else 16299 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16300 shlibpath_overrides_runpath=yes 16301 case $host_os in 16302 sco3.2v5*) 16303 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16304 ;; 16305 esac 16306 fi 16307 sys_lib_dlsearch_path_spec='/usr/lib' 16308 ;; 16309 16310uts4*) 16311 version_type=linux 16312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16313 soname_spec='${libname}${release}${shared_ext}$major' 16314 shlibpath_var=LD_LIBRARY_PATH 16315 ;; 16316 16317*) 16318 dynamic_linker=no 16319 ;; 16320esac 16321{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16322$as_echo "$dynamic_linker" >&6; } 16323test "$dynamic_linker" = no && can_build_shared=no 16324 16325if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 16326 $as_echo_n "(cached) " >&6 16327else 16328 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 16329fi 16330 16331sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 16332if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 16333 $as_echo_n "(cached) " >&6 16334else 16335 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 16336fi 16337 16338sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 16339 16340variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16341if test "$GCC" = yes; then 16342 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16343fi 16344 16345{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16346$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16347hardcode_action_F77= 16348if test -n "$hardcode_libdir_flag_spec_F77" || \ 16349 test -n "$runpath_var_F77" || \ 16350 test "X$hardcode_automatic_F77" = "Xyes" ; then 16351 16352 # We can hardcode non-existant directories. 16353 if test "$hardcode_direct_F77" != no && 16354 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16355 # have to relink, otherwise we might link with an installed library 16356 # when we should be linking with a yet-to-be-installed one 16357 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 16358 test "$hardcode_minus_L_F77" != no; then 16359 # Linking always hardcodes the temporary library directory. 16360 hardcode_action_F77=relink 16361 else 16362 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16363 hardcode_action_F77=immediate 16364 fi 16365else 16366 # We cannot hardcode anything, or else we can only hardcode existing 16367 # directories. 16368 hardcode_action_F77=unsupported 16369fi 16370{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 16371$as_echo "$hardcode_action_F77" >&6; } 16372 16373if test "$hardcode_action_F77" = relink; then 16374 # Fast installation is not supported 16375 enable_fast_install=no 16376elif test "$shlibpath_overrides_runpath" = yes || 16377 test "$enable_shared" = no; then 16378 # Fast installation is not necessary 16379 enable_fast_install=needless 16380fi 16381 16382 16383# The else clause should only fire when bootstrapping the 16384# libtool distribution, otherwise you forgot to ship ltmain.sh 16385# with your package, and you will get complaints that there are 16386# no rules to generate ltmain.sh. 16387if test -f "$ltmain"; then 16388 # See if we are running on zsh, and set the options which allow our commands through 16389 # without removal of \ escapes. 16390 if test -n "${ZSH_VERSION+set}" ; then 16391 setopt NO_GLOB_SUBST 16392 fi 16393 # Now quote all the things that may contain metacharacters while being 16394 # careful not to overquote the AC_SUBSTed values. We take copies of the 16395 # variables and quote the copies for generation of the libtool script. 16396 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 16397 SED SHELL STRIP \ 16398 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16399 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16400 deplibs_check_method reload_flag reload_cmds need_locks \ 16401 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16402 lt_cv_sys_global_symbol_to_c_name_address \ 16403 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16404 old_postinstall_cmds old_postuninstall_cmds \ 16405 compiler_F77 \ 16406 CC_F77 \ 16407 LD_F77 \ 16408 lt_prog_compiler_wl_F77 \ 16409 lt_prog_compiler_pic_F77 \ 16410 lt_prog_compiler_static_F77 \ 16411 lt_prog_compiler_no_builtin_flag_F77 \ 16412 export_dynamic_flag_spec_F77 \ 16413 thread_safe_flag_spec_F77 \ 16414 whole_archive_flag_spec_F77 \ 16415 enable_shared_with_static_runtimes_F77 \ 16416 old_archive_cmds_F77 \ 16417 old_archive_from_new_cmds_F77 \ 16418 predep_objects_F77 \ 16419 postdep_objects_F77 \ 16420 predeps_F77 \ 16421 postdeps_F77 \ 16422 compiler_lib_search_path_F77 \ 16423 compiler_lib_search_dirs_F77 \ 16424 archive_cmds_F77 \ 16425 archive_expsym_cmds_F77 \ 16426 postinstall_cmds_F77 \ 16427 postuninstall_cmds_F77 \ 16428 old_archive_from_expsyms_cmds_F77 \ 16429 allow_undefined_flag_F77 \ 16430 no_undefined_flag_F77 \ 16431 export_symbols_cmds_F77 \ 16432 hardcode_libdir_flag_spec_F77 \ 16433 hardcode_libdir_flag_spec_ld_F77 \ 16434 hardcode_libdir_separator_F77 \ 16435 hardcode_automatic_F77 \ 16436 module_cmds_F77 \ 16437 module_expsym_cmds_F77 \ 16438 lt_cv_prog_compiler_c_o_F77 \ 16439 fix_srcfile_path_F77 \ 16440 exclude_expsyms_F77 \ 16441 include_expsyms_F77; do 16442 16443 case $var in 16444 old_archive_cmds_F77 | \ 16445 old_archive_from_new_cmds_F77 | \ 16446 archive_cmds_F77 | \ 16447 archive_expsym_cmds_F77 | \ 16448 module_cmds_F77 | \ 16449 module_expsym_cmds_F77 | \ 16450 old_archive_from_expsyms_cmds_F77 | \ 16451 export_symbols_cmds_F77 | \ 16452 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16453 postinstall_cmds | postuninstall_cmds | \ 16454 old_postinstall_cmds | old_postuninstall_cmds | \ 16455 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16456 # Double-quote double-evaled strings. 16457 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16458 ;; 16459 *) 16460 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16461 ;; 16462 esac 16463 done 16464 16465 case $lt_echo in 16466 *'\$0 --fallback-echo"') 16467 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16468 ;; 16469 esac 16470 16471cfgfile="$ofile" 16472 16473 cat <<__EOF__ >> "$cfgfile" 16474# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16475 16476# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16477 16478# Shell to use when invoking shell scripts. 16479SHELL=$lt_SHELL 16480 16481# Whether or not to build shared libraries. 16482build_libtool_libs=$enable_shared 16483 16484# Whether or not to build static libraries. 16485build_old_libs=$enable_static 16486 16487# Whether or not to add -lc for building shared libraries. 16488build_libtool_need_lc=$archive_cmds_need_lc_F77 16489 16490# Whether or not to disallow shared libs when runtime libs are static 16491allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 16492 16493# Whether or not to optimize for fast installation. 16494fast_install=$enable_fast_install 16495 16496# The host system. 16497host_alias=$host_alias 16498host=$host 16499host_os=$host_os 16500 16501# The build system. 16502build_alias=$build_alias 16503build=$build 16504build_os=$build_os 16505 16506# An echo program that does not interpret backslashes. 16507echo=$lt_echo 16508 16509# The archiver. 16510AR=$lt_AR 16511AR_FLAGS=$lt_AR_FLAGS 16512 16513# A C compiler. 16514LTCC=$lt_LTCC 16515 16516# LTCC compiler flags. 16517LTCFLAGS=$lt_LTCFLAGS 16518 16519# A language-specific compiler. 16520CC=$lt_compiler_F77 16521 16522# Is the compiler the GNU C compiler? 16523with_gcc=$GCC_F77 16524 16525# An ERE matcher. 16526EGREP=$lt_EGREP 16527 16528# The linker used to build libraries. 16529LD=$lt_LD_F77 16530 16531# Whether we need hard or soft links. 16532LN_S=$lt_LN_S 16533 16534# A BSD-compatible nm program. 16535NM=$lt_NM 16536 16537# A symbol stripping program 16538STRIP=$lt_STRIP 16539 16540# Used to examine libraries when file_magic_cmd begins "file" 16541MAGIC_CMD=$MAGIC_CMD 16542 16543# Used on cygwin: DLL creation program. 16544DLLTOOL="$DLLTOOL" 16545 16546# Used on cygwin: object dumper. 16547OBJDUMP="$OBJDUMP" 16548 16549# Used on cygwin: assembler. 16550AS="$AS" 16551 16552# The name of the directory that contains temporary libtool files. 16553objdir=$objdir 16554 16555# How to create reloadable object files. 16556reload_flag=$lt_reload_flag 16557reload_cmds=$lt_reload_cmds 16558 16559# How to pass a linker flag through the compiler. 16560wl=$lt_lt_prog_compiler_wl_F77 16561 16562# Object file suffix (normally "o"). 16563objext="$ac_objext" 16564 16565# Old archive suffix (normally "a"). 16566libext="$libext" 16567 16568# Shared library suffix (normally ".so"). 16569shrext_cmds='$shrext_cmds' 16570 16571# Executable file suffix (normally ""). 16572exeext="$exeext" 16573 16574# Additional compiler flags for building library objects. 16575pic_flag=$lt_lt_prog_compiler_pic_F77 16576pic_mode=$pic_mode 16577 16578# What is the maximum length of a command? 16579max_cmd_len=$lt_cv_sys_max_cmd_len 16580 16581# Does compiler simultaneously support -c and -o options? 16582compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16583 16584# Must we lock files when doing compilation? 16585need_locks=$lt_need_locks 16586 16587# Do we need the lib prefix for modules? 16588need_lib_prefix=$need_lib_prefix 16589 16590# Do we need a version for libraries? 16591need_version=$need_version 16592 16593# Whether dlopen is supported. 16594dlopen_support=$enable_dlopen 16595 16596# Whether dlopen of programs is supported. 16597dlopen_self=$enable_dlopen_self 16598 16599# Whether dlopen of statically linked programs is supported. 16600dlopen_self_static=$enable_dlopen_self_static 16601 16602# Compiler flag to prevent dynamic linking. 16603link_static_flag=$lt_lt_prog_compiler_static_F77 16604 16605# Compiler flag to turn off builtin functions. 16606no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16607 16608# Compiler flag to allow reflexive dlopens. 16609export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16610 16611# Compiler flag to generate shared objects directly from archives. 16612whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16613 16614# Compiler flag to generate thread-safe objects. 16615thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16616 16617# Library versioning type. 16618version_type=$version_type 16619 16620# Format of library name prefix. 16621libname_spec=$lt_libname_spec 16622 16623# List of archive names. First name is the real one, the rest are links. 16624# The last name is the one that the linker finds with -lNAME. 16625library_names_spec=$lt_library_names_spec 16626 16627# The coded name of the library, if different from the real name. 16628soname_spec=$lt_soname_spec 16629 16630# Commands used to build and install an old-style archive. 16631RANLIB=$lt_RANLIB 16632old_archive_cmds=$lt_old_archive_cmds_F77 16633old_postinstall_cmds=$lt_old_postinstall_cmds 16634old_postuninstall_cmds=$lt_old_postuninstall_cmds 16635 16636# Create an old-style archive from a shared archive. 16637old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16638 16639# Create a temporary old-style archive to link instead of a shared archive. 16640old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16641 16642# Commands used to build and install a shared archive. 16643archive_cmds=$lt_archive_cmds_F77 16644archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16645postinstall_cmds=$lt_postinstall_cmds 16646postuninstall_cmds=$lt_postuninstall_cmds 16647 16648# Commands used to build a loadable module (assumed same as above if empty) 16649module_cmds=$lt_module_cmds_F77 16650module_expsym_cmds=$lt_module_expsym_cmds_F77 16651 16652# Commands to strip libraries. 16653old_striplib=$lt_old_striplib 16654striplib=$lt_striplib 16655 16656# Dependencies to place before the objects being linked to create a 16657# shared library. 16658predep_objects=$lt_predep_objects_F77 16659 16660# Dependencies to place after the objects being linked to create a 16661# shared library. 16662postdep_objects=$lt_postdep_objects_F77 16663 16664# Dependencies to place before the objects being linked to create a 16665# shared library. 16666predeps=$lt_predeps_F77 16667 16668# Dependencies to place after the objects being linked to create a 16669# shared library. 16670postdeps=$lt_postdeps_F77 16671 16672# The directories searched by this compiler when creating a shared 16673# library 16674compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77 16675 16676# The library search path used internally by the compiler when linking 16677# a shared library. 16678compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16679 16680# Method to check whether dependent libraries are shared objects. 16681deplibs_check_method=$lt_deplibs_check_method 16682 16683# Command to use when deplibs_check_method == file_magic. 16684file_magic_cmd=$lt_file_magic_cmd 16685 16686# Flag that allows shared libraries with undefined symbols to be built. 16687allow_undefined_flag=$lt_allow_undefined_flag_F77 16688 16689# Flag that forces no undefined symbols. 16690no_undefined_flag=$lt_no_undefined_flag_F77 16691 16692# Commands used to finish a libtool library installation in a directory. 16693finish_cmds=$lt_finish_cmds 16694 16695# Same as above, but a single script fragment to be evaled but not shown. 16696finish_eval=$lt_finish_eval 16697 16698# Take the output of nm and produce a listing of raw symbols and C names. 16699global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16700 16701# Transform the output of nm in a proper C declaration 16702global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16703 16704# Transform the output of nm in a C name address pair 16705global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16706 16707# This is the shared library runtime path variable. 16708runpath_var=$runpath_var 16709 16710# This is the shared library path variable. 16711shlibpath_var=$shlibpath_var 16712 16713# Is shlibpath searched before the hard-coded library search path? 16714shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16715 16716# How to hardcode a shared library path into an executable. 16717hardcode_action=$hardcode_action_F77 16718 16719# Whether we should hardcode library paths into libraries. 16720hardcode_into_libs=$hardcode_into_libs 16721 16722# Flag to hardcode \$libdir into a binary during linking. 16723# This must work even if \$libdir does not exist. 16724hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16725 16726# If ld is used when linking, flag to hardcode \$libdir into 16727# a binary during linking. This must work even if \$libdir does 16728# not exist. 16729hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16730 16731# Whether we need a single -rpath flag with a separated argument. 16732hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16733 16734# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16735# resulting binary. 16736hardcode_direct=$hardcode_direct_F77 16737 16738# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16739# resulting binary. 16740hardcode_minus_L=$hardcode_minus_L_F77 16741 16742# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16743# the resulting binary. 16744hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16745 16746# Set to yes if building a shared library automatically hardcodes DIR into the library 16747# and all subsequent libraries and executables linked against it. 16748hardcode_automatic=$hardcode_automatic_F77 16749 16750# Variables whose values should be saved in libtool wrapper scripts and 16751# restored at relink time. 16752variables_saved_for_relink="$variables_saved_for_relink" 16753 16754# Whether libtool must link a program against all its dependency libraries. 16755link_all_deplibs=$link_all_deplibs_F77 16756 16757# Compile-time system search path for libraries 16758sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16759 16760# Run-time system search path for libraries 16761sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16762 16763# Fix the shell variable \$srcfile for the compiler. 16764fix_srcfile_path=$lt_fix_srcfile_path 16765 16766# Set to yes if exported symbols are required. 16767always_export_symbols=$always_export_symbols_F77 16768 16769# The commands to list exported symbols. 16770export_symbols_cmds=$lt_export_symbols_cmds_F77 16771 16772# The commands to extract the exported symbol list from a shared archive. 16773extract_expsyms_cmds=$lt_extract_expsyms_cmds 16774 16775# Symbols that should not be listed in the preloaded symbols. 16776exclude_expsyms=$lt_exclude_expsyms_F77 16777 16778# Symbols that must always be exported. 16779include_expsyms=$lt_include_expsyms_F77 16780 16781# ### END LIBTOOL TAG CONFIG: $tagname 16782 16783__EOF__ 16784 16785 16786else 16787 # If there is no Makefile yet, we rely on a make rule to execute 16788 # `config.status --recheck' to rerun these tests and create the 16789 # libtool script then. 16790 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16791 if test -f "$ltmain_in"; then 16792 test -f Makefile && make "$ltmain" 16793 fi 16794fi 16795 16796 16797ac_ext=c 16798ac_cpp='$CPP $CPPFLAGS' 16799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16801ac_compiler_gnu=$ac_cv_c_compiler_gnu 16802 16803CC="$lt_save_CC" 16804 16805 else 16806 tagname="" 16807 fi 16808 ;; 16809 16810 GCJ) 16811 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16812 16813 16814# Source file extension for Java test sources. 16815ac_ext=java 16816 16817# Object file extension for compiled Java test sources. 16818objext=o 16819objext_GCJ=$objext 16820 16821# Code to be used in simple compile tests 16822lt_simple_compile_test_code="class foo {}" 16823 16824# Code to be used in simple link tests 16825lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' 16826 16827# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16828 16829# If no C compiler was specified, use CC. 16830LTCC=${LTCC-"$CC"} 16831 16832# If no C compiler flags were specified, use CFLAGS. 16833LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16834 16835# Allow CC to be a program name with arguments. 16836compiler=$CC 16837 16838 16839# save warnings/boilerplate of simple test code 16840ac_outfile=conftest.$ac_objext 16841echo "$lt_simple_compile_test_code" >conftest.$ac_ext 16842eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16843_lt_compiler_boilerplate=`cat conftest.err` 16844$rm conftest* 16845 16846ac_outfile=conftest.$ac_objext 16847echo "$lt_simple_link_test_code" >conftest.$ac_ext 16848eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16849_lt_linker_boilerplate=`cat conftest.err` 16850$rm -r conftest* 16851 16852 16853# Allow CC to be a program name with arguments. 16854lt_save_CC="$CC" 16855CC=${GCJ-"gcj"} 16856compiler=$CC 16857compiler_GCJ=$CC 16858for cc_temp in $compiler""; do 16859 case $cc_temp in 16860 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16861 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16862 \-*) ;; 16863 *) break;; 16864 esac 16865done 16866cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16867 16868 16869# GCJ did not exist at the time GCC didn't implicitly link libc in. 16870archive_cmds_need_lc_GCJ=no 16871 16872old_archive_cmds_GCJ=$old_archive_cmds 16873 16874 16875lt_prog_compiler_no_builtin_flag_GCJ= 16876 16877if test "$GCC" = yes; then 16878 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16879 16880 16881{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16882$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 16883if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16884 $as_echo_n "(cached) " >&6 16885else 16886 lt_cv_prog_compiler_rtti_exceptions=no 16887 ac_outfile=conftest.$ac_objext 16888 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16889 lt_compiler_flag="-fno-rtti -fno-exceptions" 16890 # Insert the option either (1) after the last *FLAGS variable, or 16891 # (2) before a word containing "conftest.", or (3) at the end. 16892 # Note that $ac_compile itself does not contain backslashes and begins 16893 # with a dollar sign (not a hyphen), so the echo should work correctly. 16894 # The option is referenced via a variable to avoid confusing sed. 16895 lt_compile=`echo "$ac_compile" | $SED \ 16896 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16897 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16898 -e 's:$: $lt_compiler_flag:'` 16899 (eval echo "\"\$as_me:16899: $lt_compile\"" >&5) 16900 (eval "$lt_compile" 2>conftest.err) 16901 ac_status=$? 16902 cat conftest.err >&5 16903 echo "$as_me:16903: \$? = $ac_status" >&5 16904 if (exit $ac_status) && test -s "$ac_outfile"; then 16905 # The compiler can only warn and ignore the option if not recognized 16906 # So say no if there are warnings other than the usual output. 16907 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16908 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16909 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16910 lt_cv_prog_compiler_rtti_exceptions=yes 16911 fi 16912 fi 16913 $rm conftest* 16914 16915fi 16916{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16917$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16918 16919if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16920 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16921else 16922 : 16923fi 16924 16925fi 16926 16927lt_prog_compiler_wl_GCJ= 16928lt_prog_compiler_pic_GCJ= 16929lt_prog_compiler_static_GCJ= 16930 16931{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16932$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 16933 16934 if test "$GCC" = yes; then 16935 lt_prog_compiler_wl_GCJ='-Wl,' 16936 lt_prog_compiler_static_GCJ='-static' 16937 16938 case $host_os in 16939 aix*) 16940 # All AIX code is PIC. 16941 if test "$host_cpu" = ia64; then 16942 # AIX 5 now supports IA64 processor 16943 lt_prog_compiler_static_GCJ='-Bstatic' 16944 fi 16945 ;; 16946 16947 amigaos*) 16948 # FIXME: we need at least 68020 code to build shared libraries, but 16949 # adding the `-m68020' flag to GCC prevents building anything better, 16950 # like `-m68040'. 16951 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16952 ;; 16953 16954 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16955 # PIC is the default for these OSes. 16956 ;; 16957 16958 mingw* | cygwin* | pw32* | os2*) 16959 # This hack is so that the source file can tell whether it is being 16960 # built for inclusion in a dll (and should export symbols for example). 16961 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16962 # (--disable-auto-import) libraries 16963 16964 ;; 16965 16966 darwin* | rhapsody*) 16967 # PIC is the default on this platform 16968 # Common symbols not allowed in MH_DYLIB files 16969 lt_prog_compiler_pic_GCJ='-fno-common' 16970 ;; 16971 16972 interix[3-9]*) 16973 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16974 # Instead, we relocate shared libraries at runtime. 16975 ;; 16976 16977 msdosdjgpp*) 16978 # Just because we use GCC doesn't mean we suddenly get shared libraries 16979 # on systems that don't support them. 16980 lt_prog_compiler_can_build_shared_GCJ=no 16981 enable_shared=no 16982 ;; 16983 16984 sysv4*MP*) 16985 if test -d /usr/nec; then 16986 lt_prog_compiler_pic_GCJ=-Kconform_pic 16987 fi 16988 ;; 16989 16990 hpux*) 16991 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16992 # not for PA HP-UX. 16993 case $host_cpu in 16994 hppa*64*|ia64*) 16995 # +Z the default 16996 ;; 16997 *) 16998 lt_prog_compiler_pic_GCJ='-fPIC' 16999 ;; 17000 esac 17001 ;; 17002 17003 *) 17004 lt_prog_compiler_pic_GCJ='-fPIC' 17005 ;; 17006 esac 17007 else 17008 # PORTME Check for flag to pass linker flags through the system compiler. 17009 case $host_os in 17010 aix*) 17011 lt_prog_compiler_wl_GCJ='-Wl,' 17012 if test "$host_cpu" = ia64; then 17013 # AIX 5 now supports IA64 processor 17014 lt_prog_compiler_static_GCJ='-Bstatic' 17015 else 17016 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 17017 fi 17018 ;; 17019 darwin*) 17020 # PIC is the default on this platform 17021 # Common symbols not allowed in MH_DYLIB files 17022 case $cc_basename in 17023 xlc*) 17024 lt_prog_compiler_pic_GCJ='-qnocommon' 17025 lt_prog_compiler_wl_GCJ='-Wl,' 17026 ;; 17027 esac 17028 ;; 17029 17030 mingw* | cygwin* | pw32* | os2*) 17031 # This hack is so that the source file can tell whether it is being 17032 # built for inclusion in a dll (and should export symbols for example). 17033 17034 ;; 17035 17036 hpux9* | hpux10* | hpux11*) 17037 lt_prog_compiler_wl_GCJ='-Wl,' 17038 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17039 # not for PA HP-UX. 17040 case $host_cpu in 17041 hppa*64*|ia64*) 17042 # +Z the default 17043 ;; 17044 *) 17045 lt_prog_compiler_pic_GCJ='+Z' 17046 ;; 17047 esac 17048 # Is there a better lt_prog_compiler_static that works with the bundled CC? 17049 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 17050 ;; 17051 17052 irix5* | irix6* | nonstopux*) 17053 lt_prog_compiler_wl_GCJ='-Wl,' 17054 # PIC (with -KPIC) is the default. 17055 lt_prog_compiler_static_GCJ='-non_shared' 17056 ;; 17057 17058 newsos6) 17059 lt_prog_compiler_pic_GCJ='-KPIC' 17060 lt_prog_compiler_static_GCJ='-Bstatic' 17061 ;; 17062 17063 linux* | k*bsd*-gnu) 17064 case $cc_basename in 17065 icc* | ecc*) 17066 lt_prog_compiler_wl_GCJ='-Wl,' 17067 lt_prog_compiler_pic_GCJ='-KPIC' 17068 lt_prog_compiler_static_GCJ='-static' 17069 ;; 17070 pgcc* | pgf77* | pgf90* | pgf95*) 17071 # Portland Group compilers (*not* the Pentium gcc compiler, 17072 # which looks to be a dead project) 17073 lt_prog_compiler_wl_GCJ='-Wl,' 17074 lt_prog_compiler_pic_GCJ='-fpic' 17075 lt_prog_compiler_static_GCJ='-Bstatic' 17076 ;; 17077 ccc*) 17078 lt_prog_compiler_wl_GCJ='-Wl,' 17079 # All Alpha code is PIC. 17080 lt_prog_compiler_static_GCJ='-non_shared' 17081 ;; 17082 *) 17083 case `$CC -V 2>&1 | sed 5q` in 17084 *Sun\ C*) 17085 # Sun C 5.9 17086 lt_prog_compiler_pic_GCJ='-KPIC' 17087 lt_prog_compiler_static_GCJ='-Bstatic' 17088 lt_prog_compiler_wl_GCJ='-Wl,' 17089 ;; 17090 *Sun\ F*) 17091 # Sun Fortran 8.3 passes all unrecognized flags to the linker 17092 lt_prog_compiler_pic_GCJ='-KPIC' 17093 lt_prog_compiler_static_GCJ='-Bstatic' 17094 lt_prog_compiler_wl_GCJ='' 17095 ;; 17096 esac 17097 ;; 17098 esac 17099 ;; 17100 17101 osf3* | osf4* | osf5*) 17102 lt_prog_compiler_wl_GCJ='-Wl,' 17103 # All OSF/1 code is PIC. 17104 lt_prog_compiler_static_GCJ='-non_shared' 17105 ;; 17106 17107 rdos*) 17108 lt_prog_compiler_static_GCJ='-non_shared' 17109 ;; 17110 17111 solaris*) 17112 lt_prog_compiler_pic_GCJ='-KPIC' 17113 lt_prog_compiler_static_GCJ='-Bstatic' 17114 case $cc_basename in 17115 f77* | f90* | f95*) 17116 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 17117 *) 17118 lt_prog_compiler_wl_GCJ='-Wl,';; 17119 esac 17120 ;; 17121 17122 sunos4*) 17123 lt_prog_compiler_wl_GCJ='-Qoption ld ' 17124 lt_prog_compiler_pic_GCJ='-PIC' 17125 lt_prog_compiler_static_GCJ='-Bstatic' 17126 ;; 17127 17128 sysv4 | sysv4.2uw2* | sysv4.3*) 17129 lt_prog_compiler_wl_GCJ='-Wl,' 17130 lt_prog_compiler_pic_GCJ='-KPIC' 17131 lt_prog_compiler_static_GCJ='-Bstatic' 17132 ;; 17133 17134 sysv4*MP*) 17135 if test -d /usr/nec ;then 17136 lt_prog_compiler_pic_GCJ='-Kconform_pic' 17137 lt_prog_compiler_static_GCJ='-Bstatic' 17138 fi 17139 ;; 17140 17141 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 17142 lt_prog_compiler_wl_GCJ='-Wl,' 17143 lt_prog_compiler_pic_GCJ='-KPIC' 17144 lt_prog_compiler_static_GCJ='-Bstatic' 17145 ;; 17146 17147 unicos*) 17148 lt_prog_compiler_wl_GCJ='-Wl,' 17149 lt_prog_compiler_can_build_shared_GCJ=no 17150 ;; 17151 17152 uts4*) 17153 lt_prog_compiler_pic_GCJ='-pic' 17154 lt_prog_compiler_static_GCJ='-Bstatic' 17155 ;; 17156 17157 *) 17158 lt_prog_compiler_can_build_shared_GCJ=no 17159 ;; 17160 esac 17161 fi 17162 17163{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 17164$as_echo "$lt_prog_compiler_pic_GCJ" >&6; } 17165 17166# 17167# Check to make sure the PIC flag actually works. 17168# 17169if test -n "$lt_prog_compiler_pic_GCJ"; then 17170 17171{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 17172$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; } 17173if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then 17174 $as_echo_n "(cached) " >&6 17175else 17176 lt_cv_prog_compiler_pic_works_GCJ=no 17177 ac_outfile=conftest.$ac_objext 17178 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17179 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 17180 # Insert the option either (1) after the last *FLAGS variable, or 17181 # (2) before a word containing "conftest.", or (3) at the end. 17182 # Note that $ac_compile itself does not contain backslashes and begins 17183 # with a dollar sign (not a hyphen), so the echo should work correctly. 17184 # The option is referenced via a variable to avoid confusing sed. 17185 lt_compile=`echo "$ac_compile" | $SED \ 17186 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17187 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17188 -e 's:$: $lt_compiler_flag:'` 17189 (eval echo "\"\$as_me:17189: $lt_compile\"" >&5) 17190 (eval "$lt_compile" 2>conftest.err) 17191 ac_status=$? 17192 cat conftest.err >&5 17193 echo "$as_me:17193: \$? = $ac_status" >&5 17194 if (exit $ac_status) && test -s "$ac_outfile"; then 17195 # The compiler can only warn and ignore the option if not recognized 17196 # So say no if there are warnings other than the usual output. 17197 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17198 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17199 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17200 lt_cv_prog_compiler_pic_works_GCJ=yes 17201 fi 17202 fi 17203 $rm conftest* 17204 17205fi 17206{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5 17207$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; } 17208 17209if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then 17210 case $lt_prog_compiler_pic_GCJ in 17211 "" | " "*) ;; 17212 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 17213 esac 17214else 17215 lt_prog_compiler_pic_GCJ= 17216 lt_prog_compiler_can_build_shared_GCJ=no 17217fi 17218 17219fi 17220case $host_os in 17221 # For platforms which do not support PIC, -DPIC is meaningless: 17222 *djgpp*) 17223 lt_prog_compiler_pic_GCJ= 17224 ;; 17225 *) 17226 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 17227 ;; 17228esac 17229 17230# 17231# Check to make sure the static flag actually works. 17232# 17233wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 17234{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17235$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 17236if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then 17237 $as_echo_n "(cached) " >&6 17238else 17239 lt_cv_prog_compiler_static_works_GCJ=no 17240 save_LDFLAGS="$LDFLAGS" 17241 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17242 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17243 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17244 # The linker can only warn and ignore the option if not recognized 17245 # So say no if there are warnings 17246 if test -s conftest.err; then 17247 # Append any errors to the config.log. 17248 cat conftest.err 1>&5 17249 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 17250 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17251 if diff conftest.exp conftest.er2 >/dev/null; then 17252 lt_cv_prog_compiler_static_works_GCJ=yes 17253 fi 17254 else 17255 lt_cv_prog_compiler_static_works_GCJ=yes 17256 fi 17257 fi 17258 $rm -r conftest* 17259 LDFLAGS="$save_LDFLAGS" 17260 17261fi 17262{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5 17263$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; } 17264 17265if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then 17266 : 17267else 17268 lt_prog_compiler_static_GCJ= 17269fi 17270 17271 17272{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 17273$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17274if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 17275 $as_echo_n "(cached) " >&6 17276else 17277 lt_cv_prog_compiler_c_o_GCJ=no 17278 $rm -r conftest 2>/dev/null 17279 mkdir conftest 17280 cd conftest 17281 mkdir out 17282 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17283 17284 lt_compiler_flag="-o out/conftest2.$ac_objext" 17285 # Insert the option either (1) after the last *FLAGS variable, or 17286 # (2) before a word containing "conftest.", or (3) at the end. 17287 # Note that $ac_compile itself does not contain backslashes and begins 17288 # with a dollar sign (not a hyphen), so the echo should work correctly. 17289 lt_compile=`echo "$ac_compile" | $SED \ 17290 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17291 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17292 -e 's:$: $lt_compiler_flag:'` 17293 (eval echo "\"\$as_me:17293: $lt_compile\"" >&5) 17294 (eval "$lt_compile" 2>out/conftest.err) 17295 ac_status=$? 17296 cat out/conftest.err >&5 17297 echo "$as_me:17297: \$? = $ac_status" >&5 17298 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17299 then 17300 # The compiler can only warn and ignore the option if not recognized 17301 # So say no if there are warnings 17302 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 17303 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17304 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17305 lt_cv_prog_compiler_c_o_GCJ=yes 17306 fi 17307 fi 17308 chmod u+w . 2>&5 17309 $rm conftest* 17310 # SGI C++ compiler will create directory out/ii_files/ for 17311 # template instantiation 17312 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 17313 $rm out/* && rmdir out 17314 cd .. 17315 rmdir conftest 17316 $rm conftest* 17317 17318fi 17319{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 17320$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; } 17321 17322 17323hard_links="nottested" 17324if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 17325 # do not overwrite the value of need_locks provided by the user 17326 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 17327$as_echo_n "checking if we can lock with hard links... " >&6; } 17328 hard_links=yes 17329 $rm conftest* 17330 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17331 touch conftest.a 17332 ln conftest.a conftest.b 2>&5 || hard_links=no 17333 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17334 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 17335$as_echo "$hard_links" >&6; } 17336 if test "$hard_links" = no; then 17337 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17338$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17339 need_locks=warn 17340 fi 17341else 17342 need_locks=no 17343fi 17344 17345{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17346$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 17347 17348 runpath_var= 17349 allow_undefined_flag_GCJ= 17350 enable_shared_with_static_runtimes_GCJ=no 17351 archive_cmds_GCJ= 17352 archive_expsym_cmds_GCJ= 17353 old_archive_From_new_cmds_GCJ= 17354 old_archive_from_expsyms_cmds_GCJ= 17355 export_dynamic_flag_spec_GCJ= 17356 whole_archive_flag_spec_GCJ= 17357 thread_safe_flag_spec_GCJ= 17358 hardcode_libdir_flag_spec_GCJ= 17359 hardcode_libdir_flag_spec_ld_GCJ= 17360 hardcode_libdir_separator_GCJ= 17361 hardcode_direct_GCJ=no 17362 hardcode_minus_L_GCJ=no 17363 hardcode_shlibpath_var_GCJ=unsupported 17364 link_all_deplibs_GCJ=unknown 17365 hardcode_automatic_GCJ=no 17366 module_cmds_GCJ= 17367 module_expsym_cmds_GCJ= 17368 always_export_symbols_GCJ=no 17369 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17370 # include_expsyms should be a list of space-separated symbols to be *always* 17371 # included in the symbol list 17372 include_expsyms_GCJ= 17373 # exclude_expsyms can be an extended regexp of symbols to exclude 17374 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17375 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17376 # as well as any symbol that contains `d'. 17377 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 17378 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17379 # platforms (ab)use it in PIC code, but their linkers get confused if 17380 # the symbol is explicitly referenced. Since portable code cannot 17381 # rely on this symbol name, it's probably fine to never include it in 17382 # preloaded symbol tables. 17383 # Exclude shared library initialization/finalization symbols. 17384 extract_expsyms_cmds= 17385 # Just being paranoid about ensuring that cc_basename is set. 17386 for cc_temp in $compiler""; do 17387 case $cc_temp in 17388 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17389 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17390 \-*) ;; 17391 *) break;; 17392 esac 17393done 17394cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17395 17396 case $host_os in 17397 cygwin* | mingw* | pw32*) 17398 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17399 # When not using gcc, we currently assume that we are using 17400 # Microsoft Visual C++. 17401 if test "$GCC" != yes; then 17402 with_gnu_ld=no 17403 fi 17404 ;; 17405 interix*) 17406 # we just hope/assume this is gcc and not c89 (= MSVC++) 17407 with_gnu_ld=yes 17408 ;; 17409 openbsd*) 17410 with_gnu_ld=no 17411 ;; 17412 esac 17413 17414 ld_shlibs_GCJ=yes 17415 if test "$with_gnu_ld" = yes; then 17416 # If archive_cmds runs LD, not CC, wlarc should be empty 17417 wlarc='${wl}' 17418 17419 # Set some defaults for GNU ld with shared library support. These 17420 # are reset later if shared libraries are not supported. Putting them 17421 # here allows them to be overridden if necessary. 17422 runpath_var=LD_RUN_PATH 17423 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 17424 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 17425 # ancient GNU ld didn't support --whole-archive et. al. 17426 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17427 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17428 else 17429 whole_archive_flag_spec_GCJ= 17430 fi 17431 supports_anon_versioning=no 17432 case `$LD -v 2>/dev/null` in 17433 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17434 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17435 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17436 *\ 2.11.*) ;; # other 2.11 versions 17437 *) supports_anon_versioning=yes ;; 17438 esac 17439 17440 # See if GNU ld supports shared libraries. 17441 case $host_os in 17442 aix[3-9]*) 17443 # On AIX/PPC, the GNU linker is very broken 17444 if test "$host_cpu" != ia64; then 17445 ld_shlibs_GCJ=no 17446 cat <<EOF 1>&2 17447 17448*** Warning: the GNU linker, at least up to release 2.9.1, is reported 17449*** to be unable to reliably create shared libraries on AIX. 17450*** Therefore, libtool is disabling shared libraries support. If you 17451*** really care for shared libraries, you may want to modify your PATH 17452*** so that a non-GNU linker is found, and then restart. 17453 17454EOF 17455 fi 17456 ;; 17457 17458 amigaos*) 17459 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)' 17460 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17461 hardcode_minus_L_GCJ=yes 17462 17463 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 17464 # that the semantics of dynamic libraries on AmigaOS, at least up 17465 # to version 4, is to share data among multiple programs linked 17466 # with the same dynamic library. Since this doesn't match the 17467 # behavior of shared libraries on other platforms, we can't use 17468 # them. 17469 ld_shlibs_GCJ=no 17470 ;; 17471 17472 beos*) 17473 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17474 allow_undefined_flag_GCJ=unsupported 17475 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17476 # support --undefined. This deserves some investigation. FIXME 17477 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17478 else 17479 ld_shlibs_GCJ=no 17480 fi 17481 ;; 17482 17483 cygwin* | mingw* | pw32*) 17484 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 17485 # as there is no search path for DLLs. 17486 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17487 allow_undefined_flag_GCJ=unsupported 17488 always_export_symbols_GCJ=no 17489 enable_shared_with_static_runtimes_GCJ=yes 17490 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 17491 17492 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17493 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17494 # If the export-symbols file already is a .def file (1st line 17495 # is EXPORTS), use it as is; otherwise, prepend... 17496 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17497 cp $export_symbols $output_objdir/$soname.def; 17498 else 17499 echo EXPORTS > $output_objdir/$soname.def; 17500 cat $export_symbols >> $output_objdir/$soname.def; 17501 fi~ 17502 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17503 else 17504 ld_shlibs_GCJ=no 17505 fi 17506 ;; 17507 17508 interix[3-9]*) 17509 hardcode_direct_GCJ=no 17510 hardcode_shlibpath_var_GCJ=no 17511 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17512 export_dynamic_flag_spec_GCJ='${wl}-E' 17513 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17514 # Instead, shared libraries are loaded at an image base (0x10000000 by 17515 # default) and relocated if they conflict, which is a slow very memory 17516 # consuming and fragmenting process. To avoid this, we pick a random, 17517 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17518 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17519 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' 17520 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' 17521 ;; 17522 17523 gnu* | linux* | k*bsd*-gnu) 17524 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17525 tmp_addflag= 17526 case $cc_basename,$host_cpu in 17527 pgcc*) # Portland Group C compiler 17528 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' 17529 tmp_addflag=' $pic_flag' 17530 ;; 17531 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17532 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' 17533 tmp_addflag=' $pic_flag -Mnomain' ;; 17534 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17535 tmp_addflag=' -i_dynamic' ;; 17536 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17537 tmp_addflag=' -i_dynamic -nofor_main' ;; 17538 ifc* | ifort*) # Intel Fortran compiler 17539 tmp_addflag=' -nofor_main' ;; 17540 esac 17541 case `$CC -V 2>&1 | sed 5q` in 17542 *Sun\ C*) # Sun C 5.9 17543 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' 17544 tmp_sharedflag='-G' ;; 17545 *Sun\ F*) # Sun Fortran 8.3 17546 tmp_sharedflag='-G' ;; 17547 *) 17548 tmp_sharedflag='-shared' ;; 17549 esac 17550 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17551 17552 if test $supports_anon_versioning = yes; then 17553 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17554 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17555 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17556 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17557 fi 17558 else 17559 ld_shlibs_GCJ=no 17560 fi 17561 ;; 17562 17563 netbsd*) 17564 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17565 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17566 wlarc= 17567 else 17568 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17569 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17570 fi 17571 ;; 17572 17573 solaris*) 17574 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17575 ld_shlibs_GCJ=no 17576 cat <<EOF 1>&2 17577 17578*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17579*** create shared libraries on Solaris systems. Therefore, libtool 17580*** is disabling shared libraries support. We urge you to upgrade GNU 17581*** binutils to release 2.9.1 or newer. Another option is to modify 17582*** your PATH or compiler configuration so that the native linker is 17583*** used, and then restart. 17584 17585EOF 17586 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17587 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17588 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17589 else 17590 ld_shlibs_GCJ=no 17591 fi 17592 ;; 17593 17594 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17595 case `$LD -v 2>&1` in 17596 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17597 ld_shlibs_GCJ=no 17598 cat <<_LT_EOF 1>&2 17599 17600*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17601*** reliably create shared libraries on SCO systems. Therefore, libtool 17602*** is disabling shared libraries support. We urge you to upgrade GNU 17603*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17604*** your PATH or compiler configuration so that the native linker is 17605*** used, and then restart. 17606 17607_LT_EOF 17608 ;; 17609 *) 17610 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17611 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17612 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17613 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17614 else 17615 ld_shlibs_GCJ=no 17616 fi 17617 ;; 17618 esac 17619 ;; 17620 17621 sunos4*) 17622 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17623 wlarc= 17624 hardcode_direct_GCJ=yes 17625 hardcode_shlibpath_var_GCJ=no 17626 ;; 17627 17628 *) 17629 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17630 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17631 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17632 else 17633 ld_shlibs_GCJ=no 17634 fi 17635 ;; 17636 esac 17637 17638 if test "$ld_shlibs_GCJ" = no; then 17639 runpath_var= 17640 hardcode_libdir_flag_spec_GCJ= 17641 export_dynamic_flag_spec_GCJ= 17642 whole_archive_flag_spec_GCJ= 17643 fi 17644 else 17645 # PORTME fill in a description of your system's linker (not GNU ld) 17646 case $host_os in 17647 aix3*) 17648 allow_undefined_flag_GCJ=unsupported 17649 always_export_symbols_GCJ=yes 17650 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' 17651 # Note: this linker hardcodes the directories in LIBPATH if there 17652 # are no directories specified by -L. 17653 hardcode_minus_L_GCJ=yes 17654 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17655 # Neither direct hardcoding nor static linking is supported with a 17656 # broken collect2. 17657 hardcode_direct_GCJ=unsupported 17658 fi 17659 ;; 17660 17661 aix[4-9]*) 17662 if test "$host_cpu" = ia64; then 17663 # On IA64, the linker does run time linking by default, so we don't 17664 # have to do anything special. 17665 aix_use_runtimelinking=no 17666 exp_sym_flag='-Bexport' 17667 no_entry_flag="" 17668 else 17669 # If we're using GNU nm, then we don't want the "-C" option. 17670 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17671 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17672 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' 17673 else 17674 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' 17675 fi 17676 aix_use_runtimelinking=no 17677 17678 # Test if we are trying to use run time linking or normal 17679 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17680 # need to do runtime linking. 17681 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 17682 for ld_flag in $LDFLAGS; do 17683 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17684 aix_use_runtimelinking=yes 17685 break 17686 fi 17687 done 17688 ;; 17689 esac 17690 17691 exp_sym_flag='-bexport' 17692 no_entry_flag='-bnoentry' 17693 fi 17694 17695 # When large executables or shared objects are built, AIX ld can 17696 # have problems creating the table of contents. If linking a library 17697 # or program results in "error TOC overflow" add -mminimal-toc to 17698 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17699 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17700 17701 archive_cmds_GCJ='' 17702 hardcode_direct_GCJ=yes 17703 hardcode_libdir_separator_GCJ=':' 17704 link_all_deplibs_GCJ=yes 17705 17706 if test "$GCC" = yes; then 17707 case $host_os in aix4.[012]|aix4.[012].*) 17708 # We only want to do this on AIX 4.2 and lower, the check 17709 # below for broken collect2 doesn't work under 4.3+ 17710 collect2name=`${CC} -print-prog-name=collect2` 17711 if test -f "$collect2name" && \ 17712 strings "$collect2name" | grep resolve_lib_name >/dev/null 17713 then 17714 # We have reworked collect2 17715 : 17716 else 17717 # We have old collect2 17718 hardcode_direct_GCJ=unsupported 17719 # It fails to find uninstalled libraries when the uninstalled 17720 # path is not listed in the libpath. Setting hardcode_minus_L 17721 # to unsupported forces relinking 17722 hardcode_minus_L_GCJ=yes 17723 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17724 hardcode_libdir_separator_GCJ= 17725 fi 17726 ;; 17727 esac 17728 shared_flag='-shared' 17729 if test "$aix_use_runtimelinking" = yes; then 17730 shared_flag="$shared_flag "'${wl}-G' 17731 fi 17732 else 17733 # not using gcc 17734 if test "$host_cpu" = ia64; then 17735 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17736 # chokes on -Wl,-G. The following line is correct: 17737 shared_flag='-G' 17738 else 17739 if test "$aix_use_runtimelinking" = yes; then 17740 shared_flag='${wl}-G' 17741 else 17742 shared_flag='${wl}-bM:SRE' 17743 fi 17744 fi 17745 fi 17746 17747 # It seems that -bexpall does not export symbols beginning with 17748 # underscore (_), so it is better to generate a list of symbols to export. 17749 always_export_symbols_GCJ=yes 17750 if test "$aix_use_runtimelinking" = yes; then 17751 # Warning - without using the other runtime loading flags (-brtl), 17752 # -berok will link without error, but may produce a broken library. 17753 allow_undefined_flag_GCJ='-berok' 17754 # Determine the default libpath from the value encoded in an empty executable. 17755 cat >conftest.$ac_ext <<_ACEOF 17756/* confdefs.h. */ 17757_ACEOF 17758cat confdefs.h >>conftest.$ac_ext 17759cat >>conftest.$ac_ext <<_ACEOF 17760/* end confdefs.h. */ 17761 17762int 17763main () 17764{ 17765 17766 ; 17767 return 0; 17768} 17769_ACEOF 17770rm -f conftest.$ac_objext conftest$ac_exeext 17771if { (ac_try="$ac_link" 17772case "(($ac_try" in 17773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17774 *) ac_try_echo=$ac_try;; 17775esac 17776eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17777$as_echo "$ac_try_echo") >&5 17778 (eval "$ac_link") 2>conftest.er1 17779 ac_status=$? 17780 grep -v '^ *+' conftest.er1 >conftest.err 17781 rm -f conftest.er1 17782 cat conftest.err >&5 17783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17784 (exit $ac_status); } && { 17785 test -z "$ac_c_werror_flag" || 17786 test ! -s conftest.err 17787 } && test -s conftest$ac_exeext && { 17788 test "$cross_compiling" = yes || 17789 $as_test_x conftest$ac_exeext 17790 }; then 17791 17792lt_aix_libpath_sed=' 17793 /Import File Strings/,/^$/ { 17794 /^0/ { 17795 s/^0 *\(.*\)$/\1/ 17796 p 17797 } 17798 }' 17799aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17800# Check for a 64-bit object if we didn't find anything. 17801if test -z "$aix_libpath"; then 17802 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17803fi 17804else 17805 $as_echo "$as_me: failed program was:" >&5 17806sed 's/^/| /' conftest.$ac_ext >&5 17807 17808 17809fi 17810 17811rm -rf conftest.dSYM 17812rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17813 conftest$ac_exeext conftest.$ac_ext 17814if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17815 17816 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17817 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" 17818 else 17819 if test "$host_cpu" = ia64; then 17820 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17821 allow_undefined_flag_GCJ="-z nodefs" 17822 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" 17823 else 17824 # Determine the default libpath from the value encoded in an empty executable. 17825 cat >conftest.$ac_ext <<_ACEOF 17826/* confdefs.h. */ 17827_ACEOF 17828cat confdefs.h >>conftest.$ac_ext 17829cat >>conftest.$ac_ext <<_ACEOF 17830/* end confdefs.h. */ 17831 17832int 17833main () 17834{ 17835 17836 ; 17837 return 0; 17838} 17839_ACEOF 17840rm -f conftest.$ac_objext conftest$ac_exeext 17841if { (ac_try="$ac_link" 17842case "(($ac_try" in 17843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17844 *) ac_try_echo=$ac_try;; 17845esac 17846eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17847$as_echo "$ac_try_echo") >&5 17848 (eval "$ac_link") 2>conftest.er1 17849 ac_status=$? 17850 grep -v '^ *+' conftest.er1 >conftest.err 17851 rm -f conftest.er1 17852 cat conftest.err >&5 17853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17854 (exit $ac_status); } && { 17855 test -z "$ac_c_werror_flag" || 17856 test ! -s conftest.err 17857 } && test -s conftest$ac_exeext && { 17858 test "$cross_compiling" = yes || 17859 $as_test_x conftest$ac_exeext 17860 }; then 17861 17862lt_aix_libpath_sed=' 17863 /Import File Strings/,/^$/ { 17864 /^0/ { 17865 s/^0 *\(.*\)$/\1/ 17866 p 17867 } 17868 }' 17869aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17870# Check for a 64-bit object if we didn't find anything. 17871if test -z "$aix_libpath"; then 17872 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17873fi 17874else 17875 $as_echo "$as_me: failed program was:" >&5 17876sed 's/^/| /' conftest.$ac_ext >&5 17877 17878 17879fi 17880 17881rm -rf conftest.dSYM 17882rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17883 conftest$ac_exeext conftest.$ac_ext 17884if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17885 17886 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17887 # Warning - without using the other run time loading flags, 17888 # -berok will link without error, but may produce a broken library. 17889 no_undefined_flag_GCJ=' ${wl}-bernotok' 17890 allow_undefined_flag_GCJ=' ${wl}-berok' 17891 # Exported symbols can be pulled into shared objects from archives 17892 whole_archive_flag_spec_GCJ='$convenience' 17893 archive_cmds_need_lc_GCJ=yes 17894 # This is similar to how AIX traditionally builds its shared libraries. 17895 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' 17896 fi 17897 fi 17898 ;; 17899 17900 amigaos*) 17901 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)' 17902 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17903 hardcode_minus_L_GCJ=yes 17904 # see comment about different semantics on the GNU ld section 17905 ld_shlibs_GCJ=no 17906 ;; 17907 17908 bsdi[45]*) 17909 export_dynamic_flag_spec_GCJ=-rdynamic 17910 ;; 17911 17912 cygwin* | mingw* | pw32*) 17913 # When not using gcc, we currently assume that we are using 17914 # Microsoft Visual C++. 17915 # hardcode_libdir_flag_spec is actually meaningless, as there is 17916 # no search path for DLLs. 17917 hardcode_libdir_flag_spec_GCJ=' ' 17918 allow_undefined_flag_GCJ=unsupported 17919 # Tell ltmain to make .lib files, not .a files. 17920 libext=lib 17921 # Tell ltmain to make .dll files, not .so files. 17922 shrext_cmds=".dll" 17923 # FIXME: Setting linknames here is a bad hack. 17924 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17925 # The linker will automatically build a .lib file if we build a DLL. 17926 old_archive_From_new_cmds_GCJ='true' 17927 # FIXME: Should let the user specify the lib program. 17928 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' 17929 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17930 enable_shared_with_static_runtimes_GCJ=yes 17931 ;; 17932 17933 darwin* | rhapsody*) 17934 case $host_os in 17935 rhapsody* | darwin1.[012]) 17936 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17937 ;; 17938 *) # Darwin 1.3 on 17939 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17940 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17941 else 17942 case ${MACOSX_DEPLOYMENT_TARGET} in 17943 10.[012]) 17944 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17945 ;; 17946 10.*) 17947 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17948 ;; 17949 esac 17950 fi 17951 ;; 17952 esac 17953 archive_cmds_need_lc_GCJ=no 17954 hardcode_direct_GCJ=no 17955 hardcode_automatic_GCJ=yes 17956 hardcode_shlibpath_var_GCJ=unsupported 17957 whole_archive_flag_spec_GCJ='' 17958 link_all_deplibs_GCJ=yes 17959 if test "$GCC" = yes ; then 17960 output_verbose_link_cmd='echo' 17961 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}" 17962 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 17963 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}" 17964 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}" 17965 else 17966 case $cc_basename in 17967 xlc*) 17968 output_verbose_link_cmd='echo' 17969 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 17970 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17971 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17972 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}' 17973 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}' 17974 ;; 17975 *) 17976 ld_shlibs_GCJ=no 17977 ;; 17978 esac 17979 fi 17980 ;; 17981 17982 dgux*) 17983 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17984 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17985 hardcode_shlibpath_var_GCJ=no 17986 ;; 17987 17988 freebsd1*) 17989 ld_shlibs_GCJ=no 17990 ;; 17991 17992 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17993 # support. Future versions do this automatically, but an explicit c++rt0.o 17994 # does not break anything, and helps significantly (at the cost of a little 17995 # extra space). 17996 freebsd2.2*) 17997 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17998 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17999 hardcode_direct_GCJ=yes 18000 hardcode_shlibpath_var_GCJ=no 18001 ;; 18002 18003 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 18004 freebsd2*) 18005 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18006 hardcode_direct_GCJ=yes 18007 hardcode_minus_L_GCJ=yes 18008 hardcode_shlibpath_var_GCJ=no 18009 ;; 18010 18011 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 18012 freebsd* | dragonfly*) 18013 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 18014 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18015 hardcode_direct_GCJ=yes 18016 hardcode_shlibpath_var_GCJ=no 18017 ;; 18018 18019 hpux9*) 18020 if test "$GCC" = yes; then 18021 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' 18022 else 18023 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' 18024 fi 18025 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18026 hardcode_libdir_separator_GCJ=: 18027 hardcode_direct_GCJ=yes 18028 18029 # hardcode_minus_L: Not really in the search PATH, 18030 # but as the default location of the library. 18031 hardcode_minus_L_GCJ=yes 18032 export_dynamic_flag_spec_GCJ='${wl}-E' 18033 ;; 18034 18035 hpux10*) 18036 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18037 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18038 else 18039 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 18040 fi 18041 if test "$with_gnu_ld" = no; then 18042 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18043 hardcode_libdir_separator_GCJ=: 18044 18045 hardcode_direct_GCJ=yes 18046 export_dynamic_flag_spec_GCJ='${wl}-E' 18047 18048 # hardcode_minus_L: Not really in the search PATH, 18049 # but as the default location of the library. 18050 hardcode_minus_L_GCJ=yes 18051 fi 18052 ;; 18053 18054 hpux11*) 18055 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18056 case $host_cpu in 18057 hppa*64*) 18058 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18059 ;; 18060 ia64*) 18061 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18062 ;; 18063 *) 18064 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18065 ;; 18066 esac 18067 else 18068 case $host_cpu in 18069 hppa*64*) 18070 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18071 ;; 18072 ia64*) 18073 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18074 ;; 18075 *) 18076 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18077 ;; 18078 esac 18079 fi 18080 if test "$with_gnu_ld" = no; then 18081 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18082 hardcode_libdir_separator_GCJ=: 18083 18084 case $host_cpu in 18085 hppa*64*|ia64*) 18086 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 18087 hardcode_direct_GCJ=no 18088 hardcode_shlibpath_var_GCJ=no 18089 ;; 18090 *) 18091 hardcode_direct_GCJ=yes 18092 export_dynamic_flag_spec_GCJ='${wl}-E' 18093 18094 # hardcode_minus_L: Not really in the search PATH, 18095 # but as the default location of the library. 18096 hardcode_minus_L_GCJ=yes 18097 ;; 18098 esac 18099 fi 18100 ;; 18101 18102 irix5* | irix6* | nonstopux*) 18103 if test "$GCC" = yes; then 18104 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' 18105 else 18106 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' 18107 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 18108 fi 18109 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18110 hardcode_libdir_separator_GCJ=: 18111 link_all_deplibs_GCJ=yes 18112 ;; 18113 18114 netbsd*) 18115 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18116 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 18117 else 18118 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 18119 fi 18120 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18121 hardcode_direct_GCJ=yes 18122 hardcode_shlibpath_var_GCJ=no 18123 ;; 18124 18125 newsos6) 18126 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18127 hardcode_direct_GCJ=yes 18128 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18129 hardcode_libdir_separator_GCJ=: 18130 hardcode_shlibpath_var_GCJ=no 18131 ;; 18132 18133 openbsd*) 18134 if test -f /usr/libexec/ld.so; then 18135 hardcode_direct_GCJ=yes 18136 hardcode_shlibpath_var_GCJ=no 18137 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18138 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18139 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 18140 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18141 export_dynamic_flag_spec_GCJ='${wl}-E' 18142 else 18143 case $host_os in 18144 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 18145 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18146 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18147 ;; 18148 *) 18149 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18150 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18151 ;; 18152 esac 18153 fi 18154 else 18155 ld_shlibs_GCJ=no 18156 fi 18157 ;; 18158 18159 os2*) 18160 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18161 hardcode_minus_L_GCJ=yes 18162 allow_undefined_flag_GCJ=unsupported 18163 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' 18164 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 18165 ;; 18166 18167 osf3*) 18168 if test "$GCC" = yes; then 18169 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18170 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' 18171 else 18172 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18173 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' 18174 fi 18175 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18176 hardcode_libdir_separator_GCJ=: 18177 ;; 18178 18179 osf4* | osf5*) # as osf3* with the addition of -msym flag 18180 if test "$GCC" = yes; then 18181 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18182 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' 18183 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18184 else 18185 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18186 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' 18187 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~ 18188 $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' 18189 18190 # Both c and cxx compiler support -rpath directly 18191 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 18192 fi 18193 hardcode_libdir_separator_GCJ=: 18194 ;; 18195 18196 solaris*) 18197 no_undefined_flag_GCJ=' -z text' 18198 if test "$GCC" = yes; then 18199 wlarc='${wl}' 18200 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18201 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18202 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 18203 else 18204 wlarc='' 18205 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 18206 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18207 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 18208 fi 18209 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18210 hardcode_shlibpath_var_GCJ=no 18211 case $host_os in 18212 solaris2.[0-5] | solaris2.[0-5].*) ;; 18213 *) 18214 # The compiler driver will combine and reorder linker options, 18215 # but understands `-z linker_flag'. GCC discards it without `$wl', 18216 # but is careful enough not to reorder. 18217 # Supported since Solaris 2.6 (maybe 2.5.1?) 18218 if test "$GCC" = yes; then 18219 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 18220 else 18221 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' 18222 fi 18223 ;; 18224 esac 18225 link_all_deplibs_GCJ=yes 18226 ;; 18227 18228 sunos4*) 18229 if test "x$host_vendor" = xsequent; then 18230 # Use $CC to link under sequent, because it throws in some extra .o 18231 # files that make .init and .fini sections work. 18232 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 18233 else 18234 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 18235 fi 18236 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18237 hardcode_direct_GCJ=yes 18238 hardcode_minus_L_GCJ=yes 18239 hardcode_shlibpath_var_GCJ=no 18240 ;; 18241 18242 sysv4) 18243 case $host_vendor in 18244 sni) 18245 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18246 hardcode_direct_GCJ=yes # is this really true??? 18247 ;; 18248 siemens) 18249 ## LD is ld it makes a PLAMLIB 18250 ## CC just makes a GrossModule. 18251 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18252 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 18253 hardcode_direct_GCJ=no 18254 ;; 18255 motorola) 18256 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18257 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 18258 ;; 18259 esac 18260 runpath_var='LD_RUN_PATH' 18261 hardcode_shlibpath_var_GCJ=no 18262 ;; 18263 18264 sysv4.3*) 18265 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18266 hardcode_shlibpath_var_GCJ=no 18267 export_dynamic_flag_spec_GCJ='-Bexport' 18268 ;; 18269 18270 sysv4*MP*) 18271 if test -d /usr/nec; then 18272 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18273 hardcode_shlibpath_var_GCJ=no 18274 runpath_var=LD_RUN_PATH 18275 hardcode_runpath_var=yes 18276 ld_shlibs_GCJ=yes 18277 fi 18278 ;; 18279 18280 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 18281 no_undefined_flag_GCJ='${wl}-z,text' 18282 archive_cmds_need_lc_GCJ=no 18283 hardcode_shlibpath_var_GCJ=no 18284 runpath_var='LD_RUN_PATH' 18285 18286 if test "$GCC" = yes; then 18287 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18288 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18289 else 18290 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18291 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18292 fi 18293 ;; 18294 18295 sysv5* | sco3.2v5* | sco5v6*) 18296 # Note: We can NOT use -z defs as we might desire, because we do not 18297 # link with -lc, and that would cause any symbols used from libc to 18298 # always be unresolved, which means just about no library would 18299 # ever link correctly. If we're not using GNU ld we use -z text 18300 # though, which does catch some bad symbols but isn't as heavy-handed 18301 # as -z defs. 18302 no_undefined_flag_GCJ='${wl}-z,text' 18303 allow_undefined_flag_GCJ='${wl}-z,nodefs' 18304 archive_cmds_need_lc_GCJ=no 18305 hardcode_shlibpath_var_GCJ=no 18306 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 18307 hardcode_libdir_separator_GCJ=':' 18308 link_all_deplibs_GCJ=yes 18309 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 18310 runpath_var='LD_RUN_PATH' 18311 18312 if test "$GCC" = yes; then 18313 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18314 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18315 else 18316 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18317 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18318 fi 18319 ;; 18320 18321 uts4*) 18322 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18323 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18324 hardcode_shlibpath_var_GCJ=no 18325 ;; 18326 18327 *) 18328 ld_shlibs_GCJ=no 18329 ;; 18330 esac 18331 fi 18332 18333{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 18334$as_echo "$ld_shlibs_GCJ" >&6; } 18335test "$ld_shlibs_GCJ" = no && can_build_shared=no 18336 18337# 18338# Do we need to explicitly link libc? 18339# 18340case "x$archive_cmds_need_lc_GCJ" in 18341x|xyes) 18342 # Assume -lc should be added 18343 archive_cmds_need_lc_GCJ=yes 18344 18345 if test "$enable_shared" = yes && test "$GCC" = yes; then 18346 case $archive_cmds_GCJ in 18347 *'~'*) 18348 # FIXME: we may have to deal with multi-command sequences. 18349 ;; 18350 '$CC '*) 18351 # Test whether the compiler implicitly links with -lc since on some 18352 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18353 # to ld, don't add -lc before -lgcc. 18354 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 18355$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 18356 $rm conftest* 18357 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18358 18359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18360 (eval $ac_compile) 2>&5 18361 ac_status=$? 18362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18363 (exit $ac_status); } 2>conftest.err; then 18364 soname=conftest 18365 lib=conftest 18366 libobjs=conftest.$ac_objext 18367 deplibs= 18368 wl=$lt_prog_compiler_wl_GCJ 18369 pic_flag=$lt_prog_compiler_pic_GCJ 18370 compiler_flags=-v 18371 linker_flags=-v 18372 verstring= 18373 output_objdir=. 18374 libname=conftest 18375 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 18376 allow_undefined_flag_GCJ= 18377 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 18378 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18379 ac_status=$? 18380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18381 (exit $ac_status); } 18382 then 18383 archive_cmds_need_lc_GCJ=no 18384 else 18385 archive_cmds_need_lc_GCJ=yes 18386 fi 18387 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 18388 else 18389 cat conftest.err 1>&5 18390 fi 18391 $rm conftest* 18392 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 18393$as_echo "$archive_cmds_need_lc_GCJ" >&6; } 18394 ;; 18395 esac 18396 fi 18397 ;; 18398esac 18399 18400{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 18401$as_echo_n "checking dynamic linker characteristics... " >&6; } 18402library_names_spec= 18403libname_spec='lib$name' 18404soname_spec= 18405shrext_cmds=".so" 18406postinstall_cmds= 18407postuninstall_cmds= 18408finish_cmds= 18409finish_eval= 18410shlibpath_var= 18411shlibpath_overrides_runpath=unknown 18412version_type=none 18413dynamic_linker="$host_os ld.so" 18414sys_lib_dlsearch_path_spec="/lib /usr/lib" 18415 18416need_lib_prefix=unknown 18417hardcode_into_libs=no 18418 18419# when you set need_version to no, make sure it does not cause -set_version 18420# flags to be left without arguments 18421need_version=unknown 18422 18423case $host_os in 18424aix3*) 18425 version_type=linux 18426 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18427 shlibpath_var=LIBPATH 18428 18429 # AIX 3 has no versioning support, so we append a major version to the name. 18430 soname_spec='${libname}${release}${shared_ext}$major' 18431 ;; 18432 18433aix[4-9]*) 18434 version_type=linux 18435 need_lib_prefix=no 18436 need_version=no 18437 hardcode_into_libs=yes 18438 if test "$host_cpu" = ia64; then 18439 # AIX 5 supports IA64 18440 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18441 shlibpath_var=LD_LIBRARY_PATH 18442 else 18443 # With GCC up to 2.95.x, collect2 would create an import file 18444 # for dependence libraries. The import file would start with 18445 # the line `#! .'. This would cause the generated library to 18446 # depend on `.', always an invalid library. This was fixed in 18447 # development snapshots of GCC prior to 3.0. 18448 case $host_os in 18449 aix4 | aix4.[01] | aix4.[01].*) 18450 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18451 echo ' yes ' 18452 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 18453 : 18454 else 18455 can_build_shared=no 18456 fi 18457 ;; 18458 esac 18459 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18460 # soname into executable. Probably we can add versioning support to 18461 # collect2, so additional links can be useful in future. 18462 if test "$aix_use_runtimelinking" = yes; then 18463 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18464 # instead of lib<name>.a to let people know that these are not 18465 # typical AIX shared libraries. 18466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18467 else 18468 # We preserve .a as extension for shared libraries through AIX4.2 18469 # and later when we are not doing run time linking. 18470 library_names_spec='${libname}${release}.a $libname.a' 18471 soname_spec='${libname}${release}${shared_ext}$major' 18472 fi 18473 shlibpath_var=LIBPATH 18474 fi 18475 ;; 18476 18477amigaos*) 18478 library_names_spec='$libname.ixlibrary $libname.a' 18479 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18480 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' 18481 ;; 18482 18483beos*) 18484 library_names_spec='${libname}${shared_ext}' 18485 dynamic_linker="$host_os ld.so" 18486 shlibpath_var=LIBRARY_PATH 18487 ;; 18488 18489bsdi[45]*) 18490 version_type=linux 18491 need_version=no 18492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18493 soname_spec='${libname}${release}${shared_ext}$major' 18494 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18495 shlibpath_var=LD_LIBRARY_PATH 18496 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18497 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18498 # the default ld.so.conf also contains /usr/contrib/lib and 18499 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18500 # libtool to hard-code these into programs 18501 ;; 18502 18503cygwin* | mingw* | pw32*) 18504 version_type=windows 18505 shrext_cmds=".dll" 18506 need_version=no 18507 need_lib_prefix=no 18508 18509 case $GCC,$host_os in 18510 yes,cygwin* | yes,mingw* | yes,pw32*) 18511 library_names_spec='$libname.dll.a' 18512 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18513 postinstall_cmds='base_file=`basename \${file}`~ 18514 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18515 dldir=$destdir/`dirname \$dlpath`~ 18516 test -d \$dldir || mkdir -p \$dldir~ 18517 $install_prog $dir/$dlname \$dldir/$dlname~ 18518 chmod a+x \$dldir/$dlname' 18519 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18520 dlpath=$dir/\$dldll~ 18521 $rm \$dlpath' 18522 shlibpath_overrides_runpath=yes 18523 18524 case $host_os in 18525 cygwin*) 18526 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18527 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18528 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 18529 ;; 18530 mingw*) 18531 # MinGW DLLs use traditional 'lib' prefix 18532 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18533 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18534 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18535 # It is most probably a Windows format PATH printed by 18536 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18537 # path with ; separators, and with drive letters. We can handle the 18538 # drive letters (cygwin fileutils understands them), so leave them, 18539 # especially as we might pass files found there to a mingw objdump, 18540 # which wouldn't understand a cygwinified path. Ahh. 18541 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18542 else 18543 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18544 fi 18545 ;; 18546 pw32*) 18547 # pw32 DLLs use 'pw' prefix rather than 'lib' 18548 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18549 ;; 18550 esac 18551 ;; 18552 18553 *) 18554 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18555 ;; 18556 esac 18557 dynamic_linker='Win32 ld.exe' 18558 # FIXME: first we should search . and the directory the executable is in 18559 shlibpath_var=PATH 18560 ;; 18561 18562darwin* | rhapsody*) 18563 dynamic_linker="$host_os dyld" 18564 version_type=darwin 18565 need_lib_prefix=no 18566 need_version=no 18567 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18568 soname_spec='${libname}${release}${major}$shared_ext' 18569 shlibpath_overrides_runpath=yes 18570 shlibpath_var=DYLD_LIBRARY_PATH 18571 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18572 18573 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18574 ;; 18575 18576dgux*) 18577 version_type=linux 18578 need_lib_prefix=no 18579 need_version=no 18580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18581 soname_spec='${libname}${release}${shared_ext}$major' 18582 shlibpath_var=LD_LIBRARY_PATH 18583 ;; 18584 18585freebsd1*) 18586 dynamic_linker=no 18587 ;; 18588 18589freebsd* | dragonfly*) 18590 # DragonFly does not have aout. When/if they implement a new 18591 # versioning mechanism, adjust this. 18592 if test -x /usr/bin/objformat; then 18593 objformat=`/usr/bin/objformat` 18594 else 18595 case $host_os in 18596 freebsd[123]*) objformat=aout ;; 18597 *) objformat=elf ;; 18598 esac 18599 fi 18600 version_type=freebsd-$objformat 18601 case $version_type in 18602 freebsd-elf*) 18603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18604 need_version=no 18605 need_lib_prefix=no 18606 ;; 18607 freebsd-*) 18608 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18609 need_version=yes 18610 ;; 18611 esac 18612 shlibpath_var=LD_LIBRARY_PATH 18613 case $host_os in 18614 freebsd2*) 18615 shlibpath_overrides_runpath=yes 18616 ;; 18617 freebsd3.[01]* | freebsdelf3.[01]*) 18618 shlibpath_overrides_runpath=yes 18619 hardcode_into_libs=yes 18620 ;; 18621 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18622 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18623 shlibpath_overrides_runpath=no 18624 hardcode_into_libs=yes 18625 ;; 18626 *) # from 4.6 on, and DragonFly 18627 shlibpath_overrides_runpath=yes 18628 hardcode_into_libs=yes 18629 ;; 18630 esac 18631 ;; 18632 18633gnu*) 18634 version_type=linux 18635 need_lib_prefix=no 18636 need_version=no 18637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18638 soname_spec='${libname}${release}${shared_ext}$major' 18639 shlibpath_var=LD_LIBRARY_PATH 18640 hardcode_into_libs=yes 18641 ;; 18642 18643hpux9* | hpux10* | hpux11*) 18644 # Give a soname corresponding to the major version so that dld.sl refuses to 18645 # link against other versions. 18646 version_type=sunos 18647 need_lib_prefix=no 18648 need_version=no 18649 case $host_cpu in 18650 ia64*) 18651 shrext_cmds='.so' 18652 hardcode_into_libs=yes 18653 dynamic_linker="$host_os dld.so" 18654 shlibpath_var=LD_LIBRARY_PATH 18655 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18657 soname_spec='${libname}${release}${shared_ext}$major' 18658 if test "X$HPUX_IA64_MODE" = X32; then 18659 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18660 else 18661 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18662 fi 18663 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18664 ;; 18665 hppa*64*) 18666 shrext_cmds='.sl' 18667 hardcode_into_libs=yes 18668 dynamic_linker="$host_os dld.sl" 18669 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18670 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18672 soname_spec='${libname}${release}${shared_ext}$major' 18673 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18674 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18675 ;; 18676 *) 18677 shrext_cmds='.sl' 18678 dynamic_linker="$host_os dld.sl" 18679 shlibpath_var=SHLIB_PATH 18680 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18682 soname_spec='${libname}${release}${shared_ext}$major' 18683 ;; 18684 esac 18685 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18686 postinstall_cmds='chmod 555 $lib' 18687 ;; 18688 18689interix[3-9]*) 18690 version_type=linux 18691 need_lib_prefix=no 18692 need_version=no 18693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18694 soname_spec='${libname}${release}${shared_ext}$major' 18695 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18696 shlibpath_var=LD_LIBRARY_PATH 18697 shlibpath_overrides_runpath=no 18698 hardcode_into_libs=yes 18699 ;; 18700 18701irix5* | irix6* | nonstopux*) 18702 case $host_os in 18703 nonstopux*) version_type=nonstopux ;; 18704 *) 18705 if test "$lt_cv_prog_gnu_ld" = yes; then 18706 version_type=linux 18707 else 18708 version_type=irix 18709 fi ;; 18710 esac 18711 need_lib_prefix=no 18712 need_version=no 18713 soname_spec='${libname}${release}${shared_ext}$major' 18714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18715 case $host_os in 18716 irix5* | nonstopux*) 18717 libsuff= shlibsuff= 18718 ;; 18719 *) 18720 case $LD in # libtool.m4 will add one of these switches to LD 18721 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18722 libsuff= shlibsuff= libmagic=32-bit;; 18723 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18724 libsuff=32 shlibsuff=N32 libmagic=N32;; 18725 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18726 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18727 *) libsuff= shlibsuff= libmagic=never-match;; 18728 esac 18729 ;; 18730 esac 18731 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18732 shlibpath_overrides_runpath=no 18733 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18734 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18735 hardcode_into_libs=yes 18736 ;; 18737 18738# No shared lib support for Linux oldld, aout, or coff. 18739linux*oldld* | linux*aout* | linux*coff*) 18740 dynamic_linker=no 18741 ;; 18742 18743# This must be Linux ELF. 18744linux* | k*bsd*-gnu) 18745 version_type=linux 18746 need_lib_prefix=no 18747 need_version=no 18748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18749 soname_spec='${libname}${release}${shared_ext}$major' 18750 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18751 shlibpath_var=LD_LIBRARY_PATH 18752 shlibpath_overrides_runpath=no 18753 # This implies no fast_install, which is unacceptable. 18754 # Some rework will be needed to allow for fast_install 18755 # before this can be enabled. 18756 hardcode_into_libs=yes 18757 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18758 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18759 18760 # Append ld.so.conf contents to the search path 18761 if test -f /etc/ld.so.conf; then 18762 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' ' '` 18763 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 18764 fi 18765 18766 # We used to test for /lib/ld.so.1 and disable shared libraries on 18767 # powerpc, because MkLinux only supported shared libraries with the 18768 # GNU dynamic linker. Since this was broken with cross compilers, 18769 # most powerpc-linux boxes support dynamic linking these days and 18770 # people can always --disable-shared, the test was removed, and we 18771 # assume the GNU/Linux dynamic linker is in use. 18772 dynamic_linker='GNU/Linux ld.so' 18773 ;; 18774 18775netbsd*) 18776 version_type=sunos 18777 need_lib_prefix=no 18778 need_version=no 18779 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18781 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18782 dynamic_linker='NetBSD (a.out) ld.so' 18783 else 18784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18785 soname_spec='${libname}${release}${shared_ext}$major' 18786 dynamic_linker='NetBSD ld.elf_so' 18787 fi 18788 shlibpath_var=LD_LIBRARY_PATH 18789 shlibpath_overrides_runpath=yes 18790 hardcode_into_libs=yes 18791 ;; 18792 18793newsos6) 18794 version_type=linux 18795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18796 shlibpath_var=LD_LIBRARY_PATH 18797 shlibpath_overrides_runpath=yes 18798 ;; 18799 18800nto-qnx*) 18801 version_type=linux 18802 need_lib_prefix=no 18803 need_version=no 18804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18805 soname_spec='${libname}${release}${shared_ext}$major' 18806 shlibpath_var=LD_LIBRARY_PATH 18807 shlibpath_overrides_runpath=yes 18808 ;; 18809 18810openbsd*) 18811 version_type=sunos 18812 sys_lib_dlsearch_path_spec="/usr/lib" 18813 need_lib_prefix=no 18814 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18815 case $host_os in 18816 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18817 *) need_version=no ;; 18818 esac 18819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18820 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18821 shlibpath_var=LD_LIBRARY_PATH 18822 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18823 case $host_os in 18824 openbsd2.[89] | openbsd2.[89].*) 18825 shlibpath_overrides_runpath=no 18826 ;; 18827 *) 18828 shlibpath_overrides_runpath=yes 18829 ;; 18830 esac 18831 else 18832 shlibpath_overrides_runpath=yes 18833 fi 18834 ;; 18835 18836os2*) 18837 libname_spec='$name' 18838 shrext_cmds=".dll" 18839 need_lib_prefix=no 18840 library_names_spec='$libname${shared_ext} $libname.a' 18841 dynamic_linker='OS/2 ld.exe' 18842 shlibpath_var=LIBPATH 18843 ;; 18844 18845osf3* | osf4* | osf5*) 18846 version_type=osf 18847 need_lib_prefix=no 18848 need_version=no 18849 soname_spec='${libname}${release}${shared_ext}$major' 18850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18851 shlibpath_var=LD_LIBRARY_PATH 18852 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18853 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18854 ;; 18855 18856rdos*) 18857 dynamic_linker=no 18858 ;; 18859 18860solaris*) 18861 version_type=linux 18862 need_lib_prefix=no 18863 need_version=no 18864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18865 soname_spec='${libname}${release}${shared_ext}$major' 18866 shlibpath_var=LD_LIBRARY_PATH 18867 shlibpath_overrides_runpath=yes 18868 hardcode_into_libs=yes 18869 # ldd complains unless libraries are executable 18870 postinstall_cmds='chmod +x $lib' 18871 ;; 18872 18873sunos4*) 18874 version_type=sunos 18875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18876 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18877 shlibpath_var=LD_LIBRARY_PATH 18878 shlibpath_overrides_runpath=yes 18879 if test "$with_gnu_ld" = yes; then 18880 need_lib_prefix=no 18881 fi 18882 need_version=yes 18883 ;; 18884 18885sysv4 | sysv4.3*) 18886 version_type=linux 18887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18888 soname_spec='${libname}${release}${shared_ext}$major' 18889 shlibpath_var=LD_LIBRARY_PATH 18890 case $host_vendor in 18891 sni) 18892 shlibpath_overrides_runpath=no 18893 need_lib_prefix=no 18894 export_dynamic_flag_spec='${wl}-Blargedynsym' 18895 runpath_var=LD_RUN_PATH 18896 ;; 18897 siemens) 18898 need_lib_prefix=no 18899 ;; 18900 motorola) 18901 need_lib_prefix=no 18902 need_version=no 18903 shlibpath_overrides_runpath=no 18904 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18905 ;; 18906 esac 18907 ;; 18908 18909sysv4*MP*) 18910 if test -d /usr/nec ;then 18911 version_type=linux 18912 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18913 soname_spec='$libname${shared_ext}.$major' 18914 shlibpath_var=LD_LIBRARY_PATH 18915 fi 18916 ;; 18917 18918sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18919 version_type=freebsd-elf 18920 need_lib_prefix=no 18921 need_version=no 18922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18923 soname_spec='${libname}${release}${shared_ext}$major' 18924 shlibpath_var=LD_LIBRARY_PATH 18925 hardcode_into_libs=yes 18926 if test "$with_gnu_ld" = yes; then 18927 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18928 shlibpath_overrides_runpath=no 18929 else 18930 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18931 shlibpath_overrides_runpath=yes 18932 case $host_os in 18933 sco3.2v5*) 18934 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18935 ;; 18936 esac 18937 fi 18938 sys_lib_dlsearch_path_spec='/usr/lib' 18939 ;; 18940 18941uts4*) 18942 version_type=linux 18943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18944 soname_spec='${libname}${release}${shared_ext}$major' 18945 shlibpath_var=LD_LIBRARY_PATH 18946 ;; 18947 18948*) 18949 dynamic_linker=no 18950 ;; 18951esac 18952{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18953$as_echo "$dynamic_linker" >&6; } 18954test "$dynamic_linker" = no && can_build_shared=no 18955 18956if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 18957 $as_echo_n "(cached) " >&6 18958else 18959 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 18960fi 18961 18962sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 18963if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 18964 $as_echo_n "(cached) " >&6 18965else 18966 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 18967fi 18968 18969sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 18970 18971variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18972if test "$GCC" = yes; then 18973 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18974fi 18975 18976{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18977$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 18978hardcode_action_GCJ= 18979if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18980 test -n "$runpath_var_GCJ" || \ 18981 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18982 18983 # We can hardcode non-existant directories. 18984 if test "$hardcode_direct_GCJ" != no && 18985 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18986 # have to relink, otherwise we might link with an installed library 18987 # when we should be linking with a yet-to-be-installed one 18988 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18989 test "$hardcode_minus_L_GCJ" != no; then 18990 # Linking always hardcodes the temporary library directory. 18991 hardcode_action_GCJ=relink 18992 else 18993 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18994 hardcode_action_GCJ=immediate 18995 fi 18996else 18997 # We cannot hardcode anything, or else we can only hardcode existing 18998 # directories. 18999 hardcode_action_GCJ=unsupported 19000fi 19001{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 19002$as_echo "$hardcode_action_GCJ" >&6; } 19003 19004if test "$hardcode_action_GCJ" = relink; then 19005 # Fast installation is not supported 19006 enable_fast_install=no 19007elif test "$shlibpath_overrides_runpath" = yes || 19008 test "$enable_shared" = no; then 19009 # Fast installation is not necessary 19010 enable_fast_install=needless 19011fi 19012 19013 19014# The else clause should only fire when bootstrapping the 19015# libtool distribution, otherwise you forgot to ship ltmain.sh 19016# with your package, and you will get complaints that there are 19017# no rules to generate ltmain.sh. 19018if test -f "$ltmain"; then 19019 # See if we are running on zsh, and set the options which allow our commands through 19020 # without removal of \ escapes. 19021 if test -n "${ZSH_VERSION+set}" ; then 19022 setopt NO_GLOB_SUBST 19023 fi 19024 # Now quote all the things that may contain metacharacters while being 19025 # careful not to overquote the AC_SUBSTed values. We take copies of the 19026 # variables and quote the copies for generation of the libtool script. 19027 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19028 SED SHELL STRIP \ 19029 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19030 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19031 deplibs_check_method reload_flag reload_cmds need_locks \ 19032 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19033 lt_cv_sys_global_symbol_to_c_name_address \ 19034 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19035 old_postinstall_cmds old_postuninstall_cmds \ 19036 compiler_GCJ \ 19037 CC_GCJ \ 19038 LD_GCJ \ 19039 lt_prog_compiler_wl_GCJ \ 19040 lt_prog_compiler_pic_GCJ \ 19041 lt_prog_compiler_static_GCJ \ 19042 lt_prog_compiler_no_builtin_flag_GCJ \ 19043 export_dynamic_flag_spec_GCJ \ 19044 thread_safe_flag_spec_GCJ \ 19045 whole_archive_flag_spec_GCJ \ 19046 enable_shared_with_static_runtimes_GCJ \ 19047 old_archive_cmds_GCJ \ 19048 old_archive_from_new_cmds_GCJ \ 19049 predep_objects_GCJ \ 19050 postdep_objects_GCJ \ 19051 predeps_GCJ \ 19052 postdeps_GCJ \ 19053 compiler_lib_search_path_GCJ \ 19054 compiler_lib_search_dirs_GCJ \ 19055 archive_cmds_GCJ \ 19056 archive_expsym_cmds_GCJ \ 19057 postinstall_cmds_GCJ \ 19058 postuninstall_cmds_GCJ \ 19059 old_archive_from_expsyms_cmds_GCJ \ 19060 allow_undefined_flag_GCJ \ 19061 no_undefined_flag_GCJ \ 19062 export_symbols_cmds_GCJ \ 19063 hardcode_libdir_flag_spec_GCJ \ 19064 hardcode_libdir_flag_spec_ld_GCJ \ 19065 hardcode_libdir_separator_GCJ \ 19066 hardcode_automatic_GCJ \ 19067 module_cmds_GCJ \ 19068 module_expsym_cmds_GCJ \ 19069 lt_cv_prog_compiler_c_o_GCJ \ 19070 fix_srcfile_path_GCJ \ 19071 exclude_expsyms_GCJ \ 19072 include_expsyms_GCJ; do 19073 19074 case $var in 19075 old_archive_cmds_GCJ | \ 19076 old_archive_from_new_cmds_GCJ | \ 19077 archive_cmds_GCJ | \ 19078 archive_expsym_cmds_GCJ | \ 19079 module_cmds_GCJ | \ 19080 module_expsym_cmds_GCJ | \ 19081 old_archive_from_expsyms_cmds_GCJ | \ 19082 export_symbols_cmds_GCJ | \ 19083 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19084 postinstall_cmds | postuninstall_cmds | \ 19085 old_postinstall_cmds | old_postuninstall_cmds | \ 19086 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19087 # Double-quote double-evaled strings. 19088 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19089 ;; 19090 *) 19091 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19092 ;; 19093 esac 19094 done 19095 19096 case $lt_echo in 19097 *'\$0 --fallback-echo"') 19098 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19099 ;; 19100 esac 19101 19102cfgfile="$ofile" 19103 19104 cat <<__EOF__ >> "$cfgfile" 19105# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19106 19107# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19108 19109# Shell to use when invoking shell scripts. 19110SHELL=$lt_SHELL 19111 19112# Whether or not to build shared libraries. 19113build_libtool_libs=$enable_shared 19114 19115# Whether or not to build static libraries. 19116build_old_libs=$enable_static 19117 19118# Whether or not to add -lc for building shared libraries. 19119build_libtool_need_lc=$archive_cmds_need_lc_GCJ 19120 19121# Whether or not to disallow shared libs when runtime libs are static 19122allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 19123 19124# Whether or not to optimize for fast installation. 19125fast_install=$enable_fast_install 19126 19127# The host system. 19128host_alias=$host_alias 19129host=$host 19130host_os=$host_os 19131 19132# The build system. 19133build_alias=$build_alias 19134build=$build 19135build_os=$build_os 19136 19137# An echo program that does not interpret backslashes. 19138echo=$lt_echo 19139 19140# The archiver. 19141AR=$lt_AR 19142AR_FLAGS=$lt_AR_FLAGS 19143 19144# A C compiler. 19145LTCC=$lt_LTCC 19146 19147# LTCC compiler flags. 19148LTCFLAGS=$lt_LTCFLAGS 19149 19150# A language-specific compiler. 19151CC=$lt_compiler_GCJ 19152 19153# Is the compiler the GNU C compiler? 19154with_gcc=$GCC_GCJ 19155 19156# An ERE matcher. 19157EGREP=$lt_EGREP 19158 19159# The linker used to build libraries. 19160LD=$lt_LD_GCJ 19161 19162# Whether we need hard or soft links. 19163LN_S=$lt_LN_S 19164 19165# A BSD-compatible nm program. 19166NM=$lt_NM 19167 19168# A symbol stripping program 19169STRIP=$lt_STRIP 19170 19171# Used to examine libraries when file_magic_cmd begins "file" 19172MAGIC_CMD=$MAGIC_CMD 19173 19174# Used on cygwin: DLL creation program. 19175DLLTOOL="$DLLTOOL" 19176 19177# Used on cygwin: object dumper. 19178OBJDUMP="$OBJDUMP" 19179 19180# Used on cygwin: assembler. 19181AS="$AS" 19182 19183# The name of the directory that contains temporary libtool files. 19184objdir=$objdir 19185 19186# How to create reloadable object files. 19187reload_flag=$lt_reload_flag 19188reload_cmds=$lt_reload_cmds 19189 19190# How to pass a linker flag through the compiler. 19191wl=$lt_lt_prog_compiler_wl_GCJ 19192 19193# Object file suffix (normally "o"). 19194objext="$ac_objext" 19195 19196# Old archive suffix (normally "a"). 19197libext="$libext" 19198 19199# Shared library suffix (normally ".so"). 19200shrext_cmds='$shrext_cmds' 19201 19202# Executable file suffix (normally ""). 19203exeext="$exeext" 19204 19205# Additional compiler flags for building library objects. 19206pic_flag=$lt_lt_prog_compiler_pic_GCJ 19207pic_mode=$pic_mode 19208 19209# What is the maximum length of a command? 19210max_cmd_len=$lt_cv_sys_max_cmd_len 19211 19212# Does compiler simultaneously support -c and -o options? 19213compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 19214 19215# Must we lock files when doing compilation? 19216need_locks=$lt_need_locks 19217 19218# Do we need the lib prefix for modules? 19219need_lib_prefix=$need_lib_prefix 19220 19221# Do we need a version for libraries? 19222need_version=$need_version 19223 19224# Whether dlopen is supported. 19225dlopen_support=$enable_dlopen 19226 19227# Whether dlopen of programs is supported. 19228dlopen_self=$enable_dlopen_self 19229 19230# Whether dlopen of statically linked programs is supported. 19231dlopen_self_static=$enable_dlopen_self_static 19232 19233# Compiler flag to prevent dynamic linking. 19234link_static_flag=$lt_lt_prog_compiler_static_GCJ 19235 19236# Compiler flag to turn off builtin functions. 19237no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19238 19239# Compiler flag to allow reflexive dlopens. 19240export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19241 19242# Compiler flag to generate shared objects directly from archives. 19243whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19244 19245# Compiler flag to generate thread-safe objects. 19246thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19247 19248# Library versioning type. 19249version_type=$version_type 19250 19251# Format of library name prefix. 19252libname_spec=$lt_libname_spec 19253 19254# List of archive names. First name is the real one, the rest are links. 19255# The last name is the one that the linker finds with -lNAME. 19256library_names_spec=$lt_library_names_spec 19257 19258# The coded name of the library, if different from the real name. 19259soname_spec=$lt_soname_spec 19260 19261# Commands used to build and install an old-style archive. 19262RANLIB=$lt_RANLIB 19263old_archive_cmds=$lt_old_archive_cmds_GCJ 19264old_postinstall_cmds=$lt_old_postinstall_cmds 19265old_postuninstall_cmds=$lt_old_postuninstall_cmds 19266 19267# Create an old-style archive from a shared archive. 19268old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19269 19270# Create a temporary old-style archive to link instead of a shared archive. 19271old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19272 19273# Commands used to build and install a shared archive. 19274archive_cmds=$lt_archive_cmds_GCJ 19275archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19276postinstall_cmds=$lt_postinstall_cmds 19277postuninstall_cmds=$lt_postuninstall_cmds 19278 19279# Commands used to build a loadable module (assumed same as above if empty) 19280module_cmds=$lt_module_cmds_GCJ 19281module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19282 19283# Commands to strip libraries. 19284old_striplib=$lt_old_striplib 19285striplib=$lt_striplib 19286 19287# Dependencies to place before the objects being linked to create a 19288# shared library. 19289predep_objects=$lt_predep_objects_GCJ 19290 19291# Dependencies to place after the objects being linked to create a 19292# shared library. 19293postdep_objects=$lt_postdep_objects_GCJ 19294 19295# Dependencies to place before the objects being linked to create a 19296# shared library. 19297predeps=$lt_predeps_GCJ 19298 19299# Dependencies to place after the objects being linked to create a 19300# shared library. 19301postdeps=$lt_postdeps_GCJ 19302 19303# The directories searched by this compiler when creating a shared 19304# library 19305compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ 19306 19307# The library search path used internally by the compiler when linking 19308# a shared library. 19309compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19310 19311# Method to check whether dependent libraries are shared objects. 19312deplibs_check_method=$lt_deplibs_check_method 19313 19314# Command to use when deplibs_check_method == file_magic. 19315file_magic_cmd=$lt_file_magic_cmd 19316 19317# Flag that allows shared libraries with undefined symbols to be built. 19318allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19319 19320# Flag that forces no undefined symbols. 19321no_undefined_flag=$lt_no_undefined_flag_GCJ 19322 19323# Commands used to finish a libtool library installation in a directory. 19324finish_cmds=$lt_finish_cmds 19325 19326# Same as above, but a single script fragment to be evaled but not shown. 19327finish_eval=$lt_finish_eval 19328 19329# Take the output of nm and produce a listing of raw symbols and C names. 19330global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19331 19332# Transform the output of nm in a proper C declaration 19333global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19334 19335# Transform the output of nm in a C name address pair 19336global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19337 19338# This is the shared library runtime path variable. 19339runpath_var=$runpath_var 19340 19341# This is the shared library path variable. 19342shlibpath_var=$shlibpath_var 19343 19344# Is shlibpath searched before the hard-coded library search path? 19345shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19346 19347# How to hardcode a shared library path into an executable. 19348hardcode_action=$hardcode_action_GCJ 19349 19350# Whether we should hardcode library paths into libraries. 19351hardcode_into_libs=$hardcode_into_libs 19352 19353# Flag to hardcode \$libdir into a binary during linking. 19354# This must work even if \$libdir does not exist. 19355hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19356 19357# If ld is used when linking, flag to hardcode \$libdir into 19358# a binary during linking. This must work even if \$libdir does 19359# not exist. 19360hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19361 19362# Whether we need a single -rpath flag with a separated argument. 19363hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19364 19365# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19366# resulting binary. 19367hardcode_direct=$hardcode_direct_GCJ 19368 19369# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19370# resulting binary. 19371hardcode_minus_L=$hardcode_minus_L_GCJ 19372 19373# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19374# the resulting binary. 19375hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19376 19377# Set to yes if building a shared library automatically hardcodes DIR into the library 19378# and all subsequent libraries and executables linked against it. 19379hardcode_automatic=$hardcode_automatic_GCJ 19380 19381# Variables whose values should be saved in libtool wrapper scripts and 19382# restored at relink time. 19383variables_saved_for_relink="$variables_saved_for_relink" 19384 19385# Whether libtool must link a program against all its dependency libraries. 19386link_all_deplibs=$link_all_deplibs_GCJ 19387 19388# Compile-time system search path for libraries 19389sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19390 19391# Run-time system search path for libraries 19392sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19393 19394# Fix the shell variable \$srcfile for the compiler. 19395fix_srcfile_path=$lt_fix_srcfile_path 19396 19397# Set to yes if exported symbols are required. 19398always_export_symbols=$always_export_symbols_GCJ 19399 19400# The commands to list exported symbols. 19401export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19402 19403# The commands to extract the exported symbol list from a shared archive. 19404extract_expsyms_cmds=$lt_extract_expsyms_cmds 19405 19406# Symbols that should not be listed in the preloaded symbols. 19407exclude_expsyms=$lt_exclude_expsyms_GCJ 19408 19409# Symbols that must always be exported. 19410include_expsyms=$lt_include_expsyms_GCJ 19411 19412# ### END LIBTOOL TAG CONFIG: $tagname 19413 19414__EOF__ 19415 19416 19417else 19418 # If there is no Makefile yet, we rely on a make rule to execute 19419 # `config.status --recheck' to rerun these tests and create the 19420 # libtool script then. 19421 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19422 if test -f "$ltmain_in"; then 19423 test -f Makefile && make "$ltmain" 19424 fi 19425fi 19426 19427 19428ac_ext=c 19429ac_cpp='$CPP $CPPFLAGS' 19430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19432ac_compiler_gnu=$ac_cv_c_compiler_gnu 19433 19434CC="$lt_save_CC" 19435 19436 else 19437 tagname="" 19438 fi 19439 ;; 19440 19441 RC) 19442 19443 19444# Source file extension for RC test sources. 19445ac_ext=rc 19446 19447# Object file extension for compiled RC test sources. 19448objext=o 19449objext_RC=$objext 19450 19451# Code to be used in simple compile tests 19452lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 19453 19454# Code to be used in simple link tests 19455lt_simple_link_test_code="$lt_simple_compile_test_code" 19456 19457# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19458 19459# If no C compiler was specified, use CC. 19460LTCC=${LTCC-"$CC"} 19461 19462# If no C compiler flags were specified, use CFLAGS. 19463LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19464 19465# Allow CC to be a program name with arguments. 19466compiler=$CC 19467 19468 19469# save warnings/boilerplate of simple test code 19470ac_outfile=conftest.$ac_objext 19471echo "$lt_simple_compile_test_code" >conftest.$ac_ext 19472eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19473_lt_compiler_boilerplate=`cat conftest.err` 19474$rm conftest* 19475 19476ac_outfile=conftest.$ac_objext 19477echo "$lt_simple_link_test_code" >conftest.$ac_ext 19478eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19479_lt_linker_boilerplate=`cat conftest.err` 19480$rm -r conftest* 19481 19482 19483# Allow CC to be a program name with arguments. 19484lt_save_CC="$CC" 19485CC=${RC-"windres"} 19486compiler=$CC 19487compiler_RC=$CC 19488for cc_temp in $compiler""; do 19489 case $cc_temp in 19490 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19491 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19492 \-*) ;; 19493 *) break;; 19494 esac 19495done 19496cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19497 19498lt_cv_prog_compiler_c_o_RC=yes 19499 19500# The else clause should only fire when bootstrapping the 19501# libtool distribution, otherwise you forgot to ship ltmain.sh 19502# with your package, and you will get complaints that there are 19503# no rules to generate ltmain.sh. 19504if test -f "$ltmain"; then 19505 # See if we are running on zsh, and set the options which allow our commands through 19506 # without removal of \ escapes. 19507 if test -n "${ZSH_VERSION+set}" ; then 19508 setopt NO_GLOB_SUBST 19509 fi 19510 # Now quote all the things that may contain metacharacters while being 19511 # careful not to overquote the AC_SUBSTed values. We take copies of the 19512 # variables and quote the copies for generation of the libtool script. 19513 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19514 SED SHELL STRIP \ 19515 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19516 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19517 deplibs_check_method reload_flag reload_cmds need_locks \ 19518 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19519 lt_cv_sys_global_symbol_to_c_name_address \ 19520 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19521 old_postinstall_cmds old_postuninstall_cmds \ 19522 compiler_RC \ 19523 CC_RC \ 19524 LD_RC \ 19525 lt_prog_compiler_wl_RC \ 19526 lt_prog_compiler_pic_RC \ 19527 lt_prog_compiler_static_RC \ 19528 lt_prog_compiler_no_builtin_flag_RC \ 19529 export_dynamic_flag_spec_RC \ 19530 thread_safe_flag_spec_RC \ 19531 whole_archive_flag_spec_RC \ 19532 enable_shared_with_static_runtimes_RC \ 19533 old_archive_cmds_RC \ 19534 old_archive_from_new_cmds_RC \ 19535 predep_objects_RC \ 19536 postdep_objects_RC \ 19537 predeps_RC \ 19538 postdeps_RC \ 19539 compiler_lib_search_path_RC \ 19540 compiler_lib_search_dirs_RC \ 19541 archive_cmds_RC \ 19542 archive_expsym_cmds_RC \ 19543 postinstall_cmds_RC \ 19544 postuninstall_cmds_RC \ 19545 old_archive_from_expsyms_cmds_RC \ 19546 allow_undefined_flag_RC \ 19547 no_undefined_flag_RC \ 19548 export_symbols_cmds_RC \ 19549 hardcode_libdir_flag_spec_RC \ 19550 hardcode_libdir_flag_spec_ld_RC \ 19551 hardcode_libdir_separator_RC \ 19552 hardcode_automatic_RC \ 19553 module_cmds_RC \ 19554 module_expsym_cmds_RC \ 19555 lt_cv_prog_compiler_c_o_RC \ 19556 fix_srcfile_path_RC \ 19557 exclude_expsyms_RC \ 19558 include_expsyms_RC; do 19559 19560 case $var in 19561 old_archive_cmds_RC | \ 19562 old_archive_from_new_cmds_RC | \ 19563 archive_cmds_RC | \ 19564 archive_expsym_cmds_RC | \ 19565 module_cmds_RC | \ 19566 module_expsym_cmds_RC | \ 19567 old_archive_from_expsyms_cmds_RC | \ 19568 export_symbols_cmds_RC | \ 19569 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19570 postinstall_cmds | postuninstall_cmds | \ 19571 old_postinstall_cmds | old_postuninstall_cmds | \ 19572 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19573 # Double-quote double-evaled strings. 19574 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19575 ;; 19576 *) 19577 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19578 ;; 19579 esac 19580 done 19581 19582 case $lt_echo in 19583 *'\$0 --fallback-echo"') 19584 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19585 ;; 19586 esac 19587 19588cfgfile="$ofile" 19589 19590 cat <<__EOF__ >> "$cfgfile" 19591# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19592 19593# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19594 19595# Shell to use when invoking shell scripts. 19596SHELL=$lt_SHELL 19597 19598# Whether or not to build shared libraries. 19599build_libtool_libs=$enable_shared 19600 19601# Whether or not to build static libraries. 19602build_old_libs=$enable_static 19603 19604# Whether or not to add -lc for building shared libraries. 19605build_libtool_need_lc=$archive_cmds_need_lc_RC 19606 19607# Whether or not to disallow shared libs when runtime libs are static 19608allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19609 19610# Whether or not to optimize for fast installation. 19611fast_install=$enable_fast_install 19612 19613# The host system. 19614host_alias=$host_alias 19615host=$host 19616host_os=$host_os 19617 19618# The build system. 19619build_alias=$build_alias 19620build=$build 19621build_os=$build_os 19622 19623# An echo program that does not interpret backslashes. 19624echo=$lt_echo 19625 19626# The archiver. 19627AR=$lt_AR 19628AR_FLAGS=$lt_AR_FLAGS 19629 19630# A C compiler. 19631LTCC=$lt_LTCC 19632 19633# LTCC compiler flags. 19634LTCFLAGS=$lt_LTCFLAGS 19635 19636# A language-specific compiler. 19637CC=$lt_compiler_RC 19638 19639# Is the compiler the GNU C compiler? 19640with_gcc=$GCC_RC 19641 19642# An ERE matcher. 19643EGREP=$lt_EGREP 19644 19645# The linker used to build libraries. 19646LD=$lt_LD_RC 19647 19648# Whether we need hard or soft links. 19649LN_S=$lt_LN_S 19650 19651# A BSD-compatible nm program. 19652NM=$lt_NM 19653 19654# A symbol stripping program 19655STRIP=$lt_STRIP 19656 19657# Used to examine libraries when file_magic_cmd begins "file" 19658MAGIC_CMD=$MAGIC_CMD 19659 19660# Used on cygwin: DLL creation program. 19661DLLTOOL="$DLLTOOL" 19662 19663# Used on cygwin: object dumper. 19664OBJDUMP="$OBJDUMP" 19665 19666# Used on cygwin: assembler. 19667AS="$AS" 19668 19669# The name of the directory that contains temporary libtool files. 19670objdir=$objdir 19671 19672# How to create reloadable object files. 19673reload_flag=$lt_reload_flag 19674reload_cmds=$lt_reload_cmds 19675 19676# How to pass a linker flag through the compiler. 19677wl=$lt_lt_prog_compiler_wl_RC 19678 19679# Object file suffix (normally "o"). 19680objext="$ac_objext" 19681 19682# Old archive suffix (normally "a"). 19683libext="$libext" 19684 19685# Shared library suffix (normally ".so"). 19686shrext_cmds='$shrext_cmds' 19687 19688# Executable file suffix (normally ""). 19689exeext="$exeext" 19690 19691# Additional compiler flags for building library objects. 19692pic_flag=$lt_lt_prog_compiler_pic_RC 19693pic_mode=$pic_mode 19694 19695# What is the maximum length of a command? 19696max_cmd_len=$lt_cv_sys_max_cmd_len 19697 19698# Does compiler simultaneously support -c and -o options? 19699compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19700 19701# Must we lock files when doing compilation? 19702need_locks=$lt_need_locks 19703 19704# Do we need the lib prefix for modules? 19705need_lib_prefix=$need_lib_prefix 19706 19707# Do we need a version for libraries? 19708need_version=$need_version 19709 19710# Whether dlopen is supported. 19711dlopen_support=$enable_dlopen 19712 19713# Whether dlopen of programs is supported. 19714dlopen_self=$enable_dlopen_self 19715 19716# Whether dlopen of statically linked programs is supported. 19717dlopen_self_static=$enable_dlopen_self_static 19718 19719# Compiler flag to prevent dynamic linking. 19720link_static_flag=$lt_lt_prog_compiler_static_RC 19721 19722# Compiler flag to turn off builtin functions. 19723no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19724 19725# Compiler flag to allow reflexive dlopens. 19726export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19727 19728# Compiler flag to generate shared objects directly from archives. 19729whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19730 19731# Compiler flag to generate thread-safe objects. 19732thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19733 19734# Library versioning type. 19735version_type=$version_type 19736 19737# Format of library name prefix. 19738libname_spec=$lt_libname_spec 19739 19740# List of archive names. First name is the real one, the rest are links. 19741# The last name is the one that the linker finds with -lNAME. 19742library_names_spec=$lt_library_names_spec 19743 19744# The coded name of the library, if different from the real name. 19745soname_spec=$lt_soname_spec 19746 19747# Commands used to build and install an old-style archive. 19748RANLIB=$lt_RANLIB 19749old_archive_cmds=$lt_old_archive_cmds_RC 19750old_postinstall_cmds=$lt_old_postinstall_cmds 19751old_postuninstall_cmds=$lt_old_postuninstall_cmds 19752 19753# Create an old-style archive from a shared archive. 19754old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19755 19756# Create a temporary old-style archive to link instead of a shared archive. 19757old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19758 19759# Commands used to build and install a shared archive. 19760archive_cmds=$lt_archive_cmds_RC 19761archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19762postinstall_cmds=$lt_postinstall_cmds 19763postuninstall_cmds=$lt_postuninstall_cmds 19764 19765# Commands used to build a loadable module (assumed same as above if empty) 19766module_cmds=$lt_module_cmds_RC 19767module_expsym_cmds=$lt_module_expsym_cmds_RC 19768 19769# Commands to strip libraries. 19770old_striplib=$lt_old_striplib 19771striplib=$lt_striplib 19772 19773# Dependencies to place before the objects being linked to create a 19774# shared library. 19775predep_objects=$lt_predep_objects_RC 19776 19777# Dependencies to place after the objects being linked to create a 19778# shared library. 19779postdep_objects=$lt_postdep_objects_RC 19780 19781# Dependencies to place before the objects being linked to create a 19782# shared library. 19783predeps=$lt_predeps_RC 19784 19785# Dependencies to place after the objects being linked to create a 19786# shared library. 19787postdeps=$lt_postdeps_RC 19788 19789# The directories searched by this compiler when creating a shared 19790# library 19791compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC 19792 19793# The library search path used internally by the compiler when linking 19794# a shared library. 19795compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19796 19797# Method to check whether dependent libraries are shared objects. 19798deplibs_check_method=$lt_deplibs_check_method 19799 19800# Command to use when deplibs_check_method == file_magic. 19801file_magic_cmd=$lt_file_magic_cmd 19802 19803# Flag that allows shared libraries with undefined symbols to be built. 19804allow_undefined_flag=$lt_allow_undefined_flag_RC 19805 19806# Flag that forces no undefined symbols. 19807no_undefined_flag=$lt_no_undefined_flag_RC 19808 19809# Commands used to finish a libtool library installation in a directory. 19810finish_cmds=$lt_finish_cmds 19811 19812# Same as above, but a single script fragment to be evaled but not shown. 19813finish_eval=$lt_finish_eval 19814 19815# Take the output of nm and produce a listing of raw symbols and C names. 19816global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19817 19818# Transform the output of nm in a proper C declaration 19819global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19820 19821# Transform the output of nm in a C name address pair 19822global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19823 19824# This is the shared library runtime path variable. 19825runpath_var=$runpath_var 19826 19827# This is the shared library path variable. 19828shlibpath_var=$shlibpath_var 19829 19830# Is shlibpath searched before the hard-coded library search path? 19831shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19832 19833# How to hardcode a shared library path into an executable. 19834hardcode_action=$hardcode_action_RC 19835 19836# Whether we should hardcode library paths into libraries. 19837hardcode_into_libs=$hardcode_into_libs 19838 19839# Flag to hardcode \$libdir into a binary during linking. 19840# This must work even if \$libdir does not exist. 19841hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19842 19843# If ld is used when linking, flag to hardcode \$libdir into 19844# a binary during linking. This must work even if \$libdir does 19845# not exist. 19846hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19847 19848# Whether we need a single -rpath flag with a separated argument. 19849hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19850 19851# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19852# resulting binary. 19853hardcode_direct=$hardcode_direct_RC 19854 19855# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19856# resulting binary. 19857hardcode_minus_L=$hardcode_minus_L_RC 19858 19859# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19860# the resulting binary. 19861hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19862 19863# Set to yes if building a shared library automatically hardcodes DIR into the library 19864# and all subsequent libraries and executables linked against it. 19865hardcode_automatic=$hardcode_automatic_RC 19866 19867# Variables whose values should be saved in libtool wrapper scripts and 19868# restored at relink time. 19869variables_saved_for_relink="$variables_saved_for_relink" 19870 19871# Whether libtool must link a program against all its dependency libraries. 19872link_all_deplibs=$link_all_deplibs_RC 19873 19874# Compile-time system search path for libraries 19875sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19876 19877# Run-time system search path for libraries 19878sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19879 19880# Fix the shell variable \$srcfile for the compiler. 19881fix_srcfile_path=$lt_fix_srcfile_path 19882 19883# Set to yes if exported symbols are required. 19884always_export_symbols=$always_export_symbols_RC 19885 19886# The commands to list exported symbols. 19887export_symbols_cmds=$lt_export_symbols_cmds_RC 19888 19889# The commands to extract the exported symbol list from a shared archive. 19890extract_expsyms_cmds=$lt_extract_expsyms_cmds 19891 19892# Symbols that should not be listed in the preloaded symbols. 19893exclude_expsyms=$lt_exclude_expsyms_RC 19894 19895# Symbols that must always be exported. 19896include_expsyms=$lt_include_expsyms_RC 19897 19898# ### END LIBTOOL TAG CONFIG: $tagname 19899 19900__EOF__ 19901 19902 19903else 19904 # If there is no Makefile yet, we rely on a make rule to execute 19905 # `config.status --recheck' to rerun these tests and create the 19906 # libtool script then. 19907 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19908 if test -f "$ltmain_in"; then 19909 test -f Makefile && make "$ltmain" 19910 fi 19911fi 19912 19913 19914ac_ext=c 19915ac_cpp='$CPP $CPPFLAGS' 19916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19918ac_compiler_gnu=$ac_cv_c_compiler_gnu 19919 19920CC="$lt_save_CC" 19921 19922 ;; 19923 19924 *) 19925 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19926$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19927 { (exit 1); exit 1; }; } 19928 ;; 19929 esac 19930 19931 # Append the new tag name to the list of available tags. 19932 if test -n "$tagname" ; then 19933 available_tags="$available_tags $tagname" 19934 fi 19935 fi 19936 done 19937 IFS="$lt_save_ifs" 19938 19939 # Now substitute the updated list of available tags. 19940 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19941 mv "${ofile}T" "$ofile" 19942 chmod +x "$ofile" 19943 else 19944 rm -f "${ofile}T" 19945 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19946$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19947 { (exit 1); exit 1; }; } 19948 fi 19949fi 19950 19951 19952 19953# This can be used to rebuild libtool when needed 19954LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19955 19956# Always use our own libtool. 19957LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19958 19959# Prevent multiple expansion 19960 19961 19962 19963 19964 19965 19966 19967 19968 19969 19970 19971 19972 19973 19974 19975 19976 19977 19978 19979 19980ac_ext=c 19981ac_cpp='$CPP $CPPFLAGS' 19982ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19983ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19984ac_compiler_gnu=$ac_cv_c_compiler_gnu 19985if test -n "$ac_tool_prefix"; then 19986 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 19987set dummy ${ac_tool_prefix}gcc; ac_word=$2 19988{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 19989$as_echo_n "checking for $ac_word... " >&6; } 19990if test "${ac_cv_prog_CC+set}" = set; then 19991 $as_echo_n "(cached) " >&6 19992else 19993 if test -n "$CC"; then 19994 ac_cv_prog_CC="$CC" # Let the user override the test. 19995else 19996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19997for as_dir in $PATH 19998do 19999 IFS=$as_save_IFS 20000 test -z "$as_dir" && as_dir=. 20001 for ac_exec_ext in '' $ac_executable_extensions; do 20002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20003 ac_cv_prog_CC="${ac_tool_prefix}gcc" 20004 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20005 break 2 20006 fi 20007done 20008done 20009IFS=$as_save_IFS 20010 20011fi 20012fi 20013CC=$ac_cv_prog_CC 20014if test -n "$CC"; then 20015 { $as_echo "$as_me:$LINENO: result: $CC" >&5 20016$as_echo "$CC" >&6; } 20017else 20018 { $as_echo "$as_me:$LINENO: result: no" >&5 20019$as_echo "no" >&6; } 20020fi 20021 20022 20023fi 20024if test -z "$ac_cv_prog_CC"; then 20025 ac_ct_CC=$CC 20026 # Extract the first word of "gcc", so it can be a program name with args. 20027set dummy gcc; ac_word=$2 20028{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20029$as_echo_n "checking for $ac_word... " >&6; } 20030if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 20031 $as_echo_n "(cached) " >&6 20032else 20033 if test -n "$ac_ct_CC"; then 20034 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 20035else 20036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20037for as_dir in $PATH 20038do 20039 IFS=$as_save_IFS 20040 test -z "$as_dir" && as_dir=. 20041 for ac_exec_ext in '' $ac_executable_extensions; do 20042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20043 ac_cv_prog_ac_ct_CC="gcc" 20044 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20045 break 2 20046 fi 20047done 20048done 20049IFS=$as_save_IFS 20050 20051fi 20052fi 20053ac_ct_CC=$ac_cv_prog_ac_ct_CC 20054if test -n "$ac_ct_CC"; then 20055 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 20056$as_echo "$ac_ct_CC" >&6; } 20057else 20058 { $as_echo "$as_me:$LINENO: result: no" >&5 20059$as_echo "no" >&6; } 20060fi 20061 20062 if test "x$ac_ct_CC" = x; then 20063 CC="" 20064 else 20065 case $cross_compiling:$ac_tool_warned in 20066yes:) 20067{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 20068$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 20069ac_tool_warned=yes ;; 20070esac 20071 CC=$ac_ct_CC 20072 fi 20073else 20074 CC="$ac_cv_prog_CC" 20075fi 20076 20077if test -z "$CC"; then 20078 if test -n "$ac_tool_prefix"; then 20079 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 20080set dummy ${ac_tool_prefix}cc; ac_word=$2 20081{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20082$as_echo_n "checking for $ac_word... " >&6; } 20083if test "${ac_cv_prog_CC+set}" = set; then 20084 $as_echo_n "(cached) " >&6 20085else 20086 if test -n "$CC"; then 20087 ac_cv_prog_CC="$CC" # Let the user override the test. 20088else 20089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20090for as_dir in $PATH 20091do 20092 IFS=$as_save_IFS 20093 test -z "$as_dir" && as_dir=. 20094 for ac_exec_ext in '' $ac_executable_extensions; do 20095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20096 ac_cv_prog_CC="${ac_tool_prefix}cc" 20097 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20098 break 2 20099 fi 20100done 20101done 20102IFS=$as_save_IFS 20103 20104fi 20105fi 20106CC=$ac_cv_prog_CC 20107if test -n "$CC"; then 20108 { $as_echo "$as_me:$LINENO: result: $CC" >&5 20109$as_echo "$CC" >&6; } 20110else 20111 { $as_echo "$as_me:$LINENO: result: no" >&5 20112$as_echo "no" >&6; } 20113fi 20114 20115 20116 fi 20117fi 20118if test -z "$CC"; then 20119 # Extract the first word of "cc", so it can be a program name with args. 20120set dummy cc; ac_word=$2 20121{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20122$as_echo_n "checking for $ac_word... " >&6; } 20123if test "${ac_cv_prog_CC+set}" = set; then 20124 $as_echo_n "(cached) " >&6 20125else 20126 if test -n "$CC"; then 20127 ac_cv_prog_CC="$CC" # Let the user override the test. 20128else 20129 ac_prog_rejected=no 20130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20131for as_dir in $PATH 20132do 20133 IFS=$as_save_IFS 20134 test -z "$as_dir" && as_dir=. 20135 for ac_exec_ext in '' $ac_executable_extensions; do 20136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20137 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 20138 ac_prog_rejected=yes 20139 continue 20140 fi 20141 ac_cv_prog_CC="cc" 20142 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20143 break 2 20144 fi 20145done 20146done 20147IFS=$as_save_IFS 20148 20149if test $ac_prog_rejected = yes; then 20150 # We found a bogon in the path, so make sure we never use it. 20151 set dummy $ac_cv_prog_CC 20152 shift 20153 if test $# != 0; then 20154 # We chose a different compiler from the bogus one. 20155 # However, it has the same basename, so the bogon will be chosen 20156 # first if we set CC to just the basename; use the full file name. 20157 shift 20158 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 20159 fi 20160fi 20161fi 20162fi 20163CC=$ac_cv_prog_CC 20164if test -n "$CC"; then 20165 { $as_echo "$as_me:$LINENO: result: $CC" >&5 20166$as_echo "$CC" >&6; } 20167else 20168 { $as_echo "$as_me:$LINENO: result: no" >&5 20169$as_echo "no" >&6; } 20170fi 20171 20172 20173fi 20174if test -z "$CC"; then 20175 if test -n "$ac_tool_prefix"; then 20176 for ac_prog in cl.exe 20177 do 20178 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 20179set dummy $ac_tool_prefix$ac_prog; ac_word=$2 20180{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20181$as_echo_n "checking for $ac_word... " >&6; } 20182if test "${ac_cv_prog_CC+set}" = set; then 20183 $as_echo_n "(cached) " >&6 20184else 20185 if test -n "$CC"; then 20186 ac_cv_prog_CC="$CC" # Let the user override the test. 20187else 20188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20189for as_dir in $PATH 20190do 20191 IFS=$as_save_IFS 20192 test -z "$as_dir" && as_dir=. 20193 for ac_exec_ext in '' $ac_executable_extensions; do 20194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20195 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 20196 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20197 break 2 20198 fi 20199done 20200done 20201IFS=$as_save_IFS 20202 20203fi 20204fi 20205CC=$ac_cv_prog_CC 20206if test -n "$CC"; then 20207 { $as_echo "$as_me:$LINENO: result: $CC" >&5 20208$as_echo "$CC" >&6; } 20209else 20210 { $as_echo "$as_me:$LINENO: result: no" >&5 20211$as_echo "no" >&6; } 20212fi 20213 20214 20215 test -n "$CC" && break 20216 done 20217fi 20218if test -z "$CC"; then 20219 ac_ct_CC=$CC 20220 for ac_prog in cl.exe 20221do 20222 # Extract the first word of "$ac_prog", so it can be a program name with args. 20223set dummy $ac_prog; ac_word=$2 20224{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20225$as_echo_n "checking for $ac_word... " >&6; } 20226if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 20227 $as_echo_n "(cached) " >&6 20228else 20229 if test -n "$ac_ct_CC"; then 20230 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 20231else 20232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20233for as_dir in $PATH 20234do 20235 IFS=$as_save_IFS 20236 test -z "$as_dir" && as_dir=. 20237 for ac_exec_ext in '' $ac_executable_extensions; do 20238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20239 ac_cv_prog_ac_ct_CC="$ac_prog" 20240 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20241 break 2 20242 fi 20243done 20244done 20245IFS=$as_save_IFS 20246 20247fi 20248fi 20249ac_ct_CC=$ac_cv_prog_ac_ct_CC 20250if test -n "$ac_ct_CC"; then 20251 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 20252$as_echo "$ac_ct_CC" >&6; } 20253else 20254 { $as_echo "$as_me:$LINENO: result: no" >&5 20255$as_echo "no" >&6; } 20256fi 20257 20258 20259 test -n "$ac_ct_CC" && break 20260done 20261 20262 if test "x$ac_ct_CC" = x; then 20263 CC="" 20264 else 20265 case $cross_compiling:$ac_tool_warned in 20266yes:) 20267{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 20268$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 20269ac_tool_warned=yes ;; 20270esac 20271 CC=$ac_ct_CC 20272 fi 20273fi 20274 20275fi 20276 20277 20278test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 20279$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20280{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 20281See \`config.log' for more details." >&5 20282$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 20283See \`config.log' for more details." >&2;} 20284 { (exit 1); exit 1; }; }; } 20285 20286# Provide some information about the compiler. 20287$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 20288set X $ac_compile 20289ac_compiler=$2 20290{ (ac_try="$ac_compiler --version >&5" 20291case "(($ac_try" in 20292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20293 *) ac_try_echo=$ac_try;; 20294esac 20295eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20296$as_echo "$ac_try_echo") >&5 20297 (eval "$ac_compiler --version >&5") 2>&5 20298 ac_status=$? 20299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20300 (exit $ac_status); } 20301{ (ac_try="$ac_compiler -v >&5" 20302case "(($ac_try" in 20303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20304 *) ac_try_echo=$ac_try;; 20305esac 20306eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20307$as_echo "$ac_try_echo") >&5 20308 (eval "$ac_compiler -v >&5") 2>&5 20309 ac_status=$? 20310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20311 (exit $ac_status); } 20312{ (ac_try="$ac_compiler -V >&5" 20313case "(($ac_try" in 20314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20315 *) ac_try_echo=$ac_try;; 20316esac 20317eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20318$as_echo "$ac_try_echo") >&5 20319 (eval "$ac_compiler -V >&5") 2>&5 20320 ac_status=$? 20321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20322 (exit $ac_status); } 20323 20324{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 20325$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 20326if test "${ac_cv_c_compiler_gnu+set}" = set; then 20327 $as_echo_n "(cached) " >&6 20328else 20329 cat >conftest.$ac_ext <<_ACEOF 20330/* confdefs.h. */ 20331_ACEOF 20332cat confdefs.h >>conftest.$ac_ext 20333cat >>conftest.$ac_ext <<_ACEOF 20334/* end confdefs.h. */ 20335 20336int 20337main () 20338{ 20339#ifndef __GNUC__ 20340 choke me 20341#endif 20342 20343 ; 20344 return 0; 20345} 20346_ACEOF 20347rm -f conftest.$ac_objext 20348if { (ac_try="$ac_compile" 20349case "(($ac_try" in 20350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20351 *) ac_try_echo=$ac_try;; 20352esac 20353eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20354$as_echo "$ac_try_echo") >&5 20355 (eval "$ac_compile") 2>conftest.er1 20356 ac_status=$? 20357 grep -v '^ *+' conftest.er1 >conftest.err 20358 rm -f conftest.er1 20359 cat conftest.err >&5 20360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20361 (exit $ac_status); } && { 20362 test -z "$ac_c_werror_flag" || 20363 test ! -s conftest.err 20364 } && test -s conftest.$ac_objext; then 20365 ac_compiler_gnu=yes 20366else 20367 $as_echo "$as_me: failed program was:" >&5 20368sed 's/^/| /' conftest.$ac_ext >&5 20369 20370 ac_compiler_gnu=no 20371fi 20372 20373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20374ac_cv_c_compiler_gnu=$ac_compiler_gnu 20375 20376fi 20377{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 20378$as_echo "$ac_cv_c_compiler_gnu" >&6; } 20379if test $ac_compiler_gnu = yes; then 20380 GCC=yes 20381else 20382 GCC= 20383fi 20384ac_test_CFLAGS=${CFLAGS+set} 20385ac_save_CFLAGS=$CFLAGS 20386{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 20387$as_echo_n "checking whether $CC accepts -g... " >&6; } 20388if test "${ac_cv_prog_cc_g+set}" = set; then 20389 $as_echo_n "(cached) " >&6 20390else 20391 ac_save_c_werror_flag=$ac_c_werror_flag 20392 ac_c_werror_flag=yes 20393 ac_cv_prog_cc_g=no 20394 CFLAGS="-g" 20395 cat >conftest.$ac_ext <<_ACEOF 20396/* confdefs.h. */ 20397_ACEOF 20398cat confdefs.h >>conftest.$ac_ext 20399cat >>conftest.$ac_ext <<_ACEOF 20400/* end confdefs.h. */ 20401 20402int 20403main () 20404{ 20405 20406 ; 20407 return 0; 20408} 20409_ACEOF 20410rm -f conftest.$ac_objext 20411if { (ac_try="$ac_compile" 20412case "(($ac_try" in 20413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20414 *) ac_try_echo=$ac_try;; 20415esac 20416eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20417$as_echo "$ac_try_echo") >&5 20418 (eval "$ac_compile") 2>conftest.er1 20419 ac_status=$? 20420 grep -v '^ *+' conftest.er1 >conftest.err 20421 rm -f conftest.er1 20422 cat conftest.err >&5 20423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20424 (exit $ac_status); } && { 20425 test -z "$ac_c_werror_flag" || 20426 test ! -s conftest.err 20427 } && test -s conftest.$ac_objext; then 20428 ac_cv_prog_cc_g=yes 20429else 20430 $as_echo "$as_me: failed program was:" >&5 20431sed 's/^/| /' conftest.$ac_ext >&5 20432 20433 CFLAGS="" 20434 cat >conftest.$ac_ext <<_ACEOF 20435/* confdefs.h. */ 20436_ACEOF 20437cat confdefs.h >>conftest.$ac_ext 20438cat >>conftest.$ac_ext <<_ACEOF 20439/* end confdefs.h. */ 20440 20441int 20442main () 20443{ 20444 20445 ; 20446 return 0; 20447} 20448_ACEOF 20449rm -f conftest.$ac_objext 20450if { (ac_try="$ac_compile" 20451case "(($ac_try" in 20452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20453 *) ac_try_echo=$ac_try;; 20454esac 20455eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20456$as_echo "$ac_try_echo") >&5 20457 (eval "$ac_compile") 2>conftest.er1 20458 ac_status=$? 20459 grep -v '^ *+' conftest.er1 >conftest.err 20460 rm -f conftest.er1 20461 cat conftest.err >&5 20462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20463 (exit $ac_status); } && { 20464 test -z "$ac_c_werror_flag" || 20465 test ! -s conftest.err 20466 } && test -s conftest.$ac_objext; then 20467 : 20468else 20469 $as_echo "$as_me: failed program was:" >&5 20470sed 's/^/| /' conftest.$ac_ext >&5 20471 20472 ac_c_werror_flag=$ac_save_c_werror_flag 20473 CFLAGS="-g" 20474 cat >conftest.$ac_ext <<_ACEOF 20475/* confdefs.h. */ 20476_ACEOF 20477cat confdefs.h >>conftest.$ac_ext 20478cat >>conftest.$ac_ext <<_ACEOF 20479/* end confdefs.h. */ 20480 20481int 20482main () 20483{ 20484 20485 ; 20486 return 0; 20487} 20488_ACEOF 20489rm -f conftest.$ac_objext 20490if { (ac_try="$ac_compile" 20491case "(($ac_try" in 20492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20493 *) ac_try_echo=$ac_try;; 20494esac 20495eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20496$as_echo "$ac_try_echo") >&5 20497 (eval "$ac_compile") 2>conftest.er1 20498 ac_status=$? 20499 grep -v '^ *+' conftest.er1 >conftest.err 20500 rm -f conftest.er1 20501 cat conftest.err >&5 20502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20503 (exit $ac_status); } && { 20504 test -z "$ac_c_werror_flag" || 20505 test ! -s conftest.err 20506 } && test -s conftest.$ac_objext; then 20507 ac_cv_prog_cc_g=yes 20508else 20509 $as_echo "$as_me: failed program was:" >&5 20510sed 's/^/| /' conftest.$ac_ext >&5 20511 20512 20513fi 20514 20515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20516fi 20517 20518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20519fi 20520 20521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20522 ac_c_werror_flag=$ac_save_c_werror_flag 20523fi 20524{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 20525$as_echo "$ac_cv_prog_cc_g" >&6; } 20526if test "$ac_test_CFLAGS" = set; then 20527 CFLAGS=$ac_save_CFLAGS 20528elif test $ac_cv_prog_cc_g = yes; then 20529 if test "$GCC" = yes; then 20530 CFLAGS="-g -O2" 20531 else 20532 CFLAGS="-g" 20533 fi 20534else 20535 if test "$GCC" = yes; then 20536 CFLAGS="-O2" 20537 else 20538 CFLAGS= 20539 fi 20540fi 20541{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 20542$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 20543if test "${ac_cv_prog_cc_c89+set}" = set; then 20544 $as_echo_n "(cached) " >&6 20545else 20546 ac_cv_prog_cc_c89=no 20547ac_save_CC=$CC 20548cat >conftest.$ac_ext <<_ACEOF 20549/* confdefs.h. */ 20550_ACEOF 20551cat confdefs.h >>conftest.$ac_ext 20552cat >>conftest.$ac_ext <<_ACEOF 20553/* end confdefs.h. */ 20554#include <stdarg.h> 20555#include <stdio.h> 20556#include <sys/types.h> 20557#include <sys/stat.h> 20558/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 20559struct buf { int x; }; 20560FILE * (*rcsopen) (struct buf *, struct stat *, int); 20561static char *e (p, i) 20562 char **p; 20563 int i; 20564{ 20565 return p[i]; 20566} 20567static char *f (char * (*g) (char **, int), char **p, ...) 20568{ 20569 char *s; 20570 va_list v; 20571 va_start (v,p); 20572 s = g (p, va_arg (v,int)); 20573 va_end (v); 20574 return s; 20575} 20576 20577/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 20578 function prototypes and stuff, but not '\xHH' hex character constants. 20579 These don't provoke an error unfortunately, instead are silently treated 20580 as 'x'. The following induces an error, until -std is added to get 20581 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 20582 array size at least. It's necessary to write '\x00'==0 to get something 20583 that's true only with -std. */ 20584int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 20585 20586/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 20587 inside strings and character constants. */ 20588#define FOO(x) 'x' 20589int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 20590 20591int test (int i, double x); 20592struct s1 {int (*f) (int a);}; 20593struct s2 {int (*f) (double a);}; 20594int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 20595int argc; 20596char **argv; 20597int 20598main () 20599{ 20600return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 20601 ; 20602 return 0; 20603} 20604_ACEOF 20605for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 20606 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 20607do 20608 CC="$ac_save_CC $ac_arg" 20609 rm -f conftest.$ac_objext 20610if { (ac_try="$ac_compile" 20611case "(($ac_try" in 20612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20613 *) ac_try_echo=$ac_try;; 20614esac 20615eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20616$as_echo "$ac_try_echo") >&5 20617 (eval "$ac_compile") 2>conftest.er1 20618 ac_status=$? 20619 grep -v '^ *+' conftest.er1 >conftest.err 20620 rm -f conftest.er1 20621 cat conftest.err >&5 20622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20623 (exit $ac_status); } && { 20624 test -z "$ac_c_werror_flag" || 20625 test ! -s conftest.err 20626 } && test -s conftest.$ac_objext; then 20627 ac_cv_prog_cc_c89=$ac_arg 20628else 20629 $as_echo "$as_me: failed program was:" >&5 20630sed 's/^/| /' conftest.$ac_ext >&5 20631 20632 20633fi 20634 20635rm -f core conftest.err conftest.$ac_objext 20636 test "x$ac_cv_prog_cc_c89" != "xno" && break 20637done 20638rm -f conftest.$ac_ext 20639CC=$ac_save_CC 20640 20641fi 20642# AC_CACHE_VAL 20643case "x$ac_cv_prog_cc_c89" in 20644 x) 20645 { $as_echo "$as_me:$LINENO: result: none needed" >&5 20646$as_echo "none needed" >&6; } ;; 20647 xno) 20648 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 20649$as_echo "unsupported" >&6; } ;; 20650 *) 20651 CC="$CC $ac_cv_prog_cc_c89" 20652 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 20653$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 20654esac 20655 20656 20657ac_ext=c 20658ac_cpp='$CPP $CPPFLAGS' 20659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20661ac_compiler_gnu=$ac_cv_c_compiler_gnu 20662 20663depcc="$CC" am_compiler_list= 20664 20665{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 20666$as_echo_n "checking dependency style of $depcc... " >&6; } 20667if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 20668 $as_echo_n "(cached) " >&6 20669else 20670 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 20671 # We make a subdir and do the tests there. Otherwise we can end up 20672 # making bogus files that we don't know about and never remove. For 20673 # instance it was reported that on HP-UX the gcc test will end up 20674 # making a dummy file named `D' -- because `-MD' means `put the output 20675 # in D'. 20676 mkdir conftest.dir 20677 # Copy depcomp to subdir because otherwise we won't find it if we're 20678 # using a relative directory. 20679 cp "$am_depcomp" conftest.dir 20680 cd conftest.dir 20681 # We will build objects and dependencies in a subdirectory because 20682 # it helps to detect inapplicable dependency modes. For instance 20683 # both Tru64's cc and ICC support -MD to output dependencies as a 20684 # side effect of compilation, but ICC will put the dependencies in 20685 # the current directory while Tru64 will put them in the object 20686 # directory. 20687 mkdir sub 20688 20689 am_cv_CC_dependencies_compiler_type=none 20690 if test "$am_compiler_list" = ""; then 20691 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 20692 fi 20693 for depmode in $am_compiler_list; do 20694 # Setup a source with many dependencies, because some compilers 20695 # like to wrap large dependency lists on column 80 (with \), and 20696 # we should not choose a depcomp mode which is confused by this. 20697 # 20698 # We need to recreate these files for each test, as the compiler may 20699 # overwrite some of them when testing with obscure command lines. 20700 # This happens at least with the AIX C compiler. 20701 : > sub/conftest.c 20702 for i in 1 2 3 4 5 6; do 20703 echo '#include "conftst'$i'.h"' >> sub/conftest.c 20704 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 20705 # Solaris 8's {/usr,}/bin/sh. 20706 touch sub/conftst$i.h 20707 done 20708 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 20709 20710 case $depmode in 20711 nosideeffect) 20712 # after this tag, mechanisms are not by side-effect, so they'll 20713 # only be used when explicitly requested 20714 if test "x$enable_dependency_tracking" = xyes; then 20715 continue 20716 else 20717 break 20718 fi 20719 ;; 20720 none) break ;; 20721 esac 20722 # We check with `-c' and `-o' for the sake of the "dashmstdout" 20723 # mode. It turns out that the SunPro C++ compiler does not properly 20724 # handle `-M -o', and we need to detect this. 20725 if depmode=$depmode \ 20726 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 20727 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 20728 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 20729 >/dev/null 2>conftest.err && 20730 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 20731 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 20732 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 20733 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 20734 # icc doesn't choke on unknown options, it will just issue warnings 20735 # or remarks (even with -Werror). So we grep stderr for any message 20736 # that says an option was ignored or not supported. 20737 # When given -MP, icc 7.0 and 7.1 complain thusly: 20738 # icc: Command line warning: ignoring option '-M'; no argument required 20739 # The diagnosis changed in icc 8.0: 20740 # icc: Command line remark: option '-MP' not supported 20741 if (grep 'ignoring option' conftest.err || 20742 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 20743 am_cv_CC_dependencies_compiler_type=$depmode 20744 break 20745 fi 20746 fi 20747 done 20748 20749 cd .. 20750 rm -rf conftest.dir 20751else 20752 am_cv_CC_dependencies_compiler_type=none 20753fi 20754 20755fi 20756{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 20757$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 20758CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 20759 20760 if 20761 test "x$enable_dependency_tracking" != xno \ 20762 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 20763 am__fastdepCC_TRUE= 20764 am__fastdepCC_FALSE='#' 20765else 20766 am__fastdepCC_TRUE='#' 20767 am__fastdepCC_FALSE= 20768fi 20769 20770 20771 20772 20773 20774 20775 20776# Check whether --with-xorg-module-dir was given. 20777if test "${with_xorg_module_dir+set}" = set; then 20778 withval=$with_xorg_module_dir; moduledir="$withval" 20779else 20780 moduledir="$libdir/xorg/modules" 20781fi 20782 20783 20784# Check whether --enable-dri was given. 20785if test "${enable_dri+set}" = set; then 20786 enableval=$enable_dri; DRI="$enableval" 20787else 20788 DRI=auto 20789fi 20790 20791 20792# Checks for extensions 20793 20794 SAVE_CFLAGS="$CFLAGS" 20795 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 20796 cat >conftest.$ac_ext <<_ACEOF 20797/* confdefs.h. */ 20798_ACEOF 20799cat confdefs.h >>conftest.$ac_ext 20800cat >>conftest.$ac_ext <<_ACEOF 20801/* end confdefs.h. */ 20802 20803#include "xorg-server.h" 20804#if !defined RANDR 20805#error RANDR not defined 20806#endif 20807 20808int 20809main () 20810{ 20811 20812 ; 20813 return 0; 20814} 20815_ACEOF 20816rm -f conftest.$ac_objext 20817if { (ac_try="$ac_compile" 20818case "(($ac_try" in 20819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20820 *) ac_try_echo=$ac_try;; 20821esac 20822eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20823$as_echo "$ac_try_echo") >&5 20824 (eval "$ac_compile") 2>conftest.er1 20825 ac_status=$? 20826 grep -v '^ *+' conftest.er1 >conftest.err 20827 rm -f conftest.er1 20828 cat conftest.err >&5 20829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20830 (exit $ac_status); } && { 20831 test -z "$ac_c_werror_flag" || 20832 test ! -s conftest.err 20833 } && test -s conftest.$ac_objext; then 20834 _EXT_CHECK=yes 20835else 20836 $as_echo "$as_me: failed program was:" >&5 20837sed 's/^/| /' conftest.$ac_ext >&5 20838 20839 _EXT_CHECK=no 20840fi 20841 20842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20843 CFLAGS="$SAVE_CFLAGS" 20844 { $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5 20845$as_echo_n "checking if RANDR is defined... " >&6; } 20846 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 20847$as_echo "$_EXT_CHECK" >&6; } 20848 if test "$_EXT_CHECK" != no; then 20849 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 20850 fi 20851 20852 20853 SAVE_CFLAGS="$CFLAGS" 20854 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 20855 cat >conftest.$ac_ext <<_ACEOF 20856/* confdefs.h. */ 20857_ACEOF 20858cat confdefs.h >>conftest.$ac_ext 20859cat >>conftest.$ac_ext <<_ACEOF 20860/* end confdefs.h. */ 20861 20862#include "xorg-server.h" 20863#if !defined RENDER 20864#error RENDER not defined 20865#endif 20866 20867int 20868main () 20869{ 20870 20871 ; 20872 return 0; 20873} 20874_ACEOF 20875rm -f conftest.$ac_objext 20876if { (ac_try="$ac_compile" 20877case "(($ac_try" in 20878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20879 *) ac_try_echo=$ac_try;; 20880esac 20881eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20882$as_echo "$ac_try_echo") >&5 20883 (eval "$ac_compile") 2>conftest.er1 20884 ac_status=$? 20885 grep -v '^ *+' conftest.er1 >conftest.err 20886 rm -f conftest.er1 20887 cat conftest.err >&5 20888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20889 (exit $ac_status); } && { 20890 test -z "$ac_c_werror_flag" || 20891 test ! -s conftest.err 20892 } && test -s conftest.$ac_objext; then 20893 _EXT_CHECK=yes 20894else 20895 $as_echo "$as_me: failed program was:" >&5 20896sed 's/^/| /' conftest.$ac_ext >&5 20897 20898 _EXT_CHECK=no 20899fi 20900 20901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20902 CFLAGS="$SAVE_CFLAGS" 20903 { $as_echo "$as_me:$LINENO: checking if RENDER is defined" >&5 20904$as_echo_n "checking if RENDER is defined... " >&6; } 20905 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 20906$as_echo "$_EXT_CHECK" >&6; } 20907 if test "$_EXT_CHECK" != no; then 20908 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 20909 fi 20910 20911 20912 SAVE_CFLAGS="$CFLAGS" 20913 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 20914 cat >conftest.$ac_ext <<_ACEOF 20915/* confdefs.h. */ 20916_ACEOF 20917cat confdefs.h >>conftest.$ac_ext 20918cat >>conftest.$ac_ext <<_ACEOF 20919/* end confdefs.h. */ 20920 20921#include "xorg-server.h" 20922#if !defined XV 20923#error XV not defined 20924#endif 20925 20926int 20927main () 20928{ 20929 20930 ; 20931 return 0; 20932} 20933_ACEOF 20934rm -f conftest.$ac_objext 20935if { (ac_try="$ac_compile" 20936case "(($ac_try" in 20937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20938 *) ac_try_echo=$ac_try;; 20939esac 20940eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20941$as_echo "$ac_try_echo") >&5 20942 (eval "$ac_compile") 2>conftest.er1 20943 ac_status=$? 20944 grep -v '^ *+' conftest.er1 >conftest.err 20945 rm -f conftest.er1 20946 cat conftest.err >&5 20947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20948 (exit $ac_status); } && { 20949 test -z "$ac_c_werror_flag" || 20950 test ! -s conftest.err 20951 } && test -s conftest.$ac_objext; then 20952 _EXT_CHECK=yes 20953else 20954 $as_echo "$as_me: failed program was:" >&5 20955sed 's/^/| /' conftest.$ac_ext >&5 20956 20957 _EXT_CHECK=no 20958fi 20959 20960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20961 CFLAGS="$SAVE_CFLAGS" 20962 { $as_echo "$as_me:$LINENO: checking if XV is defined" >&5 20963$as_echo_n "checking if XV is defined... " >&6; } 20964 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 20965$as_echo "$_EXT_CHECK" >&6; } 20966 if test "$_EXT_CHECK" != no; then 20967 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 20968 fi 20969 20970 20971 SAVE_CFLAGS="$CFLAGS" 20972 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 20973 cat >conftest.$ac_ext <<_ACEOF 20974/* confdefs.h. */ 20975_ACEOF 20976cat confdefs.h >>conftest.$ac_ext 20977cat >>conftest.$ac_ext <<_ACEOF 20978/* end confdefs.h. */ 20979 20980#include "xorg-server.h" 20981#if !defined DPMSExtension 20982#error DPMSExtension not defined 20983#endif 20984 20985int 20986main () 20987{ 20988 20989 ; 20990 return 0; 20991} 20992_ACEOF 20993rm -f conftest.$ac_objext 20994if { (ac_try="$ac_compile" 20995case "(($ac_try" in 20996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20997 *) ac_try_echo=$ac_try;; 20998esac 20999eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21000$as_echo "$ac_try_echo") >&5 21001 (eval "$ac_compile") 2>conftest.er1 21002 ac_status=$? 21003 grep -v '^ *+' conftest.er1 >conftest.err 21004 rm -f conftest.er1 21005 cat conftest.err >&5 21006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21007 (exit $ac_status); } && { 21008 test -z "$ac_c_werror_flag" || 21009 test ! -s conftest.err 21010 } && test -s conftest.$ac_objext; then 21011 _EXT_CHECK=yes 21012else 21013 $as_echo "$as_me: failed program was:" >&5 21014sed 's/^/| /' conftest.$ac_ext >&5 21015 21016 _EXT_CHECK=no 21017fi 21018 21019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21020 CFLAGS="$SAVE_CFLAGS" 21021 { $as_echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5 21022$as_echo_n "checking if DPMSExtension is defined... " >&6; } 21023 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 21024$as_echo "$_EXT_CHECK" >&6; } 21025 if test "$_EXT_CHECK" != no; then 21026 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 21027 fi 21028 21029 21030 SAVE_CFLAGS="$CFLAGS" 21031 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 21032 cat >conftest.$ac_ext <<_ACEOF 21033/* confdefs.h. */ 21034_ACEOF 21035cat confdefs.h >>conftest.$ac_ext 21036cat >>conftest.$ac_ext <<_ACEOF 21037/* end confdefs.h. */ 21038 21039#include "xorg-server.h" 21040#if !defined XFreeXDGA 21041#error XFreeXDGA not defined 21042#endif 21043 21044int 21045main () 21046{ 21047 21048 ; 21049 return 0; 21050} 21051_ACEOF 21052rm -f conftest.$ac_objext 21053if { (ac_try="$ac_compile" 21054case "(($ac_try" in 21055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21056 *) ac_try_echo=$ac_try;; 21057esac 21058eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21059$as_echo "$ac_try_echo") >&5 21060 (eval "$ac_compile") 2>conftest.er1 21061 ac_status=$? 21062 grep -v '^ *+' conftest.er1 >conftest.err 21063 rm -f conftest.er1 21064 cat conftest.err >&5 21065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21066 (exit $ac_status); } && { 21067 test -z "$ac_c_werror_flag" || 21068 test ! -s conftest.err 21069 } && test -s conftest.$ac_objext; then 21070 _EXT_CHECK=yes 21071else 21072 $as_echo "$as_me: failed program was:" >&5 21073sed 's/^/| /' conftest.$ac_ext >&5 21074 21075 _EXT_CHECK=no 21076fi 21077 21078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21079 CFLAGS="$SAVE_CFLAGS" 21080 { $as_echo "$as_me:$LINENO: checking if XFreeXDGA is defined" >&5 21081$as_echo_n "checking if XFreeXDGA is defined... " >&6; } 21082 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 21083$as_echo "$_EXT_CHECK" >&6; } 21084 if test "$_EXT_CHECK" != no; then 21085 REQUIRED_MODULES="$REQUIRED_MODULES xf86dgaproto" 21086 fi 21087 21088 21089# Checks for pkg-config packages 21090 21091 21092if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 21093 if test -n "$ac_tool_prefix"; then 21094 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 21095set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 21096{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 21097$as_echo_n "checking for $ac_word... " >&6; } 21098if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 21099 $as_echo_n "(cached) " >&6 21100else 21101 case $PKG_CONFIG in 21102 [\\/]* | ?:[\\/]*) 21103 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 21104 ;; 21105 *) 21106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21107for as_dir in $PATH 21108do 21109 IFS=$as_save_IFS 21110 test -z "$as_dir" && as_dir=. 21111 for ac_exec_ext in '' $ac_executable_extensions; do 21112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21113 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 21114 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21115 break 2 21116 fi 21117done 21118done 21119IFS=$as_save_IFS 21120 21121 ;; 21122esac 21123fi 21124PKG_CONFIG=$ac_cv_path_PKG_CONFIG 21125if test -n "$PKG_CONFIG"; then 21126 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 21127$as_echo "$PKG_CONFIG" >&6; } 21128else 21129 { $as_echo "$as_me:$LINENO: result: no" >&5 21130$as_echo "no" >&6; } 21131fi 21132 21133 21134fi 21135if test -z "$ac_cv_path_PKG_CONFIG"; then 21136 ac_pt_PKG_CONFIG=$PKG_CONFIG 21137 # Extract the first word of "pkg-config", so it can be a program name with args. 21138set dummy pkg-config; ac_word=$2 21139{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 21140$as_echo_n "checking for $ac_word... " >&6; } 21141if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 21142 $as_echo_n "(cached) " >&6 21143else 21144 case $ac_pt_PKG_CONFIG in 21145 [\\/]* | ?:[\\/]*) 21146 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 21147 ;; 21148 *) 21149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21150for as_dir in $PATH 21151do 21152 IFS=$as_save_IFS 21153 test -z "$as_dir" && as_dir=. 21154 for ac_exec_ext in '' $ac_executable_extensions; do 21155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21156 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 21157 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21158 break 2 21159 fi 21160done 21161done 21162IFS=$as_save_IFS 21163 21164 ;; 21165esac 21166fi 21167ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 21168if test -n "$ac_pt_PKG_CONFIG"; then 21169 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 21170$as_echo "$ac_pt_PKG_CONFIG" >&6; } 21171else 21172 { $as_echo "$as_me:$LINENO: result: no" >&5 21173$as_echo "no" >&6; } 21174fi 21175 21176 if test "x$ac_pt_PKG_CONFIG" = x; then 21177 PKG_CONFIG="" 21178 else 21179 case $cross_compiling:$ac_tool_warned in 21180yes:) 21181{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 21182$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 21183ac_tool_warned=yes ;; 21184esac 21185 PKG_CONFIG=$ac_pt_PKG_CONFIG 21186 fi 21187else 21188 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 21189fi 21190 21191fi 21192if test -n "$PKG_CONFIG"; then 21193 _pkg_min_version=0.9.0 21194 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 21195$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 21196 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 21197 { $as_echo "$as_me:$LINENO: result: yes" >&5 21198$as_echo "yes" >&6; } 21199 else 21200 { $as_echo "$as_me:$LINENO: result: no" >&5 21201$as_echo "no" >&6; } 21202 PKG_CONFIG="" 21203 fi 21204 21205fi 21206 21207pkg_failed=no 21208{ $as_echo "$as_me:$LINENO: checking for XORG" >&5 21209$as_echo_n "checking for XORG... " >&6; } 21210 21211if test -n "$XORG_CFLAGS"; then 21212 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 21213 elif test -n "$PKG_CONFIG"; then 21214 if test -n "$PKG_CONFIG" && \ 21215 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5 21216 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 21217 ac_status=$? 21218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21219 (exit $ac_status); }; then 21220 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 21221else 21222 pkg_failed=yes 21223fi 21224 else 21225 pkg_failed=untried 21226fi 21227if test -n "$XORG_LIBS"; then 21228 pkg_cv_XORG_LIBS="$XORG_LIBS" 21229 elif test -n "$PKG_CONFIG"; then 21230 if test -n "$PKG_CONFIG" && \ 21231 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5 21232 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 21233 ac_status=$? 21234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21235 (exit $ac_status); }; then 21236 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 21237else 21238 pkg_failed=yes 21239fi 21240 else 21241 pkg_failed=untried 21242fi 21243 21244 21245 21246if test $pkg_failed = yes; then 21247 21248if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21249 _pkg_short_errors_supported=yes 21250else 21251 _pkg_short_errors_supported=no 21252fi 21253 if test $_pkg_short_errors_supported = yes; then 21254 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 21255 else 21256 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 21257 fi 21258 # Put the nasty error message in config.log where it belongs 21259 echo "$XORG_PKG_ERRORS" >&5 21260 21261 { { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met: 21262 21263$XORG_PKG_ERRORS 21264 21265Consider adjusting the PKG_CONFIG_PATH environment variable if you 21266installed software in a non-standard prefix. 21267 21268Alternatively, you may set the environment variables XORG_CFLAGS 21269and XORG_LIBS to avoid the need to call pkg-config. 21270See the pkg-config man page for more details. 21271" >&5 21272$as_echo "$as_me: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met: 21273 21274$XORG_PKG_ERRORS 21275 21276Consider adjusting the PKG_CONFIG_PATH environment variable if you 21277installed software in a non-standard prefix. 21278 21279Alternatively, you may set the environment variables XORG_CFLAGS 21280and XORG_LIBS to avoid the need to call pkg-config. 21281See the pkg-config man page for more details. 21282" >&2;} 21283 { (exit 1); exit 1; }; } 21284elif test $pkg_failed = untried; then 21285 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 21286$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21287{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 21288is in your PATH or set the PKG_CONFIG environment variable to the full 21289path to pkg-config. 21290 21291Alternatively, you may set the environment variables XORG_CFLAGS 21292and XORG_LIBS to avoid the need to call pkg-config. 21293See the pkg-config man page for more details. 21294 21295To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21296See \`config.log' for more details." >&5 21297$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 21298is in your PATH or set the PKG_CONFIG environment variable to the full 21299path to pkg-config. 21300 21301Alternatively, you may set the environment variables XORG_CFLAGS 21302and XORG_LIBS to avoid the need to call pkg-config. 21303See the pkg-config man page for more details. 21304 21305To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21306See \`config.log' for more details." >&2;} 21307 { (exit 1); exit 1; }; }; } 21308else 21309 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 21310 XORG_LIBS=$pkg_cv_XORG_LIBS 21311 { $as_echo "$as_me:$LINENO: result: yes" >&5 21312$as_echo "yes" >&6; } 21313 : 21314fi 21315sdkdir=$(pkg-config --variable=sdkdir xorg-server) 21316 21317# Checks for libraries. 21318SAVE_CPPFLAGS="$CPPFLAGS" 21319CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 21320{ $as_echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5 21321$as_echo_n "checking whether XSERVER_LIBPCIACCESS is declared... " >&6; } 21322if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then 21323 $as_echo_n "(cached) " >&6 21324else 21325 cat >conftest.$ac_ext <<_ACEOF 21326/* confdefs.h. */ 21327_ACEOF 21328cat confdefs.h >>conftest.$ac_ext 21329cat >>conftest.$ac_ext <<_ACEOF 21330/* end confdefs.h. */ 21331#include "xorg-server.h" 21332 21333int 21334main () 21335{ 21336#ifndef XSERVER_LIBPCIACCESS 21337 (void) XSERVER_LIBPCIACCESS; 21338#endif 21339 21340 ; 21341 return 0; 21342} 21343_ACEOF 21344rm -f conftest.$ac_objext 21345if { (ac_try="$ac_compile" 21346case "(($ac_try" in 21347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21348 *) ac_try_echo=$ac_try;; 21349esac 21350eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21351$as_echo "$ac_try_echo") >&5 21352 (eval "$ac_compile") 2>conftest.er1 21353 ac_status=$? 21354 grep -v '^ *+' conftest.er1 >conftest.err 21355 rm -f conftest.er1 21356 cat conftest.err >&5 21357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21358 (exit $ac_status); } && { 21359 test -z "$ac_c_werror_flag" || 21360 test ! -s conftest.err 21361 } && test -s conftest.$ac_objext; then 21362 ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes 21363else 21364 $as_echo "$as_me: failed program was:" >&5 21365sed 's/^/| /' conftest.$ac_ext >&5 21366 21367 ac_cv_have_decl_XSERVER_LIBPCIACCESS=no 21368fi 21369 21370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21371fi 21372{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5 21373$as_echo "$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; } 21374if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then 21375 XSERVER_LIBPCIACCESS=yes 21376else 21377 XSERVER_LIBPCIACCESS=no 21378fi 21379 21380if test "${ac_cv_header_cfb8_32_h+set}" = set; then 21381 { $as_echo "$as_me:$LINENO: checking for cfb8_32.h" >&5 21382$as_echo_n "checking for cfb8_32.h... " >&6; } 21383if test "${ac_cv_header_cfb8_32_h+set}" = set; then 21384 $as_echo_n "(cached) " >&6 21385fi 21386{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_cfb8_32_h" >&5 21387$as_echo "$ac_cv_header_cfb8_32_h" >&6; } 21388else 21389 # Is the header compilable? 21390{ $as_echo "$as_me:$LINENO: checking cfb8_32.h usability" >&5 21391$as_echo_n "checking cfb8_32.h usability... " >&6; } 21392cat >conftest.$ac_ext <<_ACEOF 21393/* confdefs.h. */ 21394_ACEOF 21395cat confdefs.h >>conftest.$ac_ext 21396cat >>conftest.$ac_ext <<_ACEOF 21397/* end confdefs.h. */ 21398$ac_includes_default 21399#include <cfb8_32.h> 21400_ACEOF 21401rm -f conftest.$ac_objext 21402if { (ac_try="$ac_compile" 21403case "(($ac_try" in 21404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21405 *) ac_try_echo=$ac_try;; 21406esac 21407eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21408$as_echo "$ac_try_echo") >&5 21409 (eval "$ac_compile") 2>conftest.er1 21410 ac_status=$? 21411 grep -v '^ *+' conftest.er1 >conftest.err 21412 rm -f conftest.er1 21413 cat conftest.err >&5 21414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21415 (exit $ac_status); } && { 21416 test -z "$ac_c_werror_flag" || 21417 test ! -s conftest.err 21418 } && test -s conftest.$ac_objext; then 21419 ac_header_compiler=yes 21420else 21421 $as_echo "$as_me: failed program was:" >&5 21422sed 's/^/| /' conftest.$ac_ext >&5 21423 21424 ac_header_compiler=no 21425fi 21426 21427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21428{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21429$as_echo "$ac_header_compiler" >&6; } 21430 21431# Is the header present? 21432{ $as_echo "$as_me:$LINENO: checking cfb8_32.h presence" >&5 21433$as_echo_n "checking cfb8_32.h presence... " >&6; } 21434cat >conftest.$ac_ext <<_ACEOF 21435/* confdefs.h. */ 21436_ACEOF 21437cat confdefs.h >>conftest.$ac_ext 21438cat >>conftest.$ac_ext <<_ACEOF 21439/* end confdefs.h. */ 21440#include <cfb8_32.h> 21441_ACEOF 21442if { (ac_try="$ac_cpp conftest.$ac_ext" 21443case "(($ac_try" in 21444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21445 *) ac_try_echo=$ac_try;; 21446esac 21447eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21448$as_echo "$ac_try_echo") >&5 21449 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 21450 ac_status=$? 21451 grep -v '^ *+' conftest.er1 >conftest.err 21452 rm -f conftest.er1 21453 cat conftest.err >&5 21454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21455 (exit $ac_status); } >/dev/null && { 21456 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 21457 test ! -s conftest.err 21458 }; then 21459 ac_header_preproc=yes 21460else 21461 $as_echo "$as_me: failed program was:" >&5 21462sed 's/^/| /' conftest.$ac_ext >&5 21463 21464 ac_header_preproc=no 21465fi 21466 21467rm -f conftest.err conftest.$ac_ext 21468{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21469$as_echo "$ac_header_preproc" >&6; } 21470 21471# So? What about this header? 21472case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21473 yes:no: ) 21474 { $as_echo "$as_me:$LINENO: WARNING: cfb8_32.h: accepted by the compiler, rejected by the preprocessor!" >&5 21475$as_echo "$as_me: WARNING: cfb8_32.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 21476 { $as_echo "$as_me:$LINENO: WARNING: cfb8_32.h: proceeding with the compiler's result" >&5 21477$as_echo "$as_me: WARNING: cfb8_32.h: proceeding with the compiler's result" >&2;} 21478 ac_header_preproc=yes 21479 ;; 21480 no:yes:* ) 21481 { $as_echo "$as_me:$LINENO: WARNING: cfb8_32.h: present but cannot be compiled" >&5 21482$as_echo "$as_me: WARNING: cfb8_32.h: present but cannot be compiled" >&2;} 21483 { $as_echo "$as_me:$LINENO: WARNING: cfb8_32.h: check for missing prerequisite headers?" >&5 21484$as_echo "$as_me: WARNING: cfb8_32.h: check for missing prerequisite headers?" >&2;} 21485 { $as_echo "$as_me:$LINENO: WARNING: cfb8_32.h: see the Autoconf documentation" >&5 21486$as_echo "$as_me: WARNING: cfb8_32.h: see the Autoconf documentation" >&2;} 21487 { $as_echo "$as_me:$LINENO: WARNING: cfb8_32.h: section \"Present But Cannot Be Compiled\"" >&5 21488$as_echo "$as_me: WARNING: cfb8_32.h: section \"Present But Cannot Be Compiled\"" >&2;} 21489 { $as_echo "$as_me:$LINENO: WARNING: cfb8_32.h: proceeding with the preprocessor's result" >&5 21490$as_echo "$as_me: WARNING: cfb8_32.h: proceeding with the preprocessor's result" >&2;} 21491 { $as_echo "$as_me:$LINENO: WARNING: cfb8_32.h: in the future, the compiler will take precedence" >&5 21492$as_echo "$as_me: WARNING: cfb8_32.h: in the future, the compiler will take precedence" >&2;} 21493 ( cat <<\_ASBOX 21494## ---------------------------------------------------------------------- ## 21495## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 21496## ---------------------------------------------------------------------- ## 21497_ASBOX 21498 ) | sed "s/^/$as_me: WARNING: /" >&2 21499 ;; 21500esac 21501{ $as_echo "$as_me:$LINENO: checking for cfb8_32.h" >&5 21502$as_echo_n "checking for cfb8_32.h... " >&6; } 21503if test "${ac_cv_header_cfb8_32_h+set}" = set; then 21504 $as_echo_n "(cached) " >&6 21505else 21506 ac_cv_header_cfb8_32_h=$ac_header_preproc 21507fi 21508{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_cfb8_32_h" >&5 21509$as_echo "$ac_cv_header_cfb8_32_h" >&6; } 21510 21511fi 21512if test "x$ac_cv_header_cfb8_32_h" = x""yes; then 21513 21514cat >>confdefs.h <<\_ACEOF 21515#define HAVE_CFB8_32 1 21516_ACEOF 21517 21518fi 21519 21520 21521CPPFLAGS="$SAVE_CPPFLAGS" 21522 21523# Checks for header files. 21524{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 21525$as_echo_n "checking for ANSI C header files... " >&6; } 21526if test "${ac_cv_header_stdc+set}" = set; then 21527 $as_echo_n "(cached) " >&6 21528else 21529 cat >conftest.$ac_ext <<_ACEOF 21530/* confdefs.h. */ 21531_ACEOF 21532cat confdefs.h >>conftest.$ac_ext 21533cat >>conftest.$ac_ext <<_ACEOF 21534/* end confdefs.h. */ 21535#include <stdlib.h> 21536#include <stdarg.h> 21537#include <string.h> 21538#include <float.h> 21539 21540int 21541main () 21542{ 21543 21544 ; 21545 return 0; 21546} 21547_ACEOF 21548rm -f conftest.$ac_objext 21549if { (ac_try="$ac_compile" 21550case "(($ac_try" in 21551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21552 *) ac_try_echo=$ac_try;; 21553esac 21554eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21555$as_echo "$ac_try_echo") >&5 21556 (eval "$ac_compile") 2>conftest.er1 21557 ac_status=$? 21558 grep -v '^ *+' conftest.er1 >conftest.err 21559 rm -f conftest.er1 21560 cat conftest.err >&5 21561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21562 (exit $ac_status); } && { 21563 test -z "$ac_c_werror_flag" || 21564 test ! -s conftest.err 21565 } && test -s conftest.$ac_objext; then 21566 ac_cv_header_stdc=yes 21567else 21568 $as_echo "$as_me: failed program was:" >&5 21569sed 's/^/| /' conftest.$ac_ext >&5 21570 21571 ac_cv_header_stdc=no 21572fi 21573 21574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21575 21576if test $ac_cv_header_stdc = yes; then 21577 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 21578 cat >conftest.$ac_ext <<_ACEOF 21579/* confdefs.h. */ 21580_ACEOF 21581cat confdefs.h >>conftest.$ac_ext 21582cat >>conftest.$ac_ext <<_ACEOF 21583/* end confdefs.h. */ 21584#include <string.h> 21585 21586_ACEOF 21587if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21588 $EGREP "memchr" >/dev/null 2>&1; then 21589 : 21590else 21591 ac_cv_header_stdc=no 21592fi 21593rm -f conftest* 21594 21595fi 21596 21597if test $ac_cv_header_stdc = yes; then 21598 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 21599 cat >conftest.$ac_ext <<_ACEOF 21600/* confdefs.h. */ 21601_ACEOF 21602cat confdefs.h >>conftest.$ac_ext 21603cat >>conftest.$ac_ext <<_ACEOF 21604/* end confdefs.h. */ 21605#include <stdlib.h> 21606 21607_ACEOF 21608if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21609 $EGREP "free" >/dev/null 2>&1; then 21610 : 21611else 21612 ac_cv_header_stdc=no 21613fi 21614rm -f conftest* 21615 21616fi 21617 21618if test $ac_cv_header_stdc = yes; then 21619 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 21620 if test "$cross_compiling" = yes; then 21621 : 21622else 21623 cat >conftest.$ac_ext <<_ACEOF 21624/* confdefs.h. */ 21625_ACEOF 21626cat confdefs.h >>conftest.$ac_ext 21627cat >>conftest.$ac_ext <<_ACEOF 21628/* end confdefs.h. */ 21629#include <ctype.h> 21630#include <stdlib.h> 21631#if ((' ' & 0x0FF) == 0x020) 21632# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 21633# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 21634#else 21635# define ISLOWER(c) \ 21636 (('a' <= (c) && (c) <= 'i') \ 21637 || ('j' <= (c) && (c) <= 'r') \ 21638 || ('s' <= (c) && (c) <= 'z')) 21639# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 21640#endif 21641 21642#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 21643int 21644main () 21645{ 21646 int i; 21647 for (i = 0; i < 256; i++) 21648 if (XOR (islower (i), ISLOWER (i)) 21649 || toupper (i) != TOUPPER (i)) 21650 return 2; 21651 return 0; 21652} 21653_ACEOF 21654rm -f conftest$ac_exeext 21655if { (ac_try="$ac_link" 21656case "(($ac_try" in 21657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21658 *) ac_try_echo=$ac_try;; 21659esac 21660eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21661$as_echo "$ac_try_echo") >&5 21662 (eval "$ac_link") 2>&5 21663 ac_status=$? 21664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21665 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21666 { (case "(($ac_try" in 21667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21668 *) ac_try_echo=$ac_try;; 21669esac 21670eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21671$as_echo "$ac_try_echo") >&5 21672 (eval "$ac_try") 2>&5 21673 ac_status=$? 21674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21675 (exit $ac_status); }; }; then 21676 : 21677else 21678 $as_echo "$as_me: program exited with status $ac_status" >&5 21679$as_echo "$as_me: failed program was:" >&5 21680sed 's/^/| /' conftest.$ac_ext >&5 21681 21682( exit $ac_status ) 21683ac_cv_header_stdc=no 21684fi 21685rm -rf conftest.dSYM 21686rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21687fi 21688 21689 21690fi 21691fi 21692{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 21693$as_echo "$ac_cv_header_stdc" >&6; } 21694if test $ac_cv_header_stdc = yes; then 21695 21696cat >>confdefs.h <<\_ACEOF 21697#define STDC_HEADERS 1 21698_ACEOF 21699 21700fi 21701 21702 21703if test "$DRI" != no; then 21704 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh` 21705{ $as_echo "$as_me:$LINENO: checking for ${sdkdir}/dri.h" >&5 21706$as_echo_n "checking for ${sdkdir}/dri.h... " >&6; } 21707if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then 21708 $as_echo_n "(cached) " >&6 21709else 21710 test "$cross_compiling" = yes && 21711 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 21712$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 21713 { (exit 1); exit 1; }; } 21714if test -r "${sdkdir}/dri.h"; then 21715 eval "$as_ac_File=yes" 21716else 21717 eval "$as_ac_File=no" 21718fi 21719fi 21720ac_res=`eval 'as_val=${'$as_ac_File'} 21721 $as_echo "$as_val"'` 21722 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 21723$as_echo "$ac_res" >&6; } 21724as_val=`eval 'as_val=${'$as_ac_File'} 21725 $as_echo "$as_val"'` 21726 if test "x$as_val" = x""yes; then 21727 have_dri_h="yes" 21728else 21729 have_dri_h="no" 21730fi 21731 21732 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh` 21733{ $as_echo "$as_me:$LINENO: checking for ${sdkdir}/sarea.h" >&5 21734$as_echo_n "checking for ${sdkdir}/sarea.h... " >&6; } 21735if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then 21736 $as_echo_n "(cached) " >&6 21737else 21738 test "$cross_compiling" = yes && 21739 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 21740$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 21741 { (exit 1); exit 1; }; } 21742if test -r "${sdkdir}/sarea.h"; then 21743 eval "$as_ac_File=yes" 21744else 21745 eval "$as_ac_File=no" 21746fi 21747fi 21748ac_res=`eval 'as_val=${'$as_ac_File'} 21749 $as_echo "$as_val"'` 21750 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 21751$as_echo "$ac_res" >&6; } 21752as_val=`eval 'as_val=${'$as_ac_File'} 21753 $as_echo "$as_val"'` 21754 if test "x$as_val" = x""yes; then 21755 have_sarea_h="yes" 21756else 21757 have_sarea_h="no" 21758fi 21759 21760 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh` 21761{ $as_echo "$as_me:$LINENO: checking for ${sdkdir}/dristruct.h" >&5 21762$as_echo_n "checking for ${sdkdir}/dristruct.h... " >&6; } 21763if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then 21764 $as_echo_n "(cached) " >&6 21765else 21766 test "$cross_compiling" = yes && 21767 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 21768$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 21769 { (exit 1); exit 1; }; } 21770if test -r "${sdkdir}/dristruct.h"; then 21771 eval "$as_ac_File=yes" 21772else 21773 eval "$as_ac_File=no" 21774fi 21775fi 21776ac_res=`eval 'as_val=${'$as_ac_File'} 21777 $as_echo "$as_val"'` 21778 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 21779$as_echo "$ac_res" >&6; } 21780as_val=`eval 'as_val=${'$as_ac_File'} 21781 $as_echo "$as_val"'` 21782 if test "x$as_val" = x""yes; then 21783 have_dristruct_h="yes" 21784else 21785 have_dristruct_h="no" 21786fi 21787 21788fi 21789 21790{ $as_echo "$as_me:$LINENO: checking whether to include DRI support" >&5 21791$as_echo_n "checking whether to include DRI support... " >&6; } 21792if test x$DRI = xauto; then 21793 if test "$have_dri_h" = yes -a \ 21794 "$have_sarea_h" = yes -a \ 21795 "$have_dristruct_h" = yes; then 21796 DRI="yes" 21797 else 21798 DRI="no" 21799 fi 21800fi 21801{ $as_echo "$as_me:$LINENO: result: $DRI" >&5 21802$as_echo "$DRI" >&6; } 21803 21804 if test x$DRI = xyes; then 21805 DRI_TRUE= 21806 DRI_FALSE='#' 21807else 21808 DRI_TRUE='#' 21809 DRI_FALSE= 21810fi 21811 21812if test "$DRI" = yes; then 21813 21814pkg_failed=no 21815{ $as_echo "$as_me:$LINENO: checking for DRI" >&5 21816$as_echo_n "checking for DRI... " >&6; } 21817 21818if test -n "$DRI_CFLAGS"; then 21819 pkg_cv_DRI_CFLAGS="$DRI_CFLAGS" 21820 elif test -n "$PKG_CONFIG"; then 21821 if test -n "$PKG_CONFIG" && \ 21822 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\"") >&5 21823 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5 21824 ac_status=$? 21825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21826 (exit $ac_status); }; then 21827 pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.0 xf86driproto" 2>/dev/null` 21828else 21829 pkg_failed=yes 21830fi 21831 else 21832 pkg_failed=untried 21833fi 21834if test -n "$DRI_LIBS"; then 21835 pkg_cv_DRI_LIBS="$DRI_LIBS" 21836 elif test -n "$PKG_CONFIG"; then 21837 if test -n "$PKG_CONFIG" && \ 21838 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\"") >&5 21839 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5 21840 ac_status=$? 21841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21842 (exit $ac_status); }; then 21843 pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.0 xf86driproto" 2>/dev/null` 21844else 21845 pkg_failed=yes 21846fi 21847 else 21848 pkg_failed=untried 21849fi 21850 21851 21852 21853if test $pkg_failed = yes; then 21854 21855if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21856 _pkg_short_errors_supported=yes 21857else 21858 _pkg_short_errors_supported=no 21859fi 21860 if test $_pkg_short_errors_supported = yes; then 21861 DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm >= 2.0 xf86driproto" 2>&1` 21862 else 21863 DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm >= 2.0 xf86driproto" 2>&1` 21864 fi 21865 # Put the nasty error message in config.log where it belongs 21866 echo "$DRI_PKG_ERRORS" >&5 21867 21868 { { $as_echo "$as_me:$LINENO: error: Package requirements (libdrm >= 2.0 xf86driproto) were not met: 21869 21870$DRI_PKG_ERRORS 21871 21872Consider adjusting the PKG_CONFIG_PATH environment variable if you 21873installed software in a non-standard prefix. 21874 21875Alternatively, you may set the environment variables DRI_CFLAGS 21876and DRI_LIBS to avoid the need to call pkg-config. 21877See the pkg-config man page for more details. 21878" >&5 21879$as_echo "$as_me: error: Package requirements (libdrm >= 2.0 xf86driproto) were not met: 21880 21881$DRI_PKG_ERRORS 21882 21883Consider adjusting the PKG_CONFIG_PATH environment variable if you 21884installed software in a non-standard prefix. 21885 21886Alternatively, you may set the environment variables DRI_CFLAGS 21887and DRI_LIBS to avoid the need to call pkg-config. 21888See the pkg-config man page for more details. 21889" >&2;} 21890 { (exit 1); exit 1; }; } 21891elif test $pkg_failed = untried; then 21892 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 21893$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21894{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 21895is in your PATH or set the PKG_CONFIG environment variable to the full 21896path to pkg-config. 21897 21898Alternatively, you may set the environment variables DRI_CFLAGS 21899and DRI_LIBS to avoid the need to call pkg-config. 21900See the pkg-config man page for more details. 21901 21902To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21903See \`config.log' for more details." >&5 21904$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 21905is in your PATH or set the PKG_CONFIG environment variable to the full 21906path to pkg-config. 21907 21908Alternatively, you may set the environment variables DRI_CFLAGS 21909and DRI_LIBS to avoid the need to call pkg-config. 21910See the pkg-config man page for more details. 21911 21912To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21913See \`config.log' for more details." >&2;} 21914 { (exit 1); exit 1; }; }; } 21915else 21916 DRI_CFLAGS=$pkg_cv_DRI_CFLAGS 21917 DRI_LIBS=$pkg_cv_DRI_LIBS 21918 { $as_echo "$as_me:$LINENO: result: yes" >&5 21919$as_echo "yes" >&6; } 21920 : 21921fi 21922 21923cat >>confdefs.h <<\_ACEOF 21924#define XF86DRI 1 21925_ACEOF 21926 21927 21928cat >>confdefs.h <<\_ACEOF 21929#define XF86DRI_DEVEL 1 21930_ACEOF 21931 21932fi 21933 21934if test "x$XSERVER_LIBPCIACCESS" = xyes; then 21935 21936pkg_failed=no 21937{ $as_echo "$as_me:$LINENO: checking for PCIACCESS" >&5 21938$as_echo_n "checking for PCIACCESS... " >&6; } 21939 21940if test -n "$PCIACCESS_CFLAGS"; then 21941 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 21942 elif test -n "$PKG_CONFIG"; then 21943 if test -n "$PKG_CONFIG" && \ 21944 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5 21945 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 21946 ac_status=$? 21947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21948 (exit $ac_status); }; then 21949 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null` 21950else 21951 pkg_failed=yes 21952fi 21953 else 21954 pkg_failed=untried 21955fi 21956if test -n "$PCIACCESS_LIBS"; then 21957 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 21958 elif test -n "$PKG_CONFIG"; then 21959 if test -n "$PKG_CONFIG" && \ 21960 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5 21961 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 21962 ac_status=$? 21963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21964 (exit $ac_status); }; then 21965 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null` 21966else 21967 pkg_failed=yes 21968fi 21969 else 21970 pkg_failed=untried 21971fi 21972 21973 21974 21975if test $pkg_failed = yes; then 21976 21977if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21978 _pkg_short_errors_supported=yes 21979else 21980 _pkg_short_errors_supported=no 21981fi 21982 if test $_pkg_short_errors_supported = yes; then 21983 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1` 21984 else 21985 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1` 21986 fi 21987 # Put the nasty error message in config.log where it belongs 21988 echo "$PCIACCESS_PKG_ERRORS" >&5 21989 21990 { { $as_echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.8.0) were not met: 21991 21992$PCIACCESS_PKG_ERRORS 21993 21994Consider adjusting the PKG_CONFIG_PATH environment variable if you 21995installed software in a non-standard prefix. 21996 21997Alternatively, you may set the environment variables PCIACCESS_CFLAGS 21998and PCIACCESS_LIBS to avoid the need to call pkg-config. 21999See the pkg-config man page for more details. 22000" >&5 22001$as_echo "$as_me: error: Package requirements (pciaccess >= 0.8.0) were not met: 22002 22003$PCIACCESS_PKG_ERRORS 22004 22005Consider adjusting the PKG_CONFIG_PATH environment variable if you 22006installed software in a non-standard prefix. 22007 22008Alternatively, you may set the environment variables PCIACCESS_CFLAGS 22009and PCIACCESS_LIBS to avoid the need to call pkg-config. 22010See the pkg-config man page for more details. 22011" >&2;} 22012 { (exit 1); exit 1; }; } 22013elif test $pkg_failed = untried; then 22014 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 22015$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22016{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 22017is in your PATH or set the PKG_CONFIG environment variable to the full 22018path to pkg-config. 22019 22020Alternatively, you may set the environment variables PCIACCESS_CFLAGS 22021and PCIACCESS_LIBS to avoid the need to call pkg-config. 22022See the pkg-config man page for more details. 22023 22024To get pkg-config, see <http://pkg-config.freedesktop.org/>. 22025See \`config.log' for more details." >&5 22026$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 22027is in your PATH or set the PKG_CONFIG environment variable to the full 22028path to pkg-config. 22029 22030Alternatively, you may set the environment variables PCIACCESS_CFLAGS 22031and PCIACCESS_LIBS to avoid the need to call pkg-config. 22032See the pkg-config man page for more details. 22033 22034To get pkg-config, see <http://pkg-config.freedesktop.org/>. 22035See \`config.log' for more details." >&2;} 22036 { (exit 1); exit 1; }; }; } 22037else 22038 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 22039 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 22040 { $as_echo "$as_me:$LINENO: result: yes" >&5 22041$as_echo "yes" >&6; } 22042 : 22043fi 22044 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS" 22045fi 22046 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 22047 XSERVER_LIBPCIACCESS_TRUE= 22048 XSERVER_LIBPCIACCESS_FALSE='#' 22049else 22050 XSERVER_LIBPCIACCESS_TRUE='#' 22051 XSERVER_LIBPCIACCESS_FALSE= 22052fi 22053 22054 22055 22056 22057 22058 22059 22060DRIVER_NAME=glint 22061 22062 22063 22064 22065 22066if test x$APP_MAN_SUFFIX = x ; then 22067 APP_MAN_SUFFIX=1 22068fi 22069if test x$APP_MAN_DIR = x ; then 22070 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 22071fi 22072 22073if test x$LIB_MAN_SUFFIX = x ; then 22074 LIB_MAN_SUFFIX=3 22075fi 22076if test x$LIB_MAN_DIR = x ; then 22077 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 22078fi 22079 22080if test x$FILE_MAN_SUFFIX = x ; then 22081 case $host_os in 22082 solaris*) FILE_MAN_SUFFIX=4 ;; 22083 *) FILE_MAN_SUFFIX=5 ;; 22084 esac 22085fi 22086if test x$FILE_MAN_DIR = x ; then 22087 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 22088fi 22089 22090if test x$MISC_MAN_SUFFIX = x ; then 22091 case $host_os in 22092 solaris*) MISC_MAN_SUFFIX=5 ;; 22093 *) MISC_MAN_SUFFIX=7 ;; 22094 esac 22095fi 22096if test x$MISC_MAN_DIR = x ; then 22097 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 22098fi 22099 22100if test x$DRIVER_MAN_SUFFIX = x ; then 22101 case $host_os in 22102 solaris*) DRIVER_MAN_SUFFIX=7 ;; 22103 *) DRIVER_MAN_SUFFIX=4 ;; 22104 esac 22105fi 22106if test x$DRIVER_MAN_DIR = x ; then 22107 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 22108fi 22109 22110if test x$ADMIN_MAN_SUFFIX = x ; then 22111 case $host_os in 22112 solaris*) ADMIN_MAN_SUFFIX=1m ;; 22113 *) ADMIN_MAN_SUFFIX=8 ;; 22114 esac 22115fi 22116if test x$ADMIN_MAN_DIR = x ; then 22117 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 22118fi 22119 22120 22121 22122 22123 22124 22125 22126 22127 22128 22129 22130 22131 22132 22133 22134 22135 22136# Check whether --with-release-version was given. 22137if test "${with_release_version+set}" = set; then 22138 withval=$with_release_version; RELEASE_VERSION="$withval" 22139else 22140 RELEASE_VERSION="" 22141fi 22142 22143 if test "x$RELEASE_VERSION" != "x"; then 22144 PACKAGE="$PACKAGE-$RELEASE_VERSION" 22145 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 22146 { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 22147$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;} 22148 fi 22149 22150cat >>confdefs.h <<_ACEOF 22151#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 22152_ACEOF 22153 22154 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 22155 if test "x$PVM" = "x"; then 22156 PVM="0" 22157 fi 22158 22159cat >>confdefs.h <<_ACEOF 22160#define PACKAGE_VERSION_MINOR $PVM 22161_ACEOF 22162 22163 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 22164 if test "x$PVP" = "x"; then 22165 PVP="0" 22166 fi 22167 22168cat >>confdefs.h <<_ACEOF 22169#define PACKAGE_VERSION_PATCHLEVEL $PVP 22170_ACEOF 22171 22172 22173 22174ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 22175 22176cat >confcache <<\_ACEOF 22177# This file is a shell script that caches the results of configure 22178# tests run on this system so they can be shared between configure 22179# scripts and configure runs, see configure's option --config-cache. 22180# It is not useful on other systems. If it contains results you don't 22181# want to keep, you may remove or edit it. 22182# 22183# config.status only pays attention to the cache file if you give it 22184# the --recheck option to rerun configure. 22185# 22186# `ac_cv_env_foo' variables (set or unset) will be overridden when 22187# loading this file, other *unset* `ac_cv_foo' will be assigned the 22188# following values. 22189 22190_ACEOF 22191 22192# The following way of writing the cache mishandles newlines in values, 22193# but we know of no workaround that is simple, portable, and efficient. 22194# So, we kill variables containing newlines. 22195# Ultrix sh set writes to stderr and can't be redirected directly, 22196# and sets the high bit in the cache file unless we assign to the vars. 22197( 22198 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 22199 eval ac_val=\$$ac_var 22200 case $ac_val in #( 22201 *${as_nl}*) 22202 case $ac_var in #( 22203 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 22204$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 22205 esac 22206 case $ac_var in #( 22207 _ | IFS | as_nl) ;; #( 22208 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 22209 *) $as_unset $ac_var ;; 22210 esac ;; 22211 esac 22212 done 22213 22214 (set) 2>&1 | 22215 case $as_nl`(ac_space=' '; set) 2>&1` in #( 22216 *${as_nl}ac_space=\ *) 22217 # `set' does not quote correctly, so add quotes (double-quote 22218 # substitution turns \\\\ into \\, and sed turns \\ into \). 22219 sed -n \ 22220 "s/'/'\\\\''/g; 22221 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 22222 ;; #( 22223 *) 22224 # `set' quotes correctly as required by POSIX, so do not add quotes. 22225 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 22226 ;; 22227 esac | 22228 sort 22229) | 22230 sed ' 22231 /^ac_cv_env_/b end 22232 t clear 22233 :clear 22234 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 22235 t end 22236 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 22237 :end' >>confcache 22238if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 22239 if test -w "$cache_file"; then 22240 test "x$cache_file" != "x/dev/null" && 22241 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 22242$as_echo "$as_me: updating cache $cache_file" >&6;} 22243 cat confcache >$cache_file 22244 else 22245 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 22246$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 22247 fi 22248fi 22249rm -f confcache 22250 22251test "x$prefix" = xNONE && prefix=$ac_default_prefix 22252# Let make expand exec_prefix. 22253test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 22254 22255DEFS=-DHAVE_CONFIG_H 22256 22257ac_libobjs= 22258ac_ltlibobjs= 22259for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 22260 # 1. Remove the extension, and $U if already installed. 22261 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 22262 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 22263 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 22264 # will be set to the directory where LIBOBJS objects are built. 22265 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 22266 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 22267done 22268LIBOBJS=$ac_libobjs 22269 22270LTLIBOBJS=$ac_ltlibobjs 22271 22272 22273if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 22274 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 22275Usually this means the macro was only invoked conditionally." >&5 22276$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 22277Usually this means the macro was only invoked conditionally." >&2;} 22278 { (exit 1); exit 1; }; } 22279fi 22280if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 22281 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 22282Usually this means the macro was only invoked conditionally." >&5 22283$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 22284Usually this means the macro was only invoked conditionally." >&2;} 22285 { (exit 1); exit 1; }; } 22286fi 22287if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22288 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 22289Usually this means the macro was only invoked conditionally." >&5 22290$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 22291Usually this means the macro was only invoked conditionally." >&2;} 22292 { (exit 1); exit 1; }; } 22293fi 22294if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 22295 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 22296Usually this means the macro was only invoked conditionally." >&5 22297$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 22298Usually this means the macro was only invoked conditionally." >&2;} 22299 { (exit 1); exit 1; }; } 22300fi 22301if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22302 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 22303Usually this means the macro was only invoked conditionally." >&5 22304$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 22305Usually this means the macro was only invoked conditionally." >&2;} 22306 { (exit 1); exit 1; }; } 22307fi 22308if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then 22309 { { $as_echo "$as_me:$LINENO: error: conditional \"DRI\" was never defined. 22310Usually this means the macro was only invoked conditionally." >&5 22311$as_echo "$as_me: error: conditional \"DRI\" was never defined. 22312Usually this means the macro was only invoked conditionally." >&2;} 22313 { (exit 1); exit 1; }; } 22314fi 22315if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then 22316 { { $as_echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined. 22317Usually this means the macro was only invoked conditionally." >&5 22318$as_echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined. 22319Usually this means the macro was only invoked conditionally." >&2;} 22320 { (exit 1); exit 1; }; } 22321fi 22322 22323: ${CONFIG_STATUS=./config.status} 22324ac_write_fail=0 22325ac_clean_files_save=$ac_clean_files 22326ac_clean_files="$ac_clean_files $CONFIG_STATUS" 22327{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 22328$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 22329cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22330#! $SHELL 22331# Generated by $as_me. 22332# Run this file to recreate the current configuration. 22333# Compiler output produced by configure, useful for debugging 22334# configure, is in config.log if it exists. 22335 22336debug=false 22337ac_cs_recheck=false 22338ac_cs_silent=false 22339SHELL=\${CONFIG_SHELL-$SHELL} 22340_ACEOF 22341 22342cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22343## --------------------- ## 22344## M4sh Initialization. ## 22345## --------------------- ## 22346 22347# Be more Bourne compatible 22348DUALCASE=1; export DUALCASE # for MKS sh 22349if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 22350 emulate sh 22351 NULLCMD=: 22352 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 22353 # is contrary to our usage. Disable this feature. 22354 alias -g '${1+"$@"}'='"$@"' 22355 setopt NO_GLOB_SUBST 22356else 22357 case `(set -o) 2>/dev/null` in 22358 *posix*) set -o posix ;; 22359esac 22360 22361fi 22362 22363 22364 22365 22366# PATH needs CR 22367# Avoid depending upon Character Ranges. 22368as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22369as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22370as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22371as_cr_digits='0123456789' 22372as_cr_alnum=$as_cr_Letters$as_cr_digits 22373 22374as_nl=' 22375' 22376export as_nl 22377# Printing a long string crashes Solaris 7 /usr/bin/printf. 22378as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 22379as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 22380as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 22381if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 22382 as_echo='printf %s\n' 22383 as_echo_n='printf %s' 22384else 22385 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 22386 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 22387 as_echo_n='/usr/ucb/echo -n' 22388 else 22389 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 22390 as_echo_n_body='eval 22391 arg=$1; 22392 case $arg in 22393 *"$as_nl"*) 22394 expr "X$arg" : "X\\(.*\\)$as_nl"; 22395 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 22396 esac; 22397 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 22398 ' 22399 export as_echo_n_body 22400 as_echo_n='sh -c $as_echo_n_body as_echo' 22401 fi 22402 export as_echo_body 22403 as_echo='sh -c $as_echo_body as_echo' 22404fi 22405 22406# The user is always right. 22407if test "${PATH_SEPARATOR+set}" != set; then 22408 PATH_SEPARATOR=: 22409 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 22410 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 22411 PATH_SEPARATOR=';' 22412 } 22413fi 22414 22415# Support unset when possible. 22416if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 22417 as_unset=unset 22418else 22419 as_unset=false 22420fi 22421 22422 22423# IFS 22424# We need space, tab and new line, in precisely that order. Quoting is 22425# there to prevent editors from complaining about space-tab. 22426# (If _AS_PATH_WALK were called with IFS unset, it would disable word 22427# splitting by setting IFS to empty value.) 22428IFS=" "" $as_nl" 22429 22430# Find who we are. Look in the path if we contain no directory separator. 22431case $0 in 22432 *[\\/]* ) as_myself=$0 ;; 22433 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22434for as_dir in $PATH 22435do 22436 IFS=$as_save_IFS 22437 test -z "$as_dir" && as_dir=. 22438 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 22439done 22440IFS=$as_save_IFS 22441 22442 ;; 22443esac 22444# We did not find ourselves, most probably we were run as `sh COMMAND' 22445# in which case we are not to be found in the path. 22446if test "x$as_myself" = x; then 22447 as_myself=$0 22448fi 22449if test ! -f "$as_myself"; then 22450 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 22451 { (exit 1); exit 1; } 22452fi 22453 22454# Work around bugs in pre-3.0 UWIN ksh. 22455for as_var in ENV MAIL MAILPATH 22456do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 22457done 22458PS1='$ ' 22459PS2='> ' 22460PS4='+ ' 22461 22462# NLS nuisances. 22463LC_ALL=C 22464export LC_ALL 22465LANGUAGE=C 22466export LANGUAGE 22467 22468# Required to use basename. 22469if expr a : '\(a\)' >/dev/null 2>&1 && 22470 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22471 as_expr=expr 22472else 22473 as_expr=false 22474fi 22475 22476if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 22477 as_basename=basename 22478else 22479 as_basename=false 22480fi 22481 22482 22483# Name of the executable. 22484as_me=`$as_basename -- "$0" || 22485$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22486 X"$0" : 'X\(//\)$' \| \ 22487 X"$0" : 'X\(/\)' \| . 2>/dev/null || 22488$as_echo X/"$0" | 22489 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22490 s//\1/ 22491 q 22492 } 22493 /^X\/\(\/\/\)$/{ 22494 s//\1/ 22495 q 22496 } 22497 /^X\/\(\/\).*/{ 22498 s//\1/ 22499 q 22500 } 22501 s/.*/./; q'` 22502 22503# CDPATH. 22504$as_unset CDPATH 22505 22506 22507 22508 as_lineno_1=$LINENO 22509 as_lineno_2=$LINENO 22510 test "x$as_lineno_1" != "x$as_lineno_2" && 22511 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 22512 22513 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 22514 # uniformly replaced by the line number. The first 'sed' inserts a 22515 # line-number line after each line using $LINENO; the second 'sed' 22516 # does the real work. The second script uses 'N' to pair each 22517 # line-number line with the line containing $LINENO, and appends 22518 # trailing '-' during substitution so that $LINENO is not a special 22519 # case at line end. 22520 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 22521 # scripts with optimization help from Paolo Bonzini. Blame Lee 22522 # E. McMahon (1931-1989) for sed's syntax. :-) 22523 sed -n ' 22524 p 22525 /[$]LINENO/= 22526 ' <$as_myself | 22527 sed ' 22528 s/[$]LINENO.*/&-/ 22529 t lineno 22530 b 22531 :lineno 22532 N 22533 :loop 22534 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 22535 t loop 22536 s/-\n.*// 22537 ' >$as_me.lineno && 22538 chmod +x "$as_me.lineno" || 22539 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 22540 { (exit 1); exit 1; }; } 22541 22542 # Don't try to exec as it changes $[0], causing all sort of problems 22543 # (the dirname of $[0] is not the place where we might find the 22544 # original and so on. Autoconf is especially sensitive to this). 22545 . "./$as_me.lineno" 22546 # Exit status is that of the last command. 22547 exit 22548} 22549 22550 22551if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22552 as_dirname=dirname 22553else 22554 as_dirname=false 22555fi 22556 22557ECHO_C= ECHO_N= ECHO_T= 22558case `echo -n x` in 22559-n*) 22560 case `echo 'x\c'` in 22561 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 22562 *) ECHO_C='\c';; 22563 esac;; 22564*) 22565 ECHO_N='-n';; 22566esac 22567if expr a : '\(a\)' >/dev/null 2>&1 && 22568 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22569 as_expr=expr 22570else 22571 as_expr=false 22572fi 22573 22574rm -f conf$$ conf$$.exe conf$$.file 22575if test -d conf$$.dir; then 22576 rm -f conf$$.dir/conf$$.file 22577else 22578 rm -f conf$$.dir 22579 mkdir conf$$.dir 2>/dev/null 22580fi 22581if (echo >conf$$.file) 2>/dev/null; then 22582 if ln -s conf$$.file conf$$ 2>/dev/null; then 22583 as_ln_s='ln -s' 22584 # ... but there are two gotchas: 22585 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 22586 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 22587 # In both cases, we have to default to `cp -p'. 22588 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 22589 as_ln_s='cp -p' 22590 elif ln conf$$.file conf$$ 2>/dev/null; then 22591 as_ln_s=ln 22592 else 22593 as_ln_s='cp -p' 22594 fi 22595else 22596 as_ln_s='cp -p' 22597fi 22598rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 22599rmdir conf$$.dir 2>/dev/null 22600 22601if mkdir -p . 2>/dev/null; then 22602 as_mkdir_p=: 22603else 22604 test -d ./-p && rmdir ./-p 22605 as_mkdir_p=false 22606fi 22607 22608if test -x / >/dev/null 2>&1; then 22609 as_test_x='test -x' 22610else 22611 if ls -dL / >/dev/null 2>&1; then 22612 as_ls_L_option=L 22613 else 22614 as_ls_L_option= 22615 fi 22616 as_test_x=' 22617 eval sh -c '\'' 22618 if test -d "$1"; then 22619 test -d "$1/."; 22620 else 22621 case $1 in 22622 -*)set "./$1";; 22623 esac; 22624 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 22625 ???[sx]*):;;*)false;;esac;fi 22626 '\'' sh 22627 ' 22628fi 22629as_executable_p=$as_test_x 22630 22631# Sed expression to map a string onto a valid CPP name. 22632as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 22633 22634# Sed expression to map a string onto a valid variable name. 22635as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 22636 22637 22638exec 6>&1 22639 22640# Save the log message, to keep $[0] and so on meaningful, and to 22641# report actual input values of CONFIG_FILES etc. instead of their 22642# values after options handling. 22643ac_log=" 22644This file was extended by xf86-video-glint $as_me 1.2.2, which was 22645generated by GNU Autoconf 2.63. Invocation command line was 22646 22647 CONFIG_FILES = $CONFIG_FILES 22648 CONFIG_HEADERS = $CONFIG_HEADERS 22649 CONFIG_LINKS = $CONFIG_LINKS 22650 CONFIG_COMMANDS = $CONFIG_COMMANDS 22651 $ $0 $@ 22652 22653on `(hostname || uname -n) 2>/dev/null | sed 1q` 22654" 22655 22656_ACEOF 22657 22658case $ac_config_files in *" 22659"*) set x $ac_config_files; shift; ac_config_files=$*;; 22660esac 22661 22662case $ac_config_headers in *" 22663"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 22664esac 22665 22666 22667cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22668# Files that config.status was made for. 22669config_files="$ac_config_files" 22670config_headers="$ac_config_headers" 22671config_commands="$ac_config_commands" 22672 22673_ACEOF 22674 22675cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22676ac_cs_usage="\ 22677\`$as_me' instantiates files from templates according to the 22678current configuration. 22679 22680Usage: $0 [OPTION]... [FILE]... 22681 22682 -h, --help print this help, then exit 22683 -V, --version print version number and configuration settings, then exit 22684 -q, --quiet, --silent 22685 do not print progress messages 22686 -d, --debug don't remove temporary files 22687 --recheck update $as_me by reconfiguring in the same conditions 22688 --file=FILE[:TEMPLATE] 22689 instantiate the configuration file FILE 22690 --header=FILE[:TEMPLATE] 22691 instantiate the configuration header FILE 22692 22693Configuration files: 22694$config_files 22695 22696Configuration headers: 22697$config_headers 22698 22699Configuration commands: 22700$config_commands 22701 22702Report bugs to <bug-autoconf@gnu.org>." 22703 22704_ACEOF 22705cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22706ac_cs_version="\\ 22707xf86-video-glint config.status 1.2.2 22708configured by $0, generated by GNU Autoconf 2.63, 22709 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 22710 22711Copyright (C) 2008 Free Software Foundation, Inc. 22712This config.status script is free software; the Free Software Foundation 22713gives unlimited permission to copy, distribute and modify it." 22714 22715ac_pwd='$ac_pwd' 22716srcdir='$srcdir' 22717INSTALL='$INSTALL' 22718MKDIR_P='$MKDIR_P' 22719AWK='$AWK' 22720test -n "\$AWK" || AWK=awk 22721_ACEOF 22722 22723cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22724# The default lists apply if the user does not specify any file. 22725ac_need_defaults=: 22726while test $# != 0 22727do 22728 case $1 in 22729 --*=*) 22730 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22731 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 22732 ac_shift=: 22733 ;; 22734 *) 22735 ac_option=$1 22736 ac_optarg=$2 22737 ac_shift=shift 22738 ;; 22739 esac 22740 22741 case $ac_option in 22742 # Handling of the options. 22743 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22744 ac_cs_recheck=: ;; 22745 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 22746 $as_echo "$ac_cs_version"; exit ;; 22747 --debug | --debu | --deb | --de | --d | -d ) 22748 debug=: ;; 22749 --file | --fil | --fi | --f ) 22750 $ac_shift 22751 case $ac_optarg in 22752 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22753 esac 22754 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 22755 ac_need_defaults=false;; 22756 --header | --heade | --head | --hea ) 22757 $ac_shift 22758 case $ac_optarg in 22759 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22760 esac 22761 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 22762 ac_need_defaults=false;; 22763 --he | --h) 22764 # Conflict between --help and --header 22765 { $as_echo "$as_me: error: ambiguous option: $1 22766Try \`$0 --help' for more information." >&2 22767 { (exit 1); exit 1; }; };; 22768 --help | --hel | -h ) 22769 $as_echo "$ac_cs_usage"; exit ;; 22770 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22771 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22772 ac_cs_silent=: ;; 22773 22774 # This is an error. 22775 -*) { $as_echo "$as_me: error: unrecognized option: $1 22776Try \`$0 --help' for more information." >&2 22777 { (exit 1); exit 1; }; } ;; 22778 22779 *) ac_config_targets="$ac_config_targets $1" 22780 ac_need_defaults=false ;; 22781 22782 esac 22783 shift 22784done 22785 22786ac_configure_extra_args= 22787 22788if $ac_cs_silent; then 22789 exec 6>/dev/null 22790 ac_configure_extra_args="$ac_configure_extra_args --silent" 22791fi 22792 22793_ACEOF 22794cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22795if \$ac_cs_recheck; then 22796 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22797 shift 22798 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 22799 CONFIG_SHELL='$SHELL' 22800 export CONFIG_SHELL 22801 exec "\$@" 22802fi 22803 22804_ACEOF 22805cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22806exec 5>>config.log 22807{ 22808 echo 22809 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22810## Running $as_me. ## 22811_ASBOX 22812 $as_echo "$ac_log" 22813} >&5 22814 22815_ACEOF 22816cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22817# 22818# INIT-COMMANDS 22819# 22820AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 22821 22822_ACEOF 22823 22824cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22825 22826# Handling of arguments. 22827for ac_config_target in $ac_config_targets 22828do 22829 case $ac_config_target in 22830 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 22831 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22832 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22833 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 22834 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 22835 22836 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 22837$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 22838 { (exit 1); exit 1; }; };; 22839 esac 22840done 22841 22842 22843# If the user did not use the arguments to specify the items to instantiate, 22844# then the envvar interface is used. Set only those that are not. 22845# We use the long form for the default assignment because of an extremely 22846# bizarre bug on SunOS 4.1.3. 22847if $ac_need_defaults; then 22848 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22849 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22850 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22851fi 22852 22853# Have a temporary directory for convenience. Make it in the build tree 22854# simply because there is no reason against having it here, and in addition, 22855# creating and moving files from /tmp can sometimes cause problems. 22856# Hook for its removal unless debugging. 22857# Note that there is a small window in which the directory will not be cleaned: 22858# after its creation but before its name has been assigned to `$tmp'. 22859$debug || 22860{ 22861 tmp= 22862 trap 'exit_status=$? 22863 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 22864' 0 22865 trap '{ (exit 1); exit 1; }' 1 2 13 15 22866} 22867# Create a (secure) tmp directory for tmp files. 22868 22869{ 22870 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22871 test -n "$tmp" && test -d "$tmp" 22872} || 22873{ 22874 tmp=./conf$$-$RANDOM 22875 (umask 077 && mkdir "$tmp") 22876} || 22877{ 22878 $as_echo "$as_me: cannot create a temporary directory in ." >&2 22879 { (exit 1); exit 1; } 22880} 22881 22882# Set up the scripts for CONFIG_FILES section. 22883# No need to generate them if there are no CONFIG_FILES. 22884# This happens for instance with `./config.status config.h'. 22885if test -n "$CONFIG_FILES"; then 22886 22887 22888ac_cr=' 22889' 22890ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 22891if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 22892 ac_cs_awk_cr='\\r' 22893else 22894 ac_cs_awk_cr=$ac_cr 22895fi 22896 22897echo 'BEGIN {' >"$tmp/subs1.awk" && 22898_ACEOF 22899 22900 22901{ 22902 echo "cat >conf$$subs.awk <<_ACEOF" && 22903 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 22904 echo "_ACEOF" 22905} >conf$$subs.sh || 22906 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22907$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22908 { (exit 1); exit 1; }; } 22909ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 22910ac_delim='%!_!# ' 22911for ac_last_try in false false false false false :; do 22912 . ./conf$$subs.sh || 22913 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22914$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22915 { (exit 1); exit 1; }; } 22916 22917 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 22918 if test $ac_delim_n = $ac_delim_num; then 22919 break 22920 elif $ac_last_try; then 22921 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22922$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22923 { (exit 1); exit 1; }; } 22924 else 22925 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22926 fi 22927done 22928rm -f conf$$subs.sh 22929 22930cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22931cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 22932_ACEOF 22933sed -n ' 22934h 22935s/^/S["/; s/!.*/"]=/ 22936p 22937g 22938s/^[^!]*!// 22939:repl 22940t repl 22941s/'"$ac_delim"'$// 22942t delim 22943:nl 22944h 22945s/\(.\{148\}\).*/\1/ 22946t more1 22947s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 22948p 22949n 22950b repl 22951:more1 22952s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22953p 22954g 22955s/.\{148\}// 22956t nl 22957:delim 22958h 22959s/\(.\{148\}\).*/\1/ 22960t more2 22961s/["\\]/\\&/g; s/^/"/; s/$/"/ 22962p 22963b 22964:more2 22965s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22966p 22967g 22968s/.\{148\}// 22969t delim 22970' <conf$$subs.awk | sed ' 22971/^[^""]/{ 22972 N 22973 s/\n// 22974} 22975' >>$CONFIG_STATUS || ac_write_fail=1 22976rm -f conf$$subs.awk 22977cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22978_ACAWK 22979cat >>"\$tmp/subs1.awk" <<_ACAWK && 22980 for (key in S) S_is_set[key] = 1 22981 FS = "" 22982 22983} 22984{ 22985 line = $ 0 22986 nfields = split(line, field, "@") 22987 substed = 0 22988 len = length(field[1]) 22989 for (i = 2; i < nfields; i++) { 22990 key = field[i] 22991 keylen = length(key) 22992 if (S_is_set[key]) { 22993 value = S[key] 22994 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 22995 len += length(value) + length(field[++i]) 22996 substed = 1 22997 } else 22998 len += 1 + keylen 22999 } 23000 23001 print line 23002} 23003 23004_ACAWK 23005_ACEOF 23006cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23007if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 23008 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 23009else 23010 cat 23011fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 23012 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 23013$as_echo "$as_me: error: could not setup config files machinery" >&2;} 23014 { (exit 1); exit 1; }; } 23015_ACEOF 23016 23017# VPATH may cause trouble with some makes, so we remove $(srcdir), 23018# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 23019# trailing colons and then remove the whole line if VPATH becomes empty 23020# (actually we leave an empty line to preserve line numbers). 23021if test "x$srcdir" = x.; then 23022 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 23023s/:*\$(srcdir):*/:/ 23024s/:*\${srcdir}:*/:/ 23025s/:*@srcdir@:*/:/ 23026s/^\([^=]*=[ ]*\):*/\1/ 23027s/:*$// 23028s/^[^=]*=[ ]*$// 23029}' 23030fi 23031 23032cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23033fi # test -n "$CONFIG_FILES" 23034 23035# Set up the scripts for CONFIG_HEADERS section. 23036# No need to generate them if there are no CONFIG_HEADERS. 23037# This happens for instance with `./config.status Makefile'. 23038if test -n "$CONFIG_HEADERS"; then 23039cat >"$tmp/defines.awk" <<\_ACAWK || 23040BEGIN { 23041_ACEOF 23042 23043# Transform confdefs.h into an awk script `defines.awk', embedded as 23044# here-document in config.status, that substitutes the proper values into 23045# config.h.in to produce config.h. 23046 23047# Create a delimiter string that does not exist in confdefs.h, to ease 23048# handling of long lines. 23049ac_delim='%!_!# ' 23050for ac_last_try in false false :; do 23051 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 23052 if test -z "$ac_t"; then 23053 break 23054 elif $ac_last_try; then 23055 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 23056$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 23057 { (exit 1); exit 1; }; } 23058 else 23059 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23060 fi 23061done 23062 23063# For the awk script, D is an array of macro values keyed by name, 23064# likewise P contains macro parameters if any. Preserve backslash 23065# newline sequences. 23066 23067ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 23068sed -n ' 23069s/.\{148\}/&'"$ac_delim"'/g 23070t rset 23071:rset 23072s/^[ ]*#[ ]*define[ ][ ]*/ / 23073t def 23074d 23075:def 23076s/\\$// 23077t bsnl 23078s/["\\]/\\&/g 23079s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23080D["\1"]=" \3"/p 23081s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 23082d 23083:bsnl 23084s/["\\]/\\&/g 23085s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23086D["\1"]=" \3\\\\\\n"\\/p 23087t cont 23088s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 23089t cont 23090d 23091:cont 23092n 23093s/.\{148\}/&'"$ac_delim"'/g 23094t clear 23095:clear 23096s/\\$// 23097t bsnlc 23098s/["\\]/\\&/g; s/^/"/; s/$/"/p 23099d 23100:bsnlc 23101s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 23102b cont 23103' <confdefs.h | sed ' 23104s/'"$ac_delim"'/"\\\ 23105"/g' >>$CONFIG_STATUS || ac_write_fail=1 23106 23107cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23108 for (key in D) D_is_set[key] = 1 23109 FS = "" 23110} 23111/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 23112 line = \$ 0 23113 split(line, arg, " ") 23114 if (arg[1] == "#") { 23115 defundef = arg[2] 23116 mac1 = arg[3] 23117 } else { 23118 defundef = substr(arg[1], 2) 23119 mac1 = arg[2] 23120 } 23121 split(mac1, mac2, "(") #) 23122 macro = mac2[1] 23123 prefix = substr(line, 1, index(line, defundef) - 1) 23124 if (D_is_set[macro]) { 23125 # Preserve the white space surrounding the "#". 23126 print prefix "define", macro P[macro] D[macro] 23127 next 23128 } else { 23129 # Replace #undef with comments. This is necessary, for example, 23130 # in the case of _POSIX_SOURCE, which is predefined and required 23131 # on some systems where configure will not decide to define it. 23132 if (defundef == "undef") { 23133 print "/*", prefix defundef, macro, "*/" 23134 next 23135 } 23136 } 23137} 23138{ print } 23139_ACAWK 23140_ACEOF 23141cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23142 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 23143$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 23144 { (exit 1); exit 1; }; } 23145fi # test -n "$CONFIG_HEADERS" 23146 23147 23148eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 23149shift 23150for ac_tag 23151do 23152 case $ac_tag in 23153 :[FHLC]) ac_mode=$ac_tag; continue;; 23154 esac 23155 case $ac_mode$ac_tag in 23156 :[FHL]*:*);; 23157 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 23158$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 23159 { (exit 1); exit 1; }; };; 23160 :[FH]-) ac_tag=-:-;; 23161 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 23162 esac 23163 ac_save_IFS=$IFS 23164 IFS=: 23165 set x $ac_tag 23166 IFS=$ac_save_IFS 23167 shift 23168 ac_file=$1 23169 shift 23170 23171 case $ac_mode in 23172 :L) ac_source=$1;; 23173 :[FH]) 23174 ac_file_inputs= 23175 for ac_f 23176 do 23177 case $ac_f in 23178 -) ac_f="$tmp/stdin";; 23179 *) # Look for the file first in the build tree, then in the source tree 23180 # (if the path is not absolute). The absolute path cannot be DOS-style, 23181 # because $ac_f cannot contain `:'. 23182 test -f "$ac_f" || 23183 case $ac_f in 23184 [\\/$]*) false;; 23185 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 23186 esac || 23187 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 23188$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 23189 { (exit 1); exit 1; }; };; 23190 esac 23191 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 23192 ac_file_inputs="$ac_file_inputs '$ac_f'" 23193 done 23194 23195 # Let's still pretend it is `configure' which instantiates (i.e., don't 23196 # use $as_me), people would be surprised to read: 23197 # /* config.h. Generated by config.status. */ 23198 configure_input='Generated from '` 23199 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 23200 `' by configure.' 23201 if test x"$ac_file" != x-; then 23202 configure_input="$ac_file. $configure_input" 23203 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 23204$as_echo "$as_me: creating $ac_file" >&6;} 23205 fi 23206 # Neutralize special characters interpreted by sed in replacement strings. 23207 case $configure_input in #( 23208 *\&* | *\|* | *\\* ) 23209 ac_sed_conf_input=`$as_echo "$configure_input" | 23210 sed 's/[\\\\&|]/\\\\&/g'`;; #( 23211 *) ac_sed_conf_input=$configure_input;; 23212 esac 23213 23214 case $ac_tag in 23215 *:-:* | *:-) cat >"$tmp/stdin" \ 23216 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 23217$as_echo "$as_me: error: could not create $ac_file" >&2;} 23218 { (exit 1); exit 1; }; } ;; 23219 esac 23220 ;; 23221 esac 23222 23223 ac_dir=`$as_dirname -- "$ac_file" || 23224$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23225 X"$ac_file" : 'X\(//\)[^/]' \| \ 23226 X"$ac_file" : 'X\(//\)$' \| \ 23227 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 23228$as_echo X"$ac_file" | 23229 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23230 s//\1/ 23231 q 23232 } 23233 /^X\(\/\/\)[^/].*/{ 23234 s//\1/ 23235 q 23236 } 23237 /^X\(\/\/\)$/{ 23238 s//\1/ 23239 q 23240 } 23241 /^X\(\/\).*/{ 23242 s//\1/ 23243 q 23244 } 23245 s/.*/./; q'` 23246 { as_dir="$ac_dir" 23247 case $as_dir in #( 23248 -*) as_dir=./$as_dir;; 23249 esac 23250 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 23251 as_dirs= 23252 while :; do 23253 case $as_dir in #( 23254 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 23255 *) as_qdir=$as_dir;; 23256 esac 23257 as_dirs="'$as_qdir' $as_dirs" 23258 as_dir=`$as_dirname -- "$as_dir" || 23259$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23260 X"$as_dir" : 'X\(//\)[^/]' \| \ 23261 X"$as_dir" : 'X\(//\)$' \| \ 23262 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23263$as_echo X"$as_dir" | 23264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23265 s//\1/ 23266 q 23267 } 23268 /^X\(\/\/\)[^/].*/{ 23269 s//\1/ 23270 q 23271 } 23272 /^X\(\/\/\)$/{ 23273 s//\1/ 23274 q 23275 } 23276 /^X\(\/\).*/{ 23277 s//\1/ 23278 q 23279 } 23280 s/.*/./; q'` 23281 test -d "$as_dir" && break 23282 done 23283 test -z "$as_dirs" || eval "mkdir $as_dirs" 23284 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 23285$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 23286 { (exit 1); exit 1; }; }; } 23287 ac_builddir=. 23288 23289case "$ac_dir" in 23290.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23291*) 23292 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 23293 # A ".." for each directory in $ac_dir_suffix. 23294 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 23295 case $ac_top_builddir_sub in 23296 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23297 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23298 esac ;; 23299esac 23300ac_abs_top_builddir=$ac_pwd 23301ac_abs_builddir=$ac_pwd$ac_dir_suffix 23302# for backward compatibility: 23303ac_top_builddir=$ac_top_build_prefix 23304 23305case $srcdir in 23306 .) # We are building in place. 23307 ac_srcdir=. 23308 ac_top_srcdir=$ac_top_builddir_sub 23309 ac_abs_top_srcdir=$ac_pwd ;; 23310 [\\/]* | ?:[\\/]* ) # Absolute name. 23311 ac_srcdir=$srcdir$ac_dir_suffix; 23312 ac_top_srcdir=$srcdir 23313 ac_abs_top_srcdir=$srcdir ;; 23314 *) # Relative name. 23315 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23316 ac_top_srcdir=$ac_top_build_prefix$srcdir 23317 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23318esac 23319ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23320 23321 23322 case $ac_mode in 23323 :F) 23324 # 23325 # CONFIG_FILE 23326 # 23327 23328 case $INSTALL in 23329 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23330 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 23331 esac 23332 ac_MKDIR_P=$MKDIR_P 23333 case $MKDIR_P in 23334 [\\/$]* | ?:[\\/]* ) ;; 23335 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 23336 esac 23337_ACEOF 23338 23339cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23340# If the template does not know about datarootdir, expand it. 23341# FIXME: This hack should be removed a few years after 2.60. 23342ac_datarootdir_hack=; ac_datarootdir_seen= 23343 23344ac_sed_dataroot=' 23345/datarootdir/ { 23346 p 23347 q 23348} 23349/@datadir@/p 23350/@docdir@/p 23351/@infodir@/p 23352/@localedir@/p 23353/@mandir@/p 23354' 23355case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 23356*datarootdir*) ac_datarootdir_seen=yes;; 23357*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 23358 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 23359$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 23360_ACEOF 23361cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23362 ac_datarootdir_hack=' 23363 s&@datadir@&$datadir&g 23364 s&@docdir@&$docdir&g 23365 s&@infodir@&$infodir&g 23366 s&@localedir@&$localedir&g 23367 s&@mandir@&$mandir&g 23368 s&\\\${datarootdir}&$datarootdir&g' ;; 23369esac 23370_ACEOF 23371 23372# Neutralize VPATH when `$srcdir' = `.'. 23373# Shell code in configure.ac might set extrasub. 23374# FIXME: do we really want to maintain this feature? 23375cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23376ac_sed_extra="$ac_vpsub 23377$extrasub 23378_ACEOF 23379cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23380:t 23381/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23382s|@configure_input@|$ac_sed_conf_input|;t t 23383s&@top_builddir@&$ac_top_builddir_sub&;t t 23384s&@top_build_prefix@&$ac_top_build_prefix&;t t 23385s&@srcdir@&$ac_srcdir&;t t 23386s&@abs_srcdir@&$ac_abs_srcdir&;t t 23387s&@top_srcdir@&$ac_top_srcdir&;t t 23388s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 23389s&@builddir@&$ac_builddir&;t t 23390s&@abs_builddir@&$ac_abs_builddir&;t t 23391s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 23392s&@INSTALL@&$ac_INSTALL&;t t 23393s&@MKDIR_P@&$ac_MKDIR_P&;t t 23394$ac_datarootdir_hack 23395" 23396eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 23397 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 23398$as_echo "$as_me: error: could not create $ac_file" >&2;} 23399 { (exit 1); exit 1; }; } 23400 23401test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 23402 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 23403 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 23404 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23405which seems to be undefined. Please make sure it is defined." >&5 23406$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23407which seems to be undefined. Please make sure it is defined." >&2;} 23408 23409 rm -f "$tmp/stdin" 23410 case $ac_file in 23411 -) cat "$tmp/out" && rm -f "$tmp/out";; 23412 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 23413 esac \ 23414 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 23415$as_echo "$as_me: error: could not create $ac_file" >&2;} 23416 { (exit 1); exit 1; }; } 23417 ;; 23418 :H) 23419 # 23420 # CONFIG_HEADER 23421 # 23422 if test x"$ac_file" != x-; then 23423 { 23424 $as_echo "/* $configure_input */" \ 23425 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 23426 } >"$tmp/config.h" \ 23427 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 23428$as_echo "$as_me: error: could not create $ac_file" >&2;} 23429 { (exit 1); exit 1; }; } 23430 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 23431 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 23432$as_echo "$as_me: $ac_file is unchanged" >&6;} 23433 else 23434 rm -f "$ac_file" 23435 mv "$tmp/config.h" "$ac_file" \ 23436 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 23437$as_echo "$as_me: error: could not create $ac_file" >&2;} 23438 { (exit 1); exit 1; }; } 23439 fi 23440 else 23441 $as_echo "/* $configure_input */" \ 23442 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 23443 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 23444$as_echo "$as_me: error: could not create -" >&2;} 23445 { (exit 1); exit 1; }; } 23446 fi 23447# Compute "$ac_file"'s index in $config_headers. 23448_am_arg="$ac_file" 23449_am_stamp_count=1 23450for _am_header in $config_headers :; do 23451 case $_am_header in 23452 $_am_arg | $_am_arg:* ) 23453 break ;; 23454 * ) 23455 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 23456 esac 23457done 23458echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 23459$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23460 X"$_am_arg" : 'X\(//\)[^/]' \| \ 23461 X"$_am_arg" : 'X\(//\)$' \| \ 23462 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 23463$as_echo X"$_am_arg" | 23464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23465 s//\1/ 23466 q 23467 } 23468 /^X\(\/\/\)[^/].*/{ 23469 s//\1/ 23470 q 23471 } 23472 /^X\(\/\/\)$/{ 23473 s//\1/ 23474 q 23475 } 23476 /^X\(\/\).*/{ 23477 s//\1/ 23478 q 23479 } 23480 s/.*/./; q'`/stamp-h$_am_stamp_count 23481 ;; 23482 23483 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 23484$as_echo "$as_me: executing $ac_file commands" >&6;} 23485 ;; 23486 esac 23487 23488 23489 case $ac_file$ac_mode in 23490 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 23491 # Strip MF so we end up with the name of the file. 23492 mf=`echo "$mf" | sed -e 's/:.*$//'` 23493 # Check whether this is an Automake generated Makefile or not. 23494 # We used to match only the files named `Makefile.in', but 23495 # some people rename them; so instead we look at the file content. 23496 # Grep'ing the first line is not enough: some people post-process 23497 # each Makefile.in and add a new line on top of each file to say so. 23498 # Grep'ing the whole file is not good either: AIX grep has a line 23499 # limit of 2048, but all sed's we know have understand at least 4000. 23500 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 23501 dirpart=`$as_dirname -- "$mf" || 23502$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23503 X"$mf" : 'X\(//\)[^/]' \| \ 23504 X"$mf" : 'X\(//\)$' \| \ 23505 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 23506$as_echo X"$mf" | 23507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23508 s//\1/ 23509 q 23510 } 23511 /^X\(\/\/\)[^/].*/{ 23512 s//\1/ 23513 q 23514 } 23515 /^X\(\/\/\)$/{ 23516 s//\1/ 23517 q 23518 } 23519 /^X\(\/\).*/{ 23520 s//\1/ 23521 q 23522 } 23523 s/.*/./; q'` 23524 else 23525 continue 23526 fi 23527 # Extract the definition of DEPDIR, am__include, and am__quote 23528 # from the Makefile without running `make'. 23529 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 23530 test -z "$DEPDIR" && continue 23531 am__include=`sed -n 's/^am__include = //p' < "$mf"` 23532 test -z "am__include" && continue 23533 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 23534 # When using ansi2knr, U may be empty or an underscore; expand it 23535 U=`sed -n 's/^U = //p' < "$mf"` 23536 # Find all dependency output files, they are included files with 23537 # $(DEPDIR) in their names. We invoke sed twice because it is the 23538 # simplest approach to changing $(DEPDIR) to its actual value in the 23539 # expansion. 23540 for file in `sed -n " 23541 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 23542 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 23543 # Make sure the directory exists. 23544 test -f "$dirpart/$file" && continue 23545 fdir=`$as_dirname -- "$file" || 23546$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23547 X"$file" : 'X\(//\)[^/]' \| \ 23548 X"$file" : 'X\(//\)$' \| \ 23549 X"$file" : 'X\(/\)' \| . 2>/dev/null || 23550$as_echo X"$file" | 23551 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23552 s//\1/ 23553 q 23554 } 23555 /^X\(\/\/\)[^/].*/{ 23556 s//\1/ 23557 q 23558 } 23559 /^X\(\/\/\)$/{ 23560 s//\1/ 23561 q 23562 } 23563 /^X\(\/\).*/{ 23564 s//\1/ 23565 q 23566 } 23567 s/.*/./; q'` 23568 { as_dir=$dirpart/$fdir 23569 case $as_dir in #( 23570 -*) as_dir=./$as_dir;; 23571 esac 23572 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 23573 as_dirs= 23574 while :; do 23575 case $as_dir in #( 23576 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 23577 *) as_qdir=$as_dir;; 23578 esac 23579 as_dirs="'$as_qdir' $as_dirs" 23580 as_dir=`$as_dirname -- "$as_dir" || 23581$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23582 X"$as_dir" : 'X\(//\)[^/]' \| \ 23583 X"$as_dir" : 'X\(//\)$' \| \ 23584 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23585$as_echo X"$as_dir" | 23586 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23587 s//\1/ 23588 q 23589 } 23590 /^X\(\/\/\)[^/].*/{ 23591 s//\1/ 23592 q 23593 } 23594 /^X\(\/\/\)$/{ 23595 s//\1/ 23596 q 23597 } 23598 /^X\(\/\).*/{ 23599 s//\1/ 23600 q 23601 } 23602 s/.*/./; q'` 23603 test -d "$as_dir" && break 23604 done 23605 test -z "$as_dirs" || eval "mkdir $as_dirs" 23606 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 23607$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 23608 { (exit 1); exit 1; }; }; } 23609 # echo "creating $dirpart/$file" 23610 echo '# dummy' > "$dirpart/$file" 23611 done 23612done 23613 ;; 23614 23615 esac 23616done # for ac_tag 23617 23618 23619{ (exit 0); exit 0; } 23620_ACEOF 23621chmod +x $CONFIG_STATUS 23622ac_clean_files=$ac_clean_files_save 23623 23624test $ac_write_fail = 0 || 23625 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 23626$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 23627 { (exit 1); exit 1; }; } 23628 23629 23630# configure is writing to config.log, and then calls config.status. 23631# config.status does its own redirection, appending to config.log. 23632# Unfortunately, on DOS this fails, as config.log is still kept open 23633# by configure, so config.status won't be able to write to it; its 23634# output is simply discarded. So we exec the FD to /dev/null, 23635# effectively closing config.log, so it can be properly (re)opened and 23636# appended to by config.status. When coming back to configure, we 23637# need to make the FD available again. 23638if test "$no_create" != yes; then 23639 ac_cs_success=: 23640 ac_config_status_args= 23641 test "$silent" = yes && 23642 ac_config_status_args="$ac_config_status_args --quiet" 23643 exec 5>/dev/null 23644 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23645 exec 5>>config.log 23646 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23647 # would make configure fail if this is the last instruction. 23648 $ac_cs_success || { (exit 1); exit 1; } 23649fi 23650if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 23651 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 23652$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 23653fi 23654 23655